yui-base-min.js revision 3395e5fc071521d4e6b258ef4c7c0ef38601b94e
1281N/A(function(){var E={},B=new Date().getTime(),F,D,A,C={"io.xdrReady":1,"io.start":1,"io.success":1,"io.failure":1,"io.abort":1};if(typeof YUI==="undefined"||!YUI){YUI=function(H){var G=this;if(!(G instanceof YUI)){return new YUI(H);}else{G._init(H);G._setup();return G;}};}YUI.prototype={_init:function(I){I=I||{};var G=(I.win)?(I.win.contentWindow):I.win||window,H="@VERSION@";I.win=G;I.doc=G.document;I.debug=("debug" in I)?I.debug:true;I.useBrowserConsole=("useBrowserConsole" in I)?I.useBrowserConsole:true;I.throwFail=("throwFail" in I)?I.throwFail:true;this.config=I;this.Env={mods:{},_idx:0,_pre:"yuid",_used:{},_attached:{},_yidx:0,_uidx:0};if(H.indexOf("@")>-1){H="test";}this.version=H;if(YUI.Env){this.Env._yidx=++YUI.Env._idx;this.id=this.stamp(this);E[this.id]=this;}this.constructor=YUI;this.log(this.id+") init ");},_setup:function(G){this.use("yui-base");},applyTo:function(M,L,I){if(!(L in C)){this.error(L+": applyTo not allowed");return null;}var H=E[M],K,G,J;if(H){K=L.split(".");G=H;for(J=0;J<K.length;J=J+1){G=G[K[J]];if(!G){this.error("applyTo not found: "+L);}}return G.apply(H,I);}return null;},add:function(I,K,H,J){var G={name:I,fn:K,version:H,details:J||{}};YUI.Env.mods[I]=G;return this;},_attach:function(H,L){var Q=YUI.Env.mods,I=this.Env._attached,N,M=H.length,J,K,O,P,G;for(N=0;N<M;N=N+1){J=H[N];K=Q[J];if(!I[J]&&K){I[J]=true;O=K.details;P=O.requires;G=O.use;if(P){this._attach(this.Array(P));}this.log("attaching "+J,"info","YUI");if(K.fn){K.fn(this);}if(G){this._attach(this.Array(G));}}}},use:function(){var H=this,Q=Array.prototype.slice.call(arguments,0),T=YUI.Env.mods,U=H.Env._used,R,L=Q[0],J=false,S=Q[Q.length-1],M,O,K,N=[],G=[],P=function(Y){if(U[Y]){return;}var V=T[Y],X,Z,W;if(V){U[Y]=true;Z=V.details.requires;W=V.details.use;}else{N.push(Y);}if(Z){if(H.Lang.isString(Z)){P(Z);}else{for(X=0;X<Z.length;X=X+1){P(Z[X]);}}}G.push(Y);},I=function(W){W=W||{success:true,msg:"not dynamic"};if(H.Env._callback){var V=H.Env._callback;H.Env._callback=null;V(H,W);}if(H.fire){H.fire("yui:load",H,W);}};if(typeof S==="function"){Q.pop();H.Env._callback=S;}else{S=null;}if(L==="*"){Q=[];for(M in T){if(T.hasOwnProperty(M)){Q.push(M);}}return H.use.apply(H,Q);}if(H.Loader){J=true;R=new H.Loader(H.config);R.require(Q);R.ignoreRegistered=true;R.allowRollup=false;R.calculate();Q=R.sorted;}K=Q.length;for(O=0;O<K;O=O+1){P(Q[O]);}if(H.Loader&&N.length){R=new H.Loader(H.config);R.onSuccess=I;R.onFailure=I;R.onTimeout=I;R.attaching=Q;R.require(N);R.insert();}else{H._attach(G);I();}return H;},namespace:function(){var G=arguments,K=null,I,H,J;for(I=0;I<G.length;I=I+1){J=(""+G[I]).split(".");K=this;for(H=(J[0]=="YAHOO")?1:0;H<J.length;H=H+1){K[J[H]]=K[J[H]]||{};K=K[J[H]];}}return K;},log:function(){},error:function(H,G){if(this.config.throwFail){throw (G||new Error(H));}else{this.message(H,"error");}return this;},guid:function(I){var H=this.Env,G=(I)||H._pre;return G+"-"+this.version+"-"+H._yidx+"-"+(H._uidx++)+"-"+B;},stamp:function(I,J){if(!I){return I;}var G=(typeof I==="string")?I:I._yuid;if(!G){G=this.guid();if(!J){try{I._yuid=G;}catch(H){G=null;}}}return G;}};F=YUI;D=F.prototype;for(A in D){if(true){F[A]=D[A];}}F._init();})();YUI.add("yui-base",function(A){(function(){var B=A;B.log=function(E,L,C,J){var D=B,K=D.config,H=false,M,G,F,I;if(K.debug){if(C){M=K.logExclude;G=K.logInclude;if(G&&!(C in G)){H=true;}else{if(M&&(C in M)){H=true;}}}if(!H){if(K.useBrowserConsole){F=(C)?C+": "+E:E;if(typeof console!="undefined"){I=(L&&console[L])?L:"log";console[I](F);}else{if(typeof opera!="undefined"){opera.postError(F);}}}if(D.fire&&!H&&!J){D.fire("yui:log",E,L,C);}}}return D;};B.message=function(){return B.log.apply(B,arguments);};})();(function(){A.Lang=A.Lang||{};var N=A.Lang,E="array",H="boolean",C="date",I="error",O="function",F="number",G="object",K="regexp",J="string",B=Object.prototype.toString,M="undefined",D={"undefined":M,"number":F,"boolean":H,"string":J,"[object Function]":O,"[object RegExp]":K,"[object Array]":E,"[object Date]":C,"[object Error]":I};N.isArray=function(L){return N.type(L)===E;};N.isBoolean=function(L){return typeof L===H;};N.isFunction=function(L){return N.type(L)===O;};N.isDate=function(L){return L instanceof Date;};N.isNull=function(L){return L===null;};N.isNumber=function(L){return typeof L===F&&isFinite(L);};N.isObject=function(P,L){return(P&&(typeof P===G||(!L&&N.isFunction(P))))||false;};N.isString=function(L){return typeof L===J;};N.isUndefined=function(L){return typeof L===M;};N.trim=function(L){try{return L.replace(/^\s+|\s+$/g,"");}catch(P){return L;}};N.isValue=function(P){var L=N.type(P);return(L&&L!==M)||false;};N.type=function(L){return D[typeof L]||D[B.call(L)]||(L?"object":"null");};})();(function(){var C=A.Lang,D=Array.prototype,B=function(H,F,G){var E=(G)?2:A.Array.test(H);if(E){return D.slice.call(H,F||0);}else{return[H];}};A.Array=B;B.test=function(G){var F=0;if(C.isObject(G,true)){if(C.isArray(G)){F=1;}else{try{if("length" in G&&!("tagName" in G)&&!("alert" in G)&&(!A.Lang.isFunction(G.size)||G.size()>1)){F=2;}}catch(E){}}}return F;};B.each=(D.forEach)?function(E,F,G){D.forEach.call(E,F,G||A);return A;}:function(F,H,I){var E=F.length,G;for(G=0;G<E;G=G+1){H.call(I||A,F[G],G,F);}return A;};B.hash=function(G,F){var J={},E=G.length,I=F&&F.length,H;for(H=0;H<E;H=H+1){J[G[H]]=(I&&I>H)?F[H]:true;}return J;};B.indexOf=(D.indexOf)?function(E,F){return E.indexOf(F);}:function(E,G){for(var F=0;F<E.length;F=F+1){if(E[F]===G){return F;}}return -1;};})();(function(){var D=A.Lang,C=A.Array,B=Object.prototype,G=["toString","valueOf"],F="prototype",E=(A.UA&&A.UA.ie)?function(L,K,I){var J,H=G,N,M;for(J=0;J<H.length;J=J+1){N=H[J];M=K[N];if(D.isFunction(M)&&M!=B[N]){if(!I||(N in I)){L[N]=M;}}}}:function(){};A.merge=function(){var I=arguments,K={},J,H=I.length;for(J=0;J<H;J=J+1){A.mix(K,I[J],true);}return K;};A.mix=function(H,R,J,Q,M,O){if(!R||!H){return A;}var P=(Q&&Q.length)?C.hash(Q):null,K=O,N=function(U,T,X,W){var S=K&&D.isArray(U),V;for(V in T){if(T.hasOwnProperty(V)){if(F===V||"_yuid"===V){continue;
1281N/A}if(!P||W||(V in P)){if(K&&D.isObject(U[V],true)){N(U[V],T[V],X,true);}else{if(!S&&(J||!(V in U))){U[V]=T[V];}else{if(S){U.push(T[V]);}}}}}}E(U,T,P);},L=H.prototype,I=R.prototype;switch(M){case 1:N(L,I,true);break;case 2:N(H,R);N(L,I,true);break;case 3:N(H,I,true);break;case 4:N(L,R);break;default:N(H,R);}return H;};})();(function(){A.Object=function(E){var D=function(){};D.prototype=E;return new D();};var C=A.Object,B=function(H,G){var F=(G===2),D=(F)?0:[],E;for(E in H){if(F){D++;}else{if(H.hasOwnProperty(E)){D.push((G)?H[E]:E);}}}return D;};C.keys=function(D){return B(D);};C.values=function(D){return B(D,1);};C.size=function(D){return B(D,2);};C.hasKey=function(E,D){return(D in E);};C.hasValue=function(E,D){return(A.Array.indexOf(C.values(E),D)>-1);};C.owns=C.hasKey;C.each=function(H,G,I,F){var E=I||A,D;for(D in H){if(F||H.hasOwnProperty(D)){G.call(E,H[D],D,H);}}return A;};C.getValue=function(H,G){var F=A.Array(G),D=F.length,E;for(E=0;H!==undefined&&E<D;E=E+1){H=H[F[E]];}return H;};C.setValue=function(J,H,I){var G=A.Array(H),F=G.length-1,D,E=J;if(F>=0){for(D=0;E!==undefined&&D<F;D=D+1){E=E[G[D]];}if(E!==undefined){E[G[D]]=I;}else{return undefined;}}return J;};})();A.UA=function(){var D={ie:0,opera:0,gecko:0,webkit:0,mobile:null},C=navigator.userAgent,B;if((/KHTML/).test(C)){D.webkit=1;}B=C.match(/AppleWebKit\/([^\s]*)/);if(B&&B[1]){D.webkit=parseFloat(B[1]);if(/ Mobile\//.test(C)){D.mobile="Apple";}else{B=C.match(/NokiaN[^\/]*/);if(B){D.mobile=B[0];}}}if(!D.webkit){B=C.match(/Opera[\s\/]([^\s]*)/);if(B&&B[1]){D.opera=parseFloat(B[1]);B=C.match(/Opera Mini[^;]*/);if(B){D.mobile=B[0];}}else{B=C.match(/MSIE\s([^;]*)/);if(B&&B[1]){D.ie=parseFloat(B[1]);}else{B=C.match(/Gecko\/([^\s]*)/);if(B){D.gecko=1;B=C.match(/rv:([^\s\)]*)/);if(B&&B[1]){D.gecko=parseFloat(B[1]);}}}}}return D;}();(function(){var B=A.Lang,C=function(K,E,L,G,H){K=K||0;E=E||{};var F=L,J=G,I,D;if(B.isString(L)){F=E[L];}if(!F){A.error("method undefined");}if(!B.isArray(J)){J=[G];}I=function(){F.apply(E,J);};D=(H)?setInterval(I,K):setTimeout(I,K);return{interval:H,cancel:function(){if(this.interval){clearInterval(D);}else{clearTimeout(D);}}};};A.later=C;B.later=C;})();(function(){var D=["yui-base"],B,E=A.config;A.use.apply(A,D);if(E.core){B=E.core;}else{B=["get","loader"];}A.use.apply(A,B);})();},"@VERSION@");