/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

//>>built
(function(b,m){var e,q,p=function(){},l=function(a){for(var c in a)return 0;return 1},r={}.toString,k=function(a){return"[object Function]"==r.call(a)},g=function(a){return"[object String]"==r.call(a)},a=function(a){return"[object Array]"==r.call(a)},f=function(a,c){if(a)for(var d=0;d<a.length;)c(a[d++])},d=function(a,c){for(var d in c)a[d]=c[d];return a},c=function(a,c){return d(Error(a),{src:"dojoLoader",info:c})},h=1,s=function(){return"_"+h++},n=function(a,c,d){return Ma(a,c,d,0,n)},t=this,w=
t.document,v=w&&w.createElement("DiV"),u=n.has=function(a){return k(A[a])?A[a]=A[a](t,w,v):A[a]},A=u.cache=m.hasCache;u.add=function(a,c,d,b){(void 0===A[a]||b)&&(A[a]=c);return d&&u(a)};for(var z in b.has)u.add(z,b.has[z],0,1);var y=0,x=[],E=0,J=p,M=p,L;n.isXdUrl=p;n.initSyncLoader=function(a,c,d){E||(E=a,J=c,M=d);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:x,modules:B,execQ:Q,getModule:U,injectModule:qa,setArrived:ba,signal:H,finishExec:fa,execModule:ga,
dojoRequirePlugin:E,getLegacyMode:function(){return y},guardCheckComplete:ha}};var R=location.protocol,Z=location.host;n.isXdUrl=function(a){return/^\./.test(a)?!1:/^\/\//.test(a)?!0:(a=a.match(/^([^\/\:]+\:)\/+([^\/]+)/))&&(a[1]!=R||Z&&a[2]!=Z)};u.add("dojo-force-activex-xhr",!w.addEventListener&&"file:"==window.location.protocol);u.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(u("native-xhr")&&!u("dojo-force-activex-xhr"))L=function(){return new XMLHttpRequest};else{var C=["Msxml2.XMLHTTP",
"Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],F;for(e=0;3>e;)try{if(F=C[e++],new ActiveXObject(F))break}catch(O){}L=function(){return new ActiveXObject(F)}}n.getXhr=L;u.add("dojo-gettext-api",1);n.getText=function(a,d,b){var f=L();f.open("GET",ra(a),!1);f.send(null);if(200==f.status||!location.host&&!f.status)b&&b(f.responseText,d);else throw c("xhrFailed",f.status);return f.responseText};var I=new Function("return eval(arguments[0]);");n.eval=function(a,c){return I(a+"\r\n////@ sourceURL\x3d"+c)};var K=
{},H=n.signal=function(c,d){var b=K[c];f(b&&b.slice(0),function(c){c.apply(null,a(d)?d:[d])})},ia=n.on=function(a,c){var d=K[a]||(K[a]=[]);d.push(c);return{remove:function(){for(var a=0;a<d.length;a++)if(d[a]===c){d.splice(a,1);break}}}},T=[],$={},P=[],G={},V=n.map={},D=[],B={},ja="",N={},ca={},X={},da=0,sa=function(a){var c,d,b,f;for(c in ca)d=ca[c],(b=c.match(/^url\:(.+)/))?N["url:"+Na(b[1],a)]=d:"*now"==c?f=d:"*noref"!=c&&(b=ka(c,a,!0),N[b.mid]=N["url:"+b.url]=d);f&&f(Ca(a));ca={}},Oa=function(a){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,
function(a){return"\\"+a})},Da=function(a,c){c.splice(0,c.length);for(var d in a)c.push([d,a[d],RegExp("^"+Oa(d)+"(/|$)"),d.length]);c.sort(function(a,c){return c[3]-a[3]});return c},ab=function(a,c){f(a,function(a){c.push([g(a[0])?RegExp("^"+Oa(a[0])+"$"):a[0],a[1]])})},Pa=function(a){var c=a.name;c||(c=a,a={name:c});a=d({main:"main"},a);a.location=a.location?a.location:c;a.packageMap&&(V[c]=a.packageMap);a.main.indexOf("./")||(a.main=a.main.substring(2));G[c]=a},Qa=[],la=function(a,c,b){for(var h in a){"waitSeconds"==
h&&(n.waitms=1E3*(a[h]||0));"cacheBust"==h&&(ja=a[h]?g(a[h])?a[h]:(new Date).getTime()+"":"");if("baseUrl"==h||"combo"==h)n[h]=a[h];if("async"==h){var l=a[h];n.legacyMode=y=g(l)&&/sync|legacyAsync/.test(l)?l:!l?"sync":!1;n.async=!y}a[h]!==A&&(n.rawConfig[h]=a[h],"has"!=h&&u.add("config-"+h,a[h],0,c))}n.baseUrl||(n.baseUrl="./");/\/$/.test(n.baseUrl)||(n.baseUrl+="/");for(h in a.has)u.add(h,a.has[h],0,c);f(a.packages,Pa);for(q in a.packagePaths)f(a.packagePaths[q],function(a){var c=q+"/"+a;g(a)&&(a=
{name:a});a.location=c;Pa(a)});Da(d(V,a.map),D);f(D,function(a){a[1]=Da(a[1],[]);"*"==a[0]&&(D.star=a)});Da(d($,a.paths),P);ab(a.aliases,T);if(c)Qa.push({config:a.config});else for(h in a.config)c=U(h,b),c.config=d(c.config||{},a.config[h]);a.cache&&(sa(),ca=a.cache,a.cache["*noref"]&&sa());H("config",[a,n.rawConfig])};u("dojo-cdn");var ta=w.getElementsByTagName("script");e=0;for(var W,aa,ua,ma;e<ta.length;){W=ta[e++];if((ua=W.getAttribute("src"))&&(ma=ua.match(/(((.*)\/)|^)dojo\.js(\W|$)/i)))aa=
ma[3]||"",m.baseUrl=m.baseUrl||aa,da=W;if(ua=W.getAttribute("data-dojo-config")||W.getAttribute("djConfig"))X=n.eval("({ "+ua+" })","data-dojo-config"),da=W}n.rawConfig={};la(m,1);u("dojo-cdn")&&((G.dojo.location=aa)&&(aa+="/"),G.dijit.location=aa+"../dijit/",G.dojox.location=aa+"../dojox/");la(b,1);la(X,1);var na=function(a){ha(function(){f(a.deps,qa)})},Ma=function(b,f,h,l,k){var v;if(g(b)){if((v=U(b,l,!0))&&v.executed)return v.result;throw c("undefinedModule",b);}a(b)||(la(b,0,l),b=f,f=h);if(a(b))if(b.length){h=
"require*"+s();for(var e,r=[],u=0;u<b.length;)e=b[u++],r.push(U(e,l));v=d(va("",h,0,""),{injected:2,deps:r,def:f||p,require:l?l.require:n,gc:1});B[v.mid]=v;na(v);var t=oa&&"sync"!=y;ha(function(){ga(v,t)});v.executed||Q.push(v);ea()}else f&&f();return k},Ca=function(a){if(!a)return n;var c=a.require;c||(c=function(d,b,f){return Ma(d,b,f,a,c)},a.require=d(c,n),c.module=a,c.toUrl=function(c){return Na(c,a)},c.toAbsMid=function(c){return Ea(c,a)},c.syncLoadNls=function(c){c=ka(c,a);var d=B[c.mid];if(!d||
!d.executed)if(Y=N[c.mid]||N["url:"+c.url])wa(Y),d=B[c.mid];return d&&d.executed&&d.result});return c},Q=[],xa=[],S={},bb=function(a){a.injected=1;S[a.mid]=1;a.url&&(S[a.url]=a.pack||1);Ra()},ba=function(a){a.injected=2;delete S[a.mid];a.url&&delete S[a.url];l(S)&&(ya(),"xd"==y&&(y="sync"))},cb=n.idle=function(){return!xa.length&&l(S)&&!Q.length&&!oa},Fa=function(a,c){if(c)for(var d=0;d<c.length;d++)if(c[d][2].test(a))return c[d];return 0},Sa=function(a){var c=[],d,b;for(a=a.replace(/\\/g,"/").split("/");a.length;)d=
a.shift(),".."==d&&c.length&&".."!=b?(c.pop(),b=c[c.length-1]):"."!=d&&c.push(b=d);return c.join("/")},va=function(a,c,d,b){var f=n.isXdUrl(b);return{pid:a,mid:c,pack:d,url:b,executed:0,def:0,isXd:f,isAmd:!!(f||G[a]&&G[a].isAmd)}},Ta=function(a,d,b,h,l,g,v,n,e){var p,s,r,t;t=/^\./.test(a);if(/(^\/)|(\:)|(\.js$)/.test(a)||t&&!d)return va(0,a,0,a);a=Sa(t?d.mid+"/../"+a:a);if(/^\./.test(a))throw c("irrationalPath",a);d&&(r=Fa(d.mid,g));(r=(r=r||g.star)&&Fa(a,r[1]))&&(a=r[1]+a.substring(r[3]));d=(ma=
a.match(/^([^\/]+)(\/(.+))?$/))?ma[1]:"";(p=b[d])?a=d+"/"+(s=ma[3]||p.main):d="";var q=0;f(n,function(c){var d=a.match(c[0]);d&&0<d.length&&(q=k(c[1])?a.replace(c[0],c[1]):c[1])});if(q)return Ta(q,0,b,h,l,g,v,n,e);if(b=h[a])return e?va(b.pid,b.mid,b.pack,b.url):h[a];h=(r=Fa(a,v))?r[1]+a.substring(r[3]):d?p.location+"/"+s:u("config-tlmSiblingOfDojo")?"../"+a:a;/(^\/)|(\:)/.test(h)||(h=l+h);return va(d,a,p,Sa(h+".js"))},ka=function(a,c,d){return Ta(a,c,G,B,n.baseUrl,d?[]:D,d?[]:P,d?[]:T)},Ua=function(a,
c,d){return a.normalize?a.normalize(c,function(a){return Ea(a,d)}):Ea(c,d)},Va=0,U=function(a,c,d){var b,f;(b=a.match(/^(.+?)\!(.*)$/))?(f=U(b[1],c,d),"sync"==y&&!f.executed&&(qa(f),2===f.injected&&!f.executed&&ha(function(){ga(f)}),f.executed?za(f):Q.unshift(f)),5===f.executed&&!f.load&&za(f),f.load?(b=Ua(f,b[2],c),a=f.mid+"!"+(f.dynamic?++Va+"!":"")+b):(b=b[2],a=f.mid+"!"+ ++Va+"!waitingForPlugin"),a={plugin:f,mid:a,req:Ca(c),prid:b}):a=ka(a,c);return B[a.mid]||!d&&(B[a.mid]=a)},Ea=n.toAbsMid=function(a,
c){return ka(a,c).mid},Na=n.toUrl=function(a,c){var d=ka(a+"/x",c),b=d.url;return ra(0===d.pid?a:b.substring(0,b.length-5))},Wa={injected:2,executed:5,def:3,result:3},Ga=function(a){return B[a]=d({mid:a},Wa)},db=Ga("require"),eb=Ga("exports"),fb=Ga("module"),Aa={},Ha=0,za=function(a){var c=a.result;a.dynamic=c.dynamic;a.normalize=c.normalize;a.load=c.load;return a},gb=function(a){var c={};f(a.loadQ,function(b){var f=Ua(a,b.prid,b.req.module),h=a.dynamic?b.mid.replace(/waitingForPlugin$/,f):a.mid+
"!"+f,f=d(d({},b),{mid:h,prid:f,injected:0});B[h]||Xa(B[h]=f);c[b.mid]=B[h];ba(b);delete B[b.mid]});a.loadQ=0;var b=function(a){for(var d=a.deps||[],b=0;b<d.length;b++)(a=c[d[b].mid])&&(d[b]=a)},h;for(h in B)b(B[h]);f(Q,b)},fa=function(a){n.trace("loader-finish-exec",[a.mid]);a.executed=5;a.defOrder=Ha++;f(a.provides,function(a){a()});a.loadQ&&(za(a),gb(a));for(e=0;e<Q.length;)Q[e]===a?Q.splice(e,1):e++;/^require\*/.test(a.mid)&&delete B[a.mid]},hb=[],ga=function(a,d){if(4===a.executed)return n.trace("loader-circular-dependency",
[hb.concat(a.mid).join("-\x3e")]),!a.def||d?Aa:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return Aa;var b=a.mid,f=a.deps||[],h,g=[],l=0;for(a.executed=4;h=f[l++];){h=h===db?Ca(a):h===eb?a.cjs.exports:h===fb?a.cjs:ga(h,d);if(h===Aa)return a.executed=0,n.trace("loader-exec-module",["abort",b]),Aa;g.push(h)}n.trace("loader-run-factory",[a.mid]);var b=a.def,v;x.unshift(a);if(u("config-dojo-loader-catches"))try{v=k(b)?b.apply(null,g):b}catch(e){H("error",a.result=c("factoryThrew",[a,e]))}else v=k(b)?
b.apply(null,g):b;a.result=void 0===v&&a.cjs?a.cjs.exports:v;x.shift(a);fa(a)}return a.result},oa=0,ha=function(a){try{oa++,a()}finally{oa--}cb()&&H("idle",[])},ea=function(){oa||ha(function(){J();for(var a,c,d=0;d<Q.length;)a=Ha,c=Q[d],ga(c),a!=Ha?(J(),d=0):d++})};void 0===u("dojo-loader-eval-hint-url")&&u.add("dojo-loader-eval-hint-url",1);var ra=function(a){a+="";return a+(ja?(/\?/.test(a)?"\x26":"?")+ja:"")},Xa=function(a){var c=a.plugin;5===c.executed&&!c.load&&za(c);var d=function(c){a.result=
c;ba(a);fa(a);ea()};c.load?c.load(a.prid,a.req,d):c.loadQ?c.loadQ.push(a):(c.loadQ=[a],Q.unshift(c),qa(c))},Y=0,pa=0,Ia=0,wa=function(a,d){u("config-stripStrict")&&(a=a.replace(/"use strict"/g,""));Ia=1;if(u("config-dojo-loader-catches"))try{a===Y?Y.call(null):n.eval(a,u("dojo-loader-eval-hint-url")?d.url:d.mid)}catch(b){H("error",c("evalModuleThrew",d))}else a===Y?Y.call(null):n.eval(a,u("dojo-loader-eval-hint-url")?d.url:d.mid);Ia=0},qa=function(a){var b=a.mid,h=a.url;if(!a.executed&&!a.injected&&
!(S[b]||a.url&&(a.pack&&S[a.url]===a.pack||1==S[a.url])))if(bb(a),a.plugin)Xa(a);else{var g=function(){Ya(a);if(2!==a.injected){if(u("dojo-enforceDefine")){H("error",c("noDefine",a));return}ba(a);d(a,Wa);n.trace("loader-define-nonmodule",[a.url])}y?!x.length&&ea():ea()};if(Y=N[b]||N["url:"+a.url])n.trace("loader-inject",["cache",a.mid,h]),wa(Y,a),g();else{if(y)if(a.isXd)"sync"==y&&(y="xd");else if(!(a.isAmd&&"sync"!=y)){var l=function(c){if("sync"==y){x.unshift(a);wa(c,a);x.shift();Ya(a);a.cjs||(ba(a),
fa(a));if(a.finish){c=b+"*finish";var d=a.finish;delete a.finish;Ja(c,["dojo",("dojo/require!"+d.join(",")).replace(/\./g,"/")],function(a){f(d,function(c){a.require(c)})});Q.unshift(U(c))}g()}else(c=M(a,c))?(wa(c,a),g()):(pa=a,n.injectUrl(ra(h),g,a),pa=0)};n.trace("loader-inject",["xhr",a.mid,h,"sync"!=y]);if(u("config-dojo-loader-catches"))try{n.getText(h,"sync"!=y,l)}catch(v){H("error",c("xhrInjectFailed",[a,v]))}else n.getText(h,"sync"!=y,l);return}n.trace("loader-inject",["script",a.mid,h]);
pa=a;n.injectUrl(ra(h),g,a);pa=0}}},Ka=function(a,b,f){n.trace("loader-define-module",[a.mid,b]);var h=a.mid;if(2===a.injected)return H("error",c("multipleDefine",a)),a;d(a,{deps:b,def:f,cjs:{id:a.mid,uri:a.url,exports:a.result={},setExports:function(c){a.cjs.exports=c},config:function(){return a.config}}});for(var g=0;b[g];g++)b[g]=U(b[g],a);y&&!S[h]&&(na(a),Q.push(a),ea());ba(a);!k(f)&&!b.length&&(a.result=f,fa(a));return a},Ya=function(a,c){for(var d=[],b,h;xa.length;)h=xa.shift(),c&&(h[0]=c.shift()),
b=h[0]&&U(h[0])||a,d.push([b,h[1],h[2]]);sa(a);f(d,function(a){na(Ka.apply(null,a))})},Ba=0,ya=p,Ra=p,ya=function(){Ba&&clearTimeout(Ba);Ba=0},Ra=function(){ya();n.waitms&&(Ba=window.setTimeout(function(){ya();H("error",c("timeout",S))},n.waitms))};u.add("ie-event-behavior",w.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var La=function(a,c,d,b){if(u("ie-event-behavior"))return a.attachEvent(d,b),function(){a.detachEvent(d,b)};a.addEventListener(c,
b,!1);return function(){a.removeEventListener(c,b,!1)}},ib=La(window,"load","onload",function(){n.pageLoaded=1;"complete"!=w.readyState&&(w.readyState="complete");ib()}),ta=w.getElementsByTagName("script");for(e=0;!da;)if(!/^dojo/.test((W=ta[e++])&&W.type))da=W;n.injectUrl=function(a,d,b){b=b.node=w.createElement("script");var f=La(b,"load","onreadystatechange",function(a){a=a||window.event;var c=a.target||a.srcElement;if("load"===a.type||/complete|loaded/.test(c.readyState))f(),h(),d&&d()}),h=La(b,
"error","onerror",function(d){f();h();H("error",c("scriptError",[a,d]))});b.type="text/javascript";b.charset="utf-8";b.src=a;da.parentNode.insertBefore(b,da);return b};n.log=function(){try{for(var a=0;a<arguments.length;a++);}catch(c){}};n.trace=p;var Ja=function(a,d,b){var f=arguments.length,h=["require","exports","module"],l=[0,a,d];1==f?l=[0,k(a)?h:[],a]:2==f&&g(a)?l=[a,k(d)?h:[],d]:3==f&&(l=[a,d,b]);n.trace("loader-define",l.slice(0,2));if((f=l[0]&&U(l[0]))&&!S[f.mid])na(Ka(f,l[1],l[2]));else if(!u("ie-event-behavior")||
Ia)xa.push(l);else{f=f||pa;if(!f)for(a in S)if((h=B[a])&&h.node&&"interactive"===h.node.readyState){f=h;break}f?(sa(f),na(Ka(f,l[1],l[2]))):H("error",c("ieDefineFailed",l[0]));ea()}};Ja.amd={vendor:"dojotoolkit.org"};d(d(n,m.loaderPatch),b.loaderPatch);ia("error",function(a){try{if(console.error(a),a instanceof Error)for(var c in a);}catch(d){}});d(n,{uid:s,cache:N,packs:G});if(t.define)H("error",c("defineAlreadyDefined",0));else{t.define=Ja;t.require=n;f(Qa,function(a){la(a)});var Za=X.deps||b.deps||
m.deps,$a=X.callback||b.callback||m.callback;n.boot=Za||$a?[Za||[],$a]:0}})(this.dojoConfig||this.djConfig||this.require||{},{async:"legacyAsync",hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-cdn":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:".",name:"dojo"}]});
require({cache:{"dojo/request/default":function(){define(["exports","require","../has"],function(b,m,e){var q=e("config-requestProvider");q||(q="./xhr");b.getPlatformDefaultId=function(){return"./xhr"};b.load=function(b,l,e,k){m(["platform"==b?"./xhr":q],function(b){e(b)})}})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(b,m,e,q,p,l,r,k,g){var a=e.mixin,f={},d=f._Line=function(a,c){this.start=a;this.end=
c};d.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var c=f.Animation=function(c){a(this,c);e.isArray(this.curve)&&(this.curve=new d(this.curve[0],this.curve[1]))};c.prototype=new q;e.extend(c,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,c=this.easing;return c?c(a):a},_fire:function(a,c){var d=c||[];if(this[a])if(m.debugAtAllCosts)this[a].apply(this,d);else try{this[a].apply(this,d)}catch(b){console.error("exception in animation handler for:",
a),console.error(b)}return this},play:function(a,c){this._delayTimer&&this._clearTimer();if(c)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var d=a||this.delay,b=e.hitch(this,"_play",c);if(0<d)return this._delayTimer=setTimeout(b,d),this;b();return this},_play:function(a){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);
this._active=!0;this._paused=!1;a=this.curve.getValue(this._getStep());this._percent||(this._startRepeatCount||(this._startRepeatCount=this.repeat),this._fire("onBegin",[a]));this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,c){this._stopTimer();this._active=this._paused=!0;this._percent=
a;c&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();a&&(this._percent=1);this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=(new Date).valueOf(),a=0===this.duration?1:(a-this._startTime)/this.duration;1<=a&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));
this._fire("onAnimate",[this.curve.getValue(a)]);1>this._percent?this._startTimer():(this._active=!1,0<this.repeat?(this.repeat--,this.play(null,!0)):-1==this.repeat?this.play(null,!0):this._startRepeatCount&&(this.repeat=this._startRepeatCount,this._startRepeatCount=0),this._percent=0,this._fire("onEnd",[this.node]),!this.repeat&&this._stopTimer())}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var h=0,s=null,n={run:function(){}};e.extend(c,{_startTimer:function(){this._timer||
(this._timer=l.after(n,"run",e.hitch(this,"_cycle"),!0),h++);s||(s=setInterval(e.hitch(n,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,h--);0>=h&&(clearInterval(s),s=null,h=0)}});var t=r("ie")?function(a){var c=a.style;!c.width.length&&"auto"==g.get(a,"width")&&(c.width="auto")}:function(){};f._fade=function(c){c.node=k.byId(c.node);var d=a({properties:{}},c);c=d.properties.opacity={};c.start=!("start"in d)?function(){return+g.get(d.node,"opacity")||
0}:d.start;c.end=d.end;c=f.animateProperty(d);l.after(c,"beforeBegin",e.partial(t,d.node),!0);return c};f.fadeIn=function(c){return f._fade(a({end:1},c))};f.fadeOut=function(c){return f._fade(a({end:0},c))};f._defaultEasing=function(a){return 0.5+Math.sin((a+1.5)*Math.PI)/2};var w=function(a){this._properties=a;for(var c in a){var d=a[c];d.start instanceof p&&(d.tempColor=new p)}};w.prototype.getValue=function(a){var c={},d;for(d in this._properties){var b=this._properties[d],f=b.start;f instanceof
p?c[d]=p.blendColors(f,b.end,a,b.tempColor).toCss():e.isArray(f)||(c[d]=(b.end-f)*a+f+("opacity"!=d?b.units||"px":0))}return c};f.animateProperty=function(d){var f=d.node=k.byId(d.node);d.easing||(d.easing=b._defaultEasing);d=new c(d);l.after(d,"beforeBegin",e.hitch(d,function(){var c={},d;for(d in this.properties){if("width"==d||"height"==d)this.node.display="block";var b=this.properties[d];e.isFunction(b)&&(b=b(f));b=c[d]=a({},e.isObject(b)?b:{end:b});e.isFunction(b.start)&&(b.start=b.start(f));
e.isFunction(b.end)&&(b.end=b.end(f));var h=0<=d.toLowerCase().indexOf("color"),l=function(a,c){var d={height:a.offsetHeight,width:a.offsetWidth}[c];if(void 0!==d)return d;d=g.get(a,c);return"opacity"==c?+d:h?d:parseFloat(d)};"end"in b?"start"in b||(b.start=l(f,d)):b.end=l(f,d);h?(b.start=new p(b.start),b.end=new p(b.end)):b.start="opacity"==d?+b.start:parseFloat(b.start)}this.curve=new w(c)}),!0);l.after(d,"onAnimate",e.hitch(g,"set",d.node),!0);return d};f.anim=function(a,d,b,h,l,g){return f.animateProperty({node:a,
duration:b||c.prototype.duration,properties:d,easing:h,onEnd:l}).play(g||0)};a(b,f);b._Animation=c;return f})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(b,m,e,q){var p={fieldToObject:function(b){var e=null;if(b=m.byId(b)){var k=b.name,g=(b.type||"").toLowerCase();if(k&&g&&!b.disabled)if("radio"==g||"checkbox"==g)b.checked&&(e=b.value);else if(b.multiple){e=[];for(b=[b.firstChild];b.length;)for(k=b.pop();k;k=k.nextSibling)if(1==k.nodeType&&"option"==
k.tagName.toLowerCase())k.selected&&e.push(k.value);else{k.nextSibling&&b.push(k.nextSibling);k.firstChild&&b.push(k.firstChild);break}}else e=b.value}return e},toObject:function(l){var e={};l=m.byId(l).elements;for(var k=0,g=l.length;k<g;++k){var a=l[k],f=a.name,d=(a.type||"").toLowerCase();if(f&&d&&0>"file|submit|image|reset|button".indexOf(d)&&!a.disabled){var c=e,h=f,a=p.fieldToObject(a);if(null!==a){var s=c[h];"string"==typeof s?c[h]=[s,a]:b.isArray(s)?s.push(a):c[h]=a}"image"==d&&(e[f+".x"]=
e[f+".y"]=e[f].x=e[f].y=0)}}return e},toQuery:function(b){return e.objectToQuery(p.toObject(b))},toJson:function(b,e){return q.stringify(p.toObject(b),null,e?4:0)}};return p})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),function(b,m,e,q,p,l,r,k,g){e.add("dojo-preload-i18n-Api",1);var a=b.i18n={},f=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,d=function(a,c,d,b){var f=[d+b];c=c.split("-");for(var h="",g=0;g<
c.length;g++)if(h+=(h?"-":"")+c[g],!a||a[h])f.push(d+h+"/"+b),f.specificity=h;return f},c={},h=function(a,c,d){d=d?d.toLowerCase():b.locale;a=a.replace(/\./g,"/");c=c.replace(/\./g,"/");return/root/i.test(d)?a+"/nls/"+c:a+"/nls/"+d+"/"+c},s=b.getL10nName=function(a,c,d){return g.id+"!"+h(a,c,d)},n=function(a,b,f,h,g,k){a([b],function(e){var n=l.clone(e.root||e.ROOT),p=d(!e._v1x&&e,g,f,h);a(p,function(){for(var a=1;a<p.length;a++)n=l.mixin(l.clone(n),arguments[a]);c[b+"/"+g]=n;n.$locale=p.specificity;
k()})})},t=function(a){var c=p.extraLocale||[],c=l.isArray(c)?c:[c];c.push(a);return c},w=function(a,d,h){if(e("dojo-preload-i18n-Api")){var g=a.split("*"),p="preload"==g[1];p&&(c[a]||(c[a]=1,y(g[2],k.parse(g[3]),1,d)),h(1));if(!(g=p))A&&z.push([a,d,h]),g=A;if(g)return}a=f.exec(a);var s=a[1]+"/",r=a[5]||a[4],v=s+r,g=(a=a[5]&&a[4])||b.locale||"",m=v+"/"+g;a=a?[g]:t(g);var u=a.length,w=function(){--u||h(l.delegate(c[m]))};q.forEach(a,function(a){var b=v+"/"+a;e("dojo-preload-i18n-Api")&&x(b);c[b]?w():
n(d,v,s,r,a,w)})};if(e("dojo-unit-tests"))var v=a.unitTests=[];e("dojo-preload-i18n-Api");var u=a.normalizeLocale=function(a){a=a?a.toLowerCase():b.locale;return"root"==a?"ROOT":a},A=0,z=[],y=a._preloadLocalizations=function(a,d,f,h){function g(a,c){h.isXdUrl(m.toUrl(a+".js"))||f?h([a],c):M([a],c,h)}function e(a,c){for(var d=a.split("-");d.length;){if(c(d.join("-")))return;d.pop()}c("ROOT")}function k(){for(--A;!A&&z.length;)w.apply(null,z.shift())}function n(b){b=u(b);e(b,function(f){if(0<=q.indexOf(d,
f)){var n=a.replace(/\./g,"/")+"_"+f;A++;g(n,function(a){for(var d in a){var g=a[d],n=d.match(/(.+)\/([^\/]+)$/),p;if(n){p=n[2];n=n[1]+"/";g._localized=g._localized||{};var s;if("ROOT"===f){var r=s=g._localized;delete g._localized;r.root=g;c[m.toAbsMid(d)]=r}else s=g._localized,c[m.toAbsMid(n+p+"/"+f)]=g;f!==b&&function(a,d,f,g){var n=[],p=[];e(b,function(c){g[c]&&(n.push(m.toAbsMid(a+c+"/"+d)),p.push(m.toAbsMid(a+d+"/"+c)))});n.length?(A++,h(n,function(){for(var h=0;h<n.length;h++)f=l.mixin(l.clone(f),
arguments[h]),c[p[h]]=f;c[m.toAbsMid(a+d+"/"+b)]=l.clone(f);k()})):c[m.toAbsMid(a+d+"/"+b)]=f}(n,p,g,s)}}k()});return!0}return!1})}h=h||m;n();q.forEach(b.config.extraLocale,n)},x=function(){},E={},J=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define \x3d function(mid, factory){define.called \x3d 1; __amdValue.result \x3d factory || mid;},\t   require \x3d function(){define.called \x3d 1;};try{define.called \x3d 0;eval(__bundle);if(define.called\x3d\x3d1)return __amdValue;if((__checkForLegacyModules \x3d __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),
M=function(a,d,b){var f=[];q.forEach(a,function(a){function d(b){b=J(b,x,a,E);b===E?f.push(c[h]=E.result):(b instanceof Error&&(console.error("failed to evaluate i18n bundle; url\x3d"+h,b),b={}),f.push(c[h]=/nls\/[^\/]+\/[^\/]+$/.test(h)?b:{root:b,_v1x:1}))}var h=b.toUrl(a+".js");if(c[h])f.push(c[h]);else{var g=b.syncLoadNls(a);if(g)f.push(g);else if(r)r.get({url:h,sync:!0,load:d,error:function(){f.push(c[h]={})}});else try{b.getText(h,!0,d)}catch(l){f.push(c[h]={})}}});d&&d.apply(null,f)},x=function(a){for(var d,
f=a.split("/"),h=b.global[f[0]],g=1;h&&g<f.length-1;h=h[f[g++]]);h&&((d=h[f[g]])||(d=h[f[g].replace(/-/g,"_")]),d&&(c[a]=d));return d};a.getLocalization=function(a,c,d){var b;a=h(a,c,d);w(a,!m.isXdUrl(m.toUrl(a+".js"))?function(a,c){M(a,c,m)}:m,function(a){b=a});return b};e("dojo-unit-tests")&&v.push(function(a){a.register("tests.i18n.unit",function(a){var c;c=J("{prop:1}",x,"nonsense",E);a.is({prop:1},c);a.is(void 0,c[1]);c=J("({prop:1})",x,"nonsense",E);a.is({prop:1},c);a.is(void 0,c[1]);c=J("{'prop-x':1}",
x,"nonsense",E);a.is({"prop-x":1},c);a.is(void 0,c[1]);c=J("({'prop-x':1})",x,"nonsense",E);a.is({"prop-x":1},c);a.is(void 0,c[1]);c=J("define({'prop-x':1})",x,"nonsense",E);a.is(E,c);a.is({"prop-x":1},E.result);c=J("define('some/module', {'prop-x':1})",x,"nonsense",E);a.is(E,c);a.is({"prop-x":1},E.result);c=J("this is total nonsense and should throw an error",x,"nonsense",E);a.is(c instanceof Error,!0)})});return l.mixin(a,{dynamic:!0,normalize:function(a,c){return/^\./.test(a)?c(a):a},load:w,cache:c,
getL10nName:s})})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(b,m,e){function q(b){setTimeout(function(){l.apply(p,b)},0)}var p=new e,l=p.emit;p.emit=null;m.prototype.trace=function(){var l=b._toArray(arguments);this.then(function(b){q(["resolved",b].concat(l))},function(b){q(["rejected",b].concat(l))},function(b){q(["progress",b].concat(l))});return this};m.prototype.traceRejected=function(){var l=b._toArray(arguments);this.otherwise(function(b){q(["rejected",
b].concat(l))});return this};return p})},"dojo/errors/RequestError":function(){define(["./create"],function(b){return b("RequestError",function(b,e){this.response=e})})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(b,m,e,q,p,l,r,k){b.byId=m.byId;b.isDescendant=m.isDescendant;b.setSelectable=m.setSelectable;b.getAttr=q.get;b.setAttr=q.set;b.hasAttr=q.has;b.removeAttr=q.remove;b.getNodeProp=
q.getNodeProp;b.attr=function(b,a,f){return 2==arguments.length?q["string"==typeof a?"get":"set"](b,a):q.set(b,a,f)};b.hasClass=l.contains;b.addClass=l.add;b.removeClass=l.remove;b.toggleClass=l.toggle;b.replaceClass=l.replace;b._toDom=b.toDom=r.toDom;b.place=r.place;b.create=r.create;b.empty=function(b){r.empty(b)};b._destroyElement=b.destroy=function(b){r.destroy(b)};b._getPadExtents=b.getPadExtents=k.getPadExtents;b._getBorderExtents=b.getBorderExtents=k.getBorderExtents;b._getPadBorderExtents=
b.getPadBorderExtents=k.getPadBorderExtents;b._getMarginExtents=b.getMarginExtents=k.getMarginExtents;b._getMarginSize=b.getMarginSize=k.getMarginSize;b._getMarginBox=b.getMarginBox=k.getMarginBox;b.setMarginBox=k.setMarginBox;b._getContentBox=b.getContentBox=k.getContentBox;b.setContentSize=k.setContentSize;b._isBodyLtr=b.isBodyLtr=k.isBodyLtr;b._docScroll=b.docScroll=k.docScroll;b._getIeDocumentElementOffset=b.getIeDocumentElementOffset=k.getIeDocumentElementOffset;b._fixIeBiDiScrollLeft=b.fixIeBiDiScrollLeft=
k.fixIeBiDiScrollLeft;b.position=k.position;b.marginBox=function(b,a){return a?k.setMarginBox(b,a):k.getMarginBox(b)};b.contentBox=function(b,a){return a?k.setContentSize(b,a):k.getContentBox(b)};b.coords=function(g,a){b.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");g=m.byId(g);var f=e.getComputedStyle(g),f=k.getMarginBox(g,f),d=k.position(g,a);f.x=d.x;f.y=d.y;return f};b.getProp=p.get;b.setProp=p.set;b.prop=function(b,a,f){return 2==arguments.length?p["string"==typeof a?
"get":"set"](b,a):p.set(b,a,f)};b.getStyle=e.get;b.setStyle=e.set;b.getComputedStyle=e.getComputedStyle;b.__toPixelValue=b.toPixelValue=e.toPixelValue;b.style=function(b,a,f){switch(arguments.length){case 1:return e.get(b);case 2:return e["string"==typeof a?"get":"set"](b,a)}return e.set(b,a,f)};return b})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(b,m,e,q){var p,l={},r={},k={config:m,global:this,dijit:l,dojox:r},l={dojo:["dojo",k],dijit:["dijit",l],dojox:["dojox",
r]};q=e.map&&e.map[q.id.match(/[^\/]+/)[0]];for(p in q)l[p]?l[p][0]=q[p]:l[p]=[q[p],{}];for(p in l)q=l[p],q[1]._scopeName=q[0],m.noGlobals||(this[q[0]]=q[1]);k.scopeMap=l;k.baseUrl=k.config.baseUrl=e.baseUrl;k.isAsync=e.async;k.locale=m.locale;q="$Rev: fd52c96 $".match(/[0-9a-f]{7,}/);k.version={major:1,minor:9,patch:3,flag:"",revision:q?q[0]:NaN,toString:function(){var a=k.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(k);
k.exit=function(){};"undefined"!=typeof console||(console={});var l="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" "),g;for(q=0;g=l[q++];)console[g]||function(){var a=g+"";console[a]="log"in console?function(){var b=Array.apply({},arguments);b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}();b.add("dojo-debug-messages",!!m.isDebug);k.deprecated=k.experimental=function(){};b("dojo-debug-messages")&&(k.deprecated=
function(a,b,d){a="DEPRECATED: "+a;b&&(a+=" "+b);d&&(a+=" -- will be removed in version: "+d);console.warn(a)},k.experimental=function(a,b){var d="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";b&&(d+=" "+b);console.warn(d)});if(m.modulePaths){k.deprecated("dojo.modulePaths","use paths configuration");b={};for(p in m.modulePaths)b[p.replace(/\./g,"/")]=m.modulePaths[p];e({paths:b})}k.moduleUrl=function(a,b){k.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var d=null;a&&(d=
e.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/"));return d};k._hasResource={};return k})},"dojo/io-query":function(){define(["./_base/lang"],function(b){var m={};return{objectToQuery:function(e){var q=encodeURIComponent,p=[],l;for(l in e){var r=e[l];if(r!=m[l]){var k=q(l)+"\x3d";if(b.isArray(r))for(var g=0,a=r.length;g<a;++g)p.push(k+q(r[g]));else p.push(k+q(r))}}return p.join("\x26")},queryToObject:function(e){var q=decodeURIComponent;e=e.split("\x26");for(var p=
{},l,r,k=0,g=e.length;k<g;++k)if(r=e[k],r.length){var a=r.indexOf("\x3d");0>a?(l=q(r),r=""):(l=q(r.slice(0,a)),r=q(r.slice(a+1)));"string"==typeof p[l]&&(p[l]=[p[l]]);b.isArray(p[l])?p[l].push(r):p[l]=r}return p}}})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),function(b,m,e,q,p,l,r){var k=function(){},g=Object.freeze||function(){},a=b.Deferred=function(b){function d(a){if(s)throw Error("This deferred has already been resolved");
h=a;s=!0;c()}function c(){for(var a;!a&&u;){var c=u;u=u.next;if(a=c.progress==k)s=!1;var b=r?c.error:c.resolved;p("config-useDeferredInstrumentation")&&r&&m.instrumentRejected&&m.instrumentRejected(h,!!b);if(b)try{var d=b(h);d&&"function"===typeof d.then?d.then(l.hitch(c.deferred,"resolve"),l.hitch(c.deferred,"reject"),l.hitch(c.deferred,"progress")):(b=a&&void 0===d,a&&!b&&(r=d instanceof Error),c.deferred[b&&r?"reject":"resolve"](b?h:d))}catch(f){c.deferred.reject(f)}else r?c.deferred.reject(h):
c.deferred.resolve(h)}}var h,s,n,t,r,v,u,A=this.promise=new e;this.isResolved=A.isResolved=function(){return 0==t};this.isRejected=A.isRejected=function(){return 1==t};this.isFulfilled=A.isFulfilled=function(){return 0<=t};this.isCanceled=A.isCanceled=function(){return n};this.resolve=this.callback=function(a){this.fired=t=0;this.results=[a,null];d(a)};this.reject=this.errback=function(a){r=!0;this.fired=t=1;p("config-useDeferredInstrumentation")&&m.instrumentRejected&&m.instrumentRejected(a,!!u);
d(a);this.results=[null,a]};this.progress=function(a){for(var c=u;c;){var b=c.progress;b&&b(a);c=c.next}};this.addCallbacks=function(a,c){this.then(a,c,k);return this};A.then=this.then=function(b,d,f){var h=f==k?this:new a(A.cancel);b={resolved:b,error:d,progress:f,deferred:h};u?v=v.next=b:u=v=b;s&&c();return h.promise};var z=this;A.cancel=this.cancel=function(){if(!s){var a=b&&b(z);s||(a instanceof Error||(a=new q(a)),a.log=!1,z.reject(a))}n=!0};g(A)};l.extend(a,{addCallback:function(a){return this.addCallbacks(l.hitch.apply(b,
arguments))},addErrback:function(a){return this.addCallbacks(null,l.hitch.apply(b,arguments))},addBoth:function(a){var d=l.hitch.apply(b,arguments);return this.addCallbacks(d,d)},fired:-1});a.when=b.when=r;return a})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),function(b,m,e,q,p,l,r,k,g){function a(a){return function(c,b,d){return 2==arguments.length?a["string"==typeof b?"get":
"set"](c,b):a.set(c,b,d)}}var f=function(a){return 1==a.length&&"string"==typeof a[0]},d=function(a){var c=a.parentNode;c&&c.removeChild(a)},c=m.NodeList,h=c._adaptWithCondition,s=c._adaptAsForEach,n=c._adaptAsMap;q.extend(c,{_normalize:function(a,c){var d=!0===a.parse;if("string"==typeof a.template){var f=a.templateFunc||b.string&&b.string.substitute;a=f?f(a.template,a):a}f=typeof a;"string"==f||"number"==f?(a=l.toDom(a,c&&c.ownerDocument),a=11==a.nodeType?q._toArray(a.childNodes):[a]):q.isArrayLike(a)?
q.isArray(a)||(a=q._toArray(a)):a=[a];d&&(a._runParse=!0);return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,c,d,f){if(!(1!=c.nodeType&&"only"==d))for(var h,g=a.length,n=g-1;0<=n;n--){var e=f?this._cloneNode(a[n]):a[n];if(a._runParse&&b.parser&&b.parser.parse){h||(h=c.ownerDocument.createElement("div"));h.appendChild(e);b.parser.parse(h);for(e=h.firstChild;h.firstChild;)h.removeChild(h.firstChild)}n==g-1?l.place(e,c,d):c.parentNode.insertBefore(e,c);c=e}},position:n(r.position),
attr:h(a(k),f),style:h(a(g),f),addClass:s(p.add),removeClass:s(p.remove),toggleClass:s(p.toggle),replaceClass:s(p.replace),empty:s(l.empty),removeAttr:s(k.remove),marginBox:n(r.getMarginBox),place:function(a,c){var b=m(a)[0];return this.forEach(function(a){l.place(a,b,c)})},orphan:function(a){return(a?m._filterResult(this,a):this).forEach(d)},adopt:function(a,c){return m(a).place(this[0],c)._stash(this)},query:function(a){if(!a)return this;var b=new c;this.map(function(c){m(a,c).forEach(function(a){void 0!==
a&&b.push(a)})});return b._stash(this)},filter:function(a){var c=arguments,b=this,d=0;if("string"==typeof a){b=m._filterResult(this,c[0]);if(1==c.length)return b._stash(this);d=1}return this._wrap(e.filter(b,c[d],c[d+1]),this)},addContent:function(a,c){a=this._normalize(a,this[0]);for(var b=0,d;d=this[b];b++)a.length?this._place(a,d,c,0<b):l.empty(d);return this}});return c})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),
function(b,m,e,q,p,l,r,k){function g(a,c){var b=function(b,d){if("string"==typeof d&&(d=e.byId(d),!d))return new c([]);var f="string"==typeof b?a(b,d):b?b.end&&b.on?b:[b]:[];return f.end&&f.on?f:new c(f)};b.matches=a.match||function(a,c,d){return 0<b.filter([a],c,d).length};b.filter=a.filter||function(a,c,d){return b(c,d).filter(function(c){return-1<p.indexOf(a,c)})};if("function"!=typeof a){var d=a.search;a=function(a,c){return d(c||document,a)}}return b}m.add("array-extensible",function(){return 1==
l.delegate([],{length:1}).length&&!m("bug-for-in-skips-shadowed")});var a=Array.prototype,f=a.slice,d=a.concat,c=p.forEach,h=function(a,c,d){c=[0].concat(f.call(c,0));d=d||b.global;return function(b){c[0]=b;return a.apply(d,c)}},s=function(a){var c=this instanceof n&&m("array-extensible");"number"==typeof a&&(a=Array(a));var b=a&&"length"in a?a:arguments;if(c||!b.sort){for(var d=c?this:[],f=d.length=b.length,h=0;h<f;h++)d[h]=b[h];if(c)return d;b=d}l._mixin(b,t);b._NodeListCtor=function(a){return n(a)};
return b},n=s,t=n.prototype=m("array-extensible")?[]:{};n._wrap=t._wrap=function(a,c,b){a=new (b||this._NodeListCtor||n)(a);return c?a._stash(c):a};n._adaptAsMap=function(a,c){return function(){return this.map(h(a,arguments,c))}};n._adaptAsForEach=function(a,c){return function(){this.forEach(h(a,arguments,c));return this}};n._adaptAsFilter=function(a,c){return function(){return this.filter(h(a,arguments,c))}};n._adaptWithCondition=function(a,c,d){return function(){var f=arguments,g=h(a,f,d);if(c.call(d||
b.global,f))return this.map(g);this.forEach(g);return this}};c(["slice","splice"],function(c){var b=a[c];t[c]=function(){return this._wrap(b.apply(this,arguments),"slice"==c?this:null)}});c(["indexOf","lastIndexOf","every","some"],function(a){var c=p[a];t[a]=function(){return c.apply(b,[this].concat(f.call(arguments,0)))}});l.extend(s,{constructor:n,_NodeListCtor:n,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,c){var b=this.map(function(b){return q(b,
a,c)});b.remove=function(){for(var a=0;a<b.length;a++)b[a].remove()};return b},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(a){var c=f.call(this,0),b=p.map(arguments,function(a){return f.call(a,0)});return this._wrap(d.apply(c,b),this)},map:function(a,c){return this._wrap(p.map(this,a,c),this)},forEach:function(a,b){c(this,a,b);return this},filter:function(a){var c=arguments,b=this,d=0;if("string"==typeof a){b=w._filterResult(this,c[0]);if(1==c.length)return b._stash(this);
d=1}return this._wrap(p.filter(b,c[d],c[d+1]),this)},instantiate:function(a,c){var b=l.isFunction(a)?a:l.getObject(a);c=c||{};return this.forEach(function(a){new b(c,a)})},at:function(){var a=new this._NodeListCtor(0);c(arguments,function(c){0>c&&(c=this.length+c);this[c]&&a.push(this[c])},this);return a._stash(this)}});var w=g(k,s);b.query=g(k,function(a){return s(a)});w.load=function(a,c,b){r.load(a,c,function(a){b(g(a,s))})};b._filterQueryResult=w._filterResult=function(a,c,b){return new s(w.filter(a,
c,b))};b.NodeList=w.NodeList=s;return w})},"dojo/has":function(){define(["require","module"],function(b,m){var e=b.has||function(){};e.add("dom-addeventlistener",!!document.addEventListener);e.add("touch","ontouchstart"in document||0<window.navigator.msMaxTouchPoints);e.add("device-width",screen.availWidth||innerWidth);var q=document.createElement("form");e.add("dom-attributes-explicit",0==q.attributes.length);e.add("dom-attributes-specified-flag",0<q.attributes.length&&40>q.attributes.length);e.clearElement=
function(b){b.innerHTML="";return b};e.normalize=function(b,l){var r=b.match(/[\?:]|[^:\?]*/g),k=0,g=function(a){var b=r[k++];if(":"==b)return 0;if("?"==r[k++]){if(!a&&e(b))return g();g(!0);return g(a)}return b||0};return(b=g())&&l(b)};e.load=function(b,l,e){b?l([b],e):e()};return e})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(b,m,e,q,p,l,r){var k=function(a){return a.replace(/\./g,"/")},g=/\/\/>>built/,a=[],f=[],d=function(b,
d,h){a.push(h);r.forEach(b.split(","),function(a){a=R(a,d.module);f.push(a);Z(a)});c()},c=function(){var c,b;for(b in M)if(c=M[b],void 0===c.noReqPluginCheck&&(c.noReqPluginCheck=/loadInit\!/.test(b)||/require\!/.test(b)?1:0),!c.executed&&!c.noReqPluginCheck&&c.injected==A)return;H(function(){var c=a;a=[];r.forEach(c,function(a){a(1)})})},h=function(a,c,d){var f=/\(|\)/g,h=1;for(f.lastIndex=c;(c=f.exec(a))&&!(h=")"==c[0]?h-1:h+1,0==h););if(0!=h)throw"unmatched paren around character "+f.lastIndex+
" in: "+a;return[b.trim(a.substring(d,f.lastIndex))+";\n",f.lastIndex]},s=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,n=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,t=/(^|\s)(require|define)\s*\(/m,w=function(a,c){var b,d,f,g=[],l=[];b=[];for(c=c||a.replace(s,function(a){n.lastIndex=t.lastIndex=0;return n.test(a)||t.test(a)?"":a});b=n.exec(c);)d=n.lastIndex,f=d-b[0].length,d=h(c,d,f),"loadInit"==b[2]?g.push(d[0]):l.push(d[0]),n.lastIndex=d[1];
b=g.concat(l);return b.length||!t.test(c)?[a.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 \x26\x26 dojo.loadInit("),b.join(""),b]:0},v=e.initSyncLoader(d,c,function(a,c){var b,d,f=[],h=[];if(g.test(c)||!(b=w(c)))return 0;d=a.mid+"-*loadInit";for(var l in R("dojo",a).result.scopeMap)f.push(l),h.push('"'+l+'"');return"// xdomain rewrite of "+a.mid+"\ndefine('"+d+"',{\n\tnames:"+p.stringify(f)+",\n\tdef:function("+f.join(",")+"){"+b[1]+"}});\n\ndefine("+p.stringify(f.concat(["dojo/loadInit!"+d]))+", function("+
f.join(",")+"){\n"+b[0]+"});"}),u=v.sync,A=v.requested,z=v.arrived,y=v.nonmodule,x=v.executing,E=v.executed,J=v.syncExecStack,M=v.modules,L=v.execQ,R=v.getModule,Z=v.injectModule,C=v.setArrived,F=v.signal,O=v.finishExec,I=v.execModule,K=v.getLegacyMode,H=v.guardCheckComplete,d=v.dojoRequirePlugin;b.provide=function(a){var c=J[0],b=l.mixin(R(k(a),e.module),{executed:x,result:l.getObject(a,!0)});C(b);c&&(c.provides||(c.provides=[])).push(function(){b.result=l.getObject(a);delete b.provides;b.executed!==
E&&O(b)});return b.result};m.add("config-publishRequireResult",1,0,0);b.require=function(a,c){var b=function(a,c){var b=R(k(a),e.module);if(J.length&&J[0].finish)J[0].finish.push(a);else{if(b.executed)return b.result;c&&(b.result=y);var d=K();Z(b);d=K();b.executed!==E&&b.injected===z&&v.guardCheckComplete(function(){I(b)});if(b.executed)return b.result;d==u?b.cjs?L.unshift(b):J.length&&(J[0].finish=[a]):L.push(b)}}(a,c);m("config-publishRequireResult")&&(!l.exists(a)&&void 0!==b)&&l.setObject(a,b);
return b};b.loadInit=function(a){a()};b.registerModulePath=function(a,c){var b={};b[a.replace(/\./g,"/")]=c;e({paths:b})};b.platformRequire=function(a){a=(a.common||[]).concat(a[b._name]||a["default"]||[]);for(var c;a.length;)l.isArray(c=a.shift())?b.require.apply(b,c):b.require(c)};b.requireIf=b.requireAfterIf=function(a,c,d){a&&b.require(c,d)};b.requireLocalization=function(a,c,b){e(["../i18n"],function(d){d.getLocalization(a,c,b)})};return{extractLegacyApiApplications:w,require:d,loadInit:function(a,
c,f){c([a],function(a){c(a.names,function(){for(var h="",g=[],l=0;l<arguments.length;l++)h+="var "+a.names[l]+"\x3d arguments["+l+"]; ",g.push(arguments[l]);eval(h);var n=c.module,e=[],p,h={provide:function(a){a=k(a);a=R(a,n);a!==n&&C(a)},require:function(a,c){a=k(a);c&&(R(a,n).result=y);e.push(a)},requireLocalization:function(a,c,d){p||(p=["dojo/i18n"]);d=(d||b.locale).toLowerCase();a=k(a)+"/nls/"+(/root/i.test(d)?"":d+"/")+k(c);R(a,n).isXd&&p.push("dojo/i18n!"+a)},loadInit:function(a){a()}},l={},
s;try{for(s in h)l[s]=b[s],b[s]=h[s];a.def.apply(null,g)}catch(r){F("error",[{src:q.id,id:"failedDojoLoadInit"},r])}finally{for(s in h)b[s]=l[s]}p&&(e=e.concat(p));e.length?d(e.join(","),c,f):f()})})}}})},"dojo/json":function(){define(["./has"],function(b){var m="undefined"!=typeof JSON;b.add("json-parse",m);b.add("json-stringify",m&&'{"a":1}'==JSON.stringify({a:0},function(b,e){return e||1}));if(b("json-stringify"))return JSON;var e=function(b){return('"'+b.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,
"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:b("json-parse")?JSON.parse:function(b,e){if(e&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(b))throw new SyntaxError("Invalid characters in JSON");return eval("("+b+")")},stringify:function(b,p,l){function r(b,a,f){p&&(b=p(f,b));var d;d=typeof b;if("number"==d)return isFinite(b)?b+"":"null";if("boolean"==d)return b+"";if(null===
b)return"null";if("string"==typeof b)return e(b);if("function"==d||"undefined"==d)return k;if("function"==typeof b.toJSON)return r(b.toJSON(f),a,f);if(b instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(a,c,d){a=b["getUTC"+c]()+(d?1:0);return 10>a?"0"+a:a});if(b.valueOf()!==b)return r(b.valueOf(),a,f);var c=l?a+l:"",h=l?" ":"",s=l?"\n":"";if(b instanceof Array){var h=b.length,n=[];for(f=0;f<h;f++)d=r(b[f],c,f),"string"!=typeof d&&
(d="null"),n.push(s+c+d);return"["+n.join(",")+s+a+"]"}n=[];for(f in b){var m;if(b.hasOwnProperty(f)){if("number"==typeof f)m='"'+f+'"';else if("string"==typeof f)m=e(f);else continue;d=r(b[f],c,f);"string"==typeof d&&n.push(s+c+m+":"+h+d)}}return"{"+n.join(",")+s+a+"}"}var k;"string"==typeof p&&(l=p,p=null);return r(b,"","")}}})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(b,m,e){function q(a,c){throw Error("declare"+(c?" "+c:"")+": "+a);}function p(a,c,b){var d,
f,h,l,g,n,e,k=this._inherited=this._inherited||{};"string"==typeof a&&(d=a,a=c,c=b);b=0;l=a.callee;(d=d||l.nom)||q("can't deduce a name to call inherited()",this.declaredClass);g=this.constructor._meta;h=g.bases;e=k.p;if(d!=x){if(k.c!==l&&(e=0,n=h[0],g=n._meta,g.hidden[d]!==l)){(f=g.chains)&&"string"==typeof f[d]&&q("calling chained method with inherited: "+d,this.declaredClass);do if(g=n._meta,f=n.prototype,g&&(f[d]===l&&f.hasOwnProperty(d)||g.hidden[d]===l))break;while(n=h[++e]);e=n?e:-1}if(n=h[++e])if(f=
n.prototype,n._meta&&f.hasOwnProperty(d))b=f[d];else{l=u[d];do if(f=n.prototype,(b=f[d])&&(n._meta?f.hasOwnProperty(d):b!==l))break;while(n=h[++e])}b=n&&b||u[d]}else{if(k.c!==l&&(e=0,(g=h[0]._meta)&&g.ctor!==l)){f=g.chains;for((!f||"manual"!==f.constructor)&&q("calling chained constructor with inherited",this.declaredClass);(n=h[++e])&&!((g=n._meta)&&g.ctor===l););e=n?e:-1}for(;(n=h[++e])&&!(b=(g=n._meta)?g.ctor:n););b=n&&b}k.c=b;k.p=e;if(b)return!0===c?b:b.apply(this,c||a)}function l(a,b){return"string"==
typeof a?this.__inherited(a,b,!0):this.__inherited(a,!0)}function r(a,b,c){var d=this.getInherited(a,b);if(d)return d.apply(this,c||b||a)}function k(a){for(var b=this.constructor._meta.bases,c=0,d=b.length;c<d;++c)if(b[c]===a)return!0;return this instanceof a}function g(a,b){for(var c in b)c!=x&&b.hasOwnProperty(c)&&(a[c]=b[c]);if(m("bug-for-in-skips-shadowed"))for(var d=e._extraNames,f=d.length;f;)c=d[--f],c!=x&&b.hasOwnProperty(c)&&(a[c]=b[c])}function a(a){w.safeMixin(this.prototype,a);return this}
function f(a,b){return w([this].concat(a),b||{})}function d(a,b){return function(){var c=arguments,d=c,f=c[0],h,g;g=a.length;var l;if(!(this instanceof c.callee))return t(c);if(b&&(f&&f.preamble||this.preamble)){l=Array(a.length);l[0]=c;for(h=0;;){if(f=c[0])(f=f.preamble)&&(c=f.apply(this,c)||c);f=a[h].prototype;(f=f.hasOwnProperty("preamble")&&f.preamble)&&(c=f.apply(this,c)||c);if(++h==g)break;l[h]=c}}for(h=g-1;0<=h;--h)f=a[h],(f=(g=f._meta)?g.ctor:f)&&f.apply(this,l?l[h]:c);(f=this.postscript)&&
f.apply(this,d)}}function c(a,c){return function(){var b=arguments,d=b,f=b[0];if(!(this instanceof b.callee))return t(b);c&&(f&&(f=f.preamble)&&(d=f.apply(this,d)||d),(f=this.preamble)&&f.apply(this,d));a&&a.apply(this,b);(f=this.postscript)&&f.apply(this,b)}}function h(a){return function(){var c=arguments,b=0,d,f;if(!(this instanceof c.callee))return t(c);for(;d=a[b];++b)if(d=(f=d._meta)?f.ctor:d){d.apply(this,c);break}(d=this.postscript)&&d.apply(this,c)}}function s(a,c,b){return function(){var d,
f,h=0,g=1;b&&(h=c.length-1,g=-1);for(;d=c[h];h+=g)f=d._meta,(d=(f?f.hidden:d.prototype)[a])&&d.apply(this,arguments)}}function n(a){z.prototype=a.prototype;a=new z;z.prototype=null;return a}function t(a){var c=a.callee,b=n(c);c.apply(b,a);return b}function w(b,r,m){"string"!=typeof b&&(m=r,r=b,b="");m=m||{};var t,z,C,F,O,I,K,H=1,ia=r;if("[object Array]"==A.call(r)){H=b;C=[];F=[{cls:0,refs:[]}];I={};for(var T=1,$=r.length,P=0,G,V,D,B;P<$;++P){(G=r[P])?"[object Function]"!=A.call(G)&&q("mixin #"+P+
" is not a callable constructor.",H):q("mixin #"+P+" is unknown. Did you use dojo.require to pull it in?",H);V=G._meta?G._meta.bases:[G];D=0;for(G=V.length-1;0<=G;--G)B=V[G].prototype,B.hasOwnProperty("declaredClass")||(B.declaredClass="uniqName_"+y++),B=B.declaredClass,I.hasOwnProperty(B)||(I[B]={count:0,refs:[],cls:V[G]},++T),B=I[B],D&&D!==B&&(B.refs.push(D),++D.count),D=B;++D.count;F[0].refs.push(D)}for(;F.length;){D=F.pop();C.push(D.cls);for(--T;z=D.refs,1==z.length;){D=z[0];if(!D||--D.count){D=
0;break}C.push(D.cls);--T}if(D){P=0;for($=z.length;P<$;++P)D=z[P],--D.count||F.push(D)}}T&&q("can't build consistent linearization",H);G=r[0];C[0]=G?G._meta&&G===C[C.length-G._meta.bases.length]?G._meta.bases.length:1:0;I=C;C=I[0];H=I.length-C;r=I[H]}else I=[0],r?"[object Function]"==A.call(r)?(C=r._meta,I=I.concat(C?C.bases:r)):q("base class is not a callable constructor.",b):null!==r&&q("unknown base class. Did you use dojo.require to pull it in?",b);if(r)for(z=H-1;;--z){t=n(r);if(!z)break;C=I[z];
(C._meta?g:v)(t,C.prototype);F=new Function;F.superclass=r;F.prototype=t;r=t.constructor=F}else t={};w.safeMixin(t,m);C=m.constructor;C!==u.constructor&&(C.nom=x,t.constructor=C);for(z=H-1;z;--z)(C=I[z]._meta)&&C.chains&&(K=v(K||{},C.chains));t["-chains-"]&&(K=v(K||{},t["-chains-"]));C=!K||!K.hasOwnProperty(x);I[0]=F=K&&"manual"===K.constructor?h(I):1==I.length?c(m.constructor,C):d(I,C);F._meta={bases:I,hidden:m,chains:K,parents:ia,ctor:m.constructor};F.superclass=r&&r.prototype;F.extend=a;F.createSubclass=
f;F.prototype=t;t.constructor=F;t.getInherited=l;t.isInstanceOf=k;t.inherited=E;t.__inherited=p;b&&(t.declaredClass=b,e.setObject(b,F));if(K)for(O in K)t[O]&&("string"==typeof K[O]&&O!=x)&&(C=t[O]=s(O,I,"after"===K[O]),C.nom=O);return F}var v=e.mixin,u=Object.prototype,A=u.toString,z=new Function,y=0,x="constructor",E=b.config.isDebug?r:p;b.safeMixin=w.safeMixin=function(a,b){var c,d;for(c in b)if(d=b[c],(d!==u[c]||!(c in u))&&c!=x)"[object Function]"==A.call(d)&&(d.nom=c),a[c]=d;if(m("bug-for-in-skips-shadowed"))for(var f=
e._extraNames,h=f.length;h;)if(c=f[--h],d=b[c],(d!==u[c]||!(c in u))&&c!=x)"[object Function]"==A.call(d)&&(d.nom=c),a[c]=d;return a};return b.declare=w})},"dojo/dom":function(){define(["./sniff","./_base/window"],function(b,m){if(7>=b("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}var q={};b("ie")?q.byId=function(b,e){if("string"!=typeof b)return b;var k=e||m.doc,g=b&&k.getElementById(b);if(g&&(g.attributes.id.value==b||g.id==b))return g;k=k.all[b];if(!k||k.nodeName)k=[k];
for(var a=0;g=k[a++];)if(g.attributes&&g.attributes.id&&g.attributes.id.value==b||g.id==b)return g}:q.byId=function(b,e){return("string"==typeof b?(e||m.doc).getElementById(b):b)||null};q.isDescendant=function(b,e){try{b=q.byId(b);for(e=q.byId(e);b;){if(b==e)return!0;b=b.parentNode}}catch(k){}return!1};b.add("css-user-select",function(b,e,k){if(!k)return!1;b=k.style;e=["Khtml","O","ms","Moz","Webkit"];k=e.length;var g="userSelect";do if("undefined"!==typeof b[g])return g;while(k--&&(g=e[k]+"UserSelect"));
return!1});var p=b("css-user-select");q.setSelectable=p?function(b,e){q.byId(b).style[p]=e?"":"none"}:function(b,e){b=q.byId(b);var k=b.getElementsByTagName("*"),g=k.length;if(e)for(b.removeAttribute("unselectable");g--;)k[g].removeAttribute("unselectable");else for(b.setAttribute("unselectable","on");g--;)k[g].setAttribute("unselectable","on")};return q})},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme");define("../ready ./kernel ./connect ./unload ./window ./event ./html ./NodeList ../query ./xhr ./fx".split(" "),
function(b){return b})},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(b,m,e,q,p){var l=q.trim,r=e.forEach,k="BackCompat"==p.doc.compatMode,g=!1,a=function(){return!0},f=function(a){a=0<="\x3e~+".indexOf(a.slice(-1))?a+" * ":a+" ";for(var b=function(b,c){return l(a.slice(b,c))},c=[],d=-1,f=-1,h=-1,e=-1,n=-1,k=-1,s=-1,p,r="",m="",q,t=0,v=a.length,x=null,y=null,u=function(){0<=k&&(x.id=b(k,t).replace(/\\/g,""),k=-1);if(0<=s){var a=
s==t?null:b(s,t);x[0>"\x3e~+".indexOf(a)?"tag":"oper"]=a;s=-1}0<=n&&(x.classes.push(b(n+1,t).replace(/\\/g,"")),n=-1)};r=m,m=a.charAt(t),t<v;t++)if("\\"!=r)if(x||(q=t,x={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return g?this.otag:this.tag}},s=t),p)m==p&&(p=null);else if("'"==m||'"'==m)p=m;else if(0<=d)if("]"==m){y.attr?y.matchFor=b(h||d+1,t):y.attr=b(d+1,t);if((d=y.matchFor)&&('"'==d.charAt(0)||"'"==d.charAt(0)))y.matchFor=d.slice(1,-1);y.matchFor&&(y.matchFor=
y.matchFor.replace(/\\/g,""));x.attrs.push(y);y=null;d=h=-1}else"\x3d"==m&&(h=0<="|~^$*".indexOf(r)?r:"",y.type=h+m,y.attr=b(d+1,t-h.length),h=t+1);else 0<=f?")"==m&&(0<=e&&(y.value=b(f+1,t)),e=f=-1):"#"==m?(u(),k=t+1):"."==m?(u(),n=t):":"==m?(u(),e=t):"["==m?(u(),d=t,y={}):"("==m?(0<=e&&(y={name:b(e+1,t),value:null},x.pseudos.push(y)),f=t):" "==m&&r!=m&&(u(),0<=e&&x.pseudos.push({name:b(e+1,t)}),x.loops=x.pseudos.length||x.attrs.length||x.classes.length,x.oquery=x.query=b(q,t),x.otag=x.tag=x.oper?
null:x.tag||"*",x.tag&&(x.tag=x.tag.toUpperCase()),c.length&&c[c.length-1].oper&&(x.infixOper=c.pop(),x.query=x.infixOper.query+" "+x.query),c.push(x),x=null);return c},d=function(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},c=function(a,b){var c=b||[];a&&c.push(a);return c},h=function(a){return 1==a.nodeType},s=function(a,b){return!a?"":"class"==b?a.className||"":"for"==b?a.htmlFor||"":"style"==b?a.style.cssText||"":(g?a.getAttribute(b):a.getAttribute(b,
2))||""},n={"*\x3d":function(a,b){return function(c){return 0<=s(c,a).indexOf(b)}},"^\x3d":function(a,b){return function(c){return 0==s(c,a).indexOf(b)}},"$\x3d":function(a,b){return function(c){c=" "+s(c,a);var d=c.lastIndexOf(b);return-1<d&&d==c.length-b.length}},"~\x3d":function(a,b){var c=" "+b+" ";return function(b){return 0<=(" "+s(b,a)+" ").indexOf(c)}},"|\x3d":function(a,b){var c=b+"-";return function(d){d=s(d,a);return d==b||0==d.indexOf(c)}},"\x3d":function(a,b){return function(c){return s(c,
a)==b}}},t="undefined"==typeof p.doc.firstChild.nextElementSibling,w=!t?"nextElementSibling":"nextSibling",v=!t?"previousElementSibling":"previousSibling",u=t?h:a,A=function(a){for(;a=a[v];)if(u(a))return!1;return!0},z=function(a){for(;a=a[w];)if(u(a))return!1;return!0},y=function(a){var b=a.parentNode,b=7!=b.nodeType?b:b.nextSibling,c=0,d=b.children||b.childNodes,f=a._i||a.getAttribute("_i")||-1,h=b._l||("undefined"!==typeof b.getAttribute?b.getAttribute("_l"):-1);if(!d)return-1;d=d.length;if(h==
d&&0<=f&&0<=h)return f;m("ie")&&"undefined"!==typeof b.setAttribute?b.setAttribute("_l",d):b._l=d;f=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[w])u(b)&&(m("ie")?b.setAttribute("_i",++c):b._i=++c,a===b&&(f=c));return f},x=function(a){return!(y(a)%2)},E=function(a){return y(a)%2},J={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},disabled:function(a,b){return function(a){return a.disabled}},enabled:function(a,b){return function(a){return!a.disabled}},"first-child":function(){return A},
"last-child":function(){return z},"only-child":function(a,b){return function(a){return A(a)&&z(a)}},empty:function(a,b){return function(a){var b=a.childNodes;for(a=a.childNodes.length-1;0<=a;a--){var c=b[a].nodeType;if(1===c||3==c)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if('"'==c||"'"==c)b=b.slice(1,-1);return function(a){return 0<=a.innerHTML.indexOf(b)}},not:function(a,b){var c=f(b)[0],d={el:1};"*"!=c.tag&&(d.tag=1);c.classes.length||(d.classes=1);var h=L(c,d);return function(a){return!h(a)}},
"nth-child":function(a,b){var c=parseInt;if("odd"==b)return E;if("even"==b)return x;if(-1!=b.indexOf("n")){var d=b.split("n",2),f=d[0]?"-"==d[0]?-1:c(d[0]):1,h=d[1]?c(d[1]):0,g=0,e=-1;0<f?0>h?h=h%f&&f+h%f:0<h&&(h>=f&&(g=h-h%f),h%=f):0>f&&(f*=-1,0<h&&(e=h,h%=f));if(0<f)return function(a){a=y(a);return a>=g&&(0>e||a<=e)&&a%f==h};b=h}var n=c(b);return function(a){return y(a)==n}}},M=9>m("ie")||9==m("ie")&&m("quirks")?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(c){return g?
c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},L=function(b,c){if(!b)return a;c=c||{};var f=null;"el"in c||(f=d(f,h));"tag"in c||"*"!=b.tag&&(f=d(f,function(a){return a&&(g?a.tagName:a.tagName.toUpperCase())==b.getTag()}));"classes"in c||r(b.classes,function(a,b,c){var h=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");f=d(f,function(a){return h.test(a.className)});f.count=b});"pseudos"in c||r(b.pseudos,function(a){var b=a.name;J[b]&&(f=d(f,J[b](b,a.value)))});
"attrs"in c||r(b.attrs,function(a){var b,c=a.attr;a.type&&n[a.type]?b=n[a.type](c,a.matchFor):c.length&&(b=M(c));b&&(f=d(f,b))});"id"in c||b.id&&(f=d(f,function(a){return!!a&&a.id==b.id}));f||"default"in c||(f=a);return f},R=function(a){return function(b,c,d){for(;b=b[w];)if(!t||h(b)){(!d||N(b,d))&&a(b)&&c.push(b);break}return c}},Z=function(a){return function(b,c,d){for(b=b[w];b;){if(u(b)){if(d&&!N(b,d))break;a(b)&&c.push(b)}b=b[w]}return c}},C=function(b){b=b||a;return function(a,c,d){for(var f=
0,h=a.children||a.childNodes;a=h[f++];)u(a)&&((!d||N(a,d))&&b(a,f))&&c.push(a);return c}},F={},O=function(d){var f=F[d.query];if(f)return f;var h=d.infixOper,h=h?h.oper:"",g=L(d,{el:1}),e="*"==d.tag,n=p.doc.getElementsByClassName;if(h)n={el:1},e&&(n.tag=1),g=L(d,n),"+"==h?f=R(g):"~"==h?f=Z(g):"\x3e"==h&&(f=C(g));else if(d.id)g=!d.loops&&e?a:L(d,{el:1,id:1}),f=function(a,f){var h=b.byId(d.id,a.ownerDocument||a);if(h&&g(h)){if(9==a.nodeType)return c(h,f);for(var e=h.parentNode;e&&e!=a;)e=e.parentNode;
if(e)return c(h,f)}};else if(n&&/\{\s*\[native code\]\s*\}/.test(String(n))&&d.classes.length&&!k)var g=L(d,{el:1,classes:1,id:1}),l=d.classes.join(" "),f=function(a,b,d){b=c(0,b);for(var f,h=0,e=a.getElementsByClassName(l);f=e[h++];)g(f,a)&&N(f,d)&&b.push(f);return b};else!e&&!d.loops?f=function(a,b,f){b=c(0,b);for(var h=0,e=d.getTag(),e=e?a.getElementsByTagName(e):[];a=e[h++];)N(a,f)&&b.push(a);return b}:(g=L(d,{el:1,tag:1,id:1}),f=function(a,b,f){b=c(0,b);for(var h,e=0,n=(h=d.getTag())?a.getElementsByTagName(h):
[];h=n[e++];)g(h,a)&&N(h,f)&&b.push(h);return b});return F[d.query]=f},I={},K={},H=function(a){var b=f(l(a));if(1==b.length){var d=O(b[0]);return function(a){if(a=d(a,[]))a.nozip=!0;return a}}return function(a){a=c(a);for(var d,f,h=b.length,e,g,n=0;n<h;n++){g=[];d=b[n];f=a.length-1;0<f&&(e={},g.nozip=!0);f=O(d);for(var l=0;d=a[l];l++)f(d,g,e);if(!g.length)break;a=g}return g}},ia=m("ie")?"commentStrip":"nozip",T=!!p.doc.querySelectorAll,$=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,P=function(a,b,c,
d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},G=/([^[]*)([^\]]*])?/g,V=function(a,b,c){return b.replace($,P)+(c||"")},D=function(a,b){a=a.replace(G,V);if(T){var c=K[a];if(c&&!b)return c}if(c=I[a])return c;var c=a.charAt(0),d=-1==a.indexOf(" ");0<=a.indexOf("#")&&d&&(b=!0);if(T&&!b&&-1=="\x3e~+".indexOf(c)&&(!m("ie")||-1==a.indexOf(":"))&&!(k&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf(":checked")&&-1==a.indexOf("|\x3d")){var f=0<="\x3e~+".indexOf(a.charAt(a.length-1))?a+" *":a;return K[a]=
function(b){try{if(!(9==b.nodeType||d))throw"";var c=b.querySelectorAll(f);c[ia]=!0;return c}catch(h){return D(a,!0)(b)}}}var h=a.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return I[a]=2>h.length?H(a):function(a){for(var b=0,c=[],d;d=h[b++];)c=c.concat(H(d)(a));return c}},B=0,ja=m("ie")?function(a){return g?a.getAttribute("_uid")||a.setAttribute("_uid",++B)||B:a.uniqueID}:function(a){return a._uid||(a._uid=++B)},N=function(a,b){if(!b)return 1;var c=ja(a);return!b[c]?b[c]=1:0},ca=
function(a){if(a&&a.nozip)return a;if(!a||!a.length)return[];if(2>a.length)return[a[0]];var b=[];B++;var c,d;if(m("ie")&&g){var f=B+"";for(c=0;c<a.length;c++)if((d=a[c])&&d.getAttribute("_zipIdx")!=f)b.push(d),d.setAttribute("_zipIdx",f)}else if(m("ie")&&a.commentStrip)try{for(c=0;c<a.length;c++)(d=a[c])&&h(d)&&b.push(d)}catch(e){}else for(c=0;c<a.length;c++)if((d=a[c])&&d._zipIdx!=B)b.push(d),d._zipIdx=B;return b},X=function(a,b){b=b||p.doc;g="div"===(b.ownerDocument||b).createElement("div").tagName;
var c=D(a)(b);return c&&c.nozip?c:ca(c)};X.filter=function(a,c,d){for(var h=[],g=f(c),g=1==g.length&&!/[^\w#\.]/.test(c)?L(g[0]):function(a){return-1!=e.indexOf(X(c,b.byId(d)),a)},n=0,l;l=a[n];n++)g(l)&&h.push(l);return h};return X})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(b,m){return b("RequestTimeoutError",null,m,{dojoType:"timeout"})})},"dojo/dom-style":function(){define(["./sniff","./dom"],function(b,m){function e(c,d,g){d=d.toLowerCase();if(b("ie")){if("auto"==
g){if("height"==d)return c.offsetHeight;if("width"==d)return c.offsetWidth}if("fontweight"==d)switch(g){case 700:return"bold";default:return"normal"}}d in a||(a[d]=f.test(d));return a[d]?l(c,g):g}var q,p={};q=b("webkit")?function(a){var b;if(1==a.nodeType){var d=a.ownerDocument.defaultView;b=d.getComputedStyle(a,null);!b&&a.style&&(a.style.display="",b=d.getComputedStyle(a,null))}return b||{}}:b("ie")&&(9>b("ie")||b("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==
a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};p.getComputedStyle=q;var l;l=b("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var d=a.style,f=a.runtimeStyle,g=d.left,e=f.left;f.left=a.currentStyle.left;try{d.left=b,b=d.pixelLeft}catch(l){b=0}d.left=g;f.left=e;return b}:function(a,b){return parseFloat(b)||0};p.toPixelValue=l;var r=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(d){return b?
{}:null}},k=9>b("ie")||10>b("ie")&&b("quirks")?function(a){try{return r(a).Opacity/100}catch(b){return 1}}:function(a){return q(a).opacity},g=9>b("ie")||10>b("ie")&&b("quirks")?function(a,b){""===b&&(b=1);var d=100*b;1===b?(a.style.zoom="",r(a)&&(a.style.filter=a.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(a.style.zoom=1,r(a)?r(a,1).Opacity=d:a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+d+")",r(a,1).Enabled=!0);if("tr"==a.tagName.toLowerCase())for(d=
a.firstChild;d;d=d.nextSibling)"td"==d.tagName.toLowerCase()&&g(d,b);return b}:function(a,b){return a.style.opacity=b},a={left:!0,top:!0},f=/margin|padding|width|height|max|min|offset/,d={cssFloat:1,styleFloat:1,"float":1};p.get=function(a,b){var f=m.byId(a),g=arguments.length;if(2==g&&"opacity"==b)return k(f);b=d[b]?"cssFloat"in f.style?"cssFloat":"styleFloat":b;var l=p.getComputedStyle(f);return 1==g?l:e(f,b,l[b]||f.style[b])};p.set=function(a,b,f){var e=m.byId(a),l=arguments.length,k="opacity"==
b;b=d[b]?"cssFloat"in e.style?"cssFloat":"styleFloat":b;if(3==l)return k?g(e,f):e.style[b]=f;for(var r in b)p.set(a,r,b[r]);return p.getComputedStyle(e)};return p})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(b,m,e,q){function p(a,b,d,c,h,g){g=g||"px";a=a.style;isNaN(b)||(a.left=b+g);isNaN(d)||(a.top=d+g);0<=c&&(a.width=c+g);0<=h&&(a.height=h+g)}function l(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==
(a.getAttribute("type")||"").toLowerCase()}function r(a){return"border-box"==k.boxModel||"table"==a.tagName.toLowerCase()||l(a)}var k={boxModel:"content-box"};b("ie")&&(k.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");k.getPadExtents=function(a,b){a=e.byId(a);var d=b||q.getComputedStyle(a),c=q.toPixelValue,h=c(a,d.paddingLeft),g=c(a,d.paddingTop),n=c(a,d.paddingRight),d=c(a,d.paddingBottom);return{l:h,t:g,r:n,b:d,w:h+n,h:g+d}};k.getBorderExtents=function(a,b){a=e.byId(a);var d=
q.toPixelValue,c=b||q.getComputedStyle(a),h="none"!=c.borderLeftStyle?d(a,c.borderLeftWidth):0,g="none"!=c.borderTopStyle?d(a,c.borderTopWidth):0,n="none"!=c.borderRightStyle?d(a,c.borderRightWidth):0,d="none"!=c.borderBottomStyle?d(a,c.borderBottomWidth):0;return{l:h,t:g,r:n,b:d,w:h+n,h:g+d}};k.getPadBorderExtents=function(a,b){a=e.byId(a);var d=b||q.getComputedStyle(a),c=k.getPadExtents(a,d),d=k.getBorderExtents(a,d);return{l:c.l+d.l,t:c.t+d.t,r:c.r+d.r,b:c.b+d.b,w:c.w+d.w,h:c.h+d.h}};k.getMarginExtents=
function(a,b){a=e.byId(a);var d=b||q.getComputedStyle(a),c=q.toPixelValue,h=c(a,d.marginLeft),g=c(a,d.marginTop),n=c(a,d.marginRight),d=c(a,d.marginBottom);return{l:h,t:g,r:n,b:d,w:h+n,h:g+d}};k.getMarginBox=function(a,f){a=e.byId(a);var d=f||q.getComputedStyle(a),c=k.getMarginExtents(a,d),h=a.offsetLeft-c.l,g=a.offsetTop-c.t,n=a.parentNode,l=q.toPixelValue;if(b("mozilla")){var p=parseFloat(d.left),d=parseFloat(d.top);!isNaN(p)&&!isNaN(d)?(h=p,g=d):n&&n.style&&(n=q.getComputedStyle(n),"visible"!=
n.overflow&&(h+="none"!=n.borderLeftStyle?l(a,n.borderLeftWidth):0,g+="none"!=n.borderTopStyle?l(a,n.borderTopWidth):0))}else if((b("opera")||8==b("ie")&&!b("quirks"))&&n)n=q.getComputedStyle(n),h-="none"!=n.borderLeftStyle?l(a,n.borderLeftWidth):0,g-="none"!=n.borderTopStyle?l(a,n.borderTopWidth):0;return{l:h,t:g,w:a.offsetWidth+c.w,h:a.offsetHeight+c.h}};k.getContentBox=function(a,f){a=e.byId(a);var d=f||q.getComputedStyle(a),c=a.clientWidth,h=k.getPadExtents(a,d),g=k.getBorderExtents(a,d);c?(d=
a.clientHeight,g.w=g.h=0):(c=a.offsetWidth,d=a.offsetHeight);b("opera")&&(h.l+=g.l,h.t+=g.t);return{l:h.l,t:h.t,w:c-h.w-g.w,h:d-h.h-g.h}};k.setContentSize=function(a,b,d){a=e.byId(a);var c=b.w;b=b.h;r(a)&&(d=k.getPadBorderExtents(a,d),0<=c&&(c+=d.w),0<=b&&(b+=d.h));p(a,NaN,NaN,c,b)};var g={l:0,t:0,w:0,h:0};k.setMarginBox=function(a,f,d){a=e.byId(a);var c=d||q.getComputedStyle(a);d=f.w;var h=f.h,m=r(a)?g:k.getPadBorderExtents(a,c),c=k.getMarginExtents(a,c);if(b("webkit")&&l(a)){var n=a.style;0<=d&&
!n.width&&(n.width="4px");0<=h&&!n.height&&(n.height="4px")}0<=d&&(d=Math.max(d-m.w-c.w,0));0<=h&&(h=Math.max(h-m.h-c.h,0));p(a,f.l,f.t,d,h)};k.isBodyLtr=function(a){a=a||m.doc;return"ltr"==(m.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};k.docScroll=function(a){a=a||m.doc;var f=m.doc.parentWindow||m.doc.defaultView;return"pageXOffset"in f?{x:f.pageXOffset,y:f.pageYOffset}:(f=b("quirks")?m.body(a):a.documentElement)&&{x:k.fixIeBiDiScrollLeft(f.scrollLeft||0,a),y:f.scrollTop||0}};b("ie")&&
(k.getIeDocumentElementOffset=function(a){a=a||m.doc;a=a.documentElement;if(8>b("ie")){var f=a.getBoundingClientRect(),d=f.left,f=f.top;7>b("ie")&&(d+=a.clientLeft,f+=a.clientTop);return{x:0>d?0:d,y:0>f?0:f}}return{x:0,y:0}});k.fixIeBiDiScrollLeft=function(a,f){f=f||m.doc;var d=b("ie");if(d&&!k.isBodyLtr(f)){var c=b("quirks"),h=c?m.body(f):f.documentElement,g=m.global;6==d&&(!c&&g.frameElement&&h.scrollHeight>h.clientHeight)&&(a+=h.clientLeft);return 8>d||c?a+h.clientWidth-h.scrollWidth:-a}return a};
k.position=function(a,f){a=e.byId(a);var d=m.body(a.ownerDocument),c=a.getBoundingClientRect(),c={x:c.left,y:c.top,w:c.right-c.left,h:c.bottom-c.top};if(9>b("ie")){var h=k.getIeDocumentElementOffset(a.ownerDocument);c.x-=h.x+(b("quirks")?d.clientLeft+d.offsetLeft:0);c.y-=h.y+(b("quirks")?d.clientTop+d.offsetTop:0)}f&&(d=k.docScroll(a.ownerDocument),c.x+=d.x,c.y+=d.y);return c};k.getMarginSize=function(a,b){a=e.byId(a);var d=k.getMarginExtents(a,b||q.getComputedStyle(a)),c=a.getBoundingClientRect();
return{w:c.right-c.left+d.w,h:c.bottom-c.top+d.h}};k.normalizeEvent=function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY);if(!b("dom-addeventlistener")){var f=a.target,f=f&&f.ownerDocument||document,d=b("quirks")?f.body:f.documentElement,c=k.getIeDocumentElementOffset(f);a.pageX=a.clientX+k.fixIeBiDiScrollLeft(d.scrollLeft||0,f)-c.x;a.pageY=a.clientY+(d.scrollTop||0)-c.y}};return k})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),
function(b,m,e,q,p,l,r,k){var g={},a=0,f=m._scopeName+"attrid";b.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};b.get=function(a,c){a=p.byId(a);var f=c.toLowerCase();return a[b.names[f]||c]};b.set=function(d,c,h){d=p.byId(d);if(2==arguments.length&&"string"!=typeof c){for(var m in c)b.set(d,m,c[m]);return d}m=c.toLowerCase();m=b.names[m]||c;if("style"==m&&"string"!=typeof h)return l.set(d,
h),d;if("innerHTML"==m)return e("ie")&&d.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(r.empty(d),d.appendChild(r.toDom(h,d.ownerDocument))):d[m]=h,d;if(q.isFunction(h)){var n=d[f];n||(n=a++,d[f]=n);g[n]||(g[n]={});var t=g[n][m];if(t)k.disconnect(t);else try{delete d[m]}catch(w){}h?g[n][m]=k.connect(d,m,h):d[m]=null;return d}d[m]=h;return d}})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(b,m){return function(e,q,p,l){var r=e&&
"function"===typeof e.then,k=r&&e instanceof m;if(r)k||(r=new b(e.cancel),e.then(r.resolve,r.reject,r.progress),e=r.promise);else return 1<arguments.length?q?q(e):e:(new b).resolve(e);return q||p||l?e.then(q,p,l):e}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(b,m,e,q,p,l){function r(a,b){var d=a.getAttributeNode&&a.getAttributeNode(b);return d&&d.specified}var k={innerHTML:1,className:1,htmlFor:m("ie"),value:1},g={classname:"class",
htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};b.has=function(a,b){var d=b.toLowerCase();return k[l.names[d]||b]||r(q.byId(a),g[d]||b)};b.get=function(a,b){a=q.byId(a);var d=b.toLowerCase(),c=l.names[d]||b,h=a[c];if(k[c]&&"undefined"!=typeof h||"href"!=c&&("boolean"==typeof h||e.isFunction(h)))return h;d=g[d]||b;return r(a,d)?a.getAttribute(d):null};b.set=function(a,f,d){a=q.byId(a);if(2==arguments.length){for(var c in f)b.set(a,c,f[c]);return a}c=f.toLowerCase();var h=l.names[c]||f,m=k[h];
if("style"==h&&"string"!=typeof d)return p.set(a,d),a;if(m||"boolean"==typeof d||e.isFunction(d))return l.set(a,f,d);a.setAttribute(g[c]||f,d);return a};b.remove=function(a,b){q.byId(a).removeAttribute(g[b.toLowerCase()]||b)};b.getNodeProp=function(a,b){a=q.byId(a);var d=b.toLowerCase(),c=l.names[d]||b;if(c in a&&"href"!=c)return a[c];d=g[d]||b;return r(a,d)?a.getAttribute(d):null}})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),
function(b,m,e,q,p,l){function r(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)}function k(a){if(a.canHaveChildren)try{a.innerHTML="";return}catch(b){}for(var c;c=a.lastChild;)g(c,a)}function g(a,b){a.firstChild&&k(a);b&&(e("ie")&&b.canHaveChildren&&"removeNode"in a?a.removeNode(!1):b.removeChild(a))}var a={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],
col:["table","colgroup"],li:["ul"]},f=/<\s*([\w\:]+)/,d={},c=0,h="__"+m._scopeName+"ToDomId",s;for(s in a)a.hasOwnProperty(s)&&(m=a[s],m.pre="option"==s?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+m.join("\x3e\x3c")+"\x3e",m.post="\x3c/"+m.reverse().join("\x3e\x3c/")+"\x3e");var n;8>=e("ie")&&(n=function(a){a.__dojo_html5_tested="yes";var b=t("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==b.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,
function(b){a.createElement(b)});w(b)});b.toDom=function(b,g){g=g||q.doc;var l=g[h];l||(g[h]=l=++c+"",d[l]=g.createElement("div"));8>=e("ie")&&!g.__dojo_html5_tested&&g.body&&n(g);b+="";var k=b.match(f),p=k?k[1].toLowerCase():"",l=d[l];if(k&&a[p]){k=a[p];l.innerHTML=k.pre+b+k.post;for(k=k.length;k;--k)l=l.firstChild}else l.innerHTML=b;if(1==l.childNodes.length)return l.removeChild(l.firstChild);for(p=g.createDocumentFragment();k=l.firstChild;)p.appendChild(k);return p};b.place=function(a,c,d){c=p.byId(c);
"string"==typeof a&&(a=/^\s*</.test(a)?b.toDom(a,c.ownerDocument):p.byId(a));if("number"==typeof d){var f=c.childNodes;!f.length||f.length<=d?c.appendChild(a):r(a,f[0>d?0:d])}else switch(d){case "before":r(a,c);break;case "after":d=a;(f=c.parentNode)&&(f.lastChild==c?f.appendChild(d):f.insertBefore(d,c.nextSibling));break;case "replace":c.parentNode.replaceChild(a,c);break;case "only":b.empty(c);c.appendChild(a);break;case "first":if(c.firstChild){r(a,c.firstChild);break}default:c.appendChild(a)}return a};
var t=b.create=function(a,c,d,f){var h=q.doc;d&&(d=p.byId(d),h=d.ownerDocument);"string"==typeof a&&(a=h.createElement(a));c&&l.set(a,c);d&&b.place(a,d,f);return a};b.empty=function(a){k(p.byId(a))};var w=b.destroy=function(a){(a=p.byId(a))&&g(a,a.parentNode)}})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(b,m,e,q,p){function l(a,c){var d=a.xhr;a.status=a.xhr.status;a.text=d.responseText;"xml"===a.options.handleAs&&(a.data=d.responseXML);
if(!c)try{e(a)}catch(f){c=f}c?this.reject(c):q.checkStatus(d.status)?this.resolve(a):(c=new b("Unable to load "+a.url+" status: "+d.status,a),this.reject(c))}function r(a){return this.xhr.getResponseHeader(a)}function k(e,n,s){var u=q.parseArgs(e,q.deepCreate(h,n),p("native-formdata")&&n&&n.data&&n.data instanceof FormData);e=u.url;n=u.options;var A,z=q.deferred(u,d,g,a,l,function(){A&&A()}),y=u.xhr=k._create();if(!y)return z.cancel(new b("XHR was not created")),s?z:z.promise;u.getHeader=r;f&&(A=
f(y,z,u));var x=n.data,E=!n.sync,J=n.method;try{y.open(J,e,E,n.user||c,n.password||c);n.withCredentials&&(y.withCredentials=n.withCredentials);var M=n.headers;e="application/x-www-form-urlencoded";if(M)for(var L in M)"content-type"===L.toLowerCase()?e=M[L]:M[L]&&y.setRequestHeader(L,M[L]);e&&!1!==e&&y.setRequestHeader("Content-Type",e);(!M||!("X-Requested-With"in M))&&y.setRequestHeader("X-Requested-With","XMLHttpRequest");q.notify&&q.notify.emit("send",u,z.promise.cancel);y.send(x)}catch(R){z.reject(R)}m(z);
y=null;return s?z:z.promise}p.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});p.add("dojo-force-activex-xhr",function(){return p("activex")&&!document.addEventListener&&"file:"===window.location.protocol});p.add("native-xhr2",function(){if(p("native-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});p.add("native-formdata",function(){return"function"===typeof FormData});var g,a,f,d;p("native-xhr2")?
(g=function(a){return!this.isFulfilled()},d=function(a,b){b.xhr.abort()},f=function(a,c,d){function f(a){c.handleResponse(d)}function h(a){a=new b("Unable to load "+d.url+" status: "+a.target.status,d);c.handleResponse(d,a)}function g(a){a.lengthComputable&&(d.loaded=a.loaded,d.total=a.total,c.progress(d))}a.addEventListener("load",f,!1);a.addEventListener("error",h,!1);a.addEventListener("progress",g,!1);return function(){a.removeEventListener("load",f,!1);a.removeEventListener("error",h,!1);a.removeEventListener("progress",
g,!1);a=null}}):(g=function(a){return a.xhr.readyState},a=function(a){return 4===a.xhr.readyState},d=function(a,b){var c=b.xhr,d=typeof c.abort;("function"===d||"object"===d||"unknown"===d)&&c.abort()});var c,h={data:null,query:null,sync:!1,method:"GET"};k._create=function(){throw Error("XMLHTTP not available");};if(p("native-xhr")&&!p("dojo-force-activex-xhr"))k._create=function(){return new XMLHttpRequest};else if(p("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),k._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(s){try{new ActiveXObject("Microsoft.XMLHTTP"),
k._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(n){}}q.addCommonMethods(k);return k})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(b,m,e,q){var p;p=function(a,b,d){q(a,{sync:!!b}).then(d)};var l={},r=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}else a="";return a},k={},g={};b.cache=function(a,b,d){var c;"string"==typeof a?
/\//.test(a)?(c=a,d=b):c=m.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")):(c=a+"",d=b);a=void 0!=d&&"string"!=typeof d?d.value:d;d=d&&d.sanitize;if("string"==typeof a)return l[c]=a,d?r(a):a;if(null===a)return delete l[c],null;c in l||p(c,!0,function(a){l[c]=a});return d?r(l[c]):l[c]};return{dynamic:!0,normalize:function(a,b){var d=a.split("!"),c=d[0];return(/^\./.test(c)?b(c):c)+(d[1]?"!"+d[1]:"")},load:function(a,b,d){a=a.split("!");var c=1<a.length,h=a[0],e=b.toUrl(a[0]);a="url:"+e;var n=k,m=function(a){d(c?
r(a):a)};h in l?n=l[h]:b.cache&&a in b.cache?n=b.cache[a]:e in l&&(n=l[e]);if(n===k)if(g[e])g[e].push(m);else{var q=g[e]=[m];p(e,!b.async,function(a){l[h]=l[e]=a;for(var b=0;b<q.length;)q[b++](a);delete g[e]})}else m(n)}}})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(b,m){return b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:m("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,
RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,
RIGHT_DPAD:178,copyKey:m("mac")&&!m("air")?m("safari")?91:224:17}})},"dojo/domReady":function(){define(["./has"],function(b){function m(a){g.push(a);k&&e()}function e(){if(!a){for(a=!0;g.length;)try{g.shift()(p)}catch(b){}a=!1;m._onQEmpty()}}var q=this,p=document,l={loaded:1,complete:1},r="string"!=typeof p.readyState,k=!!l[p.readyState],g=[],a;m.load=function(a,b,c){m(c)};m._Q=g;m._onQEmpty=function(){};r&&(p.readyState="loading");if(!k){var f=[],d=function(a){a=a||q.event;k||"readystatechange"==
a.type&&!l[p.readyState]||(r&&(p.readyState="complete"),k=1,e())},c=function(a,b){a.addEventListener(b,d,!1);g.push(function(){a.removeEventListener(b,d,!1)})};if(!b("dom-addeventlistener")){var c=function(a,b){b="on"+b;a.attachEvent(b,d);g.push(function(){a.detachEvent(b,d)})},h=p.createElement("div");try{h.doScroll&&null===q.frameElement&&f.push(function(){try{return h.doScroll("left"),1}catch(a){}})}catch(s){}}c(p,"DOMContentLoaded");c(q,"load");"onreadystatechange"in p?c(p,"readystatechange"):
r||f.push(function(){return l[p.readyState]});if(f.length){var n=function(){if(!k){for(var a=f.length;a--;)if(f[a]()){d("poller");return}setTimeout(n,30)}};n()}}return m})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(b,m){m.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var e=m("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],q=e.length,
p=function(a,f,d){var c,h=0,g=b.global;if(!d)if(a.length){c=a[h++];try{d=b.scopeMap[c]&&b.scopeMap[c][1]}catch(e){}d=d||(c in g?g[c]:f?g[c]={}:void 0)}else return g;for(;d&&(c=a[h++]);)d=c in d?d[c]:f?d[c]={}:void 0;return d},l=Object.prototype.toString,r=function(a,b,d){return(d||[]).concat(Array.prototype.slice.call(a,b||0))},k=/\{([^\}]+)\}/g,g={_extraNames:e,_mixin:function(a,b,d){var c,h,g,n={};for(c in b)if(h=b[c],!(c in a)||a[c]!==h&&(!(c in n)||n[c]!==h))a[c]=d?d(h):h;if(m("bug-for-in-skips-shadowed")&&
b)for(g=0;g<q;++g)if(c=e[g],h=b[c],!(c in a)||a[c]!==h&&(!(c in n)||n[c]!==h))a[c]=d?d(h):h;return a},mixin:function(a,b){a||(a={});for(var d=1,c=arguments.length;d<c;d++)g._mixin(a,arguments[d]);return a},setObject:function(a,b,d){var c=a.split(".");a=c.pop();return(d=p(c,!0,d))&&a?d[a]=b:void 0},getObject:function(a,b,d){return p(a.split("."),b,d)},exists:function(a,b){return void 0!==g.getObject(a,!1,b)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:function(a){return a&&
(a instanceof Array||"array"==typeof a)},isFunction:function(a){return"[object Function]"===l.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==typeof a||g.isArray(a)||g.isFunction(a))},isArrayLike:function(a){return a&&void 0!==a&&!g.isString(a)&&!g.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(g.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!g.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))},extend:function(a,b){for(var d=1,c=arguments.length;d<
c;d++)g._mixin(a.prototype,arguments[d]);return a},_hitchArgs:function(a,f){var d=g._toArray(arguments,2),c=g.isString(f);return function(){var h=g._toArray(arguments),e=c?(a||b.global)[f]:f;return e&&e.apply(a||this,d.concat(h))}},hitch:function(a,f){if(2<arguments.length)return g._hitchArgs.apply(b,arguments);f||(f=a,a=null);if(g.isString(f)){a=a||b.global;if(!a[f])throw['lang.hitch: scope["',f,'"] is null (scope\x3d"',a,'")'].join("");return function(){return a[f].apply(a,arguments||[])}}return!a?
f:function(){return f.apply(a,arguments||[])}},delegate:function(){function a(){}return function(b,d){a.prototype=b;var c=new a;a.prototype=null;d&&g._mixin(c,d);return c}}(),_toArray:m("ie")?function(){function a(a,b,c){c=c||[];for(b=b||0;b<a.length;b++)c.push(a[b]);return c}return function(b){return(b.item?a:r).apply(this,arguments)}}():r,partial:function(a){return g.hitch.apply(b,[null].concat(g._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||g.isFunction(a))return a;if(a.nodeType&&
"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var b,d,c;if(g.isArray(a)){b=[];d=0;for(c=a.length;d<c;++d)d in a&&b.push(g.clone(a[d]))}else b=a.constructor?new a.constructor:{};return g._mixin(b,a,g.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,b,d){return a.replace(d||k,g.isFunction(b)?b:function(a,d){return g.getObject(d,
!1,b)})}};g.mixin(b,g);return g})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise".split(" "),function(b,m,e,q,p,l,r,k){function g(a){return f(a)}function a(a){return a.data||a.text}b.deepCopy=function(a,c){for(var f in c){var g=a[f],e=c[f];g!==e&&(g&&"object"===typeof g&&e&&"object"===typeof e?b.deepCopy(g,e):a[f]=e)}return a};b.deepCreate=function(a,c){c=c||{};var f=r.delegate(a),
g,e;for(g in a)(e=a[g])&&"object"===typeof e&&(f[g]=b.deepCreate(e,c[g]));return b.deepCopy(f,c)};var f=Object.freeze||function(a){return a};b.deferred=function(d,c,h,l,n,p){var w=new q(function(a){c&&c(w,d);return!a||!(a instanceof m)&&!(a instanceof e)?new e("Request canceled",d):a});w.response=d;w.isValid=h;w.isReady=l;w.handleResponse=n;h=w.then(g).otherwise(function(a){a.response=d;throw a;});b.notify&&h.then(r.hitch(b.notify,"emit","load"),r.hitch(b.notify,"emit","error"));l=h.then(a);n=new k;
for(var v in l)l.hasOwnProperty(v)&&(n[v]=l[v]);n.response=h;f(n);p&&w.then(function(a){p.call(w,a)},function(a){p.call(w,d,a)});w.promise=n;w.then=n.then;return w};b.addCommonMethods=function(a,b){l.forEach(b||["GET","POST","PUT","DELETE"],function(b){a[("DELETE"===b?"DEL":b).toLowerCase()]=function(c,f){f=r.delegate(f||{});f.method=b;return a(c,f)}})};b.parseArgs=function(a,b,f){var g=b.data,e=b.query;g&&!f&&"object"===typeof g&&(b.data=p.objectToQuery(g));e?("object"===typeof e&&(e=p.objectToQuery(e)),
b.preventCache&&(e+=(e?"\x26":"")+"request.preventCache\x3d"+ +new Date)):b.preventCache&&(e="request.preventCache\x3d"+ +new Date);a&&e&&(a+=(~a.indexOf("?")?"\x26":"?")+e);return{url:a,options:b,getHeader:function(a){return null}}};b.checkStatus=function(a){a=a||0;return 200<=a&&300>a||304===a||1223===a||!a}})},"dojo/Evented":function(){define(["./aspect","./on"],function(b,m){function e(){}var q=b.after;e.prototype={on:function(b,e){return m.parse(this,b,e,function(b,k){return q(b,"on"+k,e,!0)})},
emit:function(b,e){var r=[this];r.push.apply(r,arguments);return m.emit.apply(m,r)}};return e})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(b,m,e,q,p){function l(b,e){var g=function(a,f){return m(a,b,function(b){if(e)return e(b,f);if(!q.isDescendant(b.relatedTarget,a))return f.call(this,b)})};g.bubble=function(a){return l(b,function(b,d){var c=a(b.target),h=b.relatedTarget;if(c&&c!=(h&&1==h.nodeType&&a(h)))return d.call(c,b)})};return g}e.add("dom-quirks",
p.doc&&"BackCompat"==p.doc.compatMode);e.add("events-mouseenter",p.doc&&"onmouseenter"in p.doc.createElement("div"));e.add("events-mousewheel",p.doc&&"onmousewheel"in p.doc);p=e("dom-quirks")&&e("ie")||!e("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(b,e){return b.button&e},isLeft:function(b){return b.button&1},isMiddle:function(b){return b.button&4},isRight:function(b){return b.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(b,e){return b.button==e},isLeft:function(b){return 0==
b.button},isMiddle:function(b){return 1==b.button},isRight:function(b){return 2==b.button}};b.mouseButtons=p;b=e("events-mousewheel")?"mousewheel":function(b,e){return m(b,"DOMMouseScroll",function(b){b.wheelDelta=-b.detail;e.call(this,b)})};return{_eventHandler:l,enter:l("mouseover"),leave:l("mouseout"),wheel:b,isLeft:p.isLeft,isMiddle:p.isMiddle,isRight:p.isRight}})},"dojo/_base/xhr":function(){define("./kernel ./sniff require ../io-query ../dom ../dom-form ./Deferred ./config ./json ./lang ./array ../on ../aspect ../request/watch ../request/xhr ../request/util".split(" "),
function(b,m,e,q,p,l,r,k,g,a,f,d,c,h,s,n){b._xhrObj=s._create;var t=b.config;b.objectToQuery=q.objectToQuery;b.queryToObject=q.queryToObject;b.fieldToObject=l.fieldToObject;b.formToObject=l.toObject;b.formToQuery=l.toQuery;b.formToJson=l.toJson;b._blockAsync=!1;var w=b._contentHandlers=b.contentHandlers={text:function(a){return a.responseText},json:function(a){return g.fromJson(a.responseText||null)},"json-comment-filtered":function(a){k.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}\x26\x26\nUse djConfig.useCommentedJson\x3dtrue to turn off this message.");
a=a.responseText;var b=a.indexOf("/*"),c=a.lastIndexOf("*/");if(-1==b||-1==c)throw Error("JSON was not comment filtered");return g.fromJson(a.substring(b+2,c))},javascript:function(a){return b.eval(a.responseText)},xml:function(a){var b=a.responseXML;b&&(m("dom-qsa2.1")&&!b.querySelectorAll&&m("dom-parser"))&&(b=(new DOMParser).parseFromString(a.responseText,"application/xml"));if(m("ie")&&(!b||!b.documentElement)){var c=function(a){return"MSXML"+a+".DOMDocument"},c=["Microsoft.XMLDOM",c(6),c(4),
c(3),c(2)];f.some(c,function(c){try{var d=new ActiveXObject(c);d.async=!1;d.loadXML(a.responseText);b=d}catch(f){return!1}return!0})}return b},"json-comment-optional":function(a){return a.responseText&&/^[^{\[]*\/\*/.test(a.responseText)?w["json-comment-filtered"](a):w.json(a)}};b._ioSetArgs=function(c,d,f,h){var g={args:c,url:c.url},e=null;if(c.form){var e=p.byId(c.form),n=e.getAttributeNode("action");g.url=g.url||(n?n.value:null);e=l.toObject(e)}n=[{}];e&&n.push(e);c.content&&n.push(c.content);
c.preventCache&&n.push({"dojo.preventCache":(new Date).valueOf()});g.query=q.objectToQuery(a.mixin.apply(null,n));g.handleAs=c.handleAs||"text";var k=new r(function(a){a.canceled=!0;d&&d(a);var b=a.ioArgs.error;b||(b=Error("request cancelled"),b.dojoType="cancel",a.ioArgs.error=b);return b});k.addCallback(f);var m=c.load;m&&a.isFunction(m)&&k.addCallback(function(a){return m.call(c,a,g)});var s=c.error;s&&a.isFunction(s)&&k.addErrback(function(a){return s.call(c,a,g)});var w=c.handle;w&&a.isFunction(w)&&
k.addBoth(function(a){return w.call(c,a,g)});k.addErrback(function(a){return h(a,k)});t.ioPublish&&(b.publish&&!1!==g.args.ioPublish)&&(k.addCallbacks(function(a){b.publish("/dojo/io/load",[k,a]);return a},function(a){b.publish("/dojo/io/error",[k,a]);return a}),k.addBoth(function(a){b.publish("/dojo/io/done",[k,a]);return a}));k.ioArgs=g;return k};var v=function(a){a=w[a.ioArgs.handleAs](a.ioArgs.xhr);return void 0===a?null:a},u=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},A=function(a){0>=
z&&(z=0,t.ioPublish&&(b.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish))&&b.publish("/dojo/io/stop"))},z=0;c.after(h,"_onAction",function(){z-=1});c.after(h,"_onInFlight",A);b._ioCancelAll=h.cancelAll;b._ioNotifyStart=function(a){t.ioPublish&&(b.publish&&!1!==a.ioArgs.args.ioPublish)&&(z||b.publish("/dojo/io/start"),z+=1,b.publish("/dojo/io/send",[a]))};b._ioWatch=function(b,c,d,f){b.ioArgs.options=b.ioArgs.args;a.mixin(b,{response:b.ioArgs,isValid:function(a){return c(b)},isReady:function(a){return d(b)},
handleResponse:function(a){return f(b)}});h(b);A(b)};b._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(-1==a.url.indexOf("?")?"?":"\x26")+a.query,a.query=null)};b.xhr=function(a,c,d){var f,h=b._ioSetArgs(c,function(a){f&&f.cancel()},v,u),g=h.ioArgs;"postData"in c?g.query=c.postData:"putData"in c?g.query=c.putData:"rawBody"in c?g.query=c.rawBody:(2<arguments.length&&!d||-1==="POST|PUT".indexOf(a.toUpperCase()))&&b._ioAddQueryToUrl(g);var e={method:a,handleAs:"text",timeout:c.timeout,withCredentials:c.withCredentials,
ioArgs:g};"undefined"!==typeof c.headers&&(e.headers=c.headers);"undefined"!==typeof c.contentType&&(e.headers||(e.headers={}),e.headers["Content-Type"]=c.contentType);"undefined"!==typeof g.query&&(e.data=g.query);"undefined"!==typeof c.sync&&(e.sync=c.sync);b._ioNotifyStart(h);try{f=s(g.url,e,!0)}catch(l){return h.cancel(),h}h.ioArgs.xhr=f.response.xhr;f.then(function(){h.resolve(h)}).otherwise(function(a){g.error=a;a.response&&(a.status=a.response.status,a.responseText=a.response.text,a.xhr=a.response.xhr);
h.reject(a)});return h};b.xhrGet=function(a){return b.xhr("GET",a)};b.rawXhrPost=b.xhrPost=function(a){return b.xhr("POST",a,!0)};b.rawXhrPut=b.xhrPut=function(a){return b.xhr("PUT",a,!0)};b.xhrDelete=function(a){return b.xhr("DELETE",a)};b._isDocumentOk=function(a){return n.checkStatus(a.status)};b._getText=function(a){var c;b.xhrGet({url:a,sync:!0,load:function(a){c=a}});return c};a.mixin(b.xhr,{_xhrObj:b._xhrObj,fieldToObject:l.fieldToObject,formToObject:l.toObject,objectToQuery:q.objectToQuery,
formToQuery:l.toQuery,formToJson:l.toJson,queryToObject:q.queryToObject,contentHandlers:w,_ioSetArgs:b._ioSetArgs,_ioCancelAll:b._ioCancelAll,_ioNotifyStart:b._ioNotifyStart,_ioWatch:b._ioWatch,_ioAddQueryToUrl:b._ioAddQueryToUrl,_isDocumentOk:b._isDocumentOk,_getText:b._getText,get:b.xhrGet,post:b.xhrPost,put:b.xhrPut,del:b.xhrDelete});return b.xhr})},"dojo/topic":function(){define(["./Evented"],function(b){var m=new b;return{publish:function(b,q){return m.emit.apply(m,arguments)},subscribe:function(b,
q){return m.on.apply(m,arguments)}}})},"dojo/loadInit":function(){define(["./_base/loader"],function(b){return{dynamic:0,normalize:function(b){return b},load:b.loadInit}})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(b,m,e){var q=window,p={addOnWindowUnload:function(l,p){b.windowUnloaded||e(q,"unload",b.windowUnloaded=function(){});e(q,"unload",m.hitch(l,p))},addOnUnload:function(b,p){e(q,"beforeunload",m.hitch(b,p))}};b.addOnWindowUnload=p.addOnWindowUnload;b.addOnUnload=
p.addOnUnload;return p})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(b,m,e,q,p){var l=Object.freeze||function(){},r=function(a,b,h,g,e){2===b&&(f.instrumentRejected&&0===a.length)&&f.instrumentRejected(h,!1,g,e);for(e=0;e<a.length;e++)k(a[e],b,h,g)},k=function(b,c,h,e){var l=b[c],k=b.deferred;if(l)try{var p=l(h);if(0===c)"undefined"!==typeof p&&a(k,c,p);else{if(p&&"function"===typeof p.then){b.cancel=p.cancel;
p.then(g(k,1),g(k,2),g(k,0));return}a(k,1,p)}}catch(m){a(k,2,m)}else a(k,c,h);2===c&&f.instrumentRejected&&f.instrumentRejected(h,!!l,e,k.promise)},g=function(b,c){return function(f){a(b,c,f)}},a=function(a,b,f){if(!a.isCanceled())switch(b){case 0:a.progress(f);break;case 1:a.resolve(f);break;case 2:a.reject(f)}},f=function(a){var b=this.promise=new q,h=this,g,n,p,m=!1,v=[];Error.captureStackTrace&&(Error.captureStackTrace(h,f),Error.captureStackTrace(b,f));this.isResolved=b.isResolved=function(){return 1===
g};this.isRejected=b.isRejected=function(){return 2===g};this.isFulfilled=b.isFulfilled=function(){return!!g};this.isCanceled=b.isCanceled=function(){return m};this.progress=function(a,d){if(g){if(!0===d)throw Error("This deferred has already been fulfilled.");return b}r(v,0,a,null,h);return b};this.resolve=function(a,d){if(g){if(!0===d)throw Error("This deferred has already been fulfilled.");return b}r(v,g=1,n=a,null,h);v=null;return b};var u=this.reject=function(a,d){if(g){if(!0===d)throw Error("This deferred has already been fulfilled.");
return b}Error.captureStackTrace&&Error.captureStackTrace(p={},u);r(v,g=2,n=a,p,h);v=null;return b};this.then=b.then=function(a,d,h){var e=[h,a,d];e.cancel=b.cancel;e.deferred=new f(function(a){return e.cancel&&e.cancel(a)});g&&!v?k(e,g,n,p):v.push(e);return e.deferred.promise};this.cancel=b.cancel=function(b,c){if(g){if(!0===c)throw Error("This deferred has already been fulfilled.");}else{if(a){var f=a(b);b="undefined"===typeof f?b:f}m=!0;if(g){if(2===g&&n===b)return b}else return"undefined"===typeof b&&
(b=new e),u(b),b}};l(b)};f.prototype.toString=function(){return"[object Deferred]"};p&&p(f);return f})},"dojo/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],function(b,m,e){m=m.NodeList;var q=m.prototype;q.connect=m._adaptAsForEach(function(){return b.connect.apply(this,arguments)});q.coords=m._adaptAsMap(b.coords);m.events="blur focus change click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit".split(" ");
e.forEach(m.events,function(b){var e="on"+b;q[e]=function(b,k){return this.connect(e,b,k)}});return b.NodeList=m})},"dojo/request":function(){define(["./request/default!"],function(b){return b})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(b,m,e,q){var p=b.Color=function(b){b&&this.setColor(b)};p.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,
128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:q.transparentColor||[0,0,0,0]};m.extend(p,{r:255,g:255,b:255,a:1,_set:function(b,e,k,g){this.r=b;this.g=e;this.b=k;this.a=g},setColor:function(b){m.isString(b)?p.fromString(b,this):m.isArray(b)?p.fromArray(b,this):(this._set(b.r,b.g,b.b,b.a),b instanceof p||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},
toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+e.map(["r","g","b"],function(b){b=this[b].toString(16);return 2>b.length?"0"+b:b},this).join("")},toCss:function(b){var e=this.r+", "+this.g+", "+this.b;return(b?"rgba("+e+", "+this.a:"rgb("+e)+")"},toString:function(){return this.toCss(!0)}});p.blendColors=b.blendColors=function(b,m,k,g){var a=g||new p;e.forEach(["r","g","b","a"],function(f){a[f]=b[f]+(m[f]-b[f])*k;"a"!=f&&(a[f]=Math.round(a[f]))});return a.sanitize()};
p.fromRgb=b.colorFromRgb=function(b,e){var k=b.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return k&&p.fromArray(k[1].split(/\s*,\s*/),e)};p.fromHex=b.colorFromHex=function(b,m){var k=m||new p,g=4==b.length?4:8,a=(1<<g)-1;b=Number("0x"+b.substr(1));if(isNaN(b))return null;e.forEach(["b","g","r"],function(f){var d=b&a;b>>=g;k[f]=4==g?17*d:d});k.a=1;return k};p.fromArray=b.colorFromArray=function(b,e){var k=e||new p;k._set(Number(b[0]),Number(b[1]),Number(b[2]),Number(b[3]));isNaN(k.a)&&(k.a=1);
return k.sanitize()};p.fromString=b.colorFromString=function(b,e){var k=p.named[b];return k&&p.fromArray(k,e)||p.fromRgb(b,e)||p.fromHex(b,e)};return p})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(b,m,e,q){function p(a,b,f){var g="";a&&a.stack&&(g+=a.stack);b&&b.stack&&(g+="\n    ----------------------------------------\n    rejected"+b.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));f&&f.stack&&(g+="\n    ----------------------------------------\n"+
f.stack);console.error(a,g)}function l(a,b,f,g){b||p(a,f,g)}function r(b,c,h,e){c?q.some(g,function(a,c){if(a.error===b)return g.splice(c,1),!0}):q.some(g,function(a){return a.error===b})||g.push({error:b,rejection:h,deferred:e,timestamp:(new Date).getTime()});a||(a=setTimeout(k,f))}function k(){var b=(new Date).getTime(),c=b-f;g=q.filter(g,function(a){return a.timestamp<c?(p(a.error,a.rejection,a.deferred),!1):!0});a=g.length?setTimeout(k,g[0].timestamp+f-b):!1}var g=[],a=!1,f=1E3;return function(a){var c=
m("config-useDeferredInstrumentation");if(c){b.on("resolved",e.hitch(console,"log","resolved"));b.on("rejected",e.hitch(console,"log","rejected"));b.on("progress",e.hitch(console,"log","progress"));var g=[];"string"===typeof c&&(g=c.split(","),c=g.shift());if("report-rejections"===c)a.instrumentRejected=l;else if("report-unhandled-rejections"===c||!0===c||1===c)a.instrumentRejected=r,f=parseInt(g[0],10)||f;else throw Error("Unsupported instrumentation usage \x3c"+c+"\x3e");}}})},"dojo/selector/_loader":function(){define(["../has",
"require"],function(b,m){var e=document.createElement("div");b.add("dom-qsa2.1",!!e.querySelectorAll);b.add("dom-qsa3",function(){try{return e.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",1==e.querySelectorAll(".TEST:empty").length}catch(b){}});var q;return{load:function(e,l,r,k){k=m;e="default"==e?b("config-selectorEngine")||"css3":e;e="css2"==e||"lite"==e?"./lite":"css2.1"==e?b("dom-qsa2.1")?"./lite":"./acme":"css3"==e?b("dom-qsa3")?"./lite":"./acme":"acme"==e?"./acme":(k=l)&&e;if("?"==e.charAt(e.length-
1)){e=e.substring(0,e.length-1);var g=!0}if(g&&(b("dom-compliant-qsa")||q))return r(q);k([e],function(a){"./lite"!=e&&(q=a);r(a)})}}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(b){function m(){throw new TypeError("abstract");}return b.extend(function(){},{then:function(b,q,p){m()},cancel:function(b,q){m()},isResolved:function(){m()},isRejected:function(){m()},isFulfilled:function(){m()},isCanceled:function(){m()},always:function(b){return this.then(b,b)},otherwise:function(b){return this.then(null,
b)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),function(b,m,e,q,p,l){function r(){for(var b=+new Date,d=0,c;d<a.length&&(c=a[d]);d++){var e=c.response,l=e.options;if(c.isCanceled&&c.isCanceled()||c.isValid&&!c.isValid(e))a.splice(d--,
1),k._onAction&&k._onAction();else if(c.isReady&&c.isReady(e))a.splice(d--,1),c.handleResponse(e),k._onAction&&k._onAction();else if(c.startTime&&c.startTime+(l.timeout||0)<b)a.splice(d--,1),c.cancel(new m("Timeout exceeded",e)),k._onAction&&k._onAction()}k._onInFlight&&k._onInFlight(c);a.length||(clearInterval(g),g=null)}function k(b){b.response.options.timeout&&(b.startTime=+new Date);b.isFulfilled()||(a.push(b),g||(g=setInterval(r,50)),b.response.options.sync&&r())}var g=null,a=[];k.cancelAll=
function(){try{q.forEach(a,function(a){try{a.cancel(new e("All requests canceled."))}catch(b){}})}catch(b){}};p&&(l&&p.doc.attachEvent)&&l(p.global,"unload",function(){k.cancelAll()});return k})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(b,m,e){function q(a,b,c,f,n){if(f=b.match(/(.*):(.*)/))return b=f[2],f=f[1],k.selector(f,b).call(n,a,c);e("touch")&&(g.test(b)&&(c=y(c)),!e("event-orientationchange")&&"orientationchange"==b&&(b="resize",
a=window,c=y(c)));h&&(c=h(c));if(a.addEventListener){var l=b in d,m=l?d[b]:b;a.addEventListener(m,c,l);return{remove:function(){a.removeEventListener(m,c,l)}}}if(w&&a.attachEvent)return w(a,"on"+b,c);throw Error("Target must be an event emitter");}function p(){this.cancelable=!1;this.defaultPrevented=!0}function l(){this.bubbles=!1}var r=window.ScriptEngineMajorVersion;e.add("jscript",r&&r()+ScriptEngineMinorVersion()/10);e.add("event-orientationchange",e("touch")&&!e("android"));e.add("event-stopimmediatepropagation",
window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);e.add("event-focusin",function(a,b,c){return"onfocusin"in c});var k=function(a,b,c,d){return"function"==typeof a.on&&"function"!=typeof b&&!a.nodeType?a.on(b,c):k.parse(a,b,c,q,d,this)};k.pausable=function(a,b,c,d){var f;a=k(a,b,function(){if(!f)return c.apply(this,arguments)},d);a.pause=function(){f=!0};a.resume=function(){f=!1};return a};k.once=function(a,b,c,d){var f=k(a,b,function(){f.remove();return c.apply(this,
arguments)});return f};k.parse=function(a,b,c,d,f,e){if(b.call)return b.call(e,a,c);if(-1<b.indexOf(",")){b=b.split(/\s*,\s*/);for(var g=[],h=0,n;n=b[h++];)g.push(d(a,n,c,f,e));g.remove=function(){for(var a=0;a<g.length;a++)g[a].remove()};return g}return d(a,b,c,f,e)};var g=/^touch/;k.selector=function(a,b,c){return function(d,f){function g(b){for(e=e&&e.matches?e:m.query;!e.matches(b,a,d);)if(b==d||!1===c||!(b=b.parentNode)||1!=b.nodeType)return;return b}var e="function"==typeof a?{matches:a}:this,
h=b.bubble;return h?k(d,h(g),f):k(d,b,function(a){var b=g(a.target);return b&&f.call(b,a)})}};var a=[].slice,f=k.emit=function(b,c,d){var f=a.call(arguments,2),e="on"+c;if("parentNode"in b){var g=f[0]={},h;for(h in d)g[h]=d[h];g.preventDefault=p;g.stopPropagation=l;g.target=b;g.type=c;d=g}do b[e]&&b[e].apply(b,f);while(d&&d.bubbles&&(b=b.parentNode));return d&&d.cancelable&&d},d=e("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!e("event-stopimmediatepropagation"))var c=function(){this.modified=
this.immediatelyStopped=!0},h=function(a){return function(b){if(!b.immediatelyStopped)return b.stopImmediatePropagation=c,a.apply(this,arguments)}};if(e("dom-addeventlistener"))k.emit=function(a,b,c){if(a.dispatchEvent&&document.createEvent){var d=(a.ownerDocument||document).createEvent("HTMLEvents");d.initEvent(b,!!c.bubbles,!!c.cancelable);for(var g in c)g in d||(d[g]=c[g]);return a.dispatchEvent(d)&&d}return f.apply(k,arguments)};else{k._fixEvent=function(a,b){a||(a=(b&&(b.ownerDocument||b.document||
b).parentWindow||window).event);if(!a)return a;try{s&&(a.type==s.type&&a.srcElement==s.target)&&(a=s)}catch(c){}if(!a.target)switch(a.target=a.srcElement,a.currentTarget=b||a.srcElement,"mouseover"==a.type&&(a.relatedTarget=a.fromElement),"mouseout"==a.type&&(a.relatedTarget=a.toElement),a.stopPropagation||(a.stopPropagation=v,a.preventDefault=u),a.type){case "keypress":var d="charCode"in a?a.charCode:a.keyCode;10==d?(d=0,a.keyCode=13):13==d||27==d?d=0:3==d&&(d=99);a.charCode=d;d=a;d.keyChar=d.charCode?
String.fromCharCode(d.charCode):"";d.charOrCode=d.keyChar||d.keyCode}return a};var s,n=function(a){this.handle=a};n.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var t=function(a){return function(b){b=k._fixEvent(b,this);var c=a.call(this,b);b.modified&&(s||setTimeout(function(){s=null}),s=b);return c}},w=function(a,c,d){d=t(d);if(((a.ownerDocument?a.ownerDocument.parentWindow:a.parentWindow||a.window||window)!=top||5.8>e("jscript"))&&!e("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&
(_dojoIEListeners_=[]);var f=a[c];if(!f||!f.listeners){var g=f,f=Function("event","var callee \x3d arguments.callee; for(var i \x3d 0; i\x3ccallee.listeners.length; i++){var listener \x3d _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");f.listeners=[];a[c]=f;f.global=this;g&&f.listeners.push(_dojoIEListeners_.push(g)-1)}f.listeners.push(a=f.global._dojoIEListeners_.push(d)-1);return new n(a)}return b.after(a,c,d,!0)},v=function(){this.cancelBubble=!0},u=k._preventDefault=
function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(e("touch"))var A=function(){},z=window.orientation,y=function(a){return function(b){var c=b.corrected;if(!c){var d=b.type;try{delete b.type}catch(f){}if(b.type){if(e("mozilla")){var c={},g;for(g in b)c[g]=b[g]}else A.prototype=b,c=new A;c.preventDefault=function(){b.preventDefault()};c.stopPropagation=function(){b.stopPropagation()}}else c=b,c.type=
d;b.corrected=c;if("resize"==d){if(z==window.orientation)return null;z=window.orientation;c.type="orientationchange";return a.call(this,c)}"rotation"in c||(c.rotation=0,c.scale=1);var d=c.changedTouches[0],h;for(h in d)delete c[h],c[h]=d[h]}return a.call(this,c)}};return k})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(b,m,e){b._name="browser";m.mixin(b,{isBrowser:!0,isFF:e("ff"),isIE:e("ie"),isKhtml:e("khtml"),isWebKit:e("webkit"),isMozilla:e("mozilla"),isMoz:e("mozilla"),
isOpera:e("opera"),isSafari:e("safari"),isChrome:e("chrome"),isMac:e("mac"),isIos:e("ios"),isAndroid:e("android"),isWii:e("wii"),isQuirks:e("quirks"),isAir:e("air")});return e})},"dojo/errors/create":function(){define(["../_base/lang"],function(b){return function(m,e,q,p){q=q||Error;var l=function(b){if(q===Error){Error.captureStackTrace&&Error.captureStackTrace(this,l);var k=Error.call(this,b),g;for(g in k)k.hasOwnProperty(g)&&(this[g]=k[g]);this.message=b;this.stack=k.stack}else q.apply(this,arguments);
e&&e.apply(this,arguments)};l.prototype=b.delegate(q.prototype,p);l.prototype.name=m;return l.prototype.constructor=l}})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(b,m,e){function q(a){return r[a]=new Function("item","index","array",a)}function p(a){var b=!a;return function(d,c,g){var e=0,n=d&&d.length||0,k;n&&"string"==typeof d&&(d=d.split(""));"string"==typeof c&&(c=r[c]||q(c));if(g)for(;e<n;++e){if(k=!c.call(g,d[e],e,d),a^k)return!k}else for(;e<n;++e)if(k=!c(d[e],
e,d),a^k)return!k;return b}}function l(a){var b=1,d=0,c=0;a||(b=d=c=-1);return function(e,l,n,m){if(m&&0<b)return g.lastIndexOf(e,l,n);m=e&&e.length||0;var p=a?m+c:d;n===k?n=a?d:m+c:0>n?(n=m+n,0>n&&(n=d)):n=n>=m?m+c:n;for(m&&"string"==typeof e&&(e=e.split(""));n!=p;n+=b)if(e[n]==l)return n;return-1}}var r={},k,g={every:p(!1),some:p(!0),indexOf:l(!0),lastIndexOf:l(!1),forEach:function(a,b,d){var c=0,e=a&&a.length||0;e&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=r[b]||q(b));if(d)for(;c<
e;++c)b.call(d,a[c],c,a);else for(;c<e;++c)b(a[c],c,a)},map:function(a,b,d,c){var e=0,g=a&&a.length||0;c=new (c||Array)(g);g&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=r[b]||q(b));if(d)for(;e<g;++e)c[e]=b.call(d,a[e],e,a);else for(;e<g;++e)c[e]=b(a[e],e,a);return c},filter:function(a,b,d){var c=0,e=a&&a.length||0,g=[],n;e&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=r[b]||q(b));if(d)for(;c<e;++c)n=a[c],b.call(d,n,c,a)&&g.push(n);else for(;c<e;++c)n=a[c],b(n,c,a)&&g.push(n);
return g},clearCache:function(){r={}}};e.mixin(b,g);return g})},"dojo/_base/json":function(){define(["./kernel","../json"],function(b,m){b.fromJson=function(b){return eval("("+b+")")};b._escapeString=m.stringify;b.toJsonIndentStr="\t";b.toJson=function(e,q){return m.stringify(e,function(b,e){if(e){var m=e.__json__||e.json;if("function"==typeof m)return m.call(e)}return e},q&&b.toJsonIndentStr)};return b})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(b,m,e){var q=
{global:b.global,doc:this.document||null,body:function(e){e=e||b.doc;return e.body||e.getElementsByTagName("body")[0]},setContext:function(e,l){b.global=q.global=e;b.doc=q.doc=l},withGlobal:function(e,l,m,k){var g=b.global;try{return b.global=q.global=e,q.withDoc.call(null,e.document,l,m,k)}finally{b.global=q.global=g}},withDoc:function(m,l,r,k){var g=q.doc,a=e("quirks"),f=e("ie"),d,c,h;try{b.doc=q.doc=m;b.isQuirks=e.add("quirks","BackCompat"==b.doc.compatMode,!0,!0);if(e("ie")&&(h=m.parentWindow)&&
h.navigator)d=parseFloat(h.navigator.appVersion.split("MSIE ")[1])||void 0,(c=m.documentMode)&&(5!=c&&Math.floor(d)!=c)&&(d=c),b.isIE=e.add("ie",d,!0,!0);r&&"string"==typeof l&&(l=r[l]);return l.apply(r,k||[])}finally{b.doc=q.doc=g,b.isQuirks=e.add("quirks",a,!0,!0),b.isIE=e.add("ie",f,!0,!0)}}};m.mixin(b,q);return q})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(b,m,e){function q(b){if("string"==typeof b||b instanceof String){if(b&&!l.test(b))return r[0]=
b,r;b=b.split(l);b.length&&!b[0]&&b.shift();b.length&&!b[b.length-1]&&b.pop();return b}return!b?[]:m.filter(b,function(a){return a})}var p,l=/\s+/,r=[""],k={};return p={contains:function(b,a){return 0<=(" "+e.byId(b).className+" ").indexOf(" "+a+" ")},add:function(b,a){b=e.byId(b);a=q(a);var f=b.className,d,f=f?" "+f+" ":" ";d=f.length;for(var c=0,h=a.length,k;c<h;++c)(k=a[c])&&0>f.indexOf(" "+k+" ")&&(f+=k+" ");d<f.length&&(b.className=f.substr(1,f.length-2))},remove:function(g,a){g=e.byId(g);var f;
if(void 0!==a){a=q(a);f=" "+g.className+" ";for(var d=0,c=a.length;d<c;++d)f=f.replace(" "+a[d]+" "," ");f=b.trim(f)}else f="";g.className!=f&&(g.className=f)},replace:function(b,a,f){b=e.byId(b);k.className=b.className;p.remove(k,f);p.add(k,a);b.className!==k.className&&(b.className=k.className)},toggle:function(b,a,f){b=e.byId(b);if(void 0===f){a=q(a);for(var d=0,c=a.length,h;d<c;++d)h=a[d],p[p.contains(b,h)?"remove":"add"](b,h)}else p[f?"add":"remove"](b,a);return f}}})},"dojo/_base/config":function(){define(["../has",
"require"],function(b,m){var e={},q=m.rawConfig,p;for(p in q)e[p]=q[p];!e.locale&&"undefined"!=typeof navigator&&(e.locale=(navigator.language||navigator.userLanguage).toLowerCase());return e})},"dojo/main":function(){define("./_base/kernel ./has require ./sniff ./_base/lang ./_base/array ./_base/config ./ready ./_base/declare ./_base/connect ./_base/Deferred ./_base/json ./_base/Color ./has!dojo-firebug?./_firebug/firebug ./_base/browser ./_base/loader".split(" "),function(b,m,e,q,p,l,r,k){r.isDebug&&
e(["./_firebug/firebug"]);var g=r.require;g&&(g=l.map(p.isArray(g)?g:[g],function(a){return a.replace(/\./g,"/")}),b.isAsync?e(g):k(1,function(){e(g)}));return b})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(b,m,e,q){if(m._fixEvent){var p=m._fixEvent;m._fixEvent=function(b,e){(b=p(b,e))&&q.normalizeEvent(b);return b}}var l={fix:function(b,e){return m._fixEvent?m._fixEvent(b,e):b},stop:function(b){e("dom-addeventlistener")||b&&b.preventDefault?(b.preventDefault(),
b.stopPropagation()):(b=b||window.event,b.cancelBubble=!0,m._preventDefault.call(b))}};b.fixEvent=l.fix;b.stopEvent=l.stop;return l})},"dojo/sniff":function(){define(["./has"],function(b){var m=navigator,e=m.userAgent,m=m.appVersion,q=parseFloat(m);b.add("air",0<=e.indexOf("AdobeAIR"));b.add("msapp",parseFloat(e.split("MSAppHost/")[1])||void 0);b.add("khtml",0<=m.indexOf("Konqueror")?q:void 0);b.add("webkit",parseFloat(e.split("WebKit/")[1])||void 0);b.add("chrome",parseFloat(e.split("Chrome/")[1])||
void 0);b.add("safari",0<=m.indexOf("Safari")&&!b("chrome")?parseFloat(m.split("Version/")[1]):void 0);b.add("mac",0<=m.indexOf("Macintosh"));b.add("quirks","BackCompat"==document.compatMode);if(e.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p"),l=e.match(/OS ([\d_]+)/)?RegExp.$1:"1",l=parseFloat(l.replace(/_/,".").replace(/_/g,""));b.add(p,l);b.add("ios",l)}b.add("android",parseFloat(e.split("Android ")[1])||void 0);b.add("bb",(0<=e.indexOf("BlackBerry")||0<=e.indexOf("BB10"))&&parseFloat(e.split("Version/")[1])||
void 0);b.add("trident",parseFloat(m.split("Trident/")[1])||void 0);b.add("svg","undefined"!==typeof SVGAngle);b("webkit")||(0<=e.indexOf("Opera")&&b.add("opera",9.8<=q?parseFloat(e.split("Version/")[1])||q:q),0<=e.indexOf("Gecko")&&(!b("khtml")&&!b("webkit")&&!b("trident"))&&b.add("mozilla",q),b("mozilla")&&b.add("ff",parseFloat(e.split("Firefox/")[1]||e.split("Minefield/")[1])||void 0),document.all&&!b("opera")&&(e=parseFloat(m.split("MSIE ")[1])||void 0,(m=document.documentMode)&&(5!=m&&Math.floor(e)!=
m)&&(e=m),b.add("ie",e)),b.add("wii","undefined"!=typeof opera&&opera.wiiremote));return b})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(b,m,e,q){function p(b){var a=k[b.options.handleAs];b.data=a?a(b):b.data||b.text;return b}q.add("activex","undefined"!==typeof ActiveXObject);q.add("dom-parser",function(b){return"DOMParser"in b});var l;if(q("activex")){var r=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0",
"MSXML.DOMDocument"];l=function(b){var a=b.data;a&&(q("dom-qsa2.1")&&!a.querySelectorAll&&q("dom-parser"))&&(a=(new DOMParser).parseFromString(b.text,"application/xml"));if(!a||!a.documentElement){var f=b.text;e.some(r,function(b){try{var c=new ActiveXObject(b);c.async=!1;c.loadXML(f);a=c}catch(e){return!1}return!0})}return a}}var k={javascript:function(b){return m.eval(b.text||"")},json:function(e){return b.parse(e.text||null)},xml:l};p.register=function(b,a){k[b]=a};return p})},"dojo/aspect":function(){define([],
function(){function b(b,e,a,f){var d=b[e],c="around"==e,h;if(c){var l=a(function(){return d.advice(this,arguments)});h={remove:function(){l&&(l=b=a=null)},advice:function(a,b){return l?l.apply(a,b):d.advice(a,b)}}}else h={remove:function(){if(h.advice){var c=h.previous,d=h.next;!d&&!c?delete b[e]:(c?c.next=d:b[e]=d,d&&(d.previous=c));b=a=h.advice=null}},id:q++,advice:a,receiveArguments:f};if(d&&!c)if("after"==e){for(;d.next&&(d=d.next););d.next=h;h.previous=d}else"before"==e&&(b[e]=h,h.next=d,d.previous=
h);else b[e]=h;return h}function m(k){return function(g,a,f,d){var c=g[a],h;if(!c||c.target!=g)g[a]=h=function(){for(var a=q,b=arguments,c=h.before;c;)b=c.advice.apply(this,b)||b,c=c.next;if(h.around)var d=h.around.advice(this,b);for(c=h.after;c&&c.id<a;){if(c.receiveArguments)var f=c.advice.apply(this,b),d=f===e?d:f;else d=c.advice.call(this,d,b);c=c.next}return d},c&&(h.around={advice:function(a,b){return c.apply(a,b)}}),h.target=g;g=b(h||c,k,f,d);f=null;return g}}var e,q=0,p=m("after"),l=m("before"),
r=m("around");return{before:l,around:r,after:p}})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(b,m,e,q,p){var l=0,r=[],k=0;m=function(){l=1;b._postLoad=b.config.afterOnLoad=!0;g()};var g=function(){if(!k){for(k=1;l&&(!q||0==q._Q.length)&&(e.idle?e.idle():1)&&r.length;){var a=r.shift();try{a()}catch(b){if(b.info=b.message,e.signal)e.signal("error",b);else throw b;}}k=0}};e.on&&e.on("idle",g);q&&(q._onQEmpty=g);var a=b.ready=b.addOnLoad=function(a,
c,f){var e=p._toArray(arguments);"number"!=typeof a?(f=c,c=a,a=1E3):e.shift();f=f?p.hitch.apply(b,e):function(){c()};f.priority=a;for(e=0;e<r.length&&a>=r[e].priority;e++);r.splice(e,0,f);g()},f=b.config.addOnLoad;if(f)a[p.isArray(f)?"apply":"call"](b,f);b.config.parseOnLoad&&!b.isAsync&&a(99,function(){b.parser||(b.deprecated("Add explicit require(['dojo/parser']);","","2.0"),e(["dojo/parser"]))});q?q(m):m();return a})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),
function(b,m,e,q,p,l,r,k){function g(a,c,d,f,e){f=k.hitch(d,f);if(!a||!a.addEventListener&&!a.attachEvent)return q.after(a||b.global,c,f,!0);"string"==typeof c&&"on"==c.substring(0,2)&&(c=c.substring(2));a||(a=b.global);if(!e)switch(c){case "keypress":c=h;break;case "mouseenter":c=l.enter;break;case "mouseleave":c=l.leave}return m(a,c,f,e)}function a(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}r.add("events-keypress-typed",function(){var a={charCode:0};
try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(b){}return 0==a.charCode&&!r("opera")});var f={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},d=r("mac")?"metaKey":"ctrlKey",c=function(b,c){var d=k.mixin({},b,c);a(d);d.preventDefault=function(){b.preventDefault()};d.stopPropagation=function(){b.stopPropagation()};return d},h;h=r("events-keypress-typed")?function(a,
b){var d=m(a,"keydown",function(a){var d=a.keyCode,e=13!=d&&32!=d&&(27!=d||!r("ie"))&&(48>d||90<d)&&(96>d||111<d)&&(186>d||192<d)&&(219>d||222<d)&&229!=d;if(e||a.ctrlKey){e=e?0:d;if(a.ctrlKey){if(3==d||13==d)return b.call(a.currentTarget,a);e=95<e&&106>e?e-48:!a.shiftKey&&65<=e&&90>=e?e+32:f[e]||e}d=c(a,{type:"keypress",faux:!0,charCode:e});b.call(a.currentTarget,d);if(r("ie"))try{a.keyCode=d.keyCode}catch(g){}}}),e=m(a,"keypress",function(a){var d=a.charCode;a=c(a,{charCode:32<=d?d:0,faux:!0});return b.call(this,
a)});return{remove:function(){d.remove();e.remove()}}}:r("opera")?function(a,b){return m(a,"keypress",function(a){var d=a.which;3==d&&(d=99);d=32>d&&!a.shiftKey?0:d;a.ctrlKey&&(!a.shiftKey&&65<=d&&90>=d)&&(d+=32);return b.call(this,c(a,{charCode:d}))})}:function(b,c){return m(b,"keypress",function(b){a(b);return c.call(this,b)})};var s={_keypress:h,connect:function(a,b,c,d,f){var e=arguments,h=[],k=0;h.push("string"==typeof e[0]?null:e[k++],e[k++]);var l=e[k+1];h.push("string"==typeof l||"function"==
typeof l?e[k++]:null,e[k++]);for(l=e.length;k<l;k++)h.push(e[k]);return g.apply(this,h)},disconnect:function(a){a&&a.remove()},subscribe:function(a,b,c){return e.subscribe(a,k.hitch(b,c))},publish:function(a,b){return e.publish.apply(e,[a].concat(b))},connectPublisher:function(a,b,c){var d=function(){s.publish(a,arguments)};return c?s.connect(b,c,d):s.connect(b,d)},isCopyKey:function(a){return a[d]}};s.unsubscribe=s.disconnect;k.mixin(b,s);return s})},"dojo/errors/CancelError":function(){define(["./create"],
function(b){return b("CancelError",null,null,{dojoType:"cancel"})})}}});(function(){var b=this.require;b({cache:{}});!b.async&&b(["dojo"]);b.boot&&b.apply(null,b.boot)})();
