Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build RLS for production URL update.

  • Loading branch information...
commit 27f3972cbe29abb3a72034cf7bc58db604d6f02e 1 parent a35d862
@reid reid authored
View
2  build/rls/rls-debug.js
@@ -158,7 +158,7 @@ Y._rls = function(what) {
tests: 1 // required in the template
},
// The rls base path
- rls_base = config.rls_base || 'http://l.yimg.com/py/load?httpcache=rls-seed&gzip=1&',
+ rls_base = config.rls_base || 'http://loader.yahooapis.com/v1/load?',
// the template
rls_tmpl = config.rls_tmpl || function() {
View
2  build/rls/rls-min.js
@@ -1 +1 @@
-YUI.add("rls",function(a){a.rls_handleTimeout=function(b){a.Get.abort(b.tId);b.purge();b.message="RLS request timed out, fetching loader";a.rls_failure(b);};a.rls_handleFailure=function(b){b.message="RLS request failed, fetching loader";a.rls_failure(b);};a.rls_failure=function(b){YUI.Env.rls_disabled=true;a.config.use_rls=false;if(b.data){b.data.unshift("loader");a._use(b.data,function(d,c){d._notify(d.rls_callback,c,b.data);d.rls_advance();});}};a.rls_locals=function(i,e,c){if(YUI.Env.rls_disabled){var g={message:"RLS is disabled, moving to loader",data:e};a.rls_failure(g);return;}if(i.config.modules){var b=[],d=a.Array.hash(e),k="fullpath",h,j=i.config.modules;for(h in j){if(j[h][k]){if(d[h]){b.push(j[h][k]);if(j[h].requires){a.Array.each(j[h].requires,function(l){if(!YUI.Env.mods[l]){if(j[l]){if(j[l][k]){b.push(j[l][k]);e.push(l);}}}});}}}}if(b.length){a.Get.script(b,{onEnd:function(f){c(i,e);},data:e});}else{c(i,e);}}else{c(i,e);}};a.rls_needs=function(g,c){var d=c||this,e=d.config,f,b=YUI.Env.aliases[g];if(b){for(f=0;f<b.length;f++){if(a.rls_needs(b[f])){return true;}}return false;}if(!YUI.Env.mods[g]&&!(e.modules&&e.modules[g])){return true;}return false;};a._rls=function(u){var y=a.config,e=y.modules,g=a.Array,b=a.Object,f=y.rls||{m:1,v:a.version,gv:y.gallery,env:1,lang:y.lang,"2in3v":y["2in3"],"2v":y.yui2,filt:y.filter,filts:y.filters,ignore:y.ignore,tests:1},l=y.rls_base||"http://l.yimg.com/py/load?httpcache=rls-seed&gzip=1&",n=y.rls_tmpl||function(){var d=[],i;for(i in f){if(i in f&&f[i]){d.push(i+"={"+i+"}");}}return d.join("&");}(),q=[],h={},p,v,z,x,r,k=[],s,t=u.length,c;for(s=0;s<t;s++){x=YUI.Env.aliases[u[s]];if(x){for(r=0;r<x.length;r++){k.push(x[r]);}}else{k.push(u[s]);}}u=k;t=u.length;for(s=0;s<t;s++){h[u[s]]=1;if(a.rls_needs(u[s])){q.push(u[s]);}else{}}if(e){for(s in e){if(h[s]&&e[s].requires&&!e[s].noop){t=e[s].requires.length;for(p=0;p<t;p++){z=e[s].requires[p];if(a.rls_needs(z)){q.push(z);}else{v=YUI.Env.mods[z]||e[z];if(v){v=v.details||v;if(!v.noop){if(v.requires){g.each(v.requires,function(d){if(a.rls_needs(d)){q.push(d);}});}}}}}}}}b.each(YUI.Env.mods,function(d){if(h[d.name]){if(d.details&&d.details.requires){if(!d.noop){g.each(d.details.requires,function(i){if(a.rls_needs(i)){q.push(i);}});}}}});function A(d){if(a.rls_needs(d)){q.unshift(d);}}if(f.filt==="debug"){g.each(["dump","yui-log"],A);}if(a.config.groups){A("loader-base");}q=g.dedupe(q);q=g.dedupe(q);u=g.dedupe(u);if(!q.length){return false;}f.m=q.sort();f.env=[].concat(b.keys(YUI.Env.mods),g.dedupe(YUI._rls_skins)).sort();f.tests=a.Features.all("load",[a]);c=a.Lang.sub(l+n,f);y.rls=f;y.rls_tmpl=n;YUI._rls_active={asked:u,attach:q,inst:a,url:c};return c;};a.rls_oncomplete=function(b){YUI._rls_active.cb=b;};a.rls_advance=function(){var b=YUI.Env;b._rls_in_progress=false;if(b._rls_queue.size()){b._rls_queue.next()();}};a.rls_done=function(b){b.success=true;YUI._rls_active.cb(b);};if(!YUI._rls_active){YUI._rls_active={};}if(!YUI._rls_skins){YUI._rls_skins=[];}if(!YUI.$rls){YUI.$rls=function(e){var g=YUI._rls_active,f=g.inst;if(f){if(e.error){if(!e.missing){e.missing=[];}f.rls_failure({message:e.error,data:[].concat(e.modules,e.missing)});}if(YUI.Env&&YUI.Env.rls_disabled){return;}if(e.css&&f.config.fetchCSS){f.Get.css(g.url+"&css=1");}if(e.modules&&!e.css){if(e.modules.length){var d=f.Array.some(e.modules,function(h){return(h.indexOf("lang")===0);});if(d){e.modules.unshift("intl");}}f.Env.bootstrapped=true;f.Array.each(e.modules,function(h){if(h.indexOf("skin-")>-1){YUI._rls_skins.push(h);}});f._attach([].concat(e.modules,g.asked));var c=e.missing;if(f.config.groups){if(!c){c=[];}c=[].concat(c,g.what);}if(c&&f.Loader){var b=new f.Loader(g.inst.config);b.onEnd=f.rls_done;b.context=f;b.data=c;b.ignoreRegistered=false;b.require(c);b.insert(null,(f.config.fetchCSS)?null:"js");}else{f.rls_done({data:e.modules});}}}};}},"@VERSION@",{requires:["get","features"]});
+YUI.add("rls",function(a){a.rls_handleTimeout=function(b){a.Get.abort(b.tId);b.purge();b.message="RLS request timed out, fetching loader";a.rls_failure(b);};a.rls_handleFailure=function(b){b.message="RLS request failed, fetching loader";a.rls_failure(b);};a.rls_failure=function(b){YUI.Env.rls_disabled=true;a.config.use_rls=false;if(b.data){b.data.unshift("loader");a._use(b.data,function(d,c){d._notify(d.rls_callback,c,b.data);d.rls_advance();});}};a.rls_locals=function(i,e,c){if(YUI.Env.rls_disabled){var g={message:"RLS is disabled, moving to loader",data:e};a.rls_failure(g);return;}if(i.config.modules){var b=[],d=a.Array.hash(e),k="fullpath",h,j=i.config.modules;for(h in j){if(j[h][k]){if(d[h]){b.push(j[h][k]);if(j[h].requires){a.Array.each(j[h].requires,function(l){if(!YUI.Env.mods[l]){if(j[l]){if(j[l][k]){b.push(j[l][k]);e.push(l);}}}});}}}}if(b.length){a.Get.script(b,{onEnd:function(f){c(i,e);},data:e});}else{c(i,e);}}else{c(i,e);}};a.rls_needs=function(g,c){var d=c||this,e=d.config,f,b=YUI.Env.aliases[g];if(b){for(f=0;f<b.length;f++){if(a.rls_needs(b[f])){return true;}}return false;}if(!YUI.Env.mods[g]&&!(e.modules&&e.modules[g])){return true;}return false;};a._rls=function(u){var y=a.config,e=y.modules,g=a.Array,b=a.Object,f=y.rls||{m:1,v:a.version,gv:y.gallery,env:1,lang:y.lang,"2in3v":y["2in3"],"2v":y.yui2,filt:y.filter,filts:y.filters,ignore:y.ignore,tests:1},l=y.rls_base||"http://loader.yahooapis.com/v1/load?",n=y.rls_tmpl||function(){var d=[],i;for(i in f){if(i in f&&f[i]){d.push(i+"={"+i+"}");}}return d.join("&");}(),q=[],h={},p,v,z,x,r,k=[],s,t=u.length,c;for(s=0;s<t;s++){x=YUI.Env.aliases[u[s]];if(x){for(r=0;r<x.length;r++){k.push(x[r]);}}else{k.push(u[s]);}}u=k;t=u.length;for(s=0;s<t;s++){h[u[s]]=1;if(a.rls_needs(u[s])){q.push(u[s]);}else{}}if(e){for(s in e){if(h[s]&&e[s].requires&&!e[s].noop){t=e[s].requires.length;for(p=0;p<t;p++){z=e[s].requires[p];if(a.rls_needs(z)){q.push(z);}else{v=YUI.Env.mods[z]||e[z];if(v){v=v.details||v;if(!v.noop){if(v.requires){g.each(v.requires,function(d){if(a.rls_needs(d)){q.push(d);}});}}}}}}}}b.each(YUI.Env.mods,function(d){if(h[d.name]){if(d.details&&d.details.requires){if(!d.noop){g.each(d.details.requires,function(i){if(a.rls_needs(i)){q.push(i);}});}}}});function A(d){if(a.rls_needs(d)){q.unshift(d);}}if(f.filt==="debug"){g.each(["dump","yui-log"],A);}if(a.config.groups){A("loader-base");}q=g.dedupe(q);q=g.dedupe(q);u=g.dedupe(u);if(!q.length){return false;}f.m=q.sort();f.env=[].concat(b.keys(YUI.Env.mods),g.dedupe(YUI._rls_skins)).sort();f.tests=a.Features.all("load",[a]);c=a.Lang.sub(l+n,f);y.rls=f;y.rls_tmpl=n;YUI._rls_active={asked:u,attach:q,inst:a,url:c};return c;};a.rls_oncomplete=function(b){YUI._rls_active.cb=b;};a.rls_advance=function(){var b=YUI.Env;b._rls_in_progress=false;if(b._rls_queue.size()){b._rls_queue.next()();}};a.rls_done=function(b){b.success=true;YUI._rls_active.cb(b);};if(!YUI._rls_active){YUI._rls_active={};}if(!YUI._rls_skins){YUI._rls_skins=[];}if(!YUI.$rls){YUI.$rls=function(e){var g=YUI._rls_active,f=g.inst;if(f){if(e.error){if(!e.missing){e.missing=[];}f.rls_failure({message:e.error,data:[].concat(e.modules,e.missing)});}if(YUI.Env&&YUI.Env.rls_disabled){return;}if(e.css&&f.config.fetchCSS){f.Get.css(g.url+"&css=1");}if(e.modules&&!e.css){if(e.modules.length){var d=f.Array.some(e.modules,function(h){return(h.indexOf("lang")===0);});if(d){e.modules.unshift("intl");}}f.Env.bootstrapped=true;f.Array.each(e.modules,function(h){if(h.indexOf("skin-")>-1){YUI._rls_skins.push(h);}});f._attach([].concat(e.modules,g.asked));var c=e.missing;if(f.config.groups){if(!c){c=[];}c=[].concat(c,g.what);}if(c&&f.Loader){var b=new f.Loader(g.inst.config);b.onEnd=f.rls_done;b.context=f;b.data=c;b.ignoreRegistered=false;b.require(c);b.insert(null,(f.config.fetchCSS)?null:"js");}else{f.rls_done({data:e.modules});}}}};}},"@VERSION@",{requires:["get","features"]});
View
2  build/rls/rls.js
@@ -151,7 +151,7 @@ Y._rls = function(what) {
tests: 1 // required in the template
},
// The rls base path
- rls_base = config.rls_base || 'http://l.yimg.com/py/load?httpcache=rls-seed&gzip=1&',
+ rls_base = config.rls_base || 'http://loader.yahooapis.com/v1/load?',
// the template
rls_tmpl = config.rls_tmpl || function() {
View
2  build/yui-rls/yui-rls-debug.js
@@ -4860,7 +4860,7 @@ Y._rls = function(what) {
tests: 1 // required in the template
},
// The rls base path
- rls_base = config.rls_base || 'http://l.yimg.com/py/load?httpcache=rls-seed&gzip=1&',
+ rls_base = config.rls_base || 'http://loader.yahooapis.com/v1/load?',
// the template
rls_tmpl = config.rls_tmpl || function() {
View
4 build/yui-rls/yui-rls-min.js
@@ -2,5 +2,5 @@ if(typeof YUI!="undefined"){YUI._YUI=YUI;}var YUI=function(){var c=0,f=this,b=ar
}var M,F,N,K,x=this,O=YUI.Env,z=O.mods,w=x.Env,C=w._used,J=O._loaderQueue,R=y[0],E=x.Array,P=x.config,D=P.bootstrap,L=[],H=[],Q=true,B=P.fetchCSS,I=function(T,S){if(!T.length){return;}E.each(T,function(W){if(!S){H.push(W);}if(C[W]){return;}var U=z[W],X,V;if(U){C[W]=true;X=U.details.requires;V=U.details.use;}else{if(!O._loaded[q][W]){L.push(W);}else{C[W]=true;}}if(X&&X.length){I(X);}if(V&&V.length){I(V,1);}});},G=function(W){var U=W||{success:true,msg:"not dynamic"},T,S,V=true,X=U.data;x._loading=false;if(X){S=L;L=[];H=[];I(X);T=L.length;if(T){if(L.sort().join()==S.sort().join()){T=false;}}}if(T&&X){x._loading=false;x._use(y,function(){if(x._attach(X)){x._notify(A,U,X);}});}else{if(X){V=x._attach(X);}if(V){x._notify(A,U,y);}}if(x._useQueue&&x._useQueue.size()&&!x._loading){x._use.apply(x,x._useQueue.next());}};if(R==="*"){Q=x._attach(x.Object.keys(z));if(Q){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);M=L.length;if(M){L=x.Object.keys(E.hash(L));M=L.length;}if(D&&M&&x.Loader){x._loading=true;F=j(x);F.onEnd=G;F.context=x;F.data=y;F.ignoreRegistered=false;F.require(y);F.insert(null,(B)?null:"js");}else{if(M&&x.config.use_rls&&!YUI.Env.rls_enabled){O._rls_queue=O._rls_queue||new x.Queue();K=function(S,U){var T=function(W){G(W);S.rls_advance();},V=S._rls(U);if(V){S.rls_oncomplete(function(W){T(W);});S.Get.script(V,{data:U,timeout:S.config.rls_timeout,onFailure:S.rls_handleFailure,onTimeout:S.rls_handleTimeout});}else{T({success:true,data:U});}};O._rls_queue.add(function(){O._rls_in_progress=true;x.rls_callback=A;x.rls_locals(x,y,K);});if(!O._rls_in_progress&&O._rls_queue.size()){O._rls_queue.next()();}}else{if(D&&M&&x.Get&&!w.bootstrapped){x._loading=true;N=function(){x._loading=false;J.running=false;w.bootstrapped=true;O._bootstrapping=false;if(x._attach(["loader"])){x._use(y,A);}};if(O._bootstrapping){J.add(N);}else{O._bootstrapping=true;x.Get.script(P.base+P.loaderPath,{onEnd:N});}}else{Q=x._attach(y);if(Q){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,dump:function(w){return""+w;},error:function(A,y,x){var z=this,w;if(z.config.errorFn){w=z.config.errorFn.apply(z,arguments);}if(z.config.throwFail&&!w){throw (y||new Error(A));}else{z.message(A,"error");}return z;},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(b){var i=b.Lang||(b.Lang={}),n=String.prototype,k=Object.prototype.toString,a={"undefined":"undefined","number":"number","boolean":"boolean","string":"string","[object Function]":"function","[object RegExp]":"regexp","[object Array]":"array","[object Date]":"date","[object Error]":"error"},c=/\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,s=/^\s+|\s+$/g,e=b.config.win,o=e&&!!(e.MooTools||e.Prototype);i.isArray=(!o&&Array.isArray)||function(w){return i.type(w)==="array";};i.isBoolean=function(w){return typeof w==="boolean";};i.isFunction=function(w){return i.type(w)==="function";};i.isDate=function(w){return i.type(w)==="date"&&w.toString()!=="Invalid Date"&&!isNaN(w);};i.isNull=function(w){return w===null;};i.isNumber=function(w){return typeof w==="number"&&isFinite(w);};i.isObject=function(y,x){var w=typeof y;return(y&&(w==="object"||(!x&&(w==="function"||i.isFunction(y)))))||false;};i.isString=function(w){return typeof w==="string";};i.isUndefined=function(w){return typeof w==="undefined";};i.trim=n.trim?function(w){return w&&w.trim?w.trim():w;}:function(w){try{return w.replace(s,"");}catch(x){return w;}};i.trimLeft=n.trimLeft?function(w){return w.trimLeft();}:function(w){return w.replace(/^\s+/,"");};i.trimRight=n.trimRight?function(w){return w.trimRight();}:function(w){return w.replace(/\s+$/,"");};i.isValue=function(x){var w=i.type(x);switch(w){case"number":return isFinite(x);case"null":case"undefined":return false;default:return !!w;}};i.type=function(w){return a[typeof w]||a[k.call(w)]||(w?"object":"null");};i.sub=function(w,x){return w.replace?w.replace(c,function(y,z){return i.isUndefined(x[z])?y:x[z];}):w;};i.now=Date.now||function(){return new Date().getTime();};var f=b.Lang,r=Array.prototype,p=Object.prototype.hasOwnProperty;function j(y,B,A){var x,w;B||(B=0);if(A||j.test(y)){try{return r.slice.call(y,B);}catch(z){w=[];for(x=y.length;B<x;++B){w.push(y[B]);}return w;}}return[y];}b.Array=j;j.dedupe=function(B){var A={},y=[],x,z,w;for(x=0,w=B.length;x<w;++x){z=B[x];if(!p.call(A,z)){A[z]=1;y.push(z);}}return y;};j.each=j.forEach=r.forEach?function(y,w,x){r.forEach.call(y||[],w,x||b);return b;}:function(A,y,z){for(var x=0,w=(A&&A.length)||0;x<w;++x){if(x in A){y.call(z||b,A[x],x,A);}}return b;};j.hash=function(z,x){var A={},B=(x&&x.length)||0,y,w;for(y=0,w=z.length;y<w;++y){if(y in z){A[z[y]]=B>y&&y in x?x[y]:true;}}return A;};j.indexOf=r.indexOf?function(x,w){return r.indexOf.call(x,w);}:function(z,y){for(var x=0,w=z.length;x<w;++x){if(x in z&&z[x]===y){return x;}}return -1;};j.numericSort=function(x,w){return x-w;};j.some=r.some?function(y,w,x){return r.some.call(y,w,x);}:function(A,y,z){for(var x=0,w=A.length;x<w;++x){if(x in A&&y.call(z,A[x],x,A)){return true;}}return false;};j.test=function(y){var w=0;if(f.isArray(y)){w=1;}else{if(f.isObject(y)){try{if("length" in y&&!y.tagName&&!y.alert&&!y.apply){w=2;}}catch(x){}}}return w;
};function u(){this._init();this.add.apply(this,arguments);}u.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){this._q.push.apply(this._q,arguments);return this;},size:function(){return this._q.length;}};b.Queue=u;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new u();var m="__",p=Object.prototype.hasOwnProperty,l=b.Lang.isObject;b.cached=function(y,w,x){w||(w={});return function(z){var A=arguments.length>1?Array.prototype.join.call(arguments,m):String(z);if(!(A in w)||(x&&w[A]==x)){w[A]=y.apply(y,arguments);}return w[A];};};b.merge=function(){var y=arguments,z=0,x=y.length,w={};for(;z<x;++z){b.mix(w,y[z],true);}return w;};b.mix=function(w,x,D,y,A,E){var B,H,G,z,I,C,F;if(!w||!x){return w||b;}if(A){if(A===2){b.mix(w.prototype,x.prototype,D,y,0,E);}G=A===1||A===3?x.prototype:x;F=A===1||A===4?w.prototype:w;if(!G||!F){return w;}}else{G=x;F=w;}B=D&&!E;if(y){for(z=0,C=y.length;z<C;++z){I=y[z];if(!p.call(G,I)){continue;}H=B?false:I in F;if(E&&H&&l(F[I],true)&&l(G[I],true)){b.mix(F[I],G[I],D,null,0,E);}else{if(D||!H){F[I]=G[I];}}}}else{for(I in G){if(!p.call(G,I)){continue;}H=B?false:I in F;if(E&&H&&l(F[I],true)&&l(G[I],true)){b.mix(F[I],G[I],D,null,0,E);}else{if(D||!H){F[I]=G[I];}}}if(b.Object._hasEnumBug){b.mix(F,G,D,b.Object._forceEnum,A,E);}}return w;};var p=Object.prototype.hasOwnProperty,e=b.config.win,o=e&&!!(e.MooTools||e.Prototype),v,g=b.Object=(!o&&Object.create)?function(w){return Object.create(w);}:(function(){function w(){}return function(x){w.prototype=x;return new w();};}()),d=g._forceEnum=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","toLocaleString","valueOf"],t=g._hasEnumBug=!{valueOf:0}.propertyIsEnumerable("valueOf"),q=g._hasProtoEnumBug=(function(){}).propertyIsEnumerable("prototype"),h=g.owns=function(x,w){return !!x&&p.call(x,w);};g.hasKey=h;g.keys=(!o&&Object.keys)||function(A){if(!b.Lang.isObject(A)){throw new TypeError("Object.keys called on a non-object");}var z=[],y,x,w;if(q&&typeof A==="function"){for(x in A){if(h(A,x)&&x!=="prototype"){z.push(x);}}}else{for(x in A){if(h(A,x)){z.push(x);}}}if(t){for(y=0,w=d.length;y<w;++y){x=d[y];if(h(A,x)){z.push(x);}}}return z;};g.values=function(A){var z=g.keys(A),y=0,w=z.length,x=[];for(;y<w;++y){x.push(A[z[y]]);}return x;};g.size=function(x){try{return g.keys(x).length;}catch(w){return 0;}};g.hasValue=function(x,w){return b.Array.indexOf(g.values(x),w)>-1;};g.each=function(z,x,A,y){var w;for(w in z){if(y||h(z,w)){x.call(A||b,z[w],w,z);}}return b;};g.some=function(z,x,A,y){var w;for(w in z){if(y||h(z,w)){if(x.call(A||b,z[w],w,z)){return true;}}}return false;};g.getValue=function(A,z){if(!b.Lang.isObject(A)){return v;}var x,y=b.Array(z),w=y.length;for(x=0;A!==v&&x<w;x++){A=A[y[x]];}return A;};g.setValue=function(C,A,B){var w,z=b.Array(A),y=z.length-1,x=C;if(y>=0){for(w=0;x!==v&&w<y;w++){x=x[z[w]];}if(x!==v){x[z[w]]=B;}else{return v;}}return C;};g.isEmpty=function(w){return !g.keys(w).length;};YUI.Env.parseUA=function(C){var B=function(F){var G=0;return parseFloat(F.replace(/\./g,function(){return(G++==1)?"":".";}));},E=b.config.win,w=E&&E.navigator,z={ie:0,opera:0,gecko:0,webkit:0,safari:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,caja:w&&w.cajaVersion,secure:false,os:null},x=C||w&&w.userAgent,D=E&&E.location,y=D&&D.href,A;z.userAgent=x;z.secure=y&&(y.toLowerCase().indexOf("https")===0);if(x){if((/windows|win32/i).test(x)){z.os="windows";}else{if((/macintosh/i).test(x)){z.os="macintosh";}else{if((/rhino/i).test(x)){z.os="rhino";}}}if((/KHTML/).test(x)){z.webkit=1;}A=x.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){z.webkit=B(A[1]);z.safari=z.webkit;if(/ Mobile\//.test(x)){z.mobile="Apple";A=x.match(/OS ([^\s]*)/);if(A&&A[1]){A=B(A[1].replace("_","."));}z.ios=A;z.ipad=z.ipod=z.iphone=0;A=x.match(/iPad|iPod|iPhone/);if(A&&A[0]){z[A[0].toLowerCase()]=z.ios;}}else{A=x.match(/NokiaN[^\/]*|webOS\/\d\.\d/);if(A){z.mobile=A[0];}if(/webOS/.test(x)){z.mobile="WebOS";A=x.match(/webOS\/([^\s]*);/);if(A&&A[1]){z.webos=B(A[1]);}}if(/ Android/.test(x)){if(/Mobile/.test(x)){z.mobile="Android";}A=x.match(/Android ([^\s]*);/);if(A&&A[1]){z.android=B(A[1]);}}}A=x.match(/Chrome\/([^\s]*)/);if(A&&A[1]){z.chrome=B(A[1]);z.safari=0;}else{A=x.match(/AdobeAIR\/([^\s]*)/);if(A){z.air=A[0];}}}if(!z.webkit){A=x.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){z.opera=B(A[1]);A=x.match(/Version\/([^\s]*)/);if(A&&A[1]){z.opera=B(A[1]);}A=x.match(/Opera Mini[^;]*/);if(A){z.mobile=A[0];}}else{A=x.match(/MSIE\s([^;]*)/);if(A&&A[1]){z.ie=B(A[1]);}else{A=x.match(/Gecko\/([^\s]*)/);if(A){z.gecko=1;A=x.match(/rv:([^\s\)]*)/);if(A&&A[1]){z.gecko=B(A[1]);}}}}}}if(!C){YUI.Env.UA=z;}return z;};b.UA=YUI.Env.UA||YUI.Env.parseUA();YUI.Env.aliases={"anim":["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],"app":["controller","model","model-list","view"],"attribute":["attribute-base","attribute-complex"],"autocomplete":["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],"base":["base-base","base-pluginhost","base-build"],"cache":["cache-base","cache-offline","cache-plugin"],"collection":["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"],"dataschema":["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"],"datasource":["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"],"datatable":["datatable-base","datatable-datasource","datatable-sort","datatable-scroll"],"datatype":["datatype-number","datatype-date","datatype-xml"],"datatype-date":["datatype-date-parse","datatype-date-format"],"datatype-number":["datatype-number-parse","datatype-number-format"],"datatype-xml":["datatype-xml-parse","datatype-xml-format"],"dd":["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"],"dom":["dom-base","dom-screen","dom-style","selector-native","selector"],"editor":["frame","selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"],"event":["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside"],"event-custom":["event-custom-base","event-custom-complex"],"event-gestures":["event-flick","event-move"],"highlight":["highlight-base","highlight-accentfold"],"history":["history-base","history-hash","history-hash-ie","history-html5"],"io":["io-base","io-xdr","io-form","io-upload-iframe","io-queue"],"json":["json-parse","json-stringify"],"loader":["loader-base","loader-rollup","loader-yui3"],"node":["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"],"pluginhost":["pluginhost-base","pluginhost-config"],"querystring":["querystring-parse","querystring-stringify"],"recordset":["recordset-base","recordset-sort","recordset-filter","recordset-indexer"],"resize":["resize-base","resize-proxy","resize-constrain"],"slider":["slider-base","slider-value-range","clickable-rail","range-slider"],"text":["text-accentfold","text-wordbreak"],"widget":["widget-base","widget-htmlparser","widget-uievents","widget-skin"]};
},"@VERSION@");YUI.add("get",function(e){var B=e.UA,p=e.Lang,b="text/javascript",v="text/css",I="stylesheet",s="script",q="autopurge",A="utf-8",w="link",C="async",h=true,l={script:h,css:!(B.webkit||B.gecko)},z={},r=0,g,u=function(J){var K=J.timer;if(K){clearTimeout(K);J.timer=null;}},m=function(M,J,P,N){var K=N||e.config.win,O=K.document,Q=O.createElement(M),L;if(P){e.mix(J,P);}for(L in J){if(J[L]&&J.hasOwnProperty(L)){Q.setAttribute(L,J[L]);}}return Q;},k=function(K,L,J){return m(w,{id:e.guid(),type:v,rel:I,href:K},J,L);},E=function(K,L,J){return m(s,{id:e.guid(),type:b,src:K},J,L);},a=function(K,L,J){return{tId:K.tId,win:K.win,data:K.data,nodes:K.nodes,msg:L,statusText:J,purge:function(){d(this.tId);}};},o=function(N,M,J){var L=z[N],K=L&&L.onEnd;L.finished=true;if(K){K.call(L.context,a(L,M,J));}},F=function(M,L){var K=z[M],J=K.onFailure;u(K);if(J){J.call(K.context,a(K,L));}o(M,L,"failure");},y=function(J){F(J,"transaction "+J+" was aborted");},x=function(L){var J=z[L],K=J.onSuccess;u(J);if(J.aborted){y(L);}else{if(K){K.call(J.context,a(J));}o(L,undefined,"OK");}},H=function(J,M){var K=z[M],L=(p.isString(J))?K.win.document.getElementById(J):J;if(!L){F(M,"target node not found: "+J);}return L;},d=function(O){var K,R,S,T,L,Q,P,N,M,J=z[O];if(J){K=J.nodes;M=K.length;for(N=0;N<M;N++){L=K[N];S=L.parentNode;if(L.clearAttributes){L.clearAttributes();}else{for(Q in L){if(L.hasOwnProperty(Q)){delete L[Q];}}}S.removeChild(L);}}J.nodes=[];},t=function(N,J){var K=z[N],L=K.onProgress,M;if(L){M=a(K);M.url=J;L.call(K.context,M);}},D=function(L){var J=z[L],K=J.onTimeout;if(K){K.call(J.context,a(J));}o(L,"timeout","timeout");},f=function(M,J){var L=z[M],K=(L&&!L.async);if(!L){return;}if(K){u(L);}t(M,J);if(!L.finished){if(L.aborted){y(M);}else{if((--L.remaining)===0){x(M);}else{if(K){i(M);}}}}},c=function(K,M,L,J){if(B.ie){M.onreadystatechange=function(){var N=this.readyState;if("loaded"===N||"complete"===N){M.onreadystatechange=null;f(L,J);}};}else{if(B.webkit){if(K===s){M.addEventListener("load",function(){f(L,J);},false);}}else{M.onload=function(){f(L,J);};M.onerror=function(N){F(L,N+": "+J);};}}},G=function(L,P,O){var M=z[P],N=O.document,J=M.insertBefore||N.getElementsByTagName("base")[0],K;if(J){K=H(J,P);if(K){K.parentNode.insertBefore(L,K);}}else{N.getElementsByTagName("head")[0].appendChild(L);}},i=function(Q){var O=z[Q],L=O.type,K=O.attributes,P=O.win,N=O.timeout,M,J;if(O.url.length>0){J=O.url.shift();if(N&&!O.timer){O.timer=setTimeout(function(){D(Q);},N);}if(L===s){M=E(J,P,K);}else{M=k(J,P,K);}O.nodes.push(M);c(L,M,Q,J);G(M,Q,P);if(!l[L]){f(Q,J);}if(O.async){i(Q);}}},n=function(){if(g){return;}g=true;var J,K;for(J in z){if(z.hasOwnProperty(J)){K=z[J];if(K.autopurge&&K.finished){d(K.tId);delete z[J];}}}g=false;},j=function(K,J,L){L=L||{};var O="q"+(r++),N=L.purgethreshold||e.Get.PURGE_THRESH,M;if(r%N===0){n();}M=z[O]=e.merge(L);M.tId=O;M.type=K;M.url=J;M.finished=false;M.nodes=[];M.win=M.win||e.config.win;M.context=M.context||M;M.autopurge=(q in M)?M.autopurge:(K===s)?true:false;M.attributes=M.attributes||{};M.attributes.charset=L.charset||M.attributes.charset||A;if(C in M&&K===s){M.attributes.async=M.async;}M.url=(p.isString(M.url))?[M.url]:M.url;if(!M.url[0]){M.url.shift();}M.remaining=M.url.length;i(O);return{tId:O};};e.Get={PURGE_THRESH:20,abort:function(K){var L=(p.isString(K))?K:K.tId,J=z[L];if(J){J.aborted=true;}},script:function(J,K){return j(s,J,K);},css:function(J,K){return j("css",J,K);}};},"@VERSION@",{requires:["yui-base"]});YUI.add("features",function(b){var c={};b.mix(b.namespace("Features"),{tests:c,add:function(d,e,f){c[d]=c[d]||{};c[d][e]=f;},all:function(e,f){var g=c[e],d=[];if(g){b.Object.each(g,function(i,h){d.push(h+":"+(b.Features.test(e,h,f)?1:0));});}return(d.length)?d.join(";"):"";},test:function(e,g,f){f=f||[];var d,i,k,j=c[e],h=j&&j[g];if(!h){}else{d=h.result;if(b.Lang.isUndefined(d)){i=h.ua;if(i){d=(b.UA[i]);}k=h.test;if(k&&((!i)||d)){d=k.apply(b,f);}h.result=d;}}return d;}});var a=b.Features.add;a("load","0",{"name":"graphics-canvas-default","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(d&&d.getContext&&d.getContext("2d")));},"trigger":"graphics"});a("load","1",{"name":"autocomplete-list-keys","test":function(d){return !(d.UA.ios||d.UA.android);},"trigger":"autocomplete-list"});a("load","2",{"name":"graphics-svg","test":function(e){var d=e.config.doc;return(d&&d.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"});a("load","3",{"name":"history-hash-ie","test":function(e){var d=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange" in e.config.win)||!d||d<8);},"trigger":"history-hash"});a("load","4",{"name":"graphics-vml-default","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});a("load","5",{"name":"graphics-svg-default","test":function(e){var d=e.config.doc;return(d&&d.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"});a("load","6",{"name":"widget-base-ie","trigger":"widget-base","ua":"ie"});a("load","7",{"name":"transition-timer","test":function(g){var f=g.config.doc,e=(f)?f.documentElement:null,d=true;if(e&&e.style){d=!("MozTransition" in e.style||"WebkitTransition" in e.style);}return d;},"trigger":"transition"});a("load","8",{"name":"dom-style-ie","test":function(j){var h=j.Features.test,i=j.Features.add,f=j.config.win,g=j.config.doc,d="documentElement",e=false;i("style","computedStyle",{test:function(){return f&&"getComputedStyle" in f;}});i("style","opacity",{test:function(){return g&&"opacity" in g[d].style;}});e=(!h("style","opacity")&&!h("style","computedStyle"));return e;},"trigger":"dom-style"});a("load","9",{"name":"selector-css2","test":function(f){var e=f.config.doc,d=e&&!("querySelectorAll" in e);
-return d;},"trigger":"selector"});a("load","10",{"name":"event-base-ie","test":function(e){var d=e.config.doc&&e.config.doc.implementation;return(d&&(!d.hasFeature("Events","2.0")));},"trigger":"node-base"});a("load","11",{"name":"dd-gestures","test":function(d){return(d.config.win&&("ontouchstart" in d.config.win&&!d.UA.chrome));},"trigger":"dd-drag"});a("load","12",{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"});a("load","13",{"name":"graphics-canvas","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(d&&d.getContext&&d.getContext("2d")));},"trigger":"graphics"});a("load","14",{"name":"graphics-vml","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});},"@VERSION@",{requires:["yui-base"]});YUI.add("intl-base",function(b){var a=/[, ]/;b.mix(b.namespace("Intl"),{lookupBestLang:function(g,h){var f,j,c,e;function d(l){var k;for(k=0;k<h.length;k+=1){if(l.toLowerCase()===h[k].toLowerCase()){return h[k];}}}if(b.Lang.isString(g)){g=g.split(a);}for(f=0;f<g.length;f+=1){j=g[f];if(!j||j==="*"){continue;}while(j.length>0){c=d(j);if(c){return c;}else{e=j.lastIndexOf("-");if(e>=0){j=j.substring(0,e);if(e>=2&&j.charAt(e-2)==="-"){j=j.substring(0,e-2);}}else{break;}}}}return"";}});},"@VERSION@",{requires:["yui-base"]});YUI.add("rls",function(a){a.rls_handleTimeout=function(b){a.Get.abort(b.tId);b.purge();b.message="RLS request timed out, fetching loader";a.rls_failure(b);};a.rls_handleFailure=function(b){b.message="RLS request failed, fetching loader";a.rls_failure(b);};a.rls_failure=function(b){YUI.Env.rls_disabled=true;a.config.use_rls=false;if(b.data){b.data.unshift("loader");a._use(b.data,function(d,c){d._notify(d.rls_callback,c,b.data);d.rls_advance();});}};a.rls_locals=function(i,e,c){if(YUI.Env.rls_disabled){var g={message:"RLS is disabled, moving to loader",data:e};a.rls_failure(g);return;}if(i.config.modules){var b=[],d=a.Array.hash(e),k="fullpath",h,j=i.config.modules;for(h in j){if(j[h][k]){if(d[h]){b.push(j[h][k]);if(j[h].requires){a.Array.each(j[h].requires,function(l){if(!YUI.Env.mods[l]){if(j[l]){if(j[l][k]){b.push(j[l][k]);e.push(l);}}}});}}}}if(b.length){a.Get.script(b,{onEnd:function(f){c(i,e);},data:e});}else{c(i,e);}}else{c(i,e);}};a.rls_needs=function(g,c){var d=c||this,e=d.config,f,b=YUI.Env.aliases[g];if(b){for(f=0;f<b.length;f++){if(a.rls_needs(b[f])){return true;}}return false;}if(!YUI.Env.mods[g]&&!(e.modules&&e.modules[g])){return true;}return false;};a._rls=function(u){var y=a.config,e=y.modules,g=a.Array,b=a.Object,f=y.rls||{m:1,v:a.version,gv:y.gallery,env:1,lang:y.lang,"2in3v":y["2in3"],"2v":y.yui2,filt:y.filter,filts:y.filters,ignore:y.ignore,tests:1},l=y.rls_base||"http://l.yimg.com/py/load?httpcache=rls-seed&gzip=1&",n=y.rls_tmpl||function(){var d=[],i;for(i in f){if(i in f&&f[i]){d.push(i+"={"+i+"}");}}return d.join("&");}(),q=[],h={},p,v,z,x,r,k=[],s,t=u.length,c;for(s=0;s<t;s++){x=YUI.Env.aliases[u[s]];if(x){for(r=0;r<x.length;r++){k.push(x[r]);}}else{k.push(u[s]);}}u=k;t=u.length;for(s=0;s<t;s++){h[u[s]]=1;if(a.rls_needs(u[s])){q.push(u[s]);}else{}}if(e){for(s in e){if(h[s]&&e[s].requires&&!e[s].noop){t=e[s].requires.length;for(p=0;p<t;p++){z=e[s].requires[p];if(a.rls_needs(z)){q.push(z);}else{v=YUI.Env.mods[z]||e[z];if(v){v=v.details||v;if(!v.noop){if(v.requires){g.each(v.requires,function(d){if(a.rls_needs(d)){q.push(d);}});}}}}}}}}b.each(YUI.Env.mods,function(d){if(h[d.name]){if(d.details&&d.details.requires){if(!d.noop){g.each(d.details.requires,function(i){if(a.rls_needs(i)){q.push(i);}});}}}});function A(d){if(a.rls_needs(d)){q.unshift(d);}}if(f.filt==="debug"){g.each(["dump","yui-log"],A);}if(a.config.groups){A("loader-base");}q=g.dedupe(q);q=g.dedupe(q);u=g.dedupe(u);if(!q.length){return false;}f.m=q.sort();f.env=[].concat(b.keys(YUI.Env.mods),g.dedupe(YUI._rls_skins)).sort();f.tests=a.Features.all("load",[a]);c=a.Lang.sub(l+n,f);y.rls=f;y.rls_tmpl=n;YUI._rls_active={asked:u,attach:q,inst:a,url:c};return c;};a.rls_oncomplete=function(b){YUI._rls_active.cb=b;};a.rls_advance=function(){var b=YUI.Env;b._rls_in_progress=false;if(b._rls_queue.size()){b._rls_queue.next()();}};a.rls_done=function(b){b.success=true;YUI._rls_active.cb(b);};if(!YUI._rls_active){YUI._rls_active={};}if(!YUI._rls_skins){YUI._rls_skins=[];}if(!YUI.$rls){YUI.$rls=function(e){var g=YUI._rls_active,f=g.inst;if(f){if(e.error){if(!e.missing){e.missing=[];}f.rls_failure({message:e.error,data:[].concat(e.modules,e.missing)});}if(YUI.Env&&YUI.Env.rls_disabled){return;}if(e.css&&f.config.fetchCSS){f.Get.css(g.url+"&css=1");}if(e.modules&&!e.css){if(e.modules.length){var d=f.Array.some(e.modules,function(h){return(h.indexOf("lang")===0);});if(d){e.modules.unshift("intl");}}f.Env.bootstrapped=true;f.Array.each(e.modules,function(h){if(h.indexOf("skin-")>-1){YUI._rls_skins.push(h);}});f._attach([].concat(e.modules,g.asked));var c=e.missing;if(f.config.groups){if(!c){c=[];}c=[].concat(c,g.what);}if(c&&f.Loader){var b=new f.Loader(g.inst.config);b.onEnd=f.rls_done;b.context=f;b.data=c;b.ignoreRegistered=false;b.require(c);b.insert(null,(f.config.fetchCSS)?null:"js");}else{f.rls_done({data:e.modules});}}}};}},"@VERSION@",{requires:["get","features"]});YUI.add("yui-log",function(d){var c=d,e="yui:log",a="undefined",b={debug:1,info:1,warn:1,error:1};c.log=function(j,s,g,q){var l,p,n,k,o,i=c,r=i.config,h=(i.fire)?i:YUI.Env.globalEvents;if(r.debug){if(g){p=r.logExclude;n=r.logInclude;if(n&&!(g in n)){l=1;}else{if(n&&(g in n)){l=!n[g];}else{if(p&&(g in p)){l=p[g];}}}}if(!l){if(r.useBrowserConsole){k=(g)?g+": "+j:j;if(i.Lang.isFunction(r.logFn)){r.logFn.call(i,j,s,g);}else{if(typeof console!=a&&console.log){o=(s&&console[s]&&(s in b))?s:"log";console[o](k);}else{if(typeof opera!=a){opera.postError(k);
-}}}}if(h&&!q){if(h==i&&(!h.getEvent(e))){h.publish(e,{broadcast:2});}h.fire(e,{msg:j,cat:s,src:g});}}}return i;};c.message=function(){return c.log.apply(c,arguments);};},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-later",function(b){var a=[];b.later=function(j,f,k,g,h){j=j||0;g=(!b.Lang.isUndefined(g))?b.Array(g):a;f=f||b.config.win||b;var i=false,c=(f&&b.Lang.isString(k))?f[k]:k,d=function(){if(!i){if(!c.apply){c(g[0],g[1],g[2],g[3]);}else{c.apply(f,g||a);}}},e=(h)?setInterval(d,j):setTimeout(d,j);return{id:e,interval:h,cancel:function(){i=true;if(this.interval){clearInterval(e);}else{clearTimeout(e);}}};};b.Lang.later=b.later;},"@VERSION@",{requires:["yui-base"]});YUI.add("yui",function(a){},"@VERSION@",{use:["yui-base","get","features","intl-base","rls","yui-log","yui-later"]});
+return d;},"trigger":"selector"});a("load","10",{"name":"event-base-ie","test":function(e){var d=e.config.doc&&e.config.doc.implementation;return(d&&(!d.hasFeature("Events","2.0")));},"trigger":"node-base"});a("load","11",{"name":"dd-gestures","test":function(d){return(d.config.win&&("ontouchstart" in d.config.win&&!d.UA.chrome));},"trigger":"dd-drag"});a("load","12",{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"});a("load","13",{"name":"graphics-canvas","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(d&&d.getContext&&d.getContext("2d")));},"trigger":"graphics"});a("load","14",{"name":"graphics-vml","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});},"@VERSION@",{requires:["yui-base"]});YUI.add("intl-base",function(b){var a=/[, ]/;b.mix(b.namespace("Intl"),{lookupBestLang:function(g,h){var f,j,c,e;function d(l){var k;for(k=0;k<h.length;k+=1){if(l.toLowerCase()===h[k].toLowerCase()){return h[k];}}}if(b.Lang.isString(g)){g=g.split(a);}for(f=0;f<g.length;f+=1){j=g[f];if(!j||j==="*"){continue;}while(j.length>0){c=d(j);if(c){return c;}else{e=j.lastIndexOf("-");if(e>=0){j=j.substring(0,e);if(e>=2&&j.charAt(e-2)==="-"){j=j.substring(0,e-2);}}else{break;}}}}return"";}});},"@VERSION@",{requires:["yui-base"]});YUI.add("rls",function(a){a.rls_handleTimeout=function(b){a.Get.abort(b.tId);b.purge();b.message="RLS request timed out, fetching loader";a.rls_failure(b);};a.rls_handleFailure=function(b){b.message="RLS request failed, fetching loader";a.rls_failure(b);};a.rls_failure=function(b){YUI.Env.rls_disabled=true;a.config.use_rls=false;if(b.data){b.data.unshift("loader");a._use(b.data,function(d,c){d._notify(d.rls_callback,c,b.data);d.rls_advance();});}};a.rls_locals=function(i,e,c){if(YUI.Env.rls_disabled){var g={message:"RLS is disabled, moving to loader",data:e};a.rls_failure(g);return;}if(i.config.modules){var b=[],d=a.Array.hash(e),k="fullpath",h,j=i.config.modules;for(h in j){if(j[h][k]){if(d[h]){b.push(j[h][k]);if(j[h].requires){a.Array.each(j[h].requires,function(l){if(!YUI.Env.mods[l]){if(j[l]){if(j[l][k]){b.push(j[l][k]);e.push(l);}}}});}}}}if(b.length){a.Get.script(b,{onEnd:function(f){c(i,e);},data:e});}else{c(i,e);}}else{c(i,e);}};a.rls_needs=function(g,c){var d=c||this,e=d.config,f,b=YUI.Env.aliases[g];if(b){for(f=0;f<b.length;f++){if(a.rls_needs(b[f])){return true;}}return false;}if(!YUI.Env.mods[g]&&!(e.modules&&e.modules[g])){return true;}return false;};a._rls=function(u){var y=a.config,e=y.modules,g=a.Array,b=a.Object,f=y.rls||{m:1,v:a.version,gv:y.gallery,env:1,lang:y.lang,"2in3v":y["2in3"],"2v":y.yui2,filt:y.filter,filts:y.filters,ignore:y.ignore,tests:1},l=y.rls_base||"http://loader.yahooapis.com/v1/load?",n=y.rls_tmpl||function(){var d=[],i;for(i in f){if(i in f&&f[i]){d.push(i+"={"+i+"}");}}return d.join("&");}(),q=[],h={},p,v,z,x,r,k=[],s,t=u.length,c;for(s=0;s<t;s++){x=YUI.Env.aliases[u[s]];if(x){for(r=0;r<x.length;r++){k.push(x[r]);}}else{k.push(u[s]);}}u=k;t=u.length;for(s=0;s<t;s++){h[u[s]]=1;if(a.rls_needs(u[s])){q.push(u[s]);}else{}}if(e){for(s in e){if(h[s]&&e[s].requires&&!e[s].noop){t=e[s].requires.length;for(p=0;p<t;p++){z=e[s].requires[p];if(a.rls_needs(z)){q.push(z);}else{v=YUI.Env.mods[z]||e[z];if(v){v=v.details||v;if(!v.noop){if(v.requires){g.each(v.requires,function(d){if(a.rls_needs(d)){q.push(d);}});}}}}}}}}b.each(YUI.Env.mods,function(d){if(h[d.name]){if(d.details&&d.details.requires){if(!d.noop){g.each(d.details.requires,function(i){if(a.rls_needs(i)){q.push(i);}});}}}});function A(d){if(a.rls_needs(d)){q.unshift(d);}}if(f.filt==="debug"){g.each(["dump","yui-log"],A);}if(a.config.groups){A("loader-base");}q=g.dedupe(q);q=g.dedupe(q);u=g.dedupe(u);if(!q.length){return false;}f.m=q.sort();f.env=[].concat(b.keys(YUI.Env.mods),g.dedupe(YUI._rls_skins)).sort();f.tests=a.Features.all("load",[a]);c=a.Lang.sub(l+n,f);y.rls=f;y.rls_tmpl=n;YUI._rls_active={asked:u,attach:q,inst:a,url:c};return c;};a.rls_oncomplete=function(b){YUI._rls_active.cb=b;};a.rls_advance=function(){var b=YUI.Env;b._rls_in_progress=false;if(b._rls_queue.size()){b._rls_queue.next()();}};a.rls_done=function(b){b.success=true;YUI._rls_active.cb(b);};if(!YUI._rls_active){YUI._rls_active={};}if(!YUI._rls_skins){YUI._rls_skins=[];}if(!YUI.$rls){YUI.$rls=function(e){var g=YUI._rls_active,f=g.inst;if(f){if(e.error){if(!e.missing){e.missing=[];}f.rls_failure({message:e.error,data:[].concat(e.modules,e.missing)});}if(YUI.Env&&YUI.Env.rls_disabled){return;}if(e.css&&f.config.fetchCSS){f.Get.css(g.url+"&css=1");}if(e.modules&&!e.css){if(e.modules.length){var d=f.Array.some(e.modules,function(h){return(h.indexOf("lang")===0);});if(d){e.modules.unshift("intl");}}f.Env.bootstrapped=true;f.Array.each(e.modules,function(h){if(h.indexOf("skin-")>-1){YUI._rls_skins.push(h);}});f._attach([].concat(e.modules,g.asked));var c=e.missing;if(f.config.groups){if(!c){c=[];}c=[].concat(c,g.what);}if(c&&f.Loader){var b=new f.Loader(g.inst.config);b.onEnd=f.rls_done;b.context=f;b.data=c;b.ignoreRegistered=false;b.require(c);b.insert(null,(f.config.fetchCSS)?null:"js");}else{f.rls_done({data:e.modules});}}}};}},"@VERSION@",{requires:["get","features"]});YUI.add("yui-log",function(d){var c=d,e="yui:log",a="undefined",b={debug:1,info:1,warn:1,error:1};c.log=function(j,s,g,q){var l,p,n,k,o,i=c,r=i.config,h=(i.fire)?i:YUI.Env.globalEvents;if(r.debug){if(g){p=r.logExclude;n=r.logInclude;if(n&&!(g in n)){l=1;}else{if(n&&(g in n)){l=!n[g];}else{if(p&&(g in p)){l=p[g];}}}}if(!l){if(r.useBrowserConsole){k=(g)?g+": "+j:j;if(i.Lang.isFunction(r.logFn)){r.logFn.call(i,j,s,g);}else{if(typeof console!=a&&console.log){o=(s&&console[s]&&(s in b))?s:"log";console[o](k);}else{if(typeof opera!=a){opera.postError(k);}}}}if(h&&!q){if(h==i&&(!h.getEvent(e))){h.publish(e,{broadcast:2});
+}h.fire(e,{msg:j,cat:s,src:g});}}}return i;};c.message=function(){return c.log.apply(c,arguments);};},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-later",function(b){var a=[];b.later=function(j,f,k,g,h){j=j||0;g=(!b.Lang.isUndefined(g))?b.Array(g):a;f=f||b.config.win||b;var i=false,c=(f&&b.Lang.isString(k))?f[k]:k,d=function(){if(!i){if(!c.apply){c(g[0],g[1],g[2],g[3]);}else{c.apply(f,g||a);}}},e=(h)?setInterval(d,j):setTimeout(d,j);return{id:e,interval:h,cancel:function(){i=true;if(this.interval){clearInterval(e);}else{clearTimeout(e);}}};};b.Lang.later=b.later;},"@VERSION@",{requires:["yui-base"]});YUI.add("yui",function(a){},"@VERSION@",{use:["yui-base","get","features","intl-base","rls","yui-log","yui-later"]});
View
2  build/yui-rls/yui-rls.js
@@ -4822,7 +4822,7 @@ Y._rls = function(what) {
tests: 1 // required in the template
},
// The rls base path
- rls_base = config.rls_base || 'http://l.yimg.com/py/load?httpcache=rls-seed&gzip=1&',
+ rls_base = config.rls_base || 'http://loader.yahooapis.com/v1/load?',
// the template
rls_tmpl = config.rls_tmpl || function() {
Please sign in to comment.
Something went wrong with that request. Please try again.