/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dijit/_editor/plugins/FontChoice":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/i18n","dojo/_base/lang","dojo/store/Memory","dojo/_base/window","../../registry","../../_Widget","../../_TemplatedMixin","../../_WidgetsInTemplateMixin","../../form/FilteringSelect","../_Plugin","../range","../selection","dojo/i18n!../nls/FontChoice"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f){var _10=_2("dijit._editor.plugins._FontDropDown",[_9,_a,_b],{label:"",plainText:false,templateString:""+""+""+"",postMixInProperties:function(){this.inherited(arguments);this.strings=_4.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=_8.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments);},postCreate:function(){this.select.set("store",new _6({idProperty:"value",data:_1.map(this.values,function(_11){var _12=this.strings[_11]||_11;return {label:this.getLabel(_11,_12),name:_12,value:_11};},this)}));this.select.set("value","",false);this.disabled=this.select.get("disabled");},_setValueAttr:function(_13,_14){_14=_14!==false;this.select.set("value",_1.indexOf(this.values,_13)<0?"":_13,_14);if(!_14){this.select._lastValueReported=null;}},_getValueAttr:function(){return this.select.get("value");},focus:function(){this.select.focus();},_setDisabledAttr:function(_15){this.disabled=_15;this.select.set("disabled",_15);}});var _16=_2("dijit._editor.plugins._FontNameDropDown",_10,{generic:false,command:"fontName",postMixInProperties:function(){if(!this.values){this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"];}this.inherited(arguments);},getLabel:function(_17,_18){if(this.plainText){return _18;}else{return "
"+_18+"
";}},_setValueAttr:function(_19,_1a){_1a=_1a!==false;if(this.generic){var map={"Arial":"sans-serif","Helvetica":"sans-serif","Myriad":"sans-serif","Times":"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive","Courier":"monospace","Courier New":"monospace","Papyrus":"fantasy","Estrangelo Edessa":"cursive","Gabriola":"fantasy"};_19=map[_19]||_19;}this.inherited(arguments,[_19,_1a]);}});var _1b=_2("dijit._editor.plugins._FontSizeDropDown",_10,{command:"fontSize",values:[1,2,3,4,5,6,7],getLabel:function(_1c,_1d){if(this.plainText){return _1d;}else{return ""+_1d+"";}},_setValueAttr:function(_1e,_1f){_1f=_1f!==false;if(_1e.indexOf&&_1e.indexOf("px")!=-1){var _20=parseInt(_1e,10);_1e={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[_20]||_1e;}this.inherited(arguments,[_1e,_1f]);}});var _21=_2("dijit._editor.plugins._FormatBlockDropDown",_10,{command:"formatBlock",values:["noFormat","p","h1","h2","h3","pre"],postCreate:function(){this.inherited(arguments);this.set("value","noFormat",false);},getLabel:function(_22,_23){if(this.plainText||_22=="noFormat"){return _23;}else{return "<"+_22+">"+_23+"";}},_execCommand:function(_24,_25,_26){if(_26==="noFormat"){var _27;var end;var sel=_e.getSelection(_24.window);if(sel&&sel.rangeCount>0){var _28=sel.getRangeAt(0);var _29,tag;if(_28){_27=_28.startContainer;end=_28.endContainer;while(_27&&_27!==_24.editNode&&_27!==_24.document.body&&_27.nodeType!==1){_27=_27.parentNode;}while(end&&end!==_24.editNode&&end!==_24.document.body&&end.nodeType!==1){end=end.parentNode;}var _2a=_5.hitch(this,function(_2b,ary){if(_2b.childNodes&&_2b.childNodes.length){var i;for(i=0;i<_2b.childNodes.length;i++){var c=_2b.childNodes[i];if(c.nodeType==1){if(_7.withGlobal(_24.window,"inSelection",_f,[c])){var tag=c.tagName?c.tagName.toLowerCase():"";if(_1.indexOf(this.values,tag)!==-1){ary.push(c);}_2a(c,ary);}}}}});var _2c=_5.hitch(this,function(_2d){if(_2d&&_2d.length){_24.beginEditing();while(_2d.length){this._removeFormat(_24,_2d.pop());}_24.endEditing();}});var _2e=[];if(_27==end){var _2f;_29=_27;while(_29&&_29!==_24.editNode&&_29!==_24.document.body){if(_29.nodeType==1){tag=_29.tagName?_29.tagName.toLowerCase():"";if(_1.indexOf(this.values,tag)!==-1){_2f=_29;break;}}_29=_29.parentNode;}_2a(_27,_2e);if(_2f){_2e=[_2f].concat(_2e);}_2c(_2e);}else{_29=_27;while(_7.withGlobal(_24.window,"inSelection",_f,[_29])){if(_29.nodeType==1){tag=_29.tagName?_29.tagName.toLowerCase():"";if(_1.indexOf(this.values,tag)!==-1){_2e.push(_29);}_2a(_29,_2e);}_29=_29.nextSibling;}_2c(_2e);}_24.onDisplayChanged();}}}else{_24.execCommand(_25,_26);}},_removeFormat:function(_30,_31){if(_30.customUndo){while(_31.firstChild){_3.place(_31.firstChild,_31,"before");}_31.parentNode.removeChild(_31);}else{_7.withGlobal(_30.window,"selectElementChildren",_f,[_31]);var _32=_7.withGlobal(_30.window,"getSelectedHtml",_f,[null]);_7.withGlobal(_30.window,"selectElement",_f,[_31]);_30.execCommand("inserthtml",_32||"");}}});var _33=_2("dijit._editor.plugins.FontChoice",_d,{useDefaultCommand:false,_initButton:function(){var _34={fontName:_16,fontSize:_1b,formatBlock:_21}[this.command],_35=this.params;if(this.params.custom){_35.values=this.params.custom;}var _36=this.editor;this.button=new _34(_5.delegate({dir:_36.dir,lang:_36.lang},_35));this.connect(this.button.select,"onChange",function(_37){this.editor.focus();if(this.command=="fontName"&&_37.indexOf(" ")!=-1){_37="'"+_37+"'";}if(this.button._execCommand){this.button._execCommand(this.editor,this.command,_37);}else{this.editor.execCommand(this.command,_37);}});},updateState:function(){var _38=this.editor;var _39=this.command;if(!_38||!_38.isLoaded||!_39.length){return;}if(this.button){var _3a=this.get("disabled");this.button.set("disabled",_3a);if(_3a){return;}var _3b;try{_3b=_38.queryCommandValue(_39)||"";}catch(e){_3b="";}var _3c=_5.isString(_3b)&&_3b.match(/'([^']*)'/);if(_3c){_3b=_3c[1];}if(_39==="formatBlock"){if(!_3b||_3b=="p"){_3b=null;var _3d;var sel=_e.getSelection(this.editor.window);if(sel&&sel.rangeCount>0){var _3e=sel.getRangeAt(0);if(_3e){_3d=_3e.endContainer;}}while(_3d&&_3d!==_38.editNode&&_3d!==_38.document){var tg=_3d.tagName?_3d.tagName.toLowerCase():"";if(tg&&_1.indexOf(this.button.values,tg)>-1){_3b=tg;break;}_3d=_3d.parentNode;}if(!_3b){_3b="noFormat";}}else{if(_1.indexOf(this.button.values,_3b)<0){_3b="noFormat";}}}if(_3b!==this.button.get("value")){this.button.set("value",_3b,false);}}}});_1.forEach(["fontName","fontSize","formatBlock"],function(_3f){_d.registry[_3f]=function(_40){return new _33({command:_3f,plainText:_40.plainText});};});});},"dijit/form/nls/validate":function(){define({root:({invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."}),"zh":true,"zh-tw":true,"tr":true,"th":true,"sv":true,"sl":true,"sk":true,"ru":true,"ro":true,"pt":true,"pt-pt":true,"pl":true,"nl":true,"nb":true,"ko":true,"kk":true,"ja":true,"it":true,"hu":true,"hr":true,"he":true,"fr":true,"fi":true,"es":true,"el":true,"de":true,"da":true,"cs":true,"ca":true,"az":true,"ar":true});},"url:dijit/templates/CheckedMenuItem.html":"\n\t\n\t\t\"\"\n\t\t\n\t\n\t\n\t\n\t \n\n","dijit/form/TextBox":function(){define(["dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","./_FormValueWidget","./_TextBoxMixin","dojo/text!./templates/TextBox.html",".."],function(_41,_42,_43,_44,_45,has,win,_46,_47,_48,_49){var _4a=_41([_46,_47],{templateString:_48,_singleNodeTemplate:"",_buttonInputDisabled:has("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var _4b=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((_4b=="hidden"||_4b=="file")&&this.templateString==this.constructor.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_onInput:function(e){this.inherited(arguments);if(this.intermediateChanges){var _4c=this;setTimeout(function(){_4c._handleOnChange(_4c.get("value"),false);},0);}},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=_42.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(v));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this.focused&&!this.textbox.value)?"":"none";}},_setValueAttr:function(_4d,_4e,_4f){this.inherited(arguments);this._updatePlaceHolder();},getDisplayedValue:function(){_44.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue");},setDisplayedValue:function(_50){_44.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_50);},_onBlur:function(e){if(this.disabled){return;}this.inherited(arguments);this._updatePlaceHolder();},_onFocus:function(by){if(this.disabled||this.readOnly){return;}this.inherited(arguments);this._updatePlaceHolder();}});if(has("ie")){_4a=_41(_4a,{declaredClass:"dijit.form.TextBox",_isTextSelected:function(){var _51=win.doc.selection.createRange();var _52=_51.parentElement();return _52==this.textbox&&_51.text.length==0;},postCreate:function(){this.inherited(arguments);setTimeout(_45.hitch(this,function(){try{var s=_43.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _53=this.domNode.getElementsByTagName("INPUT");if(_53){for(var i=0;i<_53.length;i++){_53[i].style.fontFamily=ff;}}}}}catch(e){}}),0);}});_49._setSelectionRange=_47._setSelectionRange=function(_54,_55,_56){if(_54.createTextRange){var r=_54.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_55);r.moveEnd("character",_56-_55);r.select();}};}else{if(has("mozilla")){_4a=_41(_4a,{declaredClass:"dijit.form.TextBox",_onBlur:function(e){this.inherited(arguments);if(this.selectOnClick){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}}});}else{_4a.prototype.declaredClass="dijit.form.TextBox";}}_45.setObject("dijit.form.TextBox",_4a);return _4a;});},"dojo/currency":function(){define(["./_base/kernel","./_base/lang","./_base/array","./number","./i18n","./i18n!./cldr/nls/currency","./cldr/monetary"],function(_57,_58,_59,_5a,_5b,_5c,_5d){_58.getObject("currency",true,_57);_57.currency._mixInDefaults=function(_5e){_5e=_5e||{};_5e.type="currency";var _5f=_5b.getLocalization("dojo.cldr","currency",_5e.locale)||{};var iso=_5e.currency;var _60=_5d.getData(iso);_59.forEach(["displayName","symbol","group","decimal"],function(_61){_60[_61]=_5f[iso+"_"+_61];});_60.fractional=[true,false];return _58.mixin(_60,_5e);};_57.currency.format=function(_62,_63){return _5a.format(_62,_57.currency._mixInDefaults(_63));};_57.currency.regexp=function(_64){return _5a.regexp(_57.currency._mixInDefaults(_64));};_57.currency.parse=function(_65,_66){return _5a.parse(_65,_57.currency._mixInDefaults(_66));};return _57.currency;});},"dijit/DialogUnderlay":function(){define(["dojo/_base/declare","dojo/dom-attr","dojo/_base/window","dojo/window","./_Widget","./_TemplatedMixin","./BackgroundIframe"],function(_67,_68,win,_69,_6a,_6b,_6c){return _67("dijit.DialogUnderlay",[_6a,_6b],{templateString:"
",dialogId:"","class":"",_setDialogIdAttr:function(id){_68.set(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_6d){this.node.className="dijitDialogUnderlay "+_6d;this._set("class",_6d);},postCreate:function(){win.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _6e=_69.getBox();os.top=_6e.t+"px";os.left=_6e.l+"px";is.width=_6e.w+"px";is.height=_6e.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new _6c(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});});},"url:dijit/form/templates/ComboButton.html":"
\n","dijit/layout/ScrollingTabController":function(){define(["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"],function(_6f,_70,_71,_72,_73,fx,_74,_75,has,_76,_77,_78,_79,_7a,_7b,_7c,_7d,_7e,_7f){var _80=_70("dijit.layout.ScrollingTabController",[_79,_7b],{baseClass:"dijitTabController dijitScrollingTabController",templateString:_77,useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,_setClassAttr:{node:"containerNode",type:"class"},buildRendering:function(){this.inherited(arguments);var n=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";_71.add(n,"tabStrip-disabled");}_71.add(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);_73.set(this.domNode,"visibility","");this._postStartup=true;},onAddChild:function(_81,_82){this.inherited(arguments);_6f.forEach(["label","iconClass"],function(_83){this.pane2watches[_81.id].push(this.pane2button[_81.id].watch(_83,_74.hitch(this,function(){if(this._postStartup&&this._dim){this.resize(this._dim);}})));},this);_73.set(this.containerNode,"width",(_73.get(this.containerNode,"width")+200)+"px");},onRemoveChild:function(_84,_85){var _86=this.pane2button[_84.id];if(this._selectedTab===_86.domNode){this._selectedTab=null;}this.inherited(arguments);},_initButtons:function(){this._btnWidth=0;this._buttons=_75("> .tabStripButton",this.domNode).filter(function(btn){if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){this._btnWidth+=_72.getMarginSize(btn).w;return true;}else{_73.set(btn,"display","none");return false;}},this);},_getTabsWidth:function(){var _87=this.getChildren();if(_87.length){var _88=_87[this.isLeftToRight()?0:_87.length-1].domNode,_89=_87[this.isLeftToRight()?_87.length-1:0].domNode;return _89.offsetLeft+_73.get(_89,"width")-_88.offsetLeft;}else{return 0;}},_enableBtn:function(_8a){var _8b=this._getTabsWidth();_8a=_8a||_73.get(this.scrollNode,"width");return _8b>0&&_8a<_8b;},resize:function(dim){this._dim=dim;this.scrollNode.style.height="auto";var cb=this._contentBox=_7a.marginBox2contentBox(this.domNode,{h:0,w:dim.w});cb.h=this.scrollNode.offsetHeight;_72.setContentSize(this.domNode,cb);var _8c=this._enableBtn(this._contentBox.w);this._buttons.style("display",_8c?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";_7a.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);if(this._selectedTab){if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}this.scrollNode.scrollLeft=this._convertToScrollLeft(this._getScrollForSelectedTab());}this._setButtonClass(this._getScroll());this._postResize=true;return {h:this._contentBox.h,w:dim.w};},_getScroll:function(){return (this.isLeftToRight()||has("ie")<8||(has("ie")&&has("quirks"))||has("webkit"))?this.scrollNode.scrollLeft:_73.get(this.containerNode,"width")-_73.get(this.scrollNode,"width")+(has("ie")==8?-1:1)*this.scrollNode.scrollLeft;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||has("ie")<8||(has("ie")&&has("quirks"))||has("webkit")){return val;}else{var _8d=_73.get(this.containerNode,"width")-_73.get(this.scrollNode,"width");return (has("ie")==8?-1:1)*(val-_8d);}},onSelectChild:function(_8e){var tab=this.pane2button[_8e.id];if(!tab||!_8e){return;}var _8f=tab.domNode;if(_8f!=this._selectedTab){this._selectedTab=_8f;if(this._postResize){var sl=this._getScroll();if(sl>_8f.offsetLeft||sl+_73.get(this.scrollNode,"width")<_8f.offsetLeft+_73.get(_8f,"width")){this.createSmoothScroll().play();}}}this.inherited(arguments);},_getScrollBounds:function(){var _90=this.getChildren(),_91=_73.get(this.scrollNode,"width"),_92=_73.get(this.containerNode,"width"),_93=_92-_91,_94=this._getTabsWidth();if(_90.length&&_94>_91){return {min:this.isLeftToRight()?0:_90[_90.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_90[_90.length-1].domNode.offsetLeft+_73.get(_90[_90.length-1].domNode,"width"))-_91:_93};}else{var _95=this.isLeftToRight()?0:_93;return {min:_95,max:_95};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_96=_73.get(this.scrollNode,"width"),_97=this._getScrollBounds();var pos=(n.offsetLeft+_73.get(n,"width")/2)-_96/2;pos=Math.min(Math.max(pos,_97.min),_97.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _98=this._getScrollBounds();x=Math.min(Math.max(x,_98.min),_98.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var _99=this,w=this.scrollNode,_9a=new fx.Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var _9b=w.scrollLeft,_9c=_99._convertToScrollLeft(x);_9a.curve=new fx._Line(_9b,_9c);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=_9a;this._setButtonClass(x);return _9a;},_getBtnNode:function(e){var n=e.target;while(n&&!_71.contains(n,"tabStripButton")){n=n.parentNode;}return n;},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e));},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e));},doSlide:function(_9d,_9e){if(_9e&&_71.contains(_9e,"dijitTabDisabled")){return;}var _9f=_73.get(this.scrollNode,"width");var d=(_9f*0.75)*_9d;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_a0){var _a1=this._getScrollBounds();this._leftBtn.set("disabled",_a0<=_a1.min);this._rightBtn.set("disabled",_a0>=_a1.max);}});var _a2=_70("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:_78,tabIndex:"",isFocusable:function(){return false;}});_70("dijit.layout._ScrollingTabControllerButton",[_7e,_a2]);_70("dijit.layout._ScrollingTabControllerMenuButton",[_7e,_7f,_a2],{containerId:"",tabIndex:"-1",isLoaded:function(){return false;},loadDropDown:function(_a3){this.dropDown=new _7c({id:this.containerId+"_menu",dir:this.dir,lang:this.lang,textDir:this.textDir});var _a4=_76.byId(this.containerId);_6f.forEach(_a4.getChildren(),function(_a5){var _a6=new _7d({id:_a5.id+"_stcMi",label:_a5.title,iconClass:_a5.iconClass,dir:_a5.dir,lang:_a5.lang,textDir:_a5.textDir,onClick:function(){_a4.selectChild(_a5);}});this.dropDown.addChild(_a6);},this);_a3();},closeDropDown:function(_a7){this.inherited(arguments);if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}}});return _80;});},"dijit/_editor/html":function(){define(["dojo/_base/lang","dojo/_base/sniff",".."],function(_a8,has,_a9){_a8.getObject("_editor",true,_a9);_a9._editor.escapeXml=function(str,_aa){str=str.replace(/&/gm,"&").replace(//gm,">").replace(/"/gm,""");if(!_aa){str=str.replace(/'/gm,"'");}return str;};_a9._editor.getNodeHtml=function(_ab){var _ac;switch(_ab.nodeType){case 1:var _ad=_ab.nodeName.toLowerCase();if(!_ad||_ad.charAt(0)=="/"){return "";}_ac="<"+_ad;var _ae=[];var _af;if(has("ie")&&_ab.outerHTML){var s=_ab.outerHTML;s=s.substr(0,s.indexOf(">")).replace(/(['"])[^"']*\1/g,"");var reg=/(\b\w+)\s?=/g;var m,key;while((m=reg.exec(s))){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(_ab.getAttribute("_djrealurl")){_ae.push([key,_ab.getAttribute("_djrealurl")]);continue;}}var val,_b0;switch(key){case "style":val=_ab.style.cssText.toLowerCase();break;case "class":val=_ab.className;break;case "width":if(_ad==="img"){_b0=/width=(\S+)/i.exec(s);if(_b0){val=_b0[1];}break;}case "height":if(_ad==="img"){_b0=/height=(\S+)/i.exec(s);if(_b0){val=_b0[1];}break;}default:val=_ab.getAttribute(key);}if(val!=null){_ae.push([key,val.toString()]);}}}}else{var i=0;while((_af=_ab.attributes[i++])){var n=_af.name;if(n.substr(0,3)!="_dj"){var v=_af.value;if(n=="src"||n=="href"){if(_ab.getAttribute("_djrealurl")){v=_ab.getAttribute("_djrealurl");}}_ae.push([n,v]);}}}_ae.sort(function(a,b){return a[0]"+_ab.innerHTML+"";}else{if(_ab.childNodes.length){_ac+=">"+_a9._editor.getChildrenHtml(_ab)+"";}else{switch(_ad){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":_ac+=" />";break;default:_ac+=">";}}}break;case 4:case 3:_ac=_a9._editor.escapeXml(_ab.nodeValue,true);break;case 8:_ac="";break;default:_ac="";}return _ac;};_a9._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _b1=dom["childNodes"]||dom;var _b2=!has("ie")||_b1!==dom;var _b3,i=0;while((_b3=_b1[i++])){if(!_b2||_b3.parentNode==dom){out+=_a9._editor.getNodeHtml(_b3);}}return out;};return _a9._editor;});},"dijit/_editor/nls/commands":function(){define({root:({"bold":"Bold","copy":"Copy","cut":"Cut","delete":"Delete","indent":"Indent","insertHorizontalRule":"Horizontal Rule","insertOrderedList":"Numbered List","insertUnorderedList":"Bullet List","italic":"Italic","justifyCenter":"Align Center","justifyFull":"Justify","justifyLeft":"Align Left","justifyRight":"Align Right","outdent":"Outdent","paste":"Paste","redo":"Redo","removeFormat":"Remove Format","selectAll":"Select All","strikethrough":"Strikethrough","subscript":"Subscript","superscript":"Superscript","underline":"Underline","undo":"Undo","unlink":"Remove Link","createLink":"Create Link","toggleDir":"Toggle Direction","insertImage":"Insert Image","insertTable":"Insert/Edit Table","toggleTableBorder":"Toggle Table Border","deleteTable":"Delete Table","tableProp":"Table Property","htmlToggle":"HTML Source","foreColor":"Foreground Color","hiliteColor":"Background Color","plainFormatBlock":"Paragraph Style","formatBlock":"Paragraph Style","fontSize":"Font Size","fontName":"Font Name","tabIndent":"Tab Indent","fullScreen":"Toggle Full Screen","viewSource":"View HTML Source","print":"Print","newPage":"New Page","systemShortcut":"The \"${0}\" action is only available in your browser using a keyboard shortcut. Use ${1}.","ctrlKey":"ctrl+${0}","appleKey":"⌘${0}"}),"zh":true,"zh-tw":true,"tr":true,"th":true,"sv":true,"sl":true,"sk":true,"ru":true,"ro":true,"pt":true,"pt-pt":true,"pl":true,"nl":true,"nb":true,"ko":true,"kk":true,"ja":true,"it":true,"hu":true,"hr":true,"he":true,"fr":true,"fi":true,"es":true,"el":true,"de":true,"da":true,"cs":true,"ca":true,"az":true,"ar":true});},"dijit/_HasDropDown":function(){define(["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","dojo/window","./registry","./focus","./popup","./_FocusMixin"],function(_b4,_b5,_b6,dom,_b7,_b8,_b9,_ba,has,_bb,_bc,_bd,win,_be,_bf,_c0,_c1,_c2){return _b4("dijit._HasDropDown",_c2,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(win.doc,_bd.release,"_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _c3=this.dropDown,_c4=false;if(e&&this._opened){var c=_b9.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_c4){if(_b8.contains(t,"dijitPopup")){_c4=true;}else{t=t.parentNode;}}if(_c4){t=e.target;if(_c3.onItemClick){var _c5;while(t&&!(_c5=_bf.byNode(t))){t=t.parentNode;}if(_c5&&_c5.onClick&&_c5.getParent){_c5.getParent().onItemClick(_c5,e);}}return;}}}if(this._opened){if(_c3.focus&&_c3.autoFocus!==false){window.setTimeout(_bc.hitch(_c3,"focus"),1);}}else{setTimeout(_bc.hitch(this,"focus"),0);}if(has("ios")){this._justGotMouseUp=true;setTimeout(_bc.hitch(this,function(){this._justGotMouseUp=false;}),0);}},_onDropDownClick:function(e){if(has("ios")&&!this._justGotMouseUp){this._onDropDownMouseDown(e);this._onDropDownMouseUp(e);}if(this._stopClickEvents){_b6.stop(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _c6={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";_b8.add(this._arrowWrapperNode||this._buttonNode,"dijit"+_c6+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,_bd.press,"_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_c7=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){_b6.stop(e);return;}}if(d&&this._opened&&e.charOrCode==_bb.ESCAPE){this.closeDropDown();_b6.stop(e);}else{if(!this._opened&&(e.charOrCode==_bb.DOWN_ARROW||((e.charOrCode==_bb.ENTER||e.charOrCode==" ")&&((_c7.tagName||"").toLowerCase()!=="input"||(_c7.type&&_c7.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;_b6.stop(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(_bc.hitch(d,"focus"),1);}}},_onBlur:function(){var _c8=_c0.curNode&&this.dropDown&&dom.isDescendant(_c0.curNode,this.dropDown.domNode);this.closeDropDown(_c8);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_c9){_c9();},loadAndOpenDropDown:function(){var d=new _b5(),_ca=_bc.hitch(this,function(){this.openDropDown();d.resolve(this.dropDown);});if(!this.isLoaded()){this.loadDropDown(_ca);}else{_ca();}return d;},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){this.loadAndOpenDropDown();}else{this.closeDropDown();}},openDropDown:function(){var _cb=this.dropDown,_cc=_cb.domNode,_cd=this._aroundNode||this.domNode,_ce=this;if(!this._preparedNode){this._preparedNode=true;if(_cc.style.width){this._explicitDDWidth=true;}if(_cc.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _cf={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_cf.width="";}if(!this._explicitDDHeight){_cf.height="";}_ba.set(_cc,_cf);var _d0=this.maxHeight;if(_d0==-1){var _d1=_be.getBox(),_d2=_b9.position(_cd,false);_d0=Math.floor(Math.max(_d2.y,_d1.h-(_d2.y+_d2.h)));}_c1.moveOffScreen(_cb);if(_cb.startup&&!_cb._started){_cb.startup();}var mb=_b9.getMarginSize(_cc);var _d3=(_d0&&mb.h>_d0);_ba.set(_cc,{overflowX:"hidden",overflowY:_d3?"auto":"hidden"});if(_d3){mb.h=_d0;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_cd.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_cd.offsetWidth);}else{delete mb.w;}}if(_bc.isFunction(_cb.resize)){_cb.resize(mb);}else{_b9.setMarginBox(_cc,mb);}}var _d4=_c1.open({parent:this,popup:_cb,around:_cd,orient:this.dropDownPosition,onExecute:function(){_ce.closeDropDown(true);},onCancel:function(){_ce.closeDropDown(true);},onClose:function(){_b7.set(_ce._popupStateNode,"popupActive",false);_b8.remove(_ce._popupStateNode,"dijitHasDropDownOpen");_ce._opened=false;}});_b7.set(this._popupStateNode,"popupActive","true");_b8.add(_ce._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _d4;},closeDropDown:function(_d5){if(this._opened){if(_d5){this.focus();}_c1.close(this.dropDown);this._opened=false;}}});});},"dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/json","dojo/_base/lang"],function(_d6,_d7,_d8,_d9,_da){return _d8("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(_db){_da.mixin(this,_db);this.connects=[];var _dc=this.store;if(!_dc.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_dc.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([_d7.after(_dc,"onNew",_da.hitch(this,"onNewItem"),true),_d7.after(_dc,"onDelete",_da.hitch(this,"onDeleteItem"),true),_d7.after(_dc,"onSet",_da.hitch(this,"onSetItem"),true)]);}},destroy:function(){var h;while(h=this.connects.pop()){h.remove();}},getRoot:function(_dd,_de){if(this.root){_dd(this.root);}else{this.store.fetch({query:this.query,onComplete:_da.hitch(this,function(_df){if(_df.length!=1){throw new Error(this.declaredClass+": query "+_d9.stringify(this.query)+" returned "+_df.length+" items, but must return exactly one item");}this.root=_df[0];_dd(this.root);}),onError:_de});}},mayHaveChildren:function(_e0){return _d6.some(this.childrenAttrs,function(_e1){return this.store.hasAttribute(_e0,_e1);},this);},getChildren:function(_e2,_e3,_e4){var _e5=this.store;if(!_e5.isItemLoaded(_e2)){var _e6=_da.hitch(this,arguments.callee);_e5.loadItem({item:_e2,onItem:function(_e7){_e6(_e7,_e3,_e4);},onError:_e4});return;}var _e8=[];for(var i=0;i=0){_11d=rs.childNodes[_114.startOffset];}win.withGlobal(this.editor.window,lang.hitch(this,function(){var _11e=doc.createElement("br");var _11f=doc.createTextNode(" ");if(!_11d){rs.appendChild(_11e);rs.appendChild(_11f);}else{_107.place(_11e,_11d,"before");_107.place(_11f,_11e,"after");}_115=_10c.create(win.global);_115.setStart(_11f,0);_115.setEnd(_11f,_11f.length);_113.removeAllRanges();_113.addRange(_115);_10d.collapse(true);}));}}}else{_10b.prototype.execCommand.call(this.editor,"inserthtml","
");}}return false;}var _120=true;_113=_10c.getSelection(this.editor.window);_114=_113.getRangeAt(0);if(!_114.collapsed){_114.deleteContents();_113=_10c.getSelection(this.editor.window);_114=_113.getRangeAt(0);}var _121=_10c.getBlockAncestor(_114.endContainer,null,this.editor.editNode);var _122=_121.blockNode;if((this._checkListLater=(_122&&(_122.nodeName=="LI"||_122.parentNode.nodeName=="LI")))){if(has("mozilla")){this._pressedEnterInBlock=_122;}if(/^(\s| | |\xA0|]*\bclass=['"]Apple-style-span['"][^>]*>(\s| | |\xA0)<\/span>)?(
)?$/.test(_122.innerHTML)){_122.innerHTML="";if(has("webkit")){_115=_10c.create(this.editor.window);_115.setStart(_122,0);_113.removeAllRanges();_113.addRange(_115);}this._checkListLater=false;}return true;}if(!_121.blockNode||_121.blockNode===this.editor.editNode){try{_10b.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);}catch(e2){}_121={blockNode:win.withGlobal(this.editor.window,"getAncestorElement",_10d,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_121.blockNode){if(_121.blockNode!=this.editor.editNode&&(!(_121.blockNode.textContent||_121.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)){this.removeTrailingBr(_121.blockNode);return false;}}else{_121.blockNode=this.editor.editNode;}_113=_10c.getSelection(this.editor.window);_114=_113.getRangeAt(0);}var _123=doc.createElement(this.blockNodeForEnter);_123.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_121.blockNode);var _124=_114.endOffset;var node=_114.endContainer;if(node.length<_124){var ret=this._adjustNodeAndOffset(node,_124);node=ret.node;_124=ret.offset;}if(_10c.atEndOfContainer(_121.blockNode,node,_124)){if(_121.blockNode===_121.blockContainer){_121.blockNode.appendChild(_123);}else{_107.place(_123,_121.blockNode,"after");}_120=false;_115=_10c.create(this.editor.window);_115.setStart(_123,0);_113.removeAllRanges();_113.addRange(_115);if(this.editor.height){_109.scrollIntoView(_123);}}else{if(_10c.atBeginningOfContainer(_121.blockNode,_114.startContainer,_114.startOffset)){_107.place(_123,_121.blockNode,_121.blockNode===_121.blockContainer?"first":"before");if(_123.nextSibling&&this.editor.height){_115=_10c.create(this.editor.window);_115.setStart(_123.nextSibling,0);_113.removeAllRanges();_113.addRange(_115);_109.scrollIntoView(_123.nextSibling);}_120=false;}else{if(_121.blockNode===_121.blockContainer){_121.blockNode.appendChild(_123);}else{_107.place(_123,_121.blockNode,"after");}_120=false;if(_121.blockNode.style){if(_123.style){if(_121.blockNode.style.cssText){_123.style.cssText=_121.blockNode.style.cssText;}}}rs=_114.startContainer;var _125;if(rs&&rs.nodeType==3){var _126,_127;_124=_114.endOffset;if(rs.length<_124){ret=this._adjustNodeAndOffset(rs,_124);rs=ret.node;_124=ret.offset;}txt=rs.nodeValue;_116=doc.createTextNode(txt.substring(0,_124));_117=doc.createTextNode(txt.substring(_124,txt.length));_107.place(_116,rs,"before");_107.place(_117,rs,"after");_107.destroy(rs);var _128=_116.parentNode;while(_128!==_121.blockNode){var tg=_128.tagName;var _129=doc.createElement(tg);if(_128.style){if(_129.style){if(_128.style.cssText){_129.style.cssText=_128.style.cssText;}}}if(_128.tagName==="FONT"){if(_128.color){_129.color=_128.color;}if(_128.face){_129.face=_128.face;}if(_128.size){_129.size=_128.size;}}_126=_117;while(_126){_127=_126.nextSibling;_129.appendChild(_126);_126=_127;}_107.place(_129,_128,"after");_116=_128;_117=_129;_128=_128.parentNode;}_126=_117;if(_126.nodeType==1||(_126.nodeType==3&&_126.nodeValue)){_123.innerHTML="";}_125=_126;while(_126){_127=_126.nextSibling;_123.appendChild(_126);_126=_127;}}_115=_10c.create(this.editor.window);var _12a;var _12b=_125;if(this.blockNodeForEnter!=="BR"){while(_12b){_12a=_12b;_127=_12b.firstChild;_12b=_127;}if(_12a&&_12a.parentNode){_123=_12a.parentNode;_115.setStart(_123,0);_113.removeAllRanges();_113.addRange(_115);if(this.editor.height){_109.scrollIntoView(_123);}if(has("mozilla")){this._pressedEnterInBlock=_121.blockNode;}}else{_120=true;}}else{_115.setStart(_123,0);_113.removeAllRanges();_113.addRange(_115);if(this.editor.height){_109.scrollIntoView(_123);}if(has("mozilla")){this._pressedEnterInBlock=_121.blockNode;}}}}return _120;},_adjustNodeAndOffset:function(node,_12c){while(node.length<_12c&&node.nextSibling&&node.nextSibling.nodeType==3){_12c=_12c-node.length;node=node.nextSibling;}return {"node":node,"offset":_12c};},removeTrailingBr:function(_12d){var para=/P|DIV|LI/i.test(_12d.tagName)?_12d:_10d.getParentOfType(_12d,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&¶.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||para.lastChild.tagName=="BR"){_107.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}}});});},"dijit/_MenuBase":function(){define(["./popup","dojo/window","./_Widget","./_KeyNavContainer","./_TemplatedMixin","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/lang","dojo/_base/array"],function(pm,_12e,_12f,_130,_131,_132,dom,_133,_134,lang,_135){return _132("dijit._MenuBase",[_12f,_131,_130],{parentMenu:null,popupDelay:500,onExecute:function(){},onCancel:function(){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _136=this._getTopMenu();if(_136&&_136._isMenuBar){_136.focusNext();}}},_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _137=this.currentPopup.parentMenu;if(_137.focusedChild){_137.focusedChild._setSelected(false);}_137.focusedChild=this.currentPopup.from_item;_137.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(lang.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _138=item.popup;if(_138){this._stopPendingCloseTimer(_138);_138._pendingClose_timer=setTimeout(function(){_138._pendingClose_timer=null;if(_138.parentMenu){_138.parentMenu.currentPopup=null;}pm.close(_138);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_139){if(_139._pendingClose_timer){clearTimeout(_139._pendingClose_timer);_139._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _13a=this.focusedChild;if(!_13a){return;}var _13b=_13a.popup;if(_13b.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);pm.close(this.currentPopup);}_13b.parentMenu=this;_13b.from_item=_13a;var self=this;pm.open({parent:this,popup:_13b,around:_13a.domNode,orient:this._orient||["after","before"],onCancel:function(){self.focusChild(_13a);self._cleanUp();_13a._setSelected(true);self.focusedChild=_13a;},onExecute:lang.hitch(this,"_cleanUp")});this.currentPopup=_13b;_13b.connect(_13b.domNode,"onmouseenter",lang.hitch(self,"_onPopupHover"));if(_13b.focus){_13b._focus_timer=setTimeout(lang.hitch(_13b,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;_134.replace(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;_134.replace(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup){if(_135.indexOf(this._focusManager.activeStack,this.id)>=0){_133.set(this.focusedChild.focusNode,"tabIndex",this.tabIndex);this.focusedChild.focusNode.focus();}pm.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});});},"dijit/PopupMenuBarItem":function(){define(["dojo/_base/declare","./PopupMenuItem","./MenuBarItem"],function(_13c,_13d,_13e){var _13f=_13e._MenuBarItemMixin;return _13c("dijit.PopupMenuBarItem",[_13d,_13f],{});});},"dijit/tree/ForestStoreModel":function(){define("dijit/tree/ForestStoreModel",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","./TreeStoreModel"],function(_140,_141,lang,win,_142){return _141("dijit.tree.ForestStoreModel",_142,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_143){this.root={store:this,root:true,id:_143.rootId,label:_143.rootLabel,children:_143.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_144,_145,_146){if(_144===this.root){if(this.root.children){_145(this.root.children);}else{this.store.fetch({query:this.query,onComplete:lang.hitch(this,function(_147){this.root.children=_147;_145(_147);}),onError:_146});}}else{this.inherited(arguments);}},isItem:function(_148){return (_148===this.root)?true:this.inherited(arguments);},fetchItemByIdentity:function(_149){if(_149.identity==this.root.id){var _14a=_149.scope?_149.scope:win.global;if(_149.onItem){_149.onItem.call(_14a,this.root);}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_14b,_14c){if(_14b===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(){},pasteItem:function(_14d,_14e,_14f,_150,_151){if(_14e===this.root){if(!_150){this.onLeaveRoot(_14d);}}this.inherited(arguments,[_14d,_14e===this.root?null:_14e,_14f===this.root?null:_14f,_150,_151]);if(_14f===this.root){this.onAddToRoot(_14d);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _152=this.root.children||[];this.store.fetch({query:this.query,onComplete:lang.hitch(this,function(_153){this.root.children=_153;if(_152.length!=_153.length||_140.some(_152,function(item,idx){return _153[idx]!=item;})){this.onChildrenChange(this.root,_153);}})});},onNewItem:function(item,_154){this._requeryTop();this.inherited(arguments);},onDeleteItem:function(item){if(_140.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);},onSetItem:function(item,_155,_156,_157){this._requeryTop();this.inherited(arguments);}});});},"url:dijit/layout/templates/AccordionButton.html":"
\n\t
+-\"\"\n\t\t\n\t
\n
\n","dijit/TitlePane":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-geometry","dojo/_base/event","dojo/fx","dojo/_base/kernel","dojo/keys","./_CssStateMixin","./_TemplatedMixin","./layout/ContentPane","dojo/text!./templates/TitlePane.html","./_base/manager"],function(_158,_159,dom,_15a,_15b,_15c,_15d,_15e,_15f,keys,_160,_161,_162,_163,_164){return _159("dijit.TitlePane",[_162,_161,_160],{title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:true,toggleable:true,tabIndex:"0",duration:_164.defaultDuration,baseClass:"dijitTitlePane",templateString:_163,doLayout:false,_setTooltipAttr:{node:"focusNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);dom.setSelectable(this.titleNode,false);},postCreate:function(){this.inherited(arguments);if(this.toggleable){this._trackMouseState(this.titleBarNode,"dijitTitlePaneTitle");}var _165=this.hideNode,_166=this.wipeNode;this._wipeIn=_15e.wipeIn({node:_166,duration:this.duration,beforeBegin:function(){_165.style.display="";}});this._wipeOut=_15e.wipeOut({node:_166,duration:this.duration,onEnd:function(){_165.style.display="none";}});},_setOpenAttr:function(open,_167){_158.forEach([this._wipeIn,this._wipeOut],function(_168){if(_168&&_168.status()=="playing"){_168.stop();}});if(_167){var anim=this[open?"_wipeIn":"_wipeOut"];anim.play();}else{this.hideNode.style.display=this.wipeNode.style.display=open?"":"none";}if(this._started){if(open){this._onShow();}else{this.onHide();}}this.arrowNodeInner.innerHTML=open?"-":"+";this.containerNode.setAttribute("aria-hidden",open?"false":"true");this.focusNode.setAttribute("aria-pressed",open?"true":"false");this._set("open",open);this._setCss();},_setToggleableAttr:function(_169){this.focusNode.setAttribute("role",_169?"button":"heading");if(_169){this.focusNode.setAttribute("aria-controls",this.id+"_pane");_15a.set(this.focusNode,"tabIndex",this.tabIndex);}else{_15a.remove(this.focusNode,"tabIndex");}this._set("toggleable",_169);this._setCss();},_setContentAttr:function(_16a){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}_15c.setMarginBox(this.wipeNode,{h:_15c.getMarginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){this._setOpenAttr(!this.open,true);},_setCss:function(){var node=this.titleBarNode||this.focusNode;var _16b=this._titleBarClass;this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");_15b.replace(node,this._titleBarClass,_16b||"");this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==keys.ENTER||e.charOrCode==" "){if(this.toggleable){this.toggle();}_15d.stop(e);}else{if(e.charOrCode==keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleClick:function(){if(this.toggleable){this.toggle();}},setTitle:function(_16c){_15f.deprecated("dijit.TitlePane.setTitle() is deprecated. Use set('title', ...) instead.","","2.0");this.set("title",_16c);}});});},"dijit/form/_ComboBoxMenuMixin":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/i18n","dojo/_base/window","dojo/i18n!./nls/ComboBox"],function(_16d,_16e,_16f,i18n,win){return _16e("dijit.form._ComboBoxMenuMixin",null,{_messages:null,postMixInProperties:function(){this.inherited(arguments);this._messages=i18n.getLocalization("dijit.form","ComboBox",this.lang);},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];},_setValueAttr:function(_170){this.value=_170;this.onChange(_170);},onClick:function(node){if(node==this.previousButton){this._setSelectedAttr(null);this.onPage(-1);}else{if(node==this.nextButton){this._setSelectedAttr(null);this.onPage(1);}else{this.onChange(node);}}},onChange:function(){},onPage:function(){},onClose:function(){this._setSelectedAttr(null);},_createOption:function(item,_171){var _172=this._createMenuItem();var _173=_171(item);if(_173.html){_172.innerHTML=_173.label;}else{_172.appendChild(win.doc.createTextNode(_173.label));}if(_172.innerHTML==""){_172.innerHTML=" ";}this.applyTextDir(_172,(_172.innerText||_172.textContent||""));_172.item=item;return _172;},createOptions:function(_174,_175,_176){this.previousButton.style.display=(_175.start==0)?"none":"";_16f.set(this.previousButton,"id",this.id+"_prev");_16d.forEach(_174,function(item,i){var _177=this._createOption(item,_176);_16f.set(_177,"id",this.id+i);this.nextButton.parentNode.insertBefore(_177,this.nextButton);},this);var _178=false;if(_174.total&&!_174.total.then&&_174.total!=-1){if((_175.start+_175.count)<_174.total){_178=true;}else{if((_175.start+_175.count)>_174.total&&_175.count==_174.length){_178=true;}}}else{if(_175.count==_174.length){_178=true;}}this.nextButton.style.display=_178?"":"none";_16f.set(this.nextButton,"id",this.id+"_next");return this.containerNode.childNodes;},clearResultList:function(){var _179=this.containerNode;while(_179.childNodes.length>2){_179.removeChild(_179.childNodes[_179.childNodes.length-2]);}this._setSelectedAttr(null);},highlightFirstOption:function(){this.selectFirstNode();},highlightLastOption:function(){this.selectLastNode();},selectFirstNode:function(){this.inherited(arguments);if(this.getHighlightedOption()==this.previousButton){this.selectNextNode();}},selectLastNode:function(){this.inherited(arguments);if(this.getHighlightedOption()==this.nextButton){this.selectPreviousNode();}},getHighlightedOption:function(){return this._getSelectedAttr();}});});},"url:dijit/form/templates/DropDownButton.html":"\n","dijit/form/ToggleButton":function(){define("dijit/form/ToggleButton",["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(_17a,_17b,_17c,_17d){return _17a("dijit.form.ToggleButton",[_17c,_17d],{baseClass:"dijitToggleButton",setChecked:function(_17e){_17b.deprecated("setChecked("+_17e+") is deprecated. Use set('checked',"+_17e+") instead.","","2.0");this.set("checked",_17e);}});});},"dijit/form/NumberSpinner":function(){define(["dojo/_base/declare","dojo/_base/event","dojo/keys","./_Spinner","./NumberTextBox"],function(_17f,_180,keys,_181,_182){return _17f("dijit.form.NumberSpinner",[_181,_182.Mixin],{adjust:function(val,_183){var tc=this.constraints,v=isNaN(val),_184=!isNaN(tc.max),_185=!isNaN(tc.min);if(v&&_183!=0){val=(_183>0)?_185?tc.min:_184?tc.max:0:_184?this.constraints.max:_185?tc.min:0;}var _186=val+_183;if(v||isNaN(_186)){return val;}if(_184&&(_186>tc.max)){_186=tc.max;}if(_185&&(_186\n\t
+-\"\"\n\t\t\n\t
\n\n"}});define("dijit/layout/AccordionContainer",["require","dojo/_base/array","dojo/_base/declare","dojo/_base/event","dojo/_base/fx","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/_base/kernel","dojo/keys","dojo/_base/lang","dojo/_base/sniff","dojo/topic","../focus","../_base/manager","dojo/ready","../_Widget","../_Container","../_TemplatedMixin","../_CssStateMixin","./StackContainer","./ContentPane","dojo/text!./templates/AccordionButton.html"],function(_195,_196,_197,_198,fx,dom,_199,_19a,_19b,_19c,_19d,keys,lang,has,_19e,_19f,_1a0,_1a1,_1a2,_1a3,_1a4,_1a5,_1a6,_1a7,_1a8){var _1a9=_197("dijit.layout._AccordionButton",[_1a2,_1a4,_1a5],{templateString:_1a8,label:"",_setLabelAttr:{node:"titleTextNode",type:"innerHTML"},title:"",_setTitleAttr:{node:"titleTextNode",type:"attribute",attribute:"title"},iconClassAttr:"",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitAccordionTitle",getParent:function(){return this.parent;},buildRendering:function(){this.inherited(arguments);var _1aa=this.id.replace(" ","_");_199.set(this.titleTextNode,"id",_1aa+"_title");this.focusNode.setAttribute("aria-labelledby",_199.get(this.titleTextNode,"id"));dom.setSelectable(this.domNode,false);},getTitleHeight:function(){return _19c.getMarginSize(this.domNode).h;},_onTitleClick:function(){var _1ab=this.getParent();_1ab.selectChild(this.contentWidget,true);_19f.focus(this.focusNode);},_onTitleKeyPress:function(evt){return this.getParent()._onKeyPress(evt,this.contentWidget);},_setSelectedAttr:function(_1ac){this._set("selected",_1ac);this.focusNode.setAttribute("aria-expanded",_1ac);this.focusNode.setAttribute("aria-selected",_1ac);this.focusNode.setAttribute("tabIndex",_1ac?"0":"-1");}});var _1ad=_197("dijit.layout._AccordionInnerContainer",[_1a2,_1a5],{baseClass:"dijitAccordionInnerContainer",isLayoutContainer:true,buildRendering:function(){this.domNode=_19b.place("