buxdojo.js 314 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. //>>built
  2. require({cache:{"url:dijit/templates/CheckedMenuItem.html":'<tr class="dijitReset dijitMenuItem" data-dojo-attach-point="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\t\tdata-dojo-attach-event="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitMenuItemIcon dijitCheckedMenuItemIcon" data-dojo-attach-point="iconNode"/>\n\t\t<span class="dijitCheckedMenuItemIconChar">&#10003;</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" data-dojo-attach-point="containerNode,labelNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" data-dojo-attach-point="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&#160;</td>\n</tr>\n',
  3. "dijit/_base/scroll":function(){define("dijit/_base/scroll",["dojo/window",".."],function(c,g){g.scrollIntoView=function(a,b){c.scrollIntoView(a,b)}})},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin","dojo/_base/lang dojo/touch ./_WidgetBase dojo/string dojo/cache dojo/_base/array dojo/_base/declare dojo/dom-construct dojo/_base/sniff dojo/_base/unload dojo/_base/window".split(" "),function(c,g,a,b,e,d,j,h,f,k,l){var o=j("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,
  4. _skipNodeCache:!1,_earlyTemplatedStartup:!1,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var d=this.declaredClass,f=this;return b.substitute(a,this,function(a,b){"!"==b.charAt(0)&&(a=c.getObject(b.substr(1),!1,f));if("undefined"==typeof a)throw Error(d+" template:"+b);return null==a?"":"!"==b.charAt(0)?a:a.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){this.templateString||(this.templateString=e(this.templatePath,{sanitize:!0}));
  5. var a=o.getCachedTemplate(this.templateString,this._skipNodeCache),b;if(c.isString(a)){if(b=h.toDom(this._stringRepl(a)),1!=b.nodeType)throw Error("Invalid template: "+a);}else b=a.cloneNode(!0);this.domNode=b;this.inherited(arguments);this._attachTemplateNodes(b,function(a,b){return a.getAttribute(b)});this._beforeFillContent();this._fillContent(this.srcNodeRef)},_beforeFillContent:function(){},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)},
  6. _attachTemplateNodes:function(a,b){for(var d=c.isArray(a)?a:a.all||a.getElementsByTagName("*"),f=c.isArray(a)?0:-1;f<d.length;f++){var k=-1==f?a:d[f];if(!this.widgetsInTemplate||!b(k,"dojoType")&&!b(k,"data-dojo-type")){var h=b(k,"dojoAttachPoint")||b(k,"data-dojo-attach-point");if(h)for(var e=h.split(/\s*,\s*/);h=e.shift();)c.isArray(this[h])?this[h].push(k):this[h]=k,this._attachPoints.push(h);if(h=b(k,"dojoAttachEvent")||b(k,"data-dojo-attach-event"))for(var e=h.split(/\s*,\s*/),j=c.trim;h=e.shift();)if(h){var o=
  7. null;-1!=h.indexOf(":")?(o=h.split(":"),h=j(o[0]),o=j(o[1])):h=j(h);o||(o=h);this._attachEvents.push(this.connect(k,g[h]||h,o))}}}},destroyRendering:function(){d.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];d.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});o._templateCache={};o.getCachedTemplate=function(a,d){var f=o._templateCache,k=a,c=f[k];if(c){try{if(!c.ownerDocument||c.ownerDocument==l.doc)return c}catch(e){}h.destroy(c)}a=
  8. b.trim(a);if(d||a.match(/\$\{([^\}]+)\}/g))return f[k]=a;c=h.toDom(a);if(1!=c.nodeType)throw Error("Invalid template: "+a);return f[k]=c};f("ie")&&k.addOnWindowUnload(function(){var a=o._templateCache,b;for(b in a){var d=a[b];"object"==typeof d&&h.destroy(d);delete a[b]}});c.extend(a,{dojoAttachEvent:"",dojoAttachPoint:""});return o})},"dojox/string/tokenize":function(){define("dojox/string/tokenize",["dojo/_base/lang","dojo/_base/sniff"],function(c,g){var a=c.getObject("dojox.string",!0).tokenize;
  9. return a=function(a,c,d,j){var h=[],f,k;for(k=0;f=c.exec(a);){k=a.slice(k,c.lastIndex-f[0].length);k.length&&h.push(k);if(d){if(g("opera")){for(k=f.slice(0);k.length<f.length;)k.push(null);f=k}f=d.apply(j,f.slice(1).concat(h.length));"undefined"!=typeof f&&h.push(f)}k=c.lastIndex}k=a.slice(k);k.length&&h.push(k);return h}})},"dijit/_Templated":function(){define("dijit/_Templated","./_WidgetBase ./_TemplatedMixin ./_WidgetsInTemplateMixin dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/_base/kernel".split(" "),
  10. function(c,g,a,b,e,d,j){d.extend(c,{waiRole:"",waiState:""});return e("dijit._Templated",[g,a],{widgetsInTemplate:!1,constructor:function(){j.deprecated(this.declaredClass+": dijit._Templated deprecated, use dijit._TemplatedMixin and if necessary dijit._WidgetsInTemplateMixin","","2.0")},_attachTemplateNodes:function(a,f){this.inherited(arguments);for(var c=d.isArray(a)?a:a.all||a.getElementsByTagName("*"),e=d.isArray(a)?0:-1;e<c.length;e++){var j=-1==e?a:c[e],m=f(j,"waiRole");m&&j.setAttribute("role",
  11. m);(m=f(j,"waiState"))&&b.forEach(m.split(/\s*,\s*/),function(a){-1!=a.indexOf("-")&&(a=a.split("-"),j.setAttribute("aria-"+a[0],a[1]))})}}})})},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin","dojo/touch dojo/_base/array dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/_base/window".split(" "),function(c,g,a,b,e,d){return a("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);g.forEach(["onmouseenter","onmouseleave",
  12. c.press],function(a){this.connect(this.domNode,a,"_cssMouseEvent")},this);g.forEach("disabled readOnly checked selected focused state hovering active".split(" "),function(a){this.watch(a,e.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes)this._trackMouseState(this[a],this.cssStateNodes[a]);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseenter":case "mouseover":this._set("hovering",!0);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",
  13. !1);this._set("active",!1);break;case "mousedown":case "touchpress":this._set("active",!0);this._mouseDown=!0;var b=this.connect(d.body(),c.release,function(){this._mouseDown=!1;this._set("active",!1);this.disconnect(b)})}},_setStateClass:function(){function a(d){b=b.concat(g.map(b,function(a){return a+d}),"dijit"+d)}var b=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");var d="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&a(d);this.state&&a(this.state);this.selected&&
  14. a("Selected");this.disabled?a("Disabled"):this.readOnly?a("ReadOnly"):this.active?a("Active"):this.hovering&&a("Hover");this.focused&&a("Focused");var d=this.stateNode||this.domNode,c={};g.forEach(d.className.split(" "),function(a){c[a]=!0});"_stateClasses"in this&&g.forEach(this._stateClasses,function(a){delete c[a]});g.forEach(b,function(a){c[a]=!0});var e=[],o;for(o in c)e.push(o);d.className=e.join(" ");this._stateClasses=b},_trackMouseState:function(a,d){function f(){var c="disabled"in m&&m.disabled||
  15. "readonly"in m&&m.readonly;b.toggle(a,d+"Hover",k&&!l&&!c);b.toggle(a,d+"Active",l&&!c);b.toggle(a,d+"Focused",o&&!c)}var k=!1,l=!1,o=!1,m=this,g=e.hitch(this,"connect",a);g("onmouseenter",function(){k=!0;f()});g("onmouseleave",function(){l=k=!1;f()});g(c.press,function(){l=!0;f()});g(c.release,function(){l=!1;f()});g("onfocus",function(){o=!0;f()});g("onblur",function(){o=!1;f()});this.watch("disabled",f);this.watch("readOnly",f)}})})},"url:dijit/form/templates/ComboButton.html":'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" data-dojo-attach-point="buttonNode" data-dojo-attach-event="ondijitclick:_onClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdata-dojo-attach-point="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" data-dojo-attach-point="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" data-dojo-attach-point="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdata-dojo-attach-point="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdata-dojo-attach-event="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" data-dojo-attach-point="valueNode"\n\t\t/></td></tr></tbody\n></table>\n',
  16. "dijit/layout/ScrollingTabController":function(){require({cache:{"url:dijit/layout/templates/ScrollingTabController.html":'<div class="dijitTabListContainer-${tabPosition}" style="visibility:hidden">\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerMenuButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_menuBtn"\n\t\t\tdata-dojo-props="containerId: \'${containerId}\', iconClass: \'dijitTabStripMenuIcon\',\n\t\t\t\t\tdropDownPosition: [\'below-alt\', \'above-alt\']"\n\t\t\tdata-dojo-attach-point="_menuBtn" showLabel="false" title="">&#9660;</div>\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_leftBtn"\n\t\t\tdata-dojo-props="iconClass:\'dijitTabStripSlideLeftIcon\', showLabel:false, title:\'\'"\n\t\t\tdata-dojo-attach-point="_leftBtn" data-dojo-attach-event="onClick: doSlideLeft">&#9664;</div>\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_rightBtn"\n\t\t\tdata-dojo-props="iconClass:\'dijitTabStripSlideRightIcon\', showLabel:false, title:\'\'"\n\t\t\tdata-dojo-attach-point="_rightBtn" data-dojo-attach-event="onClick: doSlideRight">&#9654;</div>\n\t<div class=\'dijitTabListWrapper\' data-dojo-attach-point=\'tablistWrapper\'>\n\t\t<div role=\'tablist\' data-dojo-attach-event=\'onkeypress:onkeypress\'\n\t\t\t\tdata-dojo-attach-point=\'containerNode\' class=\'nowrapTabStrip\'></div>\n\t</div>\n</div>',
  17. "url:dijit/layout/templates/_ScrollingTabControllerButton.html":'<div data-dojo-attach-event="onclick:_onClick">\n\t<div role="presentation" class="dijitTabInnerDiv" data-dojo-attach-point="innerDiv,focusNode">\n\t\t<div role="presentation" class="dijitTabContent dijitButtonContents" data-dojo-attach-point="tabContent">\n\t\t\t<img role="presentation" alt="" src="${_blankGif}" class="dijitTabStripIcon" data-dojo-attach-point="iconNode"/>\n\t\t\t<span data-dojo-attach-point="containerNode,titleNode" class="dijitButtonText"></span>\n\t\t</div>\n\t</div>\n</div>'}});
  18. define("dijit/layout/ScrollingTabController","dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/_base/lang dojo/query dojo/_base/sniff ../registry dojo/text!./templates/ScrollingTabController.html dojo/text!./templates/_ScrollingTabControllerButton.html ./TabController ./utils ../_WidgetsInTemplateMixin ../Menu ../MenuItem ../form/Button ../_HasDropDown dojo/NodeList-dom".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q,v){l=g("dijit.layout.ScrollingTabController",
  19. [m,p],{baseClass:"dijitTabController dijitScrollingTabController",templateString:l,useMenu:!0,useSlider:!0,tabStripClass:"",widgetsInTemplate:!0,_minScroll:5,_setClassAttr:{node:"containerNode",type:"class"},buildRendering:function(){this.inherited(arguments);var b=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();this.tabStripClass||(this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None",a.add(b,"tabStrip-disabled"));
  20. a.add(this.tablistWrapper,this.tabStripClass)},onStartup:function(){this.inherited(arguments);e.set(this.domNode,"visibility","");this._postStartup=!0},onAddChild:function(a,b){this.inherited(arguments);c.forEach(["label","iconClass"],function(b){this.pane2watches[a.id].push(this.pane2button[a.id].watch(b,j.hitch(this,function(){this._postStartup&&this._dim&&this.resize(this._dim)})))},this);e.set(this.containerNode,"width",e.get(this.containerNode,"width")+200+"px")},onRemoveChild:function(a,b){this._selectedTab===
  21. this.pane2button[a.id].domNode&&(this._selectedTab=null);this.inherited(arguments)},_initButtons:function(){this._btnWidth=0;this._buttons=h("> .tabStripButton",this.domNode).filter(function(a){if(this.useMenu&&a==this._menuBtn.domNode||this.useSlider&&(a==this._rightBtn.domNode||a==this._leftBtn.domNode))return this._btnWidth+=b.getMarginSize(a).w,!0;e.set(a,"display","none");return!1},this)},_getTabsWidth:function(){var a=this.getChildren();if(a.length){var b=a[this.isLeftToRight()?0:a.length-1].domNode,
  22. a=a[this.isLeftToRight()?a.length-1:0].domNode;return a.offsetLeft+e.get(a,"width")-b.offsetLeft}return 0},_enableBtn:function(a){var b=this._getTabsWidth(),a=a||e.get(this.scrollNode,"width");return 0<b&&a<b},resize:function(a){this._dim=a;this.scrollNode.style.height="auto";var d=this._contentBox=n.marginBox2contentBox(this.domNode,{h:0,w:a.w});d.h=this.scrollNode.offsetHeight;b.setContentSize(this.domNode,d);d=this._enableBtn(this._contentBox.w);this._buttons.style("display",d?"":"none");this._leftBtn.layoutAlign=
  23. "left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";n.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);this._selectedTab&&(this._anim&&"playing"==this._anim.status()&&this._anim.stop(),this.scrollNode.scrollLeft=this._convertToScrollLeft(this._getScrollForSelectedTab()));this._setButtonClass(this._getScroll());this._postResize=!0;return{h:this._contentBox.h,
  24. w:a.w}},_getScroll:function(){return this.isLeftToRight()||8>f("ie")||f("ie")&&f("quirks")||f("webkit")?this.scrollNode.scrollLeft:e.get(this.containerNode,"width")-e.get(this.scrollNode,"width")+(8==f("ie")?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(a){if(this.isLeftToRight()||8>f("ie")||f("ie")&&f("quirks")||f("webkit"))return a;var b=e.get(this.containerNode,"width")-e.get(this.scrollNode,"width");return(8==f("ie")?-1:1)*(a-b)},onSelectChild:function(a){var b=this.pane2button[a.id];
  25. if(b&&a){b=b.domNode;if(b!=this._selectedTab&&(this._selectedTab=b,this._postResize)){var d=this._getScroll();(d>b.offsetLeft||d+e.get(this.scrollNode,"width")<b.offsetLeft+e.get(b,"width"))&&this.createSmoothScroll().play()}this.inherited(arguments)}},_getScrollBounds:function(){var a=this.getChildren(),b=e.get(this.scrollNode,"width"),d=e.get(this.containerNode,"width")-b,c=this._getTabsWidth();if(a.length&&c>b)return{min:this.isLeftToRight()?0:a[a.length-1].domNode.offsetLeft,max:this.isLeftToRight()?
  26. a[a.length-1].domNode.offsetLeft+e.get(a[a.length-1].domNode,"width")-b:d};a=this.isLeftToRight()?0:d;return{min:a,max:a}},_getScrollForSelectedTab:function(){var a=this._selectedTab,b=e.get(this.scrollNode,"width"),d=this._getScrollBounds(),a=a.offsetLeft+e.get(a,"width")/2-b/2;return a=Math.min(Math.max(a,d.min),d.max)},createSmoothScroll:function(a){if(0<arguments.length)var b=this._getScrollBounds(),a=Math.min(Math.max(a,b.min),b.max);else a=this._getScrollForSelectedTab();this._anim&&"playing"==
  27. this._anim.status()&&this._anim.stop();var c=this,f=this.scrollNode,k=new d.Animation({beforeBegin:function(){this.curve&&delete this.curve;var b=f.scrollLeft,e=c._convertToScrollLeft(a);k.curve=new d._Line(b,e)},onAnimate:function(a){f.scrollLeft=a}});this._anim=k;this._setButtonClass(a);return k},_getBtnNode:function(b){for(b=b.target;b&&!a.contains(b,"tabStripButton");)b=b.parentNode;return b},doSlideRight:function(a){this.doSlide(1,this._getBtnNode(a))},doSlideLeft:function(a){this.doSlide(-1,
  28. this._getBtnNode(a))},doSlide:function(b,d){if(!d||!a.contains(d,"dijitTabDisabled")){var c=0.75*e.get(this.scrollNode,"width")*b,c=this._getScroll()+c;this._setButtonClass(c);this.createSmoothScroll(c).play()}},_setButtonClass:function(a){var b=this._getScrollBounds();this._leftBtn.set("disabled",a<=b.min);this._rightBtn.set("disabled",a>=b.max)}});o=g("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:o,tabIndex:"",isFocusable:function(){return!1}});
  29. g("dijit.layout._ScrollingTabControllerButton",[q,o]);g("dijit.layout._ScrollingTabControllerMenuButton",[q,v,o],{containerId:"",tabIndex:"-1",isLoaded:function(){return!1},loadDropDown:function(a){this.dropDown=new t({id:this.containerId+"_menu",dir:this.dir,lang:this.lang,textDir:this.textDir});var b=k.byId(this.containerId);c.forEach(b.getChildren(),function(a){var d=new s({id:a.id+"_stcMi",label:a.title,iconClass:a.iconClass,dir:a.dir,lang:a.lang,textDir:a.textDir,onClick:function(){b.selectChild(a)}});
  30. this.dropDown.addChild(d)},this);a()},closeDropDown:function(a){this.inherited(arguments);this.dropDown&&(this.dropDown.destroyRecursive(),delete this.dropDown)}});return l})},"dijit/place":function(){define("dijit/place","dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport .".split(" "),function(c,g,a,b,e,d,j){function h(a,b,h,j){var m=d.getEffectiveBox(a.ownerDocument);(!a.parentNode||"body"!=String(a.parentNode.tagName).toLowerCase())&&e.body().appendChild(a);
  31. var n=null;c.some(b,function(b){var d=b.corner,c=b.pos,k=0,e={w:{L:m.l+m.w-c.x,R:c.x-m.l,M:m.w}[d.charAt(1)],h:{T:m.t+m.h-c.y,B:c.y-m.t,M:m.h}[d.charAt(0)]},u=a.style;u.left=u.right="auto";h&&(k=h(a,b.aroundCorner,d,e,j),k="undefined"==typeof k?0:k);var x=a.style,w=x.display,r=x.visibility;"none"==x.display&&(x.visibility="hidden",x.display="");u=g.position(a);x.display=w;x.visibility=r;w={L:c.x,R:c.x-u.w,M:Math.max(m.l,Math.min(m.l+m.w,c.x+(u.w>>1))-u.w)}[d.charAt(1)];r={T:c.y,B:c.y-u.h,M:Math.max(m.t,
  32. Math.min(m.t+m.h,c.y+(u.h>>1))-u.h)}[d.charAt(0)];c=Math.max(m.l,w);x=Math.max(m.t,r);w=Math.min(m.l+m.w,w+u.w);r=Math.min(m.t+m.h,r+u.h);w-=c;r-=x;k+=u.w-w+(u.h-r);if(null==n||k<n.overflow)n={corner:d,aroundCorner:b.aroundCorner,x:c,y:x,w:w,h:r,overflow:k,spaceAvailable:e};return!k});n.overflow&&h&&h(a,n.aroundCorner,n.corner,n.spaceAvailable,j);b=a.style;b.top=n.y+"px";b.left=n.x+"px";b.right="auto";return n}return j.place={at:function(a,b,d,e){d=c.map(d,function(a){var d={corner:a,pos:{x:b.x,y:b.y}};
  33. e&&(d.pos.x+="L"==a.charAt(1)?e.x:-e.x,d.pos.y+="T"==a.charAt(0)?e.y:-e.y);return d});return h(a,d)},around:function(d,k,e,j,m){function n(a,b){I.push({aroundCorner:a,corner:b,pos:{x:{L:x,R:x+r,M:x+(r>>1)}[a.charAt(1)],y:{T:w,B:w+E,M:w+(E>>1)}[a.charAt(0)]}})}var p="string"==typeof k||"offsetWidth"in k?g.position(k,!0):k;if(k.parentNode)for(var t="absolute"==a.getComputedStyle(k).position,k=k.parentNode;k&&1==k.nodeType&&"BODY"!=k.nodeName;){var s=g.position(k,!0),q=a.getComputedStyle(k);/relative|absolute/.test(q.position)&&
  34. (t=!1);if(!t&&/hidden|auto|scroll/.test(q.overflow)){var v=Math.min(p.y+p.h,s.y+s.h),u=Math.min(p.x+p.w,s.x+s.w);p.x=Math.max(p.x,s.x);p.y=Math.max(p.y,s.y);p.h=v-p.y;p.w=u-p.x}"absolute"==q.position&&(t=!0);k=k.parentNode}var x=p.x,w=p.y,r="w"in p?p.w:p.w=p.width,E="h"in p?p.h:(b.deprecated("place.around: dijit.place.__Rectangle: { x:"+x+", y:"+w+", height:"+p.height+", width:"+r+" } has been deprecated. Please use { x:"+x+", y:"+w+", h:"+p.height+", w:"+r+" }","","2.0"),p.h=p.height),I=[];c.forEach(e,
  35. function(a){var b=j;switch(a){case "above-centered":n("TM","BM");break;case "below-centered":n("BM","TM");break;case "after-centered":b=!b;case "before-centered":n(b?"ML":"MR",b?"MR":"ML");break;case "after":b=!b;case "before":n(b?"TL":"TR",b?"TR":"TL");n(b?"BL":"BR",b?"BR":"BL");break;case "below-alt":b=!b;case "below":n(b?"BL":"BR",b?"TL":"TR");n(b?"BR":"BL",b?"TR":"TL");break;case "above-alt":b=!b;case "above":n(b?"TL":"TR",b?"BL":"BR");n(b?"TR":"TL",b?"BR":"BL");break;default:n(a.aroundCorner,
  36. a.corner)}});d=h(d,I,m,{w:r,h:E});d.aroundNodePos=p;return d}}})},"dijit/_HasDropDown":function(){define("dijit/_HasDropDown","dojo/_base/declare dojo/_base/Deferred dojo/_base/event dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/touch dojo/_base/window ./registry ./focus ./popup ./_FocusMixin ./Viewport".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q){return c("dijit._HasDropDown",s,{_buttonNode:null,_arrowWrapperNode:null,
  37. _popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(a){!this.disabled&&!this.readOnly&&("MSPointerDown"!=a.type&&"pointerdown"!=a.type&&a.preventDefault(),this._docHandler=this.connect(m.doc,o.release,"_onDropDownMouseUp"),this.toggleDropDown())},_onDropDownMouseUp:function(a){a&&this._docHandler&&this.disconnect(this._docHandler);var b=this.dropDown,c=!1;if(a&&this._opened){var k=
  38. j.position(this._buttonNode,!0);if(!(a.pageX>=k.x&&a.pageX<=k.x+k.w)||!(a.pageY>=k.y&&a.pageY<=k.y+k.h)){for(k=a.target;k&&!c;)d.contains(k,"dijitPopup")?c=!0:k=k.parentNode;if(c){k=a.target;if(b.onItemClick){for(var e;k&&!(e=n.byNode(k));)k=k.parentNode;if(e&&e.onClick&&e.getParent)e.getParent().onItemClick(e,a)}return}}}this._opened?b.focus&&!1!==b.autoFocus&&window.setTimeout(l.hitch(b,"focus"),1):setTimeout(l.hitch(this,"focus"),0);f("ios")&&(this._justGotMouseUp=!0,setTimeout(l.hitch(this,function(){this._justGotMouseUp=
  39. !1}),0))},_onDropDownClick:function(b){f("ios")&&!this._justGotMouseUp&&(this._onDropDownMouseDown(b),this._onDropDownMouseUp(b));this._stopClickEvents&&a.stop(b)},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||
  40. this.dropDownPosition[0]||"Down";d.add(this._arrowWrapperNode||this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,o.press,"_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeydown","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp")},destroy:function(){this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},
  41. _onKey:function(b){if(!this.disabled&&!this.readOnly){var d=this.dropDown,c=b.target;if(d&&(this._opened&&d.handleKey)&&!1===d.handleKey(b))a.stop(b);else if(d&&this._opened&&b.keyCode==k.ESCAPE)this.closeDropDown(),a.stop(b);else if(!this._opened&&(b.keyCode==k.DOWN_ARROW||(b.keyCode==k.ENTER||b.keyCode==dojo.keys.SPACE)&&("input"!==(c.tagName||"").toLowerCase()||c.type&&"text"!==c.type.toLowerCase())))this._toggleOnKeyUp=!0,a.stop(b)}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
  42. this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(l.hitch(a,"focus"),1)}},_onBlur:function(){var a=p.curNode&&this.dropDown&&b.isDescendant(p.curNode,this.dropDown.domNode);this.closeDropDown(a);this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(a){a()},loadAndOpenDropDown:function(){var a=new g,b=l.hitch(this,function(){this.openDropDown();a.resolve(this.dropDown)});this.isLoaded()?b():this.loadDropDown(b);return a},toggleDropDown:function(){!this.disabled&&
  43. !this.readOnly&&(this._opened?this.closeDropDown():this.loadAndOpenDropDown())},openDropDown:function(){var a=this.dropDown,b=a.domNode,c=this._aroundNode||this.domNode,k=this;this._preparedNode||(this._preparedNode=!0,b.style.width&&(this._explicitDDWidth=!0),b.style.height&&(this._explicitDDHeight=!0));if(this.maxHeight||this.forceWidth||this.autoWidth){var f={display:"",visibility:"hidden"};this._explicitDDWidth||(f.width="");this._explicitDDHeight||(f.height="");h.set(b,f);f=this.maxHeight;if(-1==
  44. f)var f=q.getEffectiveBox(this.ownerDocument),o=j.position(c,!1),f=Math.floor(Math.max(o.y,f.h-(o.y+o.h)));t.moveOffScreen(a);a.startup&&!a._started&&a.startup();var o=j.getMarginSize(b),m=f&&o.h>f;h.set(b,{overflow:m?"auto":"visible"});m?(o.h=f,"w"in o&&(o.w+=16)):delete o.h;this.forceWidth?o.w=c.offsetWidth:this.autoWidth?o.w=Math.max(o.w,c.offsetWidth):delete o.w;l.isFunction(a.resize)?a.resize(o):j.setMarginBox(b,o)}a=t.open({parent:this,popup:a,around:c,orient:this.dropDownPosition,onExecute:function(){k.closeDropDown(!0)},
  45. onCancel:function(){k.closeDropDown(!0)},onClose:function(){e.set(k._popupStateNode,"popupActive",!1);d.remove(k._popupStateNode,"dijitHasDropDownOpen");k._opened=!1}});e.set(this._popupStateNode,"popupActive","true");d.add(k._popupStateNode,"dijitHasDropDownOpen");this._opened=!0;return a},closeDropDown:function(a){this._opened&&(a&&this.focus(),t.close(this.dropDown),this._opened=!1)}})})},"dijit/tree/TreeStoreModel":function(){define("dijit/tree/TreeStoreModel",["dojo/_base/array","dojo/aspect",
  46. "dojo/_base/declare","dojo/_base/json","dojo/_base/lang"],function(c,g,a,b,e){return a("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(a){e.mixin(this,a);this.connects=[];a=this.store;if(!a.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.Tree: store must support dojo.data.Identity");a.getFeatures()["dojo.data.api.Notification"]&&(this.connects=this.connects.concat([g.after(a,
  47. "onNew",e.hitch(this,"onNewItem"),!0),g.after(a,"onDelete",e.hitch(this,"onDeleteItem"),!0),g.after(a,"onSet",e.hitch(this,"onSetItem"),!0)]))},destroy:function(){for(var a;a=this.connects.pop();)a.remove()},getRoot:function(a,c){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:e.hitch(this,function(c){if(1!=c.length)throw Error(this.declaredClass+": query "+b.stringify(this.query)+" returned "+c.length+" items, but must return exactly one item");this.root=c[0];a(this.root)}),
  48. onError:c})},mayHaveChildren:function(a){return c.some(this.childrenAttrs,function(b){return this.store.hasAttribute(a,b)},this)},getChildren:function(a,b,h){var f=this.store;if(f.isItemLoaded(a)){for(var k=[],l=0;l<this.childrenAttrs.length;l++)var o=f.getValues(a,this.childrenAttrs[l]),k=k.concat(o);var m=0;this.deferItemLoadingUntilExpand||c.forEach(k,function(a){f.isItemLoaded(a)||m++});0==m?b(k):c.forEach(k,function(a,d){f.isItemLoaded(a)||f.loadItem({item:a,onItem:function(a){k[d]=a;0==--m&&
  49. b(k)},onError:h})})}else{var g=e.hitch(this,arguments.callee);f.loadItem({item:a,onItem:function(a){g(a,b,h)},onError:h})}},isItem:function(a){return this.store.isItem(a)},fetchItemByIdentity:function(a){this.store.fetchItemByIdentity(a)},getIdentity:function(a){return this.store.getIdentity(a)},getLabel:function(a){return this.labelAttr?this.store.getValue(a,this.labelAttr):this.store.getLabel(a)},newItem:function(a,b,c){var f={parent:b,attribute:this.childrenAttrs[0]},k;this.newItemIdAttr&&a[this.newItemIdAttr]?
  50. this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,onItem:function(e){e?this.pasteItem(e,null,b,!0,c):(k=this.store.newItem(a,f))&&void 0!=c&&this.pasteItem(k,b,b,!1,c)}}):(k=this.store.newItem(a,f))&&void 0!=c&&this.pasteItem(k,b,b,!1,c)},pasteItem:function(a,b,e,f,k){var l=this.store,o=this.childrenAttrs[0];b&&c.forEach(this.childrenAttrs,function(k){if(l.containsValue(b,k,a)){if(!f){var e=c.filter(l.getValues(b,k),function(b){return b!=a});l.setValues(b,k,e)}o=k}});if(e)if("number"==
  51. typeof k){var m=l.getValues(e,o).slice();m.splice(k,0,a);l.setValues(e,o,m)}else l.setValues(e,o,l.getValues(e,o).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,b){b&&this.getChildren(b.item,e.hitch(this,function(a){this.onChildrenChange(b.item,a)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,b){if(-1!=c.indexOf(this.childrenAttrs,b))this.getChildren(a,e.hitch(this,function(b){this.onChildrenChange(a,b)}));else this.onChange(a)}})})},
  52. "dojo/dnd/Selector":function(){define("dojo/dnd/Selector",["../main","./common","./Container"],function(c){c.declare("dojo.dnd.Selector",c.dnd.Container,{constructor:function(g,a){a||(a={});this.singular=a.singular;this.autoSync=a.autoSync;this.selection={};this.anchor=null;this.simpleSelection=!1;this.events.push(c.connect(this.node,"onmousedown",this,"onMouseDown"),c.connect(this.node,"onmouseup",this,"onMouseUp"))},singular:!1,getSelectedNodes:function(){var g=new c.NodeList,a=c.dnd._empty,b;for(b in this.selection)b in
  53. a||g.push(c.byId(b));return g},selectNone:function(){return this._removeSelection()._removeAnchor()},selectAll:function(){this.forInItems(function(g,a){this._addItemClass(c.byId(a),"Selected");this.selection[a]=1},this);return this._removeAnchor()},deleteSelectedNodes:function(){var g=c.dnd._empty,a;for(a in this.selection)if(!(a in g)){var b=c.byId(a);this.delItem(a);c.destroy(b)}this.anchor=null;this.selection={};return this},forInSelectedItems:function(g,a){var a=a||c.global,b=this.selection,e=
  54. c.dnd._empty,d;for(d in b)d in e||g.call(a,this.getItem(d),d,this)},sync:function(){c.dnd.Selector.superclass.sync.call(this);this.anchor&&!this.getItem(this.anchor.id)&&(this.anchor=null);var g=[],a=c.dnd._empty,b;for(b in this.selection)b in a||this.getItem(b)||g.push(b);c.forEach(g,function(a){delete this.selection[a]},this);return this},insertNodes:function(g,a,b,e){var d=this._normalizedCreator;this._normalizedCreator=function(a,b){var c=d.call(this,a,b);g?(this.anchor?this.anchor!=c.node&&(this._removeItemClass(c.node,
  55. "Anchor"),this._addItemClass(c.node,"Selected")):(this.anchor=c.node,this._removeItemClass(c.node,"Selected"),this._addItemClass(this.anchor,"Anchor")),this.selection[c.node.id]=1):(this._removeItemClass(c.node,"Selected"),this._removeItemClass(c.node,"Anchor"));return c};c.dnd.Selector.superclass.insertNodes.call(this,a,b,e);this._normalizedCreator=d;return this},destroy:function(){c.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null},onMouseDown:function(g){this.autoSync&&
  56. this.sync();if(this.current)if(!this.singular&&!c.isCopyKey(g)&&!g.shiftKey&&this.current.id in this.selection)this.simpleSelection=!0,g.button===c.mouseButtons.LEFT&&c.stopEvent(g);else{if(!this.singular&&g.shiftKey){c.isCopyKey(g)||this._removeSelection();var a=this.getAllNodes();if(a.length&&(this.anchor||(this.anchor=a[0],this._addItemClass(this.anchor,"Anchor")),this.selection[this.anchor.id]=1,this.anchor!=this.current)){for(var b=0;b<a.length;++b){var e=a[b];if(e==this.anchor||e==this.current)break}for(++b;b<
  57. a.length;++b){e=a[b];if(e==this.anchor||e==this.current)break;this._addItemClass(e,"Selected");this.selection[e.id]=1}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1}}else this.singular?this.anchor==this.current?c.isCopyKey(g)&&this.selectNone():(this.selectNone(),this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1):c.isCopyKey(g)?this.anchor==this.current?(delete this.selection[this.anchor.id],this._removeAnchor()):this.current.id in
  58. this.selection?(this._removeItemClass(this.current,"Selected"),delete this.selection[this.current.id]):(this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),this._addItemClass(this.anchor,"Selected")),this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1):this.current.id in this.selection||(this.selectNone(),this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1);c.stopEvent(g)}},onMouseUp:function(){this.simpleSelection&&
  59. (this.simpleSelection=!1,this.selectNone(),this.current&&(this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1))},onMouseMove:function(){this.simpleSelection=!1},onOverEvent:function(){this.onmousemoveEvent=c.connect(this.node,"onmousemove",this,"onMouseMove")},onOutEvent:function(){c.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent},_removeSelection:function(){var g=c.dnd._empty,a;for(a in this.selection)if(!(a in g)){var b=c.byId(a);b&&
  60. this._removeItemClass(b,"Selected")}this.selection={};return this},_removeAnchor:function(){this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),this.anchor=null);return this}});return c.dnd.Selector})},"dijit/_MenuBase":function(){define("dijit/_MenuBase","./popup dojo/window ./_Widget ./_KeyNavContainer ./_TemplatedMixin dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/lang dojo/_base/array".split(" "),function(c,g,a,b,e,d,j,h,f,k,l){return d("dijit._MenuBase",[a,e,b],{parentMenu:null,
  61. popupDelay:500,onExecute:function(){},onCancel:function(){},_moveToPopup:function(a){this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled?this.focusedChild._onClick(a):(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var a=this.currentPopup.parentMenu;a.focusedChild&&a.focusedChild._setSelected(!1);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(!0);this._stopPendingCloseTimer(this.currentPopup)}},
  62. onItemHover:function(a){this.isActive&&(this.focusChild(a),this.focusedChild.popup&&(!this.focusedChild.disabled&&!this.hover_timer)&&(this.hover_timer=setTimeout(k.hitch(this,"_openPopup"),this.popupDelay)));this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(!1);var b=a.popup;b&&(this._stopPendingCloseTimer(b),b._pendingClose_timer=setTimeout(function(){b._pendingClose_timer=null;b.parentMenu&&(b.parentMenu.currentPopup=null);
  63. c.close(b)},this.popupDelay))},onItemUnhover:function(a){this.isActive&&this._stopPopupTimer();this._hoveredChild==a&&(this._hoveredChild=null)},_stopPopupTimer:function(){this.hover_timer&&(clearTimeout(this.hover_timer),this.hover_timer=null)},_stopPendingCloseTimer:function(a){a._pendingClose_timer&&(clearTimeout(a._pendingClose_timer),a._pendingClose_timer=null)},_stopFocusTimer:function(){this._focus_timer&&(clearTimeout(this._focus_timer),this._focus_timer=null)},_getTopMenu:function(){for(var a=
  64. this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,b){"undefined"==typeof this.isShowingNow&&this._markActive();this.focusChild(a);if(a.disabled)return!1;a.popup?this._openPopup():(this.onExecute(),a.onClick(b))},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var b=a.popup;if(!b.isShowingNow){this.currentPopup&&(this._stopPendingCloseTimer(this.currentPopup),c.close(this.currentPopup));b.parentMenu=this;b.from_item=a;var d=this;c.open({parent:this,popup:b,
  65. around:a.domNode,orient:this._orient||["after","before"],onCancel:function(){d.focusChild(a);d._cleanUp();a._setSelected(!0);d.focusedChild=a},onExecute:k.hitch(this,"_cleanUp")});this.currentPopup=b;this.popupHoverHandle&&this.disconnect(this.popupHoverHandle);this.popupHoverHandle=this.connect(b.domNode,"onmouseenter","_onPopupHover");b.focus&&(b._focus_timer=setTimeout(k.hitch(b,function(){this._focus_timer=null;this.focus()}),0))}}},_markActive:function(){this.isActive=!0;f.replace(this.domNode,
  66. "dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=!0;this._markActive()},_markInactive:function(){this.isActive=!1;f.replace(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=!1;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();this.currentPopup&&(0<=l.indexOf(this._focusManager.activeStack,this.id)&&(h.set(this.focusedChild.focusNode,"tabIndex",this.tabIndex),this.focusedChild.focusNode.focus()),
  67. c.close(this.currentPopup),this.currentPopup=null);this.focusedChild&&(this.focusedChild._setSelected(!1),this.focusedChild._onUnhover(),this.focusedChild=null)},_onItemFocus:function(a){this._hoveredChild&&this._hoveredChild!=a&&this._hoveredChild._onUnhover()},_onBlur:function(){this._cleanUp();this.inherited(arguments)},_cleanUp:function(){this._closeChild();"undefined"==typeof this.isShowingNow&&this._markInactive()}})})},"dijit/focus":function(){define("dijit/focus","dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/Evented dojo/_base/lang dojo/on dojo/domReady dojo/_base/sniff dojo/Stateful dojo/_base/window dojo/window ./a11y ./registry ./main".split(" "),
  68. function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t){var s=new (g([l,d],{curNode:null,activeStack:[],constructor:function(){var b=j.hitch(this,function(b){a.isDescendant(this.curNode,b)&&this.set("curNode",null);a.isDescendant(this.prevNode,b)&&this.set("prevNode",null)});c.before(e,"empty",b);c.before(e,"destroy",b)},registerIframe:function(a){return this.registerWin(a.contentWindow,a)},registerWin:function(a,b){var d=this,c=a.document&&a.document.body;if(c){var k=h(c,"mousedown",function(a){d._justMouseDowned=
  69. !0;setTimeout(function(){d._justMouseDowned=!1},13);if(!a||!(a.target&&null==a.target.parentNode))d._onTouchNode(b||a.target,"mouse")}),e=h(c,"focusin",function(a){if(a.target.tagName){var c=a.target.tagName.toLowerCase();"#document"==c||"body"==c||(n.isTabNavigable(a.target)?d._onFocusNode(b||a.target):d._onTouchNode(b||a.target))}}),f=h(c,"focusout",function(a){d._onBlurNode(b||a.target)});return{remove:function(){k.remove();e.remove();f.remove();c=k=e=f=null}}}},_onBlurNode:function(){this._clearFocusTimer&&
  70. clearTimeout(this._clearFocusTimer);this._clearFocusTimer=setTimeout(j.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0);this._justMouseDowned||(this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),this._clearActiveWidgetsTimer=setTimeout(j.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),100))},_onTouchNode:function(a,d){this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);
  71. var c=[];try{for(;a;){var k=b.get(a,"dijitPopupParent");if(k)a=p.byId(k).domNode;else if(a.tagName&&"body"==a.tagName.toLowerCase()){if(a===o.body())break;a=m.get(a.ownerDocument).frameElement}else{var e=a.getAttribute&&a.getAttribute("widgetId"),f=e&&p.byId(e);f&&!("mouse"==d&&f.get("disabled"))&&c.unshift(e);a=a.parentNode}}}catch(h){}this._setStack(c,d)},_onFocusNode:function(a){a&&9!=a.nodeType&&(this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(a),
  72. a!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",a)))},_setStack:function(a,b){var d=this.activeStack,c=d.length-1,k=a.length-1;if(a[k]!=d[c]){this.set("activeStack",a);var e;for(e=c;0<=e&&d[e]!=a[e];e--)if(c=p.byId(d[e]))c._hasBeenBlurred=!0,c.set("focused",!1),c._focusManager==this&&c._onBlur(b),this.emit("widget-blur",c,b);for(e++;e<=k;e++)if(c=p.byId(a[e]))c.set("focused",!0),c._focusManager==this&&c._onFocus(b),this.emit("widget-focus",c,b)}},focus:function(a){if(a)try{a.focus()}catch(b){}}}));
  73. f(function(){var a=s.registerWin(m.get(document));k("ie")&&h(window,"unload",function(){a&&(a.remove(),a=null)})});t.focus=function(a){s.focus(a)};for(var q in s)/^_/.test(q)||(t.focus[q]="function"==typeof s[q]?j.hitch(s,q):s[q]);s.watch(function(a,b,d){t.focus[a]=d});return s})},"dojo/i18n":function(){define("dojo/i18n","./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json".split(" "),function(c,g,a,b,e,d,j,h){a.add("dojo-preload-i18n-Api",1);var f=c.i18n={},
  74. k=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,l={},o=c.getL10nName=function(a,b,d){d=d?d.toLowerCase():c.locale;a="dojo/i18n!"+a.replace(/\./g,"/");b=b.replace(/\./g,"/");return/root/i.test(d)?a+"/nls/"+b:a+"/nls/"+d+"/"+b},m=function(f,j,o){if(a("dojo-preload-i18n-Api")){var m=f.split("*"),g="preload"==m[1];g&&(l[f]||(l[f]=1,q(m[2],h.parse(m[3]),1)),o(1));if(!(m=g))t&&s.push([f,j,o]),m=t;if(m)return}var f=k.exec(f),u=f[1]+"/",n=f[5]||f[4],p=u+n,f=(m=f[5]&&f[4])||c.locale,v=p+"/"+f;m?f=[f]:(m=e.extraLocale||
  75. [],m=d.isArray(m)?m:[m],m.push(f),f=m);var A=f.length;b.forEach(f,function(b){var c=p+"/"+b;a("dojo-preload-i18n-Api")&&x(c);l[c]?--A||o(d.delegate(l[v])):j([p],function(a){for(var c=d.clone(a.root||a.ROOT),a=!a._v1x&&a,k=[u+n],f=b.split("-"),e="",h=0;h<f.length;h++)e+=(e?"-":"")+f[h],(!a||a[e])&&k.push(u+e+"/"+n);j(k,function(){for(var a=1;a<k.length;a++)c=d.mixin(d.clone(c),arguments[a]);l[p+"/"+b]=c;--A||o(d.delegate(l[v]))})})})};if(a("dojo-unit-tests"))var n=f.unitTests=[];a("dojo-preload-i18n-Api");
  76. var p=f.normalizeLocale=function(a){a=a?a.toLowerCase():c.locale;return"root"==a?"ROOT":a},t=0,s=[],q=f._preloadLocalizations=function(a,d,k){function e(c){c=p(c);a:{for(var f=function(c){if(0<=b.indexOf(d,c)){var e=a.replace(/\./g,"/")+"_"+c;t++;(g.isXdUrl(g.toUrl(e+".js"))||k?g:u)([e],function(a){for(var b in a)l[b+"/"+c]=a[b];for(--t;!t&&s.length;)m.apply(null,s.shift())});return!0}return!1},c=c.split("-");c.length;){if(f(c.join("-")))break a;c.pop()}f("ROOT")}}e();b.forEach(c.config.extraLocale,
  77. e)},v=new Function("__bundle","__checkForLegacyModules","__mid","var define = function(){define.called = 1;}, require = function(){define.called = 1;};try{define.called = 0;eval(__bundle);if(define.called==1)return 1;if((__checkForLegacyModules = __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),u=function(a,c){var d=[];b.forEach(a,function(a){function b(k){k=v(k,x,a);1===k?g([a],function(a){d.push(l[c]=a)}):(k instanceof
  78. Error&&(console.error("failed to evaluate i18n bundle; url="+c,k),k={}),d.push(l[c]=/nls\/[^\/]+\/[^\/]+$/.test(c)?k:{root:k,_v1x:1}))}var c=g.toUrl(a+".js");if(l[c])d.push(l[c]);else{var k=g.syncLoadNls(a);k||(k=x(a.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1")));if(k)d.push(k);else if(j)j.get({url:c,sync:!0,load:b,error:function(){d.push(l[c]={})}});else try{g.getText(c,!0,b)}catch(e){d.push(l[c]={})}}});c&&c.apply(null,d)},x=function(a){for(var b,d=a.split("/"),k=c.global[d[0]],e=1;k&&e<d.length-
  79. 1;k=k[d[e++]]);k&&((b=k[d[e]])||(b=k[d[e].replace(/-/g,"_")]),b&&(l[a]=b));return b};f.getLocalization=function(a,b,c){var d,a=o(a,b,c).substring(10);m(a,!g.isXdUrl(g.toUrl(a+".js"))?u:g,function(a){d=a});return d};a("dojo-unit-tests")&&n.push(function(a){a.register("tests.i18n.unit",function(a){var b;b=v("{prop:1}");a.is({prop:1},b);a.is(void 0,b[1]);b=v("({prop:1})");a.is({prop:1},b);a.is(void 0,b[1]);b=v("{'prop-x':1}");a.is({"prop-x":1},b);a.is(void 0,b[1]);b=v("({'prop-x':1})");a.is({"prop-x":1},
  80. b);a.is(void 0,b[1]);b=v("define({'prop-x':1})");a.is(1,b);b=v("this is total nonsense and should throw an error");a.is(b instanceof Error,!0)})});return d.mixin(f,{dynamic:!0,normalize:function(a,b){return/^\./.test(a)?b(a):a},load:m,cache:l})})},"dijit/hccss":function(){define("dijit/hccss","require dojo/_base/config dojo/dom-class dojo/dom-construct dojo/dom-style dojo/ready dojo/_base/sniff dojo/_base/window".split(" "),function(c,g,a,b,e,d,j,h){(j("ie")||j("mozilla"))&&d(90,function(){var d=
  81. b.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(g.blankGif||c.toUrl("dojo/resources/blank.gif"))+'");'}},h.body()),k=e.getComputedStyle(d);if(k){var l=k.backgroundImage;(k.borderTopColor==k.borderRightColor||null!=l&&("none"==l||"url(invalid-url:)"==l))&&a.add(h.body(),"dijit_a11y");j("ie")?d.outerHTML="":h.body().removeChild(d)}})})},"dijit/tree/ForestStoreModel":function(){define("dijit/tree/ForestStoreModel",
  82. ["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","./TreeStoreModel"],function(c,g,a,b,e){return g("dijit.tree.ForestStoreModel",e,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(a){this.root={store:this,root:!0,id:a.rootId,label:a.rootLabel,children:a.rootChildren}},mayHaveChildren:function(a){return a===this.root||this.inherited(arguments)},getChildren:function(b,c,e){b===this.root?this.root.children?c(this.root.children):this.store.fetch({query:this.query,
  83. onComplete:a.hitch(this,function(a){this.root.children=a;c(a)}),onError:e}):this.inherited(arguments)},isItem:function(a){return a===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var c=a.scope?a.scope:b.global;a.onItem&&a.onItem.call(c,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===this.root?this.root.label:this.inherited(arguments)},
  84. newItem:function(a,b,c){return b===this.root?(this.onNewRootItem(a),this.store.newItem(a)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,b,c,e,k){if(b===this.root&&!e)this.onLeaveRoot(a);this.inherited(arguments,[a,b===this.root?null:b,c===this.root?null:c,e,k]);if(c===this.root)this.onAddToRoot(a)},onAddToRoot:function(){},onLeaveRoot:function(){},_requeryTop:function(){var b=this.root.children||[];this.store.fetch({query:this.query,onComplete:a.hitch(this,function(a){this.root.children=
  85. a;if(b.length!=a.length||c.some(b,function(b,c){return a[c]!=b}))this.onChildrenChange(this.root,a)})})},onNewItem:function(a,b){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){-1!=c.indexOf(this.root.children,a)&&this._requeryTop();this.inherited(arguments)},onSetItem:function(a,b,c,e){this._requeryTop();this.inherited(arguments)}})})},"dojo/parser":function(){define("dojo/parser","./_base/kernel ./_base/lang ./_base/array ./_base/config ./_base/html ./_base/window ./_base/url ./_base/json ./aspect ./date/stamp ./has ./query ./on ./ready".split(" "),
  86. function(c,g,a,b,e,d,j,h,f,k,l,o,m,n){new Date("X");j=document.createElement("form");l.add("dom-attributes-explicit",0==j.attributes.length);l.add("dom-attributes-specified-flag",40>j.attributes.length);c.parser=new function(){function b(a){var c=n[a]||(n[a]={});return c.__type||(c.__type=g.getObject(a)||require(a))}var j={};f.after(g,"extend",function(){j={}},!0);var n={};this._functionFromScript=function(b,c){var d="",k="",e=b.getAttribute(c+"args")||b.getAttribute("args");e&&a.forEach(e.split(/\s*,\s*/),
  87. function(a,b){d+="var "+a+" = arguments["+b+"]; "});(e=b.getAttribute("with"))&&e.length&&a.forEach(e.split(/\s*,\s*/),function(a){d+="with("+a+"){";k+="}"});return new Function(d+b.innerHTML+k)};this.instantiate=function(b,d,k){var d=d||{},k=k||{},e=(k.scope||c._scopeName)+"Type",f="data-"+(k.scope||c._scopeName)+"-type",h=[];a.forEach(b,function(a){var b=e in d?d[e]:a.getAttribute(f)||a.getAttribute(e);b&&h.push({node:a,type:b})});return this._instantiate(h,d,k)};this._instantiate=function(d,e,
  88. u){var x=[],w="data-"+(u.scope||c._scopeName)+"-",r=w+"mixins",E={};a.forEach([w+"props",w+"type",(u.scope||c._scopeName)+"Type",w+"id","jsId",w+"attach-point",w+"attach-event","dojoAttachPoint","dojoAttachEvent","class","style",r],function(a){E[a.toLowerCase()]=a.replace(u.scope,"dojo")});a.forEach(d,function(d){if(d){var q=d.node,F=d.type,y=q.getAttribute(r),z;if(y){var H=n[F],y=y.replace(/ /g,"");z=H&&H[y];if(!z){z=b(F);var A=n[F],D=y,y=a.map(y.split(","),b);z=z.createSubclass&&z.createSubclass(y)||
  89. z.extend.apply(z,y);z=A[D]=z}}else z=b(F);D=z&&z.prototype;A={};u.defaults&&g.mixin(A,u.defaults);d.inherited&&g.mixin(A,d.inherited);var C;l("dom-attributes-explicit")?C=q.attributes:l("dom-attributes-specified-flag")?C=a.filter(q.attributes,function(a){return a.specified}):(y=(/^input$|^img$/i.test(q.nodeName)?q:q.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),C=a.map(y.split(/\s+/),function(a){var b=a.toLowerCase();return{name:a,
  90. value:"LI"==q.nodeName&&"value"==a||"enctype"==b?q.getAttribute(b):q.getAttributeNode(b).value}}));for(var y=0,B;B=C[y++];){var G=B.name,K=G.toLowerCase();B=B.value;if(K in E)switch(E[K]){case "data-dojo-props":var M=B;break;case "data-dojo-id":case "jsId":var O=B;break;case "data-dojo-attach-point":case "dojoAttachPoint":A.dojoAttachPoint=B;break;case "data-dojo-attach-event":case "dojoAttachEvent":A.dojoAttachEvent=B;break;case "class":A["class"]=q.className;break;case "style":A.style=q.style&&
  91. q.style.cssText}else{if(!(G in D)){if(!(H=j[F])){var H=j,J=F,Q=D,P={},N=void 0;for(N in Q)"_"!=N.charAt(0)&&(P[N.toLowerCase()]=N);H=H[J]=P}G=H[K]||G}if(G in D)switch(typeof D[G]){case "string":A[G]=B;break;case "number":A[G]=B.length?Number(B):NaN;break;case "boolean":A[G]="false"!=B.toLowerCase();break;case "function":A[G]=""===B||-1!=B.search(/[^\w\.]+/i)?new Function(B):g.getObject(B,!1)||new Function(B);break;default:K=D[G],A[G]=K&&"length"in K?B?B.split(/\s*,\s*/):[]:K instanceof Date?""==B?
  92. new Date(""):"now"==B?new Date:k.fromISOString(B):K instanceof c._Url?c.baseUrl+B:h.fromJson(B)}else A[G]=B}}if(M)try{M=h.fromJson.call(u.propsThis,"{"+M+"}"),g.mixin(A,M)}catch(R){throw Error(R.toString()+" in data-dojo-props='"+M+"'");}g.mixin(A,e);G=d.scripts||(z&&(z._noScript||D._noScript)?[]:o("> script[type^='dojo/']",q));d=[];F=[];M=[];C=[];if(G)for(y=0;y<G.length;y++)J=G[y],q.removeChild(J),K=J.getAttribute(w+"event")||J.getAttribute("event"),B=J.getAttribute(w+"prop"),H=J.getAttribute("type"),
  93. J=this._functionFromScript(J,w),K?"dojo/connect"==H?d.push({event:K,func:J}):"dojo/on"==H?C.push({event:K,func:J}):A[K]=J:"dojo/watch"==H?M.push({prop:B,func:J}):F.push(J);z=(D=z.markupFactory||D.markupFactory)?D(A,q,z):new z(A,q);x.push(z);O&&g.setObject(O,z);for(y=0;y<d.length;y++)f.after(z,d[y].event,c.hitch(z,d[y].func),!0);for(y=0;y<F.length;y++)F[y].call(z);for(y=0;y<M.length;y++)z.watch(M[y].prop,M[y].func);for(y=0;y<C.length;y++)m(z,C[y].event,C[y].func)}},this);e._started||a.forEach(x,function(a){!u.noStart&&
  94. (a&&g.isFunction(a.startup)&&!a._started)&&a.startup()});return x};this.scan=function(a,k){function e(a){if(!a.inherited){a.inherited={};var b=a.node,c=e(a.parent),b={dir:b.getAttribute("dir")||c.dir,lang:b.getAttribute("lang")||c.lang,textDir:b.getAttribute(l)||c.textDir},d;for(d in b)b[d]&&(a.inherited[d]=b[d])}return a.inherited}var f=[],h=(k.scope||c._scopeName)+"Type",j="data-"+(k.scope||c._scopeName)+"-",o=j+"type",l=j+"textdir",j=a.firstChild,m=k.inherited;if(!m){var g=function(a,b){return a.getAttribute&&
  95. a.getAttribute(b)||(a!==d.doc&&a!==d.doc.documentElement&&a.parentNode?g(a.parentNode,b):null)},m={dir:g(a,"dir"),lang:g(a,"lang"),textDir:g(a,l)},n;for(n in m)m[n]||delete m[n]}for(var t={inherited:m},s,A;;)if(j)if(1!=j.nodeType)j=j.nextSibling;else if(s&&"script"==j.nodeName.toLowerCase())(n=j.getAttribute("type"))&&/^dojo\/\w/i.test(n)&&s.push(j),j=j.nextSibling;else if(A)j=j.nextSibling;else if(n=j.getAttribute(o)||j.getAttribute(h),m=j.firstChild,!n&&(!m||3==m.nodeType&&!m.nextSibling))j=j.nextSibling;
  96. else{var t={node:j,scripts:s,parent:t},D;try{D=n&&b(n)}catch(C){}s=D&&!D.prototype._noScript?[]:null;n&&f.push({type:n,node:j,scripts:s,inherited:e(t)});j=m;A=D&&D.prototype.stopParser&&!k.template}else{if(!t||!t.node)break;j=t.node.nextSibling;s=t.scripts;A=!1;t=t.parent}return f};this.parse=function(a,b){var c;!b&&a&&a.rootNode?(b=a,c=b.rootNode):a&&g.isObject(a)&&!("nodeType"in a)?b=a:c=a;c=c?e.byId(c):d.body();b=b||{};c=this.scan(c,b);return this._instantiate(c,b.template?{template:!0}:{},b)}};
  97. b.parseOnLoad&&n(100,c.parser,"parse");return c.parser})},"dojox/html/_base":function(){define("dojox/html/_base","dojo/_base/kernel dojo/_base/lang dojo/_base/xhr dojo/_base/window dojo/_base/sniff dojo/_base/url dojo/dom-construct dojo/html dojo/_base/declare".split(" "),function(c,g,a,b,e,d,j,h){var f=c.getObject("dojox.html",!0);if(e("ie"))var k=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;var l=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g,
  98. o=f._adjustCssPaths=function(a,b){if(b&&a)return k&&(b=b.replace(k,function(b,c,k,e,f){return c+(new d(a,"./"+e)).toString()+f})),b.replace(l,function(b,c,k,e,f,h){return k?'@import "'+(new d(a,"./"+k)).toString()+'"'+h:"url("+(new d(a,"./"+f)).toString()+")"+h})},m=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi,n=f._adjustHtmlPaths=function(a,b){var c=a||"./";return b.replace(m,function(a,b,k,e,f,h,j,l){return b+(k?k+"="+e+(new d(c,f)).toString()+e:"style="+
  99. h+o(c,j)+h)+l})},p=f._snarfStyles=function(a,b,c){c.attributes=[];return b.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(b,d,k,e,f,h){b=(d||e||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");k?k=c.push(a?o(a,k):k):(k=c.push('@import "'+h+'";'),b=b.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,""));if(b){b=b.split(/\s+/);h={};e=0;for(f=b.length;e<f;e++)d=b[e].split("="),h[d[0]]=d[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,
  100. "$1");c.attributes[k-1]=h}return""})},t=f._snarfScripts=function(b,c){c.code="";b=b.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(a){return a.replace(/<(\/?)script\b/ig,"&lt;$1Script")});return b.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(b,d,k,e){k?c.downloadRemote&&(b=k.replace(/&([a-z0-9#]+);/g,function(a,b){switch(b){case "amp":return"&";case "gt":return">";case "lt":return"<";default:return"#"==b.charAt(0)?
  101. String.fromCharCode(b.substring(1)):"&"+b+";"}}),a.get({url:b,sync:!0,load:function(a){c.code+=a+";"},error:c.errBack})):c.code+=e;return""})},s=f.evalInGlobal=function(a,c){var c=c||b.doc.body,d=c.ownerDocument.createElement("script");d.type="text/javascript";c.appendChild(d);d.text=a};f._ContentSetter=c.declare(h._ContentSetter,{adjustPaths:!1,referencePath:".",renderStyles:!1,executeScripts:!1,scriptHasHooks:!1,scriptHookReplacement:null,_renderStyles:function(a){this._styleNodes=[];for(var b,
  102. c,d,k=this.node.ownerDocument,e=k.getElementsByTagName("head")[0],f=0,h=a.length;f<h;f++){d=a[f];c=a.attributes[f];b=k.createElement("style");b.setAttribute("type","text/css");for(var j in c)b.setAttribute(j,c[j]);this._styleNodes.push(b);e.appendChild(b);b.styleSheet?b.styleSheet.cssText=d:b.appendChild(k.createTextNode(d))}},empty:function(){this.inherited("empty",arguments);this._styles=[]},onBegin:function(){this.inherited("onBegin",arguments);var a=this.content,b=this._styles;if(g.isString(a)){this.adjustPaths&&
  103. this.referencePath&&(a=n(this.referencePath,a));if(this.renderStyles||this.cleanContent)a=p(this.referencePath,a,b);if(this.executeScripts){var c=this,b={downloadRemote:!0,errBack:function(a){c._onError.call(c,"Exec",'Error downloading remote script in "'+c.id+'"',a)}},a=t(a,b);this._code=b.code}}this.content=a},onEnd:function(){var a=this._code,b=this._styles;if(this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)j.destroy(this._styleNodes.pop());this.renderStyles&&(b&&b.length)&&
  104. this._renderStyles(b);if(this.executeScripts&&a){this.cleanContent&&(a=a.replace(/(<\!--|(?:\/\/)?--\>|<!\[CDATA\[|\]\]>)/g,""));this.scriptHasHooks&&(a=a.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement));try{s(a,this.node)}catch(c){this._onError("Exec","Error eval script in "+this.id+", "+c.message,c)}}this.inherited("onEnd",arguments)},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)j.destroy(this._styleNodes.pop());
  105. delete this._styleNodes;c.mixin(this,f._ContentSetter.prototype)}});f.set=function(a,b,d){return d?(new f._ContentSetter(c.mixin(d,{content:b,node:a}))).set():h._setNodeContent(a,b,!0)};return f})},"url:dijit/form/templates/DropDownButton.html":'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event="ondijitclick:_onClick" data-dojo-attach-point="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdata-dojo-attach-point="valueNode" role="presentation"\n/></span>\n',
  106. "dojo/dnd/Manager":function(){define("dojo/dnd/Manager",["../main","../Evented","./common","./autoscroll","./Avatar"],function(c,g){var a=c.declare("dojo.dnd.Manager",[g],{constructor:function(){this.source=this.avatar=null;this.nodes=[];this.copy=!0;this.target=null;this.canDropFlag=!1;this.events=[]},OFFSET_X:16,OFFSET_Y:16,overSource:function(a){this.avatar&&(this.target=a&&"Disabled"!=a.targetState?a:null,this.canDropFlag=Boolean(this.target),this.avatar.update());c.publish("/dnd/source/over",
  107. [a])},outSource:function(a){this.avatar?this.target==a&&(this.target=null,this.canDropFlag=!1,this.avatar.update(),c.publish("/dnd/source/over",[null])):c.publish("/dnd/source/over",[null])},startDrag:function(a,e,d){this.source=a;this.nodes=e;this.copy=Boolean(d);this.avatar=this.makeAvatar();c.body().appendChild(this.avatar.node);c.publish("/dnd/start",[a,e,this.copy]);this.events=[c.connect(c.doc,"onmousemove",this,"onMouseMove"),c.connect(c.doc,"onmouseup",this,"onMouseUp"),c.connect(c.doc,"onkeydown",
  108. this,"onKeyDown"),c.connect(c.doc,"onkeyup",this,"onKeyUp"),c.connect(c.doc,"ondragstart",c.stopEvent),c.connect(c.body(),"onselectstart",c.stopEvent)];c.addClass(c.body(),"dojoDnd"+(d?"Copy":"Move"))},canDrop:function(a){a=Boolean(this.target&&a);this.canDropFlag!=a&&(this.canDropFlag=a,this.avatar.update())},stopDrag:function(){c.removeClass(c.body(),["dojoDndCopy","dojoDndMove"]);c.forEach(this.events,c.disconnect);this.events=[];this.avatar.destroy();this.source=this.target=this.avatar=null;this.nodes=
  109. []},makeAvatar:function(){return new c.dnd.Avatar(this)},updateAvatar:function(){this.avatar.update()},onMouseMove:function(a){var e=this.avatar;e&&(c.dnd.autoScrollNodes(a),e=e.node.style,e.left=a.pageX+this.OFFSET_X+"px",e.top=a.pageY+this.OFFSET_Y+"px",a=Boolean(this.source.copyState(c.isCopyKey(a))),this.copy!=a&&this._setCopyStatus(a))},onMouseUp:function(a){if(this.avatar){if(this.target&&this.canDropFlag){var e=Boolean(this.source.copyState(c.isCopyKey(a))),a=[this.source,this.nodes,e,this.target,
  110. a];c.publish("/dnd/drop/before",a);c.publish("/dnd/drop",a)}else c.publish("/dnd/cancel");this.stopDrag()}},onKeyDown:function(a){if(this.avatar)switch(a.keyCode){case c.keys.CTRL:a=Boolean(this.source.copyState(!0));this.copy!=a&&this._setCopyStatus(a);break;case c.keys.ESCAPE:c.publish("/dnd/cancel"),this.stopDrag()}},onKeyUp:function(a){this.avatar&&a.keyCode==c.keys.CTRL&&(a=Boolean(this.source.copyState(!1)),this.copy!=a&&this._setCopyStatus(a))},_setCopyStatus:function(a){this.copy=a;this.source._markDndStatus(this.copy);
  111. this.updateAvatar();c.replaceClass(c.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"))}});c.dnd._manager=null;a.manager=c.dnd.manager=function(){c.dnd._manager||(c.dnd._manager=new c.dnd.Manager);return c.dnd._manager};return a})},"dijit/form/ToggleButton":function(){define("dijit/form/ToggleButton",["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(c,g,a,b){return c("dijit.form.ToggleButton",[a,b],{baseClass:"dijitToggleButton",setChecked:function(a){g.deprecated("setChecked("+
  112. a+") is deprecated. Use set('checked',"+a+") instead.","","2.0");this.set("checked",a)}})})},"dojo/date/stamp":function(){define("dojo/date/stamp",["../_base/kernel","../_base/lang","../_base/array"],function(c,g,a){g.getObject("date.stamp",!0,c);c.date.stamp.fromISOString=function(b,e){c.date.stamp._isoRegExp||(c.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var d=c.date.stamp._isoRegExp.exec(b),j=null;if(d){d.shift();
  113. d[1]&&d[1]--;d[6]&&(d[6]*=1E3);e&&(e=new Date(e),a.forEach(a.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(a){return e["get"+a]()}),function(a,b){d[b]=d[b]||a}));j=new Date(d[0]||1970,d[1]||0,d[2]||1,d[3]||0,d[4]||0,d[5]||0,d[6]||0);100>d[0]&&j.setFullYear(d[0]||1970);var h=0,f=d[7]&&d[7].charAt(0);"Z"!=f&&(h=60*(d[8]||0)+(Number(d[9])||0),"-"!=f&&(h*=-1));f&&(h-=j.getTimezoneOffset());h&&j.setTime(j.getTime()+6E4*h)}return j};c.date.stamp.toISOString=function(a,
  114. c){var d=function(a){return 10>a?"0"+a:a},c=c||{},j=[],h=c.zulu?"getUTC":"get",f="";"time"!=c.selector&&(f=a[h+"FullYear"](),f=["0000".substr((f+"").length)+f,d(a[h+"Month"]()+1),d(a[h+"Date"]())].join("-"));j.push(f);if("date"!=c.selector){f=[d(a[h+"Hours"]()),d(a[h+"Minutes"]()),d(a[h+"Seconds"]())].join(":");h=a[h+"Milliseconds"]();c.milliseconds&&(f+="."+(100>h?"0":"")+d(h));if(c.zulu)f+="Z";else if("time"!=c.selector)var h=a.getTimezoneOffset(),k=Math.abs(h),f=f+((0<h?"-":"+")+d(Math.floor(k/
  115. 60))+":"+d(k%60));j.push(f)}return j.join("T")};return c.date.stamp})},"dojo/Stateful":function(){define("dojo/Stateful",["./_base/declare","./_base/lang","./_base/array"],function(c,g,a){return c("dojo.Stateful",null,{postscript:function(a){a&&g.mixin(this,a)},get:function(a){return this[a]},set:function(a,c){if("object"===typeof a){for(var d in a)a.hasOwnProperty(d)&&"_watchCallbacks"!=d&&this.set(d,a[d]);return this}d=this[a];this[a]=c;this._watchCallbacks&&this._watchCallbacks(a,d,c);return this},
  116. watch:function(b,c){var d=this._watchCallbacks;if(!d)var j=this,d=this._watchCallbacks=function(a,b,c,e){var h=function(d){if(d)for(var d=d.slice(),e=0,h=d.length;e<h;e++)d[e].call(j,a,b,c)};h(d["_"+a]);e||h(d["*"])};!c&&"function"===typeof b?(c=b,b="*"):b="_"+b;var h=d[b];"object"!==typeof h&&(h=d[b]=[]);h.push(c);return{unwatch:function(){h.splice(a.indexOf(h,c),1)}}}})})},"dojox/layout/FloatingPane":function(){require({cache:{"url:dojox/layout/resources/FloatingPane.html":'<div class="dojoxFloatingPane" id="${id}">\n\t<div tabindex="0" role="button" class="dojoxFloatingPaneTitle" dojoAttachPoint="focusNode">\n\t\t<span dojoAttachPoint="closeNode" dojoAttachEvent="onclick: close" class="dojoxFloatingCloseIcon"></span>\n\t\t<span dojoAttachPoint="maxNode" dojoAttachEvent="onclick: maximize" class="dojoxFloatingMaximizeIcon">&thinsp;</span>\n\t\t<span dojoAttachPoint="restoreNode" dojoAttachEvent="onclick: _restore" class="dojoxFloatingRestoreIcon">&thinsp;</span>\t\n\t\t<span dojoAttachPoint="dockNode" dojoAttachEvent="onclick: minimize" class="dojoxFloatingMinimizeIcon">&thinsp;</span>\n\t\t<span dojoAttachPoint="titleNode" class="dijitInline dijitTitleNode"></span>\n\t</div>\n\t<div dojoAttachPoint="canvas" class="dojoxFloatingPaneCanvas">\n\t\t<div dojoAttachPoint="containerNode" role="region" tabindex="-1" class="${contentClass}">\n\t\t</div>\n\t\t<span dojoAttachPoint="resizeHandle" class="dojoxFloatingResizeHandle"></span>\n\t</div>\n</div>\n'}});
  117. define("dojox/layout/FloatingPane","dojo/_base/kernel dojo/_base/lang dojo/_base/window dojo/_base/declare dojo/_base/fx dojo/_base/connect dojo/_base/array dojo/_base/sniff dojo/window dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-construct dijit/_TemplatedMixin dijit/_Widget dijit/BackgroundIframe dojo/dnd/Moveable ./ContentPane ./ResizeHandle dojo/text!./resources/FloatingPane.html".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q,v,u){c.experimental("dojox.layout.FloatingPane");var q=
  118. b("dojox.layout.FloatingPane",[q,n],{closable:!0,dockable:!0,resizable:!1,maxable:!1,resizeAxis:"xy",title:"",dockTo:"",duration:400,contentClass:"dojoxFloatingPaneContent",_showAnim:null,_hideAnim:null,_dockNode:null,_restoreState:{},_allFPs:[],_startZ:100,templateString:u,attributeMap:g.delegate(p.prototype.attributeMap,{title:{type:"innerHTML",node:"titleNode"}}),postCreate:function(){this.inherited(arguments);new s(this.domNode,{handle:this.focusNode});this.dockable||(this.dockNode.style.display=
  119. "none");this.closable||(this.closeNode.style.display="none");this.maxable||(this.maxNode.style.display="none",this.restoreNode.style.display="none");this.resizable?this.domNode.style.width=o.getMarginBox(this.domNode).w+"px":this.resizeHandle.style.display="none";this._allFPs.push(this);this.domNode.style.position="absolute";this.bgIframe=new t(this.domNode);this._naturalState=o.position(this.domNode)},startup:function(){if(!this._started){this.inherited(arguments);this.resizable&&(h("ie")?this.canvas.style.overflow=
  120. "auto":this.containerNode.style.overflow="auto",this._resizeHandle=new v({targetId:this.id,resizeAxis:this.resizeAxis},this.resizeHandle));if(this.dockable){var b=this.dockTo;this.dockTo=this.dockTo?dijit.byId(this.dockTo):dijit.byId("dojoxGlobalFloatingDock");if(!this.dockTo){var c;b?(c=b,b=k.byId(b)):(b=m.create("div",null,a.body()),l.add(b,"dojoxFloatingDockDefault"),c="dojoxGlobalFloatingDock");this.dockTo=new x({id:c,autoPosition:"south"},b);this.dockTo.startup()}("none"==this.domNode.style.display||
  121. "hidden"==this.domNode.style.visibility)&&this.minimize()}this.connect(this.focusNode,"onmousedown","bringToTop");this.connect(this.domNode,"onmousedown","bringToTop");this.resize(o.position(this.domNode));this._started=!0}},setTitle:function(a){c.deprecated("pane.setTitle","Use pane.set('title', someTitle)","2.0");this.set("title",a)},close:function(){this.closable&&(d.unsubscribe(this._listener),this.hide(g.hitch(this,function(){this.destroyRecursive()})))},hide:function(a){e.fadeOut({node:this.domNode,
  122. duration:this.duration,onEnd:g.hitch(this,function(){this.domNode.style.display="none";this.domNode.style.visibility="hidden";this.dockTo&&this.dockable&&this.dockTo._positionDock(null);a&&a()})}).play()},show:function(a){e.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:g.hitch(this,function(){this.domNode.style.display="";this.domNode.style.visibility="visible";this.dockTo&&this.dockable&&this.dockTo._positionDock(null);"function"==typeof a&&a();this._isDocked=!1;this._dockNode&&(this._dockNode.destroy(),
  123. this._dockNode=null)})}).play();this.resize(o.position(this.domNode));this._onShow()},minimize:function(){this._isDocked||this.hide(g.hitch(this,"_dock"))},maximize:function(){this._maximized||(this._naturalState=o.position(this.domNode),this._isDocked&&(this.show(),setTimeout(g.hitch(this,"maximize"),this.duration)),l.add(this.focusNode,"floatingPaneMaximized"),this.resize(f.getBox()),this._maximized=!0)},_restore:function(){this._maximized&&(this.resize(this._naturalState),l.remove(this.focusNode,
  124. "floatingPaneMaximized"),this._maximized=!1)},_dock:function(){!this._isDocked&&this.dockable&&(this._dockNode=this.dockTo.addNode(this),this._isDocked=!0)},resize:function(a){this._naturalState=a=a||this._naturalState;var b=this.domNode.style;"t"in a?b.top=a.t+"px":"y"in a&&(b.top=a.y+"px");"l"in a?b.left=a.l+"px":"x"in a&&(b.left=a.x+"px");b.width=a.w+"px";b.height=a.h+"px";a={l:0,t:0,w:a.w,h:a.h-this.focusNode.offsetHeight};o.setMarginBox(this.canvas,a);this._checkIfSingleChild();this._singleChild&&
  125. this._singleChild.resize&&this._singleChild.resize(a)},bringToTop:function(){var a=j.filter(this._allFPs,function(a){return a!==this},this);a.sort(function(a,b){return a.domNode.style.zIndex-b.domNode.style.zIndex});a.push(this);j.forEach(a,function(a,b){a.domNode.style.zIndex=this._startZ+2*b;l.remove(a.domNode,"dojoxFloatingPaneFg")},this);l.add(this.domNode,"dojoxFloatingPaneFg")},destroy:function(){this._allFPs.splice(j.indexOf(this._allFPs,this),1);this._resizeHandle&&this._resizeHandle.destroy();
  126. this.inherited(arguments)}}),x=b("dojox.layout.Dock",[p,n],{templateString:'<div class="dojoxDock"><ul dojoAttachPoint="containerNode" class="dojoxDockList"></ul></div>',_docked:[],_inPositioning:!1,autoPosition:!1,addNode:function(a){var b=m.create("li",null,this.containerNode),a=new w({title:a.title,paneRef:a},b);a.startup();return a},startup:function(){if("dojoxGlobalFloatingDock"==this.id||this.isFixedDock)this.connect(window,"onresize","_positionDock"),this.connect(window,"onscroll","_positionDock"),
  127. h("ie")&&this.connect(this.domNode,"onresize","_positionDock");this._positionDock(null);this.inherited(arguments)},_positionDock:function(){this._inPositioning||"south"==this.autoPosition&&setTimeout(g.hitch(this,function(){this._inPositiononing=!0;var a=f.getBox(),b=this.domNode.style;b.left=a.l+"px";b.width=a.w-2+"px";b.top=a.h+a.t-this.domNode.offsetHeight+"px";this._inPositioning=!1}),125)}}),w=b("dojox.layout._DockNode",[p,n],{title:"",paneRef:null,templateString:'<li dojoAttachEvent="onclick: restore" class="dojoxDockNode"><span dojoAttachPoint="restoreNode" class="dojoxDockRestoreButton" dojoAttachEvent="onclick: restore"></span><span class="dojoxDockTitleNode" dojoAttachPoint="titleNode">${title}</span></li>',
  128. restore:function(){this.paneRef.show();this.paneRef.bringToTop();this.destroy()}});return q})},"dijit/form/ComboButton":function(){require({cache:{"url:dijit/form/templates/ComboButton.html":'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" data-dojo-attach-point="buttonNode" data-dojo-attach-event="ondijitclick:_onClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdata-dojo-attach-point="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" data-dojo-attach-point="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" data-dojo-attach-point="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdata-dojo-attach-point="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdata-dojo-attach-event="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" data-dojo-attach-point="valueNode"\n\t\t/></td></tr></tbody\n></table>\n'}});
  129. define("dijit/form/ComboButton","dojo/_base/declare dojo/_base/event dojo/keys ../focus ./DropDownButton dojo/text!./templates/ComboButton.html".split(" "),function(c,g,a,b,e,d){return c("dijit.form.ComboButton",e,{templateString:d,_setIdAttr:"",_setTabIndexAttr:["focusNode","titleNode"],_setTitleAttr:"titleNode",optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(c){if(c.charOrCode==
  130. a[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"])b.focus(this._popupStateNode),g.stop(c)},_onArrowKeyPress:function(c){if(c.charOrCode==a[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"])b.focus(this.titleNode),g.stop(c)},focus:function(a){this.disabled||b.focus("start"==a?this.titleNode:this._popupStateNode)}})})},"dojox/xml/parser":function(){define("dojox/xml/parser",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(c){c.getObject("xml.parser",
  131. !0,dojox);dojox.xml.parser.parse=function(g,a){var b=c.doc,e,a=a||"text/xml";if(g&&c.trim(g)&&"DOMParser"in c.global){e=(new DOMParser).parseFromString(g,a);b=e.documentElement;if("parsererror"==b.nodeName&&"http://www.mozilla.org/newlayout/xml/parsererror.xml"==b.namespaceURI){var d=b.getElementsByTagNameNS("http://www.mozilla.org/newlayout/xml/parsererror.xml","sourcetext")[0];d&&(d=d.firstChild.data);throw Error("Error parsing text "+b.firstChild.data+" \n"+d);}return e}if("ActiveXObject"in c.global){b=
  132. function(a){return"MSXML"+a+".DOMDocument"};b=["Microsoft.XMLDOM",b(6),b(4),b(3),b(2)];c.some(b,function(a){try{e=new ActiveXObject(a)}catch(b){return!1}return!0});if(g&&e&&(e.async=!1,e.loadXML(g),b=e.parseError,0!==b.errorCode))throw Error("Line: "+b.line+"\nCol: "+b.linepos+"\nReason: "+b.reason+"\nError Code: "+b.errorCode+"\nSource: "+b.srcText);if(e)return e}else if(b.implementation&&b.implementation.createDocument){if(g&&c.trim(g)&&b.createElement){d=b.createElement("xml");d.innerHTML=g;var j=
  133. b.implementation.createDocument("foo","",null);c.forEach(d.childNodes,function(a){j.importNode(a,!0)});return j}return b.implementation.createDocument("","",null)}return null};dojox.xml.parser.textContent=function(g,a){if(1<arguments.length)return dojox.xml.parser.replaceChildren(g,(g.ownerDocument||c.doc).createTextNode(a)),a;if(void 0!==g.textContent)return g.textContent;var b="";g&&c.forEach(g.childNodes,function(a){switch(a.nodeType){case 1:case 5:b+=dojox.xml.parser.textContent(a);break;case 3:case 2:case 4:b+=
  134. a.nodeValue}});return b};dojox.xml.parser.replaceChildren=function(g,a){var b=[];c.isIE&&c.forEach(g.childNodes,function(a){b.push(a)});dojox.xml.parser.removeChildren(g);c.forEach(b,c.destroy);c.isArray(a)?c.forEach(a,function(a){g.appendChild(a)}):g.appendChild(a)};dojox.xml.parser.removeChildren=function(c){for(var a=c.childNodes.length;c.hasChildNodes();)c.removeChild(c.firstChild);return a};dojox.xml.parser.innerXML=function(c){return c.innerXML?c.innerXML:c.xml?c.xml:"undefined"!=typeof XMLSerializer?
  135. (new XMLSerializer).serializeToString(c):null};return dojox.xml.parser})},"url:dijit/layout/templates/_ScrollingTabControllerButton.html":'<div data-dojo-attach-event="onclick:_onClick">\n\t<div role="presentation" class="dijitTabInnerDiv" data-dojo-attach-point="innerDiv,focusNode">\n\t\t<div role="presentation" class="dijitTabContent dijitButtonContents" data-dojo-attach-point="tabContent">\n\t\t\t<img role="presentation" alt="" src="${_blankGif}" class="dijitTabStripIcon" data-dojo-attach-point="iconNode"/>\n\t\t\t<span data-dojo-attach-point="containerNode,titleNode" class="dijitButtonText"></span>\n\t\t</div>\n\t</div>\n</div>',
  136. "url:dijit/layout/templates/_TabButton.html":"<div role=\"presentation\" data-dojo-attach-point=\"titleNode\" data-dojo-attach-event='onclick:onClick'>\n <div role=\"presentation\" class='dijitTabInnerDiv' data-dojo-attach-point='innerDiv'>\n <div role=\"presentation\" class='dijitTabContent' data-dojo-attach-point='tabContent'>\n \t<div role=\"presentation\" data-dojo-attach-point='focusNode'>\n\t\t <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" data-dojo-attach-point='iconNode' />\n\t\t <span data-dojo-attach-point='containerNode' class='tabLabel'></span>\n\t\t <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" data-dojo-attach-point='closeNode'\n\t\t \t\tdata-dojo-attach-event='onclick: onClickCloseButton' role=\"presentation\">\n\t\t <span data-dojo-attach-point='closeText' class='dijitTabCloseText'>[x]</span\n\t\t ></span>\n\t\t\t</div>\n </div>\n </div>\n</div>\n",
  137. "dijit/_base/window":function(){define("dijit/_base/window",["dojo/window",".."],function(c,g){g.getDocumentWindow=function(a){return c.get(a)}})},"dijit/PopupMenuItem":function(){define("dijit/PopupMenuItem","dojo/_base/declare dojo/dom-style dojo/query dojo/_base/window ./registry ./MenuItem ./hccss".split(" "),function(c,g,a,b,e,d){return c("dijit.PopupMenuItem",d,{_fillContent:function(){if(this.srcNodeRef){var b=a("*",this.srcNodeRef);this.inherited(arguments,[b[0]]);this.dropDownContainer=this.srcNodeRef}},
  138. startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var c=a("[widgetId]",this.dropDownContainer)[0];this.popup=e.byNode(c)}b.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";this.arrowWrapper&&g.set(this.arrowWrapper,"visibility","");this.focusNode.setAttribute("aria-haspopup","true")}},destroyDescendants:function(a){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(a),delete this.popup);this.inherited(arguments)}})})},
  139. "dojox/data/QueryReadStore":function(){define("dojox/data/QueryReadStore",["dojo","dojox","dojo/data/util/sorter","dojo/string"],function(c,g){c.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,_numRows:-1,lastRequestHash:null,doClientPaging:!1,doClientSorting:!1,_itemsByIdentity:null,_identifier:null,_features:{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0},_labelAttr:"label",constructor:function(a){c.mixin(this,
  140. a)},getValue:function(a,b,e){this._assertIsItem(a);if(!c.isString(b))throw Error(this._className+".getValue(): Invalid attribute, string expected!");return!this.hasAttribute(a,b)&&e?e:a.i[b]},getValues:function(a,b){this._assertIsItem(a);var c=[];this.hasAttribute(a,b)&&c.push(a.i[b]);return c},getAttributes:function(a){this._assertIsItem(a);var b=[],c;for(c in a.i)b.push(c);return b},hasAttribute:function(a,b){return this.isItem(a)&&"undefined"!=typeof a.i[b]},containsValue:function(a,b,c){for(var a=
  141. this.getValues(a,b),b=a.length,d=0;d<b;d++)if(a[d]==c)return!0;return!1},isItem:function(a){return a?"undefined"!=typeof a.r&&a.r==this:!1},isItemLoaded:function(a){return this.isItem(a)},loadItem:function(a){this.isItemLoaded(a.item)},fetch:function(a){a=a||{};a.store||(a.store=this);var b=this;this._fetchItems(a,function(a,d,j){var h=d.abort||null,f=!1,k=d.start?d.start:0;!1==b.doClientPaging&&(k=0);var l=d.count?k+d.count:a.length;d.abort=function(){f=!0;h&&h.call(d)};var o=d.scope||c.global;d.store||
  142. (d.store=b);d.onBegin&&d.onBegin.call(o,j,d);d.sort&&b.doClientSorting&&a.sort(c.data.util.sorter.createSortFunction(d.sort,b));if(d.onItem)for(j=k;j<a.length&&j<l;++j){var m=a[j];f||d.onItem.call(o,m,d)}d.onComplete&&!f&&(j=null,d.onItem||(j=a.slice(k,l)),d.onComplete.call(o,j,d))},function(a,b){b.onError&&b.onError.call(b.scope||c.global,a,b)});return a},getFeatures:function(){return this._features},close:function(){},getLabel:function(a){if(this._labelAttr&&this.isItem(a))return this.getValue(a,
  143. this._labelAttr)},getLabelAttributes:function(){return this._labelAttr?[this._labelAttr]:null},_xhrFetchHandler:function(a,b,e){a=this._filterResponse(a);a.label&&(this._labelAttr=a.label);var d=a.numRows||-1;this._items=[];c.forEach(a.items,function(a){this._items.push({i:a,r:this})},this);a=a.identifier;this._itemsByIdentity={};if(a){this._identifier=a;var j;for(j=0;j<this._items.length;++j){var h=this._items[j].i,f=h[a];if(this._itemsByIdentity[f])throw Error(this._className+": The json data as specified by: ["+
  144. this.url+"] is malformed. Items within the list have identifier: ["+a+"]. Value collided: ["+f+"]");this._itemsByIdentity[f]=h}}else{this._identifier=Number;for(j=0;j<this._items.length;++j)this._items[j].n=j}d=this._numRows=-1===d?this._items.length:d;e(this._items,b,d);this._numRows=d},_fetchItems:function(a,b,e){var d=a.serverQuery||a.query||{};this.doClientPaging||(d.start=a.start||0,a.count&&(d.count=a.count));if(!this.doClientSorting&&a.sort){var j=[];c.forEach(a.sort,function(a){a&&a.attribute&&
  145. j.push((a.descending?"-":"")+a.attribute)});d.sort=j.join(",")}if(this.doClientPaging&&null!==this._lastServerQuery&&c.toJson(d)==c.toJson(this._lastServerQuery))this._numRows=-1===this._numRows?this._items.length:this._numRows,b(this._items,a,this._numRows);else{var h=("post"==this.requestMethod.toLowerCase()?c.xhrPost:c.xhrGet)({url:this.url,handleAs:"json-comment-optional",content:d,failOk:!0});a.abort=function(){h.cancel()};h.addCallback(c.hitch(this,function(c){this._xhrFetchHandler(c,a,b,e)}));
  146. h.addErrback(function(b){e(b,a)});this.lastRequestHash=(new Date).getTime()+"-"+String(Math.random()).substring(2);this._lastServerQuery=c.mixin({},d)}},_filterResponse:function(a){return a},_assertIsItem:function(a){if(!this.isItem(a))throw Error(this._className+": Invalid item argument.");},_assertIsAttribute:function(a){if("string"!==typeof a)throw Error(this._className+": Invalid attribute argument ('"+a+"').");},fetchItemByIdentity:function(a){if(this._itemsByIdentity){var b=this._itemsByIdentity[a.identity];
  147. if(void 0!==b){a.onItem&&a.onItem.call(a.scope?a.scope:c.global,{i:b,r:this});return}}this._fetchItems({serverQuery:{id:a.identity}},function(b){var d=a.scope?a.scope:c.global;try{var j=null;b&&1==b.length&&(j=b[0]);a.onItem&&a.onItem.call(d,j)}catch(h){a.onError&&a.onError.call(d,h)}},function(b){var d=a.scope?a.scope:c.global;a.onError&&a.onError.call(d,b)})},getIdentity:function(a){var b=null;return b=this._identifier===Number?a.n:a.i[this._identifier]},getIdentityAttributes:function(){return[this._identifier]}});
  148. return g.data.QueryReadStore})},"dojo/dnd/AutoSource":function(){define("dojo/dnd/AutoSource",["./Source"],function(c){return dojo.declare("dojo.dnd.AutoSource",c,{constructor:function(){this.autoSync=!0}})})},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(c){return c.dijit})},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin","dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/_base/sniff dojo/_base/unload dojo/_base/window".split(" "),function(c,
  149. g,a,b,e,d,j){var h=null;if(9>e("ie")){var f=function(a){h=a.srcElement};j.doc.attachEvent("onkeydown",f);d.addOnWindowUnload(function(){j.doc.detachEvent("onkeydown",f)})}else j.doc.addEventListener("keydown",function(a){h=a.target},!0);var k=function(b,d){if(/input|button/i.test(b.nodeName))return c(b,"click",d);var k=function(b){return(b.keyCode==a.ENTER||b.keyCode==a.SPACE)&&!b.ctrlKey&&!b.shiftKey&&!b.altKey&&!b.metaKey},e=[c(b,"keypress",function(a){k(a)&&(h=a.target,a.preventDefault())}),c(b,
  150. "keyup",function(a){k(a)&&a.target==h&&(h=null,d.call(this,a))}),c(b,"click",function(a){d.call(this,a)})];return{remove:function(){g.forEach(e,function(a){a.remove()})}}};return b("dijit._OnDijitClickMixin",null,{connect:function(a,b,c){return this.inherited(arguments,[a,"ondijitclick"==b?k:b,c])}})})},"dojo/dnd/autoscroll":function(){define("dojo/dnd/autoscroll",["../main","../window"],function(c){c.getObject("dnd",!0,c);c.dnd.getViewport=c.window.getBox;c.dnd.V_TRIGGER_AUTOSCROLL=32;c.dnd.H_TRIGGER_AUTOSCROLL=
  151. 32;c.dnd.V_AUTOSCROLL_VALUE=16;c.dnd.H_AUTOSCROLL_VALUE=16;c.dnd.autoScroll=function(g){var a=c.window.getBox(),b=0,e=0;g.clientX<c.dnd.H_TRIGGER_AUTOSCROLL?b=-c.dnd.H_AUTOSCROLL_VALUE:g.clientX>a.w-c.dnd.H_TRIGGER_AUTOSCROLL&&(b=c.dnd.H_AUTOSCROLL_VALUE);g.clientY<c.dnd.V_TRIGGER_AUTOSCROLL?e=-c.dnd.V_AUTOSCROLL_VALUE:g.clientY>a.h-c.dnd.V_TRIGGER_AUTOSCROLL&&(e=c.dnd.V_AUTOSCROLL_VALUE);window.scrollBy(b,e)};c.dnd._validNodes={div:1,p:1,td:1};c.dnd._validOverflow={auto:1,scroll:1};c.dnd.autoScrollNodes=
  152. function(g){for(var a,b,e,d,j,h,f=0,k=0,l=g.target;l;){if(1==l.nodeType&&l.tagName.toLowerCase()in c.dnd._validNodes){e=c.getComputedStyle(l);d=e.overflow.toLowerCase()in c.dnd._validOverflow;j=e.overflowX.toLowerCase()in c.dnd._validOverflow;h=e.overflowY.toLowerCase()in c.dnd._validOverflow;if(d||j||h)a=c._getContentBox(l,e),b=c.position(l,!0);if(d||j){e=Math.min(c.dnd.H_TRIGGER_AUTOSCROLL,a.w/2);j=g.pageX-b.x;if(c.isWebKit||c.isOpera)j+=c.body().scrollLeft;f=0;0<j&&j<a.w&&(j<e?f=-e:j>a.w-e&&(f=
  153. e),l.scrollLeft+=f)}if(d||h){d=Math.min(c.dnd.V_TRIGGER_AUTOSCROLL,a.h/2);h=g.pageY-b.y;if(c.isWebKit||c.isOpera)h+=c.body().scrollTop;k=0;0<h&&h<a.h&&(h<d?k=-d:h>a.h-d&&(k=d),l.scrollTop+=k)}if(f||k)return}try{l=l.parentNode}catch(o){l=null}}c.dnd.autoScroll(g)};return c.dnd})},"url:dijit/templates/TreeNode.html":'<div class="dijitTreeNode" role="presentation"\n\t><div data-dojo-attach-point="rowNode" class="dijitTreeRow" role="presentation" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick"\n\t\t><img src="${_blankGif}" alt="" data-dojo-attach-point="expandoNode" class="dijitTreeExpando" role="presentation"\n\t\t/><span data-dojo-attach-point="expandoNodeText" class="dijitExpandoText" role="presentation"\n\t\t></span\n\t\t><span data-dojo-attach-point="contentNode"\n\t\t\tclass="dijitTreeContent" role="presentation">\n\t\t\t<img src="${_blankGif}" alt="" data-dojo-attach-point="iconNode" class="dijitIcon dijitTreeIcon" role="presentation"\n\t\t\t/><span data-dojo-attach-point="labelNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false" data-dojo-attach-event="onfocus:_onLabelFocus"></span>\n\t\t</span\n\t></div>\n\t<div data-dojo-attach-point="containerNode" class="dijitTreeContainer" role="presentation" style="display: none;"></div>\n</div>\n',
  154. "url:dijit/templates/Tree.html":'<div class="dijitTree dijitTreeContainer" role="tree">\n\t<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" data-dojo-attach-point="indentDetector"></div>\n</div>\n',"dojo/cookie":function(){define("dojo/cookie",["./_base/kernel","./regexp"],function(c,g){c.cookie=function(a,b,c){var d=document.cookie,j;if(1==arguments.length)j=(j=d.match(RegExp("(?:^|; )"+g.escapeString(a)+"=([^;]*)")))?decodeURIComponent(j[1]):void 0;else{c=c||{};
  155. d=c.expires;if("number"==typeof d){var h=new Date;h.setTime(h.getTime()+864E5*d);d=c.expires=h}d&&d.toUTCString&&(c.expires=d.toUTCString());var b=encodeURIComponent(b),d=a+"="+b,f;for(f in c)d+="; "+f,h=c[f],!0!==h&&(d+="="+h);document.cookie=d}return j};c.cookie.isSupported=function(){"cookieEnabled"in navigator||(this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled="CookiesAllowed"==this("__djCookieTest__"),navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1}));return navigator.cookieEnabled};
  156. return c.cookie})},"dojo/cache":function(){define("dojo/cache",["./_base/kernel","./text"],function(c){return c.cache})},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","../popup","../BackgroundIframe"],function(c,g){var a=g._createWrapper;g._createWrapper=function(b){b.declaredClass||(b={_popupWrapper:b.parentNode&&c.contains(b.parentNode,"dijitPopup")?b.parentNode:null,domNode:b,destroy:function(){}});return a.call(this,b)};var b=g.open;g.open=function(a){if(a.orient&&
  157. "string"!=typeof a.orient&&!("length"in a.orient)){var c=[],j;for(j in a.orient)c.push({aroundCorner:j,corner:a.orient[j]});a.orient=c}return b.call(this,a)};return g})},"url:dijit/form/templates/Button.html":'<span class="dijit dijitReset dijitInline" role="presentation"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event="ondijitclick:_onClick" role="presentation"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" data-dojo-attach-point="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdata-dojo-attach-point="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen"\n\t\ttabIndex="-1" role="presentation" data-dojo-attach-point="valueNode"\n/></span>\n',
  158. "dojo/_base/url":function(){define("dojo/_base/url",["./kernel"],function(c){var g=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,a=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,b=function(){for(var c=arguments,d=[c[0]],j=1;j<c.length;j++)if(c[j]){var h=new b(c[j]+""),d=new b(d[0]+"");if(""==h.path&&!h.scheme&&!h.authority&&!h.query)null!=h.fragment&&(d.fragment=h.fragment),h=d;else if(!h.scheme&&(h.scheme=d.scheme,!h.authority&&(h.authority=d.authority,"/"!=h.path.charAt(0)))){for(var d=
  159. (d.path.substring(0,d.path.lastIndexOf("/")+1)+h.path).split("/"),f=0;f<d.length;f++)"."==d[f]?f==d.length-1?d[f]="":(d.splice(f,1),f--):0<f&&(!(1==f&&""==d[0])&&".."==d[f]&&".."!=d[f-1])&&(f==d.length-1?(d.splice(f,1),d[f-1]=""):(d.splice(f-1,2),f-=2));h.path=d.join("/")}d=[];h.scheme&&d.push(h.scheme,":");h.authority&&d.push("//",h.authority);d.push(h.path);h.query&&d.push("?",h.query);h.fragment&&d.push("#",h.fragment)}this.uri=d.join("");c=this.uri.match(g);this.scheme=c[2]||(c[1]?"":null);this.authority=
  160. c[4]||(c[3]?"":null);this.path=c[5];this.query=c[7]||(c[6]?"":null);this.fragment=c[9]||(c[8]?"":null);null!=this.authority&&(c=this.authority.match(a),this.user=c[3]||null,this.password=c[4]||null,this.host=c[6]||c[7],this.port=c[9]||null)};b.prototype.toString=function(){return this.uri};return c._Url=b})},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(c){return c.dojox})},"url:dijit/templates/MenuItem.html":'<tr class="dijitReset dijitMenuItem" data-dojo-attach-point="focusNode" role="menuitem" tabIndex="-1"\n\t\tdata-dojo-attach-event="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitIcon dijitMenuItemIcon" data-dojo-attach-point="iconNode"/>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" data-dojo-attach-point="containerNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" data-dojo-attach-point="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<div data-dojo-attach-point="arrowWrapper" style="visibility: hidden">\n\t\t\t<img src="${_blankGif}" alt="" class="dijitMenuExpand"/>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</div>\n\t</td>\n</tr>\n',
  161. "dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(c,g,a,b){var e;e=function(a,c,d){b("GET",{url:a,sync:!!c,load:d})};var d={},j=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},h={},f={};c.cache=function(a,b,c){var f;"string"==typeof a?/\//.test(a)?(f=a,c=b):f=g.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")):(f=a+"",c=b);a=
  162. void 0!=c&&"string"!=typeof c?c.value:c;c=c&&c.sanitize;if("string"==typeof a)return d[f]=a,c?j(a):a;if(null===a)return delete d[f],null;f in d||e(f,!0,function(a){d[f]=a});return c?j(d[f]):d[f]};return{dynamic:!0,normalize:function(a,b){var c=a.split("!"),d=c[0];return(/^\./.test(d)?b(d):d)+(c[1]?"!"+c[1]:"")},load:function(a,b,c){var a=a.split("!"),m=1<a.length,g=a[0],p=b.toUrl(a[0]),a=h,t=function(a){c(m?j(a):a)};g in d?a=d[g]:p in b.cache?a=b.cache[p]:p in d&&(a=d[p]);if(a===h)if(f[p])f[p].push(t);
  163. else{var s=f[p]=[t];e(p,!b.async,function(a){d[g]=d[p]=a;for(var b=0;b<s.length;)s[b++](a);delete f[p]})}else t(a)}}})},"url:dojox/layout/resources/FloatingPane.html":'<div class="dojoxFloatingPane" id="${id}">\n\t<div tabindex="0" role="button" class="dojoxFloatingPaneTitle" dojoAttachPoint="focusNode">\n\t\t<span dojoAttachPoint="closeNode" dojoAttachEvent="onclick: close" class="dojoxFloatingCloseIcon"></span>\n\t\t<span dojoAttachPoint="maxNode" dojoAttachEvent="onclick: maximize" class="dojoxFloatingMaximizeIcon">&thinsp;</span>\n\t\t<span dojoAttachPoint="restoreNode" dojoAttachEvent="onclick: _restore" class="dojoxFloatingRestoreIcon">&thinsp;</span>\t\n\t\t<span dojoAttachPoint="dockNode" dojoAttachEvent="onclick: minimize" class="dojoxFloatingMinimizeIcon">&thinsp;</span>\n\t\t<span dojoAttachPoint="titleNode" class="dijitInline dijitTitleNode"></span>\n\t</div>\n\t<div dojoAttachPoint="canvas" class="dojoxFloatingPaneCanvas">\n\t\t<div dojoAttachPoint="containerNode" role="region" tabindex="-1" class="${contentClass}">\n\t\t</div>\n\t\t<span dojoAttachPoint="resizeHandle" class="dojoxFloatingResizeHandle"></span>\n\t</div>\n</div>\n',
  164. "dojo/uacss":function(){define("dojo/uacss",["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(c,g,a,b,e){var d=e.doc.documentElement,e=b("ie"),j=b("opera"),h=Math.floor,f=b("ff"),k=c.boxModel.replace(/-/,""),j={dj_quirks:b("quirks"),dj_opera:j,dj_khtml:b("khtml"),dj_webkit:b("webkit"),dj_safari:b("safari"),dj_chrome:b("chrome"),dj_gecko:b("mozilla")};e&&(j.dj_ie=!0,j["dj_ie"+h(e)]=!0,j.dj_iequirks=b("quirks"));f&&(j["dj_ff"+h(f)]=!0);j["dj_"+k]=!0;var l="",o;for(o in j)j[o]&&
  165. (l+=o+" ");d.className=g.trim(d.className+" "+l);a(90,function(){if(!c.isBodyLtr()){var a="dj_rtl dijitRtl "+l.replace(/ /g,"-rtl ");d.className=g.trim(d.className+" "+a+"dj_rtl dijitRtl "+l.replace(/ /g,"-rtl "))}});return b})},"dojo/string":function(){define("dojo/string",["./_base/kernel","./_base/lang"],function(c,g){g.getObject("string",!0,c);c.string.rep=function(a,b){if(0>=b||!a)return"";for(var c=[];;){b&1&&c.push(a);if(!(b>>=1))break;a+=a}return c.join("")};c.string.pad=function(a,b,e,d){e||
  166. (e="0");a=String(a);b=c.string.rep(e,Math.ceil((b-a.length)/e.length));return d?a+b:b+a};c.string.substitute=function(a,b,e,d){d=d||c.global;e=e?g.hitch(d,e):function(a){return a};return a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(a,c,f){a=g.getObject(c,!1,b);f&&(a=g.getObject(f,!1,d).call(d,a,c));return e(a,c).toString()})};c.string.trim=String.prototype.trim?g.trim:function(a){for(var a=a.replace(/^\s+/,""),b=a.length-1;0<=b;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a};
  167. return c.string})},"url:dijit/templates/MenuSeparator.html":'<tr class="dijitMenuSeparator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>',"dijit/Tooltip":function(){require({cache:{"url:dijit/templates/Tooltip.html":'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" data-dojo-attach-point="connectorNode"></div\n></div>\n'}});
  168. define("dijit/Tooltip","dojo/_base/array dojo/_base/declare dojo/_base/fx dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/_base/sniff dojo/_base/window ./_base/manager ./place ./_Widget ./_TemplatedMixin ./BackgroundIframe dojo/text!./templates/Tooltip.html .".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s){var q=g("dijit._MasterTooltip",[m,n],{duration:l.defaultDuration,templateString:t,postCreate:function(){k.body().appendChild(this.domNode);this.bgIframe=new p(this.domNode);
  169. this.fadeIn=a.fadeIn({node:this.domNode,duration:this.duration,onEnd:h.hitch(this,"_onShow")});this.fadeOut=a.fadeOut({node:this.domNode,duration:this.duration,onEnd:h.hitch(this,"_onHide")})},show:function(a,b,c,d,k){if(!this.aroundNode||!(this.aroundNode===b&&this.containerNode.innerHTML==a))if(this.domNode.width="auto","playing"==this.fadeOut.status())this._onDeck=arguments;else{this.containerNode.innerHTML=a;k&&this.set("textDir",k);this.containerNode.align=d?"right":"left";var f=o.around(this.domNode,
  170. b,c&&c.length?c:v.defaultPosition,!d,h.hitch(this,"orient")),e=f.aroundNodePos;"M"==f.corner.charAt(0)&&"M"==f.aroundCorner.charAt(0)?(this.connectorNode.style.top=e.y+(e.h-this.connectorNode.offsetHeight>>1)-f.y+"px",this.connectorNode.style.left=""):"M"==f.corner.charAt(1)&&"M"==f.aroundCorner.charAt(1)&&(this.connectorNode.style.left=e.x+(e.w-this.connectorNode.offsetWidth>>1)-f.x+"px");j.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=b}},orient:function(a,
  171. b,c,k,f){this.connectorNode.style.top="";var e=k.h,k=k.w;b.charAt(1)!=c.charAt(1)?k-=this.connectorNode.offsetWidth:e-=this.connectorNode.offsetHeight;a.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight",
  172. "BL-BR":"dijitTooltipLeft"}[b+"-"+c];this.domNode.style.width="auto";var h=d.getContentBox(this.domNode),j=Math.min(Math.max(k,1),h.w);this.domNode.style.width=j+"px";"B"==c.charAt(0)&&"B"==b.charAt(0)?(a=d.position(a),b=this.connectorNode.offsetHeight,a.h>e?(this.connectorNode.style.top=e-(f.h+b>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(f.h/2-b/2,0),a.h-b)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom=
  173. "");return Math.max(0,h.w-k)},_onShow:function(){f("ie")&&(this.domNode.style.filter="")},hide:function(a){this._onDeck&&this._onDeck[1]==a?this._onDeck=null:this.aroundNode===a&&(this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=null,this.fadeOut.play())},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)},_setAutoTextDir:function(a){this.applyTextDir(a,f("ie")?a.outerText:a.textContent);c.forEach(a.children,
  174. function(a){this._setAutoTextDir(a)},this)},_setTextDirAttr:function(a){this._set("textDir",a);"auto"==a?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}});s.showTooltip=function(a,b,d,k,f){d&&(d=c.map(d,function(a){return{after:"after-centered",before:"before-centered"}[a]||a}));v._masterTT||(s._masterTT=v._masterTT=new q);return v._masterTT.show(a,b,d,k,f)};s.hideTooltip=function(a){return v._masterTT&&v._masterTT.hide(a)};var v=g("dijit.Tooltip",m,{label:"",showDelay:400,
  175. connectId:[],position:[],_setConnectIdAttr:function(a){c.forEach(this._connections||[],function(a){c.forEach(a,h.hitch(this,"disconnect"))},this);this._connectIds=c.filter(h.isArrayLike(a)?a:a?[a]:[],function(a){return b.byId(a)});this._connections=c.map(this._connectIds,function(a){a=b.byId(a);return[this.connect(a,"onmouseenter","_onHover"),this.connect(a,"onmouseleave","_onUnHover"),this.connect(a,"onfocus","_onHover"),this.connect(a,"onblur","_onUnHover")]},this);this._set("connectId",a)},addTarget:function(a){a=
  176. a.id||a;-1==c.indexOf(this._connectIds,a)&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=c.indexOf(this._connectIds,a.id||a);0<=a&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);e.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;c.forEach(h.isArrayLike(a)?a:[a],this.addTarget,this)},_onHover:function(a){if(!this._showTimer){var b=a.target;
  177. this._showTimer=setTimeout(h.hitch(this,function(){this.open(b)}),this.showDelay)}},_onUnHover:function(){this._focus||(this._showTimer&&(clearTimeout(this._showTimer),delete this._showTimer),this.close())},open:function(a){this._showTimer&&(clearTimeout(this._showTimer),delete this._showTimer);v.show(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight(),this.textDir);this._connectNode=a;this.onShow(a,this.position)},close:function(){this._connectNode&&(v.hide(this._connectNode),
  178. delete this._connectNode,this.onHide());this._showTimer&&(clearTimeout(this._showTimer),delete this._showTimer)},onShow:function(){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments)}});v._MasterTooltip=q;v.show=s.showTooltip;v.hide=s.hideTooltip;v.defaultPosition=["after-centered","before-centered"];return v})},"dijit/form/DropDownButton":function(){require({cache:{"url:dijit/form/templates/DropDownButton.html":'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event="ondijitclick:_onClick" data-dojo-attach-point="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdata-dojo-attach-point="valueNode" role="presentation"\n/></span>\n'}});
  179. define("dijit/form/DropDownButton","dojo/_base/declare dojo/_base/lang dojo/query ../registry ../popup ./Button ../_Container ../_HasDropDown dojo/text!./templates/DropDownButton.html".split(" "),function(c,g,a,b,e,d,j,h,f){return c("dijit.form.DropDownButton",[d,j,h],{baseClass:"dijitDropDownButton",templateString:f,_fillContent:function(){if(this.srcNodeRef){var b=a("*",this.srcNodeRef);this.inherited(arguments,[b[0]]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&
  180. this.dropDownContainer){var c=a("[widgetId]",this.dropDownContainer)[0];this.dropDown=b.byNode(c);delete this.dropDownContainer}this.dropDown&&e.hide(this.dropDown);this.inherited(arguments)}},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(a){var b=this.dropDown,c=b.on("load",g.hitch(this,function(){c.remove();a()}));b.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})})},"dijit/form/_FormValueMixin":function(){define("dijit/form/_FormValueMixin",
  181. ["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/_base/sniff","./_FormWidgetMixin"],function(c,g,a,b,e){return c("dijit.form._FormValueMixin",e,{readOnly:!1,_setReadOnlyAttr:function(a){g.set(this.focusNode,"readOnly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);b("ie")&&this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(a,b){this._handleOnChange(a,
  182. b)},_handleOnChange:function(a,b){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)},_onKeyDown:function(c){if(c.keyCode==a.ESCAPE&&!c.ctrlKey&&!c.altKey&&!c.metaKey){var e;if(9>b("ie")||b("ie")&&b("quirks"))c.preventDefault(),e=document.createEventObject(),e.keyCode=a.ESCAPE,e.shiftKey=c.shiftKey,c.srcElement.fireEvent("onkeypress",e)}}})})},"dojox/layout/ContentPane":function(){define("dojox/layout/ContentPane",
  183. ["dojo/_base/lang","dojo/_base/xhr","dijit/layout/ContentPane","dojox/html/_base","dojo/_base/declare"],function(c,g,a,b,e){return e("dojox.layout.ContentPane",a,{adjustPaths:!1,cleanContent:!1,renderStyles:!1,executeScripts:!0,scriptHasHooks:!1,constructor:function(){this.ioArgs={};this.ioMethod=g.get},onExecError:function(){},_setContent:function(a){var e=this._contentSetter;e&&e instanceof b._ContentSetter||(e=this._contentSetter=new b._ContentSetter({node:this.containerNode,_onError:c.hitch(this,
  184. this._onError),onContentError:c.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=a}catch(b){console.error("Fatal "+this.id+" could not change content due to "+b.message,b)}})}));this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};
  185. this.inherited("_setContent",arguments)},destroy:function(){var a=this._contentSetter;a&&a.tearDown();this.inherited(arguments)}})})},"dijit/form/_FormWidgetMixin":function(){define("dijit/form/_FormWidgetMixin","dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/mouse dojo/_base/sniff dojo/_base/window dojo/window ../a11y".split(" "),function(c,g,a,b,e,d,j,h,f,k){return g("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",
  186. disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,_setIdAttr:"focusNode",_setDisabledAttr:function(b){this._set("disabled",b);a.set(this.focusNode,"disabled",b);this.valueNode&&a.set(this.valueNode,"disabled",b);this.focusNode.setAttribute("aria-disabled",b?"true":"false");b?(this._set("hovering",!1),this._set("active",!1),b="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",c.forEach(e.isArray(b)?b:[b],function(a){a=this[a];j("webkit")||
  187. k.hasDefaultTabStop(a)?a.setAttribute("tabIndex","-1"):a.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(a){if("mouse"==a&&this.isFocusable())var b=this.connect(this.focusNode,"onfocus",function(){this.disconnect(c);this.disconnect(b)}),c=this.connect(h.body(),"onmouseup",function(){this.disconnect(c);this.disconnect(b);this.focused&&this.focus()});this.scrollOnFocus&&this.defer(function(){f.scrollIntoView(this.domNode)});this.inherited(arguments)},
  188. isFocusable:function(){return!this.disabled&&this.focusNode&&"none"!=b.get(this.domNode,"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,b){if(void 0==this._lastValueReported&&(null===b||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=
  189. this._pendingOnChange||typeof a!=typeof this._lastValueReported||0!=this.compare(a,this._lastValueReported);if((this.intermediateChanges||b||void 0===b)&&this._pendingOnChange)this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(a)}))},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&
  190. (this._onChangeHandle.remove(),this.onChange(this._lastValueReported));this.inherited(arguments)}})})},"dojo/date":function(){define("dojo/date",["./_base/kernel","./_base/lang"],function(c,g){g.getObject("date",!0,c);c.date.getDaysInMonth=function(a){var b=a.getMonth();return 1==b&&c.date.isLeapYear(a)?29:[31,28,31,30,31,30,31,31,30,31,30,31][b]};c.date.isLeapYear=function(a){a=a.getFullYear();return!(a%400)||!(a%4)&&!!(a%100)};c.date.getTimezoneName=function(a){var b=a.toString(),c="",d=b.indexOf("(");
  191. if(-1<d)c=b.substring(++d,b.indexOf(")"));else if(d=/([A-Z\/]+) \d{4}$/,b=b.match(d))c=b[1];else if(b=a.toLocaleString(),d=/ ([A-Z\/]+)$/,b=b.match(d))c=b[1];return"AM"==c||"PM"==c?"":c};c.date.compare=function(a,b,c){a=new Date(+a);b=new Date(+(b||new Date));"date"==c?(a.setHours(0,0,0,0),b.setHours(0,0,0,0)):"time"==c&&(a.setFullYear(0,0,0),b.setFullYear(0,0,0));return a>b?1:a<b?-1:0};c.date.add=function(a,b,c){var d=new Date(+a),j=!1,h="Date";switch(b){case "day":break;case "weekday":var f;(b=
  192. c%5)?f=parseInt(c/5):(b=0<c?5:-5,f=0<c?(c-5)/5:(c+5)/5);var k=a.getDay(),l=0;6==k&&0<c?l=1:0==k&&0>c&&(l=-1);k+=b;if(0==k||6==k)l=0<c?2:-2;c=7*f+b+l;break;case "year":h="FullYear";j=!0;break;case "week":c*=7;break;case "quarter":c*=3;case "month":j=!0;h="Month";break;default:h="UTC"+b.charAt(0).toUpperCase()+b.substring(1)+"s"}if(h)d["set"+h](d["get"+h]()+c);j&&d.getDate()<a.getDate()&&d.setDate(0);return d};c.date.difference=function(a,b,e){var b=b||new Date,e=e||"day",d=b.getFullYear()-a.getFullYear(),
  193. j=1;switch(e){case "quarter":a=a.getMonth();b=b.getMonth();a=Math.floor(a/3)+1;b=Math.floor(b/3)+1;j=b+4*d-a;break;case "weekday":d=Math.round(c.date.difference(a,b,"day"));e=parseInt(c.date.difference(a,b,"week"));j=d%7;if(0==j)d=5*e;else{var h=0,f=a.getDay(),b=b.getDay(),e=parseInt(d/7),j=d%7,a=new Date(a);a.setDate(a.getDate()+7*e);a=a.getDay();if(0<d)switch(!0){case 6==f:h=-1;break;case 0==f:h=0;break;case 6==b:h=-1;break;case 0==b:h=-2;break;case 5<a+j:h=-2}else if(0>d)switch(!0){case 6==f:h=
  194. 0;break;case 0==f:h=1;break;case 6==b:h=2;break;case 0==b:h=1;break;case 0>a+j:h=2}d=d+h-2*e}j=d;break;case "year":j=d;break;case "month":j=b.getMonth()-a.getMonth()+12*d;break;case "week":j=parseInt(c.date.difference(a,b,"day")/7);break;case "day":j/=24;case "hour":j/=60;case "minute":j/=60;case "second":j/=1E3;case "millisecond":j*=b.getTime()-a.getTime()}return Math.round(j)};return c.date})},"dijit/layout/_ContentPaneResizeMixin":function(){define("dijit/layout/_ContentPaneResizeMixin","dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/_base/lang dojo/query dojo/_base/sniff dojo/_base/window ../registry ./utils ../_Contained".split(" "),
  195. function(c,g,a,b,e,d,j,h,f,k,l){return g("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isLayoutContainer:!0,startup:function(){if(!this._started){var a=this.getParent();this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._isShown()&&this._onShow();this._childOfLayoutWidget||this.connect(h("ie")?this.domNode:f.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var d=
  196. j("> *",this.containerNode).filter(function(a){return"SCRIPT"!==a.tagName}),f=d.filter(function(b){return a.has(b,"data-dojo-type")||a.has(b,"dojoType")||a.has(b,"widgetId")}),e=c.filter(f.map(k.byNode),function(a){return a&&a.domNode&&a.resize});d.length==f.length&&1==e.length?this._singleChild=e[0]:delete this._singleChild;b.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,b){!this._wasShown&&!1!==this.open&&this._onShow();this._resizeCalled=!0;this._scheduleLayout(a,
  197. b)},_scheduleLayout:function(a,b){this._isShown()?this._layout(a,b):(this._needLayout=!0,this._changeSize=a,this._resultSize=b)},_layout:function(a,b){a&&e.setMarginBox(this.domNode,a);var c=this.containerNode;if(c===this.domNode){var k=b||{};d.mixin(k,a||{});if(!("h"in k)||!("w"in k))k=d.mixin(e.getMarginBox(c),k);this._contentBox=l.marginBox2contentBox(c,k)}else this._contentBox=e.getContentBox(c);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();
  198. if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||e.getContentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else c.forEach(this.getChildren(),function(a){a.resize&&a.resize()})},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;if("open"in this)return this.open;var a=this.domNode,c=this.domNode.parentNode;return"none"!=a.style.display&&"hidden"!=a.style.visibility&&!b.contains(a,"dijitHidden")&&
  199. c&&c.style&&"none"!=c.style.display},_onShow:function(){this._wasShown=!0;this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments)}})})},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","./registry"],function(c,g,a,b){var e=g("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw Error("Tried to register widget with id=="+a.id+" but that id is already registered");
  200. this._hash[a.id]=a;this.length++},remove:function(a){this._hash[a]&&(delete this._hash[a],this.length--)},forEach:function(b,c){var c=c||a.global,e=0,f;for(f in this._hash)b.call(c,this._hash[f],e++,this._hash);return this},filter:function(b,c){var c=c||a.global,h=new e,f=0,k;for(k in this._hash){var l=this._hash[k];b.call(c,l,f++,this._hash)&&h.add(l)}return h},byId:function(a){return this._hash[a]},byClass:function(a){var b=new e,c,f;for(c in this._hash)f=this._hash[c],f.declaredClass==a&&b.add(f);
  201. return b},toArray:function(){var a=[],b;for(b in this._hash)a.push(this._hash[b]);return a},map:function(a,b){return c.map(this.toArray(),a,b)},every:function(b,c){var c=c||a.global,e=0,f;for(f in this._hash)if(!b.call(c,this._hash[f],e++,this._hash))return!1;return!0},some:function(b,c){var c=c||a.global,e=0,f;for(f in this._hash)if(b.call(c,this._hash[f],e++,this._hash))return!0;return!1}});c.forEach("forEach filter byClass map every some".split(" "),function(a){b[a]=e.prototype[a]});return e})},
  202. "dojo/dnd/Moveable":function(){define("dojo/dnd/Moveable",["../main","../Evented","../touch","./Mover"],function(c,g,a){c.declare("dojo.dnd.Moveable",[g],{handle:"",delay:0,skip:!1,constructor:function(b,e){this.node=c.byId(b);e||(e={});this.handle=e.handle?c.byId(e.handle):null;this.handle||(this.handle=this.node);this.delay=0<e.delay?e.delay:0;this.skip=e.skip;this.mover=e.mover?e.mover:c.dnd.Mover;this.events=[c.connect(this.handle,a.press,this,"onMouseDown"),c.connect(this.handle,"ondragstart",
  203. this,"onSelectStart"),c.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(a,c,d){return new d(c,a)},destroy:function(){c.forEach(this.events,c.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(b){if(!this.skip||!c.dnd.isFormElement(b)){if(this.delay)this.events.push(c.connect(this.handle,a.move,this,"onMouseMove"),c.connect(this.handle,a.release,this,"onMouseUp")),this._lastX=b.pageX,this._lastY=b.pageY;else this.onDragDetected(b);c.stopEvent(b)}},
  204. onMouseMove:function(a){if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay)this.onMouseUp(a),this.onDragDetected(a);c.stopEvent(a)},onMouseUp:function(a){for(var e=0;2>e;++e)c.disconnect(this.events.pop());c.stopEvent(a)},onSelectStart:function(a){(!this.skip||!c.dnd.isFormElement(a))&&c.stopEvent(a)},onDragDetected:function(a){new this.mover(this.node,a,this)},onMoveStart:function(a){c.publish("/dnd/move/start",[a]);c.addClass(c.body(),"dojoMove");c.addClass(this.node,
  205. "dojoMoveItem")},onMoveStop:function(a){c.publish("/dnd/move/stop",[a]);c.removeClass(c.body(),"dojoMove");c.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(a,c){this.onMoving(a,c);var d=a.node.style;d.left=c.l+"px";d.top=c.t+"px";this.onMoved(a,c)},onMoving:function(){},onMoved:function(){}});return c.dnd.Moveable})},"dijit/TooltipDialog":function(){require({cache:{"url:dijit/templates/TooltipDialog.html":'<div role="presentation" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div class ="dijitTooltipContents dijitTooltipFocusNode" data-dojo-attach-point="containerNode" role="dialog"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n</div>\n'}});
  206. define("dijit/TooltipDialog","dojo/_base/declare dojo/dom-class dojo/_base/event dojo/keys dojo/_base/lang ./focus ./layout/ContentPane ./_DialogMixin ./form/_FormMixin ./_TemplatedMixin dojo/text!./templates/TooltipDialog.html .".split(" "),function(c,g,a,b,e,d,j,h,f,k,l){return c("dijit.TooltipDialog",[j,k,f,h],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:l,_setTitleAttr:function(a){this.containerNode.title=a;this._set("title",
  207. a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,b,c){a="dijitTooltipAB"+("L"==c.charAt(1)?"Left":"Right")+" dijitTooltip"+("T"==c.charAt(0)?"Below":"Above");g.replace(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);d.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},onClose:function(){this.onHide()},
  208. _onKey:function(c){var k=c.target;c.charOrCode===b.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;c.charOrCode==b.ESCAPE?(setTimeout(e.hitch(this,"onCancel"),0),a.stop(c)):k==this._firstFocusItem&&c.shiftKey&&c.charOrCode===b.TAB?(f||d.focus(this._lastFocusItem),a.stop(c)):k==this._lastFocusItem&&c.charOrCode===b.TAB&&!c.shiftKey?(f||d.focus(this._firstFocusItem),a.stop(c)):c.charOrCode===b.TAB&&c.stopPropagation()}})})},"dijit/typematic":function(){define("dijit/typematic",
  209. "dojo/_base/array dojo/_base/connect dojo/_base/event dojo/_base/kernel dojo/_base/lang dojo/on dojo/_base/sniff .".split(" "),function(c,g,a,b,e,d,j,h){var f=h.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(0>this._currentTimeout?this._initialDelay:1<this._subsequentDelay?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(e.hitch(this,"_fireEventAndReload"),
  210. this._currentTimeout)},trigger:function(a,b,c,d,f,h,j,g){f!=this._obj&&(this.stop(),this._initialDelay=j||500,this._subsequentDelay=h||0.9,this._minDelay=g||10,this._obj=f,this._evt=a,this._node=c,this._count=this._currentTimeout=-1,this._callback=e.hitch(b,d),this._fireEventAndReload(),this._evt=e.mixin({faux:!0},a))},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null);this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(k,h,j,m,n,p,t){h.keyCode?
  211. (h.charOrCode=h.keyCode,b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")):h.charCode&&(h.charOrCode=String.fromCharCode(h.charCode),b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0"));var s=[d(k,g._keypress,e.hitch(this,function(b){b.charOrCode==h.charOrCode&&(void 0===h.ctrlKey||h.ctrlKey==b.ctrlKey)&&(void 0===h.altKey||h.altKey==b.altKey)&&(void 0===
  212. h.metaKey||h.metaKey==(b.metaKey||!1))&&(void 0===h.shiftKey||h.shiftKey==b.shiftKey)?(a.stop(b),f.trigger(b,j,k,m,h,n,p,t)):f._obj==h&&f.stop()})),d(k,"keyup",e.hitch(this,function(){f._obj==h&&f.stop()}))];return{remove:function(){c.forEach(s,function(a){a.remove()})}}},addMouseListener:function(b,h,o,g,n,p){var t=[d(b,"mousedown",e.hitch(this,function(c){a.stop(c);f.trigger(c,h,b,o,b,g,n,p)})),d(b,"mouseup",e.hitch(this,function(b){this._obj&&a.stop(b);f.stop()})),d(b,"mouseout",e.hitch(this,function(b){a.stop(b);
  213. f.stop()})),d(b,"mousemove",e.hitch(this,function(a){a.preventDefault()})),d(b,"dblclick",e.hitch(this,function(c){a.stop(c);9>j("ie")&&(f.trigger(c,h,b,o,b,g,n,p),setTimeout(e.hitch(this,f.stop),50))}))];return{remove:function(){c.forEach(t,function(a){a.remove()})}}},addListener:function(a,b,d,f,e,h,j,g){var q=[this.addKeyListener(b,d,f,e,h,j,g),this.addMouseListener(a,f,e,h,j,g)];return{remove:function(){c.forEach(q,function(a){a.remove()})}}}};return f})},"dijit/MenuItem":function(){require({cache:{"url:dijit/templates/MenuItem.html":'<tr class="dijitReset dijitMenuItem" data-dojo-attach-point="focusNode" role="menuitem" tabIndex="-1"\n\t\tdata-dojo-attach-event="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitIcon dijitMenuItemIcon" data-dojo-attach-point="iconNode"/>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" data-dojo-attach-point="containerNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" data-dojo-attach-point="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<div data-dojo-attach-point="arrowWrapper" style="visibility: hidden">\n\t\t\t<img src="${_blankGif}" alt="" class="dijitMenuExpand"/>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</div>\n\t</td>\n</tr>\n'}});
  214. define("dijit/MenuItem","dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/event dojo/_base/kernel dojo/_base/sniff ./_Widget ./_TemplatedMixin ./_Contained ./_CssStateMixin dojo/text!./templates/MenuItem.html".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o){return c("dijit.MenuItem",[h,f,k,l],{templateString:o,baseClass:"dijitMenuItem",label:"",_setLabelAttr:{node:"containerNode",type:"innerHTML"},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",
  215. disabled:!1,_fillContent:function(a){a&&!("label"in this.params)&&this.set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);var b=this.id+"_text";a.set(this.containerNode,"id",b);this.accelKeyNode&&(a.set(this.accelKeyNode,"id",this.id+"_accel"),b+=" "+this.id+"_accel");this.domNode.setAttribute("aria-labelledby",b);g.setSelectable(this.domNode,!1)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",
  216. !1)},_onClick:function(a){this.getParent().onItemClick(this,a);e.stop(a)},onClick:function(){},focus:function(){try{8==j("ie")&&this.containerNode.focus(),this.focusNode.focus()}catch(a){}},_onFocus:function(){this._setSelected(!0);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){b.toggle(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){d.deprecated("dijit.MenuItem.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",
  217. a)},setDisabled:function(a){d.deprecated("dijit.Menu.setDisabled() is deprecated. Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){this.focusNode.setAttribute("aria-disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(b){this.accelKeyNode.style.display=b?"":"none";this.accelKeyNode.innerHTML=b;a.set(this.containerNode,"colSpan",b?"1":"2");this._set("accelKey",b)}})})},"dijit/layout/TabController":function(){require({cache:{"url:dijit/layout/templates/_TabButton.html":"<div role=\"presentation\" data-dojo-attach-point=\"titleNode\" data-dojo-attach-event='onclick:onClick'>\n <div role=\"presentation\" class='dijitTabInnerDiv' data-dojo-attach-point='innerDiv'>\n <div role=\"presentation\" class='dijitTabContent' data-dojo-attach-point='tabContent'>\n \t<div role=\"presentation\" data-dojo-attach-point='focusNode'>\n\t\t <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" data-dojo-attach-point='iconNode' />\n\t\t <span data-dojo-attach-point='containerNode' class='tabLabel'></span>\n\t\t <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" data-dojo-attach-point='closeNode'\n\t\t \t\tdata-dojo-attach-event='onclick: onClickCloseButton' role=\"presentation\">\n\t\t <span data-dojo-attach-point='closeText' class='dijitTabCloseText'>[x]</span\n\t\t ></span>\n\t\t\t</div>\n </div>\n </div>\n</div>\n"}});
  218. define("dijit/layout/TabController","dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/i18n dojo/_base/lang ./StackController ../Menu ../MenuItem dojo/text!./templates/_TabButton.html dojo/i18n!../nls/common".split(" "),function(c,g,a,b,e,d,j,h,f,k){k=c("dijit.layout._TabButton",j.StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:k,scrollOnFocus:!1,buildRendering:function(){this.inherited(arguments);g.setSelectable(this.containerNode,!1)},
  219. startup:function(){this.inherited(arguments);var a=this.domNode;setTimeout(function(){a.className=a.className},1)},_setCloseButtonAttr:function(c){this._set("closeButton",c);b.toggle(this.innerDiv,"dijitClosable",c);this.closeNode.style.display=c?"":"none";c?(c=e.getLocalization("dijit","common"),this.closeNode&&a.set(this.closeNode,"title",c.itemClose),this._closeMenu=new h({id:this.id+"_Menu",dir:this.dir,lang:this.lang,textDir:this.textDir,targetNodeIds:[this.domNode]}),this._closeMenu.addChild(new f({label:c.itemClose,
  220. dir:this.dir,lang:this.lang,textDir:this.textDir,onClick:d.hitch(this,"onClickCloseButton")}))):this._closeMenu&&(this._closeMenu.destroyRecursive(),delete this._closeMenu)},_setLabelAttr:function(a){this.inherited(arguments);!this.showLabel&&!this.params.title&&(this.iconNode.alt=d.trim(this.containerNode.innerText||this.containerNode.textContent||""))},destroy:function(){this._closeMenu&&(this._closeMenu.destroyRecursive(),delete this._closeMenu);this.inherited(arguments)}});c=c("dijit.layout.TabController",
  221. j,{baseClass:"dijitTabController",templateString:"<div role='tablist' data-dojo-attach-event='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:k,_rectifyRtlTabList:function(){if(!(0>=this.tabPosition.indexOf("-h"))&&this.pane2button){var a=0,b;for(b in this.pane2button)a=Math.max(a,this.pane2button[b].innerDiv.scrollWidth);for(b in this.pane2button)this.pane2button[b].innerDiv.style.width=a+"px"}}});c.TabButton=k;return c})},"dojo/cldr/supplemental":function(){define("dojo/cldr/supplemental",
  222. ["../_base/kernel","../_base/lang","../i18n"],function(c,g){g.getObject("cldr.supplemental",!0,c);c.cldr.supplemental.getFirstDayOfWeek=function(a){a={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0}[c.cldr.supplemental._region(a)];return void 0===a?1:
  223. a};c.cldr.supplemental._region=function(a){var a=c.i18n.normalizeLocale(a),a=a.split("-"),b=a[1];b?4==b.length&&(b=a[2]):b={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[a[0]];return b};c.cldr.supplemental.getWeekend=function(a){var b=c.cldr.supplemental._region(a),a={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5}[b],b={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,
  224. kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6}[b];void 0===a&&(a=6);void 0===b&&(b=0);return{start:a,end:b}};return c.cldr.supplemental})},"dijit/ToolbarSeparator":function(){define("dijit/ToolbarSeparator",["dojo/_base/declare","dojo/dom","./_Widget","./_TemplatedMixin"],function(c,g,a,b){return c("dijit.ToolbarSeparator",[a,b],{templateString:'<div class="dijitToolbarSeparator dijitInline" role="presentation"></div>',buildRendering:function(){this.inherited(arguments);g.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},
  225. "dijit/layout/_LayoutWidget":function(){define("dijit/layout/_LayoutWidget","dojo/_base/lang ../_Widget ../_Container ../_Contained dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/sniff dojo/_base/window".split(" "),function(c,g,a,b,e,d,j,h,f,k){return e("dijit.layout._LayoutWidget",[g,a,b],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,buildRendering:function(){this.inherited(arguments);d.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);
  226. var a=this.getParent&&this.getParent();if(!a||!a.isLayoutContainer)this.resize(),this.connect(k.global,"onresize",function(){this.resize()})}},resize:function(a,b){var d=this.domNode;a&&j.setMarginBox(d,a);var k=b||{};c.mixin(k,a||{});if(!("h"in k)||!("w"in k))k=c.mixin(j.getMarginBox(d),k);var f=h.getComputedStyle(d),e=j.getMarginExtents(d,f),g=j.getBorderExtents(d,f),k=this._borderBox={w:k.w-(e.w+g.w),h:k.h-(e.h+g.h)},e=j.getPadExtents(d,f);this._contentBox={l:h.toPixelValue(d,f.paddingLeft),t:h.toPixelValue(d,
  227. f.paddingTop),w:k.w-e.w,h:k.h-e.h};this.layout()},layout:function(){},_setupChild:function(a){d.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,b){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){d.remove(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})})},"dojox/uuid/_base":function(){define("dojox/uuid/_base",["dojo/_base/kernel","dojo/_base/lang"],
  228. function(c){c.getObject("uuid",!0,dojox);dojox.uuid.NIL_UUID="00000000-0000-0000-0000-000000000000";dojox.uuid.version={UNKNOWN:0,TIME_BASED:1,DCE_SECURITY:2,NAME_BASED_MD5:3,RANDOM:4,NAME_BASED_SHA1:5};dojox.uuid.variant={NCS:"0",DCE:"10",MICROSOFT:"110",UNKNOWN:"111"};dojox.uuid.assert=function(c,a){if(!c)throw a||(a="An assert statement failed.\nThe method dojox.uuid.assert() was called with a 'false' value.\n"),Error(a);};dojox.uuid.generateNilUuid=function(){return dojox.uuid.NIL_UUID};dojox.uuid.isValid=
  229. function(g){var g=g.toString(),a=c.isString(g)&&36==g.length&&g==g.toLowerCase();if(a){var g=g.split("-"),a=5==g.length&&8==g[0].length&&4==g[1].length&&4==g[2].length&&4==g[3].length&&12==g[4].length,b;for(b in g)var e=parseInt(g[b],16),a=a&&isFinite(e)}return a};dojox.uuid.getVariant=function(c){if(!dojox.uuid._ourVariantLookupTable){var a=dojox.uuid.variant,b=[];b[0]=a.NCS;b[1]=a.NCS;b[2]=a.NCS;b[3]=a.NCS;b[4]=a.NCS;b[5]=a.NCS;b[6]=a.NCS;b[7]=a.NCS;b[8]=a.DCE;b[9]=a.DCE;b[10]=a.DCE;b[11]=a.DCE;
  230. b[12]=a.MICROSOFT;b[13]=a.MICROSOFT;b[14]=a.UNKNOWN;b[15]=a.UNKNOWN;dojox.uuid._ourVariantLookupTable=b}c=c.toString();c=c.charAt(19);c=parseInt(c,16);dojox.uuid.assert(0<=c&&16>=c);return dojox.uuid._ourVariantLookupTable[c]};dojox.uuid.getVersion=function(c){dojox.uuid.assert(dojox.uuid.getVariant(c)==dojox.uuid.variant.DCE,"dojox.uuid.getVersion() was not passed a DCE Variant UUID.");c=c.toString();c=c.charAt(14);return parseInt(c,16)};dojox.uuid.getNode=function(c){dojox.uuid.assert(dojox.uuid.getVersion(c)==
  231. dojox.uuid.version.TIME_BASED,"dojox.uuid.getNode() was not passed a TIME_BASED UUID.");c=c.toString();return c.split("-")[4]};dojox.uuid.getTimestamp=function(c,a){dojox.uuid.assert(dojox.uuid.getVersion(c)==dojox.uuid.version.TIME_BASED,"dojox.uuid.getTimestamp() was not passed a TIME_BASED UUID.");c=c.toString();a||(a=null);switch(a){case "string":case String:return dojox.uuid.getTimestamp(c,Date).toUTCString();case "hex":var b=c.split("-"),e=b[0],d=b[1],b=b[2],b=b.slice(1),e=b+d+e;dojox.uuid.assert(15==
  232. e.length);return e;case null:case "date":case Date:return b=c.split("-"),e=parseInt(b[0],16),d=parseInt(b[1],16),b=parseInt(b[2],16)&4095,b=(b<<16)+d,b*=4294967296,b+=e,new Date(b/1E4-122192928E5);default:dojox.uuid.assert(!1,"dojox.uuid.getTimestamp was not passed a valid returnType: "+a)}};return dojox.uuid})},"dojo/back":function(){define("dojo/back","./_base/kernel ./_base/lang ./_base/sniff ./dom ./dom-construct ./_base/window require".split(" "),function(c,g,a,b,e,d,j){function h(){var a=r.pop();
  233. if(a){var b=r[r.length-1];!b&&0==r.length&&(b=q);b&&(b.kwArgs.back?b.kwArgs.back():b.kwArgs.backButton?b.kwArgs.backButton():b.kwArgs.handle&&b.kwArgs.handle("back"));w.push(a)}}function f(){var a=w.pop();a&&(a.kwArgs.forward?a.kwArgs.forward():a.kwArgs.forwardButton?a.kwArgs.forwardButton():a.kwArgs.handle&&a.kwArgs.handle("forward"),r.push(a))}function k(a,b,c){return{url:a,kwArgs:b,urlHash:c}}function l(a){a=a.split("?");return 2>a.length?null:a[1]}function o(){var b=(c.config.dojoIframeHistoryUrl||
  234. j.toUrl("./resources/iframe_history.html"))+"?"+(new Date).getTime();E=!0;x&&(a("webkit")?x.location=b:window.frames[x.name].location=b);return b}function m(){if(!I){var a=r.length,b=n();(b===s||window.location.href==t)&&1==a?h():0<w.length&&w[w.length-1].urlHash===b?f():2<=a&&r[a-2]&&r[a-2].urlHash===b&&h()}}g.getObject("back",!0,c);var g=c.back,n=g.getHash=function(){var b=window.location.hash;"#"==b.charAt(0)&&(b=b.substring(1));return a("mozilla")?b:decodeURIComponent(b)},p=g.setHash=function(a){a||
  235. (a="");window.location.hash=encodeURIComponent(a)},t="undefined"!==typeof window?window.location.href:"",s="undefined"!==typeof window?n():"",q=null,v=null,u=null,x=null,w=[],r=[],E=!1,I=!1;g.goBack=h;g.goForward=f;g.init=function(){if(!b.byId("dj_history")){var a=c.config.dojoIframeHistoryUrl||j.toUrl("./resources/iframe_history.html");c._postLoad?console.error("dojo.back.init() must be called before the DOM has loaded. If using xdomain loading or djConfig.debugAtAllCosts, include dojo.back in a build layer."):
  236. document.write('<iframe style="border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;" name="dj_history" id="dj_history" src="'+a+'"></iframe>')}};g.setInitialState=function(a){q=k(t,a,s)};g.addToHistory=function(b){w=[];var f=null,h=null;x||(c.config.useXDomain&&!c.config.dojoIframeHistoryUrl&&console.warn("dojo.back: When using cross-domain Dojo builds, please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl to the path on your domain to iframe_history.html"),
  237. x=window.frames.dj_history);u||(u=e.create("a",{style:{display:"none"}},d.body()));if(b.changeUrl){f=""+(!0!==b.changeUrl?b.changeUrl:(new Date).getTime());if(0==r.length&&q.urlHash==f){q=k(h,b,f);return}if(0<r.length&&r[r.length-1].urlHash==f){r[r.length-1]=k(h,b,f);return}I=!0;setTimeout(function(){p(f);I=!1},1);u.href=f;if(a("ie")){var h=o(),j=b.back||b.backButton||b.handle,g=function(a){""!=n()&&setTimeout(function(){p(f)},1);j.apply(this,[a])};b.back?b.back=g:b.backButton?b.backButton=g:b.handle&&
  238. (b.handle=g);var l=b.forward||b.forwardButton||b.handle,g=function(a){""!=n()&&p(f);l&&l.apply(this,[a])};b.forward?b.forward=g:b.forwardButton?b.forwardButton=g:b.handle&&(b.handle=g)}else a("ie")||v||(v=setInterval(m,200))}else h=o();r.push(k(h,b,f))};g._iframeLoaded=function(a,b){var c=l(b.href);null==c?1==r.length&&h():E?E=!1:2<=r.length&&c==l(r[r.length-2].url)?h():0<w.length&&c==l(w[w.length-1].url)&&f()};return c.back})},"dijit/popup":function(){define("dijit/popup","dojo/_base/array dojo/aspect dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/event dojo/has dojo/keys dojo/_base/lang dojo/on dojo/_base/window ./place ./BackgroundIframe .".split(" "),
  239. function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q){function v(){this._popupWrapper&&(j.destroy(this._popupWrapper),delete this._popupWrapper)}b=b(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var b=a._popupWrapper,c=a.domNode;b||(b=j.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},p.body()),b.appendChild(c),c=c.style,c.display="",c.visibility="",c.position="",c.top="0px",a._popupWrapper=b,g.after(a,"destroy",v,!0));return b},moveOffScreen:function(a){a=
  240. this._createWrapper(a);f.set(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);f.set(a,"display","none")},getTopPopup:function(){for(var a=this._stack,b=a.length-1;0<b&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(b){for(var c=this._stack,f=b.popup,j=b.orient||["below","below-alt","above","above-alt"],g=b.parent?b.parent.isLeftToRight():h.isBodyLtr(),p=b.around,v=b.around&&b.around.id?b.around.id+"_dropdown":"popup_"+this._idGen++;c.length&&
  241. (!b.parent||!e.isDescendant(b.parent.domNode,c[c.length-1].widget.domNode));)this.close(c[c.length-1].widget);var q=this._createWrapper(f);d.set(q,{id:v,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(f.baseClass||f["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:b.parent?b.parent.id:""});l("bgIframe")&&!f.bgIframe&&(f.bgIframe=new s(q));j=p?t.around(q,p,j,g,f.orient?m.hitch(f,"orient"):null):t.at(q,b,"R"==j?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],b.padding);q.style.display=
  242. "";q.style.visibility="visible";f.domNode.style.visibility="visible";g=[];g.push(n(q,a._keypress,m.hitch(this,function(a){if(a.charOrCode==o.ESCAPE&&b.onCancel)k.stop(a),b.onCancel();else if(a.charOrCode===o.TAB&&(k.stop(a),(a=this.getTopPopup())&&a.onCancel))a.onCancel()})));f.onCancel&&b.onCancel&&g.push(f.on("cancel",b.onCancel));g.push(f.on(f.onExecute?"execute":"change",m.hitch(this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()})));c.push({widget:f,parent:b.parent,onExecute:b.onExecute,
  243. onCancel:b.onCancel,onClose:b.onClose,handlers:g});if(f.onOpen)f.onOpen(j);return j},close:function(a){for(var b=this._stack;a&&c.some(b,function(b){return b.widget==a})||!a&&b.length;){var d=b.pop(),f=d.widget,k=d.onClose;if(f.onClose)f.onClose();for(var e;e=d.handlers.pop();)e.remove();f&&f.domNode&&this.hide(f);k&&k()}}});return q.popup=new b})},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(c,g,a,b){c.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),
  244. function(c){b[c]=a[c]});b.defaultDuration=g.defaultDuration||200;return b})},"dijit/layout/StackController":function(){define("dijit/layout/StackController","dojo/_base/array dojo/_base/declare dojo/_base/event dojo/keys dojo/_base/lang dojo/_base/sniff ../focus ../registry ../_Widget ../_TemplatedMixin ../_Container ../form/ToggleButton dojo/i18n!../nls/common".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o){o=g("dijit.layout._StackButton",o,{tabIndex:"-1",closeButton:!1,_setCheckedAttr:function(a,
  245. b){this.inherited(arguments);this.focusNode.removeAttribute("aria-pressed")},buildRendering:function(a){this.inherited(arguments);(this.focusNode||this.domNode).setAttribute("role","tab")},onClick:function(){j.focus(this.focusNode)},onClickCloseButton:function(a){a.stopPropagation()}});g=g("dijit.layout.StackController",[f,k,l],{baseClass:"dijitStackController",templateString:"<span role='tablist' data-dojo-attach-event='onkeypress'></span>",containerId:"",buttonWidget:o,constructor:function(){this.pane2button=
  246. {};this.pane2connects={};this.pane2watches={}},postCreate:function(){this.inherited(arguments);this.subscribe(this.containerId+"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress")},onStartup:function(a){c.forEach(a.children,this.onAddChild,this);if(a.selected)this.onSelectChild(a.selected)},
  247. destroy:function(){for(var a in this.pane2button)this.onRemoveChild(h.byId(a));this.inherited(arguments)},onAddChild:function(a,b){var f=new (e.isString(this.buttonWidget)?e.getObject(this.buttonWidget):this.buttonWidget)({id:this.id+"_"+a.id,label:a.title,dir:a.dir,lang:a.lang,textDir:a.textDir,showLabel:a.showTitle,iconClass:a.iconClass,closeButton:a.closable,title:a.tooltip});f.focusNode.setAttribute("aria-selected","false");var k=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[a.id]=
  248. c.map(["title","showTitle","iconClass","closable","tooltip"],function(b,c){return a.watch(b,function(a,b,d){f.set(k[c],d)})});this.pane2connects[a.id]=[this.connect(f,"onClick",e.hitch(this,"onButtonClick",a)),this.connect(f,"onClickCloseButton",e.hitch(this,"onCloseButtonClick",a))];this.addChild(f,b);this.pane2button[a.id]=f;a.controlButton=f;this._currentChild||(f.focusNode.setAttribute("tabIndex","0"),f.focusNode.setAttribute("aria-selected","true"),this._currentChild=a);!this.isLeftToRight()&&
  249. (d("ie")&&this._rectifyRtlTabList)&&this._rectifyRtlTabList()},onRemoveChild:function(a){this._currentChild===a&&(this._currentChild=null);c.forEach(this.pane2connects[a.id],e.hitch(this,"disconnect"));delete this.pane2connects[a.id];c.forEach(this.pane2watches[a.id],function(a){a.unwatch()});delete this.pane2watches[a.id];var b=this.pane2button[a.id];b&&(this.removeChild(b),delete this.pane2button[a.id],b.destroy());delete a.controlButton},onSelectChild:function(a){if(a){if(this._currentChild){var b=
  250. this.pane2button[this._currentChild.id];b.set("checked",!1);b.focusNode.setAttribute("aria-selected","false");b.focusNode.setAttribute("tabIndex","-1")}b=this.pane2button[a.id];b.set("checked",!0);b.focusNode.setAttribute("aria-selected","true");this._currentChild=a;b.focusNode.setAttribute("tabIndex","0");h.byId(this.containerId).containerNode.setAttribute("aria-labelledby",b.id)}},onButtonClick:function(a){this._currentChild.id===a.id&&this.pane2button[a.id].set("checked",!0);h.byId(this.containerId).selectChild(a)},
  251. onCloseButtonClick:function(a){h.byId(this.containerId).closeChild(a);this._currentChild&&(a=this.pane2button[this._currentChild.id])&&j.focus(a.focusNode||a.domNode)},adjacent:function(a){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition)))a=!a;var b=this.getChildren(),d=c.indexOf(b,this.pane2button[this._currentChild.id]);return b[(d+(a?1:b.length-1))%b.length]},onkeypress:function(c){if(!this.disabled&&!c.altKey){var d=null;if(c.ctrlKey||!c._djpage){switch(c.charOrCode){case b.LEFT_ARROW:case b.UP_ARROW:c._djpage||
  252. (d=!1);break;case b.PAGE_UP:c.ctrlKey&&(d=!1);break;case b.RIGHT_ARROW:case b.DOWN_ARROW:c._djpage||(d=!0);break;case b.PAGE_DOWN:c.ctrlKey&&(d=!0);break;case b.HOME:case b.END:var f=this.getChildren();if(f&&f.length)f[c.charOrCode==b.HOME?0:f.length-1].onClick();a.stop(c);break;case b.DELETE:if(this._currentChild.closable)this.onCloseButtonClick(this._currentChild);a.stop(c);break;default:if(c.ctrlKey)if(c.charOrCode===b.TAB)this.adjacent(!c.shiftKey).onClick(),a.stop(c);else if("w"==c.charOrCode){if(this._currentChild.closable)this.onCloseButtonClick(this._currentChild);
  253. a.stop(c)}}null!==d&&(this.adjacent(d).onClick(),a.stop(c))}}},onContainerKeyPress:function(a){a.e._djpage=a.page;this.onkeypress(a.e)}});g.StackButton=o;return g})},"url:dijit/templates/TooltipDialog.html":'<div role="presentation" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div class ="dijitTooltipContents dijitTooltipFocusNode" data-dojo-attach-point="containerNode" role="dialog"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n</div>\n',
  254. "dojo/dnd/Mover":function(){define("dojo/dnd/Mover",["../main","../Evented","../touch","./common","./autoscroll"],function(c,g,a){c.declare("dojo.dnd.Mover",[g],{constructor:function(b,e,d){this.node=c.byId(b);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;e=this.host=d;b=b.ownerDocument;this.events=[c.connect(b,a.move,this,"onFirstMove"),c.connect(b,a.move,this,"onMouseMove"),c.connect(b,a.release,this,"onMouseUp"),c.connect(b,"ondragstart",c.stopEvent),c.connect(b.body,"onselectstart",
  255. c.stopEvent)];if(e&&e.onMoveStart)e.onMoveStart(this)},onMouseMove:function(a){c.dnd.autoScroll(a);var e=this.marginBox;this.host.onMove(this,{l:e.l+a.pageX,t:e.t+a.pageY},a);c.stopEvent(a)},onMouseUp:function(a){(c.isWebKit&&c.isMac&&2==this.mouseButton?0==a.button:this.mouseButton==a.button)&&this.destroy();c.stopEvent(a)},onFirstMove:function(a){var e=this.node.style,d,j=this.host;switch(e.position){case "relative":case "absolute":d=Math.round(parseFloat(e.left))||0;e=Math.round(parseFloat(e.top))||
  256. 0;break;default:e.position="absolute";e=c.marginBox(this.node);d=c.doc.body;var h=c.getComputedStyle(d),f=c._getMarginBox(d,h),h=c._getContentBox(d,h);d=e.l-(h.l-f.l);e=e.t-(h.t-f.t)}this.marginBox.l=d-this.marginBox.l;this.marginBox.t=e-this.marginBox.t;if(j&&j.onFirstMove)j.onFirstMove(this,a);c.disconnect(this.events.shift())},destroy:function(){c.forEach(this.events,c.disconnect);var a=this.host;if(a&&a.onMoveStop)a.onMoveStop(this);this.events=this.node=this.host=null}});return c.dnd.Mover})},
  257. "dijit/layout/TabContainer":function(){define("dijit/layout/TabContainer",["dojo/_base/lang","dojo/_base/declare","./_TabContainerBase","./TabController","./ScrollingTabController"],function(c,g,a){return g("dijit.layout.TabContainer",a,{useMenu:!0,useSlider:!0,controllerWidget:"",_makeController:function(a){var e=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout");return new (c.getObject(this.controllerWidget))({id:this.id+"_tablist",dir:this.dir,lang:this.lang,textDir:this.textDir,tabPosition:this.tabPosition,
  258. doLayout:this.doLayout,containerId:this.id,"class":e,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},a)},postMixInProperties:function(){this.inherited(arguments);this.controllerWidget||(this.controllerWidget=("top"==this.tabPosition||"bottom"==this.tabPosition)&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController")}})})},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",
  259. "require . dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/_base/sniff dojo/_base/window".split(" "),function(c,g,a,b,e,d,j,h,f){h.add("bgIframe",h("ie")||h("mozilla"));var k=new function(){var d=[];this.pop=function(){var k;d.length?(k=d.pop(),k.style.display=""):(9>h("ie")?(k="<iframe src='"+(a.dojoBlankHtmlUrl||c.toUrl("dojo/resources/blank.html")||'javascript:""')+"' role='presentation' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>",
  260. k=f.doc.createElement(k)):(k=b.create("iframe"),k.src='javascript:""',k.className="dijitBackgroundIframe",k.setAttribute("role","presentation"),e.set(k,"opacity",0.1)),k.tabIndex=-1);return k};this.push=function(a){a.style.display="none";d.push(a)}};g.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(h("bgIframe")){var b=this.iframe=k.pop();a.appendChild(b);7>h("ie")||h("quirks")?(this.resize(a),this._conn=j(a,"resize",d.hitch(this,function(){this.resize(a)}))):e.set(b,{width:"100%",height:"100%"})}};
  261. d.extend(g.BackgroundIframe,{resize:function(a){this.iframe&&e.set(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(k.push(this.iframe),delete this.iframe)}});return g.BackgroundIframe})},"url:dijit/templates/Menu.html":'<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}" data-dojo-attach-event="onkeypress:_onKeyPress" cellspacing="0">\n\t<tbody class="dijitReset" data-dojo-attach-point="containerNode"></tbody>\n</table>\n',
  262. "dojo/dnd/Avatar":function(){define("dojo/dnd/Avatar",["../main","./common"],function(c){c.declare("dojo.dnd.Avatar",null,{constructor:function(c){this.manager=c;this.construct()},construct:function(){this.isA11y=c.hasClass(c.body(),"dijit_a11y");var g=c.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),a=this.manager.source,b,e=c.create("tbody",null,g),d=c.create("tr",null,e),j=c.create("td",null,d);this.isA11y&&c.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?
  263. "+":"<"},j);c.create("span",{innerHTML:a.generateText?this._generateText():""},j);var h=Math.min(5,this.manager.nodes.length),f=0;for(c.attr(d,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});f<h;++f)a.creator?b=a._normalizedCreator(a.getItem(this.manager.nodes[f].id).data,"avatar").node:(b=this.manager.nodes[f].cloneNode(!0),"tr"==b.tagName.toLowerCase()&&(d=c.create("table"),c.create("tbody",null,d).appendChild(b),b=d)),b.id="",d=c.create("tr",null,e),j=c.create("td",null,d),j.appendChild(b),
  264. c.attr(d,{"class":"dojoDndAvatarItem",style:{opacity:(9-f)/10}});this.node=g},destroy:function(){c.destroy(this.node);this.node=!1},update:function(){c[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var g=c.byId("a11yIcon"),a="+";this.manager.canDropFlag&&!this.manager.copy?a="< ":!this.manager.canDropFlag&&!this.manager.copy?a="o":this.manager.canDropFlag||(a="x");g.innerHTML=a}c.query("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":""),
  265. this.node).forEach(function(a){a.innerHTML=this._generateText()},this)},_generateText:function(){return this.manager.nodes.length.toString()}});return c.dnd.Avatar})},"dojox/dtl/filter/strings":function(){define("dojox/dtl/filter/strings","dojo/_base/lang dojo/_base/array dojox/string/tokenize dojox/string/sprintf ../filter/htmlstrings ../_base".split(" "),function(c,g,a,b,e,d){c.getObject("dojox.dtl.filter.strings",!0);c.mixin(d.filter.strings,{_urlquote:function(b,c){c||(c="/");return a(b,/([^\w-_.])/g,
  266. function(a){return-1==c.indexOf(a)?" "==a?"+":"%"+a.charCodeAt(0).toString(16).toUpperCase():a}).join("")},addslashes:function(a){return a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/'/g,"\\'")},capfirst:function(a){a=""+a;return a.charAt(0).toUpperCase()+a.substring(1)},center:function(a,b){var b=b||a.length,a=a+"",c=b-a.length;c%2&&(a+=" ",c-=1);for(var d=0;d<c;d+=2)a=" "+a+" ";return a},cut:function(a,b){return(a+"").replace(RegExp(b+""||"","g"),"")},_fix_ampersands:/&(?!(\w+|#\d+);)/g,
  267. fix_ampersands:function(a){return a.replace(dojox.dtl.filter.strings._fix_ampersands,"&amp;")},floatformat:function(a,b){b=parseInt(b||-1,10);a=parseFloat(a);if(!(a-a.toFixed(0))&&0>b)return a.toFixed();a=a.toFixed(Math.abs(b));return 0>b?parseFloat(a)+"":a},iriencode:function(a){return dojox.dtl.filter.strings._urlquote(a,"/#%[]=:;$&()+,!")},linenumbers:function(a){for(var b=dojox.dtl.filter,a=a.split("\n"),c=[],d=(a.length+"").length,e=0,g;e<a.length;e++)g=a[e],c.push(b.strings.ljust(e+1,d)+". "+
  268. dojox.dtl._base.escape(g));return c.join("\n")},ljust:function(a,b){a+="";for(b=parseInt(b,10);a.length<b;)a+=" ";return a},lower:function(a){return(a+"").toLowerCase()},make_list:function(a){var b=[];"number"==typeof a&&(a+="");if(a.charAt){for(var c=0;c<a.length;c++)b.push(a.charAt(c));return b}if("object"==typeof a){for(c in a)b.push(a[c]);return b}return[]},rjust:function(a,b){a+="";for(b=parseInt(b,10);a.length<b;)a=" "+a;return a},slugify:function(a){a=a.replace(/[^\w\s-]/g,"").toLowerCase();
  269. return a.replace(/[\-\s]+/g,"-")},_strings:{},stringformat:function(a,c){var c=""+c,d=dojox.dtl.filter.strings._strings;d[c]||(d[c]=new b.Formatter("%"+c));return d[c].format(a)},title:function(a){for(var b,c="",d=0,e;d<a.length;d++)e=a.charAt(d),c=" "==b||"\n"==b||"\t"==b||!b?c+e.toUpperCase():c+e.toLowerCase(),b=e;return c},_truncatewords:/[ \n\r\t]/,truncatewords:function(a,b){b=parseInt(b,10);if(!b)return a;for(var c=0,d=a.length,e=0,g,m;c<a.length;c++){g=a.charAt(c);if(dojox.dtl.filter.strings._truncatewords.test(m)){if(!dojox.dtl.filter.strings._truncatewords.test(g)&&
  270. (++e,e==b))return a.substring(0,d+1)}else dojox.dtl.filter.strings._truncatewords.test(g)||(d=c);m=g}return a},_truncate_words:/(&.*?;|<.*?>|(\w[\w\-]*))/g,_truncate_tag:/<(\/)?([^ ]+?)(?: (\/)| .*?)?>/,_truncate_singlets:{br:!0,col:!0,link:!0,base:!0,img:!0,param:!0,area:!0,hr:!0,input:!0},truncatewords_html:function(b,c){c=parseInt(c,10);if(0>=c)return"";for(var d=dojox.dtl.filter.strings,k=0,e=[],o=a(b,d._truncate_words,function(a,b){if(b){++k;if(k<c)return b;if(k==c)return b+" ..."}var j=a.match(d._truncate_tag);
  271. if(j&&!(k>=c)){var o=j[1],j=j[2].toLowerCase();!o&&!d._truncate_singlets[j]&&(o?(o=g.indexOf(e,j),-1!=o&&(e=e.slice(o+1))):e.unshift(j));return a}}).join(""),o=o.replace(/\s+$/g,""),m=0,n;n=e[m];m++)o+="</"+n+">";return o},upper:function(a){return a.toUpperCase()},urlencode:function(a){return dojox.dtl.filter.strings._urlquote(a)},_urlize:/^((?:[(>]|&lt;)*)(.*?)((?:[.,)>\n]|&gt;)*)$/,_urlize2:/^\S+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+$/,urlize:function(a){return dojox.dtl.filter.strings.urlizetrunc(a)},
  272. urlizetrunc:function(b,c){c=parseInt(c);return a(b,/(\S+)/g,function(a){var b=dojox.dtl.filter.strings._urlize.exec(a);if(!b)return a;var b=b[2],d=0==b.indexOf("www."),e=-1!=b.indexOf("@"),j=-1!=b.indexOf(":"),g=0==b.indexOf("http://"),p=0==b.indexOf("https://"),t=/[a-zA-Z0-9]/.test(b.charAt(0)),s=b.substring(b.length-4),q=b;3<c&&(q=q.substring(0,c-3)+"...");return d||!e&&!g&&b.length&&t&&(".org"==s||".net"==s||".com"==s)?'<a href="http://'+b+'" rel="nofollow">'+q+"</a>":g||p?'<a href="'+b+'" rel="nofollow">'+
  273. q+"</a>":e&&!d&&!j&&dojox.dtl.filter.strings._urlize2.test(b)?'<a href="mailto:'+b+'">'+b+"</a>":a}).join("")},wordcount:function(a){a=c.trim(a);return!a?0:a.split(/\s+/g).length},wordwrap:function(a,b){var b=parseInt(b),c=[],d=a.split(/\s+/g);if(d.length){var e=d.shift();c.push(e);for(var g=e.length-e.lastIndexOf("\n")-1,m=0;m<d.length;m++){var e=d[m],n=-1!=e.indexOf("\n")?e.split(/\n/g):[e],g=g+(n[0].length+1);b&&g>b?(c.push("\n"),g=n[n.length-1].length):(c.push(" "),1<n.length&&(g=n[n.length-1].length));
  274. c.push(e)}}return c.join("")}});return dojox.dtl.filter.strings})},"dijit/form/Button":function(){require({cache:{"url:dijit/form/templates/Button.html":'<span class="dijit dijitReset dijitInline" role="presentation"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event="ondijitclick:_onClick" role="presentation"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" data-dojo-attach-point="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdata-dojo-attach-point="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen"\n\t\ttabIndex="-1" role="presentation" data-dojo-attach-point="valueNode"\n/></span>\n'}});
  275. define("dijit/form/Button","require dojo/_base/declare dojo/dom-class dojo/_base/kernel dojo/_base/lang dojo/ready ./_FormWidget ./_ButtonMixin dojo/text!./templates/Button.html".split(" "),function(c,g,a,b,e,d,j,h,f){b.isAsync||d(0,function(){c(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});return g("dijit.form.Button",[j,h],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:f,_setValueAttr:"valueNode",
  276. _onClick:function(a){var b=this.inherited(arguments);b&&this.valueNode&&(this.valueNode.click(),a.preventDefault());return b},_fillContent:function(a){if(a&&(!this.params||!("label"in this.params)))if(a=e.trim(a.innerHTML))this.label=a},_setShowLabelAttr:function(b){this.containerNode&&a.toggle(this.containerNode,"dijitDisplayNone",!b);this._set("showLabel",b)},setLabel:function(a){b.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",
  277. a)},_setLabelAttr:function(a){this.inherited(arguments);!this.showLabel&&!("title"in this.params)&&(this.titleNode.title=e.trim(this.containerNode.innerText||this.containerNode.textContent||""))}})})},"url:dijit/layout/templates/TabContainer.html":'<div class="dijitTabContainer">\n\t<div class="dijitTabListWrapper" data-dojo-attach-point="tablistNode"></div>\n\t<div data-dojo-attach-point="tablistSpacer" class="dijitTabSpacer ${baseClass}-spacer"></div>\n\t<div class="dijitTabPaneWrapper ${baseClass}-container" data-dojo-attach-point="containerNode"></div>\n</div>\n',
  278. "dojo/dnd/move":function(){define("dojo/dnd/move",["../main","./Mover","./Moveable"],function(c){c.declare("dojo.dnd.move.constrainedMoveable",c.dnd.Moveable,{constraints:function(){},within:!1,constructor:function(c,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(g){var a=this.constraintBox=this.constraints.call(this,g);a.r=a.l+a.w;a.b=a.t+a.h;this.within&&(g=c._getMarginSize(g.node),a.r-=g.w,a.b-=g.h)},onMove:function(c,a){var b=this.constraintBox,e=c.node.style;
  279. this.onMoving(c,a);a.l=a.l<b.l?b.l:b.r<a.l?b.r:a.l;a.t=a.t<b.t?b.t:b.b<a.t?b.b:a.t;e.left=a.l+"px";e.top=a.t+"px";this.onMoved(c,a)}});c.declare("dojo.dnd.move.boxConstrainedMoveable",c.dnd.move.constrainedMoveable,{box:{},constructor:function(c,a){var b=a&&a.box;this.constraints=function(){return b}}});c.declare("dojo.dnd.move.parentConstrainedMoveable",c.dnd.move.constrainedMoveable,{area:"content",constructor:function(g,a){var b=a&&a.area;this.constraints=function(){var a=this.node.parentNode,
  280. d=c.getComputedStyle(a),j=c._getMarginBox(a,d);if("margin"==b)return j;var h=c._getMarginExtents(a,d);j.l+=h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;if("border"==b)return j;h=c._getBorderExtents(a,d);j.l+=h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;if("padding"==b)return j;h=c._getPadExtents(a,d);j.l+=h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;return j}}});c.dnd.constrainedMover=c.dnd.move.constrainedMover;c.dnd.boxConstrainedMover=c.dnd.move.boxConstrainedMover;c.dnd.parentConstrainedMover=c.dnd.move.parentConstrainedMover;return c.dnd.move})},
  281. "dijit/_WidgetBase":function(){define("dijit/_WidgetBase","require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./registry".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q,v,u){function x(a){return function(b){h[b?"set":"remove"](this.domNode,a,b);this._set(a,b)}}m.isAsync||
  282. t(0,function(){c(["dijit/_base/manager"])});var w={};return d("dijit._WidgetBase",s,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:x("lang"),dir:"",_setDirAttr:x("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:b.blankGif||c.toUrl("dojo/resources/blank.gif"),postscript:function(a,b){this.create(a,b)},create:function(a,b){this.srcNodeRef=j.byId(b);this._connects=
  283. [];this._supportingWidgets=[];this.srcNodeRef&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);a&&(this.params=a,n.mixin(this,a));this.postMixInProperties();this.id||(this.id=u.getUniqueId(this.declaredClass.replace(/\./g,"_")));u.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var c=this.srcNodeRef;c&&(c.parentNode&&this.domNode!==c)&&c.parentNode.replaceChild(this.domNode,c)}this.domNode&&this.domNode.setAttribute("widgetId",this.id);this.postCreate();
  284. this.srcNodeRef&&!this.srcNodeRef.parentNode&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a=this.constructor,b=a._setterAttrs;if(!b){var b=a._setterAttrs=[],c;for(c in this.attributeMap)b.push(c);var a=a.prototype,d;for(d in a)d in this.attributeMap||"_set"+d.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-1).toUpperCase()})+"Attr"in a&&b.push(d)}g.forEach(b,function(a){this.params&&a in this.params||this[a]&&this.set(a,this[a])},this);for(var f in this.params)this.set(f,
  285. this[f])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||k.create("div"));if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(g.map(a,function(a){return a+"Rtl"})));f.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,g.forEach(this.getChildren(),function(a){!a._started&&(!a._destroyed&&n.isFunction(a.startup))&&(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=
  286. !0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){this._beingDestroyed=!0;this.uninitialize();for(var b;b=this._connects.pop();)b.remove();for(;b=this._supportingWidgets.pop();)b.destroyRecursive?b.destroyRecursive():b.destroy&&b.destroy();this.destroyRendering(a);u.remove(this.id);this._destroyed=!0},destroyRendering:function(a){this.bgIframe&&(this.bgIframe.destroy(a),delete this.bgIframe);this.domNode&&(a?h.remove(this.domNode,"widgetId"):k.destroy(this.domNode),delete this.domNode);
  287. this.srcNodeRef&&(a||k.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){g.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var b=this.domNode;n.isObject(a)?o.set(b,a):b.style.cssText=b.style.cssText?b.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(a,b,c){c=3<=arguments.length?c:this.attributeMap[a];g.forEach(n.isArray(c)?c:[c],function(c){var d=this[c.node||
  288. c||"domNode"];switch(c.type||"attribute"){case "attribute":n.isFunction(b)&&(b=n.hitch(this,b));c=c.attribute?c.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;h.set(d,c,b);break;case "innerText":d.innerHTML="";d.appendChild(v.doc.createTextNode(b));break;case "innerHTML":d.innerHTML=b;break;case "class":f.replace(d,b,this[a])}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this[a]},set:function(a,b){if("object"===typeof a){for(var c in a)this.set(c,a[c]);
  289. return this}c=this._getAttrNames(a);var d=this[c.s];if(n.isFunction(d))var f=d.apply(this,Array.prototype.slice.call(arguments,1));else{var d=this.focusNode&&!n.isFunction(this.focusNode)?"focusNode":"domNode",k=this[d].tagName,e;if(!(e=w[k])){e=this[d];var h={},j;for(j in e)h[j.toLowerCase()]=!0;e=w[k]=h}j=a in this.attributeMap?this.attributeMap[a]:c.s in this?this[c.s]:c.l in e&&"function"!=typeof b||/^aria-|^data-|^role$/.test(a)?d:null;null!=j&&this._attrToDom(a,b,j);this._set(a,b)}return f||
  290. this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var c=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-1).toUpperCase()});return b[a]={n:a+"Node",s:"_set"+c+"Attr",g:"_get"+c+"Attr",l:c.toLowerCase()}},_set:function(a,b){var c=this[a];this[a]=b;this._watchCallbacks&&(this._created&&!(b===c||b!==b&&c!==c))&&this._watchCallbacks(a,c,b)},on:function(b,c){return a.after(this,this._onMap(b),c,!0)},_onMap:function(a){var b=this.constructor,
  291. c=b._onMap;if(!c){var c=b._onMap={},d;for(d in b.prototype)/^on/.test(d)&&(c[d.replace(/^on/,"").toLowerCase()]=d)}return c[a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?u.findWidgets(this.containerNode):[]},getParent:function(){return u.getEnclosingWidget(this.domNode.parentNode)},connect:function(a,b,c){a=e.connect(a,b,this,c);this._connects.push(a);return a},disconnect:function(a){var b=g.indexOf(this._connects,
  292. a);-1!=b&&(a.remove(),this._connects.splice(b,1))},subscribe:function(a,b){var c=q.subscribe(a,n.hitch(this,b));this._connects.push(c);return c},unsubscribe:function(a){this.disconnect(a)},isLeftToRight:function(){return this.dir?"ltr"==this.dir:l.isBodyLtr()},isFocusable:function(){return this.focus&&"none"!=o.get(this.domNode,"display")},placeAt:function(a,b){a.declaredClass&&a.addChild?a.addChild(this,b):k.place(this.domNode,a,b);return this},getTextDir:function(a,b){return b},applyTextDir:function(){},
  293. defer:function(a,b){var c=setTimeout(n.hitch(this,function(){c&&(c=null,this._destroyed||n.hitch(this,a)())}),b||0);return{remove:function(){c&&(clearTimeout(c),c=null);return null}}}})})},"dijit/layout/_TabContainerBase":function(){require({cache:{"url:dijit/layout/templates/TabContainer.html":'<div class="dijitTabContainer">\n\t<div class="dijitTabListWrapper" data-dojo-attach-point="tablistNode"></div>\n\t<div data-dojo-attach-point="tablistSpacer" class="dijitTabSpacer ${baseClass}-spacer"></div>\n\t<div class="dijitTabPaneWrapper ${baseClass}-container" data-dojo-attach-point="containerNode"></div>\n</div>\n'}});
  294. define("dijit/layout/_TabContainerBase","dojo/text!./templates/TabContainer.html ./StackContainer ./utils ../_TemplatedMixin dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style".split(" "),function(c,g,a,b,e,d,j,h){return e("dijit.layout._TabContainerBase",[g,b],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:!1,nested:!1,templateString:c,postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&
  295. h.set(this.srcNodeRef,"visibility","hidden");this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);this.doLayout||d.add(this.domNode,"dijitTabContainerNoLayout");this.nested?(d.add(this.domNode,"dijitTabContainerNested"),d.add(this.tablist.containerNode,"dijitTabContainerTabListNested"),d.add(this.tablistSpacer,"dijitTabContainerSpacerNested"),d.add(this.containerNode,"dijitTabPaneWrapperNested")):d.add(this.domNode,"tabStrip-"+
  296. (this.tabStrip?"enabled":"disabled"))},_setupChild:function(a){d.add(a.domNode,"dijitTabPane");this.inherited(arguments)},startup:function(){this._started||(this.tablist.startup(),this.inherited(arguments))},layout:function(){if(this._contentBox&&"undefined"!=typeof this._contentBox.l){var b=this.selectedChildWidget;if(this.doLayout){var c=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=c;c=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:c},{domNode:this.containerNode,layoutAlign:"client"}];
  297. a.layoutChildren(this.domNode,this._contentBox,c);this._containerContentBox=a.marginBox2contentBox(this.containerNode,c[2]);b&&b.resize&&b.resize(this._containerContentBox)}else{if(this.tablist.resize){c=this.tablist.domNode.style;c.width="0";var d=j.getContentBox(this.domNode).w;c.width="";this.tablist.resize({w:d})}b&&b.resize&&b.resize()}}},destroy:function(){this.tablist&&this.tablist.destroy();this.inherited(arguments)}})})},"dojox/fx/_core":function(){define("dojox/fx/_core",["dojo/_base/lang",
  298. "dojo/_base/array","./_base"],function(c,g,a){var b=function(a,b){this.start=a;this.end=b;var j=c.isArray(a),h=j?[]:b-a;j?(g.forEach(this.start,function(a,b){h[b]=this.end[b]-a},this),this.getValue=function(a){var b=[];g.forEach(this.start,function(c,d){b[d]=h[d]*a+c},this);return b}):this.getValue=function(a){return h*a+this.start}};return a._Line=b})},"url:dijit/templates/Tooltip.html":'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" data-dojo-attach-point="connectorNode"></div\n></div>\n',
  299. "dijit/_base/sniff":function(){define("dijit/_base/sniff",["dojo/uacss"],function(){})},"dojox/uuid/generateRandomUuid":function(){define("dojox/uuid/generateRandomUuid",["./_base"],function(){dojox.uuid.generateRandomUuid=function(){function c(){for(var a=Math.floor(Math.random()%1*Math.pow(2,32)).toString(g);8>a.length;)a="0"+a;return a}var g=16,a=c(),b=c(),b=b.substring(0,4)+"-4"+b.substring(5,8),e=c(),e="8"+e.substring(1,4)+"-"+e.substring(4,8),d=c();return a=(a+"-"+b+"-"+e+d).toLowerCase()};
  300. return dojox.uuid.generateRandomUuid})},"dijit/Toolbar":function(){define("dijit/Toolbar","require dojo/_base/declare dojo/_base/kernel dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),function(c,g,a,b,e,d,j,h){a.isAsync||e(0,function(){c(["dijit/ToolbarSeparator"])});return g("dijit.Toolbar",[d,h,j],{templateString:'<div class="dijit" role="toolbar" tabIndex="${tabIndex}" data-dojo-attach-point="containerNode"></div>',baseClass:"dijitToolbar",postCreate:function(){this.inherited(arguments);
  301. this.connectKeyNavHandlers(this.isLeftToRight()?[b.LEFT_ARROW]:[b.RIGHT_ARROW],this.isLeftToRight()?[b.RIGHT_ARROW]:[b.LEFT_ARROW])}})})},"dojo/fx/easing":function(){define("dojo/fx/easing",["../_base/lang"],function(c){var g={linear:function(a){return a},quadIn:function(a){return Math.pow(a,2)},quadOut:function(a){return-1*a*(a-2)},quadInOut:function(a){a*=2;return 1>a?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=
  302. 2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*
  303. (Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0==a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1==a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0==a)return 0;if(1==a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+
  304. 1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0==a||1==a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)},elasticOut:function(a){return 0==a||1==a?a:Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},elasticInOut:function(a){if(0==
  305. a)return 0;a*=2;if(2==a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin((a-c)*2*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin((a-c)*2*Math.PI/b)+1},bounceIn:function(a){return 1-g.bounceOut(1-a)},bounceOut:function(a){a<1/2.75?a=7.5625*Math.pow(a,2):a<2/2.75?a=7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?(a-=2.25/2.75,a=7.5625*Math.pow(a,2)+0.9375):(a-=2.625/2.75,a=7.5625*Math.pow(a,2)+0.984375);return a},bounceInOut:function(a){return 0.5>a?g.bounceIn(2*a)/
  306. 2:g.bounceOut(2*a-1)/2+0.5}};c.setObject("dojo.fx.easing",g);return g})},"dijit/layout/StackContainer":function(){define("dijit/layout/StackContainer","dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/_base/kernel dojo/_base/lang dojo/ready dojo/topic ../registry ../_WidgetBase ./_LayoutWidget dojo/i18n!../nls/common".split(" "),function(c,g,a,b,e,d,j,h,f,k,l){e.isAsync||j(0,function(){require(["dijit/layout/StackController"])});d.extend(k,{selected:!1,closable:!1,iconClass:"dijitNoIcon",
  307. showTitle:!0});return a("dijit.layout.StackContainer",l,{doLayout:!0,persist:!1,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);b.add(this.domNode,"dijitLayoutContainer");this.containerNode.setAttribute("role","tabpanel")},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress)},startup:function(){if(!this._started){var a=this.getChildren();c.forEach(a,this._setupChild,this);this.persist?this.selectedChildWidget=
  308. f.byId(g(this.id+"_selectedChild")):c.some(a,function(a){a.selected&&(this.selectedChildWidget=a);return a.selected},this);var b=this.selectedChildWidget;!b&&a[0]&&(b=this.selectedChildWidget=a[0],b.selected=!0);h.publish(this.id+"-startup",{children:a,selected:b});this.inherited(arguments)}},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=!0;var a=this.selectedChildWidget;a&&this._showChild(a)}this.inherited(arguments)},_setupChild:function(a){this.inherited(arguments);b.replace(a.domNode,
  309. "dijitHidden","dijitVisible");a.domNode.title=""},addChild:function(a,b){this.inherited(arguments);this._started&&(h.publish(this.id+"-addChild",a,b),this.layout(),this.selectedChildWidget||this.selectChild(a))},removeChild:function(a){this.inherited(arguments);this._started&&h.publish(this.id+"-removeChild",a);if(!this._descendantsBeingDestroyed){if(this.selectedChildWidget===a&&(this.selectedChildWidget=void 0,this._started)){var b=this.getChildren();b.length&&this.selectChild(b[0])}this._started&&
  310. this.layout()}},selectChild:function(a,b){a=f.byId(a);if(this.selectedChildWidget!=a){var c=this._transition(a,this.selectedChildWidget,b);this._set("selectedChildWidget",a);h.publish(this.id+"-selectChild",a);this.persist&&g(this.id+"_selectedChild",this.selectedChildWidget.id)}return c},_transition:function(a,b){b&&this._hideChild(b);var c=this._showChild(a);a.resize&&(this.doLayout?a.resize(this._containerContentBox||this._contentBox):a.resize());return c},_adjacent:function(a){var b=this.getChildren(),
  311. d=c.indexOf(b,this.selectedChildWidget),d=d+(a?1:b.length-1);return b[d%b.length]},forward:function(){return this.selectChild(this._adjacent(!0),!0)},back:function(){return this.selectChild(this._adjacent(!1),!0)},_onKeyPress:function(a){h.publish(this.id+"-containerKeyPress",{e:a,page:this})},layout:function(){var a=this.selectedChildWidget;a&&a.resize&&(this.doLayout?a.resize(this._containerContentBox||this._contentBox):a.resize())},_showChild:function(a){var c=this.getChildren();a.isFirstChild=
  312. a==c[0];a.isLastChild=a==c[c.length-1];a._set("selected",!0);b.replace(a.domNode,"dijitVisible","dijitHidden");return a._onShow&&a._onShow()||!0},_hideChild:function(a){a._set("selected",!1);b.replace(a.domNode,"dijitHidden","dijitVisible");a.onHide&&a.onHide()},closeChild:function(a){a.onClose(this,a)&&(this.removeChild(a),a.destroyRecursive())},destroyDescendants:function(a){this._descendantsBeingDestroyed=!0;this.selectedChildWidget=void 0;c.forEach(this.getChildren(),function(b){a||this.removeChild(b);
  313. b.destroyRecursive(a)},this);this._descendantsBeingDestroyed=!1}})})},"dojo/regexp":function(){define("dojo/regexp",["./_base/kernel","./_base/lang"],function(c,g){g.getObject("regexp",!0,c);c.regexp.escapeString=function(a,b){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(a){return b&&-1!=b.indexOf(a)?a:"\\"+a})};c.regexp.buildGroupRE=function(a,b,e){if(!(a instanceof Array))return b(a);for(var d=[],j=0;j<a.length;j++)d.push(b(a[j]));return c.regexp.group(d.join("|"),e)};c.regexp.group=
  314. function(a,b){return"("+(b?"?:":"")+a+")"};return c.regexp})},"dijit/DropDownMenu":function(){require({cache:{"url:dijit/templates/Menu.html":'<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}" data-dojo-attach-event="onkeypress:_onKeyPress" cellspacing="0">\n\t<tbody class="dijitReset" data-dojo-attach-point="containerNode"></tbody>\n</table>\n'}});define("dijit/DropDownMenu","dojo/_base/declare dojo/_base/event dojo/keys dojo/text!./templates/Menu.html ./_OnDijitClickMixin ./_MenuBase".split(" "),
  315. function(c,g,a,b,e,d){return c("dijit.DropDownMenu",[d,e],{templateString:b,baseClass:"dijitMenu",postCreate:function(){var b=this.isLeftToRight();this._openSubMenuKey=b?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=b?a.LEFT_ARROW:a.RIGHT_ARROW;this.connectKeyNavHandlers([a.UP_ARROW],[a.DOWN_ARROW])},_onKeyPress:function(a){if(!a.ctrlKey&&!a.altKey)switch(a.charOrCode){case this._openSubMenuKey:this._moveToPopup(a);g.stop(a);break;case this._closeSubMenuKey:if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();
  316. else this.onCancel(!1);else g.stop(a)}}})})},"dijit/form/_FormMixin":function(){define("dijit/form/_FormMixin",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/window"],function(c,g,a,b,e){return g("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(a){var b=[];c.forEach(a||this.getChildren(),function(a){"value"in a?b.push(a):b=b.concat(this._getDescendantFormWidgets(a.getChildren()))},this);return b},reset:function(){c.forEach(this._getDescendantFormWidgets(),
  317. function(a){a.reset&&a.reset()})},validate:function(){var a=!1;return c.every(c.map(this._getDescendantFormWidgets(),function(b){b._hasBeenBlurred=!0;var c=b.disabled||!b.validate||b.validate();!c&&!a&&(e.scrollIntoView(b.containerNode||b.domNode),b.focus(),a=!0);return c}),function(a){return a})},setValues:function(b){a.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",b)},_setValueAttr:function(a){var e={};c.forEach(this._getDescendantFormWidgets(),
  318. function(a){a.name&&(e[a.name]||(e[a.name]=[])).push(a)});for(var h in e)if(e.hasOwnProperty(h)){var f=e[h],k=b.getObject(h,!1,a);void 0!==k&&(b.isArray(k)||(k=[k]),"boolean"==typeof f[0].checked?c.forEach(f,function(a){a.set("value",-1!=c.indexOf(k,a.value))}):f[0].multiple?f[0].set("value",k):c.forEach(f,function(a,b){a.set("value",k[b])}))}},getValues:function(){a.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a=
  319. {};c.forEach(this._getDescendantFormWidgets(),function(c){var e=c.name;if(e&&!c.disabled){var f=c.get("value");"boolean"==typeof c.checked?/Radio/.test(c.declaredClass)?!1!==f?b.setObject(e,f,a):(f=b.getObject(e,!1,a),void 0===f&&b.setObject(e,null,a)):(c=b.getObject(e,!1,a),c||(c=[],b.setObject(e,c,a)),!1!==f&&c.push(f)):(c=b.getObject(e,!1,a),"undefined"!=typeof c?b.isArray(c)?c.push(f):b.setObject(e,[c,f],a):b.setObject(e,f,a))}});return a},isValid:function(){return""==this.state},onValidStateChange:function(){},
  320. _getState:function(){var a=c.map(this._descendants,function(a){return a.get("state")||""});return 0<=c.indexOf(a,"Error")?"Error":0<=c.indexOf(a,"Incomplete")?"Incomplete":""},disconnectChildren:function(){c.forEach(this._childConnections||[],b.hitch(this,"disconnect"));c.forEach(this._childWatches||[],function(a){a.unwatch()})},connectChildren:function(a){var e=this;this.disconnectChildren();this._descendants=this._getDescendantFormWidgets();a=a?function(a,b){e[a]=b}:b.hitch(this,"_set");a("value",
  321. this.get("value"));a("state",this._getState());var h=this._childConnections=[],f=this._childWatches=[];c.forEach(c.filter(this._descendants,function(a){return a.validate}),function(a){c.forEach(["state","disabled"],function(b){f.push(a.watch(b,function(){e.set("state",e._getState())}))})});var k=function(){e._onChangeDelayTimer&&clearTimeout(e._onChangeDelayTimer);e._onChangeDelayTimer=setTimeout(function(){delete e._onChangeDelayTimer;e._set("value",e.get("value"))},10)};c.forEach(c.filter(this._descendants,
  322. function(a){return a.onChange}),function(a){h.push(e.connect(a,"onChange",k));f.push(a.watch("disabled",k))})},startup:function(){this.inherited(arguments);this.connectChildren(!0);this.watch("state",function(a,b,c){this.onValidStateChange(""==c)})},destroy:function(){this.disconnectChildren();this.inherited(arguments)}})})},"dijit/Menu":function(){define("dijit/Menu","require dojo/_base/array dojo/_base/declare dojo/_base/event dojo/dom dojo/dom-attr dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/_base/sniff dojo/_base/window dojo/window ./popup ./DropDownMenu dojo/ready".split(" "),
  323. function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q){f.isAsync||q(0,function(){c(["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])});return a("dijit.Menu",s,{constructor:function(){this._bindings=[]},targetNodeIds:[],contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(n.body()):g.forEach(this.targetNodeIds,this.bindDomNode,this);this.inherited(arguments)},_iframeContentWindow:function(a){return p.get(this._iframeContentDocument(a))||
  324. this._iframeContentDocument(a).__parent__||a.name&&n.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&n.doc.frames[a.name]&&n.doc.frames[a.name].document||null},bindDomNode:function(a){var a=e.byId(a),c;if("iframe"==a.tagName.toLowerCase()){var f=a,h=this._iframeContentWindow(f);c=n.withGlobal(h,n.body)}else c=a==n.body()?n.doc.documentElement:a;var j={node:a,iframe:f};d.set(a,"_dijitMenu"+this.id,this._bindings.push(j));
  325. var g=l.hitch(this,function(a){return[o(a,this.leftClickToOpen?"click":"contextmenu",l.hitch(this,function(a){b.stop(a);this._scheduleOpen(a.target,f,{x:a.pageX,y:a.pageY})})),o(a,"keydown",l.hitch(this,function(a){a.shiftKey&&a.keyCode==k.F10&&(b.stop(a),this._scheduleOpen(a.target,f))}))]});j.connects=c?g(c):[];f&&(j.onloadHandler=l.hitch(this,function(){var a=this._iframeContentWindow(f);c=n.withGlobal(a,n.body);j.connects=g(c)}),f.addEventListener?f.addEventListener("load",j.onloadHandler,!1):
  326. f.attachEvent("onload",j.onloadHandler))},unBindDomNode:function(a){var b;try{b=e.byId(a)}catch(c){return}a="_dijitMenu"+this.id;if(b&&d.has(b,a)){for(var f=d.get(b,a)-1,k=this._bindings[f],h;h=k.connects.pop();)h.remove();(h=k.iframe)&&(h.removeEventListener?h.removeEventListener("load",k.onloadHandler,!1):h.detachEvent("onload",k.onloadHandler));d.remove(b,a);delete this._bindings[f]}},_scheduleOpen:function(a,b,c){this._openTimer||(this._openTimer=setTimeout(l.hitch(this,function(){delete this._openTimer;
  327. this._openMyself({target:a,iframe:b,coords:c})}),1))},_openMyself:function(a){function b(){l.refocus&&p&&p.focus();t.close(l)}var c=a.target,d=a.iframe;if(a=a.coords){if(d){var c=j.position(d,!0),f=this._iframeContentWindow(d),f=n.withGlobal(f,"_docScroll",dojo),k=h.getComputedStyle(d),g=h.toPixelValue,o=(m("ie")&&m("quirks")?0:g(d,k.paddingLeft))+(m("ie")&&m("quirks")?g(d,k.borderLeftWidth):0),d=(m("ie")&&m("quirks")?0:g(d,k.paddingTop))+(m("ie")&&m("quirks")?g(d,k.borderTopWidth):0);a.x+=c.x+o-
  328. f.x;a.y+=c.y+d-f.y}}else a=j.position(c,!0),a.x+=10,a.y+=10;var l=this,d=this._focusManager.get("prevNode"),c=this._focusManager.get("curNode"),p=!c||e.isDescendant(c,this.domNode)?d:c;t.open({popup:this,x:a.x,y:a.y,onExecute:b,onCancel:b,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);t.close(this)}},uninitialize:function(){g.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}})})},"dijit/layout/ContentPane":function(){define("dijit/layout/ContentPane",
  329. "dojo/_base/kernel dojo/_base/lang ../_Widget ./_ContentPaneResizeMixin dojo/string dojo/html dojo/i18n!../nls/loading dojo/_base/array dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/_base/window dojo/_base/xhr dojo/i18n".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p){return f("dijit.layout.ContentPane",[a,b],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:c._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"<span class='dijitContentPaneLoading'><span class='dijitInline dijitIconLoading'></span>${loadingState}</span>",
  330. errorMessage:"<span class='dijitContentPaneError'><span class='dijitInline dijitIconError'></span>${errorState}</span>",isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:!0,template:!1,create:function(a,b){if((!a||!a.template)&&b&&!("href"in a)&&!("content"in a)){for(var c=m.doc.createDocumentFragment(),b=l.byId(b);b.firstChild;)c.appendChild(b.firstChild);a=g.delegate(a,{content:c})}this.inherited(arguments,[a,b])},postMixInProperties:function(){this.inherited(arguments);
  331. var a=p.getLocalization("dijit","loading",this.lang);this.loadingMessage=e.substitute(this.loadingMessage,a);this.errorMessage=e.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode);this.domNode.removeAttribute("title");o.get(this.domNode,"role")||this.domNode.setAttribute("role","group")},startup:function(){this.inherited(arguments);this._contentSetter&&h.forEach(this._contentSetter.parseResults,function(a){!a._started&&
  332. (!a._destroyed&&g.isFunction(a.startup))&&(a.startup(),a._started=!0)},this)},setHref:function(a){c.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",a)},_setHrefAttr:function(a){this.cancel();this.onLoadDeferred=new k(g.hitch(this,"cancel"));this.onLoadDeferred.addCallback(g.hitch(this,"onLoad"));this._set("href",a);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},
  333. setContent:function(a){c.deprecated("dijit.layout.ContentPane.setContent() is deprecated. Use set('content', ...) instead.","","2.0");this.set("content",a)},_setContentAttr:function(a){this._set("href","");this.cancel();this.onLoadDeferred=new k(g.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(g.hitch(this,"onLoad"));this._setContent(a||"");this._isDownloaded=!1;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&
  334. -1==this._xhrDfd.fired&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},uninitialize:function(){this._beingDestroyed&&this.cancel();this.inherited(arguments)},destroyRecursive:function(a){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new k(g.hitch(this,"cancel"));this.onLoadDeferred.addCallback(g.hitch(this,
  335. "onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var a=this,b={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};g.isObject(this.ioArgs)&&g.mixin(b,this.ioArgs);var c=this._xhrDfd=(this.ioMethod||n.get)(b);c.addCallback(function(b){try{a._isDownloaded=!0,a._setContent(b,!1),a.onDownloadEnd()}catch(c){a._onError("Content",c)}delete a._xhrDfd;return b});c.addErrback(function(b){c.canceled||a._onError("Download",
  336. b);delete a._xhrDfd;return b});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",!0);try{this.onLoadDeferred.callback(a)}catch(b){console.error("Error "+this.widgetId+" running custom onLoad code: "+b.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(a){this.isLoaded&&this._onUnloadHandler();var b=this._contentSetter;h.forEach(this.getChildren(),
  337. function(b){b.destroyRecursive&&b.destroyRecursive(a)});b&&(h.forEach(b.parseResults,function(b){b.destroyRecursive&&(b.domNode&&b.domNode.parentNode==m.body())&&b.destroyRecursive(a)}),delete b.parseResults);a||d._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,b){this.destroyDescendants();var c=this._contentSetter;c&&c instanceof d._ContentSetter||(c=this._contentSetter=new d._ContentSetter({node:this.containerNode,_onError:g.hitch(this,this._onError),onContentError:g.hitch(this,
  338. function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=a}catch(b){console.error("Fatal "+this.id+" could not change content due to "+b.message,b)}})}));var f=g.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!a.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{});c.set(g.isObject(a)&&a.domNode?a.domNode:a,f);delete this._contentSetterParams;this.doLayout&&
  339. this._checkIfSingleChild();b||(this._started&&(delete this._started,this.startup(),this._scheduleLayout()),this._onLoadHandler(a))},_onError:function(a,b,c){this.onLoadDeferred.errback(b);a=this["on"+a+"Error"].call(this,b);c?console.error(c,b):a&&this._setContent(a,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dojox/dtl/filter/htmlstrings":function(){define("dojox/dtl/filter/htmlstrings",
  340. ["dojo/_base/lang","../_base"],function(c,g){c.getObject("dojox.dtl.filter.htmlstrings",!0);c.mixin(g.filter.htmlstrings,{_linebreaksrn:/(\r\n|\n\r)/g,_linebreaksn:/\n{2,}/g,_linebreakss:/(^\s+|\s+$)/g,_linebreaksbr:/\n/g,_removetagsfind:/[a-z0-9]+/g,_striptags:/<[^>]*?>/g,linebreaks:function(a){for(var b=[],c=g.filter.htmlstrings,a=a.replace(c._linebreaksrn,"\n"),a=a.split(c._linebreaksn),d=0;d<a.length;d++){var j=a[d].replace(c._linebreakss,"").replace(c._linebreaksbr,"<br />");b.push("<p>"+j+"</p>")}return b.join("\n\n")},
  341. linebreaksbr:function(a){var b=g.filter.htmlstrings;return a.replace(b._linebreaksrn,"\n").replace(b._linebreaksbr,"<br />")},removetags:function(a,b){for(var c=g.filter.htmlstrings,d=[],j;j=c._removetagsfind.exec(b);)d.push(j[0]);d="("+d.join("|")+")";return a.replace(RegExp("</?s*"+d+"s*[^>]*>","gi"),"")},striptags:function(a){return a.replace(dojox.dtl.filter.htmlstrings._striptags,"")}});return dojox.dtl.filter.htmlstrings})},"dojox/dtl/_base":function(){define("dojox/dtl/_base","dojo/_base/kernel dojo/_base/lang dojox/string/tokenize dojo/_base/json dojo/dom dojo/_base/xhr dojox/string/Builder dojo/_base/Deferred".split(" "),
  342. function(c,g,a,b,e,d,j,h){c.experimental("dojox.dtl");var f=g.getObject("dojox.dtl",!0);f._base={};f.TOKEN_BLOCK=-1;f.TOKEN_VAR=-2;f.TOKEN_COMMENT=-3;f.TOKEN_TEXT=3;f._Context=g.extend(function(a){a&&(g._mixin(this,a),a.get&&(this._getter=a.get,delete this.get))},{push:function(){var a=this,b=g.delegate(this);b.pop=function(){return a};return b},pop:function(){throw Error("pop() called on empty Context");},get:function(a,b){var c=this._normalize;if(this._getter){var d=this._getter(a);if(void 0!==
  343. d)return c(d)}return void 0!==this[a]?c(this[a]):b},_normalize:function(a){a instanceof Date&&(a.year=a.getFullYear(),a.month=a.getMonth()+1,a.day=a.getDate(),a.date=a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2),a.hour=a.getHours(),a.minute=a.getMinutes(),a.second=a.getSeconds(),a.microsecond=a.getMilliseconds());return a},update:function(a){var b=this.push();a&&g._mixin(this,a);return b}});var k=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g,l=/\s+/g,o=function(a,
  344. b){a=a||l;a instanceof RegExp||(a=RegExp(a,"g"));if(!a.global)throw Error("You must use a globally flagged RegExp with split "+a);a.exec("");for(var c,d=[],f=0,k=0;(c=a.exec(this))&&!(d.push(this.slice(f,a.lastIndex-c[0].length)),f=a.lastIndex,b&&++k>b-1););d.push(this.slice(f));return d};f.Token=function(a,b){this.token_type=a;this.contents=new String(g.trim(b));this.contents.split=o;this.split=function(){return String.prototype.split.apply(this.contents,arguments)}};f.Token.prototype.split_contents=
  345. function(a){for(var b,c=[],d=0,a=a||999;d++<a&&(b=k.exec(this.contents));)b=b[0],'"'==b.charAt(0)&&'"'==b.slice(-1)?c.push('"'+b.slice(1,-1).replace('\\"','"').replace("\\\\","\\")+'"'):"'"==b.charAt(0)&&"'"==b.slice(-1)?c.push("'"+b.slice(1,-1).replace("\\'","'").replace("\\\\","\\")+"'"):c.push(b);return c};var m=f.text={_get:function(a,b,c){a=f.register.get(a,b.toLowerCase(),c);if(!a){if(!c)throw Error("No tag found for "+b);return null}c=a[1];a=a[2];-1!=c.indexOf(":")&&(c=c.split(":"),c=c.pop());
  346. var d=a;/\./.test(a)&&(a=a.replace(/\./g,"/"));require([a],function(){});a=g.getObject(d);return a[c||b]||a[b+"_"]||a[c+"_"]},getTag:function(a,b){return m._get("tag",a,b)},getFilter:function(a,b){return m._get("filter",a,b)},getTemplate:function(a){return new f.Template(m.getTemplateString(a))},getTemplateString:function(a){return d._getText(a.toString())||""},_resolveLazy:function(a,b,c){return b?c?c.fromJson(d._getText(a))||{}:f.text.getTemplateString(a):d.get({handleAs:c?"json":"text",url:a})},
  347. _resolveTemplateArg:function(a,b){if(m._isTemplate(a)){if(!b){var c=new h;c.callback(a);return c}return a}return m._resolveLazy(a,b)},_isTemplate:function(a){return void 0===a||"string"==typeof a&&(a.match(/^\s*[<{]/)||-1!=a.indexOf(" "))},_resolveContextArg:function(a,b){if(a.constructor==Object){if(!b){var c=new h;c.callback(a);return c}return a}return m._resolveLazy(a,b,!0)},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(b){return a(b,m._re,m._parseDelims)},_parseDelims:function(a,
  348. b,c){if(a)return[f.TOKEN_VAR,a];if(b){a=g.trim(c).split(/\s+/g);for(b=0;c=a[b];b++)/\./.test(c)&&(c=c.replace(/\./g,"/")),require([c])}else return[f.TOKEN_BLOCK,c]}};f.Template=g.extend(function(a,b){var c=b?a:m._resolveTemplateArg(a,!0)||"",c=m.tokenize(c);this.nodelist=(new f._Parser(c)).parse()},{update:function(a,b){return m._resolveContextArg(b).addCallback(this,function(b){var c=this.render(new f._Context(b));a.forEach?a.forEach(function(a){a.innerHTML=c}):e.byId(a).innerHTML=c;return this})},
  349. render:function(a,b){b=b||this.getBuffer();a=a||new f._Context({});return this.nodelist.render(a,b)+""},getBuffer:function(){return new j}});var n=/\{\{\s*(.+?)\s*\}\}/g;f.quickFilter=function(b){if(!b)return new f._NodeList;if(-1==b.indexOf("{%"))return new f._QuickNodeList(a(b,n,function(a){return new f._Filter(a)}))};f._QuickNodeList=g.extend(function(a){this.contents=a},{render:function(a,b){for(var c=0,d=this.contents.length;c<d;c++)b=this.contents[c].resolve?b.concat(this.contents[c].resolve(a)):
  350. b.concat(this.contents[c]);return b},dummyRender:function(a){return this.render(a,f.Template.prototype.getBuffer()).toString()},clone:function(){return this}});f._Filter=g.extend(function(b){if(!b)throw Error("Filter must be called with variable name");this.contents=b;var c=this._cache[b];c?(this.key=c[0],this.filters=c[1]):(this.filters=[],a(b,this._re,this._tokenize,this),this._cache[b]=[this.key,this.filters])},{_cache:{},_re:/(?:^_\("([^\\"]*(?:\\.[^\\"])*)"\)|^"([^\\"]*(?:\\.[^\\"]*)*)"|^([a-zA-Z0-9_.]+)|\|(\w+)(?::(?:_\("([^\\"]*(?:\\.[^\\"])*)"\)|"([^\\"]*(?:\\.[^\\"]*)*)"|([a-zA-Z0-9_.]+)|'([^\\']*(?:\\.[^\\']*)*)'))?|^'([^\\']*(?:\\.[^\\']*)*)')/g,
  351. _values:{"0":'"',1:'"',2:"",8:'"'},_args:{4:'"',5:'"',6:"",7:"'"},_tokenize:function(){for(var a,b,c=0,d=[];c<arguments.length;c++)d[c]=void 0!==arguments[c]&&"string"==typeof arguments[c]&&arguments[c];if(this.key){for(a in this._args)if(d[a]){b=arguments[a];"'"==this._args[a]?b=b.replace(/\\'/g,"'"):'"'==this._args[a]&&(b=b.replace(/\\"/g,'"'));b=[!this._args[a],b];break}a=m.getFilter(arguments[3]);if(!g.isFunction(a))throw Error(arguments[3]+" is not registered as a filter");this.filters.push([a,
  352. b])}else for(a in this._values)if(d[a]){this.key=this._values[a]+arguments[a]+this._values[a];break}},getExpression:function(){return this.contents},resolve:function(a){if(void 0===this.key)return"";for(var b=this.resolvePath(this.key,a),c=0,d;d=this.filters[c];c++)b=d[1]?d[1][0]?d[0](b,this.resolvePath(d[1][1],a)):d[0](b,d[1][1]):d[0](b);return b},resolvePath:function(a,b){var c,d;c=a.charAt(0);d=a.slice(-1);if(isNaN(parseInt(c)))if('"'==c&&c==d)c=a.slice(1,-1);else{if("true"==a)return!0;if("false"==
  353. a)return!1;if("null"==a||"None"==a)return null;d=a.split(".");c=b.get(d[0]);if(g.isFunction(c)){var k=b.getThis&&b.getThis();c=c.alters_data?"":k?c.call(k):""}for(k=1;k<d.length;k++){var e=d[k];if(c){var h=c;if(g.isObject(c)&&"items"==e&&void 0===c[e]){var e=[],j;for(j in c)e.push([j,c[j]]);c=e}else{if(c.get&&g.isFunction(c.get)&&c.get.safe)c=c.get(e);else if(void 0===c[e]){c=c[e];break}else c=c[e];g.isFunction(c)?c=c.alters_data?"":c.call(h):c instanceof Date&&(c=f._Context.prototype._normalize(c))}}else return""}}else c=
  354. -1==a.indexOf(".")?parseInt(a):parseFloat(a);return c}});f._TextNode=f._Node=g.extend(function(a){this.contents=a},{set:function(a){this.contents=a;return this},render:function(a,b){return b.concat(this.contents)},isEmpty:function(){return!g.trim(this.contents)},clone:function(){return this}});f._NodeList=g.extend(function(a){this.contents=a||[];this.last=""},{push:function(a){this.contents.push(a);return this},concat:function(a){this.contents=this.contents.concat(a);return this},render:function(a,
  355. b){for(var c=0;c<this.contents.length;c++)if(b=this.contents[c].render(a,b),!b)throw Error("Template must return buffer");return b},dummyRender:function(a){return this.render(a,f.Template.prototype.getBuffer()).toString()},unrender:function(a,b){return b},clone:function(){return this},rtrim:function(){for(;;)if(i=this.contents.length-1,this.contents[i]instanceof f._TextNode&&this.contents[i].isEmpty())this.contents.pop();else break;return this}});f._VarNode=g.extend(function(a){this.contents=new f._Filter(a)},
  356. {render:function(a,b){var c=this.contents.resolve(a);c.safe||(c=f._base.escape(""+c));return b.concat(c)}});f._noOpNode=new function(){this.render=this.unrender=function(a,b){return b};this.clone=function(){return this}};f._Parser=g.extend(function(a){this.contents=a},{i:0,parse:function(a){for(var b={},c,a=a||[],d=0;d<a.length;d++)b[a[d]]=!0;for(d=new f._NodeList;this.i<this.contents.length;)if(c=this.contents[this.i++],"string"==typeof c)d.push(new f._TextNode(c));else{var k=c[0];c=c[1];if(k==f.TOKEN_VAR)d.push(new f._VarNode(c));
  357. else if(k==f.TOKEN_BLOCK){if(b[c])return--this.i,d;var e=c.split(/\s+/g);e.length&&(e=e[0],(e=m.getTag(e))&&d.push(e(this,new f.Token(k,c))))}}if(a.length)throw Error("Could not find closing tag(s): "+a.toString());this.contents.length=0;return d},next_token:function(){var a=this.contents[this.i++];return new f.Token(a[0],a[1])},delete_first_token:function(){this.i++},skip_past:function(a){for(;this.i<this.contents.length;){var b=this.contents[this.i++];if(b[0]==f.TOKEN_BLOCK&&b[1]==a)return}throw Error("Unclosed tag found when looking for "+
  358. a);},create_variable_node:function(a){return new f._VarNode(a)},create_text_node:function(a){return new f._TextNode(a||"")},getTemplate:function(a){return new f.Template(a)}});f.register={_registry:{attributes:[],tags:[],filters:[]},get:function(a,b){for(var c=f.register._registry[a+"s"],d=0,k;k=c[d];d++)if("string"==typeof k[0]){if(k[0]==b)return k}else if(b.match(k[0]))return k},getAttributeTags:function(){for(var a=[],b=f.register._registry.attributes,c=0,d;d=b[c];c++)if(3==d.length)a.push(d);
  359. else{var k=g.getObject(d[1]);k&&g.isFunction(k)&&(d.push(k),a.push(d))}return a},_any:function(a,b,c){for(var d in c)for(var k=0,e;e=c[d][k];k++){var h=e;g.isArray(e)&&(h=e[0],e=e[1]);if("string"==typeof h){if("attr:"==h.substr(0,5)){var j=e;"attr:"==j.substr(0,5)&&(j=j.slice(5));f.register._registry.attributes.push([j.toLowerCase(),b+"."+d+"."+j])}h=h.toLowerCase()}f.register._registry[a].push([h,e,b+"."+d])}},tags:function(a,b){f.register._any("tags",a,b)},filters:function(a,b){f.register._any("filters",
  360. a,b)}};var p=/&/g,t=/</g,s=/>/g,q=/'/g,v=/"/g;f._base.escape=function(a){return f.mark_safe(a.replace(p,"&amp;").replace(t,"&lt;").replace(s,"&gt;").replace(v,"&quot;").replace(q,"&#39;"))};f._base.safe=function(a){"string"==typeof a&&(a=new String(a));"object"==typeof a&&(a.safe=!0);return a};f.mark_safe=f._base.safe;f.register.tags("dojox.dtl.tag",{date:["now"],logic:["if","for","ifequal","ifnotequal"],loader:["extends","block","include","load","ssi"],misc:"comment debug filter firstof spaceless templatetag widthratio with".split(" "),
  361. loop:["cycle","ifchanged","regroup"]});f.register.filters("dojox.dtl.filter",{dates:["date","time","timesince","timeuntil"],htmlstrings:["linebreaks","linebreaksbr","removetags","striptags"],integers:["add","get_digit"],lists:"dictsort dictsortreversed first join length length_is random slice unordered_list".split(" "),logic:["default","default_if_none","divisibleby","yesno"],misc:["filesizeformat","pluralize","phone2numeric","pprint"],strings:"addslashes capfirst center cut fix_ampersands floatformat iriencode linenumbers ljust lower make_list rjust slugify stringformat title truncatewords truncatewords_html upper urlencode urlize urlizetrunc wordcount wordwrap".split(" ")});
  362. f.register.filters("dojox.dtl",{_base:["escape","safe"]});return f})},"dijit/_KeyNavContainer":function(){define("dijit/_KeyNavContainer","dojo/_base/kernel ./_Container ./_FocusMixin dojo/_base/array dojo/keys dojo/_base/declare dojo/_base/event dojo/dom-attr dojo/_base/lang".split(" "),function(c,g,a,b,e,d,j,h,f){return d("dijit._KeyNavContainer",[a,g],{tabIndex:"0",connectKeyNavHandlers:function(a,c){var d=this._keyNavCodes={},h=f.hitch(this,"focusPrev"),j=f.hitch(this,"focusNext");b.forEach(a,
  363. function(a){d[a]=h});b.forEach(c,function(a){d[a]=j});d[e.HOME]=f.hitch(this,"focusFirstChild");d[e.END]=f.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){c.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments);b.forEach(this.getChildren(),f.hitch(this,"_startupChild"))},addChild:function(a,b){this.inherited(arguments);
  364. this._startupChild(a)},focus:function(){this.focusFirstChild()},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild())},focusLastChild:function(){this.focusChild(this._getLastFocusableChild())},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},focusChild:function(a,b){a&&(this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild),
  365. a.set("tabIndex",this.tabIndex),a.focus(b?"end":"start"),this._set("focusedChild",a))},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){a.target!==this.domNode||this.focusedChild||(this.focusFirstChild(),h.set(this.domNode,"tabIndex","-1"))},_onBlur:function(a){this.tabIndex&&h.set(this.domNode,"tabIndex",this.tabIndex);this.focusedChild=
  366. null;this.inherited(arguments)},_onContainerKeypress:function(a){if(!a.ctrlKey&&!a.altKey){var b=this._keyNavCodes[a.charOrCode];b&&(b(),j.stop(a))}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,b){a&&(a=this._getSiblingOfChild(a,b));for(var c=this.getChildren(),d=0;d<c.length;d++){a||(a=c[0<b?0:c.length-1]);if(a.isFocusable())return a;
  367. a=this._getSiblingOfChild(a,b)}return null}})})},"dijit/layout/utils":function(){define("dijit/layout/utils","dojo/_base/array dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang ..".split(" "),function(c,g,a,b,e,d){function j(b,c){var d=b.resize?b.resize(c):a.setMarginBox(b.domNode,c);d?e.mixin(b,d):(e.mixin(b,a.getMarginBox(b.domNode)),e.mixin(b,c))}d=e.getObject("layout",!0,d);d.marginBox2contentBox=function(c,d){var e=b.getComputedStyle(c),j=a.getMarginExtents(c,e),g=a.getPadBorderExtents(c,
  368. e);return{l:b.toPixelValue(c,e.paddingLeft),t:b.toPixelValue(c,e.paddingTop),w:d.w-(j.w+g.w),h:d.h-(j.h+g.h)}};d.layoutChildren=function(a,b,d,l,o){b=e.mixin({},b);g.add(a,"dijitLayoutContainer");d=c.filter(d,function(a){return"center"!=a.region&&"client"!=a.layoutAlign}).concat(c.filter(d,function(a){return"center"==a.region||"client"==a.layoutAlign}));c.forEach(d,function(a){var c=a.domNode,d=a.region||a.layoutAlign;if(!d)throw Error("No region setting for "+a.id);var e=c.style;e.left=b.l+"px";
  369. e.top=b.t+"px";e.position="absolute";g.add(c,"dijitAlign"+(d.substring(0,1).toUpperCase()+d.substring(1)));c={};l&&l==a.id&&(c["top"==a.region||"bottom"==a.region?"h":"w"]=o);"top"==d||"bottom"==d?(c.w=b.w,j(a,c),b.h-=a.h,"top"==d?b.t+=a.h:e.top=b.t+b.h+"px"):"left"==d||"right"==d?(c.h=b.h,j(a,c),b.w-=a.w,"left"==d?b.l+=a.w:e.left=b.l+b.w+"px"):("client"==d||"center"==d)&&j(a,b)})};return{marginBox2contentBox:d.marginBox2contentBox,layoutChildren:d.layoutChildren}})},"dijit/_Contained":function(){define("dijit/_Contained",
  370. ["dojo/_base/declare","./registry"],function(c,g){return c("dijit._Contained",null,{_getSibling:function(a){var b=this.domNode;do b=b[a+"Sibling"];while(b&&1!=b.nodeType);return b&&g.byNode(b)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();return!a||!a.getIndexOfChild?-1:a.getIndexOfChild(this)}})})},"dojox/json/query":function(){define("dojox/json/query",["dojo/_base/kernel",
  371. "dojox","dojo/_base/array"],function(c,g){c.getObject("json",!0,g);g.json._slice=function(a,b,c,d){for(var j=a.length,h=[],c=c||j,b=0>b?Math.max(0,b+j):Math.min(j,b),c=0>c?Math.max(0,c+j):Math.min(j,c);b<c;b+=d)h.push(a[b]);return h};g.json._find=function(a,b){function c(a){b&&(!0===b&&!(a instanceof Array)?d.push(a):a[b]&&d.push(a[b]));for(var f in a){var k=a[f];b?k&&"object"==typeof k&&c(k):d.push(k)}}var d=[];if(b instanceof Array){if(1==b.length)return a[b[0]];for(var j=0;j<b.length;j++)d.push(a[b[j]])}else c(a);
  372. return d};g.json._distinctFilter=function(a,b){for(var c=[],d={},j=0,h=a.length;j<h;++j){var f=a[j];b(f,j,a)&&("object"==typeof f&&f?f.__included||(f.__included=!0,c.push(f)):d[f+typeof f]||(d[f+typeof f]=!0,c.push(f)))}j=0;for(h=c.length;j<h;++j)c[j]&&delete c[j].__included;return c};return g.json.query=function(a,b){function c(a,b,d,f,e,k,h,g){return j[g].match(/[\*\?]/)||"~"==h?"/^"+j[g].substring(1,j[g].length-1).replace(/\\([btnfr\\"'])|([^\w\*\?])/g,"\\$1$2").replace(/([\*\?])/g,"[\\w\\W]$1")+
  373. ("~"==h?"$/i":"$/")+".test("+b+")":a}var d=0,j=[],a=a.replace(/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'|[\[\]]/g,function(a){d+="["==a?1:"]"==a?-1:0;return"]"==a&&0<d?"`]":'"'==a.charAt(0)||"'"==a.charAt(0)?"`"+(j.push(a)-1):a}),h="";a.replace(/(\]|\)|push|pop|shift|splice|sort|reverse)\s*\(/,function(){throw Error("Unsafe function call");});for(var a=a.replace(/([^<>=]=)([^=])/g,"$1=$2").replace(/@|(\.\s*)?[a-zA-Z\$_]+(\s*:)?/g,function(a){return"."==a.charAt(0)?a:"@"==a?"$obj":(a.match(/:|^(\$|Math|true|false|null)$/)?
  374. "":"$obj.")+a}).replace(/\.?\.?\[(`\]|[^\]])*\]|\?.*|\.\.([\w\$_]+)|\.\*/g,function(a,b,c){return(b=a.match(/^\.?\.?(\[\s*\^?\?|\^?\?|\[\s*==)(.*?)\]?$/))?(c="",a.match(/^\./)&&(h="dojox.json._find("+h,c=",true)"),h=(b[1].match(/\=/)?"dojo.map":b[1].match(/\^/)?"dojox.json._distinctFilter":"dojo.filter")+"("+h,c+",function($obj){return "+b[2]+"})"):(b=a.match(/^\[\s*([\/\\].*)\]/))?".concat().sort(function(a,b){"+b[1].replace(/\s*,?\s*([\/\\])\s*([^,\\\/]+)/g,function(a,b,c){return"var av= "+c.replace(/\$obj/,
  375. "a")+",bv= "+c.replace(/\$obj/,"b")+";if(av>bv||bv==null){return "+("/"==b?1:-1)+";}\nif(bv>av||av==null){return "+("/"==b?-1:1)+";}\n"})+"return 0;})":(b=a.match(/^\[(-?[0-9]*):(-?[0-9]*):?(-?[0-9]*)\]/))?(h="dojox.json._slice("+h,","+(b[1]||0)+","+(b[2]||0)+","+(b[3]||1)+")"):a.match(/^\.\.|\.\*|\[\s*\*\s*\]|,/)?(h="dojox.json._find("+h,("."==a.charAt(1)?",'"+c+"'":a.match(/,/)?","+a:"")+")"):a}).replace(/(\$obj\s*((\.\s*[\w_$]+\s*)|(\[\s*`([0-9]+)\s*`\]))*)(==|~)\s*`([0-9]+)/g,c).replace(/`([0-9]+)\s*(==|~)\s*(\$obj\s*((\.\s*[\w_$]+)|(\[\s*`([0-9]+)\s*`\]))*)/g,
  376. function(a,b,d,f,k,h,j,g){return c(a,f,k,h,j,g,d,b)}),a=h+("$"==a.charAt(0)?"":"$")+a.replace(/`([0-9]+|\])/g,function(a,b){return"]"==b?"]":j[b]}),f=eval("1&&function($,$1,$2,$3,$4,$5,$6,$7,$8,$9){var $obj=$;return "+a+"}"),k=0;k<arguments.length-1;k++)arguments[k]=arguments[k+1];return b?f.apply(this,arguments):f}})},"dijit/tree/_dndSelector":function(){define("dijit/tree/_dndSelector","dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch dojo/_base/window ./_dndContainer".split(" "),
  377. function(c,g,a,b,e,d,j,h,f){return a("dijit.tree._dndSelector",f,{constructor:function(){this.selection={};this.anchor=null;this.tree.domNode.setAttribute("aria-multiselect",!this.singular);this.events.push(d(this.tree.domNode,j.press,b.hitch(this,"onMouseDown")),d(this.tree.domNode,j.release,b.hitch(this,"onMouseUp")),d(this.tree.domNode,j.move,b.hitch(this,"onMouseMove")))},singular:!1,getSelectedTreeNodes:function(){var a=[],b=this.selection,c;for(c in b)a.push(b[c]);return a},selectNone:function(){this.setSelection([]);
  378. return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,b){this.setSelection(this.getSelectedTreeNodes().concat([a]));b&&(this.anchor=a);return a},removeTreeNode:function(a){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[a]));return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},setSelection:function(a){var d=this.getSelectedTreeNodes();c.forEach(this._setDifference(d,a),b.hitch(this,function(a){a.setSelected(!1);
  379. this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));c.forEach(this._setDifference(a,d),b.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,b){c.forEach(b,function(a){a.__exclude__=!0});var d=c.filter(a,function(a){return!a.__exclude__});c.forEach(b,function(a){delete a.__exclude__});return d},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),b=[],d=[];c.forEach(a,function(a){d.push(a);
  380. b.push(a.getTreePath())});a=c.map(d,function(a){return a.item});this.tree._set("paths",b);this.tree._set("path",b[0]||[]);this.tree._set("selectedNodes",d);this.tree._set("selectedNode",d[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onMouseDown:function(a){if(this.current&&!this.tree.isExpandoNode(a.target,this.current)){if("mousedown"==a.type&&e.isLeft(a))a.preventDefault();else if("touchstart"!=a.type)return;var b=this.current,c=g.isCopyKey(a),d=b.id;!this.singular&&
  381. !a.shiftKey&&this.selection[d]?this._doDeselect=!0:(this._doDeselect=!1,this.userSelect(b,c,a.shiftKey))}},onMouseUp:function(a){this._doDeselect&&(this._doDeselect=!1,this.userSelect(this.current,g.isCopyKey(a),a.shiftKey))},onMouseMove:function(){this._doDeselect=!1},_compareNodes:function(a,b){if(a===b)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-b.sourceIndex;if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(b)&2?1:-1;if(document.createRange){var c=
  382. doc.createRange();c.setStartBefore(a);var d=doc.createRange();d.setStartBefore(b);return c.compareBoundaryPoints(c.END_TO_END,d)}throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");},userSelect:function(a,b,c){if(this.singular)this.anchor==a&&b?this.selectNone():(this.setSelection([a]),this.anchor=a);else if(c&&this.anchor){b=this._compareNodes(this.anchor.rowNode,a.rowNode);c=this.anchor;0>b?b=c:(b=a,a=c);for(c=[];b!=a;)c.push(b),b=this.tree._getNextNode(b);
  383. c.push(a);this.setSelection(c)}else this.selection[a.id]&&b?this.removeTreeNode(a):b?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},forInSelectedItems:function(a,b){var b=b||h.global,c;for(c in this.selection)a.call(b,this.getItem(c),c,this)}})})},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(c,g,a,b){return g("dijit._Container",
  384. null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(b,c){var j=this.containerNode;if(c&&"number"==typeof c){var h=this.getChildren();h&&h.length>=c&&(j=h[c-1].domNode,c="after")}a.place(b.domNode,j,c);this._started&&!b._started&&b.startup()},removeChild:function(a){"number"==typeof a&&(a=this.getChildren()[a]);a&&(a=a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},hasChildren:function(){return 0<this.getChildren().length},
  385. _getSiblingOfChild:function(a,c){var j=a.domNode,h=0<c?"nextSibling":"previousSibling";do j=j[h];while(j&&(1!=j.nodeType||!b.byNode(j)));return j&&b.byNode(j)},getIndexOfChild:function(a){return c.indexOf(this.getChildren(),a)}})})},"dojo/dnd/Source":function(){define("dojo/dnd/Source",["../main","./Selector","./Manager"],function(c,g,a){c.isAsync||c.ready(0,function(){require(["dojo/dnd/AutoSource","dojo/dnd/Target"])});return c.declare("dojo.dnd.Source",g,{isSource:!0,horizontal:!1,copyOnly:!1,
  386. selfCopy:!1,selfAccept:!0,skipForm:!1,withHandles:!1,autoSync:!1,delay:0,accept:["text"],generateText:!0,constructor:function(a,e){c.mixin(this,c.mixin({},e));var d=this.accept;if(d.length){this.accept={};for(var j=0;j<d.length;++j)this.accept[d[j]]=1}this.mouseDown=this.isDragging=!1;this.targetBox=this.targetAnchor=null;this.before=!0;this._lastY=this._lastX=0;this.sourceState="";this.isSource&&c.addClass(this.node,"dojoDndSource");this.targetState="";this.accept&&c.addClass(this.node,"dojoDndTarget");
  387. this.horizontal&&c.addClass(this.node,"dojoDndHorizontal");this.topics=[c.subscribe("/dnd/source/over",this,"onDndSourceOver"),c.subscribe("/dnd/start",this,"onDndStart"),c.subscribe("/dnd/drop",this,"onDndDrop"),c.subscribe("/dnd/cancel",this,"onDndCancel")]},checkAcceptance:function(a,c){if(this==a)return!this.copyOnly||this.selfAccept;for(var d=0;d<c.length;++d){for(var j=a.getItem(c[d].id).type,h=!1,f=0;f<j.length;++f)if(j[f]in this.accept){h=!0;break}if(!h)return!1}return!0},copyState:function(b,
  388. c){if(b)return!0;2>arguments.length&&(c=this==a.manager().target);if(c){if(this.copyOnly)return this.selfCopy}else return this.copyOnly;return!1},destroy:function(){c.dnd.Source.superclass.destroy.call(this);c.forEach(this.topics,c.unsubscribe);this.targetAnchor=null},onMouseMove:function(b){if(!(this.isDragging&&"Disabled"==this.targetState)){c.dnd.Source.superclass.onMouseMove.call(this,b);var e=a.manager();if(!this.isDragging&&this.mouseDown&&this.isSource&&(Math.abs(b.pageX-this._lastX)>this.delay||
  389. Math.abs(b.pageY-this._lastY)>this.delay)){var d=this.getSelectedNodes();d.length&&e.startDrag(this,d,this.copyState(c.isCopyKey(b),!0))}if(this.isDragging){d=!1;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current)this.targetBox=c.position(this.current,!0);d=this.horizontal?b.pageX-this.targetBox.x<this.targetBox.w/2:b.pageY-this.targetBox.y<this.targetBox.h/2}if(this.current!=this.targetAnchor||d!=this.before)this._markTargetAnchor(d),e.canDrop(!this.current||e.source!=this||!(this.current.id in
  390. this.selection))}}},onMouseDown:function(a){if(!this.mouseDown&&this._legalMouseDown(a)&&(!this.skipForm||!c.dnd.isFormElement(a)))this.mouseDown=!0,this._lastX=a.pageX,this._lastY=a.pageY,c.dnd.Source.superclass.onMouseDown.call(this,a)},onMouseUp:function(a){this.mouseDown&&(this.mouseDown=!1,c.dnd.Source.superclass.onMouseUp.call(this,a))},onDndSourceOver:function(b){this!=b?(this.mouseDown=!1,this.targetAnchor&&this._unmarkTargetAnchor()):this.isDragging&&(b=a.manager(),b.canDrop("Disabled"!=
  391. this.targetState&&(!this.current||b.source!=this||!(this.current.id in this.selection))))},onDndStart:function(b,c,d){this.autoSync&&this.sync();this.isSource&&this._changeState("Source",this==b?d?"Copied":"Moved":"");c=this.accept&&this.checkAcceptance(b,c);this._changeState("Target",c?"":"Disabled");this==b&&a.manager().overSource(this);this.isDragging=!0},onDndDrop:function(a,c,d,j){if(this==j)this.onDrop(a,c,d);this.onDndCancel()},onDndCancel:function(){this.targetAnchor&&(this._unmarkTargetAnchor(),
  392. this.targetAnchor=null);this.before=!0;this.mouseDown=this.isDragging=!1;this._changeState("Source","");this._changeState("Target","")},onDrop:function(a,c,d){if(this!=a)this.onDropExternal(a,c,d);else this.onDropInternal(c,d)},onDropExternal:function(a,e,d){var j=this._normalizedCreator;this._normalizedCreator=this.creator?function(c,d){return j.call(this,a.getItem(c.id).data,d)}:d?function(d){var f=a.getItem(d.id),d=d.cloneNode(!0);d.id=c.dnd.getUniqueId();return{node:d,data:f.data,type:f.type}}:
  393. function(c){var d=a.getItem(c.id);a.delItem(c.id);return{node:c,data:d.data,type:d.type}};this.selectNone();!d&&!this.creator&&a.selectNone();this.insertNodes(!0,e,this.before,this.current);!d&&this.creator&&a.deleteSelectedNodes();this._normalizedCreator=j},onDropInternal:function(a,e){var d=this._normalizedCreator;if(!(this.current&&this.current.id in this.selection)){if(e)this._normalizedCreator=this.creator?function(a,b){return d.call(this,this.getItem(a.id).data,b)}:function(a){var b=this.getItem(a.id),
  394. a=a.cloneNode(!0);a.id=c.dnd.getUniqueId();return{node:a,data:b.data,type:b.type}};else{if(!this.current)return;this._normalizedCreator=function(a){var b=this.getItem(a.id);return{node:a,data:b.data,type:b.type}}}this._removeSelection();this.insertNodes(!0,a,this.before,this.current);this._normalizedCreator=d}},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){c.dnd.Source.superclass.onOverEvent.call(this);a.manager().overSource(this);if(this.isDragging&&"Disabled"!=this.targetState)this.onDraggingOver()},
  395. onOutEvent:function(){c.dnd.Source.superclass.onOutEvent.call(this);a.manager().outSource(this);if(this.isDragging&&"Disabled"!=this.targetState)this.onDraggingOut()},_markTargetAnchor:function(a){this.current==this.targetAnchor&&this.before==a||(this.targetAnchor&&this._removeItemClass(this.targetAnchor,this.before?"Before":"After"),this.targetAnchor=this.current,this.targetBox=null,this.before=a,this.targetAnchor&&this._addItemClass(this.targetAnchor,this.before?"Before":"After"))},_unmarkTargetAnchor:function(){this.targetAnchor&&
  396. (this._removeItemClass(this.targetAnchor,this.before?"Before":"After"),this.targetBox=this.targetAnchor=null,this.before=!0)},_markDndStatus:function(a){this._changeState("Source",a?"Copied":"Moved")},_legalMouseDown:function(a){if(!c.mouseButtons.isLeft(a))return!1;if(!this.withHandles)return!0;for(a=a.target;a&&a!==this.node;a=a.parentNode){if(c.hasClass(a,"dojoDndHandle"))return!0;if(c.hasClass(a,"dojoDndItem")||c.hasClass(a,"dojoDndIgnore"))break}return!1}})})},"dojo/html":function(){define("dojo/html",
  397. "./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),function(c,g,a,b,e,d,j){g.getObject("html",!0,c);var h=0;c.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};c.html._emptyNode=d.empty;c.html._setNodeContent=function(a,b){d.empty(a);if(b)if("string"==typeof b&&(b=d.toDom(b,a.ownerDocument)),!b.nodeType&&g.isArrayLike(b))for(var c=b.length,e=0;e<b.length;e=c==b.length?e+1:0)d.place(b[e],
  398. a,"last");else d.place(b,a,"last");return a};b("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:c._scopeName,startup:!0,constructor:function(a,b){g.mixin(this,a||{});b=this.node=e.byId(this.node||b);this.id||(this.id=["Setter",b?b.id||b.tagName:"",h++].join("_"))},set:function(a,b){void 0!==a&&(this.content=a);b&&this._mixin(b);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;
  399. if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=c.html._setNodeContent(a,this.content)}catch(b){var d=this.onContentError(b);try{a.innerHTML=d}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e)}}this.node=a},empty:function(){this.parseResults&&this.parseResults.length&&(a.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);c.html._emptyNode(this.node)},onBegin:function(){var a=
  400. this.content;if(g.isString(a)&&(this.cleanContent&&(a=c.html._secureForInnerHtml(a)),this.extractContent)){var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.node;delete this.content},onContentError:function(a){return"Error occured setting content: "+a},_mixin:function(a){var b={},c;for(c in a)c in b||(this[c]=a[c])},
  401. _parse:function(){var b=this.node;try{var c={};a.forEach(["dir","lang","textDir"],function(a){this[a]&&(c[a]=this[a])},this);this.parseResults=j.parse({rootNode:b,noStart:!this.startup,inherited:c,scope:this.parserScope})}catch(d){this._onError("Content",d,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,b,d){a=this["on"+a+"Error"].call(this,b);d?console.error(d,b):a&&c.html._setNodeContent(this.node,a,!0)}});c.html.set=function(a,b,d){void 0==b&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),
  402. b="");return d?(new c.html._ContentSetter(g.mixin(d,{content:b,node:a}))).set():c.html._setNodeContent(a,b,!0)};return c.html})},"dijit/_base/typematic":function(){define("dijit/_base/typematic",["../typematic"],function(){})},"dijit/_base":function(){define("dijit/_base",". ./a11y ./WidgetSet ./_base/focus ./_base/manager ./_base/place ./_base/popup ./_base/scroll ./_base/sniff ./_base/typematic ./_base/wai ./_base/window".split(" "),function(c){return c._base})},"dijit/layout/BorderContainer":function(){define("dijit/layout/BorderContainer",
  403. "dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/event dojo/keys dojo/_base/lang dojo/on dojo/touch dojo/_base/window ../_WidgetBase ../_Widget ../_TemplatedMixin ./_LayoutWidget ./utils".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q){var v=a("dijit.layout._Splitter",[p,t],{live:!0,templateString:'<div class="dijitSplitter" data-dojo-attach-event="onkeypress:_onKeyPress,press:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex="0" role="separator"><div class="dijitSplitterThumb"></div></div>',
  404. constructor:function(){this._handlers=[]},postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);b.add(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=g(this._cookieName);a&&(this.child.domNode.style[this.horizontal?"height":"width"]=a)}},_computeMaxSize:function(){var a=
  405. this.horizontal?"h":"w",b=d.getMarginBox(this.child.domNode)[a],e=c.filter(this.container.getChildren(),function(a){return"center"==a.region})[0],a=d.getMarginBox(e.domNode)[a];return Math.min(this.child.maxSize,b+a)},_startDrag:function(a){this.cover||(this.cover=m.doc.createElement("div"),b.add(this.cover,"dijitSplitterCover"),e.place(this.cover,this.child.domNode,"after"));b.add(this.cover,"dijitSplitterCoverActive");this.fake&&e.destroy(this.fake);if(!(this._resize=this.live))(this.fake=this.domNode.cloneNode(!0)).removeAttribute("id"),
  406. b.add(this.domNode,"dijitSplitterShadow"),e.place(this.fake,this.domNode,"after");b.add(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");this.fake&&b.remove(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var c=this._factor,f=this.horizontal,j=f?"pageY":"pageX",g=a[j],n=this.domNode.style,p=d.getMarginBox(this.child.domNode)[f?"h":"w"],s=this._computeMaxSize(),t=this.child.minSize||20,f=this.region,v="top"==f||"bottom"==f?"top":"left",
  407. q=parseInt(n[v],10),D=this._resize,C=k.hitch(this.container,"_layoutChildren",this.child.id),f=m.doc;this._handlers=this._handlers.concat([l(f,o.move,this._drag=function(a,b){var d=a[j]-g,e=c*d+p,f=Math.max(Math.min(e,s),t);(D||b)&&C(f);n[v]=d+q+c*(f-e)+"px"}),l(f,"dragstart",h.stop),l(m.body(),"selectstart",h.stop),l(f,o.release,k.hitch(this,"_stopDrag"))]);h.stop(a)},_onMouse:function(a){a="mouseover"==a.type||"mouseenter"==a.type;b.toggle(this.domNode,"dijitSplitterHover",a);b.toggle(this.domNode,
  408. "dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.remove(this.cover,"dijitSplitterCoverActive"),this.fake&&e.destroy(this.fake),b.remove(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow"),this._drag(a),this._drag(a,!0)}finally{this._cleanupHandlers(),delete this._drag}this.container.persist&&g(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){for(var a;a=
  409. this._handlers.pop();)a.remove()},_onKeyPress:function(a){this._resize=!0;var b=this.horizontal,c=1;switch(a.charOrCode){case b?f.UP_ARROW:f.LEFT_ARROW:c*=-1;case b?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}b=d.getMarginSize(this.child.domNode)[b?"h":"w"]+this._factor*c;this.container._layoutChildren(this.child.id,Math.max(Math.min(b,this._computeMaxSize()),this.child.minSize));h.stop(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;
  410. this.inherited(arguments)}}),u=a("dijit.layout._Gutter",[p,t],{templateString:'<div class="dijitGutter" role="presentation"></div>',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);b.add(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"))}}),a=a("dijit.layout.BorderContainer",s,{design:"headline",gutters:!0,liveSplitters:!0,persist:!1,baseClass:"dijitBorderContainer",_splitterClass:v,postMixInProperties:function(){this.gutters||
  411. (this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){this._started||(c.forEach(this.getChildren(),this._setupChild,this),this.inherited(arguments))},_setupChild:function(a){var c=a.region;if(c){this.inherited(arguments);b.add(a.domNode,this.baseClass+"Pane");var d=this.isLeftToRight();"leading"==c&&(c=d?"left":"right");"trailing"==c&&(c=d?"right":"left");if("center"!=c&&(a.splitter||this.gutters)&&!a._splitterWidget)d=a.splitter?this._splitterClass:u,k.isString(d)&&(d=k.getObject(d)),
  412. d=new d({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters}),d.isSplitter=!0,a._splitterWidget=d,e.place(d.domNode,a.domNode,"after"),d.startup();a.region=c}},layout:function(){this._layoutChildren()},addChild:function(a,b){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,d=a._splitterWidget;d&&(d.destroy(),delete a._splitterWidget);this.inherited(arguments);this._started&&this._layoutChildren();b.remove(a.domNode,this.baseClass+
  413. "Pane");j.set(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});j.set(a.domNode,"top"==c||"bottom"==c?"width":"height","auto")},getChildren:function(){return c.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return c.filter(this.getChildren(),function(b){return b.region==a})[0]._splitterWidget},resize:function(a,b){if(!this.cs||!this.pe){var c=this.domNode;this.cs=j.getComputedStyle(c);this.pe=d.getPadExtents(c,this.cs);this.pe.r=
  414. j.toPixelValue(c,this.cs.paddingRight);this.pe.b=j.toPixelValue(c,this.cs.paddingBottom);j.set(c,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(a,b){if(this._borderBox&&this._borderBox.h){var d=c.map(this.getChildren(),function(a,b){return{pane:a,weight:["center"==a.region?Infinity:0,a.layoutPriority,("sidebar"==this.design?1:-1)*(/top|bottom/.test(a.region)?1:-1),b]}},this);d.sort(function(a,b){for(var c=a.weight,d=b.weight,e=0;e<c.length;e++)if(c[e]!=d[e])return c[e]-d[e];
  415. return 0});var e=[];c.forEach(d,function(a){a=a.pane;e.push(a);a._splitterWidget&&e.push(a._splitterWidget)});q.layoutChildren(this.domNode,{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},e,a,b)}},destroyRecursive:function(){c.forEach(this.getChildren(),function(a){var b=a._splitterWidget;b&&b.destroy();delete a._splitterWidget});this.inherited(arguments)}});k.extend(n,{region:"",layoutPriority:0,splitter:!1,minSize:0,maxSize:Infinity});a._Splitter=v;a._Gutter=
  416. u;return a})},"dojo/window":function(){define("dojo/window","./_base/lang ./_base/sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),function(c,g,a,b,e,d,j){g.add("rtl-adjust-position-for-verticalScrollBar",function(b,c){var d=a.body(c),h=j.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},d,"last"),g=j.create("div",{style:{overflow:"hidden",direction:"ltr"}},
  417. h,"last"),n=0!=e.position(g).x;h.removeChild(g);d.removeChild(h);return n});g.add("position-fixed-support",function(b,c){var d=a.body(c),h=j.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},d,"last"),g=j.create("span",{style:{position:"fixed",left:"0",top:"0"}},h,"last"),n=e.position(g).x!=e.position(h).x;h.removeChild(g);d.removeChild(h);return n});var h=c.getObject("dojo.window",!0);h.getBox=function(){var b="BackCompat"==a.doc.compatMode?a.body():a.doc.documentElement,
  418. c=e.docScroll(),d;if(g("touch")){var h=a.doc.parentWindow||a.doc.defaultView;d=h.innerWidth||b.clientWidth;b=h.innerHeight||b.clientHeight}else d=b.clientWidth,b=b.clientHeight;return{l:c.x,t:c.y,w:d,h:b}};h.get=function(a){if(9>g("ie")&&h!==document.parentWindow){a.parentWindow.execScript("document._parentWindow = window;","Javascript");var b=a._parentWindow;a._parentWindow=null;return b}return a.parentWindow||a.defaultView};h.scrollIntoView=function(c,k){try{var c=b.byId(c),h=c.ownerDocument||a.doc,
  419. j=a.body(h),m=h.documentElement||j.parentNode,n=g("ie"),p=g("webkit");if(!(c==j||c==m))if(!g("mozilla")&&(!n&&!p&&!g("opera")&&!g("trident"))&&"scrollIntoView"in c)c.scrollIntoView(!1);else{var t="BackCompat"==h.compatMode,s=Math.min(j.clientWidth||m.clientWidth,m.clientWidth||j.clientWidth),q=Math.min(j.clientHeight||m.clientHeight,m.clientHeight||j.clientHeight),h=p||t?j:m,v=k||e.position(c),u=c.parentNode,p=function(a){return 6>=n||7==n&&t?!1:g("position-fixed-support")&&"fixed"==d.get(a,"position").toLowerCase()},
  420. x=this,w=function(a,b,c){"BODY"==a.tagName||"HTML"==a.tagName?x.get(a.ownerDocument).scrollBy(b,c):(b&&(a.scrollLeft+=b),c&&(a.scrollTop+=c))};if(!p(c))for(;u;){u==j&&(u=h);var r=e.position(u),E=p(u),I="rtl"==d.getComputedStyle(u).direction.toLowerCase();if(u==h){r.w=s;r.h=q;if(h==m&&(n||g("trident"))&&I)r.x+=h.offsetWidth-r.w;if(0>r.x||!n||9<=n||g("trident"))r.x=0;if(0>r.y||!n||9<=n||g("trident"))r.y=0}else{var L=e.getPadBorderExtents(u);r.w-=L.w;r.h-=L.h;r.x+=L.l;r.y+=L.t;var F=u.clientWidth,y=
  421. r.w-F;0<F&&0<y&&(I&&g("rtl-adjust-position-for-verticalScrollBar")&&(r.x+=y),r.w=F);F=u.clientHeight;y=r.h-F;0<F&&0<y&&(r.h=F)}E&&(0>r.y&&(r.h+=r.y,r.y=0),0>r.x&&(r.w+=r.x,r.x=0),r.y+r.h>q&&(r.h=q-r.y),r.x+r.w>s&&(r.w=s-r.x));var z=v.x-r.x,H=v.y-r.y,A=z+v.w-r.w,D=H+v.h-r.h,C,B;if(0<A*z&&(u.scrollLeft||u==h||u.scrollWidth>u.offsetHeight)){C=Math[0>z?"max":"min"](z,A);if(I&&(8==n&&!t||9<=n||g("trident")))C=-C;B=u.scrollLeft;w(u,C,0);C=u.scrollLeft-B;v.x-=C}if(0<D*H&&(u.scrollTop||u==h||u.scrollHeight>
  422. u.offsetHeight))C=Math.ceil(Math[0>H?"max":"min"](H,D)),B=u.scrollTop,w(u,0,C),C=u.scrollTop-B,v.y-=C;u=u!=h&&!E&&u.parentNode}}}catch(G){console.error("scrollIntoView: "+G),c.scrollIntoView(!1)}};return h})},"dojo/number":function(){define("dojo/number","./_base/kernel ./_base/lang ./i18n ./i18n!./cldr/nls/number ./string ./regexp".split(" "),function(c,g,a,b,e,d){g.getObject("number",!0,c);c.number.format=function(b,d){var d=g.mixin({},d||{}),e=a.normalizeLocale(d.locale),e=a.getLocalization("dojo.cldr",
  423. "number",e);d.customs=e;e=d.pattern||e[(d.type||"decimal")+"Format"];return isNaN(b)||Infinity==Math.abs(b)?null:c.number._applyPattern(b,e,d)};c.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;c.number._applyPattern=function(a,b,d){var d=d||{},e=d.customs.group,j=d.customs.decimal,b=b.split(";"),g=b[0],b=b[0>a?1:0]||"-"+g;if(-1!=b.indexOf("%"))a*=100;else if(-1!=b.indexOf("\u2030"))a*=1E3;else if(-1!=b.indexOf("\u00a4"))e=d.customs.currencyGroup||e,j=d.customs.currencyDecimal||j,b=b.replace(/\u00a4{1,3}/,
  424. function(a){return d[["symbol","currency","displayName"][a.length-1]]||d.currency||""});else if(-1!=b.indexOf("E"))throw Error("exponential notation not supported");var n=c.number._numberPatternRE,g=g.match(n);if(!g)throw Error("unable to find a number expression in pattern: "+b);!1===d.fractional&&(d.places=0);return b.replace(n,c.number._formatAbsolute(a,g[0],{decimal:j,group:e,places:d.places,round:d.round}))};c.number.round=function(a,b,c){c=10/(c||10);return(c*+a).toFixed(b)/c};if(0==(0.9).toFixed()){var j=
  425. c.number.round;c.number.round=function(a,b,c){var d=Math.pow(10,-b||0),e=Math.abs(a);if(!a||e>=d)d=0;else if(e/=d,0.5>e||0.95<=e)d=0;return j(a,b,c)+(0<a?d:-d)}}c.number._formatAbsolute=function(a,b,d){d=d||{};!0===d.places&&(d.places=0);Infinity===d.places&&(d.places=6);var b=b.split("."),j="string"==typeof d.places&&d.places.indexOf(","),g=d.places;j?g=d.places.substring(j+1):0<=g||(g=(b[1]||[]).length);0>d.round||(a=c.number.round(a,g,d.round));var a=String(Math.abs(a)).split("."),m=a[1]||"";b[1]||
  426. d.places?(j&&(d.places=d.places.substring(0,j)),j=void 0!==d.places?d.places:b[1]&&b[1].lastIndexOf("0")+1,j>m.length&&(a[1]=e.pad(m,j,"0",!0)),g<m.length&&(a[1]=m.substr(0,g))):a[1]&&a.pop();g=b[0].replace(",","");j=g.indexOf("0");-1!=j&&(j=g.length-j,j>a[0].length&&(a[0]=e.pad(a[0],j)),-1==g.indexOf("#")&&(a[0]=a[0].substr(a[0].length-j)));var g=b[0].lastIndexOf(","),n,p;-1!=g&&(n=b[0].length-g-1,b=b[0].substr(0,g),g=b.lastIndexOf(","),-1!=g&&(p=b.length-g-1));b=[];for(g=a[0];g;)j=g.length-n,b.push(0<
  427. j?g.substr(j):g),g=0<j?g.slice(0,j):"",p&&(n=p,delete p);a[0]=b.reverse().join(d.group||",");return a.join(d.decimal||".")};c.number.regexp=function(a){return c.number._parseInfo(a).regexp};c.number._parseInfo=function(b){var b=b||{},e=a.normalizeLocale(b.locale),e=a.getLocalization("dojo.cldr","number",e),k=b.pattern||e[(b.type||"decimal")+"Format"],j=e.group,g=e.decimal,m=1;if(-1!=k.indexOf("%"))m/=100;else if(-1!=k.indexOf("\u2030"))m/=1E3;else{var n=-1!=k.indexOf("\u00a4");n&&(j=e.currencyGroup||
  428. j,g=e.currencyDecimal||g)}e=k.split(";");1==e.length&&e.push("-"+e[0]);e=d.buildGroupRE(e,function(a){a="(?:"+d.escapeString(a,".")+")";return a.replace(c.number._numberPatternRE,function(a){var d={signed:!1,separator:b.strict?j:[j,""],fractional:b.fractional,decimal:g,exponent:!1},a=a.split("."),e=b.places;1==a.length&&1!=m&&(a[1]="###");1==a.length||0===e?d.fractional=!1:(void 0===e&&(e=b.pattern?a[1].lastIndexOf("0")+1:Infinity),e&&void 0==b.fractional&&(d.fractional=!0),!b.places&&e<a[1].length&&
  429. (e+=","+a[1].length),d.places=e);a=a[0].split(",");1<a.length&&(d.groupSize=a.pop().length,1<a.length&&(d.groupSize2=a.pop().length));return"("+c.number._realNumberRegexp(d)+")"})},!0);n&&(e=e.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(a,c,e,f){a=d.escapeString(b[["symbol","currency","displayName"][e.length-1]]||b.currency||"");c=c?"[\\s\\xa0]":"";f=f?"[\\s\\xa0]":"";return!b.strict?(c&&(c+="*"),f&&(f+="*"),"(?:"+c+a+f+")?"):c+a+f}));return{regexp:e.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:j,
  430. decimal:g,factor:m}};c.number.parse=function(a,b){var d=c.number._parseInfo(b),e=RegExp("^"+d.regexp+"$").exec(a);if(!e)return NaN;var j=e[1];if(!e[1]){if(!e[2])return NaN;j=e[2];d.factor*=-1}j=j.replace(RegExp("["+d.group+"\\s\\xa0]","g"),"").replace(d.decimal,".");return j*d.factor};c.number._realNumberRegexp=function(a){a=a||{};"places"in a||(a.places=Infinity);"string"!=typeof a.decimal&&(a.decimal=".");if(!("fractional"in a)||/^0/.test(a.places))a.fractional=[!0,!1];"exponent"in a||(a.exponent=
  431. [!0,!1]);"eSigned"in a||(a.eSigned=[!0,!1]);var b=c.number._integerRegexp(a),e=d.buildGroupRE(a.fractional,function(b){var c="";b&&0!==a.places&&(c="\\"+a.decimal,c=Infinity==a.places?"(?:"+c+"\\d+)?":c+("\\d{"+a.places+"}"));return c},!0),j=d.buildGroupRE(a.exponent,function(b){return b?"([eE]"+c.number._integerRegexp({signed:a.eSigned})+")":""}),b=b+e;e&&(b="(?:(?:"+b+")|(?:"+e+"))");return b+j};c.number._integerRegexp=function(a){a=a||{};"signed"in a||(a.signed=[!0,!1]);"separator"in a?"groupSize"in
  432. a||(a.groupSize=3):a.separator="";var b=d.buildGroupRE(a.signed,function(a){return a?"[-+]":""},!0),c=d.buildGroupRE(a.separator,function(b){if(!b)return"(?:\\d+)";b=d.escapeString(b);" "==b?b="\\s":"\u00a0"==b&&(b="\\s\\xa0");var c=a.groupSize,e=a.groupSize2;return e?(b="(?:0|[1-9]\\d{0,"+(e-1)+"}(?:["+b+"]\\d{"+e+"})*["+b+"]\\d{"+c+"})",0<c-e?"(?:"+b+"|(?:0|[1-9]\\d{0,"+(c-1)+"}))":b):"(?:0|[1-9]\\d{0,"+(c-1)+"}(?:["+b+"]\\d{"+c+"})*)"},!0);return b+c};return c.number})},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",
  433. ["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(c,g,a,b){b.extend(g,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return a("dijit._FocusMixin",null,{_focusManager:c})})},"dijit/_WidgetsInTemplateMixin":function(){define("dijit/_WidgetsInTemplateMixin",["dojo/_base/array","dojo/_base/declare","dojo/parser","dijit/registry"],function(c,g,a,b){return g("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,
  434. widgetsInTemplate:!0,_beforeFillContent:function(){if(this.widgetsInTemplate){var c=this.domNode,d=this._startupWidgets=a.parse(c,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,scope:"dojo"});this._supportingWidgets=b.findWidgets(c);this._attachTemplateNodes(d,function(a,b){return a[b]})}},startup:function(){c.forEach(this._startupWidgets,function(a){a&&(!a._started&&a.startup)&&a.startup()});this.inherited(arguments)}})})},
  435. "dojo/fx/Toggler":function(){define("dojo/fx/Toggler",["../_base/lang","../_base/declare","../_base/fx","../_base/connect"],function(c,g,a,b){return g("dojo.fx.Toggler",null,{node:null,showFunc:a.fadeIn,hideFunc:a.fadeOut,showDuration:200,hideDuration:200,constructor:function(a){c.mixin(this,a);this.node=a.node;this._showArgs=c.mixin({},a);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=c.mixin({},a);this._hideArgs.node=
  436. this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);b.connect(this.showAnim,"beforeBegin",c.hitch(this.hideAnim,"stop",!0));b.connect(this.hideAnim,"beforeBegin",c.hitch(this.showAnim,"stop",!0))},show:function(a){return this.showAnim.play(a||0)},hide:function(a){return this.hideAnim.play(a||0)}})})},"url:dojox/layout/resources/ExpandoPane.html":'<div class="dojoxExpandoPane">\n\t<div dojoAttachPoint="titleWrapper" class="dojoxExpandoTitle">\n\t\t<div class="dojoxExpandoIcon" dojoAttachPoint="iconNode" dojoAttachEvent="onclick:toggle"><span class="a11yNode">X</span></div>\t\t\t\n\t\t<span class="dojoxExpandoTitleNode" dojoAttachPoint="titleNode">${title}</span>\n\t</div>\n\t<div class="dojoxExpandoWrapper" dojoAttachPoint="cwrapper" dojoAttachEvent="ondblclick:_trap">\n\t\t<div class="dojoxExpandoContent" dojoAttachPoint="containerNode"></div>\n\t</div>\n</div>\n',
  437. "dojox/fx/_base":function(){define("dojox/fx/_base","dojo/_base/array dojo/_base/lang dojo/_base/fx dojo/fx dojo/dom dojo/dom-style dojo/dom-geometry dojo/_base/connect dojo/_base/html".split(" "),function(c,g,a,b,e,d,j,h,f){c=g.getObject("dojox.fx",!0);c.sizeTo=function(c){var f=c.node=e.byId(c.node),h=c.method||"chain";c.duration||(c.duration=500);"chain"==h&&(c.duration=Math.floor(c.duration/2));var j,n,p,t,s,q=null,v;v=function(){var a=d.getComputedStyle(f),b=a.position,e=a.width,h=a.height;j=
  438. "absolute"==b?f.offsetTop:parseInt(a.top)||0;p="absolute"==b?f.offsetLeft:parseInt(a.left)||0;s="auto"==e?0:parseInt(e);q="auto"==h?0:parseInt(h);t=p-Math.floor((c.width-s)/2);n=j-Math.floor((c.height-q)/2);"absolute"!=b&&"relative"!=b&&(a=d.coords(f,!0),j=a.y,p=a.x,f.style.position="absolute",f.style.top=j+"px",f.style.left=p+"px")};var h=a.animateProperty(g.mixin({properties:{height:function(){v();return{end:c.height||0,start:q}},top:function(){return{start:j,end:n}}}},c)),u=a.animateProperty(g.mixin({properties:{width:function(){return{start:s,
  439. end:c.width||0}},left:function(){return{start:p,end:t}}}},c));return b["combine"==c.method?"combine":"chain"]([h,u])};c.slideBy=function(b){var c,f,m,n=b.node=e.byId(b.node);m=function(){var a=d.getComputedStyle(n),b=a.position;c="absolute"==b?n.offsetTop:parseInt(a.top)||0;f="absolute"==b?n.offsetLeft:parseInt(a.left)||0;"absolute"!=b&&"relative"!=b&&(a=j.coords(n,!0),c=a.y,f=a.x,n.style.position="absolute",n.style.top=c+"px",n.style.left=f+"px")};m();b=a.animateProperty(g.mixin({properties:{top:c+
  440. (b.top||0),left:f+(b.left||0)}},b));h.connect(b,"beforeBegin",b,m);return b};c.crossFade=function(c){var d=c.nodes[0]=e.byId(c.nodes[0]),h=f.style(d,"opacity"),j=c.nodes[1]=e.byId(c.nodes[1]);f.style(j,"opacity");return b.combine([a[0==h?"fadeIn":"fadeOut"](g.mixin({node:d},c)),a[0==h?"fadeOut":"fadeIn"](g.mixin({node:j},c))])};c.highlight=function(b){var c=b.node=e.byId(b.node);b.duration=b.duration||400;var d=b.color||"#ffff99",j=f.style(c,"backgroundColor");"rgba(0, 0, 0, 0)"==j&&(j="transparent");
  441. b=a.animateProperty(g.mixin({properties:{backgroundColor:{start:d,end:j}}},b));"transparent"==j&&h.connect(b,"onEnd",b,function(){c.style.backgroundColor=j});return b};c.wipeTo=function(b){b.node=e.byId(b.node);var c=b.node,d=c.style,h=b.width?"width":"height",j={};j[h]={start:function(){d.overflow="hidden";if("hidden"==d.visibility||"none"==d.display)return d[h]="1px",d.display="",d.visibility="",1;var a=f.style(c,h);return Math.max(a,1)},end:b[h]};return a.animateProperty(g.mixin({properties:j},
  442. b))};return c})},"dojo/dnd/Target":function(){define("dojo/dnd/Target",["./Source"],function(c){return dojo.declare("dojo.dnd.Target",c,{constructor:function(){this.isSource=!1;dojo.removeClass(this.node,"dojoDndSource")}})})},"dojo/data/util/sorter":function(){define("dojo/data/util/sorter",["../../_base/lang"],function(c){var g=c.getObject("dojo.data.util.sorter",!0);g.basicComparator=function(a,b){var c=-1;null===a&&(a=void 0);null===b&&(b=void 0);if(a==b)c=0;else if(a>b||null==a)c=1;return c};
  443. g.createSortFunction=function(a,b){function c(a,b,d,e){return function(c,f){var h=e.getValue(c,a),j=e.getValue(f,a);return b*d(h,j)}}for(var d=[],j,h=b.comparatorMap,f=g.basicComparator,k=0;k<a.length;k++){j=a[k];var l=j.attribute;if(l){j=j.descending?-1:1;var o=f;h&&("string"!==typeof l&&"toString"in l&&(l=l.toString()),o=h[l]||f);d.push(c(l,j,o,b))}}return function(a,b){for(var c=0;c<d.length;){var e=d[c++](a,b);if(0!==e)return e}return 0}};return g})},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",
  444. ["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(c,g,a,b){return c("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(c){if(this.disabled)return a.stop(c),!1;var d=!1===this.onClick(c);if(!d&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var j=this.domNode;j.parentNode;j=j.parentNode){var h=b.byNode(j);if(h&&"function"==typeof h._onSubmit){h._onSubmit(c);d=!0;break}}d&&c.preventDefault();return!d},postCreate:function(){this.inherited(arguments);
  445. g.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(a){this._set("label",a);(this.containerNode||this.focusNode).innerHTML=a}})})},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(c,g,a,b,e){var d={},j={},h={length:0,add:function(a){if(j[a.id])throw Error("Tried to register widget with id=="+a.id+" but that id is already registered");j[a.id]=a;this.length++},remove:function(a){j[a]&&
  446. (delete j[a],this.length--)},byId:function(a){return"string"==typeof a?j[a]:a},byNode:function(a){return j[a.getAttribute("widgetId")]},toArray:function(){var a=[],b;for(b in j)a.push(j[b]);return a},getUniqueId:function(a){var b;do b=a+"_"+(a in d?++d[a]:d[a]=0);while(j[b]);return"dijit"==e._scopeName?b:e._scopeName+"_"+b},findWidgets:function(a){function b(a){for(a=a.firstChild;a;a=a.nextSibling)if(1==a.nodeType){var d=a.getAttribute("widgetId");d?(d=j[d])&&c.push(d):b(a)}}var c=[];b(a);return c},
  447. _destroyAll:function(){e._curFocus=null;e._prevFocus=null;e._activeStack=[];c.forEach(h.findWidgets(b.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy())})},getEnclosingWidget:function(a){for(;a;){var b=a.getAttribute&&a.getAttribute("widgetId");if(b)return j[b];a=a.parentNode}return null},_hash:j};return e.registry=h})},"dojo/date/locale":function(){define("dojo/date/locale","../_base/kernel ../_base/lang ../_base/array ../date ../cldr/supplemental ../regexp ../string ../i18n!../cldr/nls/gregorian".split(" "),
  448. function(c,g,a,b,e,d,j){function h(a,b,d,e){return e.replace(/([a-z])\1*/ig,function(f){var h,k,g=f.charAt(0),f=f.length,l=["abbr","wide","narrow"];switch(g){case "G":h=b[4>f?"eraAbbr":"eraNames"][0>a.getFullYear()?0:1];break;case "y":h=a.getFullYear();switch(f){case 1:break;case 2:if(!d.fullYear){h=String(h);h=h.substr(h.length-2);break}default:k=!0}break;case "Q":case "q":h=Math.ceil((a.getMonth()+1)/3);k=!0;break;case "M":h=a.getMonth();3>f?(h+=1,k=!0):(g=["months-format",l[f-3]].join("-"),h=b[g][h]);
  449. break;case "w":h=c.date.locale._getWeekOfYear(a,0);k=!0;break;case "d":h=a.getDate();k=!0;break;case "D":h=c.date.locale._getDayOfYear(a);k=!0;break;case "E":h=a.getDay();3>f?(h+=1,k=!0):(g=["days-format",l[f-3]].join("-"),h=b[g][h]);break;case "a":h=12>a.getHours()?"am":"pm";h=d[h]||b["dayPeriods-format-wide-"+h];break;case "h":case "H":case "K":case "k":k=a.getHours();switch(g){case "h":h=k%12||12;break;case "H":h=k;break;case "K":h=k%12;break;case "k":h=k||24}k=!0;break;case "m":h=a.getMinutes();
  450. k=!0;break;case "s":h=a.getSeconds();k=!0;break;case "S":h=Math.round(a.getMilliseconds()*Math.pow(10,f-3));k=!0;break;case "v":case "z":if(h=c.date.locale._getZone(a,!0,d))break;f=4;case "Z":h=c.date.locale._getZone(a,!1,d);h=[0>=h?"+":"-",j.pad(Math.floor(Math.abs(h)/60),2),j.pad(Math.abs(h)%60,2)];4==f&&(h.splice(0,0,"GMT"),h.splice(3,0,":"));h=h.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+e);}k&&(h=j.pad(h,f));return h})}function f(a,b,d,e){var f=function(a){return a},
  451. b=b||f,d=d||f,e=e||f,h=a.match(/(''|[^'])+/g),j="'"==a.charAt(0);c.forEach(h,function(a,c){a?(h[c]=(j?d:b)(a.replace(/''/g,"'")),j=!j):h[c]=""});return e(h.join(""))}function k(a,b,c,e){e=d.escapeString(e);c.strict||(e=e.replace(" a"," ?a"));return e.replace(/([a-z])\1*/ig,function(d){var e;e=d.charAt(0);var f=d.length,h="",j="";c.strict?(1<f&&(h="0{"+(f-1)+"}"),2<f&&(j="0{"+(f-2)+"}")):(h="0?",j="0{0,2}");switch(e){case "y":e="\\d{2,4}";break;case "M":e=2<f?"\\S+?":"1[0-2]|"+h+"[1-9]";break;case "D":e=
  452. "[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+h+"[1-9][0-9]|"+j+"[1-9]";break;case "d":e="3[01]|[12]\\d|"+h+"[1-9]";break;case "w":e="[1-4][0-9]|5[0-3]|"+h+"[1-9]";break;case "E":e="\\S+";break;case "h":e="1[0-2]|"+h+"[1-9]";break;case "k":e="1[01]|"+h+"\\d";break;case "H":e="1\\d|2[0-3]|"+h+"\\d";break;case "K":e="1\\d|2[0-4]|"+h+"[1-9]";break;case "m":case "s":e="[0-5]\\d";break;case "S":e="\\d{"+f+"}";break;case "a":f=c.am||b["dayPeriods-format-wide-am"];h=c.pm||b["dayPeriods-format-wide-pm"];e=f+"|"+
  453. h;c.strict||(f!=f.toLowerCase()&&(e+="|"+f.toLowerCase()),h!=h.toLowerCase()&&(e+="|"+h.toLowerCase()),-1!=e.indexOf(".")&&(e+="|"+e.replace(/\./g,"")));e=e.replace(/\./g,"\\.");break;default:e=".*"}a&&a.push(d);return"("+e+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}g.getObject("date.locale",!0,c);c.date.locale._getZone=function(a,c){return c?b.getTimezoneName(a):a.getTimezoneOffset()};c.date.locale.format=function(a,b){var b=b||{},d=c.i18n.normalizeLocale(b.locale),e=b.formatLength||"short",d=c.date.locale._getGregorianBundle(d),
  454. j=[],k=g.hitch(this,h,a,d,b);if("year"==b.selector)return f(d["dateFormatItem-yyyy"]||"yyyy",k);var l;"date"!=b.selector&&(l=b.timePattern||d["timeFormat-"+e])&&j.push(f(l,k));"time"!=b.selector&&(l=b.datePattern||d["dateFormat-"+e])&&j.push(f(l,k));return 1==j.length?j[0]:d["dateTimeFormat-"+e].replace(/\{(\d+)\}/g,function(a,b){return j[b]})};c.date.locale.regexp=function(a){return c.date.locale._parseInfo(a).regexp};c.date.locale._parseInfo=function(a){var a=a||{},b=c.i18n.normalizeLocale(a.locale),
  455. b=c.date.locale._getGregorianBundle(b),d=a.formatLength||"short",e=a.datePattern||b["dateFormat-"+d],h=a.timePattern||b["timeFormat-"+d],d="date"==a.selector?e:"time"==a.selector?h:b["dateTimeFormat-"+d].replace(/\{(\d+)\}/g,function(a,b){return[h,e][b]}),j=[];return{regexp:f(d,g.hitch(this,k,j,b,a)),tokens:j,bundle:b}};c.date.locale.parse=function(a,d){var e=/[\u200E\u200F\u202A\u202E]/g,f=c.date.locale._parseInfo(d),h=f.tokens,j=f.bundle,e=RegExp("^"+f.regexp.replace(e,"")+"$",f.strict?"":"i").exec(a&&
  456. a.replace(e,""));if(!e)return null;var k=["abbr","wide","narrow"],g=[1970,0,1,0,0,0,0],l="",e=c.every(e,function(a,b){if(!b)return!0;var e=h[b-1],f=e.length;switch(e.charAt(0)){case "y":if(2!=f&&d.strict)g[0]=a;else if(100>a)a=Number(a),f=""+(new Date).getFullYear(),e=100*f.substring(0,2),f=Math.min(Number(f.substring(2,4))+20,99),g[0]=a<f?e+a:e-100+a;else{if(d.strict)return!1;g[0]=a}break;case "M":if(2<f){if(e=j["months-format-"+k[f-3]].concat(),d.strict||(a=a.replace(".","").toLowerCase(),e=c.map(e,
  457. function(a){return a.replace(".","").toLowerCase()})),a=c.indexOf(e,a),-1==a)return!1}else a--;g[1]=a;break;case "E":case "e":e=j["days-format-"+k[f-3]].concat();d.strict||(a=a.toLowerCase(),e=c.map(e,function(a){return a.toLowerCase()}));a=c.indexOf(e,a);if(-1==a)return!1;break;case "D":g[1]=0;case "d":g[2]=a;break;case "a":e=d.am||j["dayPeriods-format-wide-am"];f=d.pm||j["dayPeriods-format-wide-pm"];if(!d.strict)var n=/\./g,a=a.replace(n,"").toLowerCase(),e=e.replace(n,"").toLowerCase(),f=f.replace(n,
  458. "").toLowerCase();if(d.strict&&a!=e&&a!=f)return!1;l=a==f?"p":a==e?"a":"";break;case "K":24==a&&(a=0);case "h":case "H":case "k":if(23<a)return!1;g[3]=a;break;case "m":g[4]=a;break;case "s":g[5]=a;break;case "S":g[6]=a}return!0}),f=+g[3];"p"===l&&12>f?g[3]=f+12:"a"===l&&12==f&&(g[3]=0);f=new Date(g[0],g[1],g[2],g[3],g[4],g[5],g[6]);d.strict&&f.setFullYear(g[0]);var x=h.join(""),w=-1!=x.indexOf("d"),x=-1!=x.indexOf("M");if(!e||x&&f.getMonth()>g[1]||w&&f.getDate()>g[2])return null;if(x&&f.getMonth()<
  459. g[1]||w&&f.getDate()<g[2])f=b.add(f,"hour",1);return f};var l=[];c.date.locale.addCustomFormats=function(a,b){l.push({pkg:a,name:b})};c.date.locale._getGregorianBundle=function(a){var b={};c.forEach(l,function(d){d=c.i18n.getLocalization(d.pkg,d.name,a);b=g.mixin(b,d)},this);return b};c.date.locale.addCustomFormats("dojo.cldr","gregorian");c.date.locale.getNames=function(a,b,d,e){var f,e=c.date.locale._getGregorianBundle(e),a=[a,d,b];"standAlone"==d&&(d=a.join("-"),f=e[d],1==f[0]&&(f=void 0));a[1]=
  460. "format";return(f||e[a.join("-")]).concat()};c.date.locale.isWeekend=function(a,b){var c=e.getWeekend(b),d=(a||new Date).getDay();c.end<c.start&&(c.end+=7,d<c.start&&(d+=7));return d>=c.start&&d<=c.end};c.date.locale._getDayOfYear=function(a){return b.difference(new Date(a.getFullYear(),0,1,a.getHours()),a)+1};c.date.locale._getWeekOfYear=function(a,b){1==arguments.length&&(b=0);var d=(new Date(a.getFullYear(),0,1)).getDay(),e=Math.floor((c.date.locale._getDayOfYear(a)+(d-b+7)%7-1)/7);d==b&&e++;return e};
  461. return c.date.locale})},"dijit/tree/_dndContainer":function(){define("dijit/tree/_dndContainer","dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/event dojo/_base/lang dojo/mouse dojo/on".split(" "),function(c,g,a,b,e,d,j){return g("dijit.tree._dndContainer",null,{constructor:function(h,f){this.tree=h;this.node=h.domNode;e.mixin(this,f);this.current=null;this.containerState="";a.add(this.node,"dojoDndContainer");this.events=[j(this.node,d.enter,e.hitch(this,"onOverEvent")),j(this.node,d.leave,
  462. e.hitch(this,"onOutEvent")),c.after(this.tree,"_onNodeMouseEnter",e.hitch(this,"onMouseOver"),!0),c.after(this.tree,"_onNodeMouseLeave",e.hitch(this,"onMouseOut"),!0),j(this.node,"dragstart",e.hitch(b,"stop")),j(this.node,"selectstart",e.hitch(b,"stop"))]},destroy:function(){for(var a;a=this.events.pop();)a.remove();this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(b,c){var d="dojoDnd"+b,e=b.toLowerCase()+"State";a.replace(this.node,
  463. d+c,d+this[e]);this[e]=c},_addItemClass:function(b,c){a.add(b,"dojoDndItem"+c)},_removeItemClass:function(b,c){a.remove(b,"dojoDndItem"+c)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})})},"dijit/_base/wai":function(){define("dijit/_base/wai",["dojo/dom-attr","dojo/_base/lang","..","../hccss"],function(c,g,a){g.mixin(a,{hasWaiRole:function(a,c){var d=this.getWaiRole(a);return c?-1<d.indexOf(c):0<d.length},getWaiRole:function(a){return g.trim((c.get(a,
  464. "role")||"").replace("wairole:",""))},setWaiRole:function(a,e){c.set(a,"role",e)},removeWaiRole:function(a,e){var d=c.get(a,"role");d&&(e?(d=g.trim((" "+d+" ").replace(" "+e+" "," ")),c.set(a,"role",d)):a.removeAttribute("role"))},hasWaiState:function(a,c){return a.hasAttribute?a.hasAttribute("aria-"+c):!!a.getAttribute("aria-"+c)},getWaiState:function(a,c){return a.getAttribute("aria-"+c)||""},setWaiState:function(a,c,d){a.setAttribute("aria-"+c,d)},removeWaiState:function(a,c){a.removeAttribute("aria-"+
  465. c)}});return a})},"dojox/string/sprintf":function(){define("dojox/string/sprintf",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","./tokenize"],function(c,g,a,b){var e=g.getObject("string",!0,dojox);e.sprintf=function(a,b){for(var c=[],f=1;f<arguments.length;f++)c.push(arguments[f]);f=new e.sprintf.Formatter(a);return f.format.apply(f,c)};e.sprintf.Formatter=function(a){this._mapped=!1;this._format=a;this._tokens=b(a,this._re,this._parseDelim,this)};g.extend(e.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,
  466. _parseDelim:function(a,b,c,e,g,l,o){a&&(this._mapped=!0);return{mapping:a,intmapping:b,flags:c,_minWidth:e,period:g,_precision:l,specifier:o}},_specifiers:{b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(a){if(!isNaN(a.arg)){var b=parseInt(a.arg);if(0>b||127<b)throw Error("invalid character code passed to %c in sprintf");a.arg=isNaN(b)?""+b:String.fromCharCode(b)}}},s:{setMaxWidth:function(a){a.maxWidth=
  467. "."==a.period?a.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},G:{extend:["g"],toUpper:!0}},format:function(a){if(this._mapped&&"object"!=typeof a)throw Error("format requires a mapping");for(var b="",c=0,e=0,k;e<this._tokens.length;e++)if(k=this._tokens[e],"string"==typeof k)b+=k;else{if(this._mapped){if("undefined"==typeof a[k.mapping])throw Error("missing key "+k.mapping);k.arg=
  468. a[k.mapping]}else{k.intmapping&&(c=parseInt(k.intmapping)-1);if(c>=arguments.length)throw Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");k.arg=arguments[c++]}if(!k.compiled){k.compiled=!0;k.sign="";k.zeroPad=!1;k.rightJustify=!1;k.alternative=!1;for(var l={},o=k.flags.length;o--;){var m=k.flags.charAt(o);l[m]=!0;switch(m){case " ":k.sign=" ";break;case "+":k.sign="+";break;case "0":k.zeroPad=l["-"]?!1:!0;break;case "-":k.rightJustify=!0;k.zeroPad=!1;break;
  469. case "#":k.alternative=!0;break;default:throw Error("bad formatting flag '"+k.flags.charAt(o)+"'");}}k.minWidth=k._minWidth?parseInt(k._minWidth):0;k.maxWidth=-1;k.toUpper=!1;k.isUnsigned=!1;k.isInt=!1;k.isDouble=!1;k.precision=1;"."==k.period&&(k.precision=k._precision?parseInt(k._precision):0);l=this._specifiers[k.specifier];if("undefined"==typeof l)throw Error("unexpected specifier '"+k.specifier+"'");l.extend&&(g.mixin(l,this._specifiers[l.extend]),delete l.extend);g.mixin(k,l)}"function"==typeof k.setArg&&
  470. k.setArg(k);"function"==typeof k.setMaxWidth&&k.setMaxWidth(k);if("*"==k._minWidth){if(this._mapped)throw Error("* width not supported in mapped formats");k.minWidth=parseInt(arguments[c++]);if(isNaN(k.minWidth))throw Error("the argument for * width at position "+c+" is not a number in "+this._format);0>k.minWidth&&(k.rightJustify=!0,k.minWidth=-k.minWidth)}if("*"==k._precision&&"."==k.period){if(this._mapped)throw Error("* precision not supported in mapped formats");k.precision=parseInt(arguments[c++]);
  471. if(isNaN(k.precision))throw Error("the argument for * precision at position "+c+" is not a number in "+this._format);0>k.precision&&(k.precision=1,k.period="")}k.isInt?("."==k.period&&(k.zeroPad=!1),this.formatInt(k)):k.isDouble&&("."!=k.period&&(k.precision=6),this.formatDouble(k));this.fitField(k);b+=""+k.arg}return b},_zeros10:"0000000000",_spaces10:" ",formatInt:function(a){var b=parseInt(a.arg);if(!isFinite(b)){if("number"!=typeof a.arg)throw Error("format argument '"+a.arg+"' not an integer; parseInt returned "+
  472. b);b=0}if(0>b&&(a.isUnsigned||10!=a.base))b=4294967295+b+1;0>b?(a.arg=(-b).toString(a.base),this.zeroPad(a),a.arg="-"+a.arg):(a.arg=b.toString(a.base),!b&&!a.precision?a.arg="":this.zeroPad(a),a.sign&&(a.arg=a.sign+a.arg));16==a.base&&(a.alternative&&(a.arg="0x"+a.arg),a.arg=a.toUpper?a.arg.toUpperCase():a.arg.toLowerCase());8==a.base&&(a.alternative&&"0"!=a.arg.charAt(0))&&(a.arg="0"+a.arg)},formatDouble:function(b){var c=parseFloat(b.arg);if(!isFinite(c)){if("number"!=typeof b.arg)throw Error("format argument '"+
  473. b.arg+"' not a float; parseFloat returned "+c);c=0}switch(b.doubleNotation){case "e":b.arg=c.toExponential(b.precision);break;case "f":b.arg=c.toFixed(b.precision);break;case "g":b.arg=1E-4>Math.abs(c)?c.toExponential(0<b.precision?b.precision-1:b.precision):c.toPrecision(b.precision);b.alternative||(b.arg=b.arg.replace(/(\..*[^0])0*/,"$1"),b.arg=b.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw Error("unexpected double notation '"+b.doubleNotation+"'");}b.arg=b.arg.replace(/e\+(\d)$/,
  474. "e+0$1").replace(/e\-(\d)$/,"e-0$1");a("opera")&&(b.arg=b.arg.replace(/^\./,"0."));b.alternative&&(b.arg=b.arg.replace(/^(\d+)$/,"$1."),b.arg=b.arg.replace(/^(\d+)e/,"$1.e"));0<=c&&b.sign&&(b.arg=b.sign+b.arg);b.arg=b.toUpper?b.arg.toUpperCase():b.arg.toLowerCase()},zeroPad:function(a,b){b=2==arguments.length?b:a.precision;"string"!=typeof a.arg&&(a.arg=""+a.arg);for(var c=b-10;a.arg.length<c;)a.arg=a.rightJustify?a.arg+this._zeros10:this._zeros10+a.arg;c=b-a.arg.length;a.arg=a.rightJustify?a.arg+
  475. this._zeros10.substring(0,c):this._zeros10.substring(0,c)+a.arg},fitField:function(a){if(0<=a.maxWidth&&a.arg.length>a.maxWidth)return a.arg.substring(0,a.maxWidth);a.zeroPad?this.zeroPad(a,a.minWidth):this.spacePad(a)},spacePad:function(a,b){b=2==arguments.length?b:a.minWidth;"string"!=typeof a.arg&&(a.arg=""+a.arg);for(var c=b-10;a.arg.length<c;)a.arg=a.rightJustify?a.arg+this._spaces10:this._spaces10+a.arg;c=b-a.arg.length;a.arg=a.rightJustify?a.arg+this._spaces10.substring(0,c):this._spaces10.substring(0,
  476. c)+a.arg}});return e.sprintf})},"dojox/layout/ExpandoPane":function(){require({cache:{"url:dojox/layout/resources/ExpandoPane.html":'<div class="dojoxExpandoPane">\n\t<div dojoAttachPoint="titleWrapper" class="dojoxExpandoTitle">\n\t\t<div class="dojoxExpandoIcon" dojoAttachPoint="iconNode" dojoAttachEvent="onclick:toggle"><span class="a11yNode">X</span></div>\t\t\t\n\t\t<span class="dojoxExpandoTitleNode" dojoAttachPoint="titleNode">${title}</span>\n\t</div>\n\t<div class="dojoxExpandoWrapper" dojoAttachPoint="cwrapper" dojoAttachEvent="ondblclick:_trap">\n\t\t<div class="dojoxExpandoContent" dojoAttachPoint="containerNode"></div>\n\t</div>\n</div>\n'}});
  477. define("dojox/layout/ExpandoPane","dojo/_base/kernel dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/connect dojo/_base/event dojo/_base/fx dojo/dom-style dojo/dom-class dojo/dom-geometry dojo/text!./resources/ExpandoPane.html dijit/layout/ContentPane dijit/_TemplatedMixin dijit/_Contained dijit/_Container".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p){c.experimental("dojox.layout.ExpandoPane");return a("dojox.layout.ExpandoPane",[o,m,n,p],{attributeMap:g.delegate(o.prototype.attributeMap,
  478. {title:{node:"titleNode",type:"innerHTML"}}),templateString:l,easeOut:"dojo._DefaultEasing",easeIn:"dojo._DefaultEasing",duration:420,startExpanded:!0,previewOpacity:0.75,previewOnDblClick:!1,baseClass:"dijitExpandoPane",postCreate:function(){this.inherited(arguments);this._animConnects=[];this._isHorizontal=!0;g.isString(this.easeOut)&&(this.easeOut=g.getObject(this.easeOut));g.isString(this.easeIn)&&(this.easeIn=g.getObject(this.easeIn));var a="",b=!this.isLeftToRight();if(this.region){switch(this.region){case "trailing":case "right":a=
  479. b?"Left":"Right";break;case "leading":case "left":a=b?"Right":"Left";break;case "top":a="Top";break;case "bottom":a="Bottom"}f.add(this.domNode,"dojoxExpando"+a);f.add(this.iconNode,"dojoxExpandoIcon"+a);this._isHorizontal=/top|bottom/.test(this.region)}h.set(this.domNode,{overflow:"hidden",padding:0});this.connect(this.domNode,"ondblclick",this.previewOnDblClick?"preview":"toggle");this.previewOnDblClick&&this.connect(this.getParent(),"_layoutChildren",g.hitch(this,function(){this._isonlypreview=
  480. !1}))},_startupSizes:function(){this._container=this.getParent();this._closedSize=this._titleHeight=k.getMarginBox(this.titleWrapper).h;if(this.splitter){var a=this.id;b.forEach(dijit.registry.toArray(),function(b){b&&(b.child&&b.child.id==a)&&this.connect(b,"_stopDrag","_afterResize")},this)}this._currentSize=k.getContentBox(this.domNode);this._showSize=this._currentSize[this._isHorizontal?"h":"w"];this._setupAnims();this.startExpanded?this._showing=!0:(this._showing=!1,this._hideWrapper(),this._hideAnim.gotoPercent(99,
  481. !0));this._hasSizes=!0},_afterResize:function(){var a=this._currentSize;this._currentSize=k.getMarginBox(this.domNode);var b=this._currentSize[this._isHorizontal?"h":"w"];b>this._titleHeight?(this._showing||(this._showing=!this._showing,this._showEnd()),this._showSize=b,this._setupAnims()):(this._showSize=a[this._isHorizontal?"h":"w"],this._showing=!1,this._hideWrapper(),this._hideAnim.gotoPercent(89,!0))},_setupAnims:function(){b.forEach(this._animConnects,e.disconnect);var a={node:this.domNode,
  482. duration:this.duration},c={},d={},f=this._isHorizontal?"height":"width";c[f]={end:this._showSize};d[f]={end:this._closedSize};this._showAnim=j.animateProperty(g.mixin(a,{easing:this.easeIn,properties:c}));this._hideAnim=j.animateProperty(g.mixin(a,{easing:this.easeOut,properties:d}));this._animConnects=[e.connect(this._showAnim,"onEnd",this,"_showEnd"),e.connect(this._hideAnim,"onEnd",this,"_hideEnd")]},preview:function(){this._showing||(this._isonlypreview=!this._isonlypreview);this.toggle()},toggle:function(){this._showing?
  483. (this._hideWrapper(),this._showAnim&&this._showAnim.stop(),this._hideAnim.play()):(this._hideAnim&&this._hideAnim.stop(),this._showAnim.play());this._showing=!this._showing},_hideWrapper:function(){f.add(this.domNode,"dojoxExpandoClosed");h.set(this.cwrapper,{visibility:"hidden",opacity:"0",overflow:"hidden"})},_showEnd:function(){h.set(this.cwrapper,{opacity:0,visibility:"visible"});j.anim(this.cwrapper,{opacity:this._isonlypreview?this.previewOpacity:1},227);f.remove(this.domNode,"dojoxExpandoClosed");
  484. this._isonlypreview?(this._previewShowing=!0,this.resize()):setTimeout(g.hitch(this._container,"layout"),15)},_hideEnd:function(){this._isonlypreview?this._previewShowing=!1:setTimeout(g.hitch(this._container,"layout"),25);this._isonlypreview=!1},resize:function(a){this._hasSizes||this._startupSizes(a);var b=k.getMarginBox(this.domNode);this._contentBox={w:a&&"w"in a?a.w:b.w,h:(a&&"h"in a?a.h:b.h)-this._titleHeight};h.set(this.containerNode,"height",this._contentBox.h+"px");a&&k.setMarginBox(this.domNode,
  485. a);this._layoutChildren()},_trap:function(a){d.stop(a)}})})},"dijit/form/_FormWidget":function(){define("dijit/form/_FormWidget","dojo/_base/declare dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),function(c,g,a,b,e,d,j){g.isAsync||a(0,function(){require(["dijit/form/_FormValueWidget"])});return c("dijit.form._FormWidget",[b,d,e,j],{setDisabled:function(a){g.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.",
  486. "","2.0");this.set("disabled",a)},setValue:function(a){g.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated. Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){g.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name?'name="'+this.name.replace(/'/g,"&quot;")+'"':"";this.inherited(arguments)},_setTypeAttr:null})})},"dojo/DeferredList":function(){define("dojo/DeferredList",
  487. ["./_base/kernel","./_base/Deferred","./_base/array"],function(c,g,a){c.DeferredList=function(b,c,d,j){var h=[];g.call(this);var f=this;0===b.length&&!c&&this.resolve([0,[]]);var k=0;a.forEach(b,function(a,g){function m(a,c){h[g]=[a,c];k++;k===b.length&&f.resolve(h)}a.then(function(a){c?f.resolve([g,a]):m(!0,a)},function(a){d?f.reject(a):m(!1,a);if(j)return null;throw a;})})};c.DeferredList.prototype=new g;c.DeferredList.prototype.gatherResults=function(b){b=new c.DeferredList(b,!1,!0,!1);b.addCallback(function(b){var c=
  488. [];a.forEach(b,function(a){c.push(a[1])});return c});return b};return c.DeferredList})},"dojo/dnd/common":function(){define("dojo/dnd/common",["../main"],function(c){c.getObject("dnd",!0,c);c.dnd.getCopyKeyState=c.isCopyKey;c.dnd._uniqueId=0;c.dnd.getUniqueId=function(){var g;do g=c._scopeName+"Unique"+ ++c.dnd._uniqueId;while(c.byId(g));return g};c.dnd._empty={};c.dnd.isFormElement=function(c){c=c.target;3==c.nodeType&&(c=c.parentNode);return 0<=" button textarea input select option ".indexOf(" "+
  489. c.tagName.toLowerCase()+" ")};return c.dnd})},"dijit/CheckedMenuItem":function(){require({cache:{"url:dijit/templates/CheckedMenuItem.html":'<tr class="dijitReset dijitMenuItem" data-dojo-attach-point="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\t\tdata-dojo-attach-event="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitMenuItemIcon dijitCheckedMenuItemIcon" data-dojo-attach-point="iconNode"/>\n\t\t<span class="dijitCheckedMenuItemIconChar">&#10003;</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" data-dojo-attach-point="containerNode,labelNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" data-dojo-attach-point="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&#160;</td>\n</tr>\n'}});
  490. define("dijit/CheckedMenuItem",["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(c,g,a,b){return c("dijit.CheckedMenuItem",a,{templateString:b,checked:!1,_setCheckedAttr:function(a){g.toggle(this.domNode,"dijitCheckedMenuItemChecked",a);this.domNode.setAttribute("aria-checked",a);this._set("checked",a)},iconClass:"",onChange:function(){},_onClick:function(a){this.disabled||(this.set("checked",!this.checked),this.onChange(this.checked));
  491. this.inherited(arguments)}})})},"dijit/Viewport":function(){define("dijit/Viewport","dojo/Evented dojo/on dojo/ready dojo/_base/sniff dojo/_base/window dojo/window".split(" "),function(c,g,a,b,e,d){var j=new c,h;a(200,function(){var a=d.getBox();j._rlh=g(e.global,"resize",function(){var b=d.getBox();a.h==b.h&&a.w==b.w||(a=b,j.emit("resize"))});if(8==b("ie")){var c=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=c&&(c=screen.deviceXDPI,j.emit("resize"))},500)}b("ios")&&(g(document,"focusin",
  492. function(a){h=a.target}),g(document,"focusout",function(){h=null}))});j.getEffectiveBox=function(a){var a=d.getBox(a),c=h&&h.tagName&&h.tagName.toLowerCase();if(b("ios")&&h&&!h.readOnly&&("textarea"==c||"input"==c&&/^(color|email|number|password|search|tel|text|url)$/.test(h.type)))a.h*=0==orientation||180==orientation?0.66:0.4,c=h.getBoundingClientRect(),a.h=Math.max(a.h,c.top+c.height);return a};return j})},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang",
  493. "dojo/window","../place",".."],function(c,g,a,b,e){e.getViewport=function(){return a.getBox()};e.placeOnScreen=b.at;e.placeOnScreenAroundElement=function(a,c,e,f){var k;if(g.isArray(e))k=e;else{k=[];for(var l in e)k.push({aroundCorner:l,corner:e[l]})}return b.around(a,c,k,!0,f)};e.placeOnScreenAroundNode=e.placeOnScreenAroundElement;e.placeOnScreenAroundRectangle=e.placeOnScreenAroundElement;e.getPopupAroundAlignment=function(a,b){var e={};c.forEach(a,function(a){var c=b;switch(a){case "after":e[b?
  494. "BR":"BL"]=b?"BL":"BR";break;case "before":e[b?"BL":"BR"]=b?"BR":"BL";break;case "below-alt":c=!c;case "below":e[c?"BL":"BR"]=c?"TL":"TR";e[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=!c;default:e[c?"TL":"TR"]=c?"BL":"BR",e[c?"TR":"TL"]=c?"BR":"BL"}});return e};return e})},"dijit/MenuSeparator":function(){require({cache:{"url:dijit/templates/MenuSeparator.html":'<tr class="dijitMenuSeparator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>'}});
  495. define("dijit/MenuSeparator","dojo/_base/declare dojo/dom ./_WidgetBase ./_TemplatedMixin ./_Contained dojo/text!./templates/MenuSeparator.html".split(" "),function(c,g,a,b,e,d){return c("dijit.MenuSeparator",[a,b,e],{templateString:d,buildRendering:function(){this.inherited(arguments);g.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dojo/require":function(){define("dojo/require",["./_base/loader"],function(c){return{dynamic:0,normalize:function(c){return c},load:c.require}})},
  496. "dojox/string/Builder":function(){define("dojox/string/Builder",["dojo/_base/lang"],function(c){c.getObject("string",!0,dojox).Builder=function(c){var a="";this.length=0;this.append=function(b){if(1<arguments.length){var c="";switch(arguments.length){case 9:c=""+arguments[8]+c;case 8:c=""+arguments[7]+c;case 7:c=""+arguments[6]+c;case 6:c=""+arguments[5]+c;case 5:c=""+arguments[4]+c;case 4:c=""+arguments[3]+c;case 3:c=""+arguments[2]+c;case 2:a+=""+arguments[0]+arguments[1]+c;break;default:for(var d=
  497. 0;d<arguments.length;)c+=arguments[d++];a+=c}}else a+=b;this.length=a.length;return this};this.concat=function(a){return this.append.apply(this,arguments)};this.appendArray=function(a){return this.append.apply(this,a)};this.clear=function(){a="";this.length=0;return this};this.replace=function(b,c){a=a.replace(b,c);this.length=a.length;return this};this.remove=function(b,c){void 0===c&&(c=a.length);if(0==c)return this;a=a.substr(0,b)+a.substr(b+c);this.length=a.length;return this};this.insert=function(b,
  498. c){a=0==b?c+a:a.slice(0,b)+c+a.slice(b);this.length=a.length;return this};this.toString=function(){return a};c&&this.append(c)};return dojox.string.Builder})},"url:dijit/layout/templates/ScrollingTabController.html":'<div class="dijitTabListContainer-${tabPosition}" style="visibility:hidden">\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerMenuButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_menuBtn"\n\t\t\tdata-dojo-props="containerId: \'${containerId}\', iconClass: \'dijitTabStripMenuIcon\',\n\t\t\t\t\tdropDownPosition: [\'below-alt\', \'above-alt\']"\n\t\t\tdata-dojo-attach-point="_menuBtn" showLabel="false" title="">&#9660;</div>\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_leftBtn"\n\t\t\tdata-dojo-props="iconClass:\'dijitTabStripSlideLeftIcon\', showLabel:false, title:\'\'"\n\t\t\tdata-dojo-attach-point="_leftBtn" data-dojo-attach-event="onClick: doSlideLeft">&#9664;</div>\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerButton"\n\t\t\tclass="tabStripButton-${tabPosition}"\n\t\t\tid="${id}_rightBtn"\n\t\t\tdata-dojo-props="iconClass:\'dijitTabStripSlideRightIcon\', showLabel:false, title:\'\'"\n\t\t\tdata-dojo-attach-point="_rightBtn" data-dojo-attach-event="onClick: doSlideRight">&#9654;</div>\n\t<div class=\'dijitTabListWrapper\' data-dojo-attach-point=\'tablistWrapper\'>\n\t\t<div role=\'tablist\' data-dojo-attach-event=\'onkeypress:onkeypress\'\n\t\t\t\tdata-dojo-attach-point=\'containerNode\' class=\'nowrapTabStrip\'></div>\n\t</div>\n</div>',
  499. "dojox/fx":function(){define("dojox/fx",["./fx/_base"],function(c){return c})},"dijit/_base/focus":function(){define("dijit/_base/focus","dojo/_base/array dojo/dom dojo/_base/lang dojo/topic dojo/_base/window ../focus ..".split(" "),function(c,g,a,b,e,d,j){a.mixin(j,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return j.getBookmark().isCollapsed},getBookmark:function(){var a,b,c=e.doc.selection,g=d.curNode;if(e.global.getSelection){if(c=e.global.getSelection())if(c.isCollapsed){if(a=g?g.tagName:
  500. "")if(a=a.toLowerCase(),"textarea"==a||"input"==a&&(!g.type||"text"==g.type.toLowerCase()))return c={start:g.selectionStart,end:g.selectionEnd,node:g,pRange:!0},{isCollapsed:c.end<=c.start,mark:c};a={isCollapsed:!0};c.rangeCount&&(a.mark=c.getRangeAt(0).cloneRange())}else b=c.getRangeAt(0),a={isCollapsed:!1,mark:b.cloneRange()}}else if(c){a=g?g.tagName:"";a=a.toLowerCase();if(g&&a&&("button"==a||"textarea"==a||"input"==a)){if(c.type&&"none"==c.type.toLowerCase())return{isCollapsed:!0,mark:null};b=
  501. c.createRange();return{isCollapsed:b.text&&b.text.length?!1:!0,mark:{range:b,pRange:!0}}}a={};try{b=c.createRange(),a.isCollapsed=!("Text"==c.type?b.htmlText.length:b.length)}catch(j){return a.isCollapsed=!0,a}if("CONTROL"==c.type.toUpperCase())if(b.length){a.mark=[];c=0;for(g=b.length;c<g;)a.mark.push(b.item(c++))}else a.isCollapsed=!0,a.mark=null;else a.mark=b.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(b){var d=
  502. e.doc;if(b=b.mark)if(e.global.getSelection)(d=e.global.getSelection())&&d.removeAllRanges?b.pRange?(d=b.node,d.selectionStart=b.start,d.selectionEnd=b.end):(d.removeAllRanges(),d.addRange(b)):console.warn("No idea how to restore selection for this browser!");else if(d.selection&&b){var g;b.pRange?g=b.range:a.isArray(b)?(g=d.body.createControlRange(),c.forEach(b,function(a){g.addElement(a)})):(g=d.body.createTextRange(),g.moveToBookmark(b));g.select()}},getFocus:function(a,b){var c=!d.curNode||a&&
  503. g.isDescendant(d.curNode,a.domNode)?j._prevFocus:d.curNode;return{node:c,bookmark:c&&c==d.curNode&&e.withGlobal(b||e.global,j.getBookmark),openedForWindow:b}},_activeStack:[],registerIframe:function(a){return d.registerIframe(a)},unregisterIframe:function(a){a&&a.remove()},registerWin:function(a,b){return d.registerWin(a,b)},unregisterWin:function(a){a&&a.remove()}});d.focus=function(a){if(a){var b="node"in a?a.node:a,c=a.bookmark,a=a.openedForWindow,g=c?c.isCollapsed:!1;if(b){var o="iframe"==b.tagName.toLowerCase()?
  504. b.contentWindow:b;if(o&&o.focus)try{o.focus()}catch(m){}d._onFocusNode(b)}if(c&&e.withGlobal(a||e.global,j.isCollapsed)&&!g){a&&a.focus();try{e.withGlobal(a||e.global,j.moveToBookmark,null,[c])}catch(n){}}}};d.watch("curNode",function(a,c,d){j._curFocus=d;j._prevFocus=c;d&&b.publish("focusNode",d)});d.watch("activeStack",function(a,b,c){j._activeStack=c});d.on("widget-blur",function(a,c){b.publish("widgetBlur",a,c)});d.on("widget-focus",function(a,c){b.publish("widgetFocus",a,c)});return j})},"dijit/tree/dndSource":function(){define("dijit/tree/dndSource",
  505. "dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/_base/lang dojo/on dojo/touch dojo/topic dojo/dnd/Manager ./_dndSelector".split(" "),function(c,g,a,b,e,d,j,h,f,k,l){return a("dijit.tree.dndSource",l,{isSource:!0,accept:["text","treeNode"],copyOnly:!1,dragThreshold:5,betweenThreshold:0,constructor:function(a,c){c||(c={});d.mixin(this,c);this.isSource="undefined"==typeof c.isSource?!0:c.isSource;var e=c.accept instanceof Array?c.accept:["text","treeNode"];
  506. this.accept=null;if(e.length){this.accept={};for(var g=0;g<e.length;++g)this.accept[e[g]]=1}this.mouseDown=this.isDragging=!1;this.targetBox=this.targetAnchor=null;this.dropPosition="";this._lastY=this._lastX=0;this.sourceState="";this.isSource&&b.add(this.node,"dojoDndSource");this.targetState="";this.accept&&b.add(this.node,"dojoDndTarget");this.topics=[f.subscribe("/dnd/source/over",d.hitch(this,"onDndSourceOver")),f.subscribe("/dnd/start",d.hitch(this,"onDndStart")),f.subscribe("/dnd/drop",d.hitch(this,
  507. "onDndDrop")),f.subscribe("/dnd/cancel",d.hitch(this,"onDndCancel"))]},checkAcceptance:function(){return!0},copyState:function(a){return this.copyOnly||a},destroy:function(){this.inherited(arguments);for(var a;a=this.topics.pop();)a.remove();this.targetAnchor=null},_onDragMouse:function(a){var b=k.manager(),c=this.targetAnchor,d=this.current,f=this.dropPosition,g="Over";if(d&&0<this.betweenThreshold){if(!this.targetBox||c!=d)this.targetBox=e.position(d.rowNode,!0);a.pageY-this.targetBox.y<=this.betweenThreshold?
  508. g="Before":a.pageY-this.targetBox.y>=this.targetBox.h-this.betweenThreshold&&(g="After")}if(d!=c||g!=f){c&&this._removeItemClass(c.rowNode,f);d&&this._addItemClass(d.rowNode,g);if(d)if(d==this.tree.rootNode&&"Over"!=g)b.canDrop(!1);else{a=!1;if(b.source==this)for(var j in this.selection)if(this.selection[j].item===d.item){a=!0;break}a?b.canDrop(!1):this.checkItemAcceptance(d.rowNode,b.source,g.toLowerCase())&&!this._isParentChildDrop(b.source,d.rowNode)?b.canDrop(!0):b.canDrop(!1)}else b.canDrop(!1);
  509. this.targetAnchor=d;this.dropPosition=g}},onMouseMove:function(a){if(!(this.isDragging&&"Disabled"==this.targetState)){this.inherited(arguments);var b=k.manager();if(this.isDragging)this._onDragMouse(a);else if(this.mouseDown&&this.isSource&&(Math.abs(a.pageX-this._lastX)>=this.dragThreshold||Math.abs(a.pageY-this._lastY)>=this.dragThreshold)){var d=this.getSelectedTreeNodes();if(d.length){if(1<d.length){var e=this.selection,f=0,j=[],h,l;a:for(;h=d[f++];){for(l=h.getParent();l&&l!==this.tree;l=l.getParent())if(e[l.id])continue a;
  510. j.push(h)}d=j}d=c.map(d,function(a){return a.domNode});b.startDrag(this,d,this.copyState(g.isCopyKey(a)))}}}},onMouseDown:function(a){this.mouseDown=!0;this.mouseButton=a.button;this._lastX=a.pageX;this._lastY=a.pageY;this.inherited(arguments)},onMouseUp:function(a){this.mouseDown&&(this.mouseDown=!1,this.inherited(arguments))},onMouseOut:function(){this.inherited(arguments);this._unmarkTargetAnchor()},checkItemAcceptance:function(){return!0},onDndSourceOver:function(a){this!=a?(this.mouseDown=!1,
  511. this._unmarkTargetAnchor()):this.isDragging&&k.manager().canDrop(!1)},onDndStart:function(a,b,c){this.isSource&&this._changeState("Source",this==a?c?"Copied":"Moved":"");b=this.checkAcceptance(a,b);this._changeState("Target",b?"":"Disabled");this==a&&k.manager().overSource(this);this.isDragging=!0},itemCreator:function(a){return c.map(a,function(a){return{id:a.id,name:a.textContent||a.innerText||""}})},onDndDrop:function(a,b,d){if("Over"==this.containerState){var e=this.tree,f=e.model,g=this.targetAnchor;
  512. this.isDragging=!1;var j,h;j=g&&g.item||e.item;"Before"==this.dropPosition||"After"==this.dropPosition?(j=g.getParent()&&g.getParent().item||e.item,h=g.getIndexInParent(),"After"==this.dropPosition&&(h=g.getIndexInParent()+1)):j=g&&g.item||e.item;var k;c.forEach(b,function(e,l){var p=a.getItem(e.id);if(-1!=c.indexOf(p.type,"treeNode"))var E=p.data,I=E.item,L=E.getParent().item;a==this?("number"==typeof h&&j==L&&E.getIndexInParent()<h&&(h-=1),f.pasteItem(I,L,j,d,h)):f.isItem(I)?f.pasteItem(I,L,j,d,
  513. h):(k||(k=this.itemCreator(b,g.rowNode,a)),f.newItem(k[l],j,h))},this);this.tree._expandNode(g)}this.onDndCancel()},onDndCancel:function(){this._unmarkTargetAnchor();this.mouseDown=this.isDragging=!1;delete this.mouseButton;this._changeState("Source","");this._changeState("Target","")},onOverEvent:function(){this.inherited(arguments);k.manager().overSource(this)},onOutEvent:function(){this._unmarkTargetAnchor();var a=k.manager();this.isDragging&&a.canDrop(!1);a.outSource(this);this.inherited(arguments)},
  514. _isParentChildDrop:function(a,b){if(!a.tree||a.tree!=this.tree)return!1;for(var c=a.tree.domNode,d=a.selection,e=b.parentNode;e!=c&&!d[e.id];)e=e.parentNode;return e.id&&d[e.id]},_unmarkTargetAnchor:function(){this.targetAnchor&&(this._removeItemClass(this.targetAnchor.rowNode,this.dropPosition),this.dropPosition=this.targetBox=this.targetAnchor=null)},_markDndStatus:function(a){this._changeState("Source",a?"Copied":"Moved")}})})},"dijit/a11y":function(){define("dijit/a11y","dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/_base/sniff ./main".split(" "),
  515. function(c,g,a,b,e,d,j){var h={_isElementShown:function(c){var d=b.get(c);return"hidden"!=d.visibility&&"collapsed"!=d.visibility&&"none"!=d.display&&"hidden"!=a.get(c,"type")},hasDefaultTabStop:function(b){switch(b.nodeName.toLowerCase()){case "a":return a.has(b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var c;try{var d=b.contentDocument;if("designMode"in d&&"on"==d.designMode)return!0;c=d.body}catch(e){try{c=b.contentWindow.document.body}catch(g){return!1}}return c&&
  516. ("true"==c.contentEditable||c.firstChild&&"true"==c.firstChild.contentEditable);default:return"true"==b.contentEditable}},effectiveTabIndex:function(b){return a.get(b,"disabled")?void 0:a.has(b,"tabIndex")?+a.get(b,"tabIndex"):h.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(a){return 0<=h.effectiveTabIndex(a)},isFocusable:function(a){return-1<=h.effectiveTabIndex(a)},_getTabNavigable:function(b){function c(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&&
  517. a.name&&a.name.toLowerCase()}var e,g,j,n,p,t,s={},q=h._isElementShown,v=h.effectiveTabIndex,u=function(b){for(b=b.firstChild;b;b=b.nextSibling)if(!(1!=b.nodeType||9>=d("ie")&&"HTML"!==b.scopeName||!q(b))){var f=v(b);if(0<=f){if(0==f)e||(e=b),g=b;else if(0<f){if(!j||f<n)n=f,j=b;if(!p||f>=t)t=f,p=b}f=c(b);a.get(b,"checked")&&f&&(s[f]=b)}"SELECT"!=b.nodeName.toUpperCase()&&u(b)}};q(b)&&u(b);return{first:s[c(e)]||e,last:s[c(g)]||g,lowest:s[c(j)]||j,highest:s[c(p)]||p}},getFirstInTabbingOrder:function(a,
  518. b){var c=h._getTabNavigable(g.byId(a,b));return c.lowest?c.lowest:c.first},getLastInTabbingOrder:function(a,b){var c=h._getTabNavigable(g.byId(a,b));return c.last?c.last:c.highest}};e.mixin(j,h);return h})},"dijit/form/_ToggleButtonMixin":function(){define("dijit/form/_ToggleButtonMixin",["dojo/_base/declare","dojo/dom-attr"],function(c,g){return c("dijit.form._ToggleButtonMixin",null,{checked:!1,_aria_attr:"aria-pressed",_onClick:function(a){var b=this.checked;this._set("checked",!b);var c=this.inherited(arguments);
  519. this.set("checked",c?this.checked:b);return c},_setCheckedAttr:function(a,b){this._set("checked",a);g.set(this.focusNode||this.domNode,"checked",a);(this.focusNode||this.domNode).setAttribute(this._aria_attr,a?"true":"false");this._handleOnChange(a,b)},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}})})},"dojo/dnd/Container":function(){define("dojo/dnd/Container",["../main","../Evented","./common","../parser"],function(c,g){c.declare("dojo.dnd.Container",g,{skipForm:!1,
  520. constructor:function(a,b){this.node=c.byId(a);b||(b={});this.creator=b.creator||null;this.skipForm=b.skipForm;this.parent=b.dropParent&&c.byId(b.dropParent);this.map={};this.current=null;this.containerState="";c.addClass(this.node,"dojoDndContainer");(!b||!b._skipStartup)&&this.startup();this.events=[c.connect(this.node,"onmouseover",this,"onMouseOver"),c.connect(this.node,"onmouseout",this,"onMouseOut"),c.connect(this.node,"ondragstart",this,"onSelectStart"),c.connect(this.node,"onselectstart",this,
  521. "onSelectStart")]},creator:function(){},getItem:function(a){return this.map[a]},setItem:function(a,b){this.map[a]=b},delItem:function(a){delete this.map[a]},forInItems:function(a,b){var b=b||c.global,e=this.map,d=c.dnd._empty,g;for(g in e)g in d||a.call(b,e[g],g,this);return b},clearItems:function(){this.map={}},getAllNodes:function(){return c.query("> .dojoDndItem",this.parent)},sync:function(){var a={};this.getAllNodes().forEach(function(b){if(b.id){var e=this.getItem(b.id);if(e){a[b.id]=e;return}}else b.id=
  522. c.dnd.getUniqueId();var e=b.getAttribute("dndType"),d=b.getAttribute("dndData");a[b.id]={data:d||b.innerHTML,type:e?e.split(/\s*,\s*/):["text"]}},this);this.map=a;return this},insertNodes:function(a,b,c){this.parent.firstChild?b?c||(c=this.parent.firstChild):c&&(c=c.nextSibling):c=null;if(c)for(b=0;b<a.length;++b){var d=this._normalizedCreator(a[b]);this.setItem(d.node.id,{data:d.data,type:d.type});this.parent.insertBefore(d.node,c)}else for(b=0;b<a.length;++b)d=this._normalizedCreator(a[b]),this.setItem(d.node.id,
  523. {data:d.data,type:d.type}),this.parent.appendChild(d.node);return this},destroy:function(){c.forEach(this.events,c.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(a,b,c){a._skipStartup=!0;return new c(b,a)},startup:function(){if(!this.parent&&(this.parent=this.node,"table"==this.parent.tagName.toLowerCase())){var a=this.parent.getElementsByTagName("tbody");a&&a.length&&(this.parent=a[0])}this.defaultCreator=c.dnd._defaultCreator(this.parent);this.sync()},
  524. onMouseOver:function(a){for(var b=a.relatedTarget;b&&b!=this.node;)try{b=b.parentNode}catch(c){b=null}b||(this._changeState("Container","Over"),this.onOverEvent());b=this._getChildByEvent(a);this.current!=b&&(this.current&&this._removeItemClass(this.current,"Over"),b&&this._addItemClass(b,"Over"),this.current=b)},onMouseOut:function(a){for(a=a.relatedTarget;a;){if(a==this.node)return;try{a=a.parentNode}catch(b){a=null}}this.current&&(this._removeItemClass(this.current,"Over"),this.current=null);this._changeState("Container",
  525. "");this.onOutEvent()},onSelectStart:function(a){(!this.skipForm||!c.dnd.isFormElement(a))&&c.stopEvent(a)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(a,b){var e="dojoDnd"+a,d=a.toLowerCase()+"State";c.replaceClass(this.node,e+b,e+this[d]);this[d]=b},_addItemClass:function(a,b){c.addClass(a,"dojoDndItem"+b)},_removeItemClass:function(a,b){c.removeClass(a,"dojoDndItem"+b)},_getChildByEvent:function(a){if(a=a.target)for(var b=a.parentNode;b;a=b,b=a.parentNode)if(b==this.parent&&
  526. c.hasClass(a,"dojoDndItem"))return a;return null},_normalizedCreator:function(a,b){var e=(this.creator||this.defaultCreator).call(this,a,b);c.isArray(e.type)||(e.type=["text"]);e.node.id||(e.node.id=c.dnd.getUniqueId());c.addClass(e.node,"dojoDndItem");return e}});c.dnd._createNode=function(a){return!a?c.dnd._createSpan:function(b){return c.create(a,{innerHTML:b})}};c.dnd._createTrTd=function(a){var b=c.create("tr");c.create("td",{innerHTML:a},b);return b};c.dnd._createSpan=function(a){return c.create("span",
  527. {innerHTML:a})};c.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};c.dnd._defaultCreator=function(a){var a=a.tagName.toLowerCase(),b="tbody"==a||"thead"==a?c.dnd._createTrTd:c.dnd._createNode(c.dnd._defaultCreatorNodes[a]);return function(a,d){var g=a&&c.isObject(a),h,f;g&&a.tagName&&a.nodeType&&a.getAttribute?(h=a.getAttribute("dndData")||a.innerHTML,g=(g=a.getAttribute("dndType"))?g.split(/\s*,\s*/):["text"],f=a):(h=g&&a.data?a.data:a,g=g&&a.type?a.type:["text"],f=("avatar"==d?c.dnd._createSpan:
  528. b)(String(h)));f.id||(f.id=c.dnd.getUniqueId());return{node:f,data:h,type:g}}};return c.dnd.Container})},"dijit/_Widget":function(){define("dijit/_Widget","dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/query dojo/ready ./registry ./_WidgetBase ./_OnDijitClickMixin ./_FocusMixin dojo/uacss ./hccss".split(" "),function(c,g,a,b,e,d,j,h,f,k,l,o){function m(){}function n(b){return function(c,e,f,g){return c&&"string"==typeof e&&c[e]==m?c.on(e.substring(2).toLowerCase(),
  529. d.hitch(f,g)):b.apply(a,arguments)}}c.around(a,"connect",n);e.connect&&c.around(e,"connect",n);c=b("dijit._Widget",[k,l,o],{onClick:m,onDblClick:m,onKeyDown:m,onKeyPress:m,onKeyUp:m,onMouseDown:m,onMouseMove:m,onMouseOut:m,onMouseOver:m,onMouseLeave:m,onMouseEnter:m,onMouseUp:m,constructor:function(a){this._toConnect={};for(var b in a)this[b]===m&&(this._toConnect[b.replace(/^on/,"").toLowerCase()]=a[b],delete a[b])},postCreate:function(){this.inherited(arguments);for(var a in this._toConnect)this.on(a,
  530. this._toConnect[a]);delete this._toConnect},on:function(b,c){return this[this._onMap(b)]===m?a.connect(this.domNode,b.toLowerCase(),this,c):this.inherited(arguments)},_setFocusedAttr:function(a){this._focused=a;this._set("focused",a)},setAttribute:function(a,b){e.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,b)},attr:function(a,b){if(g.isDebug){var c=arguments.callee._ach||(arguments.callee._ach={}),d=(arguments.callee.caller||"unknown caller").toString();
  531. c[d]||(e.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+d,"","2.0"),c[d]=!0)}return 2<=arguments.length||"object"===typeof a?this.set.apply(this,arguments):this.get(a)},getDescendants:function(){e.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?j("[widgetId]",this.containerNode).map(f.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},
  532. onClose:function(){return!0}});e.isAsync||h(0,function(){require(["dijit/_base"])});return c})},"dojo/touch":function(){define("dojo/touch","./_base/kernel ./aspect ./dom ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(c,g,a,b,e,d,j,h){function f(a,c){return k?function(d,e){var f=b(d,c,e),g=b(d,a,function(a){(!o||(new Date).getTime()>o+1E3)&&e.call(this,a)});return{remove:function(){f.remove();g.remove()}}}:function(c,d){return b(c,a,d)}}var k=e("touch"),l=!1;e("ios")&&(g=navigator.userAgent.match(/OS ([\d_]+)/)?
  533. RegExp.$1:"1",l=5>parseFloat(g.replace(/_/,".").replace(/_/g,"")));var o,m,n;k&&(j(function(){n=h.body();h.doc.addEventListener("touchstart",function(a){o=(new Date).getTime();var c=n;n=a.target;b.emit(c,"dojotouchout",{target:c,relatedTarget:n,bubbles:!0});b.emit(n,"dojotouchover",{target:n,relatedTarget:c,bubbles:!0})},!0);b(h.doc,"touchmove",function(a){o=(new Date).getTime();if((a=h.doc.elementFromPoint(a.pageX-(l?0:h.global.pageXOffset),a.pageY-(l?0:h.global.pageYOffset)))&&n!==a)b.emit(n,"dojotouchout",
  534. {target:n,relatedTarget:a,bubbles:!0}),b.emit(a,"dojotouchover",{target:a,relatedTarget:n,bubbles:!0}),n=a})}),m=function(c,d){return b(h.doc,"touchmove",function(b){if(c===h.doc||a.isDescendant(n,c))b.target=n,d.call(this,b)})});d={press:f("mousedown","touchstart"),move:f("mousemove",m),release:f("mouseup","touchend"),cancel:f(d.leave,"touchcancel"),over:f("mouseover","dojotouchover"),out:f("mouseout","dojotouchout"),enter:d._eventHandler(f("mouseover","dojotouchover")),leave:d._eventHandler(f("mouseout",
  535. "dojotouchout"))};return c.touch=d})},"dojo/fx":function(){define("dojo/fx","./_base/lang ./Evented ./_base/kernel ./_base/array ./_base/connect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(c,g,a,b,e,d,j,h,f,k,l){a.isAsync||k(0,function(){l(["./fx/Toggler"])});var a=a.fx={},k={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}},o=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=
  536. 0;b.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.delay)},this)};o.prototype=new g;c.extend(o,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){e.disconnect(this._onAnimateCtx);e.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=e.connect(this._current,"onAnimate",this,"_onAnimate"),this._onEndCtx=
  537. e.connect(this._current,"onEnd",this,"_onEnd"),this._current.play(0,!0))},play:function(a,b){this._current||(this._current=this._animations[this._index=0]);if(!b&&"playing"==this._current.status())return this;var c=e.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin")}),d=e.connect(this._current,"onBegin",this,function(a){this._fire("onBegin",arguments)}),f=e.connect(this._current,"onPlay",this,function(a){this._fire("onPlay",arguments);e.disconnect(c);e.disconnect(d);e.disconnect(f)});
  538. this._onAnimateCtx&&e.disconnect(this._onAnimateCtx);this._onAnimateCtx=e.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&e.disconnect(this._onEndCtx);this._onEndCtx=e.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=e.connect(this._current,"onPause",this,function(b){this._fire("onPause",arguments);e.disconnect(a)});this._current.pause()}return this},gotoPercent:function(a,c){this.pause();
  539. var d=this.duration*a;this._current=null;b.some(this._animations,function(a){if(a.duration<=d)return this._current=a,!0;d-=a.duration;return!1});this._current&&this._current.gotoPercent(d/this._current.duration,c);return this},stop:function(a){if(this._current){if(a){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var b=e.connect(this._current,"onStop",this,function(a){this._fire("onStop",arguments);e.disconnect(b)});
  540. this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&e.disconnect(this._onAnimateCtx);this._onEndCtx&&e.disconnect(this._onEndCtx)}});c.extend(o,k);a.chain=function(a){return new o(a)};var m=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;b.forEach(a,function(a){var b=a.duration;a.delay&&(b+=a.delay);this.duration<b&&(this.duration=b);this._connects.push(e.connect(a,"onEnd",
  541. this,"_onEnd"))},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var c=this;b.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(a){c._connects.push(e.connect(c._pseudoAnimation,a,function(){c._fire(a,arguments)}))})};c.extend(m,{_doAction:function(a,c){b.forEach(this._animations,function(b){b[a].apply(b,c)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=
  542. this._pseudoAnimation;c[a].apply(c,b)},play:function(a,b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,c){var d=this.duration*a;b.forEach(this._animations,function(a){a.gotoPercent(a.duration<d?1:d/a.duration,c)});this._call("gotoPercent",arguments);return this},stop:function(a){this._doAction("stop",arguments);this._call("stop",arguments);
  543. return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){b.forEach(this._connects,e.disconnect)}});c.extend(m,k);a.combine=function(a){return new m(a)};a.wipeIn=function(a){var b=a.node=j.byId(a.node),f=b.style,g,a=d.animateProperty(c.mixin({properties:{height:{start:function(){g=f.overflow;f.overflow="hidden";if("hidden"==f.visibility||"none"==f.display)return f.height="1px",f.display="",f.visibility="",1;var a=h.get(b,"height");return Math.max(a,1)},end:function(){return b.scrollHeight}}}},
  544. a)),k=function(){f.height="auto";f.overflow=g};e.connect(a,"onStop",k);e.connect(a,"onEnd",k);return a};a.wipeOut=function(a){var b=(a.node=j.byId(a.node)).style,f,a=d.animateProperty(c.mixin({properties:{height:{end:1}}},a));e.connect(a,"beforeBegin",function(){f=b.overflow;b.overflow="hidden";b.display=""});var g=function(){b.overflow=f;b.height="auto";b.display="none"};e.connect(a,"onStop",g);e.connect(a,"onEnd",g);return a};a.slideTo=function(a){var b=null,g=null,k,l=a.node=j.byId(a.node);k=function(){var a=
  545. h.getComputedStyle(l),c=a.position;b="absolute"==c?l.offsetTop:parseInt(a.top)||0;g="absolute"==c?l.offsetLeft:parseInt(a.left)||0;"absolute"!=c&&"relative"!=c&&(a=f.position(l,!0),b=a.y,g=a.x,l.style.position="absolute",l.style.top=b+"px",l.style.left=g+"px")};k();a=d.animateProperty(c.mixin({properties:{top:a.top||0,left:a.left||0}},a));e.connect(a,"beforeBegin",a,k);return a};return a})},"dijit/_DialogMixin":function(){define("dijit/_DialogMixin",["dojo/_base/declare","./a11y"],function(c,g){return c("dijit._DialogMixin",
  546. null,{execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=g._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}})})},"dijit/Tree":function(){require({cache:{"url:dijit/templates/TreeNode.html":'<div class="dijitTreeNode" role="presentation"\n\t><div data-dojo-attach-point="rowNode" class="dijitTreeRow" role="presentation" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick"\n\t\t><img src="${_blankGif}" alt="" data-dojo-attach-point="expandoNode" class="dijitTreeExpando" role="presentation"\n\t\t/><span data-dojo-attach-point="expandoNodeText" class="dijitExpandoText" role="presentation"\n\t\t></span\n\t\t><span data-dojo-attach-point="contentNode"\n\t\t\tclass="dijitTreeContent" role="presentation">\n\t\t\t<img src="${_blankGif}" alt="" data-dojo-attach-point="iconNode" class="dijitIcon dijitTreeIcon" role="presentation"\n\t\t\t/><span data-dojo-attach-point="labelNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false" data-dojo-attach-event="onfocus:_onLabelFocus"></span>\n\t\t</span\n\t></div>\n\t<div data-dojo-attach-point="containerNode" class="dijitTreeContainer" role="presentation" style="display: none;"></div>\n</div>\n',
  547. "url:dijit/templates/Tree.html":'<div class="dijitTree dijitTreeContainer" role="tree">\n\t<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" data-dojo-attach-point="indentDetector"></div>\n</div>\n'}});define("dijit/Tree","dojo/_base/array dojo/_base/connect dojo/cookie dojo/_base/declare dojo/_base/Deferred dojo/DeferredList dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/event dojo/fx dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/topic ./focus ./registry ./_base/manager ./_Widget ./_TemplatedMixin ./_Container ./_Contained ./_CssStateMixin dojo/text!./templates/TreeNode.html dojo/text!./templates/Tree.html ./tree/TreeStoreModel ./tree/ForestStoreModel ./tree/_dndSelector".split(" "),
  548. function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s,q,v,u,x,w,r,E,I,L,F,y,z,H){var A=b("dijit._TreeNode",[x,w,r,E,I],{item:null,isTreeNode:!0,label:"",_setLabelAttr:{node:"labelNode",type:"innerText"},isExpandable:null,isExpanded:!1,state:"UNCHECKED",templateString:L,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);
  549. this.isExpandable&&this.labelNode.setAttribute("aria-expanded",this.isExpanded);this.setSelected(!1)},_setIndentAttr:function(a){var b=Math.max(a,0)*this.tree._nodePixelIndent+"px";k.set(this.domNode,"backgroundPosition",b+" 0px");k.set(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",b);c.forEach(this.getChildren(),function(b){b.set("indent",a+1)});this._set("indent",a)},markProcessing:function(){this.state="LOADING";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},
  550. _updateItemClasses:function(a){var b=this.tree,c=b.model;b._v10Compat&&a===c.root&&(a=null);this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,b,c){var d="_"+b+"Class",b=b+"Node",e=this[d];this[d]=this.tree["get"+c+"Class"](a,this.isExpanded);h.replace(this[b],this[d]||"",e||"");k.set(this[b],this.tree["get"+c+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();
  551. !a||!a.rowNode||"none"==a.rowNode.style.display?h.add(this.domNode,"dijitTreeIsRoot"):h.toggle(this.domNode,"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var b=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],a=a?0:this.isExpandable?this.isExpanded?1:2:3;h.replace(this.expandoNode,b[a],b);this.expandoNodeText.innerHTML=["*","-","+","*"][a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&
  552. this._wipeOut.stop();this.isExpanded=!0;this.labelNode.setAttribute("aria-expanded","true");(this.tree.showRoot||this!==this.tree.rootNode)&&this.containerNode.setAttribute("role","group");h.add(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&this.tree.domNode.setAttribute("aria-expanded","true");var a,b=o.wipeIn({node:this.containerNode,duration:u.defaultDuration,onEnd:function(){a.callback(!0)}});a=this._expandDeferred=
  553. new e(function(){b.stop()});b.play();return a},collapse:function(){this.isExpanded&&(this._expandDeferred&&(this._expandDeferred.cancel(),delete this._expandDeferred),this.isExpanded=!1,this.labelNode.setAttribute("aria-expanded","false"),this==this.tree.rootNode&&this.tree.domNode.setAttribute("aria-expanded","false"),h.remove(this.contentNode,"dijitTreeContentExpanded"),this._setExpando(),this._updateItemClasses(this.item),this._wipeOut||(this._wipeOut=o.wipeOut({node:this.containerNode,duration:u.defaultDuration})),
  554. this._wipeOut.play())},indent:0,setChildItems:function(a){var b=this.tree,e=b.model,f=[];c.forEach(this.getChildren(),function(a){r.prototype.removeChild.call(this,a)},this);this.state="LOADED";a&&0<a.length?(this.isExpandable=!0,c.forEach(a,function(a){var c=e.getIdentity(a),d=b._itemNodesMap[c],g;if(d)for(var h=0;h<d.length;h++)if(d[h]&&!d[h].getParent()){g=d[h];g.set("indent",this.indent+1);break}g||(g=this.tree._createTreeNode({item:a,tree:b,isExpandable:e.mayHaveChildren(a),label:b.getLabel(a),
  555. tooltip:b.getTooltip(a),dir:b.dir,lang:b.lang,textDir:b.textDir,indent:this.indent+1}),d?d.push(g):b._itemNodesMap[c]=[g]);this.addChild(g);(this.tree.autoExpand||this.tree._state(g))&&f.push(b._expandNode(g))},this),c.forEach(this.getChildren(),function(a){a._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);this==b.rootNode&&((a=this.tree.showRoot?this:this.getChildren()[0])?(a.setFocusable(!0),b.lastFocused=a):b.domNode.setAttribute("tabIndex",
  556. "0"));return new d(f)},getTreePath:function(){for(var a=this,b=[];a&&a!==this.tree.rootNode;)b.unshift(a.item),a=a.getParent();b.unshift(this.tree.rootNode.item);return b},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(a){this.inherited(arguments);var b=this.getChildren();0==b.length&&(this.isExpandable=!1,this.collapse());c.forEach(b,function(a){a._updateLayout()})},makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},_onLabelFocus:function(){this.tree._onNodeFocus(this)},
  557. setSelected:function(a){this.labelNode.setAttribute("aria-selected",a);h.toggle(this.rowNode,"dijitTreeRowSelected",a)},setFocusable:function(a){this.labelNode.setAttribute("tabIndex",a?"0":"-1")},_onClick:function(a){this.tree._onClick(this,a)},_onDblClick:function(a){this.tree._onDblClick(this,a)},_onMouseEnter:function(a){this.tree._onNodeMouseEnter(this,a)},_onMouseLeave:function(a){this.tree._onNodeMouseLeave(this,a)},_setTextDirAttr:function(a){if(a&&(this.textDir!=a||!this._created))this._set("textDir",
  558. a),this.applyTextDir(this.labelNode,this.labelNode.innerText||this.labelNode.textContent||""),c.forEach(this.getChildren(),function(b){b.set("textDir",a)},this)}}),b=b("dijit.Tree",[x,w],{store:null,model:null,query:null,label:"",showRoot:!0,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:F,persist:!0,autoExpand:!1,dndController:H,dndParams:"onDndDrop itemCreator onDndCancel checkAcceptance checkItemAcceptance dragThreshold betweenThreshold".split(" "),
  559. onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,b){s.publish(this.id,p.mixin({tree:this,event:a},b||{}))},postMixInProperties:function(){this.tree=this;this.autoExpand&&(this.persist=!1);this._itemNodesMap={};!this.cookieName&&this.id&&(this.cookieName=this.id+"SaveStateCookie");this._loadDeferred=new e;this.inherited(arguments)},postCreate:function(){this._initState();var a=this;
  560. this._connects.push(t(this.domNode,t.selector(".dijitTreeNode","keypress"),function(b){a._onKeyPress(v.byNode(this),b)}),t(this.domNode,t.selector(".dijitTreeNode","keydown"),function(b){a._onKeyDown(v.byNode(this),b)}));this.model||this._store2model();this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){p.isString(this.dndController)&&
  561. (this.dndController=p.getObject(this.dndController));for(var b={},c=0;c<this.dndParams.length;c++)this[this.dndParams[c]]&&(b[this.dndParams[c]]=this[this.dndParams[c]]);this.dndController=new this.dndController(this,b)}},_store2model:function(){this._v10Compat=!0;m.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var a={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};this.params.mayHaveChildren&&(a.mayHaveChildren=
  562. p.hitch(this,"mayHaveChildren"));this.params.getItemChildren&&(a.getChildren=p.hitch(this,function(a,b,c){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,b,c)}));this.model=new z(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(p.hitch(this,function(a){var b=this.rootNode=this.tree._createTreeNode({item:a,tree:this,isExpandable:!0,label:this.label||this.getLabel(a),textDir:this.textDir,indent:this.showRoot?0:-1});this.showRoot||(b.rowNode.style.display=
  563. "none",this.domNode.setAttribute("role","presentation"),b.labelNode.setAttribute("role","presentation"),b.containerNode.setAttribute("role","tree"));this.domNode.appendChild(b.domNode);a=this.model.getIdentity(a);this._itemNodesMap[a]?this._itemNodesMap[a].push(b):this._itemNodesMap[a]=[b];b._updateLayout();this._expandNode(b).addCallback(p.hitch(this,function(){this._loadDeferred.callback(!0);this.onLoad()}))}),function(a){console.error(this,": error loading root: ",a)})},getNodesByItem:function(a){if(!a)return[];
  564. a=p.isString(a)?a:this.model.getIdentity(a);return[].concat(this._itemNodesMap[a])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var b=this;this._loadDeferred.addCallback(p.hitch(this,function(){var d=c.map(a,function(a){return!a||p.isString(a)?a:b.model.getIdentity(a)}),e=[];c.forEach(d,function(a){e=e.concat(b._itemNodesMap[a]||[])});this.set("selectedNodes",e)}))},_setPathAttr:function(a){return a.length?this.set("paths",[a]):this.set("paths",
  565. [])},_setPathsAttr:function(a){function b(a,d,e){var g=a.shift(),h=c.filter(d,function(a){return a.getIdentity()==g})[0];h?a.length?f._expandNode(h).addCallback(function(){b(a,h.getChildren(),e)}):e.callback(h):e.errback("Could not expand path at "+g)}var f=this;return(new d(c.map(a,function(a){var d=new e,a=c.map(a,function(a){return p.isString(a)?a:f.model.getIdentity(a)});a.length?f._loadDeferred.addCallback(function(){b(a,[f.rootNode],d)}):d.errback("Empty path");return d}))).addCallback(function(a){f.set("selectedNodes",
  566. c.map(c.filter(a,function(a){return a[0]}),function(a){return a[1]}))})},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this._loadDeferred.addCallback(p.hitch(this,function(){this.dndController.setSelection(a)}))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},getIconClass:function(a,b){return!a||this.model.mayHaveChildren(a)?b?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},
  567. getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onKeyPress:function(a,b){if(!(32>=b.charCode)&&!b.altKey&&!b.ctrlKey&&!b.shiftKey&&!b.metaKey){var c=String.fromCharCode(b.charCode);this._onLetterKeyNav({node:a,key:c.toLowerCase()});l.stop(b)}},_onKeyDown:function(a,b){var c=b.keyCode,d=this._keyHandlerMap;d||(d={},d[n.ENTER]="_onEnterKey",d[n.SPACE]=d[" "]="_onEnterKey",d[this.isLeftToRight()?n.LEFT_ARROW:n.RIGHT_ARROW]=
  568. "_onLeftArrow",d[this.isLeftToRight()?n.RIGHT_ARROW:n.LEFT_ARROW]="_onRightArrow",d[n.UP_ARROW]="_onUpArrow",d[n.DOWN_ARROW]="_onDownArrow",d[n.HOME]="_onHomeKey",d[n.END]="_onEndKey",this._keyHandlerMap=d);this._keyHandlerMap[c]&&(this._curSearch&&(clearTimeout(this._curSearch.timer),delete this._curSearch),this[this._keyHandlerMap[c]]({node:a,item:a.item,evt:b}),l.stop(b))},_onEnterKey:function(a){this._publish("execute",{item:a.item,node:a.node});this.dndController.userSelect(a.node,g.isCopyKey(a.evt),
  569. a.evt.shiftKey);this.onClick(a.item,a.node,a.evt)},_onDownArrow:function(a){(a=this._getNextNode(a.node))&&a.isTreeNode&&this.focusNode(a)},_onUpArrow:function(a){var a=a.node,b=a.getPreviousSibling();if(b)for(a=b;a.isExpandable&&a.isExpanded&&a.hasChildren();)a=a.getChildren(),a=a[a.length-1];else if(b=a.getParent(),this.showRoot||b!==this.rootNode)a=b;a&&a.isTreeNode&&this.focusNode(a)},_onRightArrow:function(a){a=a.node;a.isExpandable&&!a.isExpanded?this._expandNode(a):a.hasChildren()&&(a=a.getChildren()[0])&&
  570. a.isTreeNode&&this.focusNode(a)},_onLeftArrow:function(a){a=a.node;a.isExpandable&&a.isExpanded?this._collapseNode(a):(a=a.getParent())&&(a.isTreeNode&&(this.showRoot||a!==this.rootNode))&&this.focusNode(a)},_onHomeKey:function(){var a=this._getRootOrFirstNode();a&&this.focusNode(a)},_onEndKey:function(){for(var a=this.rootNode;a.isExpanded;)a=a.getChildren(),a=a[a.length-1];a&&a.isTreeNode&&this.focusNode(a)},multiCharSearchDuration:250,_onLetterKeyNav:function(a){var b=this._curSearch;b?(b.pattern+=
  571. a.key,clearTimeout(b.timer)):b=this._curSearch={pattern:a.key,startNode:a.node};var c=this;b.timer=setTimeout(function(){delete c._curSearch},this.multiCharSearchDuration);a=b.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==b.startNode&&a.label.toLowerCase().substr(0,b.pattern.length)!=b.pattern);a&&a.isTreeNode&&a!==b.startNode&&this.focusNode(a)},isExpandoNode:function(a,b){return j.isDescendant(a,b.expandoNode)},_onClick:function(a,b){var c=this.isExpandoNode(b.target,
  572. a);this.openOnClick&&a.isExpandable||c?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:b}),this.onClick(a.item,a,b),this.focusNode(a));l.stop(b)},_onDblClick:function(a,b){var c=b.target,c=c==a.expandoNode||c==a.expandoNodeText;this.openOnDblClick&&a.isExpandable||c?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:b}),this.onDblClick(a.item,a,b),this.focusNode(a));l.stop(b)},_onExpandoClick:function(a){a=
  573. a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){if(a.isExpandable&&a.isExpanded&&a.hasChildren())return a.getChildren()[0];for(;a&&a.isTreeNode;){var b=a.getNextSibling();if(b)return b;a=a.getParent()}return null},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_collapseNode:function(a){a._expandNodeDeferred&&
  574. delete a._expandNodeDeferred;a.isExpandable&&"LOADING"!=a.state&&(a.collapse(),this.onClose(a.item,a),this._state(a,!1))},_expandNode:function(a,b){if(a._expandNodeDeferred&&!b)return a._expandNodeDeferred;var c=this.model,d=a.item,f=this;switch(a.state){case "UNCHECKED":a.markProcessing();var g=a._expandNodeDeferred=new e;c.getChildren(d,function(b){a.unmarkProcessing();var b=a.setChildItems(b),c=f._expandNode(a,!0);b.addCallback(function(){c.addCallback(function(){g.callback()})})},function(a){console.error(f,
  575. ": error loading root children: ",a)});break;default:g=a._expandNodeDeferred=a.expand(),this.onOpen(a.item,a),this._state(a,!0)}return g},focusNode:function(a){q.focus(a.labelNode)},_onNodeFocus:function(a){a&&a!=this.lastFocused&&(this.lastFocused&&!this.lastFocused._destroyed&&this.lastFocused.setFocusable(!1),a.setFocusable(!0),this.lastFocused=a)},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(a){var b=this.model.getIdentity(a);if(b=this._itemNodesMap[b]){var d=
  576. this.getLabel(a),e=this.getTooltip(a);c.forEach(b,function(b){b.set({item:a,label:d,tooltip:e});b._updateItemClasses(a)})}},_onItemChildrenChange:function(a,b){var d=this.model.getIdentity(a);(d=this._itemNodesMap[d])&&c.forEach(d,function(a){a.setChildItems(b)})},_onItemDelete:function(a){var a=this.model.getIdentity(a),b=this._itemNodesMap[a];b&&(c.forEach(b,function(a){this.dndController.removeTreeNode(a);var b=a.getParent();b&&b.removeChild(a);a.destroyRecursive()},this),delete this._itemNodesMap[a])},
  577. _initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var b=a(this.cookieName);b&&c.forEach(b.split(","),function(a){this._openedNodes[a]=!0},this)}},_state:function(b,d){if(!this.persist)return!1;var e=c.map(b.getTreePath(),function(a){return this.model.getIdentity(a)},this).join("/");if(1===arguments.length)return this._openedNodes[e];d?this._openedNodes[e]=!0:delete this._openedNodes[e];var e=[],f;for(f in this._openedNodes)e.push(f);a(this.cookieName,e.join(","),{expires:365})},
  578. destroy:function(){this._curSearch&&(clearTimeout(this._curSearch.timer),delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!p.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},destroyRecursive:function(){this.destroy()},resize:function(a){a&&f.setMarginBox(this.domNode,a);this._nodePixelIndent=f.position(this.tree.indentDetector).w;this.tree.rootNode&&this.tree.rootNode.set("indent",this.showRoot?0:-1)},
  579. _createTreeNode:function(a){return new A(a)},_setTextDirAttr:function(a){a&&this.textDir!=a&&(this._set("textDir",a),this.rootNode.set("textDir",a))}});b._TreeNode=A;return b})},"dojox/layout/ResizeHandle":function(){define("dojox/layout/ResizeHandle","dojo/_base/kernel dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/_base/event dojo/_base/fx dojo/_base/window dojo/fx dojo/window dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dijit/_base/manager dijit/_Widget dijit/_TemplatedMixin dojo/_base/declare".split(" "),
  580. function(c,g,a,b,e,d,j,h,f,k,l,o,m,n,p,t,s){c.experimental("dojox.layout.ResizeHandle");var c=s("dojox.layout.ResizeHandle",[p,t],{targetId:"",targetContainer:null,resizeAxis:"xy",activeResize:!1,activeResizeClass:"dojoxResizeHandleClone",animateSizing:!0,animateMethod:"chain",animateDuration:225,minHeight:100,minWidth:100,constrainMax:!1,maxHeight:0,maxWidth:0,fixedAspect:!1,intermediateChanges:!1,startTopic:"/dojo/resize/start",endTopic:"/dojo/resize/stop",templateString:'<div dojoAttachPoint="resizeHandle" class="dojoxResizeHandle"><div></div></div>',
  581. postCreate:function(){this.connect(this.resizeHandle,"onmousedown","_beginSizing");this.activeResize?this.animateSizing=!1:(this._resizeHelper=n.byId("dojoxGlobalResizeHelper"),this._resizeHelper||(this._resizeHelper=(new q({id:"dojoxGlobalResizeHelper"})).placeAt(j.body()),l.add(this._resizeHelper.domNode,this.activeResizeClass)));this.minSize||(this.minSize={w:this.minWidth,h:this.minHeight});this.constrainMax&&(this.maxSize={w:this.maxWidth,h:this.maxHeight});this._resizeX=this._resizeY=!1;var a=
  582. g.partial(l.add,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=!0;a("dojoxResizeNW");break;case "x":this._resizeX=!0;a("dojoxResizeW");break;case "y":this._resizeY=!0,a("dojoxResizeN")}},_beginSizing:function(b){if(!this._isSizing&&(a.publish(this.startTopic,[this]),this.targetDomNode=(this.targetWidget=n.byId(this.targetId))?this.targetWidget.domNode:k.byId(this.targetId),this.targetContainer&&(this.targetDomNode=this.targetContainer),this.targetDomNode)){if(!this.activeResize){var c=
  583. o.position(this.targetDomNode,!0);this._resizeHelper.resize({l:c.x,t:c.y,w:c.w,h:c.h});this._resizeHelper.show();this.isLeftToRight()||(this._resizeHelper.startPosition={l:c.x,t:c.y})}this._isSizing=!0;this.startPoint={x:b.clientX,y:b.clientY};var c=m.getComputedStyle(this.targetDomNode),d="border-model"===o.boxModel?{w:0,h:0}:o.getPadBorderExtents(this.targetDomNode,c),f=o.getMarginExtents(this.targetDomNode,c);this.startSize={w:m.get(this.targetDomNode,"width",c),h:m.get(this.targetDomNode,"height",
  584. c),pbw:d.w,pbh:d.h,mw:f.w,mh:f.h};!this.isLeftToRight()&&"absolute"==dojo.style(this.targetDomNode,"position")&&(c=o.position(this.targetDomNode,!0),this.startPosition={l:c.x,t:c.y});this._pconnects=[a.connect(j.doc,"onmousemove",this,"_updateSizing"),a.connect(j.doc,"onmouseup",this,"_endSizing")];e.stop(b)}},_updateSizing:function(a){if(this.activeResize)this._changeSizing(a);else{var b=this._getNewCoords(a,"border",this._resizeHelper.startPosition);if(!1===b)return;this._resizeHelper.resize(b)}a.preventDefault()},
  585. _getNewCoords:function(a,b,c){try{if(!a.clientX||!a.clientY)return!1}catch(d){return!1}this._activeResizeLastEvent=a;var e=(this.isLeftToRight()?1:-1)*(this.startPoint.x-a.clientX),f=this.startPoint.y-a.clientY,a=this.startSize.w-(this._resizeX?e:0),f=this._checkConstraints(a,this.startSize.h-(this._resizeY?f:0));if((c=c||this.startPosition)&&this._resizeX)f.l=c.l+e,f.w!=a&&(f.l+=a-f.w),f.t=c.t;switch(b){case "margin":f.w+=this.startSize.mw,f.h+=this.startSize.mh;case "border":f.w+=this.startSize.pbw,
  586. f.h+=this.startSize.pbh}return f},_checkConstraints:function(a,b){if(this.minSize){var c=this.minSize;a<c.w&&(a=c.w);b<c.h&&(b=c.h)}this.constrainMax&&this.maxSize&&(c=this.maxSize,a>c.w&&(a=c.w),b>c.h&&(b=c.h));if(this.fixedAspect){var c=this.startSize.w,d=this.startSize.h,e=c*b-d*a;0>e?a=b*c/d:0<e&&(b=a*d/c)}return{w:a,h:b}},_changeSizing:function(a){var b=this.targetWidget&&g.isFunction(this.targetWidget.resize),c=this._getNewCoords(a,b&&"margin");if(!1!==c&&(b?this.targetWidget.resize(c):this.animateSizing?
  587. h[this.animateMethod]([d.animateProperty({node:this.targetDomNode,properties:{width:{start:this.startSize.w,end:c.w}},duration:this.animateDuration}),d.animateProperty({node:this.targetDomNode,properties:{height:{start:this.startSize.h,end:c.h}},duration:this.animateDuration})]).play():m.set(this.targetDomNode,{width:c.w+"px",height:c.h+"px"}),this.intermediateChanges))this.onResize(a)},_endSizing:function(c){b.forEach(this._pconnects,a.disconnect);var d=g.partial(a.publish,this.endTopic,[this]);
  588. this.activeResize?d():(this._resizeHelper.hide(),this._changeSizing(c),setTimeout(d,this.animateDuration+15));this._isSizing=!1;this.onResize(c)},onResize:function(){}}),q=dojo.declare("dojox.layout._ResizeHelper",p,{show:function(){m.set(this.domNode,"display","")},hide:function(){m.set(this.domNode,"display","none")},resize:function(a){o.setMarginBox(this.domNode,a)}});return c})},"dijit/form/_FormValueWidget":function(){define("dijit/form/_FormValueWidget",["dojo/_base/declare","dojo/_base/sniff",
  589. "./_FormWidget","./_FormValueMixin"],function(c,g,a,b){return c("dijit.form._FormValueWidget",[a,b],{_layoutHackIE7:function(){if(7==g("ie"))for(var a=this.domNode,b=a.parentNode,c=a.firstChild||a,h=c.style.filter,f=this;b&&0==b.clientHeight;)(function(){var a=f.connect(b,"onscroll",function(){f.disconnect(a);c.style.filter=(new Date).getMilliseconds();setTimeout(function(){c.style.filter=h},0)})})(),b=b.parentNode}})})},"*now":function(c){c(['dojo/i18n!*preload*dojo/nls/buxdojo*["ar","az","bg","ca","cs","da","de","de-de","el","en","en-ca","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-ca","fr-fr","he","he-il","hr","hu","it","it-it","ja","ja-jp","kk","ko","ko-kr","nl","nl-nl","nb","no","pl","pt","pt-br","pt-pt","ro","ru","sk","sl","sv","th","tr","zh","zh-tw","zh-cn","ROOT"]'])}}});
  590. define("dojo/buxdojo",[],1);