yui-base-min.js revision 8556a973cf2503e0990811fc2b7a48193ae23149
(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,J=G+"-"+this.version+"-"+H._yidx+"-"+(H._uidx++)+"-"+B;return J.replace(/\./g,"_");},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 O=A.Lang,F="array",H="boolean",C="date",J="error",P="function",G="number",I="null",E="object",M="regexp",K="string",B=Object.prototype.toString,N="undefined",D={"undefined":N,"number":G,"boolean":H,"string":K,"[object Function]":P,"[object RegExp]":M,"[object Array]":F,"[object Date]":C,"[object Error]":J};O.isArray=function(L){return O.type(L)===F;};O.isBoolean=function(L){return typeof L===H;};O.isFunction=function(L){return O.type(L)===P;};O.isDate=function(L){return O.type(L)===C;};O.isNull=function(L){return L===null;};O.isNumber=function(L){return typeof L===G&&isFinite(L);};O.isObject=function(Q,L){return(Q&&(typeof Q===E||(!L&&O.isFunction(Q))))||false;};O.isString=function(L){return typeof L===K;};O.isUndefined=function(L){return typeof L===N;};O.trim=function(L){try{return L.replace(/^\s+|\s+$/g,"");}catch(Q){return L;}};O.isValue=function(Q){var L=O.type(Q);switch(L){case G:return isFinite(Q);case I:case N:return false;default:return !!(L);}};O.type=function(L){return D[typeof L]||D[B.call(L)]||(L?"object":"null");};})();(function(){var C=A.Lang,D=Array.prototype,B=function(L,I,K){var H=(K)?2:A.Array.test(L),G,F,E;if(H){try{return D.slice.call(L,I||0);}catch(J){E=[];for(G=0,F=L.length;G<F;G=G+1){E.push(L[G]);}return E;}}else{return[L];}};A.Array=B;B.test=function(G){var E=0;if(C.isObject(G)){if(C.isArray(G)){E=1;}else{try{if("length" in G&&!("tagName" in G)&&!("alert" in G)&&(!A.Lang.isFunction(G.size)||G.size()>1)){E=2;}}catch(F){}}}return E;};B.each=(D.forEach)?function(E,F,G){D.forEach.call(E||[],F,G||A);return A;}:function(F,H,I){var E=(F&&F.length)||0,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;};B.numericSort=function(F,E){return(F-E);};B.some=(D.some)?function(E,F,G){return D.some.call(E,F,G);}:function(F,H,I){var E=F.length,G;for(G=0;G<E;G=G+1){if(H.call(I,F[G],G,F)){return true;}}return false;};})();(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;}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;};A.cached=function(I,H){H=H||{};var J=function(){var K=arguments,L=(K.length==1)?K[0]:A.Array(K,0,true).join("`");if(!(L in H)){H[L]=I.apply(I,arguments);}return H[L];};return J;};})();(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=function(E,D){return(E.hasOwnProperty(D));};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 F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0,secure:false,os:null},D=navigator&&navigator.userAgent,E=A.config.win.location,C=E&&E.href,B;F.secure=C&&(C.toLowerCase().indexOf("https")===0);if(D){if((/windows|win32/).test(D)){F.os="windows";}else{if((/macintosh/).test(D)){F.os="macintosh";}}if((/KHTML/).test(D)){F.webkit=1;}B=D.match(/AppleWebKit\/([^\s]*)/);if(B&&B[1]){F.webkit=parseFloat(B[1]);if(/ Mobile\//.test(D)){F.mobile="Apple";}else{B=D.match(/NokiaN[^\/]*/);if(B){F.mobile=B[0];}}B=D.match(/AdobeAIR\/([^\s]*)/);if(B){F.air=B[0];}}if(!F.webkit){B=D.match(/Opera[\s\/]([^\s]*)/);if(B&&B[1]){F.opera=parseFloat(B[1]);B=D.match(/Opera Mini[^;]*/);if(B){F.mobile=B[0];}}else{B=D.match(/MSIE\s([^;]*)/);if(B&&B[1]){F.ie=parseFloat(B[1]);}else{B=D.match(/Gecko\/([^\s]*)/);if(B){F.gecko=1;B=D.match(/rv:([^\s\)]*)/);if(B&&B[1]){F.gecko=parseFloat(B[1]);}}}}}B=D.match(/Caja\/([^\s]*)/);if(B&&B[1]){F.caja=parseFloat(B[1]);}}return F;}();(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{id:D,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@");