padrino-gen 0.10.7 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/lib/padrino-gen/generators/actions.rb +139 -102
  3. data/lib/padrino-gen/generators/app/app.rb.tt +55 -53
  4. data/lib/padrino-gen/generators/app.rb +16 -16
  5. data/lib/padrino-gen/generators/cli.rb +3 -3
  6. data/lib/padrino-gen/generators/components/actions.rb +1 -1
  7. data/lib/padrino-gen/generators/components/orms/activerecord.rb +22 -18
  8. data/lib/padrino-gen/generators/components/orms/couchrest.rb +1 -1
  9. data/lib/padrino-gen/generators/components/orms/datamapper.rb +2 -1
  10. data/lib/padrino-gen/generators/components/orms/{mini_record.rb → minirecord.rb} +9 -9
  11. data/lib/padrino-gen/generators/components/orms/mongoid.rb +60 -6
  12. data/lib/padrino-gen/generators/components/orms/mongomapper.rb +2 -2
  13. data/lib/padrino-gen/generators/components/orms/mongomatic.rb +2 -2
  14. data/lib/padrino-gen/generators/components/orms/ohm.rb +57 -10
  15. data/lib/padrino-gen/generators/components/orms/ripple.rb +1 -1
  16. data/lib/padrino-gen/generators/components/orms/sequel.rb +15 -6
  17. data/lib/padrino-gen/generators/components/stylesheets/compass.rb +1 -1
  18. data/lib/padrino-gen/generators/components/stylesheets/less.rb +1 -0
  19. data/lib/padrino-gen/generators/components/tests/bacon.rb +0 -2
  20. data/lib/padrino-gen/generators/components/tests/minitest.rb +0 -1
  21. data/lib/padrino-gen/generators/components/tests/riot.rb +0 -1
  22. data/lib/padrino-gen/generators/components/tests/rspec.rb +14 -15
  23. data/lib/padrino-gen/generators/components/tests/shoulda.rb +0 -1
  24. data/lib/padrino-gen/generators/components/tests/testspec.rb +0 -1
  25. data/lib/padrino-gen/generators/controller.rb +14 -11
  26. data/lib/padrino-gen/generators/mailer.rb +14 -11
  27. data/lib/padrino-gen/generators/migration.rb +5 -5
  28. data/lib/padrino-gen/generators/model.rb +8 -7
  29. data/lib/padrino-gen/generators/plugin.rb +15 -9
  30. data/lib/padrino-gen/generators/project/.gitignore +2 -1
  31. data/lib/padrino-gen/generators/project/config/apps.rb.tt +10 -8
  32. data/lib/padrino-gen/generators/project/config.ru +0 -0
  33. data/lib/padrino-gen/generators/project/public/favicon.ico +0 -0
  34. data/lib/padrino-gen/generators/project.rb +53 -25
  35. data/lib/padrino-gen/generators/runner.rb +1 -1
  36. data/lib/padrino-gen/generators/templates/Gemfile.tt +8 -3
  37. data/lib/padrino-gen/generators/templates/Rakefile.tt +8 -0
  38. data/lib/padrino-gen/generators/templates/controller.rb.tt +8 -9
  39. data/lib/padrino-gen/generators/templates/gem/README.md.tt +29 -0
  40. data/lib/padrino-gen/generators/templates/gem/gemspec.tt +19 -0
  41. data/lib/padrino-gen/generators/templates/gem/lib/libname/version.tt +3 -0
  42. data/lib/padrino-gen/generators/templates/gem/lib/libname.tt +6 -0
  43. data/lib/padrino-gen/generators/templates/helper.rb.tt +1 -1
  44. data/lib/padrino-gen/generators/templates/mailer.rb.tt +1 -1
  45. data/lib/padrino-gen/generators/templates/static/js/dojo.js +238 -1
  46. data/lib/padrino-gen/generators/templates/static/js/ext.js +38 -1
  47. data/lib/padrino-gen/generators/templates/static/js/jquery.js +4 -4
  48. data/lib/padrino-gen/generators/templates/static/js/mootools.js +335 -276
  49. data/lib/padrino-gen/generators/templates/static/js/protopak.js +1 -1
  50. data/lib/padrino-gen/generators/templates/static/js/right.js +7 -1
  51. data/lib/padrino-gen/generators/templates/static/ujs/jquery.js +76 -75
  52. data/lib/padrino-gen/padrino-tasks/activerecord.rb +8 -2
  53. data/lib/padrino-gen/padrino-tasks/database.rb +11 -0
  54. data/lib/padrino-gen/padrino-tasks/datamapper.rb +38 -12
  55. data/lib/padrino-gen/padrino-tasks/minirecord.rb +19 -0
  56. data/lib/padrino-gen/padrino-tasks/mongoid.rb +76 -18
  57. data/lib/padrino-gen/padrino-tasks/mongomapper.rb +9 -1
  58. data/lib/padrino-gen/padrino-tasks/sequel.rb +6 -1
  59. data/lib/padrino-gen.rb +2 -2
  60. data/padrino-gen.gemspec +0 -0
  61. data/test/helper.rb +1 -1
  62. data/test/test_app_generator.rb +23 -4
  63. data/test/test_controller_generator.rb +8 -8
  64. data/test/test_mailer_generator.rb +5 -5
  65. data/test/test_model_generator.rb +26 -23
  66. data/test/test_plugin_generator.rb +23 -0
  67. data/test/test_project_generator.rb +82 -47
  68. metadata +17 -17
  69. data/lib/padrino-gen/padrino-tasks/seed.rb +0 -5
@@ -1 +1,238 @@
1
- (function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _7=_1[i];_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]();}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _8=tn+"";console[_8]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(_8+":");console["log"](a.join(" "));}:function(){};console[_8]._fake=true;})();}}}if(typeof dojo=="undefined"){dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};var _9=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null;if(_9){for(var c in _9){d.config[c]=_9[c];}}dojo.locale=d.config.locale;var _a="$Rev: 23917 $".match(/\d+/);dojo.version={major:1,minor:6,patch:0,flag:"",revision:_a?+_a[0]:NaN,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}var _b,_c,_d={};for(var i in {toString:1}){_b=[];break;}dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];_c=_b.length;dojo._mixin=function(_e,_f){var _10,s,i;for(_10 in _f){s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}if(_c&&_f){for(i=0;i<_c;++i){_10=_b[i];s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}}return _e;};dojo.mixin=function(obj,_11){if(!obj){obj={};}for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}return obj;};dojo._getProp=function(_12,_13,_14){var obj=_14||d.global;for(var i=0,p;obj&&(p=_12[i]);i++){if(i==0&&d._scopeMap[p]){p=d._scopeMap[p];}obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_15,_16,_17){var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);return obj&&p?(obj[p]=_16):undefined;};dojo.getObject=function(_19,_1a,_1b){return d._getProp(_19.split("."),_1a,_1b);};dojo.exists=function(_1c,obj){return d.getObject(_1c,false,obj)!==undefined;};dojo["eval"]=function(_1d){return d.global.eval?d.global.eval(_1d):eval(_1d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo,_1e;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_1f){var mp=d._modulePrefixes;return !!(mp[_1f]&&mp[_1f].value);},_getModulePrefix:function(_20){var mp=d._modulePrefixes;if(d._moduleHasPrefix(_20)){return mp[_20].value;}return _20;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_21,_22,cb){var uri=((_21.charAt(0)=="/"||_21.match(/^\w+:/))?"":d.baseUrl)+_21;try{_1e=_22;return !_22?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_22,cb);}catch(e){console.error(e);return false;}finally{_1e=null;}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true;}d._inFlightCount++;var _23=d._getText(uri,true);if(_23){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){_23=/^define\(/.test(_23)?_23:"("+_23+")";}else{_23=d._scopePrefix+_23+d._scopeSuffix;}if(!d.isIE){_23+="\r\n//@ sourceURL="+uri;}var _24=d["eval"](_23);if(cb){cb(_24);}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded();}},0);}return !!_23;};dojo._loadUriAndCheck=function(uri,_25,cb){var ok=false;try{ok=d._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&d._loadedModules[_25]);};dojo.loaded=function(){d._loadNotifying=true;d._postLoad=true;var mll=d._loaders;d._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}d._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=d._unloaders;while(mll.length){(mll.pop())();}};d._onto=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _26=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_26.call(obj);});}}};dojo.ready=dojo.addOnLoad=function(obj,_27){d._onto(d._loaders,obj,_27);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};var dca=d.config.addOnLoad;if(dca){d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);}dojo._modulesLoaded=function(){if(d._postLoad){return;}if(d._inFlightCount>0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){setTimeout(d.isAIR?function(){d.loaded();}:d._scopeName+".loaded();",0);}else{d.loaded();}};dojo._getModuleSymbols=function(_28){var _29=_28.split(".");for(var i=_29.length;i>0;i--){var _2a=_29.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(_2a)){_29[0]="../"+_29[0];}else{var _2b=d._getModulePrefix(_2a);if(_2b!=_2a){_29.splice(0,i,_2b);break;}}}return _29;};dojo._global_omit_module_check=false;dojo.loadInit=function(_2c){_2c();};dojo._loadModule=dojo.require=function(_2d,_2e){_2e=d._global_omit_module_check||_2e;var _2f=d._loadedModules[_2d];if(_2f){return _2f;}var _30=d._getModuleSymbols(_2d).join("/")+".js";var _31=!_2e?_2d:null;var ok=d._loadPath(_30,_31);if(!ok&&!_2e){throw new Error("Could not load '"+_2d+"'; last tried '"+_30+"'");}if(!_2e&&!d._isXDomain){_2f=d._loadedModules[_2d];if(!_2f){throw new Error("symbol '"+_2d+"' is not defined after loading '"+_30+"'");}}return _2f;};dojo.provide=function(_32){_32=_32+"";return (d._loadedModules[_32]=d.getObject(_32,true));};dojo.platformRequire=function(_33){var _34=_33.common||[];var _35=_34.concat(_33[d._name]||_33["default"]||[]);for(var x=0;x<_35.length;x++){var _36=_35[x];if(_36.constructor==Array){d._loadModule.apply(d,_36);}else{d._loadModule(_36);}}};dojo.requireIf=function(_37,_38){if(_37===true){var _39=[];for(var i=1;i<arguments.length;i++){_39.push(arguments[i]);}d.require.apply(d,_39);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_3a,_3b){d._modulePrefixes[_3a]={name:_3a,value:_3b};};dojo.requireLocalization=function(_3c,_3d,_3e,_3f){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");dojo._Url=function(){var n=null,_40=arguments,uri=[_40[0]];for(var i=1;i<_40.length;i++){if(!_40[i]){continue;}var _41=new d._Url(_40[i]+""),_42=new d._Url(uri[0]+"");if(_41.path==""&&!_41.scheme&&!_41.authority&&!_41.query){if(_41.fragment!=n){_42.fragment=_41.fragment;}_41=_42;}else{if(!_41.scheme){_41.scheme=_42.scheme;if(!_41.authority){_41.authority=_42.authority;if(_41.path.charAt(0)!="/"){var _43=_42.path.substring(0,_42.path.lastIndexOf("/")+1)+_41.path;var _44=_43.split("/");for(var j=0;j<_44.length;j++){if(_44[j]=="."){if(j==_44.length-1){_44[j]="";}else{_44.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_44[0]=="")&&_44[j]==".."&&_44[j-1]!=".."){if(j==(_44.length-1)){_44.splice(j,1);_44[j-1]="";}else{_44.splice(j-1,2);j-=2;}}}}_41.path=_44.join("/");}}}}uri=[];if(_41.scheme){uri.push(_41.scheme,":");}if(_41.authority){uri.push("//",_41.authority);}uri.push(_41.path);if(_41.query){uri.push("?",_41.query);}if(_41.fragment){uri.push("#",_41.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_45,url){var loc=d._getModuleSymbols(_45).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _46=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_46==-1||_46>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _47=document.getElementsByTagName("script");var _48=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_47.length;i++){var src=_47[i].getAttribute("src");if(!src){continue;}var m=src.match(_48);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=(_47[i].getAttribute("djConfig")||_47[i].getAttribute("data-dojo-config"));if(cfg){var _49=eval("({ "+cfg+" })");for(var x in _49){dojo.config[x]=_49[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);if(dua.indexOf("Opera")>=0){d.isOpera=tv;}if(dua.indexOf("AdobeAIR")>=0){d.isAIR=1;}d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;d.isMac=dav.indexOf("Macintosh")>=0;var _4a=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_4a&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_4a+7))<=419.3){d.isSafari=2;}}if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var _4b=document.documentMode;if(_4b&&_4b!=5&&Math.floor(d.isIE)!=_4b){d.isIE=_4b;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}d.isQuirks=document.compatMode=="BackCompat";d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _4c,_4d;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_4c=new XMLHttpRequest();}catch(e){}}if(!_4c){for(var i=0;i<3;++i){var _4e=d._XMLHTTP_PROGIDS[i];try{_4c=new ActiveXObject(_4e);}catch(e){_4d=e;}if(_4c){d._XMLHTTP_PROGIDS=[_4e];break;}}}if(!_4c){throw new Error("XMLHTTP not available: "+_4d);}return _4c;};d._isDocumentOk=function(_4f){var _50=_4f.status||0;return (_50>=200&&_50<300)||_50==304||_50==1223||!_50;};var _51=window.location+"";var _52=document.getElementsByTagName("base");var _53=(_52&&_52.length>0);d._getText=function(uri,_54){var _55=d._xhrObj();if(!_53&&dojo._Url){uri=(new dojo._Url(_51,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_55.open("GET",uri,false);try{_55.send(null);if(!d._isDocumentOk(_55)){var err=Error("Unable to load "+uri+" status:"+_55.status);err.status=_55.status;err.responseText=_55.responseText;throw err;}}catch(e){if(_54){return null;}throw e;}return _55.responseText;};var _56=window;var _57=function(_58,fp){var _59=_56.attachEvent||_56.addEventListener;_58=_56.attachEvent?_58:_58.substring(2);_59(_58,function(){fp.apply(_56,arguments);},false);};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}d=null;};var _5a=0;d.addOnWindowUnload=function(obj,_5b){d._onto(d._windowUnloaders,obj,_5b);if(!_5a){_5a=1;_57("onunload",d.windowUnloaded);}};var _5c=0;d.addOnUnload=function(obj,_5d){d._onto(d._unloaders,obj,_5d);if(!_5c){_5c=1;_57("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){if(dojo._scrollIntervalId){clearInterval(dojo._scrollIntervalId);dojo._scrollIntervalId=0;}if(!dojo._initFired){dojo._initFired=true;if(!dojo.config.afterOnLoad&&window.detachEvent){window.detachEvent("onload",dojo._loadInit);}if(dojo._inFlightCount==0){dojo._modulesLoaded();}}};if(!dojo.config.afterOnLoad){if(document.addEventListener){document.addEventListener("DOMContentLoaded",dojo._loadInit,false);window.addEventListener("load",dojo._loadInit,false);}else{if(window.attachEvent){window.attachEvent("onload",dojo._loadInit);if(!dojo.config.skipIeDomLoaded&&self===self.top){dojo._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");dojo._loadInit();}}catch(e){}},30);}}}}if(dojo.isIE){try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _5e=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=_5e.length;}for(;i<l;++i){s.addRule("v\\:"+_5e[i],"behavior:url(#default#VML); display:inline-block");}})();}catch(e){}}}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _5f in mp){dojo.registerModulePath(_5f,mp[_5f]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.require("dojo._base._loader.loader_debug");dojo.require("dojo.i18n");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");(function(){var d=dojo,_60=Object.prototype.toString;dojo.isString=function(it){return (typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=function(it){return _60.call(it)==="[object Function]";};dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));};dojo.isArrayLike=function(it){return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_61,_62){for(var i=1,l=arguments.length;i<l;i++){d._mixin(_61.prototype,arguments[i]);}return _61;};dojo._hitchArgs=function(_63,_64){var pre=d._toArray(arguments,2);var _65=d.isString(_64);return function(){var _66=d._toArray(arguments);var f=_65?(_63||d.global)[_64]:_64;return f&&f.apply(_63||this,pre.concat(_66));};};dojo.hitch=function(_67,_68){if(arguments.length>2){return d._hitchArgs.apply(d,arguments);}if(!_68){_68=_67;_67=null;}if(d.isString(_68)){_67=_67||d.global;if(!_67[_68]){throw (["dojo.hitch: scope[\"",_68,"\"] is null (scope=\"",_67,"\")"].join(""));}return function(){return _67[_68].apply(_67,arguments||[]);};}return !_67?_68:function(){return _68.apply(_67,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_69){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_69){d._mixin(tmp,_69);}return tmp;};})();var _6a=function(obj,_6b,_6c){return (_6c||[]).concat(Array.prototype.slice.call(obj,_6b||0));};var _6d=function(obj,_6e,_6f){var arr=_6f||[];for(var x=_6e||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo._toArray=d.isIE?function(obj){return ((obj.item)?_6d:_6a).apply(this,arguments);}:_6a;dojo.partial=function(_70){var arr=[null];return d.hitch.apply(d,arr.concat(d._toArray(arguments)));};var _71=d._extraNames,_72=_71.length,_73={};dojo.clone=function(o){if(!o||typeof o!="object"||d.isFunction(o)){return o;}if(o.nodeType&&"cloneNode" in o){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}if(o instanceof RegExp){return new RegExp(o);}var r,i,l,s,_74;if(d.isArray(o)){r=[];for(i=0,l=o.length;i<l;++i){if(i in o){r.push(d.clone(o[i]));}}}else{r=o.constructor?new o.constructor():{};}for(_74 in o){s=o[_74];if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){r[_74]=d.clone(s);}}if(_72){for(i=0;i<_72;++i){_74=_71[i];s=o[_74];if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){r[_74]=s;}}}return r;};dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};var _75=/\{([^\}]+)\}/g;dojo.replace=function(_76,map,_77){return _76.replace(_77||_75,d.isFunction(map)?map:function(_78,k){return d.getObject(k,false,map);});};})();}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _79=function(arr,obj,cb){return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];};var _7a=function(_7b,arr,_7c,_7d){var _7e=_79(arr,_7d,_7c);arr=_7e[0];for(var i=0,l=arr.length;i<l;++i){var _7f=!!_7e[2].call(_7e[1],arr[i],i,arr);if(_7b^_7f){return _7f;}}return _7b;};dojo.mixin(dojo,{indexOf:function(_80,_81,_82,_83){var _84=1,end=_80.length||0,i=0;if(_83){i=end-1;_84=end=-1;}if(_82!=undefined){i=_82;}if((_83&&i>end)||i<end){for(;i!=end;i+=_84){if(_80[i]==_81){return i;}}}return -1;},lastIndexOf:function(_85,_86,_87){return dojo.indexOf(_85,_86,_87,true);},forEach:function(arr,_88,_89){if(!arr||!arr.length){return;}var _8a=_79(arr,_89,_88);arr=_8a[0];for(var i=0,l=arr.length;i<l;++i){_8a[2].call(_8a[1],arr[i],i,arr);}},every:function(arr,_8b,_8c){return _7a(true,arr,_8b,_8c);},some:function(arr,_8d,_8e){return _7a(false,arr,_8d,_8e);},map:function(arr,_8f,_90){var _91=_79(arr,_90,_8f);arr=_91[0];var _92=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){_92.push(_91[2].call(_91[1],arr[i],i,arr));}return _92;},filter:function(arr,_93,_94){var _95=_79(arr,_94,_93);arr=_95[0];var _96=[];for(var i=0,l=arr.length;i<l;++i){if(_95[2].call(_95[1],arr[i],i,arr)){_96.push(arr[i]);}}return _96;}});})();}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");(function(){var d=dojo,mix=d._mixin,op=Object.prototype,_97=op.toString,_98=new Function,_99=0,_9a="constructor";function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg);};function _9b(_9c,_9d){var _9e=[],_9f=[{cls:0,refs:[]}],_a0={},_a1=1,l=_9c.length,i=0,j,lin,_a2,top,_a3,rec,_a4,_a5;for(;i<l;++i){_a2=_9c[i];if(!_a2){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_9d);}else{if(_97.call(_a2)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",_9d);}}lin=_a2._meta?_a2._meta.bases:[_a2];top=0;for(j=lin.length-1;j>=0;--j){_a3=lin[j].prototype;if(!_a3.hasOwnProperty("declaredClass")){_a3.declaredClass="uniqName_"+(_99++);}_a4=_a3.declaredClass;if(!_a0.hasOwnProperty(_a4)){_a0[_a4]={count:0,refs:[],cls:lin[j]};++_a1;}rec=_a0[_a4];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_9f[0].refs.push(top);}while(_9f.length){top=_9f.pop();_9e.push(top.cls);--_a1;while(_a5=top.refs,_a5.length==1){top=_a5[0];if(!top||--top.count){top=0;break;}_9e.push(top.cls);--_a1;}if(top){for(i=0,l=_a5.length;i<l;++i){top=_a5[i];if(!--top.count){_9f.push(top);}}}}if(_a1){err("can't build consistent linearization",_9d);}_a2=_9c[0];_9e[0]=_a2?_a2._meta&&_a2===_9e[_9e.length-_a2._meta.bases.length]?_a2._meta.bases.length:1:0;return _9e;};function _a6(_a7,a,f){var _a8,_a9,_aa,_ab,_ac,_ad,_ae,opf,pos,_af=this._inherited=this._inherited||{};if(typeof _a7=="string"){_a8=_a7;_a7=a;a=f;}f=0;_ab=_a7.callee;_a8=_a8||_ab.nom;if(!_a8){err("can't deduce a name to call inherited()",this.declaredClass);}_ac=this.constructor._meta;_aa=_ac.bases;pos=_af.p;if(_a8!=_9a){if(_af.c!==_ab){pos=0;_ad=_aa[0];_ac=_ad._meta;if(_ac.hidden[_a8]!==_ab){_a9=_ac.chains;if(_a9&&typeof _a9[_a8]=="string"){err("calling chained method with inherited: "+_a8,this.declaredClass);}do{_ac=_ad._meta;_ae=_ad.prototype;if(_ac&&(_ae[_a8]===_ab&&_ae.hasOwnProperty(_a8)||_ac.hidden[_a8]===_ab)){break;}}while(_ad=_aa[++pos]);pos=_ad?pos:-1;}}_ad=_aa[++pos];if(_ad){_ae=_ad.prototype;if(_ad._meta&&_ae.hasOwnProperty(_a8)){f=_ae[_a8];}else{opf=op[_a8];do{_ae=_ad.prototype;f=_ae[_a8];if(f&&(_ad._meta?_ae.hasOwnProperty(_a8):f!==opf)){break;}}while(_ad=_aa[++pos]);}}f=_ad&&f||op[_a8];}else{if(_af.c!==_ab){pos=0;_ac=_aa[0]._meta;if(_ac&&_ac.ctor!==_ab){_a9=_ac.chains;if(!_a9||_a9.constructor!=="manual"){err("calling chained constructor with inherited",this.declaredClass);}while(_ad=_aa[++pos]){_ac=_ad._meta;if(_ac&&_ac.ctor===_ab){break;}}pos=_ad?pos:-1;}}while(_ad=_aa[++pos]){_ac=_ad._meta;f=_ac?_ac.ctor:_ad;if(f){break;}}f=_ad&&f;}_af.c=f;_af.p=pos;if(f){return a===true?f:f.apply(this,a||_a7);}};function _b0(_b1,_b2){if(typeof _b1=="string"){return this.inherited(_b1,_b2,true);}return this.inherited(_b1,true);};function _b3(cls){var _b4=this.constructor._meta.bases;for(var i=0,l=_b4.length;i<l;++i){if(_b4[i]===cls){return true;}}return this instanceof cls;};function _b5(_b6,_b7){var _b8,i=0,l=d._extraNames.length;for(_b8 in _b7){if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){_b6[_b8]=_b7[_b8];}}for(;i<l;++i){_b8=d._extraNames[i];if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){_b6[_b8]=_b7[_b8];}}};function _b9(_ba,_bb){var _bc,t,i=0,l=d._extraNames.length;for(_bc in _bb){t=_bb[_bc];if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){if(_97.call(t)=="[object Function]"){t.nom=_bc;}_ba[_bc]=t;}}for(;i<l;++i){_bc=d._extraNames[i];t=_bb[_bc];if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){if(_97.call(t)=="[object Function]"){t.nom=_bc;}_ba[_bc]=t;}}return _ba;};function _bd(_be){_b9(this.prototype,_be);return this;};function _bf(_c0,_c1){return function(){var a=arguments,_c2=a,a0=a[0],f,i,m,l=_c0.length,_c3;if(!(this instanceof a.callee)){return _c4(a);}if(_c1&&(a0&&a0.preamble||this.preamble)){_c3=new Array(_c0.length);_c3[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_c0[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_c3[i]=a;}}for(i=l-1;i>=0;--i){f=_c0[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_c3?_c3[i]:a);}}f=this.postscript;if(f){f.apply(this,_c2);}};};function _c5(_c6,_c7){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _c4(a);}if(_c7){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(_c6){_c6.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _c8(_c9){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _c4(a);}for(;f=_c9[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _ca(_cb,_cc,_cd){return function(){var b,m,f,i=0,_ce=1;if(_cd){i=_cc.length-1;_ce=-1;}for(;b=_cc[i];i+=_ce){m=b._meta;f=(m?m.hidden:b.prototype)[_cb];if(f){f.apply(this,arguments);}}};};function _cf(_d0){_98.prototype=_d0.prototype;var t=new _98;_98.prototype=null;return t;};function _c4(_d1){var _d2=_d1.callee,t=_cf(_d2);_d2.apply(t,_d1);return t;};d.declare=function(_d3,_d4,_d5){if(typeof _d3!="string"){_d5=_d4;_d4=_d3;_d3="";}_d5=_d5||{};var _d6,i,t,_d7,_d8,_d9,_da,_db=1,_dc=_d4;if(_97.call(_d4)=="[object Array]"){_d9=_9b(_d4,_d3);t=_d9[0];_db=_d9.length-t;_d4=_d9[_db];}else{_d9=[0];if(_d4){if(_97.call(_d4)=="[object Function]"){t=_d4._meta;_d9=_d9.concat(t?t.bases:_d4);}else{err("base class is not a callable constructor.",_d3);}}else{if(_d4!==null){err("unknown base class. Did you use dojo.require to pull it in?",_d3);}}}if(_d4){for(i=_db-1;;--i){_d6=_cf(_d4);if(!i){break;}t=_d9[i];(t._meta?_b5:mix)(_d6,t.prototype);_d7=new Function;_d7.superclass=_d4;_d7.prototype=_d6;_d4=_d6.constructor=_d7;}}else{_d6={};}_b9(_d6,_d5);t=_d5.constructor;if(t!==op.constructor){t.nom=_9a;_d6.constructor=t;}for(i=_db-1;i;--i){t=_d9[i]._meta;if(t&&t.chains){_da=mix(_da||{},t.chains);}}if(_d6["-chains-"]){_da=mix(_da||{},_d6["-chains-"]);}t=!_da||!_da.hasOwnProperty(_9a);_d9[0]=_d7=(_da&&_da.constructor==="manual")?_c8(_d9):(_d9.length==1?_c5(_d5.constructor,t):_bf(_d9,t));_d7._meta={bases:_d9,hidden:_d5,chains:_da,parents:_dc,ctor:_d5.constructor};_d7.superclass=_d4&&_d4.prototype;_d7.extend=_bd;_d7.prototype=_d6;_d6.constructor=_d7;_d6.getInherited=_b0;_d6.inherited=_a6;_d6.isInstanceOf=_b3;if(_d3){_d6.declaredClass=_d3;d.setObject(_d3,_d7);}if(_da){for(_d8 in _da){if(_d6[_d8]&&typeof _da[_d8]=="string"&&_d8!=_9a){t=_d6[_d8]=_ca(_d8,_d9,_da[_d8]==="after");t.nom=_d8;}}}return _d7;};d.safeMixin=_b9;})();}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target,r=t&&t.apply(this,arguments),i,lls=[].concat(ls);for(i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_dd,_de,_df){_dd=_dd||dojo.global;var f=_dd[_de];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_dd[_de]=d;}return f._listeners.push(_df);},remove:function(_e0,_e1,_e2){var f=(_e0||dojo.global)[_e1];if(f&&f._listeners&&_e2--){delete f._listeners[_e2];}}};dojo.connect=function(obj,_e3,_e4,_e5,_e6){var a=arguments,_e7=[],i=0;_e7.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_e7.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_e7.push(a[i]);}return dojo._connect.apply(this,_e7);};dojo._connect=function(obj,_e8,_e9,_ea){var l=dojo._listener,h=l.add(obj,_e8,dojo.hitch(_e9,_ea));return [obj,_e8,h,l];};dojo.disconnect=function(_eb){if(_eb&&_eb[0]!==undefined){dojo._disconnect.apply(this,_eb);delete _eb[0];}};dojo._disconnect=function(obj,_ec,_ed,_ee){_ee.remove(obj,_ec,_ed);};dojo._topics={};dojo.subscribe=function(_ef,_f0,_f1){return [_ef,dojo._listener.add(dojo._topics,_ef,dojo.hitch(_f0,_f1))];};dojo.unsubscribe=function(_f2){if(_f2){dojo._listener.remove(dojo._topics,_f2[0],_f2[1]);}};dojo.publish=function(_f3,_f4){var f=dojo._topics[_f3];if(f){f.apply(this,_f4||[]);}};dojo.connectPublisher=function(_f5,obj,_f6){var pf=function(){dojo.publish(_f5,arguments);};return _f6?dojo.connect(obj,_f6,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");(function(){var _f7=function(){};var _f8=Object.freeze||function(){};dojo.Deferred=function(_f9){var _fa,_fb,_fc,_fd,_fe;var _ff=(this.promise={});function _100(_101){if(_fb){throw new Error("This deferred has already been resolved");}_fa=_101;_fb=true;_102();};function _102(){var _103;while(!_103&&_fe){var _104=_fe;_fe=_fe.next;if((_103=(_104.progress==_f7))){_fb=false;}var func=(_fc?_104.error:_104.resolved);if(func){try{var _105=func(_fa);if(_105&&typeof _105.then==="function"){_105.then(dojo.hitch(_104.deferred,"resolve"),dojo.hitch(_104.deferred,"reject"));continue;}var _106=_103&&_105===undefined;if(_103&&!_106){_fc=_105 instanceof Error;}_104.deferred[_106&&_fc?"reject":"resolve"](_106?_fa:_105);}catch(e){_104.deferred.reject(e);}}else{if(_fc){_104.deferred.reject(_fa);}else{_104.deferred.resolve(_fa);}}}};this.resolve=this.callback=function(_107){this.fired=0;this.results=[_107,null];_100(_107);};this.reject=this.errback=function(_108){_fc=true;this.fired=1;_100(_108);this.results=[null,_108];if(!_108||_108.log!==false){(dojo.config.deferredOnError||function(x){console.error(x);})(_108);}};this.progress=function(_109){var _10a=_fe;while(_10a){var _10b=_10a.progress;_10b&&_10b(_109);_10a=_10a.next;}};this.addCallbacks=function(_10c,_10d){this.then(_10c,_10d,_f7);return this;};this.then=_ff.then=function(_10e,_10f,_110){var _111=_110==_f7?this:new dojo.Deferred(_ff.cancel);var _112={resolved:_10e,error:_10f,progress:_110,deferred:_111};if(_fe){_fd=_fd.next=_112;}else{_fe=_fd=_112;}if(_fb){_102();}return _111.promise;};var _113=this;this.cancel=_ff.cancel=function(){if(!_fb){var _114=_f9&&_f9(_113);if(!_fb){if(!(_114 instanceof Error)){_114=new Error(_114);}_114.log=false;_113.reject(_114);}}};_f8(_ff);};dojo.extend(dojo.Deferred,{addCallback:function(_115){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(_116){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addBoth:function(_117){var _118=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_118,_118);},fired:-1});})();dojo.when=function(_119,_11a,_11b,_11c){if(_119&&typeof _119.then==="function"){return _119.then(_11a,_11b,_11c);}return _11a(_119);};}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(json){return eval("("+json+")");};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_11d,_11e){if(it===undefined){return "undefined";}var _11f=typeof it;if(_11f=="number"||_11f=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _120=arguments.callee;var _121;_11e=_11e||"";var _122=_11d?_11e+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_121=tf.call(it);if(it!==_121){return _120(_121,_11d,_122);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_11d?" ":"";var _123=_11d?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_120(obj,_11d,_122);if(typeof val!="string"){val="undefined";}return _123+_122+val;});return "["+res.join(","+sep)+_123+_11e+"]";}if(_11f=="function"){return null;}var _124=[],key;for(key in it){var _125,val;if(typeof key=="number"){_125="\""+key+"\"";}else{if(typeof key=="string"){_125=dojo._escapeString(key);}else{continue;}}val=_120(it[key],_11d,_122);if(typeof val!="string"){continue;}_124.push(_123+_122+_125+":"+sep+val);}return "{"+_124.join(","+sep)+_123+_11e+"}";};}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(_126){if(_126){this.setColor(_126);}};dojo.Color.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:d.config.transparentColor||[255,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_127){if(d.isString(_127)){d.colorFromString(_127,this);}else{if(d.isArray(_127)){d.colorFromArray(_127,this);}else{this._set(_127.r,_127.g,_127.b,_127.a);if(!(_127 instanceof d.Color)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=d.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_128){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_128?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_129,end,_12a,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_129[x]+(end[x]-_129[x])*_12a;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_12b,obj){var m=_12b.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_12c,obj){var t=obj||new d.Color(),bits=(_12c.length==4)?4:8,mask=(1<<bits)-1;_12c=Number("0x"+_12c.substr(1));if(isNaN(_12c)){return null;}d.forEach(["b","g","r"],function(x){var c=_12c&mask;_12c>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);};})();}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_12d,_12e){dojo.global=_12d;dojo.doc=_12e;};dojo.withGlobal=function(_12f,_130,_131,_132){var _133=dojo.global;try{dojo.global=_12f;return dojo.withDoc.call(null,_12f.document,_130,_131,_132);}finally{dojo.global=_133;}};dojo.withDoc=function(_134,_135,_136,_137){var _138=dojo.doc,_139=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=_134;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(_136&&typeof _135=="string"){_135=_136[_135];}return _135.apply(_136,_137||[]);}finally{dojo.doc=_138;delete dojo._bodyLtr;if(_139!==undefined){dojo._bodyLtr=_139;}dojo.isQuirks=oldQ;}};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var _13a=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_13b,_13c){if(node){_13b=del._normalizeEventName(_13b);if(!dojo.isIE&&(_13b=="mouseenter"||_13b=="mouseleave")){_13b=(_13b=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_13b,_13c,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_13d){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{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}});dojo.fixEvent=function(evt,_13e){return del._fixEvent(evt,_13e);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _13f=dojo._listener;dojo._connect=function(obj,_140,_141,_142,_143){var _144=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_144?(_143?2:1):0,l=[dojo._listener,del,_13f][lid];var h=l.add(obj,_140,dojo.hitch(_141,_142));return [obj,_140,h,lid];};dojo._disconnect=function(obj,_145,_146,_147){([dojo._listener,del,_13f][_147]).remove(obj,_145,_146);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?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,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};var _148=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_148];};if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_149){return e.button&_149;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_14a){return e.button==_14a;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}if(dojo.isIE){var _14b=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _14c=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_13f=iel=dojo._ie_listener={handlers:[],add:function(_14d,_14e,_14f){_14d=_14d||dojo.global;var f=_14d[_14e];if(!f||!f[_14c]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_14c]=[];f=_14d[_14e]=d;}return f[_14c].push(ieh.push(_14f)-1);},remove:function(_150,_151,_152){var f=(_150||dojo.global)[_151],l=f&&f[_14c];if(f&&l&&_152--){delete ieh[l[_152]];delete l[_152];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_153,fp){if(!node){return;}_153=del._normalizeEventName(_153);if(_153=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_14c]||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_153,del._fixCallback(fp));},remove:function(node,_154,_155){_154=del._normalizeEventName(_154);iel.remove(node,_154,_155);if(_154=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_156){return _156.slice(0,2)!="on"?"on"+_156:_156;},_nop:function(){},_fixEvent:function(evt,_157){if(!evt){var w=_157&&(_157.ownerDocument||_157.document||_157).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_157||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _158=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _159=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_158.scrollLeft||0)-_159.x;evt.pageY=evt.clientY+(_158.scrollTop||0)-_159.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(dojo.isIE<9||dojo.isQuirks){evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;}return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[_14c]){return;}var k=evt.keyCode;var _15a=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_15a||evt.ctrlKey){var c=_15a?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_14b(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_14b(this,0);}this.returnValue=false;}});dojo.stopEvent=(dojo.isIE<9||dojo.isQuirks)?function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);}:dojo.stopEvent;}del._synthesizeEvent=function(evt,_15b){var faux=dojo.mixin({},evt,_15b);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_15c){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=c<41&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isWebKit){del._add=del.add;del._remove=del.remove;dojo.mixin(del,{add:function(node,_15d,fp){if(!node){return;}var _15e=del._add(node,_15d,fp);if(del._normalizeEventName(_15d)=="keypress"){_15e._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _15f=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_15f||evt.ctrlKey){var c=_15f?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if(!evt.shiftKey&&c>=65&&c<=90){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,faux);}});}return _15e;},remove:function(node,_160,_161){if(node){if(_161._stealthKeyDownHandle){del._remove(node,"keydown",_161._stealthKeyDownHandle);}del._remove(node,_160,_161);}},_fixEvent:function(evt,_162){switch(evt.type){case "keypress":if(evt.faux){return evt;}var c=evt.charCode;c=c>=32?c:0;return del._synthesizeEvent(evt,{charCode:c,faux:true});}return evt;}});}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_163){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(_163,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_163,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE){dojo.byId=function(id,doc){if(typeof id!="string"){return id;}var _164=doc||dojo.doc,te=_164.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_164.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dojo.byId=function(id,doc){return ((typeof id=="string")?(doc||dojo.doc).getElementById(id):id)||null;};}(function(){var d=dojo;var byId=d.byId;var _165=null,_166;d.addOnWindowUnload(function(){_165=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_165||_166!=doc){_165=doc.createElement("div");_166=doc;}_165.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_165.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_167){try{node=byId(node);_167=byId(_167);while(node){if(node==_167){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_168){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_168?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_168?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_168?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _169=function(node,ref){var _16a=ref.parentNode;if(_16a){_16a.insertBefore(node,ref);}};var _16b=function(node,ref){var _16c=ref.parentNode;if(_16c){if(_16c.lastChild==ref){_16c.appendChild(node);}else{_16c.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_16d,_16e){_16d=byId(_16d);if(typeof node=="string"){node=/^\s*</.test(node)?d._toDom(node,_16d.ownerDocument):byId(node);}if(typeof _16e=="number"){var cn=_16d.childNodes;if(!cn.length||cn.length<=_16e){_16d.appendChild(node);}else{_169(node,cn[_16e<0?0:_16e]);}}else{switch(_16e){case "before":_169(node,_16d);break;case "after":_16b(node,_16d);break;case "replace":_16d.parentNode.replaceChild(node,_16d);break;case "only":d.empty(_16d);_16d.appendChild(node);break;case "first":if(_16d.firstChild){_169(node,_16d.firstChild);break;}default:_16d.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{};};}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(_16f,_170){return parseFloat(_170)||0;};}else{d._toPixelValue=function(_171,_172){if(!_172){return 0;}if(_172=="medium"){return 4;}if(_172.slice&&_172.slice(-2)=="px"){return parseFloat(_172);}with(_171){var _173=style.left;var _174=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_172;_172=style.pixelLeft;}catch(e){_172=0;}style.left=_173;runtimeStyle.left=_174;}return _172;};}var px=d._toPixelValue;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};dojo._getOpacity=d.isIE?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,_175){var ov=_175*100,_176=_175==1;node.style.zoom=_176?"":1;if(!af(node)){if(_176){return _175;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_176;if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_175);});}return _175;}:function(node,_177){return node.style.opacity=_177;};var _178={left:true,top:true};var _179=/margin|padding|width|height|max|min|offset/;var _17a=function(node,type,_17b){type=type.toLowerCase();if(d.isIE){if(_17b=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_17b){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _178)){_178[type]=_179.test(type);}return _178[type]?px(node,_17b):_17b;};var _17c=d.isIE?"styleFloat":"cssFloat",_17d={"cssFloat":_17c,"styleFloat":_17c,"float":_17c};dojo.style=function(node,_17e,_17f){var n=byId(node),args=arguments.length,op=(_17e=="opacity");_17e=_17d[_17e]||_17e;if(args==3){return op?d._setOpacity(n,_17f):n.style[_17e]=_17f;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _17e!="string"){for(var x in _17e){d.style(node,x,_17e[x]);}return s;}return (args==1)?s:_17a(n,_17e,s[_17e]||n.style[_17e]);};dojo._getPadExtents=function(n,_180){var s=_180||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_181){var ne="none",s=_181||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_182){var s=_182||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_183){var s=_183||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isWebKit&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_184){var s=_184||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getMarginSize=function(node,_185){node=byId(node);var me=d._getMarginExtents(node,_185||gcs(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};dojo._getContentBox=function(node,_186){var s=_186||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_187){var s=_187||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._isButtonTag=function(node){return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);};dojo._setContentSize=function(node,_188,_189,_18a){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_18a);if(_188>=0){_188+=pb.w;}if(_189>=0){_189+=pb.h;}}d._setBox(node,NaN,NaN,_188,_189);};dojo._setMarginBox=function(node,_18b,_18c,_18d,_18e,_18f){var s=_18f||gcs(node),bb=d._usesBorderBox(node),pb=bb?_190:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_18d>=0&&!ns.width){ns.width="4px";}if(_18e>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_18d>=0){_18d=Math.max(_18d-pb.w-mb.w,0);}if(_18e>=0){_18e=Math.max(_18e-pb.h-mb.h,0);}d._setBox(node,_18b,_18c,_18d,_18e);};var _190={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _191=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_192=0,_193=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_192+=val-0;if(node==_193){break;}}node=node.parentNode;}return _192;};dojo._docScroll=function(){var n=d.global;return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.isQuirks?d.doc.body:d.doc.documentElement,{x:d._fixIeBiDiScrollLeft(n.scrollLeft||0),y:n.scrollTop||0});};dojo._isBodyLtr=function(){return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<8){var r=de.getBoundingClientRect();var l=r.left,t=r.top;if(d.isIE<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};dojo._fixIeBiDiScrollLeft=function(_194){var ie=d.isIE;if(ie&&!d._isBodyLtr()){var qk=d.isQuirks,de=qk?d.doc.body:d.doc.documentElement;if(ie==6&&!qk&&d.global.frameElement&&de.scrollHeight>de.clientHeight){_194+=de.clientLeft;}return (ie<8||qk)?(_194+de.clientWidth-de.scrollWidth):-_194;}return _194;};dojo._abs=dojo.position=function(node,_195){node=byId(node);var db=d.body(),dh=db.parentNode,ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE){var _196=d._getIeDocumentElementOffset();ret.x-=_196.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_196.y+(d.isQuirks?db.clientTop+db.offsetTop:0);}else{if(d.isFF==3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);}}if(_195){var _197=d._docScroll();ret.x+=_197.x;ret.y+=_197.y;}return ret;};dojo.coords=function(node,_198){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_198);mb.x=abs.x;mb.y=abs.y;return mb;};var _199={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_19a={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_19b={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _19c=function(name){return _19a[name.toLowerCase()]||name;};var _19d=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _19b[_199[lc]||name]||_19d(byId(node),_19a[lc]||name);};var _19e={},_19f=0,_1a0=dojo._scopeName+"attrid",_1a1={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_1a2){node=byId(node);var args=arguments.length,prop;if(args==2&&typeof name!="string"){for(var x in name){d.attr(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_1a3=_199[lc]||name,_1a4=_19b[_1a3],_1a5=_19a[lc]||name;if(args==3){do{if(_1a3=="style"&&typeof _1a2!="string"){d.style(node,_1a2);break;}if(_1a3=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _1a1){d.empty(node);node.appendChild(d._toDom(_1a2,node.ownerDocument));}else{node[_1a3]=_1a2;}break;}if(d.isFunction(_1a2)){var _1a6=d.attr(node,_1a0);if(!_1a6){_1a6=_19f++;d.attr(node,_1a0,_1a6);}if(!_19e[_1a6]){_19e[_1a6]={};}var h=_19e[_1a6][_1a3];if(h){d.disconnect(h);}else{try{delete node[_1a3];}catch(e){}}_19e[_1a6][_1a3]=d.connect(node,_1a3,_1a2);break;}if(_1a4||typeof _1a2=="boolean"){node[_1a3]=_1a2;break;}node.setAttribute(_1a5,_1a2);}while(false);return node;}_1a2=node[_1a3];if(_1a4&&typeof _1a2!="undefined"){return _1a2;}if(_1a3!="href"&&(typeof _1a2=="boolean"||d.isFunction(_1a2))){return _1a2;}return _19d(node,_1a5)?node.getAttribute(_1a5):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_19c(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_1a7=_199[lc]||name;if((_1a7 in node)&&_1a7!="href"){return node[_1a7];}var _1a8=_19a[lc]||name;return _19d(node,_1a8)?node.getAttribute(_1a8):null;};dojo.create=function(tag,_1a9,_1aa,pos){var doc=d.doc;if(_1aa){_1aa=byId(_1aa);doc=_1aa.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_1a9){d.attr(tag,_1a9);}if(_1aa){d.place(tag,_1aa,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _1ab={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"]},_1ac=/<\s*([\w\:]+)/,_1ad={},_1ae=0,_1af="__"+d._scopeName+"ToDomId";for(var _1b0 in _1ab){if(_1ab.hasOwnProperty(_1b0)){var tw=_1ab[_1b0];tw.pre=_1b0=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}d._toDom=function(frag,doc){doc=doc||d.doc;var _1b1=doc[_1af];if(!_1b1){doc[_1af]=_1b1=++_1ae+"";_1ad[_1b1]=doc.createElement("div");}frag+="";var _1b2=frag.match(_1ac),tag=_1b2?_1b2[1].toLowerCase():"",_1b3=_1ad[_1b1],wrap,i,fc,df;if(_1b2&&_1ab[tag]){wrap=_1ab[tag];_1b3.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_1b3=_1b3.firstChild;}}else{_1b3.innerHTML=frag;}if(_1b3.childNodes.length==1){return _1b3.removeChild(_1b3.firstChild);}df=doc.createDocumentFragment();while(fc=_1b3.firstChild){df.appendChild(fc);}return df;};var _1b4="className";dojo.hasClass=function(node,_1b5){return ((" "+byId(node)[_1b4]+" ").indexOf(" "+_1b5+" ")>=0);};var _1b6=/\s+/,a1=[""],_1b7={},_1b8=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_1b6);}}return s||"";};dojo.addClass=function(node,_1b9){node=byId(node);_1b9=_1b8(_1b9);var cls=node[_1b4],_1ba;cls=cls?" "+cls+" ":" ";_1ba=cls.length;for(var i=0,len=_1b9.length,c;i<len;++i){c=_1b9[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_1ba<cls.length){node[_1b4]=cls.substr(1,cls.length-2);}};dojo.removeClass=function(node,_1bb){node=byId(node);var cls;if(_1bb!==undefined){_1bb=_1b8(_1bb);cls=" "+node[_1b4]+" ";for(var i=0,len=_1bb.length;i<len;++i){cls=cls.replace(" "+_1bb[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_1b4]!=cls){node[_1b4]=cls;}};dojo.replaceClass=function(node,_1bc,_1bd){node=byId(node);_1b7.className=node.className;dojo.removeClass(_1b7,_1bd);dojo.addClass(_1b7,_1bc);if(node.className!==_1b7.className){node.className=_1b7.className;}};dojo.toggleClass=function(node,_1be,_1bf){if(_1bf===undefined){_1bf=!d.hasClass(node,_1be);}d[_1bf?"addClass":"removeClass"](node,_1be);};})();}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var ap=Array.prototype,aps=ap.slice,apc=ap.concat;var tnl=function(a,_1c0,_1c1){if(!a.sort){a=aps.call(a,0);}var ctor=_1c1||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _1c0?a._stash(_1c0):a;};var _1c2=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||d.global;return function(node){a[0]=node;return f.apply(o,a);};};var _1c3=function(f,o){return function(){this.forEach(_1c2(f,arguments,o));return this;};};var _1c4=function(f,o){return function(){return this.map(_1c2(f,arguments,o));};};var _1c5=function(f,o){return function(){return this.filter(_1c2(f,arguments,o));};};var _1c6=function(f,g,o){return function(){var a=arguments,body=_1c2(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _1c7=function(a){return a.length==1&&(typeof a[0]=="string");};var _1c8=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};d._NodeListCtor=d.NodeList;var nl=d.NodeList,nlp=nl.prototype;nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_1c4;nl._adaptAsForEach=_1c3;nl._adaptAsFilter=_1c5;nl._adaptWithCondition=_1c6;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});d.forEach(["indexOf","lastIndexOf","every","some"],function(name){var f=d[name];nlp[name]=function(){return f.apply(d,[this].concat(aps.call(arguments,0)));};});d.forEach(["attr","style"],function(name){nlp[name]=_1c6(d[name],_1c7);});d.forEach(["connect","addClass","removeClass","replaceClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_1c3(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_1c9,_1ca){var _1cb=_1c9.parse===true?true:false;if(typeof _1c9.template=="string"){var _1cc=_1c9.templateFunc||(dojo.string&&dojo.string.substitute);_1c9=_1cc?_1cc(_1c9.template,_1c9):_1c9;}var type=(typeof _1c9);if(type=="string"||type=="number"){_1c9=dojo._toDom(_1c9,(_1ca&&_1ca.ownerDocument));if(_1c9.nodeType==11){_1c9=dojo._toArray(_1c9.childNodes);}else{_1c9=[_1c9];}}else{if(!dojo.isArrayLike(_1c9)){_1c9=[_1c9];}else{if(!dojo.isArray(_1c9)){_1c9=dojo._toArray(_1c9);}}}if(_1cb){_1c9._runParse=true;}return _1c9;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_1cd,_1ce,_1cf){if(_1cd.nodeType!=1&&_1ce=="only"){return;}var _1d0=_1cd,_1d1;var _1d2=ary.length;for(var i=_1d2-1;i>=0;i--){var node=(_1cf?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_1d1){_1d1=_1d0.ownerDocument.createElement("div");}_1d1.appendChild(node);dojo.parser.parse(_1d1);node=_1d1.firstChild;while(_1d1.firstChild){_1d1.removeChild(_1d1.firstChild);}}if(i==_1d2-1){dojo.place(node,_1d0,_1ce);}else{_1d0.parentNode.insertBefore(node,_1d0);}_1d0=node;}},_stash:function(_1d3){this._parent=_1d3;return this;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor();}},concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(d.map(this,func,obj),this);},forEach:function(_1d4,_1d5){d.forEach(this,_1d4,_1d5);return this;},coords:_1c4(d.coords),position:_1c4(d.position),place:function(_1d6,_1d7){var item=d.query(_1d6)[0];return this.forEach(function(node){d.place(node,item,_1d7);});},orphan:function(_1d8){return (_1d8?d._filterQueryResult(this,_1d8):this).forEach(_1c8);},adopt:function(_1d9,_1da){return d.query(_1d9).place(this[0],_1da)._stash(this);},query:function(_1db){if(!_1db){return this;}var ret=this.map(function(node){return d.query(_1db,node).filter(function(_1dc){return _1dc!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1dd){var a=arguments,_1de=this,_1df=0;if(typeof _1dd=="string"){_1de=d._filterQueryResult(this,a[0]);if(a.length==1){return _1de._stash(this);}_1df=1;}return this._wrap(d.filter(_1de,a[_1df],a[_1df+1]),this);},addContent:function(_1e0,_1e1){_1e0=this._normalize(_1e0,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_1e0,node,_1e1,i>0);}return this;},instantiate:function(_1e2,_1e3){var c=d.isFunction(_1e2)?_1e2:d.getObject(_1e2);_1e3=_1e3||{};return this.forEach(function(node){new c(_1e3,node);});},at:function(){var t=new this._NodeListCtor();d.forEach(arguments,function(i){if(i<0){i=this.length+i;}if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];d.forEach(nl.events,function(evt){var _1e4="on"+evt;nlp[_1e4]=function(a,b){return this.connect(_1e4,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;(function(){var _1e5=function(d){var trim=d.trim;var each=d.forEach;var qlc=(d._NodeListCtor=d.NodeList);var _1e6=function(){return d.doc;};var _1e7=((d.isWebKit||d.isMozilla)&&((_1e6().compatMode)=="BackCompat"));var _1e8=!!_1e6().firstChild["children"]?"children":"childNodes";var _1e9=">~+";var _1ea=false;var _1eb=function(){return true;};var _1ec=function(_1ed){if(_1e9.indexOf(_1ed.slice(-1))>=0){_1ed+=" * ";}else{_1ed+=" ";}var ts=function(s,e){return trim(_1ed.slice(s,e));};var _1ee=[];var _1ef=-1,_1f0=-1,_1f1=-1,_1f2=-1,_1f3=-1,inId=-1,_1f4=-1,lc="",cc="",_1f5;var x=0,ql=_1ed.length,_1f6=null,_1f7=null;var _1f8=function(){if(_1f4>=0){var tv=(_1f4==x)?null:ts(_1f4,x);_1f6[(_1e9.indexOf(tv)<0)?"tag":"oper"]=tv;_1f4=-1;}};var _1f9=function(){if(inId>=0){_1f6.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1fa=function(){if(_1f3>=0){_1f6.classes.push(ts(_1f3+1,x).replace(/\\/g,""));_1f3=-1;}};var _1fb=function(){_1f9();_1f8();_1fa();};var _1fc=function(){_1fb();if(_1f2>=0){_1f6.pseudos.push({name:ts(_1f2+1,x)});}_1f6.loops=(_1f6.pseudos.length||_1f6.attrs.length||_1f6.classes.length);_1f6.oquery=_1f6.query=ts(_1f5,x);_1f6.otag=_1f6.tag=(_1f6["oper"])?null:(_1f6.tag||"*");if(_1f6.tag){_1f6.tag=_1f6.tag.toUpperCase();}if(_1ee.length&&(_1ee[_1ee.length-1].oper)){_1f6.infixOper=_1ee.pop();_1f6.query=_1f6.infixOper.query+" "+_1f6.query;}_1ee.push(_1f6);_1f6=null;};for(;lc=cc,cc=_1ed.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_1f6){_1f5=x;_1f6={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return (_1ea)?this.otag:this.tag;}};_1f4=x;}if(_1ef>=0){if(cc=="]"){if(!_1f7.attr){_1f7.attr=ts(_1ef+1,x);}else{_1f7.matchFor=ts((_1f1||_1ef+1),x);}var cmf=_1f7.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1f7.matchFor=cmf.slice(1,-1);}}_1f6.attrs.push(_1f7);_1f7=null;_1ef=_1f1=-1;}else{if(cc=="="){var _1fd=("|~^$*".indexOf(lc)>=0)?lc:"";_1f7.type=_1fd+cc;_1f7.attr=ts(_1ef+1,x-_1fd.length);_1f1=x+1;}}}else{if(_1f0>=0){if(cc==")"){if(_1f2>=0){_1f7.value=ts(_1f0+1,x);}_1f2=_1f0=-1;}}else{if(cc=="#"){_1fb();inId=x+1;}else{if(cc=="."){_1fb();_1f3=x;}else{if(cc==":"){_1fb();_1f2=x;}else{if(cc=="["){_1fb();_1ef=x;_1f7={};}else{if(cc=="("){if(_1f2>=0){_1f7={name:ts(_1f2+1,x),value:null};_1f6.pseudos.push(_1f7);}_1f0=x;}else{if((cc==" ")&&(lc!=cc)){_1fc();}}}}}}}}}return _1ee;};var _1fe=function(_1ff,_200){if(!_1ff){return _200;}if(!_200){return _1ff;}return function(){return _1ff.apply(window,arguments)&&_200.apply(window,arguments);};};var _201=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _202=function(n){return (1==n.nodeType);};var _203="";var _204=function(elem,attr){if(!elem){return _203;}if(attr=="class"){return elem.className||_203;}if(attr=="for"){return elem.htmlFor||_203;}if(attr=="style"){return elem.style.cssText||_203;}return (_1ea?elem.getAttribute(attr):elem.getAttribute(attr,2))||_203;};var _205={"*=":function(attr,_206){return function(elem){return (_204(elem,attr).indexOf(_206)>=0);};},"^=":function(attr,_207){return function(elem){return (_204(elem,attr).indexOf(_207)==0);};},"$=":function(attr,_208){var tval=" "+_208;return function(elem){var ea=" "+_204(elem,attr);return (ea.lastIndexOf(_208)==(ea.length-_208.length));};},"~=":function(attr,_209){var tval=" "+_209+" ";return function(elem){var ea=" "+_204(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_20a){var _20b=" "+_20a+"-";return function(elem){var ea=" "+_204(elem,attr);return ((ea==_20a)||(ea.indexOf(_20b)==0));};},"=":function(attr,_20c){return function(elem){return (_204(elem,attr)==_20c);};}};var _20d=(typeof _1e6().firstChild.nextElementSibling=="undefined");var _20e=!_20d?"nextElementSibling":"nextSibling";var _20f=!_20d?"previousElementSibling":"previousSibling";var _210=(_20d?_202:_1eb);var _211=function(node){while(node=node[_20f]){if(_210(node)){return false;}}return true;};var _212=function(node){while(node=node[_20e]){if(_210(node)){return false;}}return true;};var _213=function(node){var root=node.parentNode;var i=0,tret=root[_1e8],ci=(node["_i"]||-1),cl=(root["_l"]||-1);if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}root["_l"]=l;ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_20e]){if(_210(te)){te["_i"]=++i;if(node===te){ci=i;}}}return ci;};var _214=function(elem){return !((_213(elem))%2);};var _215=function(elem){return ((_213(elem))%2);};var _216={"checked":function(name,_217){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"first-child":function(){return _211;},"last-child":function(){return _212;},"only-child":function(name,_218){return function(node){if(!_211(node)){return false;}if(!_212(node)){return false;}return true;};},"empty":function(name,_219){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_21a){var cz=_21a.charAt(0);if(cz=="\""||cz=="'"){_21a=_21a.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_21a)>=0);};},"not":function(name,_21b){var p=_1ec(_21b)[0];var _21c={el:1};if(p.tag!="*"){_21c.tag=1;}if(!p.classes.length){_21c.classes=1;}var ntf=_21d(p,_21c);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_21e){var pi=parseInt;if(_21e=="odd"){return _215;}else{if(_21e=="even"){return _214;}}if(_21e.indexOf("n")!=-1){var _21f=_21e.split("n",2);var pred=_21f[0]?((_21f[0]=="-")?-1:pi(_21f[0])):1;var idx=_21f[1]?pi(_21f[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_213(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_21e=idx;}}var _220=pi(_21e);return function(elem){return (_213(elem)==_220);};}};var _221=(d.isIE<9||(dojo.isIE&&dojo.isQuirks))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1ea?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _21d=function(_222,_223){if(!_222){return _1eb;}_223=_223||{};var ff=null;if(!("el" in _223)){ff=_1fe(ff,_202);}if(!("tag" in _223)){if(_222.tag!="*"){ff=_1fe(ff,function(elem){return (elem&&(elem.tagName==_222.getTag()));});}}if(!("classes" in _223)){each(_222.classes,function(_224,idx,arr){var re=new RegExp("(?:^|\\s)"+_224+"(?:\\s|$)");ff=_1fe(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _223)){each(_222.pseudos,function(_225){var pn=_225.name;if(_216[pn]){ff=_1fe(ff,_216[pn](pn,_225.value));}});}if(!("attrs" in _223)){each(_222.attrs,function(attr){var _226;var a=attr.attr;if(attr.type&&_205[attr.type]){_226=_205[attr.type](a,attr.matchFor);}else{if(a.length){_226=_221(a);}}if(_226){ff=_1fe(ff,_226);}});}if(!("id" in _223)){if(_222.id){ff=_1fe(ff,function(elem){return (!!elem&&(elem.id==_222.id));});}}if(!ff){if(!("default" in _223)){ff=_1eb;}}return ff;};var _227=function(_228){return function(node,ret,bag){while(node=node[_20e]){if(_20d&&(!_202(node))){continue;}if((!bag||_229(node,bag))&&_228(node)){ret.push(node);}break;}return ret;};};var _22a=function(_22b){return function(root,ret,bag){var te=root[_20e];while(te){if(_210(te)){if(bag&&!_229(te,bag)){break;}if(_22b(te)){ret.push(te);}}te=te[_20e];}return ret;};};var _22c=function(_22d){_22d=_22d||_1eb;return function(root,ret,bag){var te,x=0,tret=root[_1e8];while(te=tret[x++]){if(_210(te)&&(!bag||_229(te,bag))&&(_22d(te,x))){ret.push(te);}}return ret;};};var _22e=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _22f={};var _230=function(_231){var _232=_22f[_231.query];if(_232){return _232;}var io=_231.infixOper;var oper=(io?io.oper:"");var _233=_21d(_231,{el:1});var qt=_231.tag;var _234=("*"==qt);var ecs=_1e6()["getElementsByClassName"];if(!oper){if(_231.id){_233=(!_231.loops&&_234)?_1eb:_21d(_231,{el:1,id:1});_232=function(root,arr){var te=d.byId(_231.id,(root.ownerDocument||root));if(!te||!_233(te)){return;}if(9==root.nodeType){return _201(te,arr);}else{if(_22e(te,root)){return _201(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_231.classes.length&&!_1e7){_233=_21d(_231,{el:1,classes:1,id:1});var _235=_231.classes.join(" ");_232=function(root,arr,bag){var ret=_201(0,arr),te,x=0;var tret=root.getElementsByClassName(_235);while((te=tret[x++])){if(_233(te,root)&&_229(te,bag)){ret.push(te);}}return ret;};}else{if(!_234&&!_231.loops){_232=function(root,arr,bag){var ret=_201(0,arr),te,x=0;var tret=root.getElementsByTagName(_231.getTag());while((te=tret[x++])){if(_229(te,bag)){ret.push(te);}}return ret;};}else{_233=_21d(_231,{el:1,tag:1,id:1});_232=function(root,arr,bag){var ret=_201(0,arr),te,x=0;var tret=root.getElementsByTagName(_231.getTag());while((te=tret[x++])){if(_233(te,root)&&_229(te,bag)){ret.push(te);}}return ret;};}}}}else{var _236={el:1};if(_234){_236.tag=1;}_233=_21d(_231,_236);if("+"==oper){_232=_227(_233);}else{if("~"==oper){_232=_22a(_233);}else{if(">"==oper){_232=_22c(_233);}}}}return _22f[_231.query]=_232;};var _237=function(root,_238){var _239=_201(root),qp,x,te,qpl=_238.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_238[i];x=_239.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_230(qp);for(var j=0;(te=_239[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_239=ret;}return ret;};var _23a={},_23b={};var _23c=function(_23d){var _23e=_1ec(trim(_23d));if(_23e.length==1){var tef=_230(_23e[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}return r;};}return function(root){return _237(root,_23e);};};var nua=navigator.userAgent;var wk="WebKit/";var _23f=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var _240=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var _241=(!!_1e6()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_23f));var _242=/n\+\d|([^ ])?([>~+])([^ =])?/g;var _243=function(_244,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_244;};var _245=function(_246,_247){_246=_246.replace(_242,_243);if(_241){var _248=_23b[_246];if(_248&&!_247){return _248;}}var _249=_23a[_246];if(_249){return _249;}var qcz=_246.charAt(0);var _24a=(-1==_246.indexOf(" "));if((_246.indexOf("#")>=0)&&(_24a)){_247=true;}var _24b=(_241&&(!_247)&&(_1e9.indexOf(qcz)==-1)&&(!d.isIE||(_246.indexOf(":")==-1))&&(!(_1e7&&(_246.indexOf(".")>=0)))&&(_246.indexOf(":contains")==-1)&&(_246.indexOf(":checked")==-1)&&(_246.indexOf("|=")==-1));if(_24b){var tq=(_1e9.indexOf(_246.charAt(_246.length-1))>=0)?(_246+" *"):_246;return _23b[_246]=function(root){try{if(!((9==root.nodeType)||_24a)){throw "";}var r=root[qsa](tq);r[_240]=true;return r;}catch(e){return _245(_246,true)(root);}};}else{var _24c=_246.split(/\s*,\s*/);return _23a[_246]=((_24c.length<2)?_23c(_246):function(root){var _24d=0,ret=[],tp;while((tp=_24c[_24d++])){ret=ret.concat(_23c(tp)(root));}return ret;});}};var _24e=0;var _24f=d.isIE?function(node){if(_1ea){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_24e)||_24e);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_24e));};var _229=function(node,bag){if(!bag){return 1;}var id=_24f(node);if(!bag[id]){return bag[id]=1;}return 0;};var _250="_zipIdx";var _251=function(arr){if(arr&&arr.nozip){return (qlc._wrap)?qlc._wrap(arr):arr;}var ret=new qlc();if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_24e++;if(d.isIE&&_1ea){var _252=_24e+"";arr[0].setAttribute(_250,_252);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_250)!=_252){ret.push(te);}te.setAttribute(_250,_252);}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_202(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_250]=_24e;}for(var x=1,te;te=arr[x];x++){if(arr[x][_250]!=_24e){ret.push(te);}te[_250]=_24e;}}}return ret;};d.query=function(_253,root){qlc=d._NodeListCtor;if(!_253){return new qlc();}if(_253.constructor==qlc){return _253;}if(typeof _253!="string"){return new qlc(_253);}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc();}}root=root||_1e6();var od=root.ownerDocument||root.documentElement;_1ea=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));var r=_245(_253)(root);if(r&&r.nozip&&!qlc._wrap){return r;}return _251(r);};d.query.pseudos=_216;d._filterQueryResult=function(_254,_255,root){var _256=new d._NodeListCtor(),_257=_1ec(_255),_258=(_257.length==1&&!/[^\w#\.]/.test(_255))?_21d(_257[0]):function(node){return dojo.query(_255,root).indexOf(node)!=-1;};for(var x=0,te;te=_254[x];x++){if(_258(te)){_256.push(te);}}return _256;};};var _259=function(){acme={trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;},forEach:function(arr,_25a,_25b){if(!arr||!arr.length){return;}for(var i=0,l=arr.length;i<l;++i){_25a.call(_25b||window,arr[i],i,arr);}},byId:function(id,doc){if(typeof id=="string"){return (doc||document).getElementById(id);}else{return id;}},doc:document,NodeList:Array};var n=navigator;var dua=n.userAgent;var dav=n.appVersion;var tv=parseFloat(dav);acme.isOpera=(dua.indexOf("Opera")>=0)?tv:undefined;acme.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:undefined;acme.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;var _25c=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_25c&&!acme.isChrome){acme.isSafari=parseFloat(dav.split("Version/")[1]);if(!acme.isSafari||parseFloat(dav.substr(_25c+7))<=419.3){acme.isSafari=2;}}if(document.all&&!acme.isOpera){acme.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;}Array._wrap=function(arr){return arr;};return acme;};if(this["dojo"]){dojo.provide("dojo._base.query");_1e5(this["queryPortability"]||this["acme"]||dojo);}else{_1e5(this["queryPortability"]||this["acme"]||_259());}})();}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _25d=dojo,cfg=_25d.config;function _25e(obj,name,_25f){if(_25f===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_25f];}else{if(_25d.isArray(val)){val.push(_25f);}else{obj[name]=_25f;}}};dojo.fieldToObject=function(_260){var ret=null;var item=_25d.byId(_260);if(item){var _261=item.name;var type=(item.type||"").toLowerCase();if(_261&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value;}}else{if(item.multiple){ret=[];_25d.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value);}});}else{ret=item.value;}}}}return ret;};dojo.formToObject=function(_262){var ret={};var _263="file|submit|image|reset|button|";_25d.forEach(dojo.byId(_262).elements,function(item){var _264=item.name;var type=(item.type||"").toLowerCase();if(_264&&type&&_263.indexOf(type)==-1&&!item.disabled){_25e(ret,_264,_25d.fieldToObject(item));if(type=="image"){ret[_264+".x"]=ret[_264+".y"]=ret[_264].x=ret[_264].y=0;}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _265=[];var _266={};for(var name in map){var _267=map[name];if(_267!=_266[name]){var _268=enc(name)+"=";if(_25d.isArray(_267)){for(var i=0;i<_267.length;i++){_265.push(_268+enc(_267[i]));}}else{_265.push(_268+enc(_267));}}}return _265.join("&");};dojo.formToQuery=function(_269){return _25d.objectToQuery(_25d.formToObject(_269));};dojo.formToJson=function(_26a,_26b){return _25d.toJson(_25d.formToObject(_26a),_26b);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_25d.forEach(qp,function(item){if(item.length){var _26c=item.split("=");var name=dec(_26c.shift());var val=dec(_26c.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(_25d.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;var _26d=_25d._contentHandlers=dojo.contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _25d.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!dojo.config.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: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _26e=xhr.responseText;var _26f=_26e.indexOf("/*");var _270=_26e.lastIndexOf("*/");if(_26f==-1||_270==-1){throw new Error("JSON was not comment filtered");}return _25d.fromJson(_26e.substring(_26f+2,_270));},javascript:function(xhr){return _25d.eval(xhr.responseText);},xml:function(xhr){var _271=xhr.responseXML;if(_25d.isIE&&(!_271||!_271.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_25d.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_271=dom;}catch(e){return false;}return true;});}return _271;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _26d["json-comment-filtered"](xhr);}else{return _26d["json"](xhr);}}};dojo._ioSetArgs=function(args,_272,_273,_274){var _275={args:args,url:args.url};var _276=null;if(args.form){var form=_25d.byId(args.form);var _277=form.getAttributeNode("action");_275.url=_275.url||(_277?_277.value:null);_276=_25d.formToObject(form);}var _278=[{}];if(_276){_278.push(_276);}if(args.content){_278.push(args.content);}if(args.preventCache){_278.push({"dojo.preventCache":new Date().valueOf()});}_275.query=_25d.objectToQuery(_25d.mixin.apply(null,_278));_275.handleAs=args.handleAs||"text";var d=new _25d.Deferred(_272);d.addCallbacks(_273,function(_279){return _274(_279,d);});var ld=args.load;if(ld&&_25d.isFunction(ld)){d.addCallback(function(_27a){return ld.call(args,_27a,_275);});}var err=args.error;if(err&&_25d.isFunction(err)){d.addErrback(function(_27b){return err.call(args,_27b,_275);});}var _27c=args.handle;if(_27c&&_25d.isFunction(_27c)){d.addBoth(function(_27d){return _27c.call(args,_27d,_275);});}if(cfg.ioPublish&&_25d.publish&&_275.args.ioPublish!==false){d.addCallbacks(function(res){_25d.publish("/dojo/io/load",[d,res]);return res;},function(res){_25d.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){_25d.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_275;return d;};var _27e=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _27f=typeof xhr.abort;if(_27f=="function"||_27f=="object"||_27f=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _280=function(dfd){var ret=_26d[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _281=function(_282,dfd){if(!dfd.ioArgs.args.failOk){console.error(_282);}return _282;};var _283=null;var _284=[];var _285=0;var _286=function(dfd){if(_285<=0){_285=0;if(cfg.ioPublish&&_25d.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_25d.publish("/dojo/io/stop");}}};var _287=function(){var now=(new Date()).getTime();if(!_25d._blockAsync){for(var i=0,tif;i<_284.length&&(tif=_284[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_284.splice(i--,1);_285-=1;}else{if(tif.ioCheck(dfd)){_284.splice(i--,1);tif.resHandle(dfd);_285-=1;}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_284.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_285-=1;}}}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}_286(dfd);if(!_284.length){clearInterval(_283);_283=null;return;}};dojo._ioCancelAll=function(){try{_25d.forEach(_284,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}};if(_25d.isIE){_25d.addOnWindowUnload(_25d._ioCancelAll);}_25d._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_25d.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_285){_25d.publish("/dojo/io/start");}_285+=1;_25d.publish("/dojo/io/send",[dfd]);}};_25d._ioWatch=function(dfd,_288,_289,_28a){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}_284.push({dfd:dfd,validCheck:_288,ioCheck:_289,resHandle:_28a});if(!_283){_283=setInterval(_287,50);}if(args.sync){_287();}};var _28b="application/x-www-form-urlencoded";var _28c=function(dfd){return dfd.ioArgs.xhr.readyState;};var _28d=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _28e=function(dfd){var xhr=dfd.ioArgs.xhr;if(_25d._isDocumentOk(xhr)){dfd.callback(dfd);}else{var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);err.status=xhr.status;err.responseText=xhr.responseText;dfd.errback(err);}};dojo._ioAddQueryToUrl=function(_28f){if(_28f.query.length){_28f.url+=(_28f.url.indexOf("?")==-1?"?":"&")+_28f.query;_28f.query=null;}};dojo.xhr=function(_290,args,_291){var dfd=_25d._ioSetArgs(args,_27e,_280,_281);var _292=dfd.ioArgs;var xhr=_292.xhr=_25d._xhrObj(_292.args);if(!xhr){dfd.cancel();return dfd;}if("postData" in args){_292.query=args.postData;}else{if("putData" in args){_292.query=args.putData;}else{if("rawBody" in args){_292.query=args.rawBody;}else{if((arguments.length>2&&!_291)||"POST|PUT".indexOf(_290.toUpperCase())==-1){_25d._ioAddQueryToUrl(_292);}}}}xhr.open(_290,_292.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr];}else{if(args.headers[hdr]){xhr.setRequestHeader(hdr,args.headers[hdr]);}}}}xhr.setRequestHeader("Content-Type",args.contentType||_28b);if(!args.headers||!("X-Requested-With" in args.headers)){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}_25d._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(_292.query);}else{try{xhr.send(_292.query);}catch(e){_292.error=e;dfd.cancel();}}_25d._ioWatch(dfd,_28c,_28d,_28e);xhr=null;return dfd;};dojo.xhrGet=function(args){return _25d.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return _25d.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return _25d.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return _25d.xhr("DELETE",args);};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;var _293=d._mixin;dojo._Line=function(_294,end){this.start=_294;this.end=end;};dojo._Line.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};dojo.Animation=function(args){_293(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}};d._Animation=d.Animation;d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _295=this._percent,_296=this.easing;return _296?_296(_295):_295;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(d.config.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_297,_298){var _299=this;if(_299._delayTimer){_299._clearTimer();}if(_298){_299._stopTimer();_299._active=_299._paused=false;_299._percent=0;}else{if(_299._active&&!_299._paused){return _299;}}_299._fire("beforeBegin",[_299.node]);var de=_297||_299.delay,_29a=dojo.hitch(_299,"_play",_298);if(de>0){_299._delayTimer=setTimeout(_29a,de);return _299;}_29a();return _299;},_play:function(_29b){var _29c=this;if(_29c._delayTimer){_29c._clearTimer();}_29c._startTime=new Date().valueOf();if(_29c._paused){_29c._startTime-=_29c.duration*_29c._percent;}_29c._active=true;_29c._paused=false;var _29d=_29c.curve.getValue(_29c._getStep());if(!_29c._percent){if(!_29c._startRepeatCount){_29c._startRepeatCount=_29c.repeat;}_29c._fire("onBegin",[_29d]);}_29c._fire("onPlay",[_29d]);_29c._cycle();return _29c;},pause:function(){var _29e=this;if(_29e._delayTimer){_29e._clearTimer();}_29e._stopTimer();if(!_29e._active){return _29e;}_29e._paused=true;_29e._fire("onPause",[_29e.curve.getValue(_29e._getStep())]);return _29e;},gotoPercent:function(_29f,_2a0){var _2a1=this;_2a1._stopTimer();_2a1._active=_2a1._paused=true;_2a1._percent=_29f;if(_2a0){_2a1.play();}return _2a1;},stop:function(_2a2){var _2a3=this;if(_2a3._delayTimer){_2a3._clearTimer();}if(!_2a3._timer){return _2a3;}_2a3._stopTimer();if(_2a2){_2a3._percent=1;}_2a3._fire("onStop",[_2a3.curve.getValue(_2a3._getStep())]);_2a3._active=_2a3._paused=false;return _2a3;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _2a4=this;if(_2a4._active){var curr=new Date().valueOf();var step=(curr-_2a4._startTime)/(_2a4.duration);if(step>=1){step=1;}_2a4._percent=step;if(_2a4.easing){step=_2a4.easing(step);}_2a4._fire("onAnimate",[_2a4.curve.getValue(step)]);if(_2a4._percent<1){_2a4._startTimer();}else{_2a4._active=false;if(_2a4.repeat>0){_2a4.repeat--;_2a4.play(null,true);}else{if(_2a4.repeat==-1){_2a4.play(null,true);}else{if(_2a4._startRepeatCount){_2a4.repeat=_2a4._startRepeatCount;_2a4._startRepeatCount=0;}}}_2a4._percent=0;_2a4._fire("onEnd",[_2a4.node]);!_2a4.repeat&&_2a4._stopTimer();}}return _2a4;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_2a5=null,_2a6={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(_2a6,"run",this,"_cycle");ctr++;}if(!_2a5){_2a5=setInterval(d.hitch(_2a6,"run"),this.rate);}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_2a5);_2a5=null;ctr=0;}}});var _2a7=d.isIE?function(node){var ns=node.style;if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _2a8=_293({properties:{}},args),_2a9=(_2a8.properties.opacity={});_2a9.start=!("start" in _2a8)?function(){return +d.style(_2a8.node,"opacity")||0;}:_2a8.start;_2a9.end=_2a8.end;var anim=d.animateProperty(_2a8);d.connect(anim,"beforeBegin",d.partial(_2a7,_2a8.node));return anim;};dojo.fadeIn=function(args){return d._fade(_293({end:1},args));};dojo.fadeOut=function(args){return d._fade(_293({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _2aa=function(_2ab){this._properties=_2ab;for(var p in _2ab){var prop=_2ab[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}};_2aa.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_2ac=prop.start;if(_2ac instanceof d.Color){ret[p]=d.blendColors(_2ac,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_2ac)){ret[p]=((prop.end-_2ac)*r)+_2ac+(p!="opacity"?prop.units||"px":0);}}}return ret;};dojo.animateProperty=function(args){var n=args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(d.isFunction(prop)){prop=prop(n);}prop=pm[p]=_293({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start(n);}if(d.isFunction(prop.end)){prop.end=prop.end(n);}var _2ad=(p.toLowerCase().indexOf("color")>=0);function _2ae(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?+v:(_2ad?v:parseFloat(v));};if(!("end" in prop)){prop.end=_2ae(n,p);}else{if(!("start" in prop)){prop.start=_2ae(n,p);}}if(_2ad){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _2aa(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;};dojo.anim=function(node,_2af,_2b0,_2b1,_2b2,_2b3){return d.animateProperty({node:node,duration:_2b0||d.Animation.prototype.duration,properties:_2af,easing:_2b1,onEnd:_2b2}).play(_2b3||0);};})();}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");dojo.forEach(dojo.config.require,function(i){dojo["require"](i);});}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(dojo.isBrowser&&(document.readyState==="complete"||dojo.config.afterOnLoad)){window.setTimeout(dojo._loadInit,100);}})();
1
+ /*
2
+ Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
3
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
4
+ see: http://dojotoolkit.org/license for details
5
+ */
6
+
7
+ /*
8
+ This is an optimized version of Dojo, built for deployment and not for
9
+ development. To get sources and documentation, please visit:
10
+
11
+ http://dojotoolkit.org
12
+ */
13
+
14
+ //>>built
15
+ (function(b,k){var f,n,m=function(){},o=function(a){for(var b in a)return 0;return 1},p={}.toString,j=function(a){return"[object Function]"==p.call(a)},i=function(a){return"[object String]"==p.call(a)},a=function(a){return"[object Array]"==p.call(a)},d=function(a,b){if(a)for(var c=0;c<a.length;)b(a[c++])},c=function(a,b){for(var c in b)a[c]=b[c];return a},e=function(a,b){return c(Error(a),{src:"dojoLoader",info:b})},g=1,l=function(){return"_"+g++},h=function(a,b,c){return Ha(a,b,c,0,h)},r=this,q=
16
+ r.document,t=q&&q.createElement("DiV"),s=h.has=function(a){return j(x[a])?x[a]=x[a](r,q,t):x[a]},x=s.cache=k.hasCache;s.add=function(a,b,c,e){(void 0===x[a]||e)&&(x[a]=b);return c&&s(a)};for(var v in b.has)s.add(v,b.has[v],0,1);var u=0,w=[],H=0,F=m,P=m,I;h.isXdUrl=m;h.initSyncLoader=function(a,b,c){H||(H=a,F=b,P=c);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:w,modules:y,execQ:M,getModule:R,injectModule:la,setArrived:Y,signal:E,finishExec:aa,execModule:ba,
17
+ dojoRequirePlugin:H,getLegacyMode:function(){return u},guardCheckComplete:ca}};var N=location.protocol,V=location.host;h.isXdUrl=function(a){if(/^\./.test(a))return!1;return/^\/\//.test(a)?!0:(a=a.match(/^([^\/\:]+\:)\/+([^\/]+)/))&&(a[1]!=N||V&&a[2]!=V)};s.add("dojo-force-activex-xhr",!q.addEventListener&&"file:"==window.location.protocol);s.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(s("native-xhr")&&!s("dojo-force-activex-xhr"))I=function(){return new XMLHttpRequest};else{var z=["Msxml2.XMLHTTP",
18
+ "Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],B;for(f=0;3>f;)try{if(B=z[f++],new ActiveXObject(B))break}catch(K){}I=function(){return new ActiveXObject(B)}}h.getXhr=I;s.add("dojo-gettext-api",1);h.getText=function(a,b,c){var d=I();d.open("GET",ma(a),!1);d.send(null);if(200==d.status||!location.host&&!d.status)c&&c(d.responseText,b);else throw e("xhrFailed",d.status);return d.responseText};var D=new Function("return eval(arguments[0]);");h.eval=function(a,b){return D(a+"\r\n////@ sourceURL="+b)};var G=
19
+ {},E=h.signal=function(b,c){var e=G[b];d(e&&e.slice(0),function(b){b.apply(null,a(c)?c:[c])})},da=h.on=function(a,b){var c=G[a]||(G[a]=[]);c.push(b);return{remove:function(){for(var a=0;a<c.length;a++)if(c[a]===b){c.splice(a,1);break}}}},Q=[],W={},L=[],C={},S=h.map={},A=[],y={},ea="",J={},Z={},T={},na=function(a){var b,c,e,d;for(b in Z)c=Z[b],(e=b.match(/^url\:(.+)/))?J["url:"+Ia(e[1],a)]=c:"*now"==b?d=c:"*noref"!=b&&(e=fa(b,a),J[e.mid]=J["url:"+e.url]=c);d&&d(xa(a));Z={}},Ja=function(a){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,
20
+ function(a){return"\\"+a})},ya=function(a,b){b.splice(0,b.length);for(var c in a)b.push([c,a[c],RegExp("^"+Ja(c)+"(/|$)"),c.length]);b.sort(function(a,b){return b[3]-a[3]});return b},Ka=function(a){var b=a.name;b||(b=a,a={name:b});a=c({main:"main"},a);a.location=a.location?a.location:b;if(a.packageMap)S[b]=a.packageMap;if(!a.main.indexOf("./"))a.main=a.main.substring(2);C[b]=a},La=[],ga=function(a,b,e){for(var l in a){if("waitSeconds"==l)h.waitms=1E3*(a[l]||0);"cacheBust"==l&&(ea=a[l]?i(a[l])?a[l]:
21
+ (new Date).getTime()+"":"");if("baseUrl"==l||"combo"==l)h[l]=a[l];if("async"==l){var g=a[l];h.legacyMode=u=i(g)&&/sync|legacyAsync/.test(g)?g:!g?"sync":!1;h.async=!u}a[l]!==x&&(h.rawConfig[l]=a[l],"has"!=l&&s.add("config-"+l,a[l],0,b))}if(!h.baseUrl)h.baseUrl="./";/\/$/.test(h.baseUrl)||(h.baseUrl+="/");for(l in a.has)s.add(l,a.has[l],0,b);d(a.packages,Ka);for(n in a.packagePaths)d(a.packagePaths[n],function(a){var b=n+"/"+a;i(a)&&(a={name:a});a.location=b;Ka(a)});ya(c(S,a.map),A);d(A,function(a){a[1]=
22
+ ya(a[1],[]);if("*"==a[0])A.star=a});ya(c(W,a.paths),L);d(a.aliases,function(a){i(a[0])&&(a[0]=RegExp("^"+Ja(a[0])+"$"));Q.push(a)});if(b)La.push({config:a.config});else for(l in a.config)b=R(l,e),b.config=c(b.config||{},a.config[l]);if(a.cache)na(),Z=a.cache,a.cache["*noref"]&&na();E("config",[a,h.rawConfig])};s("dojo-cdn");var Ma=q.getElementsByTagName("script");f=0;for(var oa,X,pa,ha;f<Ma.length;)if(oa=Ma[f++],(pa=oa.getAttribute("src"))&&(ha=pa.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){X=ha[3]||"";
23
+ k.baseUrl=k.baseUrl||X;(pa=oa.getAttribute("data-dojo-config")||oa.getAttribute("djConfig"))&&(T=h.eval("({ "+pa+" })","data-dojo-config"));break}h.rawConfig={};ga(k,1);if(s("dojo-cdn"))(C.dojo.location=X)&&(X+="/"),C.dijit.location=X+"../dijit/",C.dojox.location=X+"../dojox/";ga(b,1);ga(T,1);var ia=function(a){ca(function(){d(a.deps,la)})},Ha=function(b,d,g,j,o){var r;if(i(b)){if((r=R(b,j,!0))&&r.executed)return r.result;throw e("undefinedModule",b);}a(b)||(ga(b,0,j),b=d,d=g);if(a(b))if(b.length){for(var g=
24
+ "require*"+l(),p,f=[],t=0;t<b.length;)p=b[t++],f.push(R(p,j));r=c(qa("",g,0,""),{injected:2,deps:f,def:d||m,require:j?j.require:h,gc:1});y[r.mid]=r;ia(r);var k=ja&&"sync"!=u;ca(function(){ba(r,k)});r.executed||M.push(r);$()}else d&&d();return o},xa=function(a){if(!a)return h;var b=a.require;if(!b)b=function(c,e,d){return Ha(c,e,d,a,b)},a.require=c(b,h),b.module=a,b.toUrl=function(b){return Ia(b,a)},b.toAbsMid=function(b){return za(b,a)},b.syncLoadNls=function(b){var b=fa(b,a),c=y[b.mid];if(!c||!c.executed)if(U=
25
+ J[b.mid]||J["url:"+b.url])ra(U),c=y[b.mid];return c&&c.executed&&c.result};return b},M=[],sa=[],O={},Ya=function(a){a.injected=1;O[a.mid]=1;a.url&&(O[a.url]=a.pack||1);Na()},Y=function(a){a.injected=2;delete O[a.mid];a.url&&delete O[a.url];o(O)&&(ta(),"xd"==u&&(u="sync"))},Za=h.idle=function(){return!sa.length&&o(O)&&!M.length&&!ja},Aa=function(a,b){if(b)for(var c=0;c<b.length;c++)if(b[c][2].test(a))return b[c];return 0},Oa=function(a){for(var b=[],c,e,a=a.replace(/\\/g,"/").split("/");a.length;)c=
26
+ a.shift(),".."==c&&b.length&&".."!=e?(b.pop(),e=b[b.length-1]):"."!=c&&b.push(e=c);return b.join("/")},qa=function(a,b,c,e){var d=h.isXdUrl(e);return{pid:a,mid:b,pack:c,url:e,executed:0,def:0,isXd:d,isAmd:!!(d||C[a]&&C[a].isAmd)}},Pa=function(a,b,c,h,l,g,i,o){var r,p,f,m;m=/^\./.test(a);if(/(^\/)|(\:)|(\.js$)/.test(a)||m&&!b)return qa(0,a,0,a);a=Oa(m?b.mid+"/../"+a:a);if(/^\./.test(a))throw e("irrationalPath",a);b&&(f=Aa(b.mid,g));(f=(f=f||g.star)&&Aa(a,f[1]))&&(a=f[1]+a.substring(f[3]));b=(ha=a.match(/^([^\/]+)(\/(.+))?$/))?
27
+ ha[1]:"";(r=c[b])?a=b+"/"+(p=ha[3]||r.main):b="";var t=0;d(Q,function(b){var c=a.match(b[0]);c&&0<c.length&&(t=j(b[1])?a.replace(b[0],b[1]):b[1])});if(t)return Pa(t,0,c,h,l,g,i,o);if(c=h[a])return o?qa(c.pid,c.mid,c.pack,c.url):h[a];h=(f=Aa(a,i))?f[1]+a.substring(f[3]):b?r.location+"/"+p:s("config-tlmSiblingOfDojo")?"../"+a:a;/(^\/)|(\:)/.test(h)||(h=l+h);return qa(b,a,r,Oa(h+".js"))},fa=function(a,b){return Pa(a,b,C,y,h.baseUrl,A,L)},Qa=function(a,b,c){return a.normalize?a.normalize(b,function(a){return za(a,
28
+ c)}):za(b,c)},Ra=0,R=function(a,b,c){var e,d;(e=a.match(/^(.+?)\!(.*)$/))?(d=R(e[1],b,c),"sync"==u&&!d.executed&&(la(d),2===d.injected&&!d.executed&&ca(function(){ba(d)}),d.executed?ua(d):M.unshift(d)),5===d.executed&&!d.load&&ua(d),d.load?(e=Qa(d,e[2],b),a=d.mid+"!"+(d.dynamic?++Ra+"!":"")+e):(e=e[2],a=d.mid+"!"+ ++Ra+"!waitingForPlugin"),a={plugin:d,mid:a,req:xa(b),prid:e}):a=fa(a,b);return y[a.mid]||!c&&(y[a.mid]=a)},za=h.toAbsMid=function(a,b){return fa(a,b).mid},Ia=h.toUrl=function(a,b){var c=
29
+ fa(a+"/x",b),d=c.url;return ma(0===c.pid?a:d.substring(0,d.length-5))},Sa={injected:2,executed:5,def:3,result:3},Ba=function(a){return y[a]=c({mid:a},Sa)},$a=Ba("require"),ab=Ba("exports"),bb=Ba("module"),va={},Ca=0,ua=function(a){var b=a.result;a.dynamic=b.dynamic;a.normalize=b.normalize;a.load=b.load;return a},cb=function(a){var b={};d(a.loadQ,function(d){var e=Qa(a,d.prid,d.req.module),h=a.dynamic?d.mid.replace(/waitingForPlugin$/,e):a.mid+"!"+e,e=c(c({},d),{mid:h,prid:e,injected:0});y[h]||Ta(y[h]=
30
+ e);b[d.mid]=y[h];Y(d);delete y[d.mid]});a.loadQ=0;var e=function(a){for(var c=a.deps||[],d=0;d<c.length;d++)(a=b[c[d].mid])&&(c[d]=a)},h;for(h in y)e(y[h]);d(M,e)},aa=function(a){h.trace("loader-finish-exec",[a.mid]);a.executed=5;a.defOrder=Ca++;d(a.provides,function(a){a()});a.loadQ&&(ua(a),cb(a));for(f=0;f<M.length;)M[f]===a?M.splice(f,1):f++;/^require\*/.test(a.mid)&&delete y[a.mid]},db=[],ba=function(a,b){if(4===a.executed)return h.trace("loader-circular-dependency",[db.concat(a.mid).join("->")]),
31
+ !a.def||b?va:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return va;var c=a.mid,d=a.deps||[],l,g=[],i=0;for(a.executed=4;i<d.length;){l=d[i++];l=l===$a?xa(a):l===ab?a.cjs.exports:l===bb?a.cjs:ba(l,b);if(l===va)return a.executed=0,h.trace("loader-exec-module",["abort",c]),va;g.push(l)}h.trace("loader-run-factory",[a.mid]);var c=a.def,o;w.unshift(a);if(s("config-dojo-loader-catches"))try{o=j(c)?c.apply(null,g):c}catch(r){E("error",a.result=e("factoryThrew",[a,r]))}else o=j(c)?c.apply(null,g):c;a.result=
32
+ void 0===o&&a.cjs?a.cjs.exports:o;w.shift(a);aa(a)}return a.result},ja=0,ca=function(a){try{ja++,a()}finally{ja--}Za()&&E("idle",[])},$=function(){ja||ca(function(){F();for(var a,b,c=0;c<M.length;)a=Ca,b=M[c],ba(b),a!=Ca?(F(),c=0):c++})};void 0===s("dojo-loader-eval-hint-url")&&s.add("dojo-loader-eval-hint-url",1);var ma=function(a){a+="";return a+(ea?(/\?/.test(a)?"&":"?")+ea:"")},Ta=function(a){var b=a.plugin;5===b.executed&&!b.load&&ua(b);var c=function(b){a.result=b;Y(a);aa(a);$()};b.load?b.load(a.prid,
33
+ a.req,c):b.loadQ?b.loadQ.push(a):(b.loadQ=[a],M.unshift(b),la(b))},U=0,ka=0,Da=0,ra=function(a,b){s("config-stripStrict")&&(a=a.replace(/"use strict"/g,""));Da=1;if(s("config-dojo-loader-catches"))try{a===U?U.call(null):h.eval(a,s("dojo-loader-eval-hint-url")?b.url:b.mid)}catch(c){E("error",e("evalModuleThrew",b))}else a===U?U.call(null):h.eval(a,s("dojo-loader-eval-hint-url")?b.url:b.mid);Da=0},la=function(a){var b=a.mid,l=a.url;if(!a.executed&&!a.injected&&!(O[b]||a.url&&(a.pack&&O[a.url]===a.pack||
34
+ 1==O[a.url])))if(Ya(a),a.plugin)Ta(a);else{var g=function(){Ua(a);2!==a.injected&&(Y(a),c(a,Sa),h.trace("loader-define-nonmodule",[a.url]));u?!w.length&&$():$()};if(U=J[b]||J["url:"+a.url])h.trace("loader-inject",["cache",a.mid,l]),ra(U,a),g();else{if(u)if(a.isXd)"sync"==u&&(u="xd");else if(!(a.isAmd&&"sync"!=u)){var i=function(c){if("sync"==u){w.unshift(a);ra(c,a);w.shift();Ua(a);a.cjs||(Y(a),aa(a));if(a.finish){var c=b+"*finish",e=a.finish;delete a.finish;Ea(c,["dojo",("dojo/require!"+e.join(",")).replace(/\./g,
35
+ "/")],function(a){d(e,function(b){a.require(b)})});M.unshift(R(c))}g()}else(c=P(a,c))?(ra(c,a),g()):(ka=a,h.injectUrl(ma(l),g,a),ka=0)};h.trace("loader-inject",["xhr",a.mid,l,"sync"!=u]);if(s("config-dojo-loader-catches"))try{h.getText(l,"sync"!=u,i)}catch(j){E("error",e("xhrInjectFailed",[a,j]))}else h.getText(l,"sync"!=u,i);return}h.trace("loader-inject",["script",a.mid,l]);ka=a;h.injectUrl(ma(l),g,a);ka=0}}},Fa=function(a,b,d){h.trace("loader-define-module",[a.mid,b]);var l=a.mid;if(2===a.injected)return E("error",
36
+ e("multipleDefine",a)),a;c(a,{deps:b,def:d,cjs:{id:a.mid,uri:a.url,exports:a.result={},setExports:function(b){a.cjs.exports=b},config:function(){return a.config}}});for(var g=0;g<b.length;g++)b[g]=R(b[g],a);u&&!O[l]&&(ia(a),M.push(a),$());Y(a);if(!j(d)&&!b.length)a.result=d,aa(a);return a},Ua=function(a,b){for(var c=[],e,h;sa.length;)h=sa.shift(),b&&(h[0]=b.shift()),e=h[0]&&R(h[0])||a,c.push([e,h[1],h[2]]);na(a);d(c,function(a){ia(Fa.apply(null,a))})},wa=0,ta=m,Na=m;ta=function(){wa&&clearTimeout(wa);
37
+ wa=0};Na=function(){ta();h.waitms&&(wa=window.setTimeout(function(){ta();E("error",e("timeout",O))},h.waitms))};s.add("ie-event-behavior",!!q.attachEvent&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var Ga=function(a,b,c,d){if(s("ie-event-behavior"))return a.attachEvent(c,d),function(){a.detachEvent(c,d)};a.addEventListener(b,d,!1);return function(){a.removeEventListener(b,d,!1)}},eb=Ga(window,"load","onload",function(){h.pageLoaded=1;"complete"!=q.readyState&&(q.readyState=
38
+ "complete");eb()}),Va=q.getElementsByTagName("script")[0],fb=Va.parentNode;h.injectUrl=function(a,b,c){var c=c.node=q.createElement("script"),d=Ga(c,"load","onreadystatechange",function(a){var a=a||window.event,c=a.target||a.srcElement;if("load"===a.type||/complete|loaded/.test(c.readyState))d(),h(),b&&b()}),h=Ga(c,"error","onerror",function(b){d();h();E("error",e("scriptError",[a,b]))});c.type="text/javascript";c.charset="utf-8";c.src=a;fb.insertBefore(c,Va);return c};h.log=function(){try{for(var a=
39
+ 0;a<arguments.length;a++);}catch(b){}};h.trace=m;var Ea=function(a,b,c){var d=arguments.length,l=["require","exports","module"],g=[0,a,b];1==d?g=[0,j(a)?l:[],a]:2==d&&i(a)?g=[a,j(b)?l:[],b]:3==d&&(g=[a,b,c]);h.trace("loader-define",g.slice(0,2));if((d=g[0]&&R(g[0]))&&!O[d.mid])ia(Fa(d,g[1],g[2]));else if(!s("ie-event-behavior")||Da)sa.push(g);else{d=d||ka;if(!d)for(a in O)if((l=y[a])&&l.node&&"interactive"===l.node.readyState){d=l;break}d?(na(d),ia(Fa(d,g[1],g[2]))):E("error",e("ieDefineFailed",g[0]));
40
+ $()}};Ea.amd={vendor:"dojotoolkit.org"};c(c(h,k.loaderPatch),b.loaderPatch);da("error",function(a){try{if(console.error(a),a instanceof Error)for(var b in a);}catch(c){}});c(h,{uid:l,cache:J,packs:C});if(r.define)E("error",e("defineAlreadyDefined",0));else{r.define=Ea;r.require=h;d(La,function(a){ga(a)});var Wa=T.deps||b.deps||k.deps,Xa=T.callback||b.callback||k.callback;h.boot=Wa||Xa?[Wa||[],Xa]:0}})(this.dojoConfig||this.djConfig||this.require||{},{async:"legacyAsync",hasCache:{"config-selectorEngine":"acme",
41
+ "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"}]});
42
+ require({cache:{"dojo/_base/fx":function(){define("./kernel,./config,./lang,../Evented,./Color,./connect,./sniff,../dom,../dom-style".split(","),function(b,k,f,n,m,o,p,j,i){var a=f.mixin,d={},c=d._Line=function(a,b){this.start=a;this.end=b};c.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var e=d.Animation=function(b){a(this,b);if(f.isArray(this.curve))this.curve=new c(this.curve[0],this.curve[1])};e.prototype=new n;f.extend(e,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
43
+ _getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,b){var c=b||[];if(this[a])if(k.debugAtAllCosts)this[a].apply(this,c);else try{this[a].apply(this,c)}catch(d){console.error("exception in animation handler for:",a),console.error(d)}return this},play:function(a,b){this._delayTimer&&this._clearTimer();if(b)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var c=a||
44
+ this.delay,d=f.hitch(this,"_play",b);if(0<c)return this._delayTimer=setTimeout(d,c),this;d();return this},_play:function(){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;var a=this.curve.getValue(this._getStep());if(!this._percent){if(!this._startRepeatCount)this._startRepeatCount=this.repeat;this._fire("onBegin",[a])}this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&
45
+ 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,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();if(a)this._percent=1;this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},status:function(){return this._active?
46
+ 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)]);if(1>this._percent)this._startTimer();else{this._active=!1;if(0<this.repeat)this.repeat--,this.play(null,!0);else if(-1==this.repeat)this.play(null,!0);else if(this._startRepeatCount)this.repeat=this._startRepeatCount,this._startRepeatCount=
47
+ 0;this._percent=0;this._fire("onEnd",[this.node]);!this.repeat&&this._stopTimer()}}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var g=0,l=null,h={run:function(){}};f.extend(e,{_startTimer:function(){if(!this._timer)this._timer=o.connect(h,"run",this,"_cycle"),g++;l||(l=setInterval(f.hitch(h,"run"),this.rate))},_stopTimer:function(){if(this._timer)o.disconnect(this._timer),this._timer=null,g--;0>=g&&(clearInterval(l),l=null,g=0)}});var r=p("ie")?function(a){var b=
48
+ a.style;if(!b.width.length&&"auto"==i.get(a,"width"))b.width="auto"}:function(){};d._fade=function(b){b.node=j.byId(b.node);var c=a({properties:{}},b),b=c.properties.opacity={};b.start=!("start"in c)?function(){return+i.get(c.node,"opacity")||0}:c.start;b.end=c.end;b=d.animateProperty(c);o.connect(b,"beforeBegin",f.partial(r,c.node));return b};d.fadeIn=function(b){return d._fade(a({end:1},b))};d.fadeOut=function(b){return d._fade(a({end:0},b))};d._defaultEasing=function(a){return 0.5+Math.sin((a+
49
+ 1.5)*Math.PI)/2};var q=function(a){this._properties=a;for(var b in a){var c=a[b];if(c.start instanceof m)c.tempColor=new m}};q.prototype.getValue=function(a){var b={},c;for(c in this._properties){var d=this._properties[c],e=d.start;e instanceof m?b[c]=m.blendColors(e,d.end,a,d.tempColor).toCss():f.isArray(e)||(b[c]=(d.end-e)*a+e+("opacity"!=c?d.units||"px":0))}return b};d.animateProperty=function(c){var d=c.node=j.byId(c.node);if(!c.easing)c.easing=b._defaultEasing;c=new e(c);o.connect(c,"beforeBegin",
50
+ c,function(){var b={},c;for(c in this.properties){if("width"==c||"height"==c)this.node.display="block";var e=this.properties[c];f.isFunction(e)&&(e=e(d));e=b[c]=a({},f.isObject(e)?e:{end:e});if(f.isFunction(e.start))e.start=e.start(d);if(f.isFunction(e.end))e.end=e.end(d);var h=0<=c.toLowerCase().indexOf("color"),l=function(a,b){var c={height:a.offsetHeight,width:a.offsetWidth}[b];if(void 0!==c)return c;c=i.get(a,b);return"opacity"==b?+c:h?c:parseFloat(c)};if("end"in e){if(!("start"in e))e.start=
51
+ l(d,c)}else e.end=l(d,c);h?(e.start=new m(e.start),e.end=new m(e.end)):e.start="opacity"==c?+e.start:parseFloat(e.start)}this.curve=new q(b)});o.connect(c,"onAnimate",f.hitch(i,"set",c.node));return c};d.anim=function(a,b,c,h,l,g){return d.animateProperty({node:a,duration:c||e.prototype.duration,properties:b,easing:h,onEnd:l}).play(g||0)};a(b,d);b._Animation=e;return d})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(b,k,f,n){var m={fieldToObject:function(b){var f=
52
+ null;if(b=k.byId(b)){var j=b.name,i=(b.type||"").toLowerCase();if(j&&i&&!b.disabled)if("radio"==i||"checkbox"==i){if(b.checked)f=b.value}else if(b.multiple){f=[];for(b=[b.firstChild];b.length;)for(j=b.pop();j;j=j.nextSibling)if(1==j.nodeType&&"option"==j.tagName.toLowerCase())j.selected&&f.push(j.value);else{j.nextSibling&&b.push(j.nextSibling);j.firstChild&&b.push(j.firstChild);break}}else f=b.value}return f},toObject:function(o){for(var f={},o=k.byId(o).elements,j=0,i=o.length;j<i;++j){var a=o[j],
53
+ d=a.name,c=(a.type||"").toLowerCase();if(d&&c&&0>"file|submit|image|reset|button".indexOf(c)&&!a.disabled){var e=f,g=d,a=m.fieldToObject(a);if(null!==a){var l=e[g];"string"==typeof l?e[g]=[l,a]:b.isArray(l)?l.push(a):e[g]=a}if("image"==c)f[d+".x"]=f[d+".y"]=f[d].x=f[d].y=0}}return f},toQuery:function(b){return f.objectToQuery(m.toObject(b))},toJson:function(b,f){return n.stringify(m.toObject(b),null,f?4:0)}};return m})},"dojo/i18n":function(){define("./_base/kernel,require,./has,./_base/array,./_base/config,./_base/lang,./_base/xhr,./json,module".split(","),
54
+ function(b,k,f,n,m,o,p,j,i){f.add("dojo-preload-i18n-Api",1);var a=b.i18n={},d=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,c=function(a,b,c,d){for(var e=[c+d],b=b.split("-"),h="",l=0;l<b.length;l++)h+=(h?"-":"")+b[l],(!a||a[h])&&e.push(c+h+"/"+d);return e},e={},g=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};b.getL10nName=function(a,b,c){return i.id+"!"+g(a,b,c)};var l=function(a,b,d,h,l,g){a([b],function(i){var j=
55
+ o.clone(i.root),r=c(!i._v1x&&i,l,d,h);a(r,function(){for(var a=1;a<r.length;a++)j=o.mixin(o.clone(j),arguments[a]);e[b+"/"+l]=j;g()})})},h=function(a){var b=m.extraLocale||[],b=o.isArray(b)?b:[b];b.push(a);return b},r=function(a,c,g){if(f("dojo-preload-i18n-Api")){var i=a.split("*"),r="preload"==i[1];r&&(e[a]||(e[a]=1,v(i[2],j.parse(i[3]),1,c)),g(1));if(!(i=r))s&&x.push([a,c,g]),i=s;if(i)return}var a=d.exec(a),m=a[1]+"/",p=a[5]||a[4],k=m+p,i=(a=a[5]&&a[4])||b.locale,w=k+"/"+i,a=a?[i]:h(i),t=a.length,
56
+ q=function(){--t||g(o.delegate(e[w]))};n.forEach(a,function(a){var b=k+"/"+a;f("dojo-preload-i18n-Api")&&u(b);e[b]?q():l(c,k,m,p,a,q)})};if(f("dojo-unit-tests"))var q=a.unitTests=[];f("dojo-preload-i18n-Api");var t=a.normalizeLocale=function(a){a=a?a.toLowerCase():b.locale;return"root"==a?"ROOT":a},s=0,x=[],v=a._preloadLocalizations=function(a,c,d,h){function l(a,b){h.isXdUrl(k.toUrl(a+".js"))||d?h([a],b):F([a],b,h)}function g(a,b){for(var c=a.split("-");c.length;){if(b(c.join("-")))return;c.pop()}b("ROOT")}
57
+ function i(b){b=t(b);g(b,function(b){if(0<=n.indexOf(c,b)){var d=a.replace(/\./g,"/")+"_"+b;s++;l(d,function(a){for(var c in a)e[k.toAbsMid(c)+"/"+b]=a[c];for(--s;!s&&x.length;)r.apply(null,x.shift())});return!0}return!1})}h=h||k;i();n.forEach(b.config.extraLocale,i)},u=function(){},w={},H=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},\t require = function(){define.called = 1;};try{define.called = 0;eval(__bundle);if(define.called==1)return __amdValue;if((__checkForLegacyModules = __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),
58
+ F=function(a,b,c){var d=[];n.forEach(a,function(a){function b(c){c=H(c,u,a,w);c===w?d.push(e[h]=w.result):(c instanceof Error&&(console.error("failed to evaluate i18n bundle; url="+h,c),c={}),d.push(e[h]=/nls\/[^\/]+\/[^\/]+$/.test(h)?c:{root:c,_v1x:1}))}var h=c.toUrl(a+".js");if(e[h])d.push(e[h]);else{var l=c.syncLoadNls(a);if(l)d.push(l);else if(p)p.get({url:h,sync:!0,load:b,error:function(){d.push(e[h]={})}});else try{c.getText(h,!0,b)}catch(g){d.push(e[h]={})}}});b&&b.apply(null,d)},u=function(a){for(var c,
59
+ d=a.split("/"),h=b.global[d[0]],l=1;h&&l<d.length-1;h=h[d[l++]]);h&&((c=h[d[l]])||(c=h[d[l].replace(/-/g,"_")]),c&&(e[a]=c));return c};a.getLocalization=function(a,b,c){var d,a=g(a,b,c);r(a,!k.isXdUrl(k.toUrl(a+".js"))?function(a,b){F(a,b,k)}:k,function(a){d=a});return d};f("dojo-unit-tests")&&q.push(function(a){a.register("tests.i18n.unit",function(a){var b;b=H("{prop:1}",u,"nonsense",w);a.is({prop:1},b);a.is(void 0,b[1]);b=H("({prop:1})",u,"nonsense",w);a.is({prop:1},b);a.is(void 0,b[1]);b=H("{'prop-x':1}",
60
+ u,"nonsense",w);a.is({"prop-x":1},b);a.is(void 0,b[1]);b=H("({'prop-x':1})",u,"nonsense",w);a.is({"prop-x":1},b);a.is(void 0,b[1]);b=H("define({'prop-x':1})",u,"nonsense",w);a.is(w,b);a.is({"prop-x":1},w.result);b=H("define('some/module', {'prop-x':1})",u,"nonsense",w);a.is(w,b);a.is({"prop-x":1},w.result);b=H("this is total nonsense and should throw an error",u,"nonsense",w);a.is(b instanceof Error,!0)})});return o.mixin(a,{dynamic:!0,normalize:function(a,b){return/^\./.test(a)?b(a):a},load:r,cache:e})})},
61
+ "dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(b,k,f){function n(b){setTimeout(function(){o.apply(m,b)},0)}var m=new f,o=m.emit;m.emit=null;k.prototype.trace=function(){var o=b._toArray(arguments);this.then(function(b){n(["resolved",b].concat(o))},function(b){n(["rejected",b].concat(o))},function(b){n(["progress",b].concat(o))});return this};k.prototype.traceRejected=function(){var o=b._toArray(arguments);this.otherwise(function(b){n(["rejected",b].concat(o))});
62
+ return this};return m})},"dojo/errors/RequestError":function(){define(["./create"],function(b){return b("RequestError",function(b,f){this.response=f})})},"dojo/_base/html":function(){define("dojo/_base/html","./kernel,../dom,../dom-style,../dom-attr,../dom-prop,../dom-class,../dom-construct,../dom-geometry".split(","),function(b,k,f,n,m,o,p,j){b.byId=k.byId;b.isDescendant=k.isDescendant;b.setSelectable=k.setSelectable;b.getAttr=n.get;b.setAttr=n.set;b.hasAttr=n.has;b.removeAttr=n.remove;b.getNodeProp=
63
+ n.getNodeProp;b.attr=function(b,a,d){return 2==arguments.length?n["string"==typeof a?"get":"set"](b,a):n.set(b,a,d)};b.hasClass=o.contains;b.addClass=o.add;b.removeClass=o.remove;b.toggleClass=o.toggle;b.replaceClass=o.replace;b._toDom=b.toDom=p.toDom;b.place=p.place;b.create=p.create;b.empty=function(b){p.empty(b)};b._destroyElement=b.destroy=function(b){p.destroy(b)};b._getPadExtents=b.getPadExtents=j.getPadExtents;b._getBorderExtents=b.getBorderExtents=j.getBorderExtents;b._getPadBorderExtents=
64
+ b.getPadBorderExtents=j.getPadBorderExtents;b._getMarginExtents=b.getMarginExtents=j.getMarginExtents;b._getMarginSize=b.getMarginSize=j.getMarginSize;b._getMarginBox=b.getMarginBox=j.getMarginBox;b.setMarginBox=j.setMarginBox;b._getContentBox=b.getContentBox=j.getContentBox;b.setContentSize=j.setContentSize;b._isBodyLtr=b.isBodyLtr=j.isBodyLtr;b._docScroll=b.docScroll=j.docScroll;b._getIeDocumentElementOffset=b.getIeDocumentElementOffset=j.getIeDocumentElementOffset;b._fixIeBiDiScrollLeft=b.fixIeBiDiScrollLeft=
65
+ j.fixIeBiDiScrollLeft;b.position=j.position;b.marginBox=function(b,a){return a?j.setMarginBox(b,a):j.getMarginBox(b)};b.contentBox=function(b,a){return a?j.setContentSize(b,a):j.getContentBox(b)};b.coords=function(i,a){b.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");var i=k.byId(i),d=f.getComputedStyle(i),d=j.getMarginBox(i,d),c=j.position(i,a);d.x=c.x;d.y=c.y;return d};b.getProp=m.get;b.setProp=m.set;b.prop=function(b,a,d){return 2==arguments.length?m["string"==typeof a?
66
+ "get":"set"](b,a):m.set(b,a,d)};b.getStyle=f.get;b.setStyle=f.set;b.getComputedStyle=f.getComputedStyle;b.__toPixelValue=b.toPixelValue=f.toPixelValue;b.style=function(b,a,d){switch(arguments.length){case 1:return f.get(b);case 2:return f["string"==typeof a?"get":"set"](b,a)}return f.set(b,a,d)};return b})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(b,k,f,n){var m,o={},p={},j={config:k,global:this,dijit:o,dojox:p},o={dojo:["dojo",j],dijit:["dijit",o],dojox:["dojox",
67
+ p]},n=f.map&&f.map[n.id.match(/[^\/]+/)[0]];for(m in n)o[m]?o[m][0]=n[m]:o[m]=[n[m],{}];for(m in o)n=o[m],n[1]._scopeName=n[0],k.noGlobals||(this[n[0]]=n[1]);j.scopeMap=o;j.baseUrl=j.config.baseUrl=f.baseUrl;j.isAsync=f.async;j.locale=k.locale;n="$Rev: 30169 $".match(/\d+/);j.version={major:1,minor:8,patch:2,flag:"",revision:n?+n[0]:NaN,toString:function(){var a=j.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(j);
68
+ j.exit=function(){};"undefined"!=typeof console||(console={});for(var o="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),i,n=0;i=o[n++];)console[i]||function(){var a=i+"";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",!!k.isDebug);j.deprecated=j.experimental=function(){};if(b("dojo-debug-messages"))j.deprecated=
69
+ function(a,b,c){a="DEPRECATED: "+a;b&&(a+=" "+b);c&&(a+=" -- will be removed in version: "+c);console.warn(a)},j.experimental=function(a,b){var c="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";b&&(c+=" "+b);console.warn(c)};if(k.modulePaths){j.deprecated("dojo.modulePaths","use paths configuration");b={};for(m in k.modulePaths)b[m.replace(/\./g,"/")]=k.modulePaths[m];f({paths:b})}j.moduleUrl=function(a,b){j.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var c=null;a&&(c=
70
+ f.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/"));return c};j._hasResource={};return j})},"dojo/io-query":function(){define(["./_base/lang"],function(b){var k={};return{objectToQuery:function(f){var n=encodeURIComponent,m=[],o;for(o in f){var p=f[o];if(p!=k[o]){var j=n(o)+"=";if(b.isArray(p))for(var i=0,a=p.length;i<a;++i)m.push(j+n(p[i]));else m.push(j+n(p))}}return m.join("&")},queryToObject:function(f){for(var k=decodeURIComponent,f=f.split("&"),m={},o,p,j=0,
71
+ i=f.length;j<i;++j)if(p=f[j],p.length){var a=p.indexOf("=");0>a?(o=k(p),p=""):(o=k(p.slice(0,a)),p=k(p.slice(a+1)));"string"==typeof m[o]&&(m[o]=[m[o]]);b.isArray(m[o])?m[o].push(p):m[o]=p}return m}}})},"dojo/_base/Deferred":function(){define("./kernel,../Deferred,../promise/Promise,../errors/CancelError,../has,./lang,../when".split(","),function(b,k,f,n,m,o,p){var j=function(){},i=Object.freeze||function(){},a=b.Deferred=function(b){function c(a){if(l)throw Error("This deferred has already been resolved");
72
+ g=a;l=!0;e()}function e(){for(var a;!a&&p;){var b=p;p=p.next;if(a=b.progress==j)l=!1;var c=h?b.error:b.resolved;m("config-useDeferredInstrumentation")&&h&&k.instrumentRejected&&k.instrumentRejected(g,!!c);if(c)try{var d=c(g);d&&"function"===typeof d.then?d.then(o.hitch(b.deferred,"resolve"),o.hitch(b.deferred,"reject"),o.hitch(b.deferred,"progress")):(c=a&&void 0===d,a&&!c&&(h=d instanceof Error),b.deferred[c&&h?"reject":"resolve"](c?g:d))}catch(e){b.deferred.reject(e)}else h?b.deferred.reject(g):
73
+ b.deferred.resolve(g)}}var g,l,h,r,p,t=this.promise=new f;this.resolve=this.callback=function(a){this.fired=0;this.results=[a,null];c(a)};this.reject=this.errback=function(a){h=!0;this.fired=1;m("config-useDeferredInstrumentation")&&k.instrumentRejected&&k.instrumentRejected(a,!!p);c(a);this.results=[null,a]};this.progress=function(a){for(var b=p;b;){var c=b.progress;c&&c(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,j);return this};t.then=this.then=function(b,c,d){var h=d==j?this:new a(t.cancel),
74
+ b={resolved:b,error:c,progress:d,deferred:h};p?r=r.next=b:p=r=b;l&&e();return h.promise};var s=this;t.cancel=this.cancel=function(){if(!l){var a=b&&b(s);if(!l)a instanceof Error||(a=new n(a)),a.log=!1,s.reject(a)}};i(t)};o.extend(a,{addCallback:function(a){return this.addCallbacks(o.hitch.apply(b,arguments))},addErrback:function(a){return this.addCallbacks(null,o.hitch.apply(b,arguments))},addBoth:function(a){var c=o.hitch.apply(b,arguments);return this.addCallbacks(c,c)},fired:-1});a.when=b.when=
75
+ p;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,k,f,n,m,o,p,j,i){function a(a){return function(b,c,d){return 2==arguments.length?a["string"==typeof c?"get":"set"](b,c):a.set(b,c,d)}}var d=function(a){return 1==a.length&&"string"==typeof a[0]},c=function(a){var b=a.parentNode;b&&b.removeChild(a)},e=k.NodeList,g=e._adaptWithCondition,l=e._adaptAsForEach,h=e._adaptAsMap;
76
+ n.extend(e,{_normalize:function(a,c){var d=!0===a.parse;if("string"==typeof a.template)var e=a.templateFunc||b.string&&b.string.substitute,a=e?e(a.template,a):a;e=typeof a;"string"==e||"number"==e?(a=o.toDom(a,c&&c.ownerDocument),a=11==a.nodeType?n._toArray(a.childNodes):[a]):n.isArrayLike(a)?n.isArray(a)||(a=n._toArray(a)):a=[a];if(d)a._runParse=!0;return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,c,d,e){if(!(1!=c.nodeType&&"only"==d))for(var h,l=a.length,g=l-1;0<=g;g--){var i=
77
+ e?this._cloneNode(a[g]):a[g];if(a._runParse&&b.parser&&b.parser.parse){h||(h=c.ownerDocument.createElement("div"));h.appendChild(i);b.parser.parse(h);for(i=h.firstChild;h.firstChild;)h.removeChild(h.firstChild)}g==l-1?o.place(i,c,d):c.parentNode.insertBefore(i,c);c=i}},position:h(p.position),attr:g(a(j),d),style:g(a(i),d),addClass:l(m.add),removeClass:l(m.remove),toggleClass:l(m.toggle),replaceClass:l(m.replace),empty:l(o.empty),removeAttr:l(j.remove),marginBox:h(p.getMarginBox),place:function(a,
78
+ b){var c=k(a)[0];return this.forEach(function(a){o.place(a,c,b)})},orphan:function(a){return(a?k._filterResult(this,a):this).forEach(c)},adopt:function(a,b){return k(a).place(this[0],b)._stash(this)},query:function(a){if(!a)return this;var b=new e;this.map(function(c){k(a,c).forEach(function(a){void 0!==a&&b.push(a)})});return b._stash(this)},filter:function(a){var b=arguments,c=this,d=0;if("string"==typeof a){c=k._filterResult(this,b[0]);if(1==b.length)return c._stash(this);d=1}return this._wrap(f.filter(c,
79
+ b[d],b[d+1]),this)},addContent:function(a,b){for(var a=this._normalize(a,this[0]),c=0,d;d=this[c];c++)this._place(a,d,b,0<c);return this}});return e})},"dojo/query":function(){define("./_base/kernel,./has,./dom,./on,./_base/array,./_base/lang,./selector/_loader,./selector/_loader!default".split(","),function(b,k,f,n,m,o,p,j){function i(a,b){var c=function(c,d){if("string"==typeof d&&(d=f.byId(d),!d))return new b([]);var e="string"==typeof c?a(c,d):c?c.orphan?c:[c]:[];return e.orphan?e:new b(e)};c.matches=
80
+ a.match||function(a,b,d){return 0<c.filter([a],b,d).length};c.filter=a.filter||function(a,b,d){return c(b,d).filter(function(b){return-1<m.indexOf(a,b)})};if("function"!=typeof a)var d=a.search,a=function(a,b){return d(b||document,a)};return c}k.add("array-extensible",function(){return 1==o.delegate([],{length:1}).length&&!k("bug-for-in-skips-shadowed")});var a=Array.prototype,d=a.slice,c=a.concat,e=m.forEach,g=function(a,c,e){c=[0].concat(d.call(c,0));e=e||b.global;return function(b){c[0]=b;return a.apply(e,
81
+ c)}},l=function(a){var b=this instanceof h&&k("array-extensible");"number"==typeof a&&(a=Array(a));var c=a&&"length"in a?a:arguments;if(b||!c.sort){for(var d=b?this:[],e=d.length=c.length,l=0;l<e;l++)d[l]=c[l];if(b)return d;c=d}o._mixin(c,r);c._NodeListCtor=function(a){return h(a)};return c},h=l,r=h.prototype=k("array-extensible")?[]:{};h._wrap=r._wrap=function(a,b,c){a=new (c||this._NodeListCtor||h)(a);return b?a._stash(b):a};h._adaptAsMap=function(a,b){return function(){return this.map(g(a,arguments,
82
+ b))}};h._adaptAsForEach=function(a,b){return function(){this.forEach(g(a,arguments,b));return this}};h._adaptAsFilter=function(a,b){return function(){return this.filter(g(a,arguments,b))}};h._adaptWithCondition=function(a,c,d){return function(){var e=arguments,h=g(a,e,d);if(c.call(d||b.global,e))return this.map(h);this.forEach(h);return this}};e(["slice","splice"],function(b){var c=a[b];r[b]=function(){return this._wrap(c.apply(this,arguments),"slice"==b?this:null)}});e(["indexOf","lastIndexOf","every",
83
+ "some"],function(a){var c=m[a];r[a]=function(){return c.apply(b,[this].concat(d.call(arguments,0)))}});o.extend(l,{constructor:h,_NodeListCtor:h,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,b){var c=this.map(function(c){return n(c,a,b)});c.remove=function(){for(var a=0;a<c.length;a++)c[a].remove()};return c},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(a){var b=d.call(this,0),e=m.map(arguments,
84
+ function(a){return d.call(a,0)});return this._wrap(c.apply(b,e),this)},map:function(a,b){return this._wrap(m.map(this,a,b),this)},forEach:function(a,b){e(this,a,b);return this},filter:function(a){var b=arguments,c=this,d=0;if("string"==typeof a){c=q._filterResult(this,b[0]);if(1==b.length)return c._stash(this);d=1}return this._wrap(m.filter(c,b[d],b[d+1]),this)},instantiate:function(a,b){var c=o.isFunction(a)?a:o.getObject(a),b=b||{};return this.forEach(function(a){new c(b,a)})},at:function(){var a=
85
+ new this._NodeListCtor(0);e(arguments,function(b){0>b&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});var q=i(j,l);b.query=i(j,function(a){return l(a)});q.load=function(a,b,c){p.load(a,b,function(a){c(i(a,l))})};b._filterQueryResult=q._filterResult=function(a,b,c){return new l(q.filter(a,b,c))};b.NodeList=q.NodeList=l;return q})},"dojo/has":function(){define(["require","module"],function(b){var k=b.has||function(){};k.add("dom-addeventlistener",!!document.addEventListener);
86
+ k.add("touch","ontouchstart"in document);k.add("device-width",screen.availWidth||innerWidth);b=document.createElement("form");k.add("dom-attributes-explicit",0==b.attributes.length);k.add("dom-attributes-specified-flag",0<b.attributes.length&&40>b.attributes.length);k.clearElement=function(b){b.innerHTML="";return b};k.normalize=function(b,n){var m=b.match(/[\?:]|[^:\?]*/g),o=0,p=function(b){var i=m[o++];if(":"==i)return 0;if("?"==m[o++]){if(!b&&k(i))return p();p(!0);return p(b)}return i||0};return(b=
87
+ p())&&n(b)};k.load=function(b,k,m){b?k([b],m):m()};return k})},"dojo/_base/loader":function(){define("./kernel,../has,require,module,./json,./lang,./array".split(","),function(b,k,f,n,m,o,p){var j=function(a){return a.replace(/\./g,"/")},i=/\/\/>>built/,a=[],d=[],c=function(b,c,h){a.push(h);p.forEach(b.split(","),function(a){a=N(a,c.module);d.push(a);V(a)});e()},e=function(){var b,c;for(c in P){b=P[c];if(void 0===b.noReqPluginCheck)b.noReqPluginCheck=/loadInit\!/.test(c)||/require\!/.test(c)?1:0;
88
+ if(!b.executed&&!b.noReqPluginCheck&&b.injected==x)return}E(function(){var b=a;a=[];p.forEach(b,function(a){a(1)})})},g=function(a,c,d){var e=/\(|\)/g,h=1;for(e.lastIndex=c;(c=e.exec(a))&&!(h=")"==c[0]?h-1:h+1,0==h););if(0!=h)throw"unmatched paren around character "+e.lastIndex+" in: "+a;return[b.trim(a.substring(d,e.lastIndex))+";\n",e.lastIndex]},l=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,h=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,r=
89
+ /(^|\s)(require|define)\s*\(/m,q=function(a,b){var c,d,e,i=[],j=[];c=[];for(b=b||a.replace(l,function(a){h.lastIndex=r.lastIndex=0;return h.test(a)||r.test(a)?"":a});c=h.exec(b);)d=h.lastIndex,e=d-c[0].length,d=g(b,d,e),"loadInit"==c[2]?i.push(d[0]):j.push(d[0]),h.lastIndex=d[1];c=i.concat(j);return c.length||!r.test(b)?[a.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),c.join(""),c]:0},t=f.initSyncLoader(c,e,function(a,c){var d,e,h=[],l=[];if(i.test(c)||!(d=q(c)))return 0;e=a.mid+"-*loadInit";
90
+ for(var g in N("dojo",a).result.scopeMap)h.push(g),l.push('"'+g+'"');return"// xdomain rewrite of "+a.mid+"\ndefine('"+e+"',{\n\tnames:"+b.toJson(h)+",\n\tdef:function("+h.join(",")+"){"+d[1]+"}});\n\ndefine("+b.toJson(h.concat(["dojo/loadInit!"+e]))+", function("+h.join(",")+"){\n"+d[0]+"});"}),s=t.sync,x=t.requested,v=t.arrived,u=t.nonmodule,w=t.executing,H=t.executed,F=t.syncExecStack,P=t.modules,I=t.execQ,N=t.getModule,V=t.injectModule,z=t.setArrived,B=t.signal,K=t.finishExec,D=t.execModule,G=
91
+ t.getLegacyMode,E=t.guardCheckComplete,c=t.dojoRequirePlugin;b.provide=function(a){var b=F[0],c=o.mixin(N(j(a),f.module),{executed:w,result:o.getObject(a,!0)});z(c);if(b)(b.provides||(b.provides=[])).push(function(){c.result=o.getObject(a);delete c.provides;c.executed!==H&&K(c)});return c.result};k.add("config-publishRequireResult",1,0,0);b.require=function(a,b){var c=function(a,b){var c=N(j(a),f.module);if(F.length&&F[0].finish)F[0].finish.push(a);else{if(c.executed)return c.result;b&&(c.result=
92
+ u);var d=G();V(c);d=G();c.executed!==H&&c.injected===v&&t.guardCheckComplete(function(){D(c)});if(c.executed)return c.result;d==s?c.cjs?I.unshift(c):F.length&&(F[0].finish=[a]):I.push(c)}}(a,b);k("config-publishRequireResult")&&!o.exists(a)&&void 0!==c&&o.setObject(a,c);return c};b.loadInit=function(a){a()};b.registerModulePath=function(a,b){var c={};c[a.replace(/\./g,"/")]=b;f({paths:c})};b.platformRequire=function(a){for(var a=(a.common||[]).concat(a[b._name]||a["default"]||[]),c;a.length;)o.isArray(c=
93
+ 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,b,c){f(["../i18n"],function(d){d.getLocalization(a,b,c)})};return{extractLegacyApiApplications:q,require:c,loadInit:function(a,d,e){d([a],function(a){d(a.names,function(){for(var h="",l=[],g=0;g<arguments.length;g++)h+="var "+a.names[g]+"= arguments["+g+"]; ",l.push(arguments[g]);eval(h);var i=d.module,o=[],f,h={provide:function(a){a=j(a);a=N(a,i);a!==i&&z(a)},
94
+ require:function(a,b){a=j(a);b&&(N(a,i).result=u);o.push(a)},requireLocalization:function(a,c,d){f||(f=["dojo/i18n"]);d=(d||b.locale).toLowerCase();a=j(a)+"/nls/"+(/root/i.test(d)?"":d+"/")+j(c);N(a,i).isXd&&f.push("dojo/i18n!"+a)},loadInit:function(a){a()}},g={},m;try{for(m in h)g[m]=b[m],b[m]=h[m];a.def.apply(null,l)}catch(p){B("error",[{src:n.id,id:"failedDojoLoadInit"},p])}finally{for(m in h)b[m]=g[m]}f&&(o=o.concat(f));o.length?c(o.join(","),d,e):e()})})}}})},"dojo/json":function(){define(["./has"],
95
+ function(b){var k="undefined"!=typeof JSON;b.add("json-parse",k);b.add("json-stringify",k&&'{"a":1}'==JSON.stringify({a:0},function(b,f){return f||1}));if(b("json-stringify"))return JSON;var f=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,f){if(f&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(b))throw new SyntaxError("Invalid characters in JSON");
96
+ return eval("("+b+")")},stringify:function(b,m,o){function p(b,a,d){m&&(b=m(d,b));var c;c=typeof b;if("number"==c)return isFinite(b)?b+"":"null";if("boolean"==c)return b+"";if(null===b)return"null";if("string"==typeof b)return f(b);if("function"==c||"undefined"==c)return j;if("function"==typeof b.toJSON)return p(b.toJSON(d),a,d);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"+
97
+ a:a});if(b.valueOf()!==b)return p(b.valueOf(),a,d);var e=o?a+o:"",g=o?" ":"",l=o?"\n":"";if(b instanceof Array){for(var g=b.length,h=[],d=0;d<g;d++)c=p(b[d],e,d),"string"!=typeof c&&(c="null"),h.push(l+e+c);return"["+h.join(",")+l+a+"]"}h=[];for(d in b){var r;if(b.hasOwnProperty(d)){if("number"==typeof d)r='"'+d+'"';else if("string"==typeof d)r=f(d);else continue;c=p(b[d],e,d);"string"==typeof c&&h.push(l+e+r+":"+g+c)}}return"{"+h.join(",")+l+a+"}"}var j;"string"==typeof m&&(o=m,m=null);return p(b,
98
+ "","")}}})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(b,k,f){function n(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function m(a,b,c){var d,e,h,l,g,i,j,o=this._inherited=this._inherited||{};"string"==typeof a&&(d=a,a=b,b=c);c=0;l=a.callee;(d=d||l.nom)||n("can't deduce a name to call inherited()",this.declaredClass);g=this.constructor._meta;h=g.bases;j=o.p;if(d!=w){if(o.c!==l&&(j=0,i=h[0],g=i._meta,g.hidden[d]!==l)){(e=g.chains)&&"string"==typeof e[d]&&n("calling chained method with inherited: "+
99
+ d,this.declaredClass);do if(g=i._meta,e=i.prototype,g&&(e[d]===l&&e.hasOwnProperty(d)||g.hidden[d]===l))break;while(i=h[++j]);j=i?j:-1}if(i=h[++j])if(e=i.prototype,i._meta&&e.hasOwnProperty(d))c=e[d];else{l=s[d];do if(e=i.prototype,(c=e[d])&&(i._meta?e.hasOwnProperty(d):c!==l))break;while(i=h[++j])}c=i&&c||s[d]}else{if(o.c!==l&&(j=0,(g=h[0]._meta)&&g.ctor!==l)){e=g.chains;for((!e||"manual"!==e.constructor)&&n("calling chained constructor with inherited",this.declaredClass);(i=h[++j])&&!((g=i._meta)&&
100
+ g.ctor===l););j=i?j:-1}for(;(i=h[++j])&&!(c=(g=i._meta)?g.ctor:i););c=i&&c}o.c=c;o.p=j;if(c)return!0===b?c:c.apply(this,b||a)}function o(a,b){return"string"==typeof a?this.__inherited(a,b,!0):this.__inherited(a,!0)}function p(a,b,c){var d=this.getInherited(a,b);if(d)return d.apply(this,c||b||a)}function j(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 i(a,b){for(var c in b)c!=w&&b.hasOwnProperty(c)&&(a[c]=b[c]);if(k("bug-for-in-skips-shadowed"))for(var d=
101
+ f._extraNames,e=d.length;e;)c=d[--e],c!=w&&b.hasOwnProperty(c)&&(a[c]=b[c])}function a(a){q.safeMixin(this.prototype,a);return this}function d(a){return q([this].concat(a))}function c(a,b){return function(){var y;var c=arguments,d=c,e=c[0],h,l;l=a.length;var g;if(!(this instanceof c.callee))return r(c);if(b&&(e&&e.preamble||this.preamble)){g=Array(a.length);g[0]=c;for(h=0;;){if(e=c[0])(e=e.preamble)&&(c=e.apply(this,c)||c);e=a[h].prototype;(e=e.hasOwnProperty("preamble")&&e.preamble)&&(c=e.apply(this,
102
+ c)||c);if(++h==l)break;g[h]=c}}for(h=l-1;0<=h;--h)e=a[h],(y=(l=e._meta)?l.ctor:e,e=y)&&e.apply(this,g?g[h]:c);(e=this.postscript)&&e.apply(this,d)}}function e(a,b){return function(){var c=arguments,d=c,e=c[0];if(!(this instanceof c.callee))return r(c);if(b){if(e)(e=e.preamble)&&(d=e.apply(this,d)||d);(e=this.preamble)&&e.apply(this,d)}a&&a.apply(this,c);(e=this.postscript)&&e.apply(this,c)}}function g(a){return function(){var y;var b=arguments,c=0,d,e;if(!(this instanceof b.callee))return r(b);for(;d=
103
+ a[c];++c)if(y=(e=d._meta)?e.ctor:d,d=y){d.apply(this,b);break}(d=this.postscript)&&d.apply(this,b)}}function l(a,b,c){return function(){var d,e,h=0,l=1;c&&(h=b.length-1,l=-1);for(;d=b[h];h+=l)e=d._meta,(d=(e?e.hidden:d.prototype)[a])&&d.apply(this,arguments)}}function h(a){v.prototype=a.prototype;a=new v;v.prototype=null;return a}function r(a){var b=a.callee,c=h(b);b.apply(c,a);return c}function q(b,p,r){"string"!=typeof b&&(r=p,p=b,b="");var r=r||{},k,v,z,B,K,D,G,E=1,da=p;if("[object Array]"==x.call(p)){E=
104
+ b;z=[];B=[{cls:0,refs:[]}];D={};for(var Q=1,W=p.length,L=0,C,S,A,y;L<W;++L){(C=p[L])?"[object Function]"!=x.call(C)&&n("mixin #"+L+" is not a callable constructor.",E):n("mixin #"+L+" is unknown. Did you use dojo.require to pull it in?",E);S=C._meta?C._meta.bases:[C];A=0;for(C=S.length-1;0<=C;--C){y=S[C].prototype;if(!y.hasOwnProperty("declaredClass"))y.declaredClass="uniqName_"+u++;y=y.declaredClass;D.hasOwnProperty(y)||(D[y]={count:0,refs:[],cls:S[C]},++Q);y=D[y];A&&A!==y&&(y.refs.push(A),++A.count);
105
+ A=y}++A.count;B[0].refs.push(A)}for(;B.length;){A=B.pop();z.push(A.cls);for(--Q;v=A.refs,1==v.length;){A=v[0];if(!A||--A.count){A=0;break}z.push(A.cls);--Q}if(A)for(L=0,W=v.length;L<W;++L)A=v[L],--A.count||B.push(A)}Q&&n("can't build consistent linearization",E);C=p[0];z[0]=C?C._meta&&C===z[z.length-C._meta.bases.length]?C._meta.bases.length:1:0;D=z;z=D[0];E=D.length-z;p=D[E]}else D=[0],p?"[object Function]"==x.call(p)?(z=p._meta,D=D.concat(z?z.bases:p)):n("base class is not a callable constructor.",
106
+ b):null!==p&&n("unknown base class. Did you use dojo.require to pull it in?",b);if(p)for(v=E-1;;--v){k=h(p);if(!v)break;z=D[v];(z._meta?i:t)(k,z.prototype);B=new Function;B.superclass=p;B.prototype=k;p=k.constructor=B}else k={};q.safeMixin(k,r);z=r.constructor;if(z!==s.constructor)z.nom=w,k.constructor=z;for(v=E-1;v;--v)(z=D[v]._meta)&&z.chains&&(G=t(G||{},z.chains));k["-chains-"]&&(G=t(G||{},k["-chains-"]));z=!G||!G.hasOwnProperty(w);D[0]=B=G&&"manual"===G.constructor?g(D):1==D.length?e(r.constructor,
107
+ z):c(D,z);B._meta={bases:D,hidden:r,chains:G,parents:da,ctor:r.constructor};B.superclass=p&&p.prototype;B.extend=a;B.createSubclass=d;B.prototype=k;k.constructor=B;k.getInherited=o;k.isInstanceOf=j;k.inherited=H;k.__inherited=m;if(b)k.declaredClass=b,f.setObject(b,B);if(G)for(K in G)if(k[K]&&"string"==typeof G[K]&&K!=w)z=k[K]=l(K,D,"after"===G[K]),z.nom=K;return B}var t=f.mixin,s=Object.prototype,x=s.toString,v=new Function,u=0,w="constructor",H=b.config.isDebug?p:m;b.safeMixin=q.safeMixin=function(a,
108
+ b){var c,d;for(c in b)if(d=b[c],(d!==s[c]||!(c in s))&&c!=w){if("[object Function]"==x.call(d))d.nom=c;a[c]=d}if(k("bug-for-in-skips-shadowed"))for(var e=f._extraNames,h=e.length;h;)if(c=e[--h],d=b[c],(d!==s[c]||!(c in s))&&c!=w){if("[object Function]"==x.call(d))d.nom=c;a[c]=d}return a};return b.declare=q})},"dojo/dom":function(){define(["./sniff","./_base/window"],function(b,k){if(7>=b("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(f){}var n={};n.byId=b("ie")?function(b,f){if("string"!=
109
+ typeof b)return b;var j=f||k.doc,i=b&&j.getElementById(b);if(i&&(i.attributes.id.value==b||i.id==b))return i;j=j.all[b];if(!j||j.nodeName)j=[j];for(var a=0;i=j[a++];)if(i.attributes&&i.attributes.id&&i.attributes.id.value==b||i.id==b)return i}:function(b,f){return("string"==typeof b?(f||k.doc).getElementById(b):b)||null};n.isDescendant=function(b,f){try{b=n.byId(b);for(f=n.byId(f);b;){if(b==f)return!0;b=b.parentNode}}catch(j){}return!1};b.add("css-user-select",function(b,f,j){if(!j)return!1;var b=
110
+ j.style,f=["Khtml","O","ms","Moz","Webkit"],j=f.length,i="userSelect";do if("undefined"!==typeof b[i])return i;while(j--&&(i=f[j]+"UserSelect"));return!1});var m=b("css-user-select");n.setSelectable=m?function(b,f){n.byId(b).style[m]=f?"":"none"}:function(b,f){var b=n.byId(b),j=b.getElementsByTagName("*"),i=j.length;if(f)for(b.removeAttribute("unselectable");i--;)j[i].removeAttribute("unselectable");else for(b.setAttribute("unselectable","on");i--;)j[i].setAttribute("unselectable","on")};return n})},
111
+ "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,k,f,n,m){var o=n.trim,p=f.forEach,j="BackCompat"==m.doc.compatMode,i=!1,a=function(){return!0},d=function(a){for(var a=0<=">~+".indexOf(a.slice(-1))?
112
+ a+" * ":a+" ",b=function(b,c){return o(a.slice(b,c))},c=[],d=-1,e=-1,h=-1,l=-1,g=-1,j=-1,f=-1,m,p="",k="",r,n=0,w=a.length,q=null,u=null,t=function(){if(0<=j)q.id=b(j,n).replace(/\\/g,""),j=-1;if(0<=f){var a=f==n?null:b(f,n);q[0>">~+".indexOf(a)?"tag":"oper"]=a;f=-1}0<=g&&(q.classes.push(b(g+1,n).replace(/\\/g,"")),g=-1)};p=k,k=a.charAt(n),n<w;n++)if("\\"!=p)if(q||(r=n,q={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},f=n),m)k==
113
+ m&&(m=null);else if("'"==k||'"'==k)m=k;else if(0<=d)if("]"==k){u.attr?u.matchFor=b(h||d+1,n):u.attr=b(d+1,n);if((d=u.matchFor)&&('"'==d.charAt(0)||"'"==d.charAt(0)))u.matchFor=d.slice(1,-1);if(u.matchFor)u.matchFor=u.matchFor.replace(/\\/g,"");q.attrs.push(u);u=null;d=h=-1}else{if("="==k)h=0<="|~^$*".indexOf(p)?p:"",u.type=h+k,u.attr=b(d+1,n-h.length),h=n+1}else if(0<=e){if(")"==k){if(0<=l)u.value=b(e+1,n);l=e=-1}}else if("#"==k)t(),j=n+1;else if("."==k)t(),g=n;else if(":"==k)t(),l=n;else if("["==
114
+ k)t(),d=n,u={};else if("("==k)0<=l&&(u={name:b(l+1,n),value:null},q.pseudos.push(u)),e=n;else if(" "==k&&p!=k){t();0<=l&&q.pseudos.push({name:b(l+1,n)});q.loops=q.pseudos.length||q.attrs.length||q.classes.length;q.oquery=q.query=b(r,n);q.otag=q.tag=q.oper?null:q.tag||"*";if(q.tag)q.tag=q.tag.toUpperCase();if(c.length&&c[c.length-1].oper)q.infixOper=c.pop(),q.query=q.infixOper.query+" "+q.query;c.push(q);q=null}return c},c=function(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&
115
+ b.apply(window,arguments)}},e=function(a,b){var c=b||[];a&&c.push(a);return c},g=function(a){return 1==a.nodeType},l=function(a,b){return!a?"":"class"==b?a.className||"":"for"==b?a.htmlFor||"":"style"==b?a.style.cssText||"":(i?a.getAttribute(b):a.getAttribute(b,2))||""},h={"*=":function(a,b){return function(c){return 0<=l(c,a).indexOf(b)}},"^=":function(a,b){return function(c){return 0==l(c,a).indexOf(b)}},"$=":function(a,b){return function(c){var c=" "+l(c,a),d=c.lastIndexOf(b);return-1<d&&d==c.length-
116
+ b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return 0<=(" "+l(b,a)+" ").indexOf(c)}},"|=":function(a,b){var c=b+"-";return function(d){d=l(d,a);return d==b||0==d.indexOf(c)}},"=":function(a,b){return function(c){return l(c,a)==b}}},r="undefined"==typeof m.doc.firstChild.nextElementSibling,q=!r?"nextElementSibling":"nextSibling",t=!r?"previousElementSibling":"previousSibling",s=r?g:a,x=function(a){for(;a=a[t];)if(s(a))return!1;return!0},v=function(a){for(;a=a[q];)if(s(a))return!1;
117
+ return!0},u=function(a){var b=a.parentNode,b=7!=b.nodeType?b:b.nextSibling,c=0,d=b.children||b.childNodes,e=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<=e&&0<=h)return e;k("ie")&&"undefined"!==typeof b.setAttribute?b.setAttribute("_l",d):b._l=d;e=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[q])if(s(b))k("ie")?b.setAttribute("_i",++c):b._i=++c,a===b&&(e=c);return e},w=function(a){return!(u(a)%2)},H=function(a){return u(a)%
118
+ 2},F={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},disabled:function(){return function(a){return a.disabled}},enabled:function(){return function(a){return!a.disabled}},"first-child":function(){return x},"last-child":function(){return v},"only-child":function(){return function(a){return x(a)&&v(a)}},empty:function(){return function(a){for(var b=a.childNodes,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,
119
+ 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=d(b)[0],e={el:1};if("*"!=c.tag)e.tag=1;if(!c.classes.length)e.classes=1;var h=I(c,e);return function(a){return!h(a)}},"nth-child":function(a,b){var c=parseInt;if("odd"==b)return H;if("even"==b)return w;if(-1!=b.indexOf("n")){var d=b.split("n",2),e=d[0]?"-"==d[0]?-1:c(d[0]):1,h=d[1]?c(d[1]):0,l=0,g=-1;0<e?0>h?h=h%e&&e+h%e:0<h&&(h>=e&&(l=h-h%e),h%=e):0>e&&(e*=-1,0<h&&
120
+ (g=h,h%=e));if(0<e)return function(a){a=u(a);return a>=l&&(0>g||a<=g)&&a%e==h};b=h}var i=c(b);return function(a){return u(a)==i}}},P=9>k("ie")||9==k("ie")&&k("quirks")?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},I=function(b,d){if(!b)return a;var d=d||{},e=null;"el"in d||(e=c(e,g));"tag"in d||"*"!=b.tag&&(e=c(e,function(a){return a&&(i?a.tagName:
121
+ a.tagName.toUpperCase())==b.getTag()}));"classes"in d||p(b.classes,function(a,b){var d=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");e=c(e,function(a){return d.test(a.className)});e.count=b});"pseudos"in d||p(b.pseudos,function(a){var b=a.name;F[b]&&(e=c(e,F[b](b,a.value)))});"attrs"in d||p(b.attrs,function(a){var b,d=a.attr;a.type&&h[a.type]?b=h[a.type](d,a.matchFor):d.length&&(b=P(d));b&&(e=c(e,b))});"id"in d||b.id&&(e=c(e,function(a){return!!a&&a.id==b.id}));e||"default"in d||(e=a);return e},N=function(a){return function(b,
122
+ c,d){for(;b=b[q];)if(!r||g(b)){(!d||J(b,d))&&a(b)&&c.push(b);break}return c}},V=function(a){return function(b,c,d){for(b=b[q];b;){if(s(b)){if(d&&!J(b,d))break;a(b)&&c.push(b)}b=b[q]}return c}},z=function(b){b=b||a;return function(a,c,d){for(var e=0,h=a.children||a.childNodes;a=h[e++];)s(a)&&(!d||J(a,d))&&b(a,e)&&c.push(a);return c}},B={},K=function(c){var d=B[c.query];if(d)return d;var h=c.infixOper,h=h?h.oper:"",l=I(c,{el:1}),g="*"==c.tag,i=m.doc.getElementsByClassName;if(h){i={el:1};if(g)i.tag=
123
+ 1;l=I(c,i);"+"==h?d=N(l):"~"==h?d=V(l):">"==h&&(d=z(l))}else if(c.id)l=!c.loops&&g?a:I(c,{el:1,id:1}),d=function(a,d){var h=b.byId(c.id,a.ownerDocument||a);if(h&&l(h)){if(9==a.nodeType)return e(h,d);for(var g=h.parentNode;g&&!(g==a);)g=g.parentNode;if(g)return e(h,d)}};else if(i&&/\{\s*\[native code\]\s*\}/.test(""+i)&&c.classes.length&&!j)var l=I(c,{el:1,classes:1,id:1}),f=c.classes.join(" "),d=function(a,b,c){for(var b=e(0,b),d,h=0,g=a.getElementsByClassName(f);d=g[h++];)l(d,a)&&J(d,c)&&b.push(d);
124
+ return b};else!g&&!c.loops?d=function(a,b,d){for(var b=e(0,b),h=0,l=c.getTag(),l=l?a.getElementsByTagName(l):[];a=l[h++];)J(a,d)&&b.push(a);return b}:(l=I(c,{el:1,tag:1,id:1}),d=function(a,b,d){for(var b=e(0,b),h,g=0,i=(h=c.getTag())?a.getElementsByTagName(h):[];h=i[g++];)l(h,a)&&J(h,d)&&b.push(h);return b});return B[c.query]=d},D={},G={},E=function(a){var b=d(o(a));if(1==b.length){var c=K(b[0]);return function(a){if(a=c(a,[]))a.nozip=!0;return a}}return function(a){for(var a=e(a),c,d,h=b.length,
125
+ l,g,i=0;i<h;i++){g=[];c=b[i];d=a.length-1;if(0<d)l={},g.nozip=!0;d=K(c);for(var j=0;c=a[j];j++)d(c,g,l);if(!g.length)break;a=g}return g}},da=k("ie")?"commentStrip":"nozip",Q=!!m.doc.querySelectorAll,W=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,L=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},C=/([^[]*)([^\]]*])?/g,S=function(a,b,c){return b.replace(W,L)+(c||"")},A=function(a,b){a=a.replace(C,S);if(Q){var c=G[a];if(c&&!b)return c}if(c=D[a])return c;var c=a.charAt(0),d=-1==a.indexOf(" ");
126
+ 0<=a.indexOf("#")&&d&&(b=!0);if(Q&&!b&&-1==">~+".indexOf(c)&&(!k("ie")||-1==a.indexOf(":"))&&!(j&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf(":checked")&&-1==a.indexOf("|=")){var e=0<=">~+".indexOf(a.charAt(a.length-1))?a+" *":a;return G[a]=function(b){try{if(!(9==b.nodeType||d))throw"";var c=b.querySelectorAll(e);c[da]=!0;return c}catch(h){return A(a,!0)(b)}}}var h=a.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return D[a]=2>h.length?E(a):function(a){for(var b=0,
127
+ c=[],d;d=h[b++];)c=c.concat(E(d)(a));return c}},y=0,ea=k("ie")?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++y)||y:a.uniqueID}:function(a){return a._uid||(a._uid=++y)},J=function(a,b){if(!b)return 1;var c=ea(a);return!b[c]?b[c]=1:0},Z=function(a){if(a&&a.nozip)return a;var b=[];if(!a||!a.length)return b;a[0]&&b.push(a[0]);if(2>a.length)return b;y++;var c,d;if(k("ie")&&i){var e=y+"";a[0].setAttribute("_zipIdx",e);for(c=1;d=a[c];c++)a[c].getAttribute("_zipIdx")!=e&&b.push(d),
128
+ d.setAttribute("_zipIdx",e)}else if(k("ie")&&a.commentStrip)try{for(c=1;d=a[c];c++)g(d)&&b.push(d)}catch(h){}else{a[0]&&(a[0]._zipIdx=y);for(c=1;d=a[c];c++)a[c]._zipIdx!=y&&b.push(d),d._zipIdx=y}return b},T=function(a,b){b=b||m.doc;i="div"===(b.ownerDocument||b).createElement("div").tagName;var c=A(a)(b);return c&&c.nozip?c:Z(c)};T.filter=function(a,c,e){for(var h=[],l=d(c),l=1==l.length&&!/[^\w#\.]/.test(c)?I(l[0]):function(a){return-1!=f.indexOf(T(c,b.byId(e)),a)},g=0,i;i=a[g];g++)l(i)&&h.push(i);
129
+ return h};return T})},"dojo/errors/RequestTimeoutError":function(){define("dojo/errors/RequestTimeoutError",["./create","./RequestError"],function(b,k){return b("RequestTimeoutError",null,k,{dojoType:"timeout"})})},"dojo/dom-style":function(){define("dojo/dom-style",["./sniff","./dom"],function(b,k){function f(c,e,h){e=e.toLowerCase();if(b("ie")){if("auto"==h){if("height"==e)return c.offsetHeight;if("width"==e)return c.offsetWidth}if("fontweight"==e)switch(h){case 700:return"bold";default:return"normal"}}e in
130
+ a||(a[e]=d.test(e));return a[e]?o(c,h):h}var n,m={};n=b("webkit")?function(a){var b;if(1==a.nodeType){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);if(!b&&a.style)a.style.display="",b=c.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):{}};m.getComputedStyle=n;var o;o=b("ie")?function(a,b){if(!b)return 0;if("medium"==
131
+ b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var c=a.style,d=a.runtimeStyle,e=c.left,i=d.left;d.left=a.currentStyle.left;try{c.left=b,b=c.pixelLeft}catch(j){b=0}c.left=e;d.left=i;return b}:function(a,b){return parseFloat(b)||0};m.toPixelValue=o;var p=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?{}:null}},j=9>b("ie")||10>b("ie")&&b("quirks")?function(a){try{return p(a).Opacity/100}catch(b){return 1}}:function(a){return n(a).opacity},
132
+ i=9>b("ie")||10>b("ie")&&b("quirks")?function(a,b){var c=100*b,d=1==b;a.style.zoom=d?"":1;if(p(a))p(a,1).Opacity=c;else{if(d)return b;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+c+")"}p(a,1).Enabled=!d;if("tr"==a.tagName.toLowerCase())for(c=a.firstChild;c;c=c.nextSibling)"td"==c.tagName.toLowerCase()&&i(c,b);return b}:function(a,b){return a.style.opacity=b},a={left:!0,top:!0},d=/margin|padding|width|height|max|min|offset/,c=b("ie")?"styleFloat":"cssFloat",e={cssFloat:c,styleFloat:c,
133
+ "float":c};m.get=function(a,b){var c=k.byId(a),d=arguments.length;if(2==d&&"opacity"==b)return j(c);var b=e[b]||b,i=m.getComputedStyle(c);return 1==d?i:f(c,b,i[b]||c.style[b])};m.set=function(a,b,c){var d=k.byId(a),j=arguments.length,f="opacity"==b,b=e[b]||b;if(3==j)return f?i(d,c):d.style[b]=c;for(var o in b)m.set(a,o,b[o]);return m.getComputedStyle(d)};return m})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(b,k,f,n){function m(a,b,c,e,g,l){l=
134
+ l||"px";a=a.style;if(!isNaN(b))a.left=b+l;if(!isNaN(c))a.top=c+l;if(0<=e)a.width=e+l;if(0<=g)a.height=g+l}function o(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function p(a){return"border-box"==j.boxModel||"table"==a.tagName.toLowerCase()||o(a)}var j={boxModel:"content-box"};if(b("ie"))j.boxModel="BackCompat"==document.compatMode?"border-box":"content-box";j.getPadExtents=function(a,b){var a=f.byId(a),c=b||n.getComputedStyle(a),
135
+ e=n.toPixelValue,g=e(a,c.paddingLeft),l=e(a,c.paddingTop),h=e(a,c.paddingRight),c=e(a,c.paddingBottom);return{l:g,t:l,r:h,b:c,w:g+h,h:l+c}};j.getBorderExtents=function(a,b){var a=f.byId(a),c=n.toPixelValue,e=b||n.getComputedStyle(a),g="none"!=e.borderLeftStyle?c(a,e.borderLeftWidth):0,l="none"!=e.borderTopStyle?c(a,e.borderTopWidth):0,h="none"!=e.borderRightStyle?c(a,e.borderRightWidth):0,c="none"!=e.borderBottomStyle?c(a,e.borderBottomWidth):0;return{l:g,t:l,r:h,b:c,w:g+h,h:l+c}};j.getPadBorderExtents=
136
+ function(a,b){var a=f.byId(a),c=b||n.getComputedStyle(a),e=j.getPadExtents(a,c),c=j.getBorderExtents(a,c);return{l:e.l+c.l,t:e.t+c.t,r:e.r+c.r,b:e.b+c.b,w:e.w+c.w,h:e.h+c.h}};j.getMarginExtents=function(a,b){var a=f.byId(a),c=b||n.getComputedStyle(a),e=n.toPixelValue,g=e(a,c.marginLeft),l=e(a,c.marginTop),h=e(a,c.marginRight),c=e(a,c.marginBottom);return{l:g,t:l,r:h,b:c,w:g+h,h:l+c}};j.getMarginBox=function(a,d){var a=f.byId(a),c=d||n.getComputedStyle(a),e=j.getMarginExtents(a,c),g=a.offsetLeft-e.l,
137
+ l=a.offsetTop-e.t,h=a.parentNode,i=n.toPixelValue;if(b("mozilla")){var o=parseFloat(c.left),c=parseFloat(c.top);!isNaN(o)&&!isNaN(c)?(g=o,l=c):h&&h.style&&(h=n.getComputedStyle(h),"visible"!=h.overflow&&(g+="none"!=h.borderLeftStyle?i(a,h.borderLeftWidth):0,l+="none"!=h.borderTopStyle?i(a,h.borderTopWidth):0))}else if((b("opera")||8==b("ie")&&!b("quirks"))&&h)h=n.getComputedStyle(h),g-="none"!=h.borderLeftStyle?i(a,h.borderLeftWidth):0,l-="none"!=h.borderTopStyle?i(a,h.borderTopWidth):0;return{l:g,
138
+ t:l,w:a.offsetWidth+e.w,h:a.offsetHeight+e.h}};j.getContentBox=function(a,d){var a=f.byId(a),c=d||n.getComputedStyle(a),e=a.clientWidth,g=j.getPadExtents(a,c),l=j.getBorderExtents(a,c);e?(c=a.clientHeight,l.w=l.h=0):(e=a.offsetWidth,c=a.offsetHeight);b("opera")&&(g.l+=l.l,g.t+=l.t);return{l:g.l,t:g.t,w:e-g.w-l.w,h:c-g.h-l.h}};j.setContentSize=function(a,b,c){var a=f.byId(a),e=b.w,b=b.h;p(a)&&(c=j.getPadBorderExtents(a,c),0<=e&&(e+=c.w),0<=b&&(b+=c.h));m(a,NaN,NaN,e,b)};var i={l:0,t:0,w:0,h:0};j.setMarginBox=
139
+ function(a,d,c){var a=f.byId(a),e=c||n.getComputedStyle(a),c=d.w,g=d.h,l=p(a)?i:j.getPadBorderExtents(a,e),e=j.getMarginExtents(a,e);if(b("webkit")&&o(a)){var h=a.style;if(0<=c&&!h.width)h.width="4px";if(0<=g&&!h.height)h.height="4px"}0<=c&&(c=Math.max(c-l.w-e.w,0));0<=g&&(g=Math.max(g-l.h-e.h,0));m(a,d.l,d.t,c,g)};j.isBodyLtr=function(a){a=a||k.doc;return"ltr"==(k.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};j.docScroll=function(a){var a=a||k.doc,d=k.doc.parentWindow||k.doc.defaultView;
140
+ return"pageXOffset"in d?{x:d.pageXOffset,y:d.pageYOffset}:(d=b("quirks")?k.body(a):a.documentElement)&&{x:j.fixIeBiDiScrollLeft(d.scrollLeft||0,a),y:d.scrollTop||0}};if(b("ie"))j.getIeDocumentElementOffset=function(a){a=a||k.doc;a=a.documentElement;if(8>b("ie")){var d=a.getBoundingClientRect(),c=d.left,d=d.top;7>b("ie")&&(c+=a.clientLeft,d+=a.clientTop);return{x:0>c?0:c,y:0>d?0:d}}return{x:0,y:0}};j.fixIeBiDiScrollLeft=function(a,d){var d=d||k.doc,c=b("ie");if(c&&!j.isBodyLtr(d)){var e=b("quirks"),
141
+ g=e?k.body(d):d.documentElement,l=k.global;6==c&&!e&&l.frameElement&&g.scrollHeight>g.clientHeight&&(a+=g.clientLeft);return 8>c||e?a+g.clientWidth-g.scrollWidth:-a}return a};j.position=function(a,d){var a=f.byId(a),c=k.body(a.ownerDocument),e=a.getBoundingClientRect(),e={x:e.left,y:e.top,w:e.right-e.left,h:e.bottom-e.top};if(9>b("ie")){var g=j.getIeDocumentElementOffset(a.ownerDocument);e.x-=g.x+(b("quirks")?c.clientLeft+c.offsetLeft:0);e.y-=g.y+(b("quirks")?c.clientTop+c.offsetTop:0)}d&&(c=j.docScroll(a.ownerDocument),
142
+ e.x+=c.x,e.y+=c.y);return e};j.getMarginSize=function(a,b){var a=f.byId(a),c=j.getMarginExtents(a,b||n.getComputedStyle(a)),e=a.getBoundingClientRect();return{w:e.right-e.left+c.w,h:e.bottom-e.top+c.h}};j.normalizeEvent=function(a){if(!("layerX"in a))a.layerX=a.offsetX,a.layerY=a.offsetY;if(!b("dom-addeventlistener")){var d=a.target,d=d&&d.ownerDocument||document,c=b("quirks")?d.body:d.documentElement,e=j.getIeDocumentElementOffset(d);a.pageX=a.clientX+j.fixIeBiDiScrollLeft(c.scrollLeft||0,d)-e.x;
143
+ a.pageY=a.clientY+(c.scrollTop||0)-e.y}};return j})},"dojo/dom-prop":function(){define("exports,./_base/kernel,./sniff,./_base/lang,./dom,./dom-style,./dom-construct,./_base/connect".split(","),function(b,k,f,n,m,o,p,j){var i={},a=0,d=k._scopeName+"attrid";b.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};b.get=function(a,d){var a=m.byId(a),g=d.toLowerCase();return a[b.names[g]||
144
+ d]};b.set=function(c,e,g){c=m.byId(c);if(2==arguments.length&&"string"!=typeof e){for(var l in e)b.set(c,l,e[l]);return c}l=e.toLowerCase();l=b.names[l]||e;if("style"==l&&"string"!=typeof g)return o.set(c,g),c;if("innerHTML"==l)return f("ie")&&c.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(p.empty(c),c.appendChild(p.toDom(g,c.ownerDocument))):c[l]=g,c;if(n.isFunction(g)){var h=c[d];h||(h=a++,c[d]=h);i[h]||(i[h]={});var k=i[h][l];if(k)j.disconnect(k);else try{delete c[l]}catch(q){}g?
145
+ i[h][l]=j.connect(c,l,g):c[l]=null;return c}c[l]=g;return c}})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(b,k){return function(f,n,m,o){var p=f&&"function"===typeof f.then,j=p&&f instanceof k;if(p){if(!j)p=new b(f.cancel),f.then(p.resolve,p.reject,p.progress),f=p.promise}else return n?n(f):(new b).resolve(f);return n||m||o?f.then(n,m,o):f}})},"dojo/dom-attr":function(){define("exports,./sniff,./_base/lang,./dom,./dom-style,./dom-prop".split(","),function(b,k,f,n,m,
146
+ o){function p(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified}var j={innerHTML:1,className:1,htmlFor:k("ie"),value:1},i={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};b.has=function(a,b){var c=b.toLowerCase();return j[o.names[c]||b]||p(n.byId(a),i[c]||b)};b.get=function(a,b){var a=n.byId(a),c=b.toLowerCase(),e=o.names[c]||b,g=a[e];if(j[e]&&"undefined"!=typeof g||"href"!=e&&("boolean"==typeof g||f.isFunction(g)))return g;c=i[c]||b;return p(a,c)?
147
+ a.getAttribute(c):null};b.set=function(a,d,c){a=n.byId(a);if(2==arguments.length){for(var e in d)b.set(a,e,d[e]);return a}e=d.toLowerCase();var g=o.names[e]||d,l=j[g];if("style"==g&&"string"!=typeof c)return m.set(a,c),a;if(l||"boolean"==typeof c||f.isFunction(c))return o.set(a,d,c);a.setAttribute(i[e]||d,c);return a};b.remove=function(a,b){n.byId(a).removeAttribute(i[b.toLowerCase()]||b)};b.getNodeProp=function(a,b){var a=n.byId(a),c=b.toLowerCase(),e=o.names[c]||b;if(e in a&&"href"!=e)return a[e];
148
+ c=i[c]||b;return p(a,c)?a.getAttribute(c):null}})},"dojo/dom-construct":function(){define("exports,./_base/kernel,./sniff,./_base/window,./dom,./dom-attr,./on".split(","),function(b,k,f,n,m,o){function p(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)}var j={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"]},i=/<\s*([\w\:]+)/,
149
+ a={},d=0,c="__"+k._scopeName+"ToDomId",e;for(e in j)if(j.hasOwnProperty(e))k=j[e],k.pre="option"==e?'<select multiple="multiple">':"<"+k.join("><")+">",k.post="</"+k.reverse().join("></")+">";b.toDom=function(b,e){var e=e||n.doc,g=e[c];g||(e[c]=g=++d+"",a[g]=e.createElement("div"));var b=b+"",f=b.match(i),o=f?f[1].toLowerCase():"",g=a[g];if(f&&j[o]){f=j[o];g.innerHTML=f.pre+b+f.post;for(f=f.length;f;--f)g=g.firstChild}else g.innerHTML=b;if(1==g.childNodes.length)return g.removeChild(g.firstChild);
150
+ for(o=e.createDocumentFragment();f=g.firstChild;)o.appendChild(f);return o};b.place=function(a,c,d){c=m.byId(c);"string"==typeof a&&(a=/^\s*</.test(a)?b.toDom(a,c.ownerDocument):m.byId(a));if("number"==typeof d){var e=c.childNodes;!e.length||e.length<=d?c.appendChild(a):p(a,e[0>d?0:d])}else switch(d){case "before":p(a,c);break;case "after":d=a;(e=c.parentNode)&&(e.lastChild==c?e.appendChild(d):e.insertBefore(d,c.nextSibling));break;case "replace":c.parentNode.replaceChild(a,c);break;case "only":b.empty(c);
151
+ c.appendChild(a);break;case "first":if(c.firstChild){p(a,c.firstChild);break}default:c.appendChild(a)}return a};b.create=function(a,c,d,e){var g=n.doc;if(d)d=m.byId(d),g=d.ownerDocument;"string"==typeof a&&(a=g.createElement(a));c&&o.set(a,c);d&&b.place(a,d,e);return a};var g=f("ie")?function(a){try{a.innerHTML=""}catch(b){for(var c;c=a.lastChild;){var d=a;c.firstChild&&g(c);d&&d.removeChild(c)}}}:function(a){a.innerHTML=""};b.empty=function(a){g(m.byId(a))};b.destroy=function(a){if(a=m.byId(a)){var b=
152
+ a,a=a.parentNode;b.firstChild&&g(b);a&&a.removeChild(b)}}})},"dojo/request/xhr":function(){define("dojo/request/xhr",["../errors/RequestError","./watch","./handlers","./util","../has"],function(b,k,f,n,m){function o(a,c){var d=a.xhr;a.status=a.xhr.status;a.text=d.responseText;if("xml"===a.options.handleAs)a.data=d.responseXML;if(!c)try{f(a)}catch(e){c=e}c?this.reject(c):n.checkStatus(d.status)?this.resolve(a):(c=new b("Unable to load "+a.url+" status: "+d.status,a),this.reject(c))}function p(h,g,
153
+ l){var f=n.parseArgs(h,n.deepCreate(e,g),m("native-formdata")&&g&&g.data&&g.data instanceof FormData),h=f.url,g=f.options,s,x=n.deferred(f,d,j,i,o,function(){s&&s()}),v=f.xhr=p._create();if(!v)return x.cancel(new b("XHR was not created")),l?x:x.promise;f.getHeader=function(a){return this.xhr.getResponseHeader(a)};a&&(s=a(v,x,f));var u=g.data,w=!g.sync,H=g.method;try{v.open(H,h,w,g.user||c,g.password||c);if(g.withCredentials)v.withCredentials=g.withCredentials;var F=g.headers,P;if(F)for(var I in F)"content-type"===
154
+ I.toLowerCase()?P=F[I]:F[I]&&v.setRequestHeader(I,F[I]);P&&!1!==P&&v.setRequestHeader("Content-Type",P);(!F||!("X-Requested-With"in F))&&v.setRequestHeader("X-Requested-With","XMLHttpRequest");n.notify&&n.notify.emit("send",f,x.promise.cancel);v.send(u)}catch(N){x.reject(N)}k(x);v=null;return l?x:x.promise}m.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});m.add("dojo-force-activex-xhr",function(){return m("activex")&&!document.addEventListener&&"file:"===window.location.protocol});
155
+ m.add("native-xhr2",function(){if(m("native-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});m.add("native-formdata",function(){return"function"===typeof FormData});var j,i,a,d;m("native-xhr2")?(j=function(){return!this.isFulfilled()},d=function(a,b){b.xhr.abort()},a=function(a,c,d){function e(){c.handleResponse(d)}function g(a){a=new b("Unable to load "+d.url+" status: "+a.target.status,d);c.handleResponse(d,
156
+ a)}function l(a){if(a.lengthComputable)d.loaded=a.loaded,d.total=a.total,c.progress(d)}a.addEventListener("load",e,!1);a.addEventListener("error",g,!1);a.addEventListener("progress",l,!1);return function(){a.removeEventListener("load",e,!1);a.removeEventListener("error",g,!1);a.removeEventListener("progress",l,!1)}}):(j=function(a){return a.xhr.readyState},i=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()});
157
+ var c,e={data:null,query:null,sync:!1,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"}};p._create=function(){throw Error("XMLHTTP not available");};if(m("native-xhr")&&!m("dojo-force-activex-xhr"))p._create=function(){return new XMLHttpRequest};else if(m("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),p._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(g){try{new ActiveXObject("Microsoft.XMLHTTP"),p._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(l){}}n.addCommonMethods(p);
158
+ return p})},"dojo/text":function(){define(["./_base/kernel","require","./has","./_base/xhr"],function(b,k,f,n){var m;m=function(a,d,c){n("GET",{url:a,sync:!!d,load:c,headers:b.config.textPluginHeaders||{}})};var o={},p=function(a){if(a){var a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""),b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}else a="";return a},j={},i={};b.cache=function(a,b,c){var e;"string"==typeof a?/\//.test(a)?(e=a,c=b):e=k.toUrl(a.replace(/\./g,
159
+ "/")+(b?"/"+b:"")):(e=a+"",c=b);a=void 0!=c&&"string"!=typeof c?c.value:c;c=c&&c.sanitize;if("string"==typeof a)return o[e]=a,c?p(a):a;if(null===a)return delete o[e],null;e in o||m(e,!0,function(a){o[e]=a});return c?p(o[e]):o[e]};return{dynamic:!0,normalize:function(a,b){var c=a.split("!"),e=c[0];return(/^\./.test(e)?b(e):e)+(c[1]?"!"+c[1]:"")},load:function(a,b,c){var a=a.split("!"),e=1<a.length,g=a[0],l=b.toUrl(a[0]),a="url:"+l,h=j,f=function(a){c(e?p(a):a)};g in o?h=o[g]:a in b.cache?h=b.cache[a]:
160
+ l in o&&(h=o[l]);if(h===j)if(i[l])i[l].push(f);else{var k=i[l]=[f];m(l,!b.async,function(a){o[g]=o[l]=a;for(var b=0;b<k.length;)k[b++](a);delete i[l]})}else f(h)}}})},"dojo/keys":function(){define("dojo/keys",["./_base/kernel","./sniff"],function(b,k){return b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:k("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,
161
+ 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:k("mac")&&!k("air")?
162
+ k("safari")?91:224:17}})},"dojo/domReady":function(){define(["./has"],function(b){function k(a){p?a(n):j.push(a)}var f=this,n=document,m={loaded:1,complete:1},o="string"!=typeof n.readyState,p=!!m[n.readyState];if(o)n.readyState="loading";if(!p){var j=[],i=[],a=function(a){a=a||f.event;if(!(p||"readystatechange"==a.type&&!m[n.readyState])){p=1;if(o)n.readyState="complete";for(;j.length;)j.shift()(n)}},d=function(b,c){b.addEventListener(c,a,!1);j.push(function(){b.removeEventListener(c,a,!1)})};if(!b("dom-addeventlistener")){var d=
163
+ function(b,c){c="on"+c;b.attachEvent(c,a);j.push(function(){b.detachEvent(c,a)})},c=n.createElement("div");try{c.doScroll&&null===f.frameElement&&i.push(function(){try{return c.doScroll("left"),1}catch(a){}})}catch(e){}}d(n,"DOMContentLoaded");d(f,"load");"onreadystatechange"in n?d(n,"readystatechange"):o||i.push(function(){return m[n.readyState]});if(i.length){var g=function(){if(!p){for(var b=i.length;b--;)if(i[b]()){a("poller");return}setTimeout(g,30)}};g()}}k.load=function(a,b,c){k(c)};return k})},
164
+ "dojo/_base/lang":function(){define("dojo/_base/lang",["./kernel","../has","../sniff"],function(b,k){k.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var f=k("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],n=f.length,m=function(a,d,c){var e,g=0,i=b.global;if(!c)if(a.length){e=a[g++];try{c=b.scopeMap[e]&&b.scopeMap[e][1]}catch(h){}c=c||(e in i?i[e]:d?i[e]={}:void 0)}else return i;
165
+ for(;c&&(e=a[g++]);)c=e in c?c[e]:d?c[e]={}:void 0;return c},o=Object.prototype.toString,p=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))},j=/\{([^\}]+)\}/g,i={_extraNames:f,_mixin:function(a,b,c){var e,g,i,h={};for(e in b)if(g=b[e],!(e in a)||a[e]!==g&&(!(e in h)||h[e]!==g))a[e]=c?c(g):g;if(k("bug-for-in-skips-shadowed")&&b)for(i=0;i<n;++i)if(e=f[i],g=b[e],!(e in a)||a[e]!==g&&(!(e in h)||h[e]!==g))a[e]=c?c(g):g;return a},mixin:function(a,b){a||(a={});for(var c=1,e=arguments.length;c<
166
+ e;c++)i._mixin(a,arguments[c]);return a},setObject:function(a,b,c){var e=a.split("."),a=e.pop();return(c=m(e,!0,c))&&a?c[a]=b:void 0},getObject:function(a,b,c){return m(a.split("."),b,c)},exists:function(a,b){return void 0!==i.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]"===o.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==
167
+ typeof a||i.isArray(a)||i.isFunction(a))},isArrayLike:function(a){return a&&void 0!==a&&!i.isString(a)&&!i.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(i.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!i.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(""+a)},extend:function(a,b){for(var c=1,e=arguments.length;c<e;c++)i._mixin(a.prototype,arguments[c]);return a},_hitchArgs:function(a,d){var c=i._toArray(arguments,2),e=i.isString(d);return function(){var g=i._toArray(arguments),
168
+ l=e?(a||b.global)[d]:d;return l&&l.apply(a||this,c.concat(g))}},hitch:function(a,d){if(2<arguments.length)return i._hitchArgs.apply(b,arguments);d||(d=a,a=null);if(i.isString(d)){a=a||b.global;if(!a[d])throw['lang.hitch: scope["',d,'"] is null (scope="',a,'")'].join("");return function(){return a[d].apply(a,arguments||[])}}return!a?d:function(){return d.apply(a,arguments||[])}},delegate:function(){function a(){}return function(b,c){a.prototype=b;var e=new a;a.prototype=null;c&&i._mixin(e,c);return e}}(),
169
+ _toArray:k("ie")?function(){function a(a,b,e){e=e||[];for(b=b||0;b<a.length;b++)e.push(a[b]);return e}return function(b){return(b.item?a:p).apply(this,arguments)}}():p,partial:function(a){return i.hitch.apply(b,[null].concat(i._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||i.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,c,e;if(i.isArray(a)){b=[];for(c=
170
+ 0,e=a.length;c<e;++c)c in a&&b.push(i.clone(a[c]))}else b=a.constructor?new a.constructor:{};return i._mixin(b,a,i.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,b,c){return a.replace(c||j,i.isFunction(b)?b:function(a,c){return i.getObject(c,!1,b)})}};i.mixin(b,i);return i})},"dojo/request/util":function(){define("dojo/request/util","exports,../errors/RequestError,../errors/CancelError,../Deferred,../io-query,../_base/array,../_base/lang".split(","),
171
+ function(b,k,f,n,m,o,p){function j(a){return i(a)}b.deepCopy=function(a,d){for(var c in d){var e=a[c],g=d[c];e!==g&&(e&&"object"===typeof e&&g&&"object"===typeof g?b.deepCopy(e,g):a[c]=g)}return a};b.deepCreate=function(a,d){var d=d||{},c=p.delegate(a),e,g;for(e in a)(g=a[e])&&"object"===typeof g&&(c[e]=b.deepCreate(g,d[e]));return b.deepCopy(c,d)};var i=Object.freeze||function(a){return a};b.deferred=function(a,d,c,e,g,l){var h=new n(function(b){d&&d(h,a);return!b||!(b instanceof k)&&!(b instanceof
172
+ f)?new f("Request canceled",a):b});h.response=a;h.isValid=c;h.isReady=e;h.handleResponse=g;c=h.then(j).otherwise(function(b){b.response=a;throw b;});b.notify&&c.then(p.hitch(b.notify,"emit","load"),p.hitch(b.notify,"emit","error"));e=c.then(function(a){return a.data||a.text});c=i(p.delegate(e,{response:c}));l&&h.then(function(a){l.call(h,a)},function(b){l.call(h,a,b)});h.promise=c;h.then=c.then;return h};b.addCommonMethods=function(a,b){o.forEach(b||["GET","POST","PUT","DELETE"],function(b){a[("DELETE"===
173
+ b?"DEL":b).toLowerCase()]=function(d,g){g=p.delegate(g||{});g.method=b;return a(d,g)}})};b.parseArgs=function(a,b,c){var e=b.data,g=b.query;if(e&&!c&&"object"===typeof e)b.data=m.objectToQuery(e);g?("object"===typeof g&&(g=m.objectToQuery(g)),b.preventCache&&(g+=(g?"&":"")+"request.preventCache="+ +new Date)):b.preventCache&&(g="request.preventCache="+ +new Date);a&&g&&(a+=(~a.indexOf("?")?"&":"?")+g);return{url:a,options:b,getHeader:function(){return null}}};b.checkStatus=function(a){a=a||0;return 200<=
174
+ a&&300>a||304===a||1223===a||!a}})},"dojo/Evented":function(){define("dojo/Evented",["./aspect","./on"],function(b,k){function f(){}var n=b.after;f.prototype={on:function(b,f){return k.parse(this,b,f,function(b,j){return n(b,"on"+j,f,!0)})},emit:function(b,f){var p=[this];p.push.apply(p,arguments);return k.emit.apply(k,p)}};return f})},"dojo/mouse":function(){define("dojo/mouse",["./_base/kernel","./on","./has","./dom","./_base/window"],function(b,k,f,n,m){function o(b,f){var i=function(a,d){return k(a,
175
+ b,function(b){if(f)return f(b,d);if(!n.isDescendant(b.relatedTarget,a))return d.call(this,b)})};i.bubble=function(a){return o(b,function(b,c){var e=a(b.target),g=b.relatedTarget;if(e&&e!=(g&&1==g.nodeType&&a(g)))return c.call(e,b)})};return i}f.add("dom-quirks",m.doc&&"BackCompat"==m.doc.compatMode);f.add("events-mouseenter",m.doc&&"onmouseenter"in m.doc.createElement("div"));f.add("events-mousewheel",m.doc&&"onmousewheel"in m.doc);m=f("dom-quirks")&&f("ie")||!f("dom-addeventlistener")?{LEFT:1,MIDDLE:4,
176
+ RIGHT:2,isButton:function(b,f){return b.button&f},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,f){return b.button==f},isLeft:function(b){return 0==b.button},isMiddle:function(b){return 1==b.button},isRight:function(b){return 2==b.button}};b.mouseButtons=m;b=f("events-mousewheel")?"mousewheel":function(b,f){return k(b,"DOMMouseScroll",function(b){b.wheelDelta=-b.detail;f.call(this,
177
+ b)})};return{_eventHandler:o,enter:o("mouseover"),leave:o("mouseout"),wheel:b,isLeft:m.isLeft,isMiddle:m.isMiddle,isRight:m.isRight}})},"dojo/topic":function(){define("dojo/topic",["./Evented"],function(b){var k=new b;return{publish:function(b,n){return k.emit.apply(k,arguments)},subscribe:function(b,n){return k.on.apply(k,arguments)}}})},"dojo/_base/xhr":function(){define("dojo/_base/xhr","./kernel,./sniff,require,../io-query,../dom,../dom-form,./Deferred,./config,./json,./lang,./array,../on,../aspect,../request/watch,../request/xhr,../request/util".split(","),
178
+ function(b,k,f,n,m,o,p,j,i,a,d,c,e,g,l,h){b._xhrObj=l._create;var r=b.config;b.objectToQuery=n.objectToQuery;b.queryToObject=n.queryToObject;b.fieldToObject=o.fieldToObject;b.formToObject=o.toObject;b.formToQuery=o.toQuery;b.formToJson=o.toJson;b._blockAsync=!1;var q=b._contentHandlers=b.contentHandlers={text:function(a){return a.responseText},json:function(a){return i.fromJson(a.responseText||null)},"json-comment-filtered":function(a){j.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: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");
179
+ var a=a.responseText,b=a.indexOf("/*"),c=a.lastIndexOf("*/");if(-1==b||-1==c)throw Error("JSON was not comment filtered");return i.fromJson(a.substring(b+2,c))},javascript:function(a){return b.eval(a.responseText)},xml:function(a){var b=a.responseXML;if(k("ie")&&(!b||!b.documentElement)){var c=function(a){return"MSXML"+a+".DOMDocument"},c=["Microsoft.XMLDOM",c(6),c(4),c(3),c(2)];d.some(c,function(c){try{var d=new ActiveXObject(c);d.async=!1;d.loadXML(a.responseText);b=d}catch(e){return!1}return!0})}return b},
180
+ "json-comment-optional":function(a){return a.responseText&&/^[^{\[]*\/\*/.test(a.responseText)?q["json-comment-filtered"](a):q.json(a)}};b._ioSetArgs=function(c,d,e,h){var g={args:c,url:c.url},i=null;if(c.form){var i=m.byId(c.form),f=i.getAttributeNode("action");g.url=g.url||(f?f.value:null);i=o.toObject(i)}f=[{}];i&&f.push(i);c.content&&f.push(c.content);c.preventCache&&f.push({"dojo.preventCache":(new Date).valueOf()});g.query=n.objectToQuery(a.mixin.apply(null,f));g.handleAs=c.handleAs||"text";
181
+ var l=new p(function(a){a.canceled=!0;d&&d(a);var b=a.ioArgs.error;if(!b)b=Error("request cancelled"),b.dojoType="cancel",a.ioArgs.error=b;return b});l.addCallback(e);var j=c.load;j&&a.isFunction(j)&&l.addCallback(function(a){return j.call(c,a,g)});var k=c.error;k&&a.isFunction(k)&&l.addErrback(function(a){return k.call(c,a,g)});var q=c.handle;q&&a.isFunction(q)&&l.addBoth(function(a){return q.call(c,a,g)});l.addErrback(function(a){return h(a,l)});r.ioPublish&&b.publish&&!1!==g.args.ioPublish&&(l.addCallbacks(function(a){b.publish("/dojo/io/load",
182
+ [l,a]);return a},function(a){b.publish("/dojo/io/error",[l,a]);return a}),l.addBoth(function(a){b.publish("/dojo/io/done",[l,a]);return a}));l.ioArgs=g;return l};var t=function(a){a=q[a.ioArgs.handleAs](a.ioArgs.xhr);return void 0===a?null:a},s=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},x=function(a){0>=v&&(v=0,r.ioPublish&&b.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish)&&b.publish("/dojo/io/stop"))},v=0;e.after(g,"_onAction",function(){v-=1});e.after(g,"_onInFlight",x);b._ioCancelAll=
183
+ g.cancelAll;b._ioNotifyStart=function(a){r.ioPublish&&b.publish&&!1!==a.ioArgs.args.ioPublish&&(v||b.publish("/dojo/io/start"),v+=1,b.publish("/dojo/io/send",[a]))};b._ioWatch=function(b,c,d,e){b.ioArgs.options=b.ioArgs.args;a.mixin(b,{response:b.ioArgs,isValid:function(){return c(b)},isReady:function(){return d(b)},handleResponse:function(){return e(b)}});g(b);x(b)};b._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(-1==a.url.indexOf("?")?"?":"&")+a.query,a.query=null};b.xhr=function(a,c,d){var e,
184
+ h=b._ioSetArgs(c,function(){e&&e.cancel()},t,s),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 i={method:a,handleAs:"text",timeout:c.timeout,withCredentials:c.withCredentials,ioArgs:g};if("undefined"!==typeof c.headers)i.headers=c.headers;if("undefined"!==typeof c.contentType){if(!i.headers)i.headers={};i.headers["Content-Type"]=c.contentType}if("undefined"!==
185
+ typeof g.query)i.data=g.query;if("undefined"!==typeof c.sync)i.sync=c.sync;b._ioNotifyStart(h);try{e=l(g.url,i,!0)}catch(f){return h.cancel(),h}h.ioArgs.xhr=e.response.xhr;e.then(function(){h.resolve(h)}).otherwise(function(a){g.error=a;if(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",
186
+ a,!0)};b.xhrDelete=function(a){return b.xhr("DELETE",a)};b._isDocumentOk=function(a){return h.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:o.fieldToObject,formToObject:o.toObject,objectToQuery:n.objectToQuery,formToQuery:o.toQuery,formToJson:o.toJson,queryToObject:n.queryToObject,contentHandlers:q,_ioSetArgs:b._ioSetArgs,_ioCancelAll:b._ioCancelAll,_ioNotifyStart:b._ioNotifyStart,_ioWatch:b._ioWatch,
187
+ _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/loadInit":function(){define("dojo/loadInit",["./_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,k,f){var n=window,m={addOnWindowUnload:function(o,m){if(!b.windowUnloaded)f(n,"unload",b.windowUnloaded=function(){});
188
+ f(n,"unload",k.hitch(o,m))},addOnUnload:function(b,m){f(n,"beforeunload",k.hitch(b,m))}};b.addOnWindowUnload=m.addOnWindowUnload;b.addOnUnload=m.addOnUnload;return m})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(b,k,f,n,m){var o=Object.freeze||function(){},p=function(a,b,g,i,h){2===b&&d.instrumentRejected&&0===a.length&&d.instrumentRejected(g,!1,i,h);for(h=0;h<a.length;h++)j(a[h],b,g,i)},j=function(b,e,
189
+ g,l){var h=b[e],f=b.deferred;if(h)try{var j=h(g);if(0===e)"undefined"!==typeof j&&a(f,e,j);else{if(j&&"function"===typeof j.then){b.cancel=j.cancel;j.then(i(f,1),i(f,2),i(f,0));return}a(f,1,j)}}catch(k){a(f,2,k)}else a(f,e,g);2===e&&d.instrumentRejected&&d.instrumentRejected(g,!!h,l,f.promise)},i=function(b,d){return function(g){a(b,d,g)}},a=function(a,b,d){if(!a.isCanceled())switch(b){case 0:a.progress(d);break;case 1:a.resolve(d);break;case 2:a.reject(d)}},d=function(a){var b=this.promise=new n,
190
+ g=this,i,h,k,m=!1,t=[];Error.captureStackTrace&&(Error.captureStackTrace(g,d),Error.captureStackTrace(b,d));this.isResolved=b.isResolved=function(){return 1===i};this.isRejected=b.isRejected=function(){return 2===i};this.isFulfilled=b.isFulfilled=function(){return!!i};this.isCanceled=b.isCanceled=function(){return m};this.progress=function(a,c){if(i){if(!0===c)throw Error("This deferred has already been fulfilled.");return b}p(t,0,a,null,g);return b};this.resolve=function(a,c){if(i){if(!0===c)throw Error("This deferred has already been fulfilled.");
191
+ return b}p(t,i=1,h=a,null,g);t=null;return b};var s=this.reject=function(a,c){if(i){if(!0===c)throw Error("This deferred has already been fulfilled.");return b}Error.captureStackTrace&&Error.captureStackTrace(k={},s);p(t,i=2,h=a,k,g);t=null;return b};this.then=b.then=function(a,c,g){var f=[g,a,c];f.cancel=b.cancel;f.deferred=new d(function(a){return f.cancel&&f.cancel(a)});i&&!t?j(f,i,h,k):t.push(f);return f.deferred.promise};this.cancel=b.cancel=function(b,d){if(i){if(!0===d)throw Error("This deferred has already been fulfilled.");
192
+ }else{if(a)var e=a(b),b="undefined"===typeof e?b:e;m=!0;if(i){if(2===i&&h===b)return b}else return"undefined"===typeof b&&(b=new f),s(b),b}};o(b)};d.prototype.toString=function(){return"[object Deferred]"};m&&m(d);return d})},"dojo/_base/NodeList":function(){define("dojo/_base/NodeList",["./kernel","../query","./array","./html","../NodeList-dom"],function(b,k,f){var k=k.NodeList,n=k.prototype;n.connect=k._adaptAsForEach(function(){return b.connect.apply(this,arguments)});n.coords=k._adaptAsMap(b.coords);
193
+ k.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");f.forEach(k.events,function(b){var f="on"+b;n[f]=function(b,j){return this.connect(f,b,j)}});return b.NodeList=k})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(b,k,f,n){var m=b.Color=function(b){b&&this.setColor(b)};m.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,
194
+ 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:n.transparentColor||[0,0,0,0]};k.extend(m,{r:255,g:255,b:255,a:1,_set:function(b,f,j,i){this.r=b;this.g=f;this.b=j;this.a=i},setColor:function(b){k.isString(b)?m.fromString(b,this):k.isArray(b)?m.fromArray(b,this):(this._set(b.r,b.g,b.b,b.a),b instanceof m||this.sanitize());return this},sanitize:function(){return this},
195
+ toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+f.map(["r","g","b"],function(b){b=this[b].toString(16);return 2>b.length?"0"+b:b},this).join("")},toCss:function(b){var f=this.r+", "+this.g+", "+this.b;return(b?"rgba("+f+", "+this.a:"rgb("+f)+")"},toString:function(){return this.toCss(!0)}});m.blendColors=b.blendColors=function(b,k,j,i){var a=i||new m;f.forEach(["r","g","b","a"],function(d){a[d]=b[d]+(k[d]-b[d])*j;"a"!=
196
+ d&&(a[d]=Math.round(a[d]))});return a.sanitize()};m.fromRgb=b.colorFromRgb=function(b,f){var j=b.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return j&&m.fromArray(j[1].split(/\s*,\s*/),f)};m.fromHex=b.colorFromHex=function(b,k){var j=k||new m,i=4==b.length?4:8,a=(1<<i)-1,b=Number("0x"+b.substr(1));if(isNaN(b))return null;f.forEach(["b","g","r"],function(d){var c=b&a;b>>=i;j[d]=4==i?17*c:c});j.a=1;return j};m.fromArray=b.colorFromArray=function(b,f){var j=f||new m;j._set(Number(b[0]),Number(b[1]),
197
+ Number(b[2]),Number(b[3]));if(isNaN(j.a))j.a=1;return j.sanitize()};m.fromString=b.colorFromString=function(b,f){var j=m.named[b];return j&&m.fromArray(j,f)||m.fromRgb(b,f)||m.fromHex(b,f)};return m})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(b,k,f,n){function m(a,b,d){var i="";a&&a.stack&&(i+=a.stack);b&&b.stack&&(i+="\n ----------------------------------------\n rejected"+b.stack.split("\n").slice(1).join("\n").replace(/^\s+/,
198
+ " "));d&&d.stack&&(i+="\n ----------------------------------------\n"+d.stack);console.error(a,i)}function o(a,b,d,i){b||m(a,d,i)}function p(b,e,g,f){e?n.some(i,function(a,d){if(a.error===b)return i.splice(d,1),!0}):n.some(i,function(a){return a.error===b})||i.push({error:b,rejection:g,deferred:f,timestamp:(new Date).getTime()});a||(a=setTimeout(j,d))}function j(){var b=(new Date).getTime(),e=b-d;i=n.filter(i,function(a){return a.timestamp<e?(m(a.error,a.rejection,a.deferred),!1):!0});a=i.length?
199
+ setTimeout(j,i[0].timestamp+d-b):!1}var i=[],a=!1,d=1E3;return function(a){var e=k("config-useDeferredInstrumentation");if(e){b.on("resolved",f.hitch(console,"log","resolved"));b.on("rejected",f.hitch(console,"log","rejected"));b.on("progress",f.hitch(console,"log","progress"));var g=[];"string"===typeof e&&(g=e.split(","),e=g.shift());if("report-rejections"===e)a.instrumentRejected=o;else if("report-unhandled-rejections"===e||!0===e||1===e)a.instrumentRejected=p,d=parseInt(g[0],10)||d;else throw Error("Unsupported instrumentation usage <"+
200
+ e+">");}}})},"dojo/selector/_loader":function(){define(["../has","require"],function(b,k){var f=document.createElement("div");b.add("dom-qsa2.1",!!f.querySelectorAll);b.add("dom-qsa3",function(){try{return f.innerHTML="<p class='TEST'></p>",1==f.querySelectorAll(".TEST:empty").length}catch(b){}});var n;return{load:function(f,o,p){var j=k,f="default"==f?b("config-selectorEngine")||"css3":f,f="css2"==f||"lite"==f?"./lite":"css2.1"==f?b("dom-qsa2.1")?"./lite":"./acme":"css3"==f?b("dom-qsa3")?"./lite":
201
+ "./acme":"acme"==f?"./acme":(j=o)&&f;if("?"==f.charAt(f.length-1))var f=f.substring(0,f.length-1),i=!0;if(i&&(b("dom-compliant-qsa")||n))return p(n);j([f],function(a){"./lite"!=f&&(n=a);p(a)})}}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(b){function k(){throw new TypeError("abstract");}return b.extend(function(){},{then:function(){k()},cancel:function(){k()},isResolved:function(){k()},isRejected:function(){k()},isFulfilled:function(){k()},isCanceled:function(){k()},always:function(b){return this.then(b,
202
+ 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,k,f,n,m,o){function p(){for(var b=+new Date,c=0,e;c<a.length&&(e=a[c]);c++){var g=e.response,f=g.options;if(e.isCanceled&&e.isCanceled()||
203
+ e.isValid&&!e.isValid(g))a.splice(c--,1),j._onAction&&j._onAction();else if(e.isReady&&e.isReady(g))a.splice(c--,1),e.handleResponse(g),j._onAction&&j._onAction();else if(e.startTime&&e.startTime+(f.timeout||0)<b)a.splice(c--,1),e.cancel(new k("Timeout exceeded",g)),j._onAction&&j._onAction()}j._onInFlight&&j._onInFlight(e);a.length||(clearInterval(i),i=null)}function j(b){if(b.response.options.timeout)b.startTime=+new Date;b.isFulfilled()||(a.push(b),i||(i=setInterval(p,50)),b.response.options.sync&&
204
+ p())}var i=null,a=[];j.cancelAll=function(){try{n.forEach(a,function(a){try{a.cancel(new f("All requests canceled."))}catch(b){}})}catch(b){}};m&&o&&m.doc.attachEvent&&o(m.global,"unload",function(){j.cancelAll()});return j})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(b,k,f){function n(a,b,d,e,h){if(e=b.match(/(.*):(.*)/))return b=e[2],e=e[1],j.selector(e,b).call(h,a,d);f("touch")&&(i.test(b)&&(d=u(d)),!f("event-orientationchange")&&"orientationchange"==
205
+ b&&(b="resize",a=window,d=u(d)));g&&(d=g(d));if(a.addEventListener){var l=b in c,k=l?c[b]:b;a.addEventListener(k,d,l);return{remove:function(){a.removeEventListener(k,d,l)}}}if(q&&a.attachEvent)return q(a,"on"+b,d);throw Error("Target must be an event emitter");}function m(){this.cancelable=!1}function o(){this.bubbles=!1}var p=window.ScriptEngineMajorVersion;f.add("jscript",p&&p()+ScriptEngineMinorVersion()/10);f.add("event-orientationchange",f("touch")&&!f("android"));f.add("event-stopimmediatepropagation",
206
+ window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);var j=function(a,b,c,d){return"function"==typeof a.on&&"function"!=typeof b?a.on(b,c):j.parse(a,b,c,n,d,this)};j.pausable=function(a,b,c,d){var e,a=j(a,b,function(){if(!e)return c.apply(this,arguments)},d);a.pause=function(){e=!0};a.resume=function(){e=!1};return a};j.once=function(a,b,c){var d=j(a,b,function(){d.remove();return c.apply(this,arguments)});return d};j.parse=function(a,b,c,d,e,h){if(b.call)return b.call(h,
207
+ a,c);if(-1<b.indexOf(",")){for(var b=b.split(/\s*,\s*/),g=[],i=0,f;f=b[i++];)g.push(d(a,f,c,e,h));g.remove=function(){for(var a=0;a<g.length;a++)g[a].remove()};return g}return d(a,b,c,e,h)};var i=/^touch/;j.selector=function(a,b,c){return function(d,e){function h(b){for(g=g&&g.matches?g:k.query;!g.matches(b,a,d);)if(b==d||!1===c||!(b=b.parentNode)||1!=b.nodeType)return;return b}var g="function"==typeof a?{matches:a}:this,f=b.bubble;return f?j(d,f(h),e):j(d,b,function(a){var b=h(a.target);return b&&
208
+ e.call(b,a)})}};var a=[].slice,d=j.emit=function(b,c,d){var e=a.call(arguments,2),h="on"+c;if("parentNode"in b){var g=e[0]={},f;for(f in d)g[f]=d[f];g.preventDefault=m;g.stopPropagation=o;g.target=b;g.type=c;d=g}do b[h]&&b[h].apply(b,e);while(d&&d.bubbles&&(b=b.parentNode));return d&&d.cancelable&&d},c={};if(!f("event-stopimmediatepropagation"))var e=function(){this.modified=this.immediatelyStopped=!0},g=function(a){return function(b){if(!b.immediatelyStopped)return b.stopImmediatePropagation=e,a.apply(this,
209
+ arguments)}};if(f("dom-addeventlistener"))c={focusin:"focus",focusout:"blur"},j.emit=function(a,b,c){if(a.dispatchEvent&&document.createEvent){var e=a.ownerDocument.createEvent("HTMLEvents");e.initEvent(b,!!c.bubbles,!!c.cancelable);for(var h in c)h in e||(e[h]=c[h]);return a.dispatchEvent(e)&&e}return d.apply(j,arguments)};else{j._fixEvent=function(a,b){if(!a)a=(b&&(b.ownerDocument||b.document||b).parentWindow||window).event;if(!a)return a;l&&a.type==l.type&&(a=l);if(!a.target){a.target=a.srcElement;
210
+ a.currentTarget=b||a.srcElement;if("mouseover"==a.type)a.relatedTarget=a.fromElement;if("mouseout"==a.type)a.relatedTarget=a.toElement;if(!a.stopPropagation)a.stopPropagation=t,a.preventDefault=s;switch(a.type){case "keypress":var c="charCode"in a?a.charCode:a.keyCode;10==c?(c=0,a.keyCode=13):13==c||27==c?c=0:3==c&&(c=99);a.charCode=c;c=a;c.keyChar=c.charCode?String.fromCharCode(c.charCode):"";c.charOrCode=c.keyChar||c.keyCode}}return a};var l,h=function(a){this.handle=a};h.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};
211
+ var r=function(a){return function(b){var b=j._fixEvent(b,this),c=a.call(this,b);b.modified&&(l||setTimeout(function(){l=null}),l=b);return c}},q=function(a,c,d){d=r(d);if(((a.ownerDocument?a.ownerDocument.parentWindow:a.parentWindow||a.window||window)!=top||5.8>f("jscript"))&&!f("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var e=a[c];if(!e||!e.listeners){var g=e,e=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");
212
+ e.listeners=[];a[c]=e;e.global=this;g&&e.listeners.push(_dojoIEListeners_.push(g)-1)}e.listeners.push(a=e.global._dojoIEListeners_.push(d)-1);return new h(a)}return b.after(a,c,d,!0)},t=function(){this.cancelBubble=!0},s=j._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0;this.returnValue=!1}}if(f("touch"))var x=function(){},v=window.orientation,u=function(a){return function(b){var c=b.corrected;if(!c){var d=b.type;try{delete b.type}catch(e){}b.type?
213
+ (x.prototype=b,c=new x,c.preventDefault=function(){b.preventDefault()},c.stopPropagation=function(){b.stopPropagation()}):(c=b,c.type=d);b.corrected=c;if("resize"==d){if(v==window.orientation)return null;v=window.orientation;c.type="orientationchange";return a.call(this,c)}if(!("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 j})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(b,k,f){b._name=
214
+ "browser";k.mixin(b,{isBrowser:!0,isFF:f("ff"),isIE:f("ie"),isKhtml:f("khtml"),isWebKit:f("webkit"),isMozilla:f("mozilla"),isMoz:f("mozilla"),isOpera:f("opera"),isSafari:f("safari"),isChrome:f("chrome"),isMac:f("mac"),isIos:f("ios"),isAndroid:f("android"),isWii:f("wii"),isQuirks:f("quirks"),isAir:f("air")});b.locale=b.locale||(f("ie")?navigator.userLanguage:navigator.language).toLowerCase();return f})},"dojo/errors/create":function(){define(["../_base/lang"],function(b){return function(k,f,n,m){var n=
215
+ n||Error,o=function(b){if(n===Error){Error.captureStackTrace&&Error.captureStackTrace(this,o);var j=Error.call(this,b),i;for(i in j)j.hasOwnProperty(i)&&(this[i]=j[i]);this.message=b;this.stack=j.stack}else n.apply(this,arguments);f&&f.apply(this,arguments)};o.prototype=b.delegate(n.prototype,m);o.prototype.name=k;return o.prototype.constructor=o}})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(b,k,f){function n(a){return p[a]=new Function("item","index","array",a)}
216
+ function m(a){var b=!a;return function(c,e,g){var f=0,h=c&&c.length||0,i;h&&"string"==typeof c&&(c=c.split(""));"string"==typeof e&&(e=p[e]||n(e));if(g)for(;f<h;++f){if(i=!e.call(g,c[f],f,c),a^i)return!i}else for(;f<h;++f)if(i=!e(c[f],f,c),a^i)return!i;return b}}function o(a){var b=1,c=0,e=0;a||(b=c=e=-1);return function(g,f,h,k){if(k&&0<b)return i.lastIndexOf(g,f,h);var k=g&&g.length||0,m=a?k+e:c;h===j?h=a?c:k+e:0>h?(h=k+h,0>h&&(h=c)):h=h>=k?k+e:h;for(k&&"string"==typeof g&&(g=g.split(""));h!=m;h+=
217
+ b)if(g[h]==f)return h;return-1}}var p={},j,i={every:m(!1),some:m(!0),indexOf:o(!0),lastIndexOf:o(!1),forEach:function(a,b,c){var e=0,g=a&&a.length||0;g&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=p[b]||n(b));if(c)for(;e<g;++e)b.call(c,a[e],e,a);else for(;e<g;++e)b(a[e],e,a)},map:function(a,b,c,e){var g=0,f=a&&a.length||0,e=new (e||Array)(f);f&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=p[b]||n(b));if(c)for(;g<f;++g)e[g]=b.call(c,a[g],g,a);else for(;g<f;++g)e[g]=b(a[g],
218
+ g,a);return e},filter:function(a,b,c){var e=0,g=a&&a.length||0,f=[],h;g&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=p[b]||n(b));if(c)for(;e<g;++e)h=a[e],b.call(c,h,e,a)&&f.push(h);else for(;e<g;++e)h=a[e],b(h,e,a)&&f.push(h);return f},clearCache:function(){p={}}};f.mixin(b,i);return i})},"dojo/_base/json":function(){define(["./kernel","../json"],function(b,k){b.fromJson=function(b){return eval("("+b+")")};b._escapeString=k.stringify;b.toJsonIndentStr="\t";b.toJson=function(f,n){return k.stringify(f,
219
+ function(b,f){if(f){var k=f.__json__||f.json;if("function"==typeof k)return k.call(f)}return f},n&&b.toJsonIndentStr)};return b})},"dojo/_base/window":function(){define("dojo/_base/window",["./kernel","./lang","../sniff"],function(b,k,f){var n={global:b.global,doc:this.document||null,body:function(f){f=f||b.doc;return f.body||f.getElementsByTagName("body")[0]},setContext:function(f,k){b.global=n.global=f;b.doc=n.doc=k},withGlobal:function(f,k,p,j){var i=b.global;try{return b.global=n.global=f,n.withDoc.call(null,
220
+ f.document,k,p,j)}finally{b.global=n.global=i}},withDoc:function(k,o,p,j){var i=n.doc,a=f("quirks"),d=f("ie"),c,e,g;try{b.doc=n.doc=k;b.isQuirks=f.add("quirks","BackCompat"==b.doc.compatMode,!0,!0);if(f("ie")&&(g=k.parentWindow)&&g.navigator)c=parseFloat(g.navigator.appVersion.split("MSIE ")[1])||void 0,(e=k.documentMode)&&5!=e&&Math.floor(c)!=e&&(c=e),b.isIE=f.add("ie",c,!0,!0);p&&"string"==typeof o&&(o=p[o]);return o.apply(p,j||[])}finally{b.doc=n.doc=i,b.isQuirks=f.add("quirks",a,!0,!0),b.isIE=
221
+ f.add("ie",d,!0,!0)}}};k.mixin(b,n);return n})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(b,k,f){function n(b){if("string"==typeof b||b instanceof String){if(b&&!o.test(b))return p[0]=b,p;b=b.split(o);b.length&&!b[0]&&b.shift();b.length&&!b[b.length-1]&&b.pop();return b}return!b?[]:k.filter(b,function(a){return a})}var m,o=/\s+/,p=[""],j={};return m={contains:function(b,a){return 0<=(" "+f.byId(b).className+" ").indexOf(" "+a+" ")},add:function(b,a){var b=
222
+ f.byId(b),a=n(a),d=b.className,c,d=d?" "+d+" ":" ";c=d.length;for(var e=0,g=a.length,j;e<g;++e)(j=a[e])&&0>d.indexOf(" "+j+" ")&&(d+=j+" ");c<d.length&&(b.className=d.substr(1,d.length-2))},remove:function(i,a){var i=f.byId(i),d;if(void 0!==a){a=n(a);d=" "+i.className+" ";for(var c=0,e=a.length;c<e;++c)d=d.replace(" "+a[c]+" "," ");d=b.trim(d)}else d="";i.className!=d&&(i.className=d)},replace:function(b,a,d){b=f.byId(b);j.className=b.className;m.remove(j,d);m.add(j,a);b.className!==j.className&&
223
+ (b.className=j.className)},toggle:function(b,a,d){b=f.byId(b);if(void 0===d)for(var a=n(a),c=0,e=a.length,g;c<e;++c)g=a[c],m[m.contains(b,g)?"remove":"add"](b,g);else m[d?"add":"remove"](b,a);return d}}})},"dojo/_base/config":function(){define(["../has","require"],function(b,k){var f={},n=k.rawConfig,m;for(m in n)f[m]=n[m];return f})},"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(","),
224
+ function(b,k,f,n,m,o,p,j){p.isDebug&&f(["./_firebug/firebug"]);var i=p.require;i&&(i=o.map(m.isArray(i)?i:[i],function(a){return a.replace(/\./g,"/")}),b.isAsync?f(i):j(1,function(){f(i)}));return b})},"dojo/_base/event":function(){define("dojo/_base/event",["./kernel","../on","../has","../dom-geometry"],function(b,k,f,n){if(k._fixEvent){var m=k._fixEvent;k._fixEvent=function(b,f){(b=m(b,f))&&n.normalizeEvent(b);return b}}var o={fix:function(b,f){return k._fixEvent?k._fixEvent(b,f):b},stop:function(b){f("dom-addeventlistener")||
225
+ b&&b.preventDefault?(b.preventDefault(),b.stopPropagation()):(b=b||window.event,b.cancelBubble=!0,k._preventDefault.call(b))}};b.fixEvent=o.fix;b.stopEvent=o.stop;return o})},"dojo/sniff":function(){define(["./has"],function(b){var k=navigator,f=k.userAgent,k=k.appVersion,n=parseFloat(k);b.add("air",0<=f.indexOf("AdobeAIR"));b.add("khtml",0<=k.indexOf("Konqueror")?n:void 0);b.add("webkit",parseFloat(f.split("WebKit/")[1])||void 0);b.add("chrome",parseFloat(f.split("Chrome/")[1])||void 0);b.add("safari",
226
+ 0<=k.indexOf("Safari")&&!b("chrome")?parseFloat(k.split("Version/")[1]):void 0);b.add("mac",0<=k.indexOf("Macintosh"));b.add("quirks","BackCompat"==document.compatMode);b.add("ios",/iPhone|iPod|iPad/.test(f));b.add("android",parseFloat(f.split("Android ")[1])||void 0);if(!b("webkit")){0<=f.indexOf("Opera")&&b.add("opera",9.8<=n?parseFloat(f.split("Version/")[1])||n:n);0<=f.indexOf("Gecko")&&!b("khtml")&&!b("webkit")&&b.add("mozilla",n);b("mozilla")&&b.add("ff",parseFloat(f.split("Firefox/")[1]||f.split("Minefield/")[1])||
227
+ void 0);if(document.all&&!b("opera"))f=parseFloat(k.split("MSIE ")[1])||void 0,(k=document.documentMode)&&5!=k&&Math.floor(f)!=k&&(f=k),b.add("ie",f);b.add("wii","undefined"!=typeof opera&&opera.wiiremote)}return b})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has"],function(b,k,f,n){function m(b){var a=j[b.options.handleAs];b.data=a?a(b):b.data||b.text;return b}n.add("activex","undefined"!==typeof ActiveXObject);var o;if(n("activex")){var p=["Msxml2.DOMDocument.6.0",
228
+ "Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];o=function(b){var a=b.data;if(!a||!a.documentElement){var d=b.text;f.some(p,function(b){try{var e=new ActiveXObject(b);e.async=!1;e.loadXML(d);a=e}catch(g){return!1}return!0})}return a}}var j={javascript:function(b){return k.eval(b.text||"")},json:function(f){return b.parse(f.text||null)},xml:o};m.register=function(b,a){j[b]=a};return m})},"dojo/aspect":function(){define("dojo/aspect",[],function(){function b(b,f,a,d){var c=b[f],
229
+ e="around"==f,g;if(e){var k=a(function(){return c.advice(this,arguments)});g={remove:function(){g.cancelled=!0},advice:function(a,b){return g.cancelled?c.advice(a,b):k.apply(a,b)}}}else g={remove:function(){var a=g.previous,c=g.next;if(!c&&!a)delete b[f];else if(a?a.next=c:b[f]=c,c)c.previous=a},id:n++,advice:a,receiveArguments:d};if(c&&!e)if("after"==f){for(;c.next&&(c=c.next););c.next=g;g.previous=c}else{if("before"==f)b[f]=g,g.next=c,c.previous=g}else b[f]=g;return g}function k(j){return function(i,
230
+ a,d,c){var e=i[a],g;if(!e||e.target!=i){i[a]=g=function(){for(var a=n,b=arguments,c=g.before;c;)b=c.advice.apply(this,b)||b,c=c.next;if(g.around)var d=g.around.advice(this,b);for(c=g.after;c&&c.id<a;){if(c.receiveArguments)var e=c.advice.apply(this,b),d=e===f?d:e;else d=c.advice.call(this,d,b);c=c.next}return d};if(e)g.around={advice:function(a,b){return e.apply(a,b)}};g.target=i}i=b(g||e,j,d,c);d=null;return i}}var f,n=0,m=k("after"),o=k("before"),p=k("around");return{before:o,around:p,after:m}})},
231
+ "dojo/ready":function(){define("dojo/ready",["./_base/kernel","./has","require","./domReady","./_base/lang"],function(b,k,f,n,m){var o=0,p,j=[],i=0,a=function(){if(o&&!i&&j.length){i=1;var b=j.shift();try{b()}finally{i=0}i=0;j.length&&p(a)}};f.on("idle",a);p=function(){f.idle()&&a()};var k=b.ready=b.addOnLoad=function(a,d,f){var i=m._toArray(arguments);"number"!=typeof a?(f=d,d=a,a=1E3):i.shift();f=f?m.hitch.apply(b,i):function(){d()};f.priority=a;for(i=0;i<j.length&&a>=j[i].priority;i++);j.splice(i,
232
+ 0,f);p()},d=b.config.addOnLoad;if(d)k[m.isArray(d)?"apply":"call"](b,d);b.config.parseOnLoad&&!b.isAsync&&k(99,function(){b.parser||(b.deprecated("Add explicit require(['dojo/parser']);","","2.0"),f(["dojo/parser"]))});n(function(){o=1;b._postLoad=b.config.afterOnLoad=!0;j.length&&p(a)});return k})},"dojo/_base/connect":function(){define("./kernel,../on,../topic,../aspect,./event,../mouse,./sniff,./lang,../keys".split(","),function(b,k,f,n,m,o,p,j){function i(a,c,d,e,f){e=j.hitch(d,e);if(!a||!a.addEventListener&&
233
+ !a.attachEvent)return n.after(a||b.global,c,e,!0);"string"==typeof c&&"on"==c.substring(0,2)&&(c=c.substring(2));if(!a)a=b.global;if(!f)switch(c){case "keypress":c=g;break;case "mouseenter":c=o.enter;break;case "mouseleave":c=o.leave}return k(a,c,e,f)}function a(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}p.add("events-keypress-typed",function(){var a={charCode:0};try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,
234
+ "keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(b){}return 0==a.charCode&&!p("opera")});var d={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},c=p("mac")?"metaKey":"ctrlKey",e=function(b,c){var d=j.mixin({},b,c);a(d);d.preventDefault=function(){b.preventDefault()};d.stopPropagation=function(){b.stopPropagation()};return d},g;g=p("events-keypress-typed")?function(a,b){var c=k(a,"keydown",function(a){var c=a.keyCode,f=13!=c&&32!=c&&(27!=c||!p("ie"))&&
235
+ (48>c||90<c)&&(96>c||111<c)&&(186>c||192<c)&&(219>c||222<c)&&229!=c;if(f||a.ctrlKey){f=f?0:c;if(a.ctrlKey){if(3==c||13==c)return b.call(a.currentTarget,a);f=95<f&&106>f?f-48:!a.shiftKey&&65<=f&&90>=f?f+32:d[f]||f}c=e(a,{type:"keypress",faux:!0,charCode:f});b.call(a.currentTarget,c);if(p("ie"))try{a.keyCode=c.keyCode}catch(g){}}}),f=k(a,"keypress",function(a){var c=a.charCode,a=e(a,{charCode:32<=c?c:0,faux:!0});return b.call(this,a)});return{remove:function(){c.remove();f.remove()}}}:p("opera")?function(a,
236
+ b){return k(a,"keypress",function(a){var c=a.which;3==c&&(c=99);c=32>c&&!a.shiftKey?0:c;a.ctrlKey&&!a.shiftKey&&65<=c&&90>=c&&(c+=32);return b.call(this,e(a,{charCode:c}))})}:function(b,c){return k(b,"keypress",function(b){a(b);return c.call(this,b)})};var l={_keypress:g,connect:function(a,b,c,d,e){var f=arguments,g=[],j=0;g.push("string"==typeof f[0]?null:f[j++],f[j++]);var k=f[j+1];g.push("string"==typeof k||"function"==typeof k?f[j++]:null,f[j++]);for(k=f.length;j<k;j++)g.push(f[j]);return i.apply(this,
237
+ g)},disconnect:function(a){a&&a.remove()},subscribe:function(a,b,c){return f.subscribe(a,j.hitch(b,c))},publish:function(a,b){return f.publish.apply(f,[a].concat(b))},connectPublisher:function(a,b,c){var d=function(){l.publish(a,arguments)};return c?l.connect(b,c,d):l.connect(b,d)},isCopyKey:function(a){return a[c]}};l.unsubscribe=l.disconnect;j.mixin(b,l);return l})},"dojo/errors/CancelError":function(){define(["./create"],function(b){return b("CancelError",null,null,{dojoType:"cancel"})})}}});
238
+ (function(){var b=this.require;b({cache:{}});!b.async&&b(["dojo"]);b.boot&&b.apply(null,b.boot)})();