yui-base-min.js revision 13a50a8c4ecfe16d42abb7605f9451f76e02dc42
if(typeof YUI!="undefined"){YUI._YUI=YUI;}var YUI=function(){var c=0,f=this,b=arguments,a=b.length,e=function(h,g){return(h&&h.hasOwnProperty&&(h instanceof g));},d=(typeof YUI_config!=="undefined")&&YUI_config;if(!(e(f,YUI))){f=new YUI();}else{f._init();if(YUI.GlobalConfig){f.applyConfig(YUI.GlobalConfig);}if(d){f.applyConfig(d);}if(!a){f._setup();}}if(a){for(;c<a;c++){f.applyConfig(b[c]);}f._setup();}f.instanceOf=e;return f;};(function(){var p,b,q="@VERSION@",h=".",n="http://yui.yahooapis.com/",t="yui3-js-enabled",l=function(){},g=Array.prototype.slice,r={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},f=(typeof window!="undefined"),e=(f)?window:null,v=(f)?e.document:null,d=v&&v.documentElement,a=d&&d.className,c={},i=new Date().getTime(),m=function(z,y,x,w){if(z&&z.addEventListener){z.addEventListener(y,x,w);}else{if(z&&z.attachEvent){z.attachEvent("on"+y,x);}}},u=function(A,z,y,w){if(A&&A.removeEventListener){try{A.removeEventListener(z,y,w);}catch(x){}}else{if(A&&A.detachEvent){A.detachEvent("on"+z,y);}}},s=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;if(f){u(window,"load",s);}},j=function(y,x){var w=y.Env._loader;if(w){w.ignoreRegistered=false;w.onEnd=null;w.data=null;w.required=[];w.loadType=null;}else{w=new y.Loader(y.config);y.Env._loader=w;}return w;},o=function(y,x){for(var w in x){if(x.hasOwnProperty(w)){y[w]=x[w];}}},k={success:true};if(d&&a.indexOf(t)==-1){if(a){a+=" ";}a+=t;d.className=a;}if(q.indexOf("@")>-1){q="3.2.0";}p={applyConfig:function(D){D=D||l;var y,A,z=this.config,B=z.modules,x=z.groups,C=z.rls,w=this.Env._loader;for(A in D){if(D.hasOwnProperty(A)){y=D[A];if(B&&A=="modules"){o(B,y);}else{if(x&&A=="groups"){o(x,y);}else{if(C&&A=="rls"){o(C,y);}else{if(A=="win"){z[A]=y.contentWindow||y;z.doc=z[A].document;}else{if(A=="_yuid"){}else{z[A]=y;}}}}}}}if(w){w._config(D);}},_config:function(w){this.applyConfig(w);},_init:function(){var y,z=this,w=YUI.Env,x=z.Env,A;z.version=q;if(!x){z.Env={mods:{},versions:{},base:n,cdn:n+q+"/build/",_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{},serviced:{},getBase:w&&w.getBase||function(G,F){var B,C,E,H,D;C=(v&&v.getElementsByTagName("script"))||[];for(E=0;E<C.length;E=E+1){H=C[E].src;if(H){D=H.match(G);B=D&&D[1];if(B){y=D[2];if(y){D=y.indexOf("js");if(D>-1){y=y.substr(0,D);}}D=H.match(F);if(D&&D[3]){B=D[1]+D[3];}break;}}}return B||x.cdn;}};x=z.Env;x._loaded[q]={};if(w&&z!==YUI){x._yidx=++w._yidx;x._guidp=("yui_"+q+"_"+x._yidx+"_"+i).replace(/\./g,"_");}else{if(YUI._YUI){w=YUI._YUI.Env;x._yidx+=w._yidx;x._uidx+=w._uidx;for(A in w){if(!(A in x)){x[A]=w[A];}}delete YUI._YUI;}}z.id=z.stamp(z);c[z.id]=z;}z.constructor=YUI;z.config=z.config||{win:e,doc:v,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true};z.config.base=YUI.config.base||z.Env.getBase(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/,/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);if(!y||(!("-min.-debug.").indexOf(y))){y="-min.";}z.config.loaderPath=YUI.config.loaderPath||"loader/loader"+(y||"-min.")+"js";},_setup:function(B){var x,A=this,w=[],z=YUI.Env.mods,y=A.config.core||["get","rls","intl-base","loader","yui-log","yui-later","yui-throttle"];for(x=0;x<y.length;x++){if(z[y[x]]){w.push(y[x]);}}A._attach(["yui-base"]);A._attach(w);},applyTo:function(C,B,y){if(!(B in r)){this.log(B+": applyTo not allowed","warn","yui");return null;}var x=c[C],A,w,z;if(x){A=B.split(".");w=x;for(z=0;z<A.length;z=z+1){w=w[A[z]];if(!w){this.log("applyTo not found: "+B,"warn","yui");}}return w.apply(x,y);}return null;},add:function(x,C,B,w){w=w||{};var A=YUI.Env,D={name:x,fn:C,version:B,details:w},E,z,y=A.versions;A.mods[x]=D;y[B]=y[B]||{};y[B][x]=D;for(z in c){if(c.hasOwnProperty(z)){E=c[z].Env._loader;if(E){if(!E.moduleInfo[x]){E.addModule(w,x);}}}}return this;},_attach:function(w,B){var E,z,I,x,H,y,K=YUI.Env.mods,A=this,D,C=A.Env._attached,F=w.length,J;for(E=0;E<F;E++){if(!C[w[E]]){z=w[E];I=K[z];if(!I){J=A.Env._loader;if(!J||!J.moduleInfo[z]){A.message("NOT loaded: "+z,"warn","yui");}}else{C[z]=true;x=I.details;H=x.requires;y=x.use;if(H){for(D=0;D<H.length;D++){if(!C[H[D]]){if(!A._attach(H)){return false;}break;}}}if(I.fn){try{I.fn(A,z);}catch(G){A.error("Attach error: "+z,G,z);return false;}}if(y){for(D=0;D<y.length;D++){if(!C[y[D]]){if(!A._attach(y)){return false;}break;}}}}}}return true;},use:function(){var w=g.call(arguments,0),z=w[w.length-1],y=this,x;if(y.Lang.isFunction(z)){w.pop();}else{z=null;}if(y._loading){y._useQueue=y._useQueue||new y.Queue();y._useQueue.add([w,z]);}else{x=w.join();if(y.Env.serviced[x]){y._notify(z,k,w);}else{y._use(w,function(B,A){B.Env.serviced[x]=true;B._notify(z,A,w);});}}return y;},_notify:function(z,w,x){if(z){try{z(this,w);}catch(y){this.error("use callback error",y,x);}}},_use:function(y,A){if(!this.Array){this._attach(["yui-base"]);}var L,F,M,x=this,N=YUI.Env,z=N.mods,w=x.Env,C=w._used,J=N._loaderQueue,Q=y[0],E=x.Array,O=x.config,D=O.bootstrap,K=[],H=[],P=true,B=O.fetchCSS,I=function(S,R){if(!S.length){return;}E.each(S,function(V){if(!R){H.push(V);}if(C[V]){return;}var T=z[V],W,U;if(T){C[V]=true;W=T.details.requires;U=T.details.use;}else{if(!N._loaded[q][V]){K.push(V);}else{C[V]=true;}}if(W&&W.length){I(W);}if(U&&U.length){I(U,1);}});},G=function(V){var T=V||{success:true,msg:"not dynamic"},S,R,U=true,W=T.data;x._loading=false;if(W){R=K;K=[];H=[];I(W);S=K.length;if(S){if(K.sort().join()==R.sort().join()){S=false;}}}if(S&&W){x._loading=false;x._use(y,function(){if(x._attach(W)){x._notify(A,T,W);}});}else{if(W){U=x._attach(W);}if(U){x._notify(A,T,y);}}if(x._useQueue&&x._useQueue.size()&&!x._loading){x._use.apply(x,x._useQueue.next());}};if(Q==="*"){P=x._attach(x.Object.keys(z));if(P){G();}return x;}if(D&&x.Loader&&y.length){F=j(x);F.require(y);F.ignoreRegistered=true;F.calculate(null,(B)?null:"js");y=F.sorted;}I(y);L=K.length;if(L){K=x.Object.keys(E.hash(K));L=K.length;}if(D&&L&&x.Loader){x._loading=true;F.onEnd=G;F.context=x;F.data=y;F.ignoreRegistered=false;F.partial(K,(B)?null:"js");}else{if(L&&x.config.use_rls){x.Get.script(x._rls(y),{onEnd:function(R){G(R);
},data:y});}else{if(D&&L&&x.Get&&!w.bootstrapped){x._loading=true;M=function(){x._loading=false;J.running=false;w.bootstrapped=true;if(x._attach(["loader"])){x._use(y,A);}};if(N._bootstrapping){J.add(M);}else{N._bootstrapping=true;x.Get.script(O.base+O.loaderPath,{onEnd:M});}}else{P=x._attach(y);if(P){G();}}}}return x;},namespace:function(){var x=arguments,B=this,z=0,y,A,w;for(;z<x.length;z++){w=x[z];if(w.indexOf(h)){A=w.split(h);for(y=(A[0]=="YAHOO")?1:0;y<A.length;y++){B[A[y]]=B[A[y]]||{};B=B[A[y]];}}else{B[w]=B[w]||{};}}return B;},log:l,message:l,error:function(z,x){var y=this,w;if(y.config.errorFn){w=y.config.errorFn.apply(y,arguments);}if(y.config.throwFail&&!w){throw (x||new Error(z));}else{y.message(z,"error");}return y;},guid:function(w){var x=this.Env._guidp+(++this.Env._uidx);return(w)?(w+x):x;},stamp:function(y,z){var w;if(!y){return y;}if(y.uniqueID&&y.nodeType&&y.nodeType!==9){w=y.uniqueID;}else{w=(typeof y==="string")?y:y._yuid;}if(!w){w=this.guid();if(!z){try{y._yuid=w;}catch(x){w=null;}}}return w;},destroy:function(){var w=this;if(w.Event){w.Event._unload();}delete c[w.id];delete w.Env;delete w.config;}};YUI.prototype=p;for(b in p){if(p.hasOwnProperty(b)){YUI[b]=p[b];}}YUI._init();if(f){m(window,"load",s);}else{s();}YUI.Env.add=m;YUI.Env.remove=u;if(typeof exports=="object"){exports.YUI=YUI;}}());YUI.add("yui-base",function(c){c.Lang=c.Lang||{};var k=c.Lang,A="array",p="boolean",f="date",g="error",i="function",s="number",z="null",n="object",x="regexp",r="string",m=Object.prototype.toString,C="undefined",b={"undefined":C,"number":s,"boolean":p,"string":r,"[object Function]":i,"[object RegExp]":x,"[object Array]":A,"[object Date]":f,"[object Error]":g},w=/^\s+|\s+$/g,y="",e=/\{\s*([^\|\}]+?)\s*(?:\|([^\}]*))?\s*\}/g;k.isArray=function(D){return k.type(D)===A;};k.isBoolean=function(D){return typeof D===p;};k.isFunction=function(D){return k.type(D)===i;};k.isDate=function(D){return k.type(D)===f&&D.toString()!=="Invalid Date"&&!isNaN(D);};k.isNull=function(D){return D===null;};k.isNumber=function(D){return typeof D===s&&isFinite(D);};k.isObject=function(F,E){var D=typeof F;return(F&&(D===n||(!E&&(D===i||k.isFunction(F)))))||false;};k.isString=function(D){return typeof D===r;};k.isUndefined=function(D){return typeof D===C;};k.trim=function(D){try{return D.replace(w,y);}catch(E){return D;}};k.isValue=function(E){var D=k.type(E);switch(D){case s:return isFinite(E);case z:case C:return false;default:return !!(D);}};k.type=function(D){return b[typeof D]||b[m.call(D)]||(D?n:z);};k.sub=function(D,E){return((D.replace)?D.replace(e,function(F,G){return(!k.isUndefined(E[G]))?E[G]:F;}):D);};var t=Array.prototype,v="length",l=function(J,H,F){var G=(F)?2:l.test(J),E,D,K=H||0;if(G){try{return t.slice.call(J,K);}catch(I){D=[];E=J.length;for(;K<E;K++){D.push(J[K]);}return D;}}else{return[J];}};c.Array=l;l.test=function(F){var D=0;if(c.Lang.isObject(F)){if(c.Lang.isArray(F)){D=1;}else{try{if((v in F)&&!F.tagName&&!F.alert&&!F.apply){D=2;}}catch(E){}}}return D;};l.each=(t.forEach)?function(D,E,F){t.forEach.call(D||[],E,F||c);return c;}:function(E,G,H){var D=(E&&E.length)||0,F;for(F=0;F<D;F=F+1){G.call(H||c,E[F],F,E);}return c;};l.hash=function(F,E){var I={},D=F.length,H=E&&E.length,G;for(G=0;G<D;G=G+1){I[F[G]]=(H&&H>G)?E[G]:true;}return I;};l.indexOf=(t.indexOf)?function(D,E){return t.indexOf.call(D,E);}:function(D,F){for(var E=0;E<D.length;E=E+1){if(D[E]===F){return E;}}return -1;};l.numericSort=function(E,D){return(E-D);};l.some=(t.some)?function(D,E,F){return t.some.call(D,E,F);}:function(E,G,H){var D=E.length,F;for(F=0;F<D;F=F+1){if(G.call(H,E[F],F,E)){return true;}}return false;};function B(){this._init();this.add.apply(this,arguments);}B.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){c.Array.each(c.Array(arguments,0,true),function(D){this._q.push(D);},this);return this;},size:function(){return this._q.length;}};c.Queue=B;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new B();var o="__",a=function(F,E){var D=E.toString;if(c.Lang.isFunction(D)&&D!=Object.prototype.toString){F.toString=D;}};c.merge=function(){var E=arguments,G={},F,D=E.length;for(F=0;F<D;F=F+1){c.mix(G,E[F],true);}return G;};c.mix=function(D,M,F,L,I,K){if(!M||!D){return D||c;}if(I){switch(I){case 1:return c.mix(D.prototype,M.prototype,F,L,0,K);case 2:c.mix(D.prototype,M.prototype,F,L,0,K);break;case 3:return c.mix(D,M.prototype,F,L,0,K);case 4:return c.mix(D.prototype,M,F,L,0,K);default:}}var H,G,E,J;if(L&&L.length){for(H=0,G=L.length;H<G;++H){E=L[H];J=c.Lang.type(D[E]);if(M.hasOwnProperty(E)){if(K&&J=="object"){c.mix(D[E],M[E]);}else{if(F||!(E in D)){D[E]=M[E];}}}}}else{for(H in M){if(M.hasOwnProperty(H)){if(K&&c.Lang.isObject(D[H],true)){c.mix(D[H],M[H],F,L,0,true);}else{if(F||!(H in D)){D[H]=M[H];}}}}if(c.UA.ie){a(D,M);}}return D;};c.cached=function(F,D,E){D=D||{};return function(H){var G=(arguments.length>1)?Array.prototype.join.call(arguments,o):H;if(!(G in D)||(E&&D[G]==E)){D[G]=F.apply(F,arguments);}return D[G];};};var q=function(){},h=Object.create||function(D){q.prototype=D;return new q();},j=function(E,D){return E&&E.hasOwnProperty&&E.hasOwnProperty(D);},u,d=function(H,G){var F=(G===2),D=(F)?0:[],E;for(E in H){if(j(H,E)){if(F){D++;}else{D.push((G)?H[E]:E);}}}return D;};c.Object=h;h.keys=Object.keys||function(D){return d(D);};h.values=Object.values||function(D){return d(D,1);};h.size=Object.size||function(D){return d(D,2);};h.hasKey=j;h.hasValue=function(E,D){return(c.Array.indexOf(h.values(E),D)>-1);};h.owns=j;h.each=function(H,G,I,F){var E=I||c,D;for(D in H){if(F||j(H,D)){G.call(E,H[D],D,H);}}return c;};h.some=function(H,G,I,F){var E=I||c,D;for(D in H){if(F||j(H,D)){if(G.call(E,H[D],D,H)){return true;}}}return false;};h.getValue=function(H,G){if(!c.Lang.isObject(H)){return u;}var E,F=c.Array(G),D=F.length;for(E=0;H!==u&&E<D;E++){H=H[F[E]];}return H;};h.setValue=function(J,H,I){var D,G=c.Array(H),F=G.length-1,E=J;if(F>=0){for(D=0;E!==u&&D<F;
D++){E=E[G[D]];}if(E!==u){E[G[D]]=I;}else{return u;}}return J;};h.isEmpty=function(E){for(var D in E){if(j(E,D)){return false;}}return true;};c.UA=YUI.Env.UA||function(){var G=function(L){var M=0;return parseFloat(L.replace(/\./g,function(){return(M++==1)?"":".";}));},H=c.config.win,K=H&&H.navigator,J={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,caja:K&&K.cajaVersion,secure:false,os:null},F=K&&K.userAgent,I=H&&H.location,E=I&&I.href,D;J.secure=E&&(E.toLowerCase().indexOf("https")===0);if(F){if((/windows|win32/i).test(F)){J.os="windows";}else{if((/macintosh/i).test(F)){J.os="macintosh";}else{if((/rhino/i).test(F)){J.os="rhino";}}}if((/KHTML/).test(F)){J.webkit=1;}D=F.match(/AppleWebKit\/([^\s]*)/);if(D&&D[1]){J.webkit=G(D[1]);if(/ Mobile\//.test(F)){J.mobile="Apple";D=F.match(/OS ([^\s]*)/);if(D&&D[1]){D=G(D[1].replace("_","."));}J.ipad=(navigator.platform=="iPad")?D:0;J.ipod=(navigator.platform=="iPod")?D:0;J.iphone=(navigator.platform=="iPhone")?D:0;J.ios=J.ipad||J.iphone||J.ipod;}else{D=F.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(D){J.mobile=D[0];}if(/ Android/.test(F)){J.mobile="Android";D=F.match(/Android ([^\s]*);/);if(D&&D[1]){J.android=G(D[1]);}}}D=F.match(/Chrome\/([^\s]*)/);if(D&&D[1]){J.chrome=G(D[1]);}else{D=F.match(/AdobeAIR\/([^\s]*)/);if(D){J.air=D[0];}}}if(!J.webkit){D=F.match(/Opera[\s\/]([^\s]*)/);if(D&&D[1]){J.opera=G(D[1]);D=F.match(/Opera Mini[^;]*/);if(D){J.mobile=D[0];}}else{D=F.match(/MSIE\s([^;]*)/);if(D&&D[1]){J.ie=G(D[1]);}else{D=F.match(/Gecko\/([^\s]*)/);if(D){J.gecko=1;D=F.match(/rv:([^\s\)]*)/);if(D&&D[1]){J.gecko=G(D[1]);}}}}}}YUI.Env.UA=J;return J;}();},"@VERSION@");