/*
	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
*/

window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojo.colors"],["provide","dijit._PaletteMixin"],["provide","dijit.ColorPalette"],["provide","dijit.Declaration"],["provide","dojo.dnd.common"],["provide","dojo.dnd.autoscroll"],["provide","dojo.dnd.Mover"],["provide","dojo.dnd.Moveable"],["provide","dojo.dnd.move"],["provide","dojo.dnd.TimedMoveable"],["provide","dojo.fx.Toggler"],["provide","dojo.fx"],["provide","dijit.form._FormMixin"],["provide","dijit._DialogMixin"],["provide","dijit.DialogUnderlay"],["provide","dijit.layout._ContentPaneResizeMixin"],["provide","dojo.html"],["provide","dijit.layout.ContentPane"],["provide","dijit.TooltipDialog"],["provide","dijit.Dialog"],["provide","dijit._editor.selection"],["provide","dijit._editor.range"],["provide","dijit._editor.html"],["provide","dijit._editor.RichText"],["provide","dijit._KeyNavContainer"],["provide","dijit.ToolbarSeparator"],["provide","dijit.Toolbar"],["provide","dijit._HasDropDown"],["provide","dijit.form.Button"],["provide","dijit._editor._Plugin"],["provide","dijit._editor.plugins.EnterKeyHandling"],["provide","dijit.Editor"],["provide","dojo.regexp"],["provide","dojo.data.util.sorter"],["provide","dojo.data.util.simpleFetch"],["provide","dojo.data.util.filter"],["provide","dijit.form.TextBox"],["provide","dijit.Tooltip"],["provide","dijit.form.ValidationTextBox"],["provide","dijit.form.ComboBox"],["provide","dijit.form.FilteringSelect"],["provide","dojo.data.ItemFileReadStore"],["provide","dijit._editor.plugins.FontChoice"],["provide","dijit.form.DropDownButton"],["provide","dijit.form._FormSelectWidget"],["provide","dijit.MenuItem"],["provide","dijit.PopupMenuItem"],["provide","dijit.CheckedMenuItem"],["provide","dijit.MenuSeparator"],["provide","dijit.Menu"],["provide","dijit.form.Select"],["provide","dijit._editor.plugins.LinkDialog"],["provide","dijit.MenuBar"],["provide","dijit.MenuBarItem"],["provide","dijit.PopupMenuBarItem"],["provide","dojo.number"],["provide","dijit.ProgressBar"],["provide","dijit.TitlePane"],["provide","dojo.DeferredList"],["provide","dojo.cookie"],["provide","dijit.tree.TreeStoreModel"],["provide","dijit.tree.ForestStoreModel"],["provide","dojo.dnd.Container"],["provide","dijit.tree._dndContainer"],["provide","dijit.tree._dndSelector"],["provide","dijit.Tree"],["provide","dijit.InlineEditBox"],["provide","dijit.form.Form"],["provide","dijit.form.ComboButton"],["provide","dijit.form.ToggleButton"],["provide","dijit.form.CheckBox"],["provide","dijit.form.RadioButton"],["provide","dojo.cldr.monetary"],["provide","dojo.currency"],["provide","dijit.form.NumberTextBox"],["provide","dijit.form.CurrencyTextBox"],["provide","dojo.cldr.supplemental"],["provide","dojo.date"],["provide","dojo.date.locale"],["provide","dijit.Calendar"],["provide","dijit.form._DateTimeTextBox"],["provide","dijit.form.DateTextBox"],["provide","dijit.form._Spinner"],["provide","dijit.form.NumberSpinner"],["provide","dijit.form.MultiSelect"],["provide","dijit.form.HorizontalSlider"],["provide","dijit.form.VerticalSlider"],["provide","dijit.form.HorizontalRule"],["provide","dijit.form.VerticalRule"],["provide","dijit.form.HorizontalRuleLabels"],["provide","dijit.form.VerticalRuleLabels"],["provide","dijit.form.SimpleTextarea"],["provide","dijit.form.Textarea"],["provide","dijit.layout.StackController"],["provide","dijit.layout.StackContainer"],["provide","dijit.layout.AccordionPane"],["provide","dijit.layout.AccordionContainer"],["provide","dijit.layout.BorderContainer"],["provide","dijit.layout.LayoutContainer"],["provide","dijit.layout.LinkPane"],["provide","dijit.layout.SplitContainer"],["provide","dijit.layout._TabContainerBase"],["provide","dijit.layout.TabController"],["provide","dijit.layout.ScrollingTabController"],["provide","dijit.layout.TabContainer"],["provide","dijit.dijit-all"],["i18n._preloadLocalizations","dijit.nls.dijit-all",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojo.colors"]){_4._hasResource["dojo.colors"]=true;_4.provide("dojo.colors");_4.getObject("colors",true,_4);(function(){var _7=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};_4.colorFromRgb=function(_8,_9){var m=_8.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=_4.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return _4.colorFromArray(a,_9);}return _4.colorFromArray(c,_9);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_7(m1,m2,H+1/3)*256,_7(m1,m2,H)*256,_7(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return _4.colorFromArray(a,_9);}}return null;};var _a=function(c,_b,_c){c=Number(c);return isNaN(c)?_c:c<_b?_b:c>_c?_c:c;};_4.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_a(t.r,0,255));t.g=Math.round(_a(t.g,0,255));t.b=Math.round(_a(t.b,0,255));t.a=_a(t.a,0,1);return this;};})();_4.colors.makeGrey=function(g,a){return _4.colorFromArray([g,g,g,a]);};_4.mixin(_4.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!_4._hasResource["dijit._PaletteMixin"]){_4._hasResource["dijit._PaletteMixin"]=true;_4.provide("dijit._PaletteMixin");_4.declare("dijit._PaletteMixin",[_5._CssStateMixin],{defaultTimeout:500,timeoutChangeRate:0.9,value:null,_selectedCell:-1,tabIndex:"0",cellClass:"dijitPaletteCell",dyeClass:"",_preparePalette:function(_d,_e,_f){this._cells=[];var url=this._blankGif;_f=_f||_4.getObject(this.dyeClass);for(var row=0;row<_d.length;row++){var _10=_4.create("tr",{tabIndex:"-1"},this.gridNode);for(var col=0;col<_d[row].length;col++){var _11=_d[row][col];if(_11){var _12=new _f(_11,row,col);var _13=_4.create("td",{"class":this.cellClass,tabIndex:"-1",title:_e[_11]});_12.fillCell(_13,url);this.connect(_13,"ondijitclick","_onCellClick");this._trackMouseState(_13,this.cellClass);_4.place(_13,_10);_13.index=this._cells.length;this._cells.push({node:_13,dye:_12});}}}this._xDim=_d[0].length;this._yDim=_d.length;var _14={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1};for(var key in _14){this._connects.push(_5.typematic.addKeyListener(this.domNode,{charOrCode:_4.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _15=_14[key];return function(_16){this._navigateByKey(_15,_16);};}(),this.timeoutChangeRate,this.defaultTimeout));}},postCreate:function(){this.inherited(arguments);this._setCurrent(this._cells[0].node);},focus:function(){_5.focus(this._currentFocus);},_onCellClick:function(evt){var _17=evt.currentTarget,_18=this._getDye(_17).getValue();this._setCurrent(_17);setTimeout(_4.hitch(this,function(){_5.focus(_17);this._setValueAttr(_18,true);}));_4.removeClass(_17,"dijitPaletteCellHover");_4.stopEvent(evt);},_setCurrent:function(_19){if("_currentFocus" in this){_4.attr(this._currentFocus,"tabIndex","-1");}this._currentFocus=_19;if(_19){_4.attr(_19,"tabIndex",this.tabIndex);}},_setValueAttr:function(_1a,_1b){if(this._selectedCell>=0){_4.removeClass(this._cells[this._selectedCell].node,"dijitPaletteCellSelected");}this._selectedCell=-1;if(_1a){for(var i=0;i<this._cells.length;i++){if(_1a==this._cells[i].dye.getValue()){this._selectedCell=i;_4.addClass(this._cells[i].node,"dijitPaletteCellSelected");break;}}}this._set("value",this._selectedCell>=0?_1a:null);if(_1b||_1b===undefined){this.onChange(_1a);}},onChange:function(_1c){},_navigateByKey:function(_1d,_1e){if(_1e==-1){return;}var _1f=this._currentFocus.index+_1d;if(_1f<this._cells.length&&_1f>-1){var _20=this._cells[_1f].node;this._setCurrent(_20);setTimeout(_4.hitch(_5,"focus",_20),0);}},_getDye:function(_21){return this._cells[_21.index].dye;}});}if(!_4._hasResource["dijit.ColorPalette"]){_4._hasResource["dijit.ColorPalette"]=true;_4.provide("dijit.ColorPalette");_4.declare("dijit.ColorPalette",[_5._Widget,_5._Templated,_5._PaletteMixin],{palette:"7x10",_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},templateString:_4.cache("dijit","templates/ColorPalette.html","<div class=\"dijitInline dijitColorPalette\">\r\n\t<table class=\"dijitPaletteTable\" cellSpacing=\"0\" cellPadding=\"0\">\r\n\t\t<tbody dojoAttachPoint=\"gridNode\"></tbody>\r\n\t</table>\r\n</div>\r\n"),baseClass:"dijitColorPalette",buildRendering:function(){this.inherited(arguments);this._preparePalette(this._palettes[this.palette],_4.i18n.getLocalization("dojo","colors",this.lang),_4.declare(_5._Color,{hc:_4.hasClass(_4.body(),"dijit_a11y"),palette:this.palette}));}});_4.declare("dijit._Color",_4.Color,{template:"<span class='dijitInline dijitPaletteImg'>"+"<img src='${blankGif}' alt='${alt}' class='dijitColorPaletteSwatch' style='background-color: ${color}'/>"+"</span>",hcTemplate:"<span class='dijitInline dijitPaletteImg' style='position: relative; overflow: hidden; height: 12px; width: 14px;'>"+"<img src='${image}' alt='${alt}' style='position: absolute; left: ${left}px; top: ${top}px; ${size}'/>"+"</span>",_imagePaths:{"7x10":_4.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":_4.moduleUrl("dijit.themes","a11y/colors3x4.png")},constructor:function(_22,row,col){this._alias=_22;this._row=row;this._col=col;this.setColor(_4.Color.named[_22]);},getValue:function(){return this.toHex();},fillCell:function(_23,_24){var _25=_4.string.substitute(this.hc?this.hcTemplate:this.template,{color:this.toHex(),blankGif:_24,alt:this._alias,image:this._imagePaths[this.palette].toString(),left:this._col*-20-5,top:this._row*-20-5,size:this.palette=="7x10"?"height: 145px; width: 206px":"height: 64px; width: 86px"});_4.place(_25,_23);}});}if(!_4._hasResource["dijit.Declaration"]){_4._hasResource["dijit.Declaration"]=true;_4.provide("dijit.Declaration");_4.declare("dijit.Declaration",_5._Widget,{_noScript:true,stopParser:true,widgetClass:"",defaults:null,mixins:[],buildRendering:function(){var src=this.srcNodeRef.parentNode.removeChild(this.srcNodeRef),_26=_4.query("> script[type^='dojo/method']",src).orphan(),_27=_4.query("> script[type^='dojo/connect']",src).orphan(),_28=src.nodeName;var _29=this.defaults||{};_4.forEach(_26,function(s){var evt=s.getAttribute("event")||s.getAttribute("data-dojo-event"),_2a=_4.parser._functionFromScript(s);if(evt){_29[evt]=_2a;}else{_27.push(s);}});this.mixins=this.mixins.length?_4.map(this.mixins,function(_2b){return _4.getObject(_2b);}):[_5._Widget,_5._Templated];_29.widgetsInTemplate=true;_29._skipNodeCache=true;_29.templateString="<"+_28+" class='"+src.className+"' dojoAttachPoint='"+(src.getAttribute("dojoAttachPoint")||"")+"' dojoAttachEvent='"+(src.getAttribute("dojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_28+">";_4.query("[dojoType]",src).forEach(function(_2c){_2c.removeAttribute("dojoType");});var wc=_4.declare(this.widgetClass,this.mixins,_29);_4.forEach(_27,function(s){var evt=s.getAttribute("event")||s.getAttribute("data-dojo-event")||"postscript",_2d=_4.parser._functionFromScript(s);_4.connect(wc.prototype,evt,_2d);});}});}if(!_4._hasResource["dojo.dnd.common"]){_4._hasResource["dojo.dnd.common"]=true;_4.provide("dojo.dnd.common");_4.getObject("dnd",true,_4);_4.dnd.getCopyKeyState=_4.isCopyKey;_4.dnd._uniqueId=0;_4.dnd.getUniqueId=function(){var id;do{id=_4._scopeName+"Unique"+(++_4.dnd._uniqueId);}while(_4.byId(id));return id;};_4.dnd._empty={};_4.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!_4._hasResource["dojo.dnd.autoscroll"]){_4._hasResource["dojo.dnd.autoscroll"]=true;_4.provide("dojo.dnd.autoscroll");_4.getObject("dnd",true,_4);_4.dnd.getViewport=_4.window.getBox;_4.dnd.V_TRIGGER_AUTOSCROLL=32;_4.dnd.H_TRIGGER_AUTOSCROLL=32;_4.dnd.V_AUTOSCROLL_VALUE=16;_4.dnd.H_AUTOSCROLL_VALUE=16;_4.dnd.autoScroll=function(e){var v=_4.window.getBox(),dx=0,dy=0;if(e.clientX<_4.dnd.H_TRIGGER_AUTOSCROLL){dx=-_4.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_4.dnd.H_TRIGGER_AUTOSCROLL){dx=_4.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<_4.dnd.V_TRIGGER_AUTOSCROLL){dy=-_4.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_4.dnd.V_TRIGGER_AUTOSCROLL){dy=_4.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};_4.dnd._validNodes={"div":1,"p":1,"td":1};_4.dnd._validOverflow={"auto":1,"scroll":1};_4.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _4.dnd._validNodes)){var s=_4.getComputedStyle(n);if(s.overflow.toLowerCase() in _4.dnd._validOverflow){var b=_4._getContentBox(n,s),t=_4.position(n,true);var w=Math.min(_4.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(_4.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(_4.isWebKit||_4.isOpera){rx+=_4.body().scrollLeft;ry+=_4.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _2e=n.scrollLeft,_2f=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_2e!=n.scrollLeft||_2f!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}_4.dnd.autoScroll(e);};}if(!_4._hasResource["dojo.dnd.Mover"]){_4._hasResource["dojo.dnd.Mover"]=true;_4.provide("dojo.dnd.Mover");_4.declare("dojo.dnd.Mover",null,{constructor:function(_30,e,_31){this.node=_4.byId(_30);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=_31),d=_30.ownerDocument;this.events=[_4.connect(d,"onmousemove",this,"onFirstMove"),_4.connect(d,"ontouchmove",this,"onFirstMove"),_4.connect(d,"onmousemove",this,"onMouseMove"),_4.connect(d,"ontouchmove",this,"onMouseMove"),_4.connect(d,"onmouseup",this,"onMouseUp"),_4.connect(d,"ontouchend",this,"onMouseUp"),_4.connect(d,"ondragstart",_4.stopEvent),_4.connect(d.body,"onselectstart",_4.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_4.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);_4.stopEvent(e);},onMouseUp:function(e){if(_4.isWebKit&&_4.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_4.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=_4.marginBox(this.node);var b=_4.doc.body;var bs=_4.getComputedStyle(b);var bm=_4._getMarginBox(b,bs);var bc=_4._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}_4.disconnect(this.events.shift());_4.disconnect(this.events.shift());},destroy:function(){_4.forEach(this.events,_4.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!_4._hasResource["dojo.dnd.Moveable"]){_4._hasResource["dojo.dnd.Moveable"]=true;_4.provide("dojo.dnd.Moveable");_4.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_32,_33){this.node=_4.byId(_32);if(!_33){_33={};}this.handle=_33.handle?_4.byId(_33.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_33.delay>0?_33.delay:0;this.skip=_33.skip;this.mover=_33.mover?_33.mover:_4.dnd.Mover;this.events=[_4.connect(this.handle,"onmousedown",this,"onMouseDown"),_4.connect(this.handle,"ontouchstart",this,"onMouseDown"),_4.connect(this.handle,"ondragstart",this,"onSelectStart"),_4.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_34,_35){return new _4.dnd.Moveable(_35,_34);},destroy:function(){_4.forEach(this.events,_4.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&_4.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(_4.connect(this.handle,"onmousemove",this,"onMouseMove"),_4.connect(this.handle,"ontouchmove",this,"onMouseMove"),_4.connect(this.handle,"onmouseup",this,"onMouseUp"),_4.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}_4.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}_4.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){_4.disconnect(this.events.pop());}_4.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!_4.dnd.isFormElement(e)){_4.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_36){_4.publish("/dnd/move/start",[_36]);_4.addClass(_4.body(),"dojoMove");_4.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_37){_4.publish("/dnd/move/stop",[_37]);_4.removeClass(_4.body(),"dojoMove");_4.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_38,e){},onMove:function(_39,_3a,e){this.onMoving(_39,_3a);var s=_39.node.style;s.left=_3a.l+"px";s.top=_3a.t+"px";this.onMoved(_39,_3a);},onMoving:function(_3b,_3c){},onMoved:function(_3d,_3e){}});}if(!_4._hasResource["dojo.dnd.move"]){_4._hasResource["dojo.dnd.move"]=true;_4.provide("dojo.dnd.move");_4.declare("dojo.dnd.move.constrainedMoveable",_4.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_3f,_40){return new _4.dnd.move.constrainedMoveable(_40,_3f);},constructor:function(_41,_42){if(!_42){_42={};}this.constraints=_42.constraints;this.within=_42.within;},onFirstMove:function(_43){var c=this.constraintBox=this.constraints.call(this,_43);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=_4._getMarginSize(_43.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_44,_45){var c=this.constraintBox,s=_44.node.style;this.onMoving(_44,_45);_45.l=_45.l<c.l?c.l:c.r<_45.l?c.r:_45.l;_45.t=_45.t<c.t?c.t:c.b<_45.t?c.b:_45.t;s.left=_45.l+"px";s.top=_45.t+"px";this.onMoved(_44,_45);}});_4.declare("dojo.dnd.move.boxConstrainedMoveable",_4.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_46,_47){return new _4.dnd.move.boxConstrainedMoveable(_47,_46);},constructor:function(_48,_49){var box=_49&&_49.box;this.constraints=function(){return box;};}});_4.declare("dojo.dnd.move.parentConstrainedMoveable",_4.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_4a,_4b){return new _4.dnd.move.parentConstrainedMoveable(_4b,_4a);},constructor:function(_4c,_4d){var _4e=_4d&&_4d.area;this.constraints=function(){var n=this.node.parentNode,s=_4.getComputedStyle(n),mb=_4._getMarginBox(n,s);if(_4e=="margin"){return mb;}var t=_4._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_4e=="border"){return mb;}t=_4._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_4e=="padding"){return mb;}t=_4._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});_4.dnd.constrainedMover=_4.dnd.move.constrainedMover;_4.dnd.boxConstrainedMover=_4.dnd.move.boxConstrainedMover;_4.dnd.parentConstrainedMover=_4.dnd.move.parentConstrainedMover;}if(!_4._hasResource["dojo.dnd.TimedMoveable"]){_4._hasResource["dojo.dnd.TimedMoveable"]=true;_4.provide("dojo.dnd.TimedMoveable");(function(){var _4f=_4.dnd.Moveable.prototype.onMove;_4.declare("dojo.dnd.TimedMoveable",_4.dnd.Moveable,{timeout:40,constructor:function(_50,_51){if(!_51){_51={};}if(_51.timeout&&typeof _51.timeout=="number"&&_51.timeout>=0){this.timeout=_51.timeout;}},markupFactory:function(_52,_53){return new _4.dnd.TimedMoveable(_53,_52);},onMoveStop:function(_54){if(_54._timer){clearTimeout(_54._timer);_4f.call(this,_54,_54._leftTop);}_4.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_55,_56){_55._leftTop=_56;if(!_55._timer){var _57=this;_55._timer=setTimeout(function(){_55._timer=null;_4f.call(_57,_55,_55._leftTop);},this.timeout);}}});})();}if(!_4._hasResource["dojo.fx.Toggler"]){_4._hasResource["dojo.fx.Toggler"]=true;_4.provide("dojo.fx.Toggler");_4.declare("dojo.fx.Toggler",null,{node:null,showFunc:_4.fadeIn,hideFunc:_4.fadeOut,showDuration:200,hideDuration:200,constructor:function(_58){var _59=this;_4.mixin(_59,_58);_59.node=_58.node;_59._showArgs=_4.mixin({},_58);_59._showArgs.node=_59.node;_59._showArgs.duration=_59.showDuration;_59.showAnim=_59.showFunc(_59._showArgs);_59._hideArgs=_4.mixin({},_58);_59._hideArgs.node=_59.node;_59._hideArgs.duration=_59.hideDuration;_59.hideAnim=_59.hideFunc(_59._hideArgs);_4.connect(_59.showAnim,"beforeBegin",_4.hitch(_59.hideAnim,"stop",true));_4.connect(_59.hideAnim,"beforeBegin",_4.hitch(_59.showAnim,"stop",true));},show:function(_5a){return this.showAnim.play(_5a||0);},hide:function(_5b){return this.hideAnim.play(_5b||0);}});}if(!_4._hasResource["dojo.fx"]){_4._hasResource["dojo.fx"]=true;_4.provide("dojo.fx");(function(){var d=_4,_5c={_fire:function(evt,_5d){if(this[evt]){this[evt].apply(this,_5d||[]);}return this;}};var _5e=function(_5f){this._index=-1;this._animations=_5f||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_5e,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_60,_61){if(!this._current){this._current=this._animations[this._index=0];}if(!_61&&this._current.status()=="playing"){return this;}var _62=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_63=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_64=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_62);d.disconnect(_63);d.disconnect(_64);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_65,_66){this.pause();var _67=this.duration*_65;this._current=null;d.some(this._animations,function(a){if(a.duration<=_67){this._current=a;return true;}_67-=a.duration;return false;});if(this._current){this._current.gotoPercent(_67/this._current.duration,_66);}return this;},stop:function(_68){if(this._current){if(_68){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_5e,_5c);_4.fx.chain=function(_69){return new _5e(_69);};var _6a=function(_6b){this._animations=_6b||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_6b,function(a){var _6c=a.duration;if(a.delay){_6c+=a.delay;}if(this.duration<_6c){this.duration=_6c;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var _6d=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){_6d._connects.push(d.connect(_6d._pseudoAnimation,evt,function(){_6d._fire(evt,arguments);}));});};d.extend(_6a,{_doAction:function(_6e,_6f){d.forEach(this._animations,function(a){a[_6e].apply(a,_6f);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_70,_71){var t=this._pseudoAnimation;t[_70].apply(t,_71);},play:function(_72,_73){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(_74,_75){var ms=this.duration*_74;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_75);});this._call("gotoPercent",arguments);return this;},stop:function(_76){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,_4.disconnect);}});d.extend(_6a,_5c);_4.fx.combine=function(_77){return new _6a(_77);};_4.fx.wipeIn=function(_78){var _79=_78.node=d.byId(_78.node),s=_79.style,o;var _7a=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _7b=d.style(_79,"height");return Math.max(_7b,1);}},end:function(){return _79.scrollHeight;}}}},_78));d.connect(_7a,"onEnd",function(){s.height="auto";s.overflow=o;});return _7a;};_4.fx.wipeOut=function(_7c){var _7d=_7c.node=d.byId(_7c.node),s=_7d.style,o;var _7e=d.animateProperty(d.mixin({properties:{height:{end:1}}},_7c));d.connect(_7e,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_7e,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _7e;};_4.fx.slideTo=function(_7f){var _80=_7f.node=d.byId(_7f.node),top=null,_81=null;var _82=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_81=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;_81=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_81+"px";}};})(_80);_82();var _83=d.animateProperty(d.mixin({properties:{top:_7f.top||0,left:_7f.left||0}},_7f));d.connect(_83,"beforeBegin",_83,_82);return _83;};})();}if(!_4._hasResource["dijit.form._FormMixin"]){_4._hasResource["dijit.form._FormMixin"]=true;_4.provide("dijit.form._FormMixin");_4.declare("dijit.form._FormMixin",null,{state:"",reset:function(){_4.forEach(this.getDescendants(),function(_84){if(_84.reset){_84.reset();}});},validate:function(){var _85=false;return _4.every(_4.map(this.getDescendants(),function(_86){_86._hasBeenBlurred=true;var _87=_86.disabled||!_86.validate||_86.validate();if(!_87&&!_85){_4.window.scrollIntoView(_86.containerNode||_86.domNode);_86.focus();_85=true;}return _87;}),function(_88){return _88;});},setValues:function(val){_4.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(obj){var map={};_4.forEach(this.getDescendants(),function(_89){if(!_89.name){return;}var _8a=map[_89.name]||(map[_89.name]=[]);_8a.push(_89);});for(var _8b in map){if(!map.hasOwnProperty(_8b)){continue;}var _8c=map[_8b],_8d=_4.getObject(_8b,false,obj);if(_8d===undefined){continue;}if(!_4.isArray(_8d)){_8d=[_8d];}if(typeof _8c[0].checked=="boolean"){_4.forEach(_8c,function(w,i){w.set("value",_4.indexOf(_8d,w.value)!=-1);});}else{if(_8c[0].multiple){_8c[0].set("value",_8d);}else{_4.forEach(_8c,function(w,i){w.set("value",_8d[i]);});}}}},getValues:function(){_4.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_getValueAttr:function(){var obj={};_4.forEach(this.getDescendants(),function(_8e){var _8f=_8e.name;if(!_8f||_8e.disabled){return;}var _90=_8e.get("value");if(typeof _8e.checked=="boolean"){if(/Radio/.test(_8e.declaredClass)){if(_90!==false){_4.setObject(_8f,_90,obj);}else{_90=_4.getObject(_8f,false,obj);if(_90===undefined){_4.setObject(_8f,null,obj);}}}else{var ary=_4.getObject(_8f,false,obj);if(!ary){ary=[];_4.setObject(_8f,ary,obj);}if(_90!==false){ary.push(_90);}}}else{var _91=_4.getObject(_8f,false,obj);if(typeof _91!="undefined"){if(_4.isArray(_91)){_91.push(_90);}else{_4.setObject(_8f,[_91,_90],obj);}}else{_4.setObject(_8f,_90,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_92){},_getState:function(){var _93=_4.map(this._descendants,function(w){return w.get("state")||"";});return _4.indexOf(_93,"Error")>=0?"Error":_4.indexOf(_93,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){_4.forEach(this._childConnections||[],_4.hitch(this,"disconnect"));_4.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_94){var _95=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_94?function(_96,val){_95[_96]=val;}:_4.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _97=(this._childConnections=[]),_98=(this._childWatches=[]);_4.forEach(_4.filter(this._descendants,function(_99){return _99.validate;}),function(_9a){_4.forEach(["state","disabled"],function(_9b){_98.push(_9a.watch(_9b,function(_9c,_9d,_9e){_95.set("state",_95._getState());}));});});var _9f=function(){if(_95._onChangeDelayTimer){clearTimeout(_95._onChangeDelayTimer);}_95._onChangeDelayTimer=setTimeout(function(){delete _95._onChangeDelayTimer;_95._set("value",_95.get("value"));},10);};_4.forEach(_4.filter(this._descendants,function(_a0){return _a0.onChange;}),function(_a1){_97.push(_95.connect(_a1,"onChange",_9f));_98.push(_a1.watch("disabled",_9f));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(_a2,_a3,_a4){this.onValidStateChange(_a4=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});}if(!_4._hasResource["dijit._DialogMixin"]){_4._hasResource["dijit._DialogMixin"]=true;_4.provide("dijit._DialogMixin");_4.declare("dijit._DialogMixin",null,{attributeMap:_5._Widget.prototype.attributeMap,execute:function(_a5){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _a6=_5._getTabNavigable(this.containerNode);this._firstFocusItem=_a6.lowest||_a6.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_a6.last||_a6.highest||this._firstFocusItem;}});}if(!_4._hasResource["dijit.DialogUnderlay"]){_4._hasResource["dijit.DialogUnderlay"]=true;_4.provide("dijit.DialogUnderlay");_4.declare("dijit.DialogUnderlay",[_5._Widget,_5._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){_4.attr(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_a7){this.node.className="dijitDialogUnderlay "+_a7;this._set("class",_a7);},postCreate:function(){_4.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _a8=_4.window.getBox();os.top=_a8.t+"px";os.left=_a8.l+"px";is.width=_a8.w+"px";is.height=_a8.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new _5.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});}if(!_4._hasResource["dijit.layout._ContentPaneResizeMixin"]){_4._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;_4.provide("dijit.layout._ContentPaneResizeMixin");_4.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){_4.forEach(this.getChildren(),function(_a9){_a9.startup();_a9._started=true;});},startup:function(){if(this._started){return;}var _aa=_5._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_aa&&_aa.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(_4.isIE?this.domNode:_4.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _ab=_4.query("> *",this.containerNode).filter(function(_ac){return _ac.tagName!=="SCRIPT";}),_ad=_ab.filter(function(_ae){return _4.hasAttr(_ae,"data-dojo-type")||_4.hasAttr(_ae,"dojoType")||_4.hasAttr(_ae,"widgetId");}),_af=_4.filter(_ad.map(_5.byNode),function(_b0){return _b0&&_b0.domNode&&_b0.resize;});if(_ab.length==_ad.length&&_af.length==1){this._singleChild=_af[0];}else{delete this._singleChild;}_4.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_b1,_b2){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_b1,_b2);},_scheduleLayout:function(_b3,_b4){if(this._isShown()){this._layout(_b3,_b4);}else{this._needLayout=true;this._changeSize=_b3;this._resultSize=_b4;}},_layout:function(_b5,_b6){if(_b5){_4.marginBox(this.domNode,_b5);}var cn=this.containerNode;if(cn===this.domNode){var mb=_b6||{};_4.mixin(mb,_b5||{});if(!("h" in mb)||!("w" in mb)){mb=_4.mixin(_4.marginBox(cn),mb);}this._contentBox=_5.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=_4.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||_4.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{_4.forEach(this.getChildren(),function(_b7){if(_b7.resize){_b7.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var _b8=this.domNode,_b9=this.domNode.parentNode;return (_b8.style.display!="none")&&(_b8.style.visibility!="hidden")&&!_4.hasClass(_b8,"dijitHidden")&&_b9&&_b9.style&&(_b9.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});}if(!_4._hasResource["dojo.html"]){_4._hasResource["dojo.html"]=true;_4.provide("dojo.html");_4.getObject("html",true,_4);(function(){var _ba=0,d=_4;_4.html._secureForInnerHtml=function(_bb){return _bb.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};_4.html._emptyNode=_4.empty;_4.html._setNodeContent=function(_bc,_bd){d.empty(_bc);if(_bd){if(typeof _bd=="string"){_bd=d._toDom(_bd,_bc.ownerDocument);}if(!_bd.nodeType&&d.isArrayLike(_bd)){for(var _be=_bd.length,i=0;i<_bd.length;i=_be==_bd.length?i+1:0){d.place(_bd[i],_bc,"last");}}else{d.place(_bd,_bc,"last");}}return _bc;};_4.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:_4._scopeName,startup:true,constructor:function(_bf,_c0){_4.mixin(this,_bf||{});_c0=this.node=_4.byId(this.node||_c0);if(!this.id){this.id=["Setter",(_c0)?_c0.id||_c0.tagName:"",_ba++].join("_");}},set:function(_c1,_c2){if(undefined!==_c1){this.content=_c1;}if(_c2){this._mixin(_c2);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var _c3=this.node;if(!_c3){throw new Error(this.declaredClass+": setContent given no node");}try{_c3=_4.html._setNodeContent(_c3,this.content);}catch(e){var _c4=this.onContentError(e);try{_c3.innerHTML=_c4;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=_c3;},empty:function(){if(this.parseResults&&this.parseResults.length){_4.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}_4.html._emptyNode(this.node);},onBegin:function(){var _c5=this.content;if(_4.isString(_c5)){if(this.cleanContent){_c5=_4.html._secureForInnerHtml(_c5);}if(this.extractContent){var _c6=_c5.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_c6){_c5=_c6[1];}}}this.empty();this.content=_c5;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_c7){var _c8={},key;for(key in _c7){if(key in _c8){continue;}this[key]=_c7[key];}},_parse:function(){var _c9=this.node;try{var _ca={};_4.forEach(["dir","lang","textDir"],function(_cb){if(this[_cb]){_ca[_cb]=this[_cb];}},this);this.parseResults=_4.parser.parse({rootNode:_c9,noStart:!this.startup,inherited:_ca,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(_cc,err,_cd){var _ce=this["on"+_cc+"Error"].call(this,err);if(_cd){console.error(_cd,err);}else{if(_ce){_4.html._setNodeContent(this.node,_ce,true);}}}});_4.html.set=function(_cf,_d0,_d1){if(undefined==_d0){console.warn("dojo.html.set: no cont argument provided, using empty string");_d0="";}if(!_d1){return _4.html._setNodeContent(_cf,_d0,true);}else{var op=new _4.html._ContentSetter(_4.mixin(_d1,{content:_d0,node:_cf}));return op.set();}};})();}if(!_4._hasResource["dijit.layout.ContentPane"]){_4._hasResource["dijit.layout.ContentPane"]=true;_4.provide("dijit.layout.ContentPane");_4.declare("dijit.layout.ContentPane",[_5._Widget,_5.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:_4._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_d2,_d3){if((!_d2||!_d2.template)&&_d3&&!("href" in _d2)&&!("content" in _d2)){var df=_4.doc.createDocumentFragment();_d3=_4.byId(_d3);while(_d3.firstChild){df.appendChild(_d3.firstChild);}_d2=_4.delegate(_d2,{content:df});}this.inherited(arguments,[_d2,_d3]);},postMixInProperties:function(){this.inherited(arguments);var _d4=_4.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_4.string.substitute(this.loadingMessage,_d4);this.errorMessage=_4.string.substitute(this.errorMessage,_d4);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!_4.attr(this.domNode,"role")){_5.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){_4.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&_4.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(_d5){_4.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",_d5);},_setHrefAttr:function(_d6){this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));this.onLoadDeferred.addCallback(_4.hitch(this,"onLoad"));this._set("href",_d6);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(_d7){_4.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",_d7);},_setContentAttr:function(_d8){this._set("href","");this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(_4.hitch(this,"onLoad"));}this._setContent(_d8||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_d9){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));this.onLoadDeferred.addCallback(_4.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var _da=this;var _db={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(_4.isObject(this.ioArgs)){_4.mixin(_db,this.ioArgs);}var _dc=(this._xhrDfd=(this.ioMethod||_4.xhrGet)(_db));_dc.addCallback(function(_dd){try{_da._isDownloaded=true;_da._setContent(_dd,false);_da.onDownloadEnd();}catch(err){_da._onError("Content",err);}delete _da._xhrDfd;return _dd;});_dc.addErrback(function(err){if(!_dc.canceled){_da._onError("Download",err);}delete _da._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(_de){this._set("isLoaded",true);try{this.onLoadDeferred.callback(_de);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _df=this._contentSetter;_4.forEach(this.getChildren(),function(_e0){if(_e0.destroyRecursive){_e0.destroyRecursive();}});if(_df){_4.forEach(_df.parseResults,function(_e1){if(_e1.destroyRecursive&&_e1.domNode&&_e1.domNode.parentNode==_4.body()){_e1.destroyRecursive();}});delete _df.parseResults;}_4.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(_e2,_e3){this.destroyDescendants();var _e4=this._contentSetter;if(!(_e4&&_e4 instanceof _4.html._ContentSetter)){_e4=this._contentSetter=new _4.html._ContentSetter({node:this.containerNode,_onError:_4.hitch(this,this._onError),onContentError:_4.hitch(this,function(e){var _e5=this.onContentError(e);try{this.containerNode.innerHTML=_e5;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _e6=_4.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_e4.set((_4.isObject(_e2)&&_e2.domNode)?_e2.domNode:_e2,_e6);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_e3){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(_e2);}},_onError:function(_e7,err,_e8){this.onLoadDeferred.errback(err);var _e9=this["on"+_e7+"Error"].call(this,err);if(_e8){console.error(_e8,err);}else{if(_e9){this._setContent(_e9,true);}}},onLoad:function(_ea){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_eb){},onDownloadError:function(_ec){return this.errorMessage;},onDownloadEnd:function(){}});}if(!_4._hasResource["dijit.TooltipDialog"]){_4._hasResource["dijit.TooltipDialog"]=true;_4.provide("dijit.TooltipDialog");_4.declare("dijit.TooltipDialog",[_5.layout.ContentPane,_5._Templated,_5.form._FormMixin,_5._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:_4.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\r\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\r\n</div>\r\n"),_setTitleAttr:function(_ed){this.containerNode.title=_ed;this._set("title",_ed);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(_ee,_ef,_f0){var _f1="dijitTooltipAB"+(_f0.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_f0.charAt(0)=="T"?"Below":"Above");_4.replaceClass(this.domNode,_f1,this._currentOrientClass||"");this._currentOrientClass=_f1;},focus:function(){this._getFocusItems(this.containerNode);_5.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},onClose:function(){this.onHide();},_onKey:function(evt){var _f2=evt.target;var dk=_4.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _f3=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(_4.hitch(this,"onCancel"),0);_4.stopEvent(evt);}else{if(_f2==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_f3){_5.focus(this._lastFocusItem);}_4.stopEvent(evt);}else{if(_f2==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_f3){_5.focus(this._firstFocusItem);}_4.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!_4._hasResource["dijit.Dialog"]){_4._hasResource["dijit.Dialog"]=true;_4.provide("dijit.Dialog");_4.declare("dijit._DialogBase",[_5._Templated,_5.form._FormMixin,_5._DialogMixin,_5._CssStateMixin],{templateString:_4.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:_5.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _f4=_4.i18n.getLocalization("dijit","common");_4.mixin(this,_f4);this.inherited(arguments);},postCreate:function(){_4.style(this.domNode,{display:"none",position:"absolute"});_4.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();if(this.autofocus&&_5._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);_5.focus(this._firstFocusItem);}this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=_4.position(e.node);}},_setup:function(){var _f5=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(_4.isIE==6)?new _4.dnd.TimedMoveable(_f5,{handle:this.titleBar}):new _4.dnd.Moveable(_f5,{handle:this.titleBar,timeout:0});this._dndListener=_4.subscribe("/dnd/move/stop",this,"_endDrag");}else{_4.addClass(_f5,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":_4.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{_4.style(this.containerNode,{width:"auto",height:"auto"});}var mb=_4._getMarginSize(this.domNode);var _f6=_4.window.getBox();if(mb.w>=_f6.w||mb.h>=_f6.h){var w=Math.min(mb.w,Math.floor(_f6.w*0.75)),h=Math.min(mb.h,Math.floor(_f6.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{_4.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!_4.hasClass(_4.body(),"dojoMove")){var _f7=this.domNode,_f8=_4.window.getBox(),p=this._relativePosition,bb=p?null:_4._getBorderBox(_f7),l=Math.floor(_f8.l+(p?p.x:(_f8.w-bb.w)/2)),t=Math.floor(_f8.t+(p?p.y:(_f8.h-bb.h)/2));_4.style(_f7,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=_4.keys;var _f9=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _fa=(this._firstFocusItem==this._lastFocusItem);if(_f9==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_fa){_5.focus(this._lastFocusItem);}_4.stopEvent(evt);}else{if(_f9==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_fa){_5.focus(this._firstFocusItem);}_4.stopEvent(evt);}else{while(_f9){if(_f9==this.domNode||_4.hasClass(_f9,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}_f9=_f9.parentNode;}if(evt.charOrCode!==dk.TAB){_4.stopEvent(evt);}else{if(!_4.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}this._modalconnects.push(_4.connect(window,"onscroll",this,"layout"));this._modalconnects.push(_4.connect(window,"onresize",this,function(){var _fb=_4.window.getBox();if(!this._oldViewport||_fb.h!=this._oldViewport.h||_fb.w!=this._oldViewport.w){this.layout();this._oldViewport=_fb;}}));this._modalconnects.push(_4.connect(this.domNode,"onkeypress",this,"_onKey"));_4.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _fc;this._fadeInDeferred=new _4.Deferred(_4.hitch(this,function(){_fc.stop();delete this._fadeInDeferred;}));_fc=_4.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:_4.hitch(this,function(){_5._DialogLevelManager.show(this,this.underlayAttrs);}),onEnd:_4.hitch(this,function(){if(this.autofocus&&_5._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);_5.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _fd;this._fadeOutDeferred=new _4.Deferred(_4.hitch(this,function(){_fd.stop();delete this._fadeOutDeferred;}));_fd=_4.fadeOut({node:this.domNode,duration:this.duration,onEnd:_4.hitch(this,function(){this.domNode.style.display="none";_5._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}_4.forEach(this._modalconnects,_4.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(_5._underlay){_5._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}if(this._dndListener){_4.unsubscribe(this._dndListener);}_4.forEach(this._modalconnects,_4.disconnect);_5._DialogLevelManager.hide(this);this.inherited(arguments);}});_4.declare("dijit.Dialog",[_5.layout.ContentPane,_5._DialogBase],{});_5._DialogLevelManager={show:function(_fe,_ff){var ds=_5._dialogStack;ds[ds.length-1].focus=_5.getFocus(_fe);var _100=_5._underlay;if(!_100||_100._destroyed){_100=_5._underlay=new _5.DialogUnderlay(_ff);}else{_100.set(_fe.underlayAttrs);}var _101=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_100.show();}_4.style(_5._underlay.domNode,"zIndex",_101-1);_4.style(_fe.domNode,"zIndex",_101);ds.push({dialog:_fe,underlayAttrs:_ff,zIndex:_101});},hide:function(_102){var ds=_5._dialogStack;if(ds[ds.length-1].dialog==_102){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!_5._underlay._destroyed){_5._underlay.hide();}}else{_4.style(_5._underlay.domNode,"zIndex",pd.zIndex-1);_5._underlay.set(pd.underlayAttrs);}if(_102.refocus){var _103=pd.focus;if(!_103||(pd.dialog&&!_4.isDescendant(_103.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_103=pd.dialog._firstFocusItem;}try{_5.focus(_103);}catch(e){}}}else{var idx=_4.indexOf(_4.map(ds,function(elem){return elem.dialog;}),_102);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_104){var ds=_5._dialogStack;return ds[ds.length-1].dialog==_104;}};_5._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}if(!_4._hasResource["dijit._editor.selection"]){_4._hasResource["dijit._editor.selection"]=true;_4.provide("dijit._editor.selection");_4.getObject("_editor.selection",true,_5);_4.mixin(_5._editor.selection,{getType:function(){if(_4.isIE<9){return _4.doc.selection.type.toLowerCase();}else{var _105="text";var oSel;try{oSel=_4.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _106=oSel.getRangeAt(0);if((_106.startContainer==_106.endContainer)&&((_106.endOffset-_106.startOffset)==1)&&(_106.startContainer.nodeType!=3)){_105="control";}}return _105;}},getSelectedText:function(){if(_4.isIE<9){if(_5._editor.selection.getType()=="control"){return null;}return _4.doc.selection.createRange().text;}else{var _107=_4.global.getSelection();if(_107){return _107.toString();}}return "";},getSelectedHtml:function(){if(_4.isIE<9){if(_5._editor.selection.getType()=="control"){return null;}return _4.doc.selection.createRange().htmlText;}else{var _108=_4.global.getSelection();if(_108&&_108.rangeCount){var i;var html="";for(i=0;i<_108.rangeCount;i++){var frag=_108.getRangeAt(i).cloneContents();var div=_4.doc.createElement("div");div.appendChild(frag);html+=div.innerHTML;}return html;}return null;}},getSelectedElement:function(){if(_5._editor.selection.getType()=="control"){if(_4.isIE<9){var _109=_4.doc.selection.createRange();if(_109&&_109.item){return _4.doc.selection.createRange().item(0);}}else{var _10a=_4.global.getSelection();return _10a.anchorNode.childNodes[_10a.anchorOffset];}}return null;},getParentElement:function(){if(_5._editor.selection.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(_4.isIE<9){var r=_4.doc.selection.createRange();r.collapse(true);return r.parentElement();}else{var _10b=_4.global.getSelection();if(_10b){var node=_10b.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_10c){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_10d){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);},isTag:function(node,tags){if(node&&node.tagName){var _10e=node.tagName.toLowerCase();for(var i=0;i<tags.length;i++){var _10f=String(tags[i]).toLowerCase();if(_10e==_10f){return _10f;}}}return "";},getParentOfType:function(node,tags){while(node){if(this.isTag(node,tags).length){return node;}node=node.parentNode;}return null;},collapse:function(_110){if(window.getSelection){var _111=_4.global.getSelection();if(_111.removeAllRanges){if(_110){_111.collapseToStart();}else{_111.collapseToEnd();}}else{_111.collapse(_110);}}else{if(_4.isIE){var _112=_4.doc.selection.createRange();_112.collapse(_110);_112.select();}}},remove:function(){var sel=_4.doc.selection;if(_4.isIE<9){if(sel.type.toLowerCase()!="none"){sel.clear();}return sel;}else{sel=_4.global.getSelection();sel.deleteFromDocument();return sel;}},selectElementChildren:function(_113,_114){var win=_4.global;var doc=_4.doc;var _115;_113=_4.byId(_113);if(doc.selection&&_4.isIE<9&&_4.body().createTextRange){_115=_113.ownerDocument.body.createTextRange();_115.moveToElementText(_113);if(!_114){try{_115.select();}catch(e){}}}else{if(win.getSelection){var _116=_4.global.getSelection();if(_4.isOpera){if(_116.rangeCount){_115=_116.getRangeAt(0);}else{_115=doc.createRange();}_115.setStart(_113,0);_115.setEnd(_113,(_113.nodeType==3)?_113.length:_113.childNodes.length);_116.addRange(_115);}else{_116.selectAllChildren(_113);}}}},selectElement:function(_117,_118){var _119;var doc=_4.doc;var win=_4.global;_117=_4.byId(_117);if(_4.isIE<9&&_4.body().createTextRange){try{var tg=_117.tagName?_117.tagName.toLowerCase():"";if(tg==="img"||tg==="table"){_119=_4.body().createControlRange();}else{_119=_4.body().createRange();}_119.addElement(_117);if(!_118){_119.select();}}catch(e){this.selectElementChildren(_117,_118);}}else{if(_4.global.getSelection){var _11a=win.getSelection();_119=doc.createRange();if(_11a.removeAllRanges){if(_4.isOpera){if(_11a.getRangeAt(0)){_119=_11a.getRangeAt(0);}}_119.selectNode(_117);_11a.removeAllRanges();_11a.addRange(_119);}}}},inSelection:function(node){if(node){var _11b;var doc=_4.doc;var _11c;if(_4.global.getSelection){var sel=_4.global.getSelection();if(sel&&sel.rangeCount>0){_11c=sel.getRangeAt(0);}if(_11c&&_11c.compareBoundaryPoints&&doc.createRange){try{_11b=doc.createRange();_11b.setStart(node,0);if(_11c.compareBoundaryPoints(_11c.START_TO_END,_11b)===1){return true;}}catch(e){}}}else{if(doc.selection){_11c=doc.selection.createRange();try{_11b=node.ownerDocument.body.createControlRange();if(_11b){_11b.addElement(node);}}catch(e1){try{_11b=node.ownerDocument.body.createTextRange();_11b.moveToElementText(node);}catch(e2){}}if(_11c&&_11b){if(_11c.compareEndPoints("EndToStart",_11b)===1){return true;}}}}}return false;}});}if(!_4._hasResource["dijit._editor.range"]){_4._hasResource["dijit._editor.range"]=true;_4.provide("dijit._editor.range");_5.range={};_5.range.getIndex=function(node,_11d){var ret=[],retR=[];var stop=_11d;var _11e=node;var _11f,n;while(node!=stop){var i=0;_11f=node.parentNode;while((n=_11f.childNodes[i++])){if(n===node){--i;break;}}ret.unshift(i);retR.unshift(i-_11f.childNodes.length);node=_11f;}if(ret.length>0&&_11e.nodeType==3){n=_11e.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_11e.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};_5.range.getNode=function(_120,_121){if(!_4.isArray(_120)||_120.length==0){return _121;}var node=_121;_4.every(_120,function(i){if(i>=0&&i<node.childNodes.length){node=node.childNodes[i];}else{node=null;return false;}return true;});return node;};_5.range.getCommonAncestor=function(n1,n2,root){root=root||n1.ownerDocument.body;var _122=function(n){var as=[];while(n){as.unshift(n);if(n!==root){n=n.parentNode;}else{break;}}return as;};var n1as=_122(n1);var n2as=_122(n2);var m=Math.min(n1as.length,n2as.length);var com=n1as[0];for(var i=1;i<m;i++){if(n1as[i]===n2as[i]){com=n1as[i];}else{break;}}return com;};_5.range.getAncestor=function(node,_123,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_123.test(name)){return node;}node=node.parentNode;}return null;};_5.range.BlockTagNames=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/;_5.range.getBlockAncestor=function(node,_124,root){root=root||node.ownerDocument.body;_124=_124||_5.range.BlockTagNames;var _125=null,_126;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_125&&_124.test(name)){_125=node;}if(!_126&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_126=node;}node=node.parentNode;}return {blockNode:_125,blockContainer:_126||node.ownerDocument.body};};_5.range.atBeginningOfContainer=function(_127,node,_128){var _129=false;var _12a=(_128==0);if(!_12a&&node.nodeType==3){if(/^[\s\xA0]+$/.test(node.nodeValue.substr(0,_128))){_12a=true;}}if(_12a){var _12b=node;_129=true;while(_12b&&_12b!==_127){if(_12b.previousSibling){_129=false;break;}_12b=_12b.parentNode;}}return _129;};_5.range.atEndOfContainer=function(_12c,node,_12d){var _12e=false;var _12f=(_12d==(node.length||node.childNodes.length));if(!_12f&&node.nodeType==3){if(/^[\s\xA0]+$/.test(node.nodeValue.substr(_12d))){_12f=true;}}if(_12f){var _130=node;_12e=true;while(_130&&_130!==_12c){if(_130.nextSibling){_12e=false;break;}_130=_130.parentNode;}}return _12e;};_5.range.adjacentNoneTextNode=function(_131,next){var node=_131;var len=(0-_131.length)||0;var prop=next?"nextSibling":"previousSibling";while(node){if(node.nodeType!=3){break;}len+=node.length;node=node[prop];}return [node,len];};_5.range._w3c=Boolean(window["getSelection"]);_5.range.create=function(win){if(_5.range._w3c){return (win||_4.global).document.createRange();}else{return new _5.range.W3CRange;}};_5.range.getSelection=function(win,_132){if(_5.range._w3c){return win.getSelection();}else{var s=new _5.range.ie.selection(win);if(!_132){s._getCurrentSelection();}return s;}};if(!_5.range._w3c){_5.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_133){this._ranges.push(r);if(!_133){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _134=function(){var r=win.document.selection.createRange();var type=win.document.selection.type.toUpperCase();if(type=="CONTROL"){return new _5.range.W3CRange(_5.range.ie.decomposeControlRange(r));}else{return new _5.range.W3CRange(_5.range.ie.decomposeTextRange(r));}};this.getRangeAt=function(i){return this._ranges[i];};this._getCurrentSelection=function(){this.removeAllRanges();var r=_134();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_135){var _136=_135.item(0),_137=_135.item(_135.length-1);var _138=_136.parentNode,_139=_137.parentNode;var _13a=_5.range.getIndex(_136,_138).o;var _13b=_5.range.getIndex(_137,_139).o+1;return [_138,_13a,_139,_13b];},getEndPoint:function(_13c,end){var _13d=_13c.duplicate();_13d.collapse(!end);var _13e="EndTo"+(end?"End":"Start");var _13f=_13d.parentElement();var _140,_141,_142;if(_13f.childNodes.length>0){_4.every(_13f.childNodes,function(node,i){var _143;if(node.nodeType!=3){_13d.moveToElementText(node);if(_13d.compareEndPoints(_13e,_13c)>0){if(_142&&_142.nodeType==3){_140=_142;_143=true;}else{_140=_13f;_141=i;return false;}}else{if(i==_13f.childNodes.length-1){_140=_13f;_141=_13f.childNodes.length;return false;}}}else{if(i==_13f.childNodes.length-1){_140=node;_143=true;}}if(_143&&_140){var _144=_5.range.adjacentNoneTextNode(_140)[0];if(_144){_140=_144.nextSibling;}else{_140=_13f.firstChild;}var _145=_5.range.adjacentNoneTextNode(_140);_144=_145[0];var _146=_145[1];if(_144){_13d.moveToElementText(_144);_13d.collapse(false);}else{_13d.moveToElementText(_13f);}_13d.setEndPoint(_13e,_13c);_141=_13d.text.length-_146;return false;}_142=node;return true;});}else{_140=_13f;_141=0;}if(!end&&_140.nodeType==1&&_141==_140.childNodes.length){var _147=_140.nextSibling;if(_147&&_147.nodeType==3){_140=_147;_141=0;}}return [_140,_141];},setEndPoint:function(_148,_149,_14a){var _14b=_148.duplicate(),node,len;if(_149.nodeType!=3){if(_14a>0){node=_149.childNodes[_14a-1];if(node){if(node.nodeType==3){_149=node;_14a=node.length;}else{if(node.nextSibling&&node.nextSibling.nodeType==3){_149=node.nextSibling;_14a=0;}else{_14b.moveToElementText(node.nextSibling?node:_149);var _14c=node.parentNode;var _14d=_14c.insertBefore(node.ownerDocument.createTextNode(" "),node.nextSibling);_14b.collapse(false);_14c.removeChild(_14d);}}}}else{_14b.moveToElementText(_149);_14b.collapse(true);}}if(_149.nodeType==3){var _14e=_5.range.adjacentNoneTextNode(_149);var _14f=_14e[0];len=_14e[1];if(_14f){_14b.moveToElementText(_14f);_14b.collapse(false);if(_14f.contentEditable!="inherit"){len++;}}else{_14b.moveToElementText(_149.parentNode);_14b.collapse(true);}_14a+=len;if(_14a>0){if(_14b.move("character",_14a)!=_14a){console.error("Error when moving!");}}}return _14b;},decomposeTextRange:function(_150){var _151=_5.range.ie.getEndPoint(_150);var _152=_151[0],_153=_151[1];var _154=_151[0],_155=_151[1];if(_150.htmlText.length){if(_150.htmlText==_150.text){_155=_153+_150.text.length;}else{_151=_5.range.ie.getEndPoint(_150,true);_154=_151[0],_155=_151[1];}}return [_152,_153,_154,_155];},setRange:function(_156,_157,_158,_159,_15a,_15b){var _15c=_5.range.ie.setEndPoint(_156,_157,_158);_156.setEndPoint("StartToStart",_15c);if(!_15b){var end=_5.range.ie.setEndPoint(_156,_159,_15a);}_156.setEndPoint("EndToEnd",end||_15c);return _156;}};_4.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0],arguments[0][1]);this.setEnd(arguments[0][2],arguments[0][3]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_updateInternal:function(){if(this.startContainer!==this.endContainer){this.commonAncestorContainer=_5.range.getCommonAncestor(this.startContainer,this.endContainer);}else{this.commonAncestorContainer=this.startContainer;}this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);},setStart:function(node,_15d){_15d=parseInt(_15d);if(this.startContainer===node&&this.startOffset==_15d){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_15d;if(!this.endContainer){this.setEnd(node,_15d);}else{this._updateInternal();}},setEnd:function(node,_15e){_15e=parseInt(_15e);if(this.endContainer===node&&this.endOffset==_15e){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_15e;if(!this.startContainer){this.setStart(node,_15e);}else{this._updateInternal();}},setStartAfter:function(node,_15f){this._setPoint("setStart",node,_15f,1);},setStartBefore:function(node,_160){this._setPoint("setStart",node,_160,0);},setEndAfter:function(node,_161){this._setPoint("setEnd",node,_161,1);},setEndBefore:function(node,_162){this._setPoint("setEnd",node,_162,0);},_setPoint:function(what,node,_163,ext){var _164=_5.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_164.pop()+ext);},_getIERange:function(){var r=(this._body||this.endContainer.ownerDocument.body).createTextRange();_5.range.ie.setRange(r,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return r;},getBookmark:function(body){this._getIERange();return this._cachedBookmark;},_select:function(){var r=this._getIERange();r.select();},deleteContents:function(){var r=this._getIERange();r.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=true;},cloneRange:function(){var r=new _5.range.W3CRange([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);r._body=this._body;return r;},detach:function(){this._body=null;this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}});}}if(!_4._hasResource["dijit._editor.html"]){_4._hasResource["dijit._editor.html"]=true;_4.provide("dijit._editor.html");_4.getObject("_editor",true,_5);_5._editor.escapeXml=function(str,_165){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_165){str=str.replace(/'/gm,"&#39;");}return str;};_5._editor.getNodeHtml=function(node){var _166;switch(node.nodeType){case 1:var _167=node.nodeName.toLowerCase();if(!_167||_167.charAt(0)=="/"){return "";}_166="<"+_167;var _168=[];var attr;if(_4.isIE&&node.outerHTML){var s=node.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(node.getAttribute("_djrealurl")){_168.push([key,node.getAttribute("_djrealurl")]);continue;}}var val,_169;switch(key){case "style":val=node.style.cssText.toLowerCase();break;case "class":val=node.className;break;case "width":if(_167==="img"){_169=/width=(\S+)/i.exec(s);if(_169){val=_169[1];}break;}case "height":if(_167==="img"){_169=/height=(\S+)/i.exec(s);if(_169){val=_169[1];}break;}default:val=node.getAttribute(key);}if(val!=null){_168.push([key,val.toString()]);}}}}else{var i=0;while((attr=node.attributes[i++])){var n=attr.name;if(n.substr(0,3)!="_dj"){var v=attr.value;if(n=="src"||n=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_168.push([n,v]);}}}_168.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_168[j++])){_166+=" "+attr[0]+"=\""+(_4.isString(attr[1])?_5._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(_167==="script"){_166+=">"+node.innerHTML+"</"+_167+">";}else{if(node.childNodes.length){_166+=">"+_5._editor.getChildrenHtml(node)+"</"+_167+">";}else{switch(_167){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":_166+=" />";break;default:_166+="></"+_167+">";}}}break;case 4:case 3:_166=_5._editor.escapeXml(node.nodeValue,true);break;case 8:_166="<!--"+_5._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_166="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _166;};_5._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _16a=dom["childNodes"]||dom;var _16b=!_4.isIE||_16a!==dom;var node,i=0;while((node=_16a[i++])){if(!_16b||node.parentNode==dom){out+=_5._editor.getNodeHtml(node);}}return out;};}if(!_4._hasResource["dijit._editor.RichText"]){_4._hasResource["dijit._editor.RichText"]=true;_4.provide("dijit._editor.RichText");if(!_4.config["useXDomain"]||_4.config["allowXdRichTextSave"]){if(_4._postLoad){(function(){var _16c=_4.doc.createElement("textarea");_16c.id=_5._scopeName+"._editor.RichText.value";_4.style(_16c,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});_4.body().appendChild(_16c);})();}else{try{_4.doc.write("<textarea id=\""+_5._scopeName+"._editor.RichText.value\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");}catch(e){}}}_4.declare("dijit._editor.RichText",[_5._Widget,_5._CssStateMixin],{constructor:function(_16d){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};if(_16d&&_4.isString(_16d.value)){this.value=_16d.value;}this.onLoadDeferred=new _4.Deferred();},baseClass:"dijitEditor",inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",_NAME_CONTENT_SEP:"@@**%%:%%**@@",onLoadDeferred:null,isTabIndent:false,disableSpellCheck:false,postCreate:function(){if("textarea"==this.domNode.tagName.toLowerCase()){console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");}this.contentPreFilters=[_4.hitch(this,"_preFixUrlAttributes")].concat(this.contentPreFilters);if(_4.isMoz){this.contentPreFilters=[this._normalizeFontStyle].concat(this.contentPreFilters);this.contentPostFilters=[this._removeMozBogus].concat(this.contentPostFilters);}if(_4.isWebKit){this.contentPreFilters=[this._removeWebkitBogus].concat(this.contentPreFilters);this.contentPostFilters=[this._removeWebkitBogus].concat(this.contentPostFilters);}if(_4.isIE){this.contentPostFilters=[this._normalizeFontStyle].concat(this.contentPostFilters);}this.inherited(arguments);_4.publish(_5._scopeName+"._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var exec=_4.hitch(this,function(cmd,arg){return function(){return !this.execCommand(cmd,arg);};});var _16e={b:exec("bold"),i:exec("italic"),u:exec("underline"),a:exec("selectall"),s:function(){this.save(true);},m:function(){this.isTabIndent=!this.isTabIndent;},"1":exec("formatblock","h1"),"2":exec("formatblock","h2"),"3":exec("formatblock","h3"),"4":exec("formatblock","h4"),"\\":exec("insertunorderedlist")};if(!_4.isIE){_16e.Z=exec("redo");}for(var key in _16e){this.addKeyHandler(key,true,false,_16e[key]);}},events:["onKeyPress","onKeyDown","onKeyUp"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(_5._editor._editorCommandsLocalized){this._local2NativeFormatNames=_5._editor._local2NativeFormatNames;this._native2LocalFormatNames=_5._editor._native2LocalFormatNames;return;}_5._editor._editorCommandsLocalized=true;_5._editor._local2NativeFormatNames={};_5._editor._native2LocalFormatNames={};this._local2NativeFormatNames=_5._editor._local2NativeFormatNames;this._native2LocalFormatNames=_5._editor._native2LocalFormatNames;var _16f=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _170="",_171,i=0;while((_171=_16f[i++])){if(_171.charAt(1)!=="l"){_170+="<"+_171+"><span>content</span></"+_171+"><br/>";}else{_170+="<"+_171+"><li>content</li></"+_171+"><br/>";}}var _172={position:"absolute",top:"0px",zIndex:10,opacity:0.01};var div=_4.create("div",{style:_172,innerHTML:_170});_4.body().appendChild(div);var _173=_4.hitch(this,function(){var node=div.firstChild;while(node){try{_5._editor.selection.selectElement(node.firstChild);var _174=node.tagName.toLowerCase();this._local2NativeFormatNames[_174]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_174]]=_174;node=node.nextSibling.nextSibling;}catch(e){}}div.parentNode.removeChild(div);div.innerHTML="";});setTimeout(_173,0);},open:function(_175){if(!this.onLoadDeferred||this.onLoadDeferred.fired>=0){this.onLoadDeferred=new _4.Deferred();}if(!this.isClosed){this.close();}_4.publish(_5._scopeName+"._editor.RichText::open",[this]);if(arguments.length==1&&_175.nodeName){this.domNode=_175;}var dn=this.domNode;var html;if(_4.isString(this.value)){html=this.value;delete this.value;dn.innerHTML="";}else{if(dn.nodeName&&dn.nodeName.toLowerCase()=="textarea"){var ta=(this.textarea=dn);this.name=ta.name;html=ta.value;dn=this.domNode=_4.doc.createElement("div");dn.setAttribute("widgetId",this.id);ta.removeAttribute("widgetId");dn.cssText=ta.cssText;dn.className+=" "+ta.className;_4.place(dn,ta,"before");var _176=_4.hitch(this,function(){_4.style(ta,{display:"block",position:"absolute",top:"-1000px"});if(_4.isIE){var s=ta.style;this.__overflow=s.overflow;s.overflow="hidden";}});if(_4.isIE){setTimeout(_176,10);}else{_176();}if(ta.form){var _177=ta.value;this.reset=function(){var _178=this.getValue();if(_178!=_177){this.replaceValue(_177);}};_4.connect(ta.form,"onsubmit",this,function(){_4.attr(ta,"disabled",this.disabled);ta.value=this.getValue();});}}else{html=_5._editor.getChildrenHtml(dn);dn.innerHTML="";}}var _179=_4.contentBox(dn);this._oldHeight=_179.h;this._oldWidth=_179.w;this.value=html;if(dn.nodeName&&dn.nodeName=="LI"){dn.innerHTML=" <br>";}this.header=dn.ownerDocument.createElement("div");dn.appendChild(this.header);this.editingArea=dn.ownerDocument.createElement("div");dn.appendChild(this.editingArea);this.footer=dn.ownerDocument.createElement("div");dn.appendChild(this.footer);if(!this.name){this.name=this.id+"_AUTOGEN";}if(this.name!==""&&(!_4.config["useXDomain"]||_4.config["allowXdRichTextSave"])){var _17a=_4.byId(_5._scopeName+"._editor.RichText.value");if(_17a&&_17a.value!==""){var _17b=_17a.value.split(this._SEPARATOR),i=0,dat;while((dat=_17b[i++])){var data=dat.split(this._NAME_CONTENT_SEP);if(data[0]==this.name){html=data[1];_17b=_17b.splice(i,1);_17a.value=_17b.join(this._SEPARATOR);break;}}}if(!_5._editor._globalSaveHandler){_5._editor._globalSaveHandler={};_4.addOnUnload(function(){var id;for(id in _5._editor._globalSaveHandler){var f=_5._editor._globalSaveHandler[id];if(_4.isFunction(f)){f();}}});}_5._editor._globalSaveHandler[this.id]=_4.hitch(this,"_saveContent");}this.isClosed=false;var ifr=(this.editorObject=this.iframe=_4.doc.createElement("iframe"));ifr.id=this.id+"_iframe";this._iframeSrc=this._getIframeDocTxt();ifr.style.border="none";ifr.style.width="100%";if(this._layoutMode){ifr.style.height="100%";}else{if(_4.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}}ifr.frameBorder=0;ifr._loadFunc=_4.hitch(this,function(win){this.window=win;this.document=this.window.document;if(_4.isIE){this._localizeEditorCommands();}this.onLoad(html);});var s="javascript:parent."+_5._scopeName+".byId(\""+this.id+"\")._iframeSrc";ifr.setAttribute("src",s);this.editingArea.appendChild(ifr);if(_4.isSafari<=4){var src=ifr.getAttribute("src");if(!src||src.indexOf("javascript")==-1){setTimeout(function(){ifr.setAttribute("src",s);},0);}}if(dn.nodeName=="LI"){dn.lastChild.style.marginTop="-1.2em";}_4.addClass(this.domNode,this.baseClass);},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var _17c=_4.getComputedStyle(this.domNode);var html="";var _17d=true;if(_4.isIE||_4.isWebKit||(!this.height&&!_4.isMoz)){html="<div id='dijitEditorBody'></div>";_17d=false;}else{if(_4.isMoz){this._cursorToStart=true;html="&nbsp;";}}var font=[_17c.fontWeight,_17c.fontSize,_17c.fontFamily].join(" ");var _17e=_17c.lineHeight;if(_17e.indexOf("px")>=0){_17e=parseFloat(_17e)/parseFloat(_17c.fontSize);}else{if(_17e.indexOf("em")>=0){_17e=parseFloat(_17e);}else{_17e="normal";}}var _17f="";var self=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(_180){_180=_180.replace(/^;/ig,"")+";";var s=_180.split(":")[0];if(s){s=_4.trim(s);s=s.toLowerCase();var i;var sC="";for(i=0;i<s.length;i++){var c=s.charAt(i);switch(c){case "-":i++;c=s.charAt(i).toUpperCase();default:sC+=c;}}_4.style(self.domNode,sC,"");}_17f+=_180+";";});var _181=_4.query("label[for=\""+this.id+"\"]");return [this.isLeftToRight()?"<html>\n<head>\n":"<html dir='rtl'>\n<head>\n",(_4.isMoz&&_181.length?"<title>"+_181[0].innerHTML+"</title>\n":""),"<meta http-equiv='Content-Type' content='text/html'>\n","<style>\n","\tbody,html {\n","\t\tbackground:transparent;\n","\t\tpadding: 1px 0 0 0;\n","\t\tmargin: -1px 0 0 0;\n",((_4.isWebKit)?"\t\twidth: 100%;\n":""),((_4.isWebKit)?"\t\theight: 100%;\n":""),"\t}\n","\tbody{\n","\t\ttop:0px;\n","\t\tleft:0px;\n","\t\tright:0px;\n","\t\tfont:",font,";\n",((this.height||_4.isOpera)?"":"\t\tposition: fixed;\n"),"\t\tmin-height:",this.minHeight,";\n","\t\tline-height:",_17e,";\n","\t}\n","\tp{ margin: 1em 0; }\n",(!_17d&&!this.height?"\tbody,html {overflow-y: hidden;}\n":""),"\t#dijitEditorBody{overflow-x: auto; overflow-y:"+(this.height?"auto;":"hidden;")+" outline: 0px;}\n","\tli > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; }\n",(!_4.isIE?"\tli{ min-height:1.2em; }\n":""),"</style>\n",this._applyEditingAreaStyleSheets(),"\n","</head>\n<body ",(_17d?"id='dijitEditorBody' ":""),"onload='frameElement._loadFunc(window,document)' style='"+_17f+"'>",html,"</body>\n</html>"].join("");},_applyEditingAreaStyleSheets:function(){var _182=[];if(this.styleSheets){_182=this.styleSheets.split(";");this.styleSheets="";}_182=_182.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_182[i++])){var _183=(new _4._Url(_4.global.location,url)).toString();this.editingAreaStyleSheets.push(_183);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_183+"\"/>";}return text;},addStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new _4._Url(_4.global.location,url)).toString();}if(_4.indexOf(this.editingAreaStyleSheets,url)>-1){return;}this.editingAreaStyleSheets.push(url);this.onLoadDeferred.addCallback(_4.hitch(this,function(){if(this.document.createStyleSheet){this.document.createStyleSheet(url);}else{var head=this.document.getElementsByTagName("head")[0];var _184=this.document.createElement("link");_184.rel="stylesheet";_184.type="text/css";_184.href=url;head.appendChild(_184);}}));},removeStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new _4._Url(_4.global.location,url)).toString();}var _185=_4.indexOf(this.editingAreaStyleSheets,url);if(_185==-1){return;}delete this.editingAreaStyleSheets[_185];_4.withGlobal(this.window,"query",_4,["link:[href=\""+url+"\"]"]).orphan();},disabled:false,_mozSettingProps:{"styleWithCSS":false},_setDisabledAttr:function(_186){_186=!!_186;this._set("disabled",_186);if(!this.isLoaded){return;}if(_4.isIE||_4.isWebKit||_4.isOpera){var _187=_4.isIE&&(this.isLoaded||!this.focusOnLoad);if(_187){this.editNode.unselectable="on";}this.editNode.contentEditable=!_186;if(_187){var _188=this;setTimeout(function(){_188.editNode.unselectable="off";},0);}}else{try{this.document.designMode=(_186?"off":"on");}catch(e){return;}if(!_186&&this._mozSettingProps){var ps=this._mozSettingProps;for(var n in ps){if(ps.hasOwnProperty(n)){try{this.document.execCommand(n,false,ps[n]);}catch(e2){}}}}}this._disabledOK=true;},onLoad:function(html){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;this._iframeRegHandle=_5.registerIframe(this.iframe);}if(!_4.isIE&&!_4.isWebKit&&(this.height||_4.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _189=this;if(_4.isIE){this.tabStop=_4.create("div",{tabIndex:-1},this.editingArea);this.iframe.onfocus=function(){_189.editNode.setActive();};}}this.focusNode=this.editNode;var _18a=this.events.concat(this.captureEvents);var ap=this.iframe?this.document:this.editNode;_4.forEach(_18a,function(item){this.connect(ap,item.toLowerCase(),item);},this);this.connect(ap,"onmouseup","onClick");if(_4.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}else{this.connect(this.document,"onmousedown",function(){delete this._cursorToStart;});}if(_4.isWebKit){this._webkitListener=this.connect(this.document,"onmouseup","onDisplayChanged");this.connect(this.document,"onmousedown",function(e){var t=e.target;if(t&&(t===this.document.body||t===this.document)){setTimeout(_4.hitch(this,"placeCursorAtEnd"),0);}});}if(_4.isIE){try{this.document.execCommand("RespectVisibilityInDesign",true,null);}catch(e){}}this.isLoaded=true;this.set("disabled",this.disabled);var _18b=_4.hitch(this,function(){this.setValue(html);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}this.onDisplayChanged();if(this.focusOnLoad){_4.addOnLoad(_4.hitch(this,function(){setTimeout(_4.hitch(this,"focus"),this.updateInterval);}));}this.value=this.getValue(true);});if(this.setValueDeferred){this.setValueDeferred.addCallback(_18b);}else{_18b();}},onKeyDown:function(e){if(e.keyCode===_4.keys.TAB&&this.isTabIndent){_4.stopEvent(e);if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){this.execCommand((e.shiftKey?"outdent":"indent"));}}if(_4.isIE){if(e.keyCode==_4.keys.TAB&&!this.isTabIndent){if(e.shiftKey&&!e.ctrlKey&&!e.altKey){this.iframe.focus();}else{if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){this.tabStop.focus();}}}else{if(e.keyCode===_4.keys.BACKSPACE&&this.document.selection.type==="Control"){_4.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}}return true;},onKeyUp:function(e){return;},setDisabled:function(_18c){_4.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.set("disabled",_18c);},_setValueAttr:function(_18d){this.setValue(_18d);},_setDisableSpellCheckAttr:function(_18e){if(this.document){_4.attr(this.document.body,"spellcheck",!_18e);}else{this.onLoadDeferred.addCallback(_4.hitch(this,function(){_4.attr(this.document.body,"spellcheck",!_18e);}));}this._set("disableSpellCheck",_18e);},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode,_18f=this._keyHandlers[c],args=arguments;if(_18f&&!e.altKey){_4.some(_18f,function(h){if(!(h.shift^e.shiftKey)&&!(h.ctrl^(e.ctrlKey||e.metaKey))){if(!h.handler.apply(this,args)){e.preventDefault();}return true;}},this);}if(!this._onKeyHitch){this._onKeyHitch=_4.hitch(this,"onKeyPressed");}setTimeout(this._onKeyHitch,1);return true;},addKeyHandler:function(key,ctrl,_190,_191){if(!_4.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_190||false,ctrl:ctrl||false,handler:_191});},onKeyPressed:function(){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onIEMouseDown:function(e){if(!this._focused&&!this.disabled){this.focus();}},_onBlur:function(e){this.inherited(arguments);var _192=this.getValue(true);if(_192!=this.value){this.onChange(_192);}this._set("value",_192);},_onFocus:function(e){if(!this.disabled){if(!this._disabledOK){this.set("disabled",false);}this.inherited(arguments);}},blur:function(){if(!_4.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){this.window.document.documentElement.focus();}else{if(_4.doc.body.focus){_4.doc.body.focus();}}},focus:function(){if(!this.isLoaded){this.focusOnLoad=true;return;}if(this._cursorToStart){delete this._cursorToStart;if(this.editNode.childNodes){this.placeCursorAtStart();return;}}if(!_4.isIE){_5.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){this.iframe.fireEvent("onfocus",document.createEventObject());}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(this._updateTimer){clearTimeout(this._updateTimer);}if(!this._updateHandler){this._updateHandler=_4.hitch(this,"onNormalizedDisplayChanged");}this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);},onNormalizedDisplayChanged:function(){delete this._updateTimer;},onChange:function(_193){},_normalizeCommand:function(cmd,_194){var _195=cmd.toLowerCase();if(_195=="formatblock"){if(_4.isSafari&&_194===undefined){_195="heading";}}else{if(_195=="hilitecolor"&&!_4.isMoz){_195="backcolor";}}return _195;},_qcaCache:{},queryCommandAvailable:function(_196){var ca=this._qcaCache[_196];if(ca!==undefined){return ca;}return (this._qcaCache[_196]=this._queryCommandAvailable(_196));},_queryCommandAvailable:function(_197){var ie=1;var _198=1<<1;var _199=1<<2;var _19a=1<<3;function _19b(_19c){return {ie:Boolean(_19c&ie),mozilla:Boolean(_19c&_198),webkit:Boolean(_19c&_199),opera:Boolean(_19c&_19a)};};var _19d=null;switch(_197.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":_19d=_19b(_198|ie|_199|_19a);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":_19d=_19b(_198|ie|_19a|_199);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_19d=_19b(ie);break;case "cut":case "copy":case "paste":_19d=_19b(ie|_198|_199);break;case "inserttable":_19d=_19b(_198|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_19d=_19b(ie|_198);break;default:return false;}return (_4.isIE&&_19d.ie)||(_4.isMoz&&_19d.mozilla)||(_4.isWebKit&&_19d.webkit)||(_4.isOpera&&_19d.opera);},execCommand:function(_19e,_19f){var _1a0;this.focus();_19e=this._normalizeCommand(_19e,_19f);if(_19f!==undefined){if(_19e=="heading"){throw new Error("unimplemented");}else{if((_19e=="formatblock")&&_4.isIE){_19f="<"+_19f+">";}}}var _1a1="_"+_19e+"Impl";if(this[_1a1]){_1a0=this[_1a1](_19f);}else{_19f=arguments.length>1?_19f:null;if(_19f||_19e!="createlink"){_1a0=this.document.execCommand(_19e,false,_19f);}}this.onDisplayChanged();return _1a0;},queryCommandEnabled:function(_1a2){if(this.disabled||!this._disabledOK){return false;}_1a2=this._normalizeCommand(_1a2);if(_4.isMoz||_4.isWebKit){if(_1a2=="unlink"){return this._sCall("hasAncestorElement",["a"]);}else{if(_1a2=="inserttable"){return true;}}}if(_4.isWebKit){if(_1a2=="cut"||_1a2=="copy"){var sel=this.window.getSelection();if(sel){sel=sel.toString();}return !!sel;}else{if(_1a2=="paste"){return true;}}}var elem=_4.isIE?this.document.selection.createRange():this.document;try{return elem.queryCommandEnabled(_1a2);}catch(e){return false;}},queryCommandState:function(_1a3){if(this.disabled||!this._disabledOK){return false;}_1a3=this._normalizeCommand(_1a3);try{return this.document.queryCommandState(_1a3);}catch(e){return false;}},queryCommandValue:function(_1a4){if(this.disabled||!this._disabledOK){return false;}var r;_1a4=this._normalizeCommand(_1a4);if(_4.isIE&&_1a4=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_1a4)];}else{if(_4.isMoz&&_1a4==="hilitecolor"){var _1a5;try{_1a5=this.document.queryCommandValue("styleWithCSS");}catch(e){_1a5=false;}this.document.execCommand("styleWithCSS",false,true);r=this.document.queryCommandValue(_1a4);this.document.execCommand("styleWithCSS",false,_1a5);}else{r=this.document.queryCommandValue(_1a4);}}return r;},_sCall:function(name,args){return _4.withGlobal(this.window,name,_5._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _1a6=false;if(_4.isMoz){var _1a7=this.editNode.firstChild;while(_1a7){if(_1a7.nodeType==3){if(_1a7.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_1a6=true;this._sCall("selectElement",[_1a7]);break;}}else{if(_1a7.nodeType==1){_1a6=true;var tg=_1a7.tagName?_1a7.tagName.toLowerCase():"";if(/br|input|img|base|meta|area|basefont|hr|link/.test(tg)){this._sCall("selectElement",[_1a7]);}else{this._sCall("selectElementChildren",[_1a7]);}break;}}_1a7=_1a7.nextSibling;}}else{_1a6=true;this._sCall("selectElementChildren",[this.editNode]);}if(_1a6){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _1a8=false;if(_4.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_1a8=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_1a8=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_1a8=true;this._sCall("selectElementChildren",[this.editNode]);}if(_1a8){this._sCall("collapse",[false]);}},getValue:function(_1a9){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_1a9);},_getValueAttr:function(){return this.getValue(true);},setValue:function(html){if(!this.isLoaded){this.onLoadDeferred.addCallback(_4.hitch(this,function(){this.setValue(html);}));return;}this._cursorToStart=true;if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);var node=this.isClosed?this.domNode:this.editNode;if(html&&_4.isMoz&&html.toLowerCase()=="<p></p>"){html="<p>&nbsp;</p>";}if(!html&&_4.isWebKit){html="&nbsp;";}node.innerHTML=html;this._preDomFilterContent(node);}this.onDisplayChanged();this._set("value",this.getValue(true));},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!_4.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(!html){this._cursorToStart=true;html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}this._set("value",this.getValue(true));},_preFilterContent:function(html){var ec=html;_4.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;_4.forEach(this.contentDomPreFilters,function(ef){if(ef&&_4.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_1aa){var ec;if(!_4.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_1aa){dom=_4.clone(dom);}_4.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}ec=_5._editor.getChildrenHtml(dom);}else{ec=dom;}if(!_4.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){ec="";}_4.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _1ab=_4.byId(_5._scopeName+"._editor.RichText.value");if(_1ab.value){_1ab.value+=this._SEPARATOR;}_1ab.value+=this.name+this._NAME_CONTENT_SEP+this.getValue(true);},escapeXml:function(str,_1ac){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_1ac){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){_4.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);return _5._editor.getNodeHtml(node);},getNodeChildrenHtml:function(dom){_4.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);return _5._editor.getChildrenHtml(dom);},close:function(save){if(this.isClosed){return;}if(!arguments.length){save=true;}if(save){this._set("value",this.getValue(true));}if(this.interval){clearInterval(this.interval);}if(this._webkitListener){this.disconnect(this._webkitListener);delete this._webkitListener;}if(_4.isIE){this.iframe.onfocus=null;}this.iframe._loadFunc=null;if(this._iframeRegHandle){_5.unregisterIframe(this._iframeRegHandle);delete this._iframeRegHandle;}if(this.textarea){var s=this.textarea.style;s.position="";s.left=s.top="";if(_4.isIE){s.overflow=this.__overflow;this.__overflow=null;}this.textarea.value=this.value;_4.destroy(this.domNode);this.domNode=this.textarea;}else{this.domNode.innerHTML=this.value;}delete this.iframe;_4.removeClass(this.domNode,this.baseClass);this.isClosed=true;this.isLoaded=false;delete this.editNode;delete this.focusNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;},destroy:function(){if(!this.isClosed){this.close(false);}this.inherited(arguments);if(_5._editor._globalSaveHandler){delete _5._editor._globalSaveHandler[this.id];}},_removeMozBogus:function(html){return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"");},_removeWebkitBogus:function(html){html=html.replace(/\sclass="webkit-block-placeholder"/gi,"");html=html.replace(/\sclass="apple-style-span"/gi,"");html=html.replace(/<meta charset=\"utf-8\" \/>/gi,"");return html;},_normalizeFontStyle:function(html){return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");},_preFixUrlAttributes:function(html){return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");},_inserthorizontalruleImpl:function(_1ad){if(_4.isIE){return this._inserthtmlImpl("<hr>");}return this.document.execCommand("inserthorizontalrule",false,_1ad);},_unlinkImpl:function(_1ae){if((this.queryCommandEnabled("unlink"))&&(_4.isMoz||_4.isWebKit)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);return this.document.execCommand("unlink",false,null);}return this.document.execCommand("unlink",false,_1ae);},_hilitecolorImpl:function(_1af){var _1b0;if(_4.isMoz){this.document.execCommand("styleWithCSS",false,true);_1b0=this.document.execCommand("hilitecolor",false,_1af);this.document.execCommand("styleWithCSS",false,false);}else{_1b0=this.document.execCommand("hilitecolor",false,_1af);}return _1b0;},_backcolorImpl:function(_1b1){if(_4.isIE){_1b1=_1b1?_1b1:null;}return this.document.execCommand("backcolor",false,_1b1);},_forecolorImpl:function(_1b2){if(_4.isIE){_1b2=_1b2?_1b2:null;}return this.document.execCommand("forecolor",false,_1b2);},_inserthtmlImpl:function(_1b3){_1b3=this._preFilterContent(_1b3);var rv=true;if(_4.isIE){var _1b4=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_1b4.item(0);while(_1b4.length){_1b4.remove(_1b4.item(0));}n.outerHTML=_1b3;}else{_1b4.pasteHTML(_1b3);}_1b4.select();}else{if(_4.isMoz&&!_1b3.length){this._sCall("remove");}else{rv=this.document.execCommand("inserthtml",false,_1b3);}}return rv;},_boldImpl:function(_1b5){if(_4.isIE){this._adaptIESelection();}return this.document.execCommand("bold",false,_1b5);},_italicImpl:function(_1b6){if(_4.isIE){this._adaptIESelection();}return this.document.execCommand("italic",false,_1b6);},_underlineImpl:function(_1b7){if(_4.isIE){this._adaptIESelection();}return this.document.execCommand("underline",false,_1b7);},_strikethroughImpl:function(_1b8){if(_4.isIE){this._adaptIESelection();}return this.document.execCommand("strikethrough",false,_1b8);},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header);},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer);},_getNodeChildrenHeight:function(node){var h=0;if(node&&node.childNodes){var i;for(i=0;i<node.childNodes.length;i++){var size=_4.position(node.childNodes[i]);h+=size.h;}}return h;},_isNodeEmpty:function(node,_1b9){if(node.nodeType==1){if(node.childNodes.length>0){return this._isNodeEmpty(node.childNodes[0],_1b9);}return true;}else{if(node.nodeType==3){return (node.nodeValue.substring(_1b9)=="");}}return false;},_removeStartingRangeFromRange:function(node,_1ba){if(node.nextSibling){_1ba.setStart(node.nextSibling,0);}else{var _1bb=node.parentNode;while(_1bb&&_1bb.nextSibling==null){_1bb=_1bb.parentNode;}if(_1bb){_1ba.setStart(_1bb.nextSibling,0);}}return _1ba;},_adaptIESelection:function(){var _1bc=_5.range.getSelection(this.window);if(_1bc&&_1bc.rangeCount&&!_1bc.isCollapsed){var _1bd=_1bc.getRangeAt(0);var _1be=_1bd.startContainer;var _1bf=_1bd.startOffset;while(_1be.nodeType==3&&_1bf>=_1be.length&&_1be.nextSibling){_1bf=_1bf-_1be.length;_1be=_1be.nextSibling;}var _1c0=null;while(this._isNodeEmpty(_1be,_1bf)&&_1be!=_1c0){_1c0=_1be;_1bd=this._removeStartingRangeFromRange(_1be,_1bd);_1be=_1bd.startContainer;_1bf=0;}_1bc.removeAllRanges();_1bc.addRange(_1bd);}}});}if(!_4._hasResource["dijit._KeyNavContainer"]){_4._hasResource["dijit._KeyNavContainer"]=true;_4.provide("dijit._KeyNavContainer");_4.declare("dijit._KeyNavContainer",_5._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_1c1,_1c2){var _1c3=(this._keyNavCodes={});var prev=_4.hitch(this,this.focusPrev);var next=_4.hitch(this,this.focusNext);_4.forEach(_1c1,function(code){_1c3[code]=prev;});_4.forEach(_1c2,function(code){_1c3[code]=next;});_1c3[_4.keys.HOME]=_4.hitch(this,"focusFirstChild");_1c3[_4.keys.END]=_4.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){_4.forEach(this.getChildren(),_4.hitch(this,"_startupChild"));},addChild:function(_1c4,_1c5){_5._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_1c4);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _1c6=this._getFirstFocusableChild();if(_1c6){this.focusChild(_1c6);}},focusLastChild:function(){var _1c7=this._getLastFocusableChild();if(_1c7){this.focusChild(_1c7);}},focusNext:function(){var _1c8=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_1c8);},focusPrev:function(){var _1c9=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_1c9,true);},focusChild:function(_1ca,last){if(this.focusedChild&&_1ca!==this.focusedChild){this._onChildBlur(this.focusedChild);}_1ca.set("tabIndex",this.tabIndex);_1ca.focus(last?"end":"start");this._set("focusedChild",_1ca);},_startupChild:function(_1cb){_1cb.set("tabIndex","-1");this.connect(_1cb,"_onFocus",function(){_1cb.set("tabIndex",this.tabIndex);});this.connect(_1cb,"_onBlur",function(){_1cb.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();_4.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){_4.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();_4.stopEvent(evt);}},_onChildBlur:function(_1cc){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_1cd,dir){if(_1cd){_1cd=this._getSiblingOfChild(_1cd,dir);}var _1ce=this.getChildren();for(var i=0;i<_1ce.length;i++){if(!_1cd){_1cd=_1ce[(dir>0)?0:(_1ce.length-1)];}if(_1cd.isFocusable()){return _1cd;}_1cd=this._getSiblingOfChild(_1cd,dir);}return null;}});}if(!_4._hasResource["dijit.ToolbarSeparator"]){_4._hasResource["dijit.ToolbarSeparator"]=true;_4.provide("dijit.ToolbarSeparator");_4.declare("dijit.ToolbarSeparator",[_5._Widget,_5._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\" role=\"presentation\"></div>",buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!_4._hasResource["dijit.Toolbar"]){_4._hasResource["dijit.Toolbar"]=true;_4.provide("dijit.Toolbar");_4.declare("dijit.Toolbar",[_5._Widget,_5._Templated,_5._KeyNavContainer],{templateString:"<div class=\"dijit\" role=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",baseClass:"dijitToolbar",postCreate:function(){this.inherited(arguments);this.connectKeyNavHandlers(this.isLeftToRight()?[_4.keys.LEFT_ARROW]:[_4.keys.RIGHT_ARROW],this.isLeftToRight()?[_4.keys.RIGHT_ARROW]:[_4.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});}if(!_4._hasResource["dijit._HasDropDown"]){_4._hasResource["dijit._HasDropDown"]=true;_4.provide("dijit._HasDropDown");_4.declare("dijit._HasDropDown",null,{_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;}_4.stopEvent(e);this._docHandler=this.connect(_4.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _1cf=this.dropDown,_1d0=false;if(e&&this._opened){var c=_4.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&&!_1d0){if(_4.hasClass(t,"dijitPopup")){_1d0=true;}else{t=t.parentNode;}}if(_1d0){t=e.target;if(_1cf.onItemClick){var _1d1;while(t&&!(_1d1=_5.byNode(t))){t=t.parentNode;}if(_1d1&&_1d1.onClick&&_1d1.getParent){_1d1.getParent().onItemClick(_1d1,e);}}return;}}}if(this._opened&&_1cf.focus&&_1cf.autoFocus!==false){window.setTimeout(_4.hitch(_1cf,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){_4.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _1d2={"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";_4.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_1d2+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_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,_1d3=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){_4.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==_4.keys.ESCAPE){this.closeDropDown();_4.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==_4.keys.DOWN_ARROW||((e.charOrCode==_4.keys.ENTER||e.charOrCode==" ")&&((_1d3.tagName||"").toLowerCase()!=="input"||(_1d3.type&&_1d3.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;_4.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(_4.hitch(d,"focus"),1);}}},_onBlur:function(){var _1d4=_5._curFocus&&this.dropDown&&_4.isDescendant(_5._curFocus,this.dropDown.domNode);this.closeDropDown(_1d4);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_1d5){_1d5();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(_4.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _1d6=this.dropDown,_1d7=_1d6.domNode,_1d8=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_1d7.style.width){this._explicitDDWidth=true;}if(_1d7.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _1d9={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_1d9.width="";}if(!this._explicitDDHeight){_1d9.height="";}_4.style(_1d7,_1d9);var _1da=this.maxHeight;if(_1da==-1){var _1db=_4.window.getBox(),_1dc=_4.position(_1d8,false);_1da=Math.floor(Math.max(_1dc.y,_1db.h-(_1dc.y+_1dc.h)));}if(_1d6.startup&&!_1d6._started){_1d6.startup();}_5.popup.moveOffScreen(_1d6);var mb=_4._getMarginSize(_1d7);var _1dd=(_1da&&mb.h>_1da);_4.style(_1d7,{overflowX:"hidden",overflowY:_1dd?"auto":"hidden"});if(_1dd){mb.h=_1da;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_1d8.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_1d8.offsetWidth);}else{delete mb.w;}}if(_4.isFunction(_1d6.resize)){_1d6.resize(mb);}else{_4.marginBox(_1d7,mb);}}var _1de=_5.popup.open({parent:this,popup:_1d6,around:_1d8,orient:_5.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){_4.attr(self._popupStateNode,"popupActive",false);_4.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});_4.attr(this._popupStateNode,"popupActive","true");_4.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _1de;},closeDropDown:function(_1df){if(this._opened){if(_1df){this.focus();}_5.popup.close(this.dropDown);this._opened=false;}}});}if(!_4._hasResource["dijit.form.Button"]){_4._hasResource["dijit.form.Button"]=true;_4.provide("dijit.form.Button");_4.declare("dijit.form.Button",_5.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:_4.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\r\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\r\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\r\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\r\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\r\n\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t></span\r\n\t\t></span\r\n\t></span\r\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\r\n\t\tdojoAttachPoint=\"valueNode\"\r\n/></span>\r\n"),attributeMap:_4.delegate(_5.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _1e0=_5.byNode(node);if(_1e0&&typeof _1e0._onSubmit=="function"){_1e0._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.focusNode,false);},_fillContent:function(_1e1){if(_1e1&&(!this.params||!("label" in this.params))){this.set("label",_1e1.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){_4.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_1e2){_4.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_1e2);},_setLabelAttr:function(_1e3){this._set("label",_1e3);this.containerNode.innerHTML=_1e3;if(this.showLabel==false&&!this.params.title){this.titleNode.title=_4.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _1e4=this.iconClass||"dijitNoIcon",_1e5=val||"dijitNoIcon";_4.replaceClass(this.iconNode,_1e5,_1e4);this._set("iconClass",val);}});_4.declare("dijit.form.DropDownButton",[_5.form.Button,_5._Container,_5._HasDropDown],{baseClass:"dijitDropDownButton",templateString:_4.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\r\n\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\r\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\r\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\r\n\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\r\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\r\n\t\t\t\tid=\"${id}_label\"\r\n\t\t\t></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t></span\r\n\t></span\r\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\r\n\t\tdojoAttachPoint=\"valueNode\"\r\n/></span>\r\n"),_fillContent:function(){if(this.srcNodeRef){var _1e6=_4.query("*",this.srcNodeRef);_5.form.DropDownButton.superclass._fillContent.call(this,_1e6[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _1e7=_4.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=_5.byNode(_1e7);delete this.dropDownContainer;}if(this.dropDown){_5.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _1e8=this.dropDown;return (!!_1e8&&(!_1e8.href||_1e8.isLoaded));},loadDropDown:function(){var _1e9=this.dropDown;if(!_1e9){return;}if(!this.isLoaded()){var _1ea=_4.connect(_1e9,"onLoad",this,function(){_4.disconnect(_1ea);this.openDropDown();});_1e9.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});_4.declare("dijit.form.ComboButton",_5.form.DropDownButton,{templateString:_4.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\r\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\r\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\r\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"titleNode\"\r\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\r\n\t\t></div\r\n\t\t></td\r\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\r\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\r\n\t\t\ttitle=\"${optionsTitle}\"\r\n\t\t\trole=\"button\" aria-haspopup=\"true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t\t><td style=\"display:none !important;\"\r\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\r\n\t\t/></td></tr></tbody\r\n></table>\r\n"),attributeMap:_4.mixin(_4.clone(_5.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==_4.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){_5.focus(this._popupStateNode);_4.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==_4.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){_5.focus(this.titleNode);_4.stopEvent(evt);}},focus:function(_1eb){if(!this.disabled){_5.focus(_1eb=="start"?this.titleNode:this._popupStateNode);}}});_4.declare("dijit.form.ToggleButton",_5.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:_4.mixin(_4.clone(_5.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_1ec,_1ed){this._set("checked",_1ec);_4.attr(this.focusNode||this.domNode,"checked",_1ec);_5.setWaiState(this.focusNode||this.domNode,"pressed",_1ec);this._handleOnChange(_1ec,_1ed);},setChecked:function(_1ee){_4.deprecated("setChecked("+_1ee+") is deprecated. Use set('checked',"+_1ee+") instead.","","2.0");this.set("checked",_1ee);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!_4._hasResource["dijit._editor._Plugin"]){_4._hasResource["dijit._editor._Plugin"]=true;_4.provide("dijit._editor._Plugin");_4.declare("dijit._editor._Plugin",null,{constructor:function(args,node){this.params=args||{};_4.mixin(this,this.params);this._connects=[];this._attrPairNames={};},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:true,buttonClass:_5.form.Button,disabled:false,getLabel:function(key){return this.editor.commands[key];},_initButton:function(){if(this.command.length){var _1ef=this.getLabel(this.command),_1f0=this.editor,_1f1=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){var _1f2=_4.mixin({label:_1ef,dir:_1f0.dir,lang:_1f0.lang,showLabel:false,iconClass:_1f1,dropDown:this.dropDown,tabIndex:"-1"},this.params||{});this.button=new this.buttonClass(_1f2);}}if(this.get("disabled")&&this.button){this.button.set("disabled",this.get("disabled"));}},destroy:function(){_4.forEach(this._connects,_4.disconnect);if(this.dropDown){this.dropDown.destroyRecursive();}},connect:function(o,f,tf){this._connects.push(_4.connect(o,f,this,tf));},updateState:function(){var e=this.editor,c=this.command,_1f3,_1f4;if(!e||!e.isLoaded||!c.length){return;}var _1f5=this.get("disabled");if(this.button){try{_1f4=!_1f5&&e.queryCommandEnabled(c);if(this.enabled!==_1f4){this.enabled=_1f4;this.button.set("disabled",!_1f4);}if(typeof this.button.checked=="boolean"){_1f3=e.queryCommandState(c);if(this.checked!==_1f3){this.checked=_1f3;this.button.set("checked",e.queryCommandState(c));}}}catch(e){console.log(e);}}},setEditor:function(_1f6){this.editor=_1f6;this._initButton();if(this.button&&this.useDefaultCommand){if(this.editor.queryCommandAvailable(this.command)){this.connect(this.button,"onClick",_4.hitch(this.editor,"execCommand",this.command,this.commandArg));}else{this.button.domNode.style.display="none";}}this.connect(this.editor,"onNormalizedDisplayChanged","updateState");},setToolbar:function(_1f7){if(this.button){_1f7.addChild(this.button);}},set:function(name,_1f8){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _1f9=this._getAttrNames(name);if(this[_1f9.s]){var _1fa=this[_1f9.s].apply(this,Array.prototype.slice.call(arguments,1));}else{this._set(name,_1f8);}return _1fa||this;},get:function(name){var _1fb=this._getAttrNames(name);return this[_1fb.g]?this[_1fb.g]():this[name];},_setDisabledAttr:function(_1fc){this.disabled=_1fc;this.updateState();},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(name,_1fd){var _1fe=this[name];this[name]=_1fd;}});}if(!_4._hasResource["dijit._editor.plugins.EnterKeyHandling"]){_4._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;_4.provide("dijit._editor.plugins.EnterKeyHandling");_4.declare("dijit._editor.plugins.EnterKeyHandling",_5._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){if(args){if("blockNodeForEnter" in args){args.blockNodeForEnter=args.blockNodeForEnter.toUpperCase();}_4.mixin(this,args);}},setEditor:function(_1ff){if(this.editor===_1ff){return;}this.editor=_1ff;if(this.blockNodeForEnter=="BR"){this.editor.customUndo=true;_1ff.onLoadDeferred.addCallback(_4.hitch(this,function(d){this.connect(_1ff.document,"onkeypress",function(e){if(e.charOrCode==_4.keys.ENTER){var ne=_4.mixin({},e);ne.shiftKey=true;if(!this.handleEnterKey(ne)){_4.stopEvent(e);}}});return d;}));}else{if(this.blockNodeForEnter){var h=_4.hitch(this,this.handleEnterKey);_1ff.addKeyHandler(13,0,0,h);_1ff.addKeyHandler(13,0,1,h);this.connect(this.editor,"onKeyPressed","onKeyPressed");}}},onKeyPressed:function(e){if(this._checkListLater){if(_4.withGlobal(this.editor.window,"isCollapsed",_5)){var _200=_4.withGlobal(this.editor.window,"getAncestorElement",_5._editor.selection,["LI"]);if(!_200){_5._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _201=_4.withGlobal(this.editor.window,"getAncestorElement",_5._editor.selection,[this.blockNodeForEnter]);if(_201){_201.innerHTML=this.bogusHtmlContent;if(_4.isIE){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{console.error("onKeyPressed: Cannot find the new block node");}}else{if(_4.isMoz){if(_200.parentNode.parentNode.nodeName=="LI"){_200=_200.parentNode.parentNode;}}var fc=_200.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_200.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _202=_5.range.create(this.editor.window);_202.setStart(_200.firstChild,0);var _203=_5.range.getSelection(this.editor.window,true);_203.removeAllRanges();_203.addRange(_202);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){var _204,_205,_206,_207,_208,_209,doc=this.editor.document,br,rs,txt;if(e.shiftKey){var _20a=_4.withGlobal(this.editor.window,"getParentElement",_5._editor.selection);var _20b=_5.range.getAncestor(_20a,this.blockNodes);if(_20b){if(_20b.tagName=="LI"){return true;}_204=_5.range.getSelection(this.editor.window);_205=_204.getRangeAt(0);if(!_205.collapsed){_205.deleteContents();_204=_5.range.getSelection(this.editor.window);_205=_204.getRangeAt(0);}if(_5.range.atBeginningOfContainer(_20b,_205.startContainer,_205.startOffset)){br=doc.createElement("br");_206=_5.range.create(this.editor.window);_20b.insertBefore(br,_20b.firstChild);_206.setStartBefore(br.nextSibling);_204.removeAllRanges();_204.addRange(_206);}else{if(_5.range.atEndOfContainer(_20b,_205.startContainer,_205.startOffset)){_206=_5.range.create(this.editor.window);br=doc.createElement("br");_20b.appendChild(br);_20b.appendChild(doc.createTextNode(" "));_206.setStart(_20b.lastChild,0);_204.removeAllRanges();_204.addRange(_206);}else{rs=_205.startContainer;if(rs&&rs.nodeType==3){txt=rs.nodeValue;_4.withGlobal(this.editor.window,function(){_207=doc.createTextNode(txt.substring(0,_205.startOffset));_208=doc.createTextNode(txt.substring(_205.startOffset));_209=doc.createElement("br");if(_208.nodeValue==""&&_4.isWebKit){_208=doc.createTextNode(" ");}_4.place(_207,rs,"after");_4.place(_209,_207,"after");_4.place(_208,_209,"after");_4.destroy(rs);_206=_5.range.create(_4.gobal);_206.setStart(_208,0);_204.removeAllRanges();_204.addRange(_206);});return false;}return true;}}}else{_204=_5.range.getSelection(this.editor.window);if(_204.rangeCount){_205=_204.getRangeAt(0);if(_205&&_205.startContainer){if(!_205.collapsed){_205.deleteContents();_204=_5.range.getSelection(this.editor.window);_205=_204.getRangeAt(0);}rs=_205.startContainer;if(rs&&rs.nodeType==3){_4.withGlobal(this.editor.window,_4.hitch(this,function(){var _20c=false;var _20d=_205.startOffset;if(rs.length<_20d){ret=this._adjustNodeAndOffset(rs,_20d);rs=ret.node;_20d=ret.offset;}txt=rs.nodeValue;_207=doc.createTextNode(txt.substring(0,_20d));_208=doc.createTextNode(txt.substring(_20d));_209=doc.createElement("br");if(!_208.length){_208=doc.createTextNode(" ");_20c=true;}if(_207.length){_4.place(_207,rs,"after");}else{_207=rs;}_4.place(_209,_207,"after");_4.place(_208,_209,"after");_4.destroy(rs);_206=_5.range.create(_4.gobal);_206.setStart(_208,0);_206.setEnd(_208,_208.length);_204.removeAllRanges();_204.addRange(_206);if(_20c&&!_4.isWebKit){_5._editor.selection.remove();}else{_5._editor.selection.collapse(true);}}));}else{_4.withGlobal(this.editor.window,_4.hitch(this,function(){var _20e=doc.createElement("br");rs.appendChild(_20e);var _20f=doc.createTextNode(" ");rs.appendChild(_20f);_206=_5.range.create(_4.global);_206.setStart(_20f,0);_206.setEnd(_20f,_20f.length);_204.removeAllRanges();_204.addRange(_206);_5._editor.selection.collapse(true);}));}}}else{_5._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}}return false;}var _210=true;_204=_5.range.getSelection(this.editor.window);_205=_204.getRangeAt(0);if(!_205.collapsed){_205.deleteContents();_204=_5.range.getSelection(this.editor.window);_205=_204.getRangeAt(0);}var _211=_5.range.getBlockAncestor(_205.endContainer,null,this.editor.editNode);var _212=_211.blockNode;if((this._checkListLater=(_212&&(_212.nodeName=="LI"||_212.parentNode.nodeName=="LI")))){if(_4.isMoz){this._pressedEnterInBlock=_212;}if(/^(\s|&nbsp;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|\xA0)<\/span>)?(<br>)?$/.test(_212.innerHTML)){_212.innerHTML="";if(_4.isWebKit){_206=_5.range.create(this.editor.window);_206.setStart(_212,0);_204.removeAllRanges();_204.addRange(_206);}this._checkListLater=false;}return true;}if(!_211.blockNode||_211.blockNode===this.editor.editNode){try{_5._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);}catch(e2){}_211={blockNode:_4.withGlobal(this.editor.window,"getAncestorElement",_5._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_211.blockNode){if(_211.blockNode!=this.editor.editNode&&(!(_211.blockNode.textContent||_211.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)){this.removeTrailingBr(_211.blockNode);return false;}}else{_211.blockNode=this.editor.editNode;}_204=_5.range.getSelection(this.editor.window);_205=_204.getRangeAt(0);}var _213=doc.createElement(this.blockNodeForEnter);_213.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_211.blockNode);var _214=_205.endOffset;var node=_205.endContainer;if(node.length<_214){var ret=this._adjustNodeAndOffset(node,_214);node=ret.node;_214=ret.offset;}if(_5.range.atEndOfContainer(_211.blockNode,node,_214)){if(_211.blockNode===_211.blockContainer){_211.blockNode.appendChild(_213);}else{_4.place(_213,_211.blockNode,"after");}_210=false;_206=_5.range.create(this.editor.window);_206.setStart(_213,0);_204.removeAllRanges();_204.addRange(_206);if(this.editor.height){_4.window.scrollIntoView(_213);}}else{if(_5.range.atBeginningOfContainer(_211.blockNode,_205.startContainer,_205.startOffset)){_4.place(_213,_211.blockNode,_211.blockNode===_211.blockContainer?"first":"before");if(_213.nextSibling&&this.editor.height){_206=_5.range.create(this.editor.window);_206.setStart(_213.nextSibling,0);_204.removeAllRanges();_204.addRange(_206);_4.window.scrollIntoView(_213.nextSibling);}_210=false;}else{if(_211.blockNode===_211.blockContainer){_211.blockNode.appendChild(_213);}else{_4.place(_213,_211.blockNode,"after");}_210=false;if(_211.blockNode.style){if(_213.style){if(_211.blockNode.style.cssText){_213.style.cssText=_211.blockNode.style.cssText;}}}rs=_205.startContainer;var _215;if(rs&&rs.nodeType==3){var _216,_217;_214=_205.endOffset;if(rs.length<_214){ret=this._adjustNodeAndOffset(rs,_214);rs=ret.node;_214=ret.offset;}txt=rs.nodeValue;_207=doc.createTextNode(txt.substring(0,_214));_208=doc.createTextNode(txt.substring(_214,txt.length));_4.place(_207,rs,"before");_4.place(_208,rs,"after");_4.destroy(rs);var _218=_207.parentNode;while(_218!==_211.blockNode){var tg=_218.tagName;var _219=doc.createElement(tg);if(_218.style){if(_219.style){if(_218.style.cssText){_219.style.cssText=_218.style.cssText;}}}if(_218.tagName==="FONT"){if(_218.color){_219.color=_218.color;}if(_218.face){_219.face=_218.face;}if(_218.size){_219.size=_218.size;}}_216=_208;while(_216){_217=_216.nextSibling;_219.appendChild(_216);_216=_217;}_4.place(_219,_218,"after");_207=_218;_208=_219;_218=_218.parentNode;}_216=_208;if(_216.nodeType==1||(_216.nodeType==3&&_216.nodeValue)){_213.innerHTML="";}_215=_216;while(_216){_217=_216.nextSibling;_213.appendChild(_216);_216=_217;}}_206=_5.range.create(this.editor.window);var _21a;var _21b=_215;if(this.blockNodeForEnter!=="BR"){while(_21b){_21a=_21b;_217=_21b.firstChild;_21b=_217;}if(_21a&&_21a.parentNode){_213=_21a.parentNode;_206.setStart(_213,0);_204.removeAllRanges();_204.addRange(_206);if(this.editor.height){_5.scrollIntoView(_213);}if(_4.isMoz){this._pressedEnterInBlock=_211.blockNode;}}else{_210=true;}}else{_206.setStart(_213,0);_204.removeAllRanges();_204.addRange(_206);if(this.editor.height){_5.scrollIntoView(_213);}if(_4.isMoz){this._pressedEnterInBlock=_211.blockNode;}}}}return _210;},_adjustNodeAndOffset:function(node,_21c){while(node.length<_21c&&node.nextSibling&&node.nextSibling.nodeType==3){_21c=_21c-node.length;node=node.nextSibling;}var ret={"node":node,"offset":_21c};return ret;},removeTrailingBr:function(_21d){var para=/P|DIV|LI/i.test(_21d.tagName)?_21d:_5._editor.selection.getParentOfType(_21d,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||para.lastChild.tagName=="BR"){_4.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}}});}if(!_4._hasResource["dijit.Editor"]){_4._hasResource["dijit.Editor"]=true;_4.provide("dijit.Editor");_4.declare("dijit.Editor",_5._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){if(!_4.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(_4.isIE){this.events.push("onBeforeDeactivate");this.events.push("onBeforeActivate");}},postMixInProperties:function(){this.setValueDeferred=new _4.Deferred();this.inherited(arguments);},postCreate:function(){this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);if(_4.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.inherited(arguments);this.commands=_4.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){this.toolbar=new _5.Toolbar({dir:this.dir,lang:this.lang});this.header.appendChild(this.toolbar.domNode);}_4.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.callback(true);_4.addClass(this.iframe.parentNode,"dijitEditorIFrameContainer");_4.addClass(this.iframe,"dijitEditorIFrame");_4.attr(this.iframe,"allowTransparency",true);if(_4.isWebKit){_4.style(this.domNode,"KhtmlUserSelect","none");}this.toolbar.startup();this.onNormalizedDisplayChanged();},destroy:function(){_4.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_21e,_21f){var args=_4.isString(_21e)?{name:_21e}:_21e;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};_4.publish(_5._scopeName+".Editor.getPlugin",[o]);if(!o.plugin){var pc=_4.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.warn("Cannot find plugin",_21e);return;}_21e=o.plugin;}if(arguments.length>1){this._plugins[_21f]=_21e;}else{this._plugins.push(_21e);}_21e.setEditor(this);if(_4.isFunction(_21e.setToolbar)){_21e.setToolbar(this.toolbar);}},startup:function(){},resize:function(size){if(size){_5.layout._LayoutWidget.prototype.resize.apply(this,arguments);}},layout:function(){var _220=(this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+_4._getPadBorderExtents(this.iframe.parentNode).h+_4._getMarginExtents(this.iframe.parentNode).h));this.editingArea.style.height=_220+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){var _221;var b=this.document.body;var _222=b.clientWidth;var _223=b.clientHeight;var _224=b.clientLeft;var _225=b.offsetWidth;var _226=b.offsetHeight;var _227=b.offsetLeft;bodyDir=b.dir?b.dir.toLowerCase():"";if(bodyDir!="rtl"){if(_222<_225&&e.x>_222&&e.x<_225){_221=true;}}else{if(e.x<_224&&e.x>_227){_221=true;}}if(!_221){if(_223<_226&&e.y>_223&&e.y<_226){_221=true;}}if(!_221){delete this._cursorToStart;delete this._savedSelection;if(e.target.tagName=="BODY"){setTimeout(_4.hitch(this,"placeCursorAtEnd"),0);}this.inherited(arguments);}},onBeforeActivate:function(e){this._restoreSelection();},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}if(e.target.tagName!="BODY"){this._saveSelection();}},customUndo:true,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(_4.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}var r;var _228=/copy|cut|paste/.test(cmd);try{r=this.inherited(arguments);if(_4.isWebKit&&_228&&!r){throw {code:1011};}}catch(e){if(e.code==1011&&_228){var sub=_4.string.substitute,_229={cut:"X",copy:"C",paste:"V"};alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[_4.isMac?"appleKey":"ctrlKey"],[_229[cmd]])]));}r=false;}if(this.customUndo){this._endEditing();}return r;}},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited(arguments);}},_moveToBookmark:function(b){var _22a=b.mark;var mark=b.mark;var col=b.isCollapsed;var r,_22b,_22c,sel;if(mark){if(_4.isIE<9){if(_4.isArray(mark)){_22a=[];_4.forEach(mark,function(n){_22a.push(_5.range.getNode(n,this.editNode));},this);_4.withGlobal(this.window,"moveToBookmark",_5,[{mark:_22a,isCollapsed:col}]);}else{if(mark.startContainer&&mark.endContainer){sel=_5.range.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=_5.range.create(this.window);_22b=_5.range.getNode(mark.startContainer,this.editNode);_22c=_5.range.getNode(mark.endContainer,this.editNode);if(_22b&&_22c){r.setStart(_22b,mark.startOffset);r.setEnd(_22c,mark.endOffset);sel.addRange(r);}}}}}else{sel=_5.range.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=_5.range.create(this.window);_22b=_5.range.getNode(mark.startContainer,this.editNode);_22c=_5.range.getNode(mark.endContainer,this.editNode);if(_22b&&_22c){r.setStart(_22b,mark.startOffset);r.setEnd(_22c,mark.endOffset);sel.addRange(r);}}}}},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._steps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();delete this._undoRedoActive;ret=true;}delete this._undoRedoActive;}return ret;},redo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();ret=true;}delete this._undoRedoActive;}return ret;},endEditing:function(_22d){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_22d);this._inEditing=false;}},_getBookmark:function(){var b=_4.withGlobal(this.window,_5.getBookmark);var tmp=[];if(b&&b.mark){var mark=b.mark;if(_4.isIE<9){var sel=_5.range.getSelection(this.window);if(!_4.isArray(mark)){if(sel){var _22e;if(sel.rangeCount){_22e=sel.getRangeAt(0);}if(_22e){b.mark=_22e.cloneRange();}else{b.mark=_4.withGlobal(this.window,_5.getBookmark);}}}else{_4.forEach(b.mark,function(n){tmp.push(_5.range.getIndex(n,this.editNode).o);},this);b.mark=tmp;}}try{if(b.mark&&b.mark.startContainer){tmp=_5.range.getIndex(b.mark.startContainer,this.editNode).o;b.mark={startContainer:tmp,startOffset:b.mark.startOffset,endContainer:b.mark.endContainer===b.mark.startContainer?tmp:_5.range.getIndex(b.mark.endContainer,this.editNode).o,endOffset:b.mark.endOffset};}}catch(e){b.mark=null;}}return b;},_beginEditing:function(cmd){if(this._steps.length===0){this._steps.push({"text":_5._editor.getChildrenHtml(this.editNode),"bookmark":this._getBookmark()});}},_endEditing:function(_22f){var v=_5._editor.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!_4.isIE&&!this.iframe&&e.keyCode==_4.keys.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode,ks=_4.keys;if(e.ctrlKey&&!e.altKey){if(k==90||k==122){_4.stopEvent(e);this.undo();return;}else{if(k==89||k==121){_4.stopEvent(e);this.redo();return;}}}this.inherited(arguments);switch(k){case ks.ENTER:case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(_4.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(_4.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<_4.keys.F1||e.keyCode>_4.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited(arguments);this.endEditing(true);},_saveSelection:function(){try{this._savedSelection=this._getBookmark();}catch(e){}},_restoreSelection:function(){if(this._savedSelection){delete this._cursorToStart;if(_4.withGlobal(this.window,"isCollapsed",_5)){this._moveToBookmark(this._savedSelection);}delete this._savedSelection;}},onClick:function(){this.endEditing(true);this.inherited(arguments);},replaceValue:function(html){if(!this.customUndo){this.inherited(arguments);}else{if(this.isClosed){this.setValue(html);}else{this.beginEditing();if(!html){html="&nbsp;";}this.setValue(html);this.endEditing();}}},_setDisabledAttr:function(_230){var _231=_4.hitch(this,function(){if((!this.disabled&&_230)||(!this._buttonEnabledPlugins&&_230)){_4.forEach(this._plugins,function(p){p.set("disabled",true);});}else{if(this.disabled&&!_230){_4.forEach(this._plugins,function(p){p.set("disabled",false);});}}});this.setValueDeferred.addCallback(_231);this.inherited(arguments);},_setStateClass:function(){try{this.inherited(arguments);if(this.document&&this.document.body){_4.style(this.document.body,"color",_4.style(this.iframe,"color"));}}catch(e){}}});_4.subscribe(_5._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _232=_5._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":case "unlink":case "insertHorizontalRule":p=new _232({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _232({buttonClass:_5.form.ToggleButton,command:name});break;case "|":p=new _232({button:new _5.ToolbarSeparator(),setEditor:function(_233){this.editor=_233;}});}o.plugin=p;});}if(!_4._hasResource["dojo.regexp"]){_4._hasResource["dojo.regexp"]=true;_4.provide("dojo.regexp");_4.getObject("regexp",true,_4);_4.regexp.escapeString=function(str,_234){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_234&&_234.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};_4.regexp.buildGroupRE=function(arr,re,_235){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return _4.regexp.group(b.join("|"),_235);};_4.regexp.group=function(_236,_237){return "("+(_237?"?:":"")+_236+")";};}if(!_4._hasResource["dojo.data.util.sorter"]){_4._hasResource["dojo.data.util.sorter"]=true;_4.provide("dojo.data.util.sorter");_4.getObject("data.util.sorter",true,_4);_4.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};_4.data.util.sorter.createSortFunction=function(_238,_239){var _23a=[];function _23b(attr,dir,comp,s){return function(_23c,_23d){var a=s.getValue(_23c,attr);var b=s.getValue(_23d,attr);return dir*comp(a,b);};};var _23e;var map=_239.comparatorMap;var bc=_4.data.util.sorter.basicComparator;for(var i=0;i<_238.length;i++){_23e=_238[i];var attr=_23e.attribute;if(attr){var dir=(_23e.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_23a.push(_23b(attr,dir,comp,_239));}}return function(rowA,rowB){var i=0;while(i<_23a.length){var ret=_23a[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!_4._hasResource["dojo.data.util.simpleFetch"]){_4._hasResource["dojo.data.util.simpleFetch"]=true;_4.provide("dojo.data.util.simpleFetch");_4.getObject("data.util.simpleFetch",true,_4);_4.data.util.simpleFetch.fetch=function(_23f){_23f=_23f||{};if(!_23f.store){_23f.store=this;}var self=this;var _240=function(_241,_242){if(_242.onError){var _243=_242.scope||_4.global;_242.onError.call(_243,_241,_242);}};var _244=function(_245,_246){var _247=_246.abort||null;var _248=false;var _249=_246.start?_246.start:0;var _24a=(_246.count&&(_246.count!==Infinity))?(_249+_246.count):_245.length;_246.abort=function(){_248=true;if(_247){_247.call(_246);}};var _24b=_246.scope||_4.global;if(!_246.store){_246.store=self;}if(_246.onBegin){_246.onBegin.call(_24b,_245.length,_246);}if(_246.sort){_245.sort(_4.data.util.sorter.createSortFunction(_246.sort,self));}if(_246.onItem){for(var i=_249;(i<_245.length)&&(i<_24a);++i){var item=_245[i];if(!_248){_246.onItem.call(_24b,item,_246);}}}if(_246.onComplete&&!_248){var _24c=null;if(!_246.onItem){_24c=_245.slice(_249,_24a);}_246.onComplete.call(_24b,_24c,_246);}};this._fetchItems(_23f,_244,_240);return _23f;};}if(!_4._hasResource["dojo.data.util.filter"]){_4._hasResource["dojo.data.util.filter"]=true;_4.provide("dojo.data.util.filter");_4.getObject("data.util.filter",true,_4);_4.data.util.filter.patternToRegExp=function(_24d,_24e){var rxp="^";var c=null;for(var i=0;i<_24d.length;i++){c=_24d.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_24d.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_24e){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!_4._hasResource["dijit.form.TextBox"]){_4._hasResource["dijit.form.TextBox"]=true;_4.provide("dijit.form.TextBox");_4.declare("dijit.form.TextBox",_5.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:_4.cache("dijit.form","templates/TextBox.html","<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\r\n\t\t\t${!nameAttrSetting} type='${type}'\r\n\t/></div\r\n></div>\r\n"),_singleNodeTemplate:"<input class=\"dijit dijitReset dijitLeft dijitInputField\" dojoAttachPoint=\"textbox,focusNode\" autocomplete=\"off\" type=\"${type}\" ${!nameAttrSetting} />",_buttonInputDisabled:_4.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:_4.delegate(_5.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var type=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==_5.form.TextBox.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=_4.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";}},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_24f,_250,_251){var _252;if(_24f!==undefined){_252=this.filter(_24f);if(typeof _251!="string"){if(_252!==null&&((typeof _252!="number")||!isNaN(_252))){_251=this.filter(this.format(_252,this.constraints));}else{_251="";}}}if(_251!=null&&_251!=undefined&&((typeof _251)!="number"||!isNaN(_251))&&this.textbox.value!=_251){this.textbox.value=_251;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_252,_250]);},displayedValue:"",getDisplayedValue:function(){_4.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_253){_4.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_253);},_setDisplayedValueAttr:function(_254){if(_254===null||_254===undefined){_254="";}else{if(typeof _254!="string"){_254=String(_254);}}this.textbox.value=_254;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_255,_256){return ((_255==null||_255==undefined)?"":(_255.toString?_255.toString():_255));},parse:function(_257,_258){return _257;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case _4.keys.SHIFT:case _4.keys.ALT:case _4.keys.CTRL:case _4.keys.TAB:return;}}if(this.intermediateChanges){var _259=this;setTimeout(function(){_259._handleOnChange(_259.get("value"),false);},0);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){if(_4.isIE){setTimeout(_4.hitch(this,function(){var s=_4.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _25a=this.domNode.getElementsByTagName("INPUT");if(_25a){for(var i=0;i<_25a.length;i++){_25a[i].style.fontFamily=ff;}}}}}),0);}this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(_4.isMoz||_4.isOpera){this.connect(this.textbox,"oninput","_onInput");}else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput");}},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=_4.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}if(this.selectOnClick&&_4.isMoz){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}this._updatePlaceHolder();},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var _25b;if(_4.isIE){var _25c=_4.doc.selection.createRange();var _25d=_25c.parentElement();_25b=_25d==this.textbox&&_25c.text.length==0;}else{_25b=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_25b){_5.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});_5.selectInputText=function(_25e,_25f,stop){var _260=_4.global;var _261=_4.doc;_25e=_4.byId(_25e);if(isNaN(_25f)){_25f=0;}if(isNaN(stop)){stop=_25e.value?_25e.value.length:0;}_5.focus(_25e);if(_261["selection"]&&_4.body()["createTextRange"]){if(_25e.createTextRange){var r=_25e.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_25f);r.moveEnd("character",stop-_25f);r.select();}}else{if(_260["getSelection"]){if(_25e.setSelectionRange){_25e.setSelectionRange(_25f,stop);}}}};}if(!_4._hasResource["dijit.Tooltip"]){_4._hasResource["dijit.Tooltip"]=true;_4.provide("dijit.Tooltip");_4.declare("dijit._MasterTooltip",[_5._Widget,_5._Templated],{duration:_5.defaultDuration,templateString:_4.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\r\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\r\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\r\n></div>\r\n"),postCreate:function(){_4.body().appendChild(this.domNode);this.bgIframe=new _5.BackgroundIframe(this.domNode);this.fadeIn=_4.fadeIn({node:this.domNode,duration:this.duration,onEnd:_4.hitch(this,"_onShow")});this.fadeOut=_4.fadeOut({node:this.domNode,duration:this.duration,onEnd:_4.hitch(this,"_onHide")});},show:function(_262,_263,_264,rtl){if(this.aroundNode&&this.aroundNode===_263){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_262;var pos=_5.placeOnScreenAroundElement(this.domNode,_263,_5.getPopupAroundAlignment((_264&&_264.length)?_264:_5.Tooltip.defaultPosition,!rtl),_4.hitch(this,"orient"));_4.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_263;},orient:function(node,_265,_266,_267,_268){this.connectorNode.style.top="";var _269=_267.w-this.connectorNode.offsetWidth;node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_265+"-"+_266];this.domNode.style.width="auto";var size=_4.contentBox(this.domNode);var _26a=Math.min((Math.max(_269,1)),size.w);var _26b=_26a<size.w;this.domNode.style.width=_26a+"px";if(_26b){this.containerNode.style.overflow="auto";var _26c=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_26c>_26a){_26c=_26c+_4.style(this.domNode,"paddingLeft")+_4.style(this.domNode,"paddingRight");this.domNode.style.width=_26c+"px";}}if(_266.charAt(0)=="B"&&_265.charAt(0)=="B"){var mb=_4.marginBox(node);var _26d=this.connectorNode.offsetHeight;if(mb.h>_267.h){var _26e=_267.h-(_268.h/2)-(_26d/2);this.connectorNode.style.top=_26e+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_268.h/2-_26d/2,0),mb.h-_26d)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_269);},_onShow:function(){if(_4.isIE){this.domNode.style.filter="";}},hide:function(_26f){if(this._onDeck&&this._onDeck[1]==_26f){this._onDeck=null;}else{if(this.aroundNode===_26f){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});_5.showTooltip=function(_270,_271,_272,rtl){if(!_5._masterTT){_5._masterTT=new _5._MasterTooltip();}return _5._masterTT.show(_270,_271,_272,rtl);};_5.hideTooltip=function(_273){if(!_5._masterTT){_5._masterTT=new _5._MasterTooltip();}return _5._masterTT.hide(_273);};_4.declare("dijit.Tooltip",_5._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_274){_4.forEach(this._connections||[],function(_275){_4.forEach(_275,_4.hitch(this,"disconnect"));},this);var ary=_4.isArrayLike(_274)?_274:(_274?[_274]:[]);this._connections=_4.map(ary,function(id){var node=_4.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_274);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(_4.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=_4.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);_4.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;_4.forEach(_4.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _276=e.target;this._showTimer=setTimeout(_4.hitch(this,function(){this.open(_276);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_277){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}_5.showTooltip(this.label||this.domNode.innerHTML,_277,this.position,!this.isLeftToRight());this._connectNode=_277;this.onShow(_277,this.position);},close:function(){if(this._connectNode){_5.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_278,_279){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});_5.Tooltip.defaultPosition=["after","before"];}if(!_4._hasResource["dijit.form.ValidationTextBox"]){_4._hasResource["dijit.form.ValidationTextBox"]=true;_4.provide("dijit.form.ValidationTextBox");_4.declare("dijit.form.ValidationTextBox",_5.form.TextBox,{templateString:_4.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\" role=\"presentation\"\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\r\n\t\t\t${!nameAttrSetting} type='${type}'\r\n\t/></div\r\n></div>\r\n"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(_27a){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_27b,_27c){return (new RegExp("^(?:"+this.regExpGen(_27c)+")"+(this.required?"":"?")+"$")).test(_27b)&&(!this.required||!this._isEmpty(_27b))&&(this._isEmpty(_27b)||this.parse(_27b,_27c)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_27d){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_27e){return (this.trim?/^\s*$/:/^$/).test(_27e);},getErrorMessage:function(_27f){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_280){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_281){var _282="";var _283=this.disabled||this.isValid(_281);if(_283){this._maskValidSubsetError=true;}var _284=this._isEmpty(this.textbox.value);var _285=!_283&&_281&&this._isValidSubset();this._set("state",_283?"":(((((!this._hasBeenBlurred||_281)&&_284)||_285)&&this._maskValidSubsetError)?"Incomplete":"Error"));_5.setWaiState(this.focusNode,"invalid",_283?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_281&&_285;_282=this.getErrorMessage(_281);}else{if(this.state=="Incomplete"){_282=this.getPromptMessage(_281);this._maskValidSubsetError=!this._hasBeenBlurred||_281;}else{if(_284){_282=this.getPromptMessage(_281);}}}this.set("message",_282);return _283;},displayMessage:function(_286){_5.hideTooltip(this.domNode);if(_286&&this._focused){_5.showTooltip(_286,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_287){if(!_287.locale&&this.lang){_287.locale=this.lang;}this._set("constraints",_287);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _288="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_288+=re;break;case ")":_288+="|$)";break;default:_288+="(?:"+re+"|$)";break;}});}try{"".search(_288);}catch(e){_288=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_288+")$";},postMixInProperties:function(){this.inherited(arguments);this.messages=_4.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}if(!this.invalidMessage){this.invalidMessage=this.promptMessage;}if(this.missingMessage=="$_unset_$"){this.missingMessage=this.messages.missingMessage;}if(!this.missingMessage){this.missingMessage=this.invalidMessage;}this._setConstraintsAttr(this.constraints);},_setDisabledAttr:function(_289){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_28a){this._set("required",_28a);_5.setWaiState(this.focusNode,"required",_28a);this._refreshState();},_setMessageAttr:function(_28b){this._set("message",_28b);this.displayMessage(_28b);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);},_onBlur:function(){this.displayMessage("");this.inherited(arguments);}});_4.declare("dijit.form.MappedTextBox",_5.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_28c){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.get("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=_4.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});_4.declare("dijit.form.RangeBoundTextBox",_5.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_28d,_28e){return ("min" in _28e?(this.compare(_28d,_28e.min)>=0):true)&&("max" in _28e?(this.compare(_28d,_28e.max)<=0):true);},isInRange:function(_28f){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _290=false;var _291=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_290=(typeof min=="number")&&min<0;}if("max" in this.constraints){var max=this.constraints.max;max=this.compare(val,((typeof max!="number")||max>0)?max:0);_291=(typeof max=="number")&&max>0;}return _290||_291;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_292){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_292));},getErrorMessage:function(_293){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_293)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=_4.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},_setConstraintsAttr:function(_294){this.inherited(arguments);if(this.focusNode){if(this.constraints.min!==undefined){_5.setWaiState(this.focusNode,"valuemin",this.constraints.min);}else{_5.removeWaiState(this.focusNode,"valuemin");}if(this.constraints.max!==undefined){_5.setWaiState(this.focusNode,"valuemax",this.constraints.max);}else{_5.removeWaiState(this.focusNode,"valuemax");}}},_setValueAttr:function(_295,_296){_5.setWaiState(this.focusNode,"valuenow",_295);this.inherited(arguments);}});}if(!_4._hasResource["dijit.form.ComboBox"]){_4._hasResource["dijit.form.ComboBox"]=true;_4.provide("dijit.form.ComboBox");_4.declare("dijit.form.ComboBoxMixin",_5._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:_4.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\trole=\"combobox\"\r\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\r\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\r\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t\t\t${_buttonInputDisabled}\r\n\t/></div\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\r\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\r\n\t/></div\r\n></div>\r\n"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(_297){var pos=0;if(typeof (_297.selectionStart)=="number"){pos=_297.selectionStart;}else{if(_4.isIE){var tr=_4.doc.selection.createRange().duplicate();var ntr=_297.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_298,_299){_299=parseInt(_299);_5.selectInputText(_298,_299,_299);},_setDisabledAttr:function(_29a){this.inherited(arguments);_5.setWaiState(this.domNode,"disabled",_29a);},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null;}if(this._fetchHandle){if(this._fetchHandle.abort){this._fetchHandle.abort();}this._fetchHandle=null;}},_onInput:function(evt){if(!this.searchTimer&&(evt.type=="paste"||evt.type=="input")&&this._lastInput!=this.textbox.value){this.searchTimer=setTimeout(_4.hitch(this,function(){this._onKey({charOrCode:229});}),100);}this.inherited(arguments);},_onKey:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==_4.keys.SHIFT){return;}var _29b=false;var pw=this.dropDown;var dk=_4.keys;var _29c=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_29c=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(this._opened){this._announceOption(_29c);}_4.stopEvent(evt);break;case dk.ENTER:if(_29c){if(_29c==pw.nextButton){this._nextSearch(1);_4.stopEvent(evt);break;}else{if(_29c==pw.previousButton){this._nextSearch(-1);_4.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}if(this._opened||this._fetchHandle){evt.preventDefault();}case dk.TAB:var _29d=this.get("displayedValue");if(pw&&(_29d==pw._messages["previousMessage"]||_29d==pw._messages["nextMessage"])){break;}if(_29c){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_29c){_4.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_29b=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_29b=true;break;default:_29b=typeof key=="string"||key==229;}if(_29b){this.item=undefined;this.searchTimer=setTimeout(_4.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;_5.selectInputText(fn,fn.value.length);var _29e=this.ignoreCase?"toLowerCase":"substr";if(text[_29e](0).indexOf(this.focusNode.value[_29e](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;_5.selectInputText(fn,cpos);}}else{fn.value=text;_5.selectInputText(fn);}},_openResultList:function(_29f,_2a0){this._fetchHandle=null;if(this.disabled||this.readOnly||(_2a0.query[this.searchAttr]!=this._lastQuery)){return;}var _2a1=this.dropDown._highlighted_option&&_4.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_29f.length&&!this._maxOptions){this.closeDropDown();return;}_2a0._maxOptions=this._maxOptions;var _2a2=this.dropDown.createOptions(_29f,_2a0,_4.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_2a0.direction){if(1==_2a0.direction){this.dropDown.highlightFirstOption();}else{if(-1==_2a0.direction){this.dropDown.highlightLastOption();}}if(_2a1){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_2a0.query[this.searchAttr])){this._announceOption(_2a2[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();_5.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_2a3){this._startSearchAll();},isLoaded:function(){return false;},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);_5.setWaiState(this.domNode,"expanded","false");_5.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _2a4=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_2a4==pw._messages["previousMessage"]||_2a4==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_2a4);}else{if(this.value!=this._lastValueReported){_5.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},_setItemAttr:function(item,_2a5,_2a6){if(!_2a6){_2a6=this.store.getValue(item,this.searchAttr);}var _2a7=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_2a6;this._set("item",item);_5.form.ComboBox.superclass._setValueAttr.call(this,_2a7,_2a5,_2a6);},_announceOption:function(node){if(!node){return;}var _2a8;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_2a8=node.innerHTML;this.item=undefined;this.value="";}else{_2a8=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_2a8);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);_5.setWaiState(this.focusNode,"activedescendant",_4.attr(node,"id"));this._autoCompleteText(_2a8);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);_5.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_startSearchAll:function(){this._startSearch("");},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return _4.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this.dropDown){var _2a9=this.id+"_popup",_2aa=_4.getObject(this.dropDownClass,false);this.dropDown=new _2aa({onChange:_4.hitch(this,this._selectOption),id:_2a9,dir:this.dir});_5.removeWaiState(this.focusNode,"activedescendant");_5.setWaiState(this.textbox,"owns",_2a9);}var _2ab=_4.clone(this.query);this._lastInput=key;this._lastQuery=_2ab[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(_4.hitch(this,function(_2ac,_2ad){this.searchTimer=null;var _2ae={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_2ac,onBegin:_4.hitch(this,"_setMaxOptions"),onComplete:_4.hitch(this,"_openResultList"),onError:function(_2af){_2ad._fetchHandle=null;console.error("dijit.form.ComboBox: "+_2af);_2ad.closeDropDown();},start:0,count:this.pageSize};_4.mixin(_2ae,_2ad.fetchProperties);this._fetchHandle=_2ad.store.fetch(_2ae);var _2b0=function(_2b1,_2b2){_2b1.start+=_2b1.count*_2b2;_2b1.direction=_2b2;this._fetchHandle=this.store.fetch(_2b1);this.focus();};this._nextSearch=this.dropDown.onPage=_4.hitch(this,_2b0,this._fetchHandle);},_2ab,this),this.searchDelay);},_setMaxOptions:function(size,_2b3){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _2b4=this.srcNodeRef;this.store=new _5.form._ComboBoxDataStore(_2b4);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _2b5=this._getValueField();this.value=this.store.getValue(item,_2b5);}}}this.inherited(arguments);},postCreate:function(){var _2b6=_4.query("label[for=\""+this.id+"\"]");if(_2b6.length){_2b6[0].id=(this.id+"_label");_5.setWaiState(this.domNode,"labelledby",_2b6[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _2b7=this.labelFunc(item,this.store),_2b8=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_2b7=this.doHighlight(_2b7,this._escapeHtml(this._lastInput));_2b8="html";}return {html:_2b8=="html",label:_2b7};},doHighlight:function(_2b9,find){var _2ba=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=_4.regexp.escapeString(find);return this._escapeHtml(_2b9).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_2ba),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_2bb){return _2bb.getValue(item,this.labelAttr||this.searchAttr).toString();}});_4.declare("dijit.form._ComboBoxMenu",[_5._Widget,_5._Templated,_5._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=_4.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(_2bc){this.value=_2bc;this.onChange(_2bc);},onChange:function(_2bd){},onPage:function(_2be){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_2bf){var _2c0=_4.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _2c1=_2bf(item);if(_2c1.html){_2c0.innerHTML=_2c1.label;}else{_2c0.appendChild(_4.doc.createTextNode(_2c1.label));}if(_2c0.innerHTML==""){_2c0.innerHTML="&nbsp;";}_2c0.item=item;return _2c0;},createOptions:function(_2c2,_2c3,_2c4){this.previousButton.style.display=(_2c3.start==0)?"none":"";_4.attr(this.previousButton,"id",this.id+"_prev");_4.forEach(_2c2,function(item,i){var _2c5=this._createOption(item,_2c4);_4.attr(_2c5,"id",this.id+i);this.domNode.insertBefore(_2c5,this.nextButton);},this);var _2c6=false;if(_2c3._maxOptions&&_2c3._maxOptions!=-1){if((_2c3.start+_2c3.count)<_2c3._maxOptions){_2c6=true;}else{if((_2c3.start+_2c3.count)>_2c3._maxOptions&&_2c3.count==_2c2.length){_2c6=true;}}}else{if(_2c3.count==_2c2.length){_2c6=true;}}this.nextButton.style.display=_2c6?"":"none";_4.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes;},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}this._blurOptionNode();},_onMouseDown:function(evt){_4.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode||!this._highlighted_option){return;}else{if(evt.target==this.previousButton){this._blurOptionNode();this.onPage(-1);}else{if(evt.target==this.nextButton){this._blurOptionNode();this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;_4.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){_4.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){var fc=this.domNode.firstChild;this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}else{this.highlightFirstOption();}}_4.window.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){var _2c7=this.domNode.firstChild;var _2c8=_2c7.nextSibling;this._focusOptionNode(_2c8.style.display=="none"?_2c7:_2c8);_4.window.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);_4.window.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){if(!this.getHighlightedOption()){var lc=this.domNode.lastChild;this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}else{this.highlightLastOption();}}_4.window.scrollIntoView(this._highlighted_option);},_page:function(up){var _2c9=0;var _2ca=this.domNode.scrollTop;var _2cb=_4.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_2c9<_2cb){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _2cc=this.domNode.scrollTop;_2c9+=(_2cc-_2ca)*(up?-1:1);_2ca=_2cc;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.charOrCode){case _4.keys.DOWN_ARROW:this._highlightNextOption();return false;case _4.keys.PAGE_DOWN:this.pageDown();return false;case _4.keys.UP_ARROW:this._highlightPrevOption();return false;case _4.keys.PAGE_UP:this.pageUp();return false;default:return true;}}});_4.declare("dijit.form.ComboBox",[_5.form.ValidationTextBox,_5.form.ComboBoxMixin],{_setValueAttr:function(_2cd,_2ce,_2cf){this._set("item",null);if(!_2cd){_2cd="";}_5.form.ValidationTextBox.prototype._setValueAttr.call(this,_2cd,_2ce,_2cf);}});_4.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;if(root.tagName!="SELECT"&&root.firstChild){root=_4.query("select",root);if(root.length>0){root=root[0];}else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";root=this.root.firstChild;}this.root=root;}_4.query("> option",root).forEach(function(node){node.innerHTML=_4.trim(node.innerHTML);});},getValue:function(item,_2d0,_2d1){return (_2d0=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_2d2){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_2d3,_2d4){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _2d5=_4.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_2d6=_4.query("> option",this.root).filter(function(_2d7){return (_2d7.innerText||_2d7.textContent||"").match(_2d5);});if(args.sort){_2d6.sort(_4.data.util.sorter.createSortFunction(args.sort,this));}_2d3(_2d6,args);},close:function(_2d8){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return _4.attr(item,"value");},fetchItemByIdentity:function(args){var item=_4.query("> option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return typeof si=="number"?_4.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0]:null;}});_4.extend(_5.form._ComboBoxDataStore,_4.data.util.simpleFetch);}if(!_4._hasResource["dijit.form.FilteringSelect"]){_4._hasResource["dijit.form.FilteringSelect"]=true;_4.provide("dijit.form.FilteringSelect");_4.declare("dijit.form.FilteringSelect",[_5.form.MappedTextBox,_5.form.ComboBoxMixin],{required:true,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened;},isValid:function(){return this.item||(!this.required&&this.get("displayedValue")=="");},_refreshState:function(){if(!this.searchTimer){this.inherited(arguments);}},_callbackSetLabel:function(_2d9,_2da,_2db){if((_2da&&_2da.query[this.searchAttr]!=this._lastQuery)||(!_2da&&_2d9.length&&this.store.getIdentity(_2d9[0])!=this._lastQuery)){return;}if(!_2d9.length){this.valueNode.value="";_5.form.TextBox.superclass._setValueAttr.call(this,"",_2db||(_2db===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_2d9[0],_2db);}},_openResultList:function(_2dc,_2dd){if(_2dd.query[this.searchAttr]!=this._lastQuery){return;}_5.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);if(this.item===undefined){this.validate(true);}},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValueAttr:function(_2de,_2df){if(!this._onChangeActive){_2df=null;}this._lastQuery=_2de;if(_2de===null||_2de===""){this._setDisplayedValueAttr("",_2df);return;}var self=this;this.store.fetchItemByIdentity({identity:_2de,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_2df);}});},_setItemAttr:function(item,_2e0,_2e1){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_2e2,_2e3){if(_2e2==null){_2e2="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_2e3=false;}if(this.store){this.closeDropDown();var _2e4=_4.clone(this.query);this._lastQuery=_2e4[this.searchAttr]=this._getDisplayQueryString(_2e2);this.textbox.value=_2e2;this._lastDisplayedValue=_2e2;this._set("displayedValue",_2e2);var _2e5=this;var _2e6={query:_2e4,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_2e7,_2e8){_2e5._fetchHandle=null;_4.hitch(_2e5,"_callbackSetLabel")(_2e7,_2e8,_2e3);},onError:function(_2e9){_2e5._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_2e9);_4.hitch(_2e5,"_callbackSetLabel")([],undefined,false);}};_4.mixin(_2e6,this.fetchProperties);this._fetchHandle=this.store.fetch(_2e6);}},undo:function(){this.set("displayedValue",this._lastDisplayedValue);}});}if(!_4._hasResource["dojo.data.ItemFileReadStore"]){_4._hasResource["dojo.data.ItemFileReadStore"]=true;_4.provide("dojo.data.ItemFileReadStore");_4.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_2ea){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_2ea.url;this._ccUrl=_2ea.url;this.url=_2ea.url;this._jsonData=_2ea.data;this.data=null;this._datatypeMap=_2ea.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_2eb){return _4.date.stamp.fromISOString(_2eb);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_2ea.urlPreventCache!==undefined){this.urlPreventCache=_2ea.urlPreventCache?true:false;}if(_2ea.hierarchical!==undefined){this.hierarchical=_2ea.hierarchical?true:false;}if(_2ea.clearOnClose){this.clearOnClose=true;}if("failOk" in _2ea){this.failOk=_2ea.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_2ec){if(typeof _2ec!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_2ed,_2ee){var _2ef=this.getValues(item,_2ed);return (_2ef.length>0)?_2ef[0]:_2ee;},getValues:function(item,_2f0){this._assertIsItem(item);this._assertIsAttribute(_2f0);return (item[_2f0]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _2f1=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_2f1.push(key);}}return _2f1;},hasAttribute:function(item,_2f2){this._assertIsItem(item);this._assertIsAttribute(_2f2);return (_2f2 in item);},containsValue:function(item,_2f3,_2f4){var _2f5=undefined;if(typeof _2f4==="string"){_2f5=_4.data.util.filter.patternToRegExp(_2f4,false);}return this._containsValue(item,_2f3,_2f4,_2f5);},_containsValue:function(item,_2f6,_2f7,_2f8){return _4.some(this.getValues(item,_2f6),function(_2f9){if(_2f9!==null&&!_4.isObject(_2f9)&&_2f8){if(_2f9.toString().match(_2f8)){return true;}}else{if(_2f7===_2f9){return true;}}});},isItem:function(_2fa){if(_2fa&&_2fa[this._storeRefPropName]===this){if(this._arrayOfAllItems[_2fa[this._itemNumPropName]]===_2fa){return true;}}return false;},isItemLoaded:function(_2fb){return this.isItem(_2fb);},loadItem:function(_2fc){this._assertIsItem(_2fc.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_2fd,_2fe,_2ff){var self=this,_300=function(_301,_302){var _303=[],i,key;if(_301.query){var _304,_305=_301.queryOptions?_301.queryOptions.ignoreCase:false;var _306={};for(key in _301.query){_304=_301.query[key];if(typeof _304==="string"){_306[key]=_4.data.util.filter.patternToRegExp(_304,_305);}else{if(_304 instanceof RegExp){_306[key]=_304;}}}for(i=0;i<_302.length;++i){var _307=true;var _308=_302[i];if(_308===null){_307=false;}else{for(key in _301.query){_304=_301.query[key];if(!self._containsValue(_308,key,_304,_306[key])){_307=false;}}}if(_307){_303.push(_308);}}_2fe(_303,_301);}else{for(i=0;i<_302.length;++i){var item=_302[i];if(item!==null){_303.push(item);}}_2fe(_303,_301);}};if(this._loadFinished){_300(_2fd,this._getItemsArray(_2fd.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){_4.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_2fd,filter:_300});}else{this._loadInProgress=true;var _309={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _30a=_4.xhrGet(_309);_30a.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_300(_2fd,self._getItemsArray(_2fd.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_2ff(e,_2fd);}});_30a.addErrback(function(_30b){self._loadInProgress=false;_2ff(_30b,_2fd);});var _30c=null;if(_2fd.abort){_30c=_2fd.abort;}_2fd.abort=function(){var df=_30a;if(df&&df.fired===-1){df.cancel();df=null;}if(_30c){_30c.call(_2fd);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_300(_2fd,this._getItemsArray(_2fd.queryOptions));}catch(e){_2ff(e,_2fd);}}else{_2ff(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_2fd);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _30d=this._queuedFetches[i],_30e=_30d.args,_30f=_30d.filter;if(_30f){_30f(_30e,this._getItemsArray(_30e.queryOptions));}else{this.fetchItemByIdentity(_30e);}}this._queuedFetches=[];}},_getItemsArray:function(_310){if(_310&&_310.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_311){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_312){var _313=false,self=this;function _314(_315){var _316=((_315!==null)&&(typeof _315==="object")&&(!_4.isArray(_315)||_313)&&(!_4.isFunction(_315))&&(_315.constructor==Object||_4.isArray(_315))&&(typeof _315._reference==="undefined")&&(typeof _315._type==="undefined")&&(typeof _315._value==="undefined")&&self.hierarchical);return _316;};function _317(_318){self._arrayOfAllItems.push(_318);for(var _319 in _318){var _31a=_318[_319];if(_31a){if(_4.isArray(_31a)){var _31b=_31a;for(var k=0;k<_31b.length;++k){var _31c=_31b[k];if(_314(_31c)){_317(_31c);}}}else{if(_314(_31a)){_317(_31a);}}}}};this._labelAttr=_312.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_312.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(_4.isArray(item)){_313=true;}_317(item);item[this._rootItemPropName]=true;}var _31d={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _31e=item[key];if(_31e!==null){if(!_4.isArray(_31e)){item[key]=[_31e];}}else{item[key]=[null];}}_31d[key]=key;}}while(_31d[this._storeRefPropName]){this._storeRefPropName+="_";}while(_31d[this._itemNumPropName]){this._itemNumPropName+="_";}while(_31d[this._reverseRefMap]){this._reverseRefMap+="_";}var _31f;var _320=_312.identifier;if(_320){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_320;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_31f=item[_320];var _321=_31f[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_321)){this._itemsByIdentity[_321]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_320+"].  Value collided: ["+_321+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_320+"].  Value collided: ["+_321+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_31f=item[key];for(var j=0;j<_31f.length;++j){_31e=_31f[j];if(_31e!==null&&typeof _31e=="object"){if(("_type" in _31e)&&("_value" in _31e)){var type=_31e._type;var _322=this._datatypeMap[type];if(!_322){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(_4.isFunction(_322)){_31f[j]=new _322(_31e._value);}else{if(_4.isFunction(_322.deserialize)){_31f[j]=_322.deserialize(_31e._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_31e._reference){var _323=_31e._reference;if(!_4.isObject(_323)){_31f[j]=this._getItemByIdentity(_323);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _324=this._arrayOfAllItems[k],_325=true;for(var _326 in _323){if(_324[_326]!=_323[_326]){_325=false;}}if(_325){_31f[j]=_324;}}}if(this.referenceIntegrity){var _327=_31f[j];if(this.isItem(_327)){this._addReferenceToMap(_327,item,key);}}}else{if(this.isItem(_31e)){if(this.referenceIntegrity){this._addReferenceToMap(_31e,item,key);}}}}}}}},_addReferenceToMap:function(_328,_329,_32a){},getIdentity:function(item){var _32b=this._features["dojo.data.api.Identity"];if(_32b===Number){return item[this._itemNumPropName];}else{var _32c=item[_32b];if(_32c){return _32c[0];}}return null;},fetchItemByIdentity:function(_32d){var item,_32e;if(!this._loadFinished){var self=this;if(this._jsonFileUrl!==this._ccUrl){_4.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_32d});}else{this._loadInProgress=true;var _32f={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _330=_4.xhrGet(_32f);_330.addCallback(function(data){var _331=_32d.scope?_32d.scope:_4.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_32d.identity);if(_32d.onItem){_32d.onItem.call(_331,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_32d.onError){_32d.onError.call(_331,error);}}});_330.addErrback(function(_332){self._loadInProgress=false;if(_32d.onError){var _333=_32d.scope?_32d.scope:_4.global;_32d.onError.call(_333,_332);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_32d.identity);if(_32d.onItem){_32e=_32d.scope?_32d.scope:_4.global;_32d.onItem.call(_32e,item);}}}}else{item=this._getItemByIdentity(_32d.identity);if(_32d.onItem){_32e=_32d.scope?_32d.scope:_4.global;_32d.onItem.call(_32e,item);}}},_getItemByIdentity:function(_334){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_334)){item=this._itemsByIdentity[_334];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_334)){item=this._arrayOfAllItems[_334];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _335=this._features["dojo.data.api.Identity"];if(_335===Number){return null;}else{return [_335];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl!==this._ccUrl){_4.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _336={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _337=_4.xhrGet(_336);_337.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){console.log(e);throw e;}});_337.addErrback(function(_338){throw _338;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});_4.extend(_4.data.ItemFileReadStore,_4.data.util.simpleFetch);}if(!_4._hasResource["dijit._editor.plugins.FontChoice"]){_4._hasResource["dijit._editor.plugins.FontChoice"]=true;_4.provide("dijit._editor.plugins.FontChoice");_4.declare("dijit._editor.plugins._FontDropDown",[_5._Widget,_5._Templated],{label:"",widgetsInTemplate:true,plainText:false,templateString:"<span style='white-space: nowrap' class='dijit dijitReset dijitInline'>"+"<label class='dijitLeft dijitInline' for='${selectId}'>${label}</label>"+"<input dojoType='dijit.form.FilteringSelect' required='false' labelType='html' labelAttr='label' searchAttr='name' "+"tabIndex='-1' id='${selectId}' dojoAttachPoint='select' value=''/>"+"</span>",postMixInProperties:function(){this.inherited(arguments);this.strings=_4.i18n.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=_5.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments);},postCreate:function(){var _339=_4.map(this.values,function(_33a){var name=this.strings[_33a]||_33a;return {label:this.getLabel(_33a,name),name:name,value:_33a};},this);this.select.store=new _4.data.ItemFileReadStore({data:{identifier:"value",items:_339}});this.select.set("value","",false);this.disabled=this.select.get("disabled");},_setValueAttr:function(_33b,_33c){_33c=_33c!==false?true:false;this.select.set("value",_4.indexOf(this.values,_33b)<0?"":_33b,_33c);if(!_33c){this.select._lastValueReported=null;}},_getValueAttr:function(){return this.select.get("value");},focus:function(){this.select.focus();},_setDisabledAttr:function(_33d){this.disabled=_33d;this.select.set("disabled",_33d);}});_4.declare("dijit._editor.plugins._FontNameDropDown",_5._editor.plugins._FontDropDown,{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(_33e,name){if(this.plainText){return name;}else{return "<div style='font-family: "+_33e+"'>"+name+"</div>";}},_setValueAttr:function(_33f,_340){_340=_340!==false?true: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"};_33f=map[_33f]||_33f;}this.inherited(arguments,[_33f,_340]);}});_4.declare("dijit._editor.plugins._FontSizeDropDown",_5._editor.plugins._FontDropDown,{command:"fontSize",values:[1,2,3,4,5,6,7],getLabel:function(_341,name){if(this.plainText){return name;}else{return "<font size="+_341+"'>"+name+"</font>";}},_setValueAttr:function(_342,_343){_343=_343!==false?true:false;if(_342.indexOf&&_342.indexOf("px")!=-1){var _344=parseInt(_342,10);_342={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[_344]||_342;}this.inherited(arguments,[_342,_343]);}});_4.declare("dijit._editor.plugins._FormatBlockDropDown",_5._editor.plugins._FontDropDown,{command:"formatBlock",values:["noFormat","p","h1","h2","h3","pre"],postCreate:function(){this.inherited(arguments);this.set("value","noFormat",false);},getLabel:function(_345,name){if(this.plainText||_345=="noFormat"){return name;}else{return "<"+_345+">"+name+"</"+_345+">";}},_execCommand:function(_346,_347,_348){if(_348==="noFormat"){var _349;var end;var sel=_5.range.getSelection(_346.window);if(sel&&sel.rangeCount>0){var _34a=sel.getRangeAt(0);var node,tag;if(_34a){_349=_34a.startContainer;end=_34a.endContainer;while(_349&&_349!==_346.editNode&&_349!==_346.document.body&&_349.nodeType!==1){_349=_349.parentNode;}while(end&&end!==_346.editNode&&end!==_346.document.body&&end.nodeType!==1){end=end.parentNode;}var _34b=_4.hitch(this,function(node,_34c){if(node.childNodes&&node.childNodes.length){var i;for(i=0;i<node.childNodes.length;i++){var c=node.childNodes[i];if(c.nodeType==1){if(_4.withGlobal(_346.window,"inSelection",_5._editor.selection,[c])){var tag=c.tagName?c.tagName.toLowerCase():"";if(_4.indexOf(this.values,tag)!==-1){_34c.push(c);}_34b(c,_34c);}}}}});var _34d=_4.hitch(this,function(_34e){if(_34e&&_34e.length){_346.beginEditing();while(_34e.length){this._removeFormat(_346,_34e.pop());}_346.endEditing();}});var _34f=[];if(_349==end){var _350;node=_349;while(node&&node!==_346.editNode&&node!==_346.document.body){if(node.nodeType==1){tag=node.tagName?node.tagName.toLowerCase():"";if(_4.indexOf(this.values,tag)!==-1){_350=node;break;}}node=node.parentNode;}_34b(_349,_34f);if(_350){_34f=[_350].concat(_34f);}_34d(_34f);}else{node=_349;while(_4.withGlobal(_346.window,"inSelection",_5._editor.selection,[node])){if(node.nodeType==1){tag=node.tagName?node.tagName.toLowerCase():"";if(_4.indexOf(this.values,tag)!==-1){_34f.push(node);}_34b(node,_34f);}node=node.nextSibling;}_34d(_34f);}_346.onDisplayChanged();}}}else{_346.execCommand(_347,_348);}},_removeFormat:function(_351,node){if(_351.customUndo){while(node.firstChild){_4.place(node.firstChild,node,"before");}node.parentNode.removeChild(node);}else{_4.withGlobal(_351.window,"selectElementChildren",_5._editor.selection,[node]);var html=_4.withGlobal(_351.window,"getSelectedHtml",_5._editor.selection,[null]);_4.withGlobal(_351.window,"selectElement",_5._editor.selection,[node]);_351.execCommand("inserthtml",html||"");}}});_4.declare("dijit._editor.plugins.FontChoice",_5._editor._Plugin,{useDefaultCommand:false,_initButton:function(){var _352={fontName:_5._editor.plugins._FontNameDropDown,fontSize:_5._editor.plugins._FontSizeDropDown,formatBlock:_5._editor.plugins._FormatBlockDropDown}[this.command],_353=this.params;if(this.params.custom){_353.values=this.params.custom;}var _354=this.editor;this.button=new _352(_4.delegate({dir:_354.dir,lang:_354.lang},_353));this.connect(this.button.select,"onChange",function(_355){this.editor.focus();if(this.command=="fontName"&&_355.indexOf(" ")!=-1){_355="'"+_355+"'";}if(this.button._execCommand){this.button._execCommand(this.editor,this.command,_355);}else{this.editor.execCommand(this.command,_355);}});},updateState:function(){var _356=this.editor;var _357=this.command;if(!_356||!_356.isLoaded||!_357.length){return;}if(this.button){var _358=this.get("disabled");this.button.set("disabled",_358);if(_358){return;}var _359;try{_359=_356.queryCommandValue(_357)||"";}catch(e){_359="";}var _35a=_4.isString(_359)&&_359.match(/'([^']*)'/);if(_35a){_359=_35a[1];}if(_357==="formatBlock"){if(!_359||_359=="p"){_359=null;var elem;var sel=_5.range.getSelection(this.editor.window);if(sel&&sel.rangeCount>0){var _35b=sel.getRangeAt(0);if(_35b){elem=_35b.endContainer;}}while(elem&&elem!==_356.editNode&&elem!==_356.document){var tg=elem.tagName?elem.tagName.toLowerCase():"";if(tg&&_4.indexOf(this.button.values,tg)>-1){_359=tg;break;}elem=elem.parentNode;}if(!_359){_359="noFormat";}}else{if(_4.indexOf(this.button.values,_359)<0){_359="noFormat";}}}if(_359!==this.button.get("value")){this.button.set("value",_359,false);}}}});_4.subscribe(_5._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}switch(o.args.name){case "fontName":case "fontSize":case "formatBlock":o.plugin=new _5._editor.plugins.FontChoice({command:o.args.name,plainText:o.args.plainText?o.args.plainText:false});}});}if(!_4._hasResource["dijit.form.DropDownButton"]){_4._hasResource["dijit.form.DropDownButton"]=true;_4.provide("dijit.form.DropDownButton");}if(!_4._hasResource["dijit.form._FormSelectWidget"]){_4._hasResource["dijit.form._FormSelectWidget"]=true;_4.provide("dijit.form._FormSelectWidget");_4.declare("dijit.form._FormSelectWidget",_5.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_35c){var _35d=_35c,opts=this.options||[],l=opts.length;if(_35d===undefined){return opts;}if(_4.isArray(_35d)){return _4.map(_35d,"return this.getOptions(item);",this);}if(_4.isObject(_35c)){if(!_4.some(this.options,function(o,idx){if(o===_35d||(o.value&&o.value===_35d.value)){_35d=idx;return true;}return false;})){_35d=-1;}}if(typeof _35d=="string"){for(var i=0;i<l;i++){if(opts[i].value===_35d){_35d=i;break;}}}if(typeof _35d=="number"&&_35d>=0&&_35d<l){return this.options[_35d];}return null;},addOption:function(_35e){if(!_4.isArray(_35e)){_35e=[_35e];}_4.forEach(_35e,function(i){if(i&&_4.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_35f){if(!_4.isArray(_35f)){_35f=[_35f];}var _360=this.getOptions(_35f);_4.forEach(_360,function(i){if(i){this.options=_4.filter(this.options,function(node,idx){return (node.value!==i.value||node.label!==i.label);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_361){if(!_4.isArray(_361)){_361=[_361];}_4.forEach(_361,function(i){var _362=this.getOptions(i),k;if(_362){for(k in i){_362[k]=i[k];}}},this);this._loadChildren();},setStore:function(_363,_364,_365){var _366=this.store;_365=_365||{};if(_366!==_363){_4.forEach(this._notifyConnections||[],_4.disconnect);delete this._notifyConnections;if(_363&&_363.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[_4.connect(_363,"onNew",this,"_onNewItem"),_4.connect(_363,"onDelete",this,"_onDeleteItem"),_4.connect(_363,"onSet",this,"_onSetItem")];}this._set("store",_363);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_363){this._loadingStore=true;_363.fetch(_4.delegate(_365,{onComplete:function(_367,opts){if(this.sortByLabel&&!_365.sort&&_367.length){_367.sort(_4.data.util.sorter.createSortFunction([{attribute:_363.getLabelAttributes(_367[0])[0]}],_363));}if(_365.onFetch){_367=_365.onFetch.call(this,_367,opts);}_4.forEach(_367,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_364);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_367);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _366;},_setValueAttr:function(_368,_369){if(this._loadingStore){this._pendingValue=_368;return;}var opts=this.getOptions()||[];if(!_4.isArray(_368)){_368=[_368];}_4.forEach(_368,function(i,idx){if(!_4.isObject(i)){i=i+"";}if(typeof i==="string"){_368[idx]=_4.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_368=_4.filter(_368,function(i){return i&&i.value;});if(!this.multiple&&(!_368[0]||!_368[0].value)&&opts.length){_368[0]=opts[0];}_4.forEach(opts,function(i){i.selected=_4.some(_368,function(v){return v.value===i.value;});});var val=_4.map(_368,function(i){return i.value;}),disp=_4.map(_368,function(i){return i.label;});this._set("value",this.multiple?val:val[0]);this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_369);},_getDisplayedValueAttr:function(){var val=this.get("value");if(!_4.isArray(val)){val=[val];}var ret=_4.map(this.getOptions(val),function(v){if(v&&"label" in v){return v.label;}else{if(v){return v.value;}}return null;},this);return this.multiple?ret:ret[0];},_loadChildren:function(){if(this._loadingStore){return;}_4.forEach(this._getChildren(),function(_36a){_36a.destroyRecursive();});_4.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this._set("value",this._getValueFromOpts());var val=this.value;if(!_4.isArray(val)){val=[val];}if(val&&val[0]){_4.forEach(this._getChildren(),function(_36b){var _36c=_4.some(val,function(v){return _36b.option&&(v===_36b.option.value);});_4.toggleClass(_36b.domNode,this.baseClass+"SelectedOption",_36c);_5.setWaiState(_36b.domNode,"selected",_36c);},this);}},_getValueFromOpts:function(){var opts=this.getOptions()||[];if(!this.multiple&&opts.length){var opt=_4.filter(opts,function(i){return i.selected;})[0];if(opt&&opt.value){return opt.value;}else{opts[0].selected=true;return opts[0].value;}}else{if(this.multiple){return _4.map(_4.filter(opts,function(i){return i.selected;}),function(i){return i.value;})||[];}}return "";},_onNewItem:function(item,_36d){if(!_36d||!_36d.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _36e=this.store;this.removeOption(_36e.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _36f=this.store,_370=_36f.getLabel(item),_371=(_370?_36f.getIdentity(item):null);return {value:_371,label:_370,item:item};},_addOptionForItem:function(item){var _372=this.store;if(!_372.isItemLoaded(item)){_372.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _373=this._getOptionObjForItem(item);this.addOption(_373);},constructor:function(_374){this._oValue=(_374||{}).value||null;},buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.focusNode,false);},_fillContent:function(){var opts=this.options;if(!opts){opts=this.options=this.srcNodeRef?_4.query(">",this.srcNodeRef).map(function(node){if(node.getAttribute("type")==="separator"){return {value:"",label:"",selected:false,disabled:false};}return {value:(node.getAttribute("data-"+_4._scopeName+"-value")||node.getAttribute("value")),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this._set("value",this._getValueFromOpts());}else{if(this.multiple&&typeof this.value=="string"){this_set("value",this.value.split(","));}}},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _375=this.store,_376={};_4.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_376[i]=this[i];}delete this[i];},this);if(_375&&_375.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_375,this._oValue,_376);}},destroy:function(){_4.forEach(this._notifyConnections||[],_4.disconnect);this.inherited(arguments);},_addOptionItem:function(_377){},_removeOptionItem:function(_378){},_setDisplay:function(_379){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_37a){},onSetStore:function(){}});}if(!_4._hasResource["dijit.MenuItem"]){_4._hasResource["dijit.MenuItem"]=true;_4.provide("dijit.MenuItem");_4.declare("dijit.MenuItem",[_5._Widget,_5._Templated,_5._Contained,_5._CssStateMixin],{templateString:_4.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\r\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\r\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\r\n\t</td>\r\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\r\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\r\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\r\n\t\t</div>\r\n\t</td>\r\n</tr>\r\n"),attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_37b){if(_37b&&!("label" in this.params)){this.set("label",_37b.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _37c=this.id+"_text";_4.attr(this.containerNode,"id",_37c);if(this.accelKeyNode){_4.attr(this.accelKeyNode,"id",this.id+"_accel");_37c+=" "+this.id+"_accel";}_5.setWaiState(this.domNode,"labelledby",_37c);_4.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);_4.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(_4.isIE==8){this.containerNode.focus();}_5.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_37d){_4.toggleClass(this.domNode,"dijitMenuItemSelected",_37d);},setLabel:function(_37e){_4.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_37e);},setDisabled:function(_37f){_4.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_37f);},_setDisabledAttr:function(_380){_5.setWaiState(this.focusNode,"disabled",_380?"true":"false");this._set("disabled",_380);},_setAccelKeyAttr:function(_381){this.accelKeyNode.style.display=_381?"":"none";this.accelKeyNode.innerHTML=_381;_4.attr(this.containerNode,"colSpan",_381?"1":"2");this._set("accelKey",_381);}});}if(!_4._hasResource["dijit.PopupMenuItem"]){_4._hasResource["dijit.PopupMenuItem"]=true;_4.provide("dijit.PopupMenuItem");_4.declare("dijit.PopupMenuItem",_5.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _382=_4.query("*",this.srcNodeRef);_5.PopupMenuItem.superclass._fillContent.call(this,_382[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=_4.query("[widgetId]",this.dropDownContainer)[0];this.popup=_5.byNode(node);}_4.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){_4.style(this.arrowWrapper,"visibility","");}_5.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!_4._hasResource["dijit.CheckedMenuItem"]){_4._hasResource["dijit.CheckedMenuItem"]=true;_4.provide("dijit.CheckedMenuItem");_4.declare("dijit.CheckedMenuItem",_5.MenuItem,{templateString:_4.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\r\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\r\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\r\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\r\n\t</td>\r\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\r\n</tr>\r\n"),checked:false,_setCheckedAttr:function(_383){_4.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_383);_5.setWaiState(this.domNode,"checked",_383);this._set("checked",_383);},onChange:function(_384){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!_4._hasResource["dijit.MenuSeparator"]){_4._hasResource["dijit.MenuSeparator"]=true;_4.provide("dijit.MenuSeparator");_4.declare("dijit.MenuSeparator",[_5._Widget,_5._Templated,_5._Contained],{templateString:_4.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\r\n\t<td class=\"dijitMenuSeparatorIconCell\">\r\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\r\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\r\n\t</td>\r\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\r\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\r\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\r\n\t</td>\r\n</tr>\r\n"),buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!_4._hasResource["dijit.Menu"]){_4._hasResource["dijit.Menu"]=true;_4.provide("dijit.Menu");_4.declare("dijit._MenuBase",[_5._Widget,_5._Templated,_5._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_385){_385.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_386){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _387=this._getTopMenu();if(_387&&_387._isMenuBar){_387.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _388=this.currentPopup.parentMenu;if(_388.focusedChild){_388.focusedChild._setSelected(false);}_388.focusedChild=this.currentPopup.from_item;_388.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(_4.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _389=item.popup;if(_389){this._stopPendingCloseTimer(_389);_389._pendingClose_timer=setTimeout(function(){_389._pendingClose_timer=null;if(_389.parentMenu){_389.parentMenu.currentPopup=null;}_5.popup.close(_389);},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(_38a){if(_38a._pendingClose_timer){clearTimeout(_38a._pendingClose_timer);_38a._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 _38b=this.focusedChild;if(!_38b){return;}var _38c=_38b.popup;if(_38c.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);_5.popup.close(this.currentPopup);}_38c.parentMenu=this;_38c.from_item=_38b;var self=this;_5.popup.open({parent:this,popup:_38c,around:_38b.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_38b);self._cleanUp();_38b._setSelected(true);self.focusedChild=_38b;},onExecute:_4.hitch(this,"_cleanUp")});this.currentPopup=_38c;_38c.connect(_38c.domNode,"onmouseenter",_4.hitch(self,"_onPopupHover"));if(_38c.focus){_38c._focus_timer=setTimeout(_4.hitch(_38c,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;_4.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;_4.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _38d=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(_5._curFocus&&_4.isDescendant(_5._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}_5.popup.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();}}});_4.declare("dijit.Menu",_5._MenuBase,{constructor:function(){this._bindings=[];},templateString:_4.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\r\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\r\n</table>\r\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(_4.body());}else{_4.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=_4.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);_4.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{_4.stopEvent(evt);}break;}},_iframeContentWindow:function(_38e){var win=_4.window.get(this._iframeContentDocument(_38e))||this._iframeContentDocument(_38e)["__parent__"]||(_38e.name&&_4.doc.frames[_38e.name])||null;return win;},_iframeContentDocument:function(_38f){var doc=_38f.contentDocument||(_38f.contentWindow&&_38f.contentWindow.document)||(_38f.name&&_4.doc.frames[_38f.name]&&_4.doc.frames[_38f.name].document)||null;return doc;},bindDomNode:function(node){node=_4.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _390=node,win=this._iframeContentWindow(_390);cn=_4.withGlobal(win,_4.body);}else{cn=(node==_4.body()?_4.doc.documentElement:node);}var _391={node:node,iframe:_390};_4.attr(node,"_dijitMenu"+this.id,this._bindings.push(_391));var _392=_4.hitch(this,function(cn){return [_4.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){_4.stopEvent(evt);this._scheduleOpen(evt.target,_390,{x:evt.pageX,y:evt.pageY});}),_4.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==_4.keys.F10){_4.stopEvent(evt);this._scheduleOpen(evt.target,_390);}})];});_391.connects=cn?_392(cn):[];if(_390){_391.onloadHandler=_4.hitch(this,function(){var win=this._iframeContentWindow(_390);cn=_4.withGlobal(win,_4.body);_391.connects=_392(cn);});if(_390.addEventListener){_390.addEventListener("load",_391.onloadHandler,false);}else{_390.attachEvent("onload",_391.onloadHandler);}}},unBindDomNode:function(_393){var node;try{node=_4.byId(_393);}catch(e){return;}var _394="_dijitMenu"+this.id;if(node&&_4.hasAttr(node,_394)){var bid=_4.attr(node,_394)-1,b=this._bindings[bid];_4.forEach(b.connects,_4.disconnect);var _395=b.iframe;if(_395){if(_395.removeEventListener){_395.removeEventListener("load",b.onloadHandler,false);}else{_395.detachEvent("onload",b.onloadHandler);}}_4.removeAttr(node,_394);delete this._bindings[bid];}},_scheduleOpen:function(_396,_397,_398){if(!this._openTimer){this._openTimer=setTimeout(_4.hitch(this,function(){delete this._openTimer;this._openMyself({target:_396,iframe:_397,coords:_398});}),1);}},_openMyself:function(args){var _399=args.target,_39a=args.iframe,_39b=args.coords;if(_39b){if(_39a){var od=_399.ownerDocument,ifc=_4.position(_39a,true),win=this._iframeContentWindow(_39a),_39c=_4.withGlobal(win,"_docScroll",_4);var cs=_4.getComputedStyle(_39a),tp=_4._toPixelValue,left=(_4.isIE&&_4.isQuirks?0:tp(_39a,cs.paddingLeft))+(_4.isIE&&_4.isQuirks?tp(_39a,cs.borderLeftWidth):0),top=(_4.isIE&&_4.isQuirks?0:tp(_39a,cs.paddingTop))+(_4.isIE&&_4.isQuirks?tp(_39a,cs.borderTopWidth):0);_39b.x+=ifc.x+left-_39c.x;_39b.y+=ifc.y+top-_39c.y;}}else{_39b=_4.position(_399,true);_39b.x+=10;_39b.y+=10;}var self=this;var _39d=_5.getFocus(this);function _39e(){if(self.refocus){_5.focus(_39d);}_5.popup.close(self);};_5.popup.open({popup:this,x:_39b.x,y:_39b.y,onExecute:_39e,onCancel:_39e,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);_5.popup.close(this);};},uninitialize:function(){_4.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!_4._hasResource["dijit.form.Select"]){_4._hasResource["dijit.form.Select"]=true;_4.provide("dijit.form.Select");_4.declare("dijit.form._SelectMenu",_5.Menu,{buildRendering:function(){this.inherited(arguments);var o=(this.menuTableNode=this.domNode);var n=(this.domNode=_4.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}}));if(o.parentNode){o.parentNode.replaceChild(n,o);}_4.removeClass(o,"dijitMenuTable");n.className=o.className+" dijitSelectMenu";o.className="dijitReset dijitMenuTable";_5.setWaiRole(o,"listbox");_5.setWaiRole(n,"presentation");n.appendChild(o);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",_4.stopEvent);},resize:function(mb){if(mb){_4.marginBox(this.domNode,mb);if("w" in mb){this.menuTableNode.style.width="100%";}}}});_4.declare("dijit.form.Select",[_5.form._FormSelectWidget,_5._HasDropDown],{baseClass:"dijitSelect",templateString:_4.cache("dijit.form","templates/Select.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\r\n\tdojoAttachPoint=\"_buttonNode,tableNode,focusNode\" cellspacing='0' cellpadding='0'\r\n\trole=\"combobox\" aria-haspopup=\"true\"\r\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" role=\"presentation\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\r\n\t\t\t><input type=\"hidden\" ${!nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" aria-hidden=\"true\"\r\n\t\t/></td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode\" role=\"presentation\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n"),attributeMap:_4.mixin(_4.clone(_5.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var si=this.srcNodeRef.selectedIndex||0;this.value=this.options[si>=0?si:0].value;}this.dropDown=new _5.form._SelectMenu({id:this.id+"_menu"});_4.addClass(this.dropDown.domNode,this.baseClass+"Menu");},_getMenuItemForOption:function(_39f){if(!_39f.value&&!_39f.label){return new _5.MenuSeparator();}else{var _3a0=_4.hitch(this,"_setValueAttr",_39f);var item=new _5.MenuItem({option:_39f,label:_39f.label||this.emptyLabel,onClick:_3a0,disabled:_39f.disabled||false});_5.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_3a1){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_3a1));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_3a2){if(_3a2===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{_4.forEach(this._getChildren(),function(_3a3){_3a3.destroyRecursive();});var item=new _5.MenuItem({label:"&nbsp;"});this.dropDown.addChild(item);}}else{this._updateSelection();}this._isLoaded=false;this._childrenLoaded=true;if(!this._loadingStore){this._setValueAttr(this.value);}},_setValueAttr:function(_3a4){this.inherited(arguments);_4.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_3a5){var lbl=_3a5||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";_5.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_3a6){var _3a7=this.isValid(_3a6);this._set("state",_3a7?"":"Error");_5.setWaiState(this.focusNode,"invalid",_3a7?"false":"true");var _3a8=_3a7?"":this._missingMsg;if(this.message!==_3a8){this._set("message",_3a8);_5.hideTooltip(this.domNode);if(_3a8){_5.showTooltip(_3a8,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _3a7;},isValid:function(_3a9){return (!this.required||this.value===0||!(/^\s*$/.test(this.value||"")));},reset:function(){this.inherited(arguments);_5.hideTooltip(this.domNode);this._set("state","");this._set("message","");},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=_4.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",_4.stopEvent);},_setStyleAttr:function(_3aa){this.inherited(arguments);_4.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_3ab){this._loadChildren(true);this._isLoaded=true;_3ab();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_3ac){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_3ac);delete this.dropDown;}this.inherited(arguments);}});}if(!_4._hasResource["dijit._editor.plugins.LinkDialog"]){_4._hasResource["dijit._editor.plugins.LinkDialog"]=true;_4.provide("dijit._editor.plugins.LinkDialog");_4.declare("dijit._editor.plugins.LinkDialog",_5._editor._Plugin,{buttonClass:_5.form.DropDownButton,useDefaultCommand:false,urlRegExp:"((https?|ftps?|file)\\://|./|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]{0,}(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",emailRegExp:"<?(mailto\\:)([!#-'*+\\-\\/-9=?A-Z^-~]+[.])*[!#-'*+\\-\\/-9=?A-Z^-~]+"+"@"+"((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*>?",htmlTemplate:"<a href=\"${urlInput}\" _djrealurl=\"${urlInput}\""+" target=\"${targetSelect}\""+">${textInput}</a>",tag:"a",_hostRxp:new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_userAtRxp:new RegExp("^([!#-'*+\\-\\/-9=?A-Z^-~]+[.])*[!#-'*+\\-\\/-9=?A-Z^-~]+@","i"),linkDialogTemplate:["<table><tr><td>","<label for='${id}_urlInput'>${url}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='true' "+"id='${id}_urlInput' name='urlInput' intermediateChanges='true'/>","</td></tr><tr><td>","<label for='${id}_textInput'>${text}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='true' id='${id}_textInput' "+"name='textInput' intermediateChanges='true'/>","</td></tr><tr><td>","<label for='${id}_targetSelect'>${target}</label>","</td><td>","<select id='${id}_targetSelect' name='targetSelect' dojoType='dijit.form.Select'>","<option selected='selected' value='_self'>${currentWindow}</option>","<option value='_blank'>${newWindow}</option>","<option value='_top'>${topWindow}</option>","<option value='_parent'>${parentWindow}</option>","</select>","</td></tr><tr><td colspan='2'>","<button dojoType='dijit.form.Button' type='submit' id='${id}_setButton'>${set}</button>","<button dojoType='dijit.form.Button' type='button' id='${id}_cancelButton'>${buttonCancel}</button>","</td></tr></table>"].join(""),_initButton:function(){var _3ad=this;this.tag=this.command=="insertImage"?"img":"a";var _3ae=_4.mixin(_4.i18n.getLocalization("dijit","common",this.lang),_4.i18n.getLocalization("dijit._editor","LinkDialog",this.lang));var _3af=(this.dropDown=new _5.TooltipDialog({title:_3ae[this.command+"Title"],execute:_4.hitch(this,"setValue"),onOpen:function(){_3ad._onOpenDialog();_5.TooltipDialog.prototype.onOpen.apply(this,arguments);},onCancel:function(){setTimeout(_4.hitch(_3ad,"_onCloseDialog"),0);}}));_3ae.urlRegExp=this.urlRegExp;_3ae.id=_5.getUniqueId(this.editor.id);this._uniqueId=_3ae.id;this._setContent(_3af.title+"<div style='border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'></div>"+_4.string.substitute(this.linkDialogTemplate,_3ae));_3af.startup();this._urlInput=_5.byId(this._uniqueId+"_urlInput");this._textInput=_5.byId(this._uniqueId+"_textInput");this._setButton=_5.byId(this._uniqueId+"_setButton");this.connect(_5.byId(this._uniqueId+"_cancelButton"),"onClick",function(){this.dropDown.onCancel();});if(this._urlInput){this.connect(this._urlInput,"onChange","_checkAndFixInput");}if(this._textInput){this.connect(this._textInput,"onChange","_checkAndFixInput");}this._urlRegExp=new RegExp("^"+this.urlRegExp+"$","i");this._emailRegExp=new RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=_4.hitch(this,function(){var _3b0=this._urlInput.get("value");return this._urlRegExp.test(_3b0)||this._emailRegExp.test(_3b0);});this._connectTagEvents();this.inherited(arguments);},_checkAndFixInput:function(){var self=this;var url=this._urlInput.get("value");var _3b1=function(url){var _3b2=false;var _3b3=false;if(url&&url.length>1){url=_4.trim(url);if(url.indexOf("mailto:")!==0){if(url.indexOf("/")>0){if(url.indexOf("://")===-1){if(url.charAt(0)!=="/"&&url.indexOf("./")!==0){if(self._hostRxp.test(url)){_3b2=true;}}}}else{if(self._userAtRxp.test(url)){_3b3=true;}}}}if(_3b2){self._urlInput.set("value","http://"+url);}if(_3b3){self._urlInput.set("value","mailto:"+url);}self._setButton.set("disabled",!self._isValid());};if(this._delayedCheck){clearTimeout(this._delayedCheck);this._delayedCheck=null;}this._delayedCheck=setTimeout(function(){_3b1(url);},250);},_connectTagEvents:function(){this.editor.onLoadDeferred.addCallback(_4.hitch(this,function(){this.connect(this.editor.editNode,"ondblclick",this._onDblClick);}));},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid();},_setContent:function(_3b4){this.dropDown.set({parserScope:"dojo",content:_3b4});},_checkValues:function(args){if(args&&args.urlInput){args.urlInput=args.urlInput.replace(/"/g,"&quot;");}return args;},setValue:function(args){this._onCloseDialog();if(_4.isIE<9){var sel=_5.range.getSelection(this.editor.window);var _3b5=sel.getRangeAt(0);var a=_3b5.endContainer;if(a.nodeType===3){a=a.parentNode;}if(a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)){a=_4.withGlobal(this.editor.window,"getSelectedElement",_5._editor.selection,[this.tag]);}if(a&&(a.nodeName&&a.nodeName.toLowerCase()===this.tag)){if(this.editor.queryCommandEnabled("unlink")){_4.withGlobal(this.editor.window,"selectElementChildren",_5._editor.selection,[a]);this.editor.execCommand("unlink");}}}args=this._checkValues(args);this.editor.execCommand("inserthtml",_4.string.substitute(this.htmlTemplate,args));},_onCloseDialog:function(){this.editor.focus();},_getCurrentValues:function(a){var url,text,_3b6;if(a&&a.tagName.toLowerCase()===this.tag){url=a.getAttribute("_djrealurl")||a.getAttribute("href");_3b6=a.getAttribute("target")||"_self";text=a.textContent||a.innerText;_4.withGlobal(this.editor.window,"selectElement",_5._editor.selection,[a,true]);}else{text=_4.withGlobal(this.editor.window,_5._editor.selection.getSelectedText);}return {urlInput:url||"",textInput:text||"",targetSelect:_3b6||""};},_onOpenDialog:function(){var a;if(_4.isIE<9){var sel=_5.range.getSelection(this.editor.window);var _3b7=sel.getRangeAt(0);a=_3b7.endContainer;if(a.nodeType===3){a=a.parentNode;}if(a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)){a=_4.withGlobal(this.editor.window,"getSelectedElement",_5._editor.selection,[this.tag]);}}else{a=_4.withGlobal(this.editor.window,"getAncestorElement",_5._editor.selection,[this.tag]);}this.dropDown.reset();this._setButton.set("disabled",true);this.dropDown.set("value",this._getCurrentValues(a));},_onDblClick:function(e){if(e&&e.target){var t=e.target;var tg=t.tagName?t.tagName.toLowerCase():"";if(tg===this.tag&&_4.attr(t,"href")){_4.withGlobal(this.editor.window,"selectElement",_5._editor.selection,[t]);this.editor.onDisplayChanged();setTimeout(_4.hitch(this,function(){this.button.set("disabled",false);this.button.openDropDown();}),10);}}}});_4.declare("dijit._editor.plugins.ImgLinkDialog",[_5._editor.plugins.LinkDialog],{linkDialogTemplate:["<table><tr><td>","<label for='${id}_urlInput'>${url}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' regExp='${urlRegExp}' "+"required='true' id='${id}_urlInput' name='urlInput' intermediateChanges='true'/>","</td></tr><tr><td>","<label for='${id}_textInput'>${text}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='false' id='${id}_textInput' "+"name='textInput' intermediateChanges='true'/>","</td></tr><tr><td>","</td><td>","</td></tr><tr><td colspan='2'>","<button dojoType='dijit.form.Button' type='submit' id='${id}_setButton'>${set}</button>","<button dojoType='dijit.form.Button' type='button' id='${id}_cancelButton'>${buttonCancel}</button>","</td></tr></table>"].join(""),htmlTemplate:"<img src=\"${urlInput}\" _djrealurl=\"${urlInput}\" alt=\"${textInput}\" />",tag:"img",_getCurrentValues:function(img){var url,text;if(img&&img.tagName.toLowerCase()===this.tag){url=img.getAttribute("_djrealurl")||img.getAttribute("src");text=img.getAttribute("alt");_4.withGlobal(this.editor.window,"selectElement",_5._editor.selection,[img,true]);}else{text=_4.withGlobal(this.editor.window,_5._editor.selection.getSelectedText);}return {urlInput:url||"",textInput:text||""};},_isValid:function(){return this._urlInput.isValid();},_connectTagEvents:function(){this.inherited(arguments);this.editor.onLoadDeferred.addCallback(_4.hitch(this,function(){this.connect(this.editor.editNode,"onmousedown",this._selectTag);}));},_selectTag:function(e){if(e&&e.target){var t=e.target;var tg=t.tagName?t.tagName.toLowerCase():"";if(tg===this.tag){_4.withGlobal(this.editor.window,"selectElement",_5._editor.selection,[t]);}}},_checkValues:function(args){if(args&&args.urlInput){args.urlInput=args.urlInput.replace(/"/g,"&quot;");}if(args&&args.textInput){args.textInput=args.textInput.replace(/"/g,"&quot;");}return args;},_onDblClick:function(e){if(e&&e.target){var t=e.target;var tg=t.tagName?t.tagName.toLowerCase():"";if(tg===this.tag&&_4.attr(t,"src")){_4.withGlobal(this.editor.window,"selectElement",_5._editor.selection,[t]);this.editor.onDisplayChanged();setTimeout(_4.hitch(this,function(){this.button.set("disabled",false);this.button.openDropDown();}),10);}}}});_4.subscribe(_5._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}switch(o.args.name){case "createLink":o.plugin=new _5._editor.plugins.LinkDialog({command:o.args.name});break;case "insertImage":o.plugin=new _5._editor.plugins.ImgLinkDialog({command:o.args.name});break;}});}if(!_4._hasResource["dijit.MenuBar"]){_4._hasResource["dijit.MenuBar"]=true;_4.provide("dijit.MenuBar");_4.declare("dijit.MenuBar",_5._MenuBase,{templateString:_4.cache("dijit","templates/MenuBar.html","<div class=\"dijitMenuBar dijitMenuPassive\" dojoAttachPoint=\"containerNode\"  role=\"menubar\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress: _onKeyPress\"></div>\r\n"),baseClass:"dijitMenuBar",_isMenuBar:true,postCreate:function(){var k=_4.keys,l=this.isLeftToRight();this.connectKeyNavHandlers(l?[k.LEFT_ARROW]:[k.RIGHT_ARROW],l?[k.RIGHT_ARROW]:[k.LEFT_ARROW]);this._orient=this.isLeftToRight()?{BL:"TL"}:{BR:"TR"};},focusChild:function(item){var _3b8=this.focusedChild,_3b9=_3b8&&_3b8.popup&&_3b8.popup.isShowingNow;this.inherited(arguments);if(_3b9&&item.popup&&!item.disabled){this._openPopup();}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case _4.keys.DOWN_ARROW:this._moveToPopup(evt);_4.stopEvent(evt);}},onItemClick:function(item,evt){if(item.popup&&item.popup.isShowingNow){item.popup.onCancel();}else{this.inherited(arguments);}}});}if(!_4._hasResource["dijit.MenuBarItem"]){_4._hasResource["dijit.MenuBarItem"]=true;_4.provide("dijit.MenuBarItem");_4.declare("dijit._MenuBarItemMixin",null,{templateString:_4.cache("dijit","templates/MenuBarItem.html","<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\r\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\r\n\t<span dojoAttachPoint=\"containerNode\"></span>\r\n</div>\r\n"),attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"}})});_4.declare("dijit.MenuBarItem",[_5.MenuItem,_5._MenuBarItemMixin],{});}if(!_4._hasResource["dijit.PopupMenuBarItem"]){_4._hasResource["dijit.PopupMenuBarItem"]=true;_4.provide("dijit.PopupMenuBarItem");_4.declare("dijit.PopupMenuBarItem",[_5.PopupMenuItem,_5._MenuBarItemMixin],{});}if(!_4._hasResource["dojo.number"]){_4._hasResource["dojo.number"]=true;_4.provide("dojo.number");_4.getObject("number",true,_4);_4.number.format=function(_3ba,_3bb){_3bb=_4.mixin({},_3bb||{});var _3bc=_4.i18n.normalizeLocale(_3bb.locale),_3bd=_4.i18n.getLocalization("dojo.cldr","number",_3bc);_3bb.customs=_3bd;var _3be=_3bb.pattern||_3bd[(_3bb.type||"decimal")+"Format"];if(isNaN(_3ba)||Math.abs(_3ba)==Infinity){return null;}return _4.number._applyPattern(_3ba,_3be,_3bb);};_4.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;_4.number._applyPattern=function(_3bf,_3c0,_3c1){_3c1=_3c1||{};var _3c2=_3c1.customs.group,_3c3=_3c1.customs.decimal,_3c4=_3c0.split(";"),_3c5=_3c4[0];_3c0=_3c4[(_3bf<0)?1:0]||("-"+_3c5);if(_3c0.indexOf("%")!=-1){_3bf*=100;}else{if(_3c0.indexOf("‰")!=-1){_3bf*=1000;}else{if(_3c0.indexOf("¤")!=-1){_3c2=_3c1.customs.currencyGroup||_3c2;_3c3=_3c1.customs.currencyDecimal||_3c3;_3c0=_3c0.replace(/\u00a4{1,3}/,function(_3c6){var prop=["symbol","currency","displayName"][_3c6.length-1];return _3c1[prop]||_3c1.currency||"";});}else{if(_3c0.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _3c7=_4.number._numberPatternRE;var _3c8=_3c5.match(_3c7);if(!_3c8){throw new Error("unable to find a number expression in pattern: "+_3c0);}if(_3c1.fractional===false){_3c1.places=0;}return _3c0.replace(_3c7,_4.number._formatAbsolute(_3bf,_3c8[0],{decimal:_3c3,group:_3c2,places:_3c1.places,round:_3c1.round}));};_4.number.round=function(_3c9,_3ca,_3cb){var _3cc=10/(_3cb||10);return (_3cc*+_3c9).toFixed(_3ca)/_3cc;};if((0.9).toFixed()==0){(function(){var _3cd=_4.number.round;_4.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _3cd(v,p,m)+(v>0?d:-d);};})();}_4.number._formatAbsolute=function(_3ce,_3cf,_3d0){_3d0=_3d0||{};if(_3d0.places===true){_3d0.places=0;}if(_3d0.places===Infinity){_3d0.places=6;}var _3d1=_3cf.split("."),_3d2=typeof _3d0.places=="string"&&_3d0.places.indexOf(","),_3d3=_3d0.places;if(_3d2){_3d3=_3d0.places.substring(_3d2+1);}else{if(!(_3d3>=0)){_3d3=(_3d1[1]||[]).length;}}if(!(_3d0.round<0)){_3ce=_4.number.round(_3ce,_3d3,_3d0.round);}var _3d4=String(Math.abs(_3ce)).split("."),_3d5=_3d4[1]||"";if(_3d1[1]||_3d0.places){if(_3d2){_3d0.places=_3d0.places.substring(0,_3d2);}var pad=_3d0.places!==undefined?_3d0.places:(_3d1[1]&&_3d1[1].lastIndexOf("0")+1);if(pad>_3d5.length){_3d4[1]=_4.string.pad(_3d5,pad,"0",true);}if(_3d3<_3d5.length){_3d4[1]=_3d5.substr(0,_3d3);}}else{if(_3d4[1]){_3d4.pop();}}var _3d6=_3d1[0].replace(",","");pad=_3d6.indexOf("0");if(pad!=-1){pad=_3d6.length-pad;if(pad>_3d4[0].length){_3d4[0]=_4.string.pad(_3d4[0],pad);}if(_3d6.indexOf("#")==-1){_3d4[0]=_3d4[0].substr(_3d4[0].length-pad);}}var _3d7=_3d1[0].lastIndexOf(","),_3d8,_3d9;if(_3d7!=-1){_3d8=_3d1[0].length-_3d7-1;var _3da=_3d1[0].substr(0,_3d7);_3d7=_3da.lastIndexOf(",");if(_3d7!=-1){_3d9=_3da.length-_3d7-1;}}var _3db=[];for(var _3dc=_3d4[0];_3dc;){var off=_3dc.length-_3d8;_3db.push((off>0)?_3dc.substr(off):_3dc);_3dc=(off>0)?_3dc.slice(0,off):"";if(_3d9){_3d8=_3d9;delete _3d9;}}_3d4[0]=_3db.reverse().join(_3d0.group||",");return _3d4.join(_3d0.decimal||".");};_4.number.regexp=function(_3dd){return _4.number._parseInfo(_3dd).regexp;};_4.number._parseInfo=function(_3de){_3de=_3de||{};var _3df=_4.i18n.normalizeLocale(_3de.locale),_3e0=_4.i18n.getLocalization("dojo.cldr","number",_3df),_3e1=_3de.pattern||_3e0[(_3de.type||"decimal")+"Format"],_3e2=_3e0.group,_3e3=_3e0.decimal,_3e4=1;if(_3e1.indexOf("%")!=-1){_3e4/=100;}else{if(_3e1.indexOf("‰")!=-1){_3e4/=1000;}else{var _3e5=_3e1.indexOf("¤")!=-1;if(_3e5){_3e2=_3e0.currencyGroup||_3e2;_3e3=_3e0.currencyDecimal||_3e3;}}}var _3e6=_3e1.split(";");if(_3e6.length==1){_3e6.push("-"+_3e6[0]);}var re=_4.regexp.buildGroupRE(_3e6,function(_3e7){_3e7="(?:"+_4.regexp.escapeString(_3e7,".")+")";return _3e7.replace(_4.number._numberPatternRE,function(_3e8){var _3e9={signed:false,separator:_3de.strict?_3e2:[_3e2,""],fractional:_3de.fractional,decimal:_3e3,exponent:false},_3ea=_3e8.split("."),_3eb=_3de.places;if(_3ea.length==1&&_3e4!=1){_3ea[1]="###";}if(_3ea.length==1||_3eb===0){_3e9.fractional=false;}else{if(_3eb===undefined){_3eb=_3de.pattern?_3ea[1].lastIndexOf("0")+1:Infinity;}if(_3eb&&_3de.fractional==undefined){_3e9.fractional=true;}if(!_3de.places&&(_3eb<_3ea[1].length)){_3eb+=","+_3ea[1].length;}_3e9.places=_3eb;}var _3ec=_3ea[0].split(",");if(_3ec.length>1){_3e9.groupSize=_3ec.pop().length;if(_3ec.length>1){_3e9.groupSize2=_3ec.pop().length;}}return "("+_4.number._realNumberRegexp(_3e9)+")";});},true);if(_3e5){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_3ed,_3ee,_3ef,_3f0){var prop=["symbol","currency","displayName"][_3ef.length-1],_3f1=_4.regexp.escapeString(_3de[prop]||_3de.currency||"");_3ee=_3ee?"[\\s\\xa0]":"";_3f0=_3f0?"[\\s\\xa0]":"";if(!_3de.strict){if(_3ee){_3ee+="*";}if(_3f0){_3f0+="*";}return "(?:"+_3ee+_3f1+_3f0+")?";}return _3ee+_3f1+_3f0;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_3e2,decimal:_3e3,factor:_3e4};};_4.number.parse=function(_3f2,_3f3){var info=_4.number._parseInfo(_3f3),_3f4=(new RegExp("^"+info.regexp+"$")).exec(_3f2);if(!_3f4){return NaN;}var _3f5=_3f4[1];if(!_3f4[1]){if(!_3f4[2]){return NaN;}_3f5=_3f4[2];info.factor*=-1;}_3f5=_3f5.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _3f5*info.factor;};_4.number._realNumberRegexp=function(_3f6){_3f6=_3f6||{};if(!("places" in _3f6)){_3f6.places=Infinity;}if(typeof _3f6.decimal!="string"){_3f6.decimal=".";}if(!("fractional" in _3f6)||/^0/.test(_3f6.places)){_3f6.fractional=[true,false];}if(!("exponent" in _3f6)){_3f6.exponent=[true,false];}if(!("eSigned" in _3f6)){_3f6.eSigned=[true,false];}var _3f7=_4.number._integerRegexp(_3f6),_3f8=_4.regexp.buildGroupRE(_3f6.fractional,function(q){var re="";if(q&&(_3f6.places!==0)){re="\\"+_3f6.decimal;if(_3f6.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_3f6.places+"}";}}return re;},true);var _3f9=_4.regexp.buildGroupRE(_3f6.exponent,function(q){if(q){return "([eE]"+_4.number._integerRegexp({signed:_3f6.eSigned})+")";}return "";});var _3fa=_3f7+_3f8;if(_3f8){_3fa="(?:(?:"+_3fa+")|(?:"+_3f8+"))";}return _3fa+_3f9;};_4.number._integerRegexp=function(_3fb){_3fb=_3fb||{};if(!("signed" in _3fb)){_3fb.signed=[true,false];}if(!("separator" in _3fb)){_3fb.separator="";}else{if(!("groupSize" in _3fb)){_3fb.groupSize=3;}}var _3fc=_4.regexp.buildGroupRE(_3fb.signed,function(q){return q?"[-+]":"";},true);var _3fd=_4.regexp.buildGroupRE(_3fb.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=_4.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_3fb.groupSize,grp2=_3fb.groupSize2;if(grp2){var _3fe="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_3fe+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_3fe;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _3fc+_3fd;};}if(!_4._hasResource["dijit.ProgressBar"]){_4._hasResource["dijit.ProgressBar"]=true;_4.provide("dijit.ProgressBar");_4.declare("dijit.ProgressBar",[_5._Widget,_5._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:false,label:"",name:"",templateString:_4.cache("dijit","templates/ProgressBar.html","<div class=\"dijitProgressBar dijitProgressBarEmpty\" role=\"progressbar\"\r\n\t><div  dojoAttachPoint=\"internalProgress\" class=\"dijitProgressBarFull\"\r\n\t\t><div class=\"dijitProgressBarTile\" role=\"presentation\"></div\r\n\t\t><span style=\"visibility:hidden\">&nbsp;</span\r\n\t></div\r\n\t><div dojoAttachPoint=\"labelNode\" class=\"dijitProgressBarLabel\" id=\"${id}_label\"></div\r\n\t><img dojoAttachPoint=\"indeterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\" alt=\"\"\r\n/></div>\r\n"),_indeterminateHighContrastImagePath:_4.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);if(!("value" in this.params)){this.value=this.indeterminate?Infinity:this.progress;}},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());this.update();},update:function(_3ff){_4.mixin(this,_3ff||{});var tip=this.internalProgress,ap=this.domNode;var _400=1;if(this.indeterminate){_5.removeWaiState(ap,"valuenow");_5.removeWaiState(ap,"valuemin");_5.removeWaiState(ap,"valuemax");}else{if(String(this.progress).indexOf("%")!=-1){_400=Math.min(parseFloat(this.progress)/100,1);this.progress=_400*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_400=this.progress/this.maximum;}_5.setWaiState(ap,"describedby",this.labelNode.id);_5.setWaiState(ap,"valuenow",this.progress);_5.setWaiState(ap,"valuemin",0);_5.setWaiState(ap,"valuemax",this.maximum);}this.labelNode.innerHTML=this.report(_400);_4.toggleClass(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);tip.style.width=(_400*100)+"%";this.onChange();},_setValueAttr:function(v){this._set("value",v);if(v==Infinity){this.update({indeterminate:true});}else{this.update({indeterminate:false,progress:v});}},_setLabelAttr:function(_401){this._set("label",_401);this.update();},_setIndeterminateAttr:function(_402){this.indeterminate=_402;this.update();},report:function(_403){return this.label?this.label:(this.indeterminate?"&nbsp;":_4.number.format(_403,{type:"percent",places:this.places,locale:this.lang}));},onChange:function(){}});}if(!_4._hasResource["dijit.TitlePane"]){_4._hasResource["dijit.TitlePane"]=true;_4.provide("dijit.TitlePane");_4.declare("dijit.TitlePane",[_5.layout.ContentPane,_5._Templated,_5._CssStateMixin],{title:"",open:true,toggleable:true,tabIndex:"0",duration:_5.defaultDuration,baseClass:"dijitTitlePane",templateString:_4.cache("dijit","templates/TitlePane.html","<div>\r\n\t<div dojoAttachEvent=\"onclick:_onTitleClick, onkeypress:_onTitleKey\"\r\n\t\t\tclass=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode\">\r\n\t\t<div class=\"dijitTitlePaneTitleFocus\" dojoAttachPoint=\"focusNode\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" role=\"presentation\"\r\n\t\t\t/><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\r\n\t\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\" role=\"presentation\">\r\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\" role=\"presentation\">\r\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" role=\"region\" id=\"${id}_pane\">\r\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n"),attributeMap:_4.delegate(_5.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"},tooltip:{node:"focusNode",type:"attribute",attribute:"title"},id:""}),buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.titleNode,false);},postCreate:function(){this.inherited(arguments);if(this.toggleable){this._trackMouseState(this.titleBarNode,"dijitTitlePaneTitle");}var _404=this.hideNode,_405=this.wipeNode;this._wipeIn=_4.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_404.style.display="";}});this._wipeOut=_4.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_404.style.display="none";}});},_setOpenAttr:function(open,_406){_4.forEach([this._wipeIn,this._wipeOut],function(_407){if(_407&&_407.status()=="playing"){_407.stop();}});if(_406){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?"-":"+";_5.setWaiState(this.containerNode,"hidden",open?"false":"true");_5.setWaiState(this.focusNode,"pressed",open?"true":"false");this._set("open",open);this._setCss();},_setToggleableAttr:function(_408){_5.setWaiRole(this.focusNode,_408?"button":"heading");if(_408){_5.setWaiState(this.focusNode,"controls",this.id+"_pane");_4.attr(this.focusNode,"tabIndex",this.tabIndex);}else{_4.removeAttr(this.focusNode,"tabIndex");}this._set("toggleable",_408);this._setCss();},_setContentAttr:function(_409){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}_4.marginBox(this.wipeNode,{h:_4.marginBox(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 _40a=this._titleBarClass;this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");_4.replaceClass(node,this._titleBarClass,_40a||"");this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==_4.keys.ENTER||e.charOrCode==" "){if(this.toggleable){this.toggle();}_4.stopEvent(e);}else{if(e.charOrCode==_4.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleClick:function(){if(this.toggleable){this.toggle();}},setTitle:function(_40b){_4.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use set('title', ...) instead.","","2.0");this.set("title",_40b);}});}if(!_4._hasResource["dojo.DeferredList"]){_4._hasResource["dojo.DeferredList"]=true;_4.provide("dojo.DeferredList");_4.DeferredList=function(list,_40c,_40d,_40e,_40f){var _410=[];_4.Deferred.call(this);var self=this;if(list.length===0&&!_40c){this.resolve([0,[]]);}var _411=0;_4.forEach(list,function(item,i){item.then(function(_412){if(_40c){self.resolve([i,_412]);}else{_413(true,_412);}},function(_414){if(_40d){self.reject(_414);}else{_413(false,_414);}if(_40e){return null;}throw _414;});function _413(_415,_416){_410[i]=[_415,_416];_411++;if(_411===list.length){self.resolve(_410);}};});};_4.DeferredList.prototype=new _4.Deferred();_4.DeferredList.prototype.gatherResults=function(_417){var d=new _4.DeferredList(_417,false,true,false);d.addCallback(function(_418){var ret=[];_4.forEach(_418,function(_419){ret.push(_419[1]);});return ret;});return d;};}if(!_4._hasResource["dojo.cookie"]){_4._hasResource["dojo.cookie"]=true;_4.provide("dojo.cookie");_4.cookie=function(name,_41a,_41b){var c=document.cookie;if(arguments.length==1){var _41c=c.match(new RegExp("(?:^|; )"+_4.regexp.escapeString(name)+"=([^;]*)"));return _41c?decodeURIComponent(_41c[1]):undefined;}else{_41b=_41b||{};var exp=_41b.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_41b.expires=d;}if(exp&&exp.toUTCString){_41b.expires=exp.toUTCString();}_41a=encodeURIComponent(_41a);var _41d=name+"="+_41a,_41e;for(_41e in _41b){_41d+="; "+_41e;var _41f=_41b[_41e];if(_41f!==true){_41d+="="+_41f;}}document.cookie=_41d;}};_4.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!_4._hasResource["dijit.tree.TreeStoreModel"]){_4._hasResource["dijit.tree.TreeStoreModel"]=true;_4.provide("dijit.tree.TreeStoreModel");_4.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(args){_4.mixin(this,args);this.connects=[];var _420=this.store;if(!_420.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_420.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([_4.connect(_420,"onNew",this,"onNewItem"),_4.connect(_420,"onDelete",this,"onDeleteItem"),_4.connect(_420,"onSet",this,"onSetItem")]);}},destroy:function(){_4.forEach(this.connects,_4.disconnect);},getRoot:function(_421,_422){if(this.root){_421(this.root);}else{this.store.fetch({query:this.query,onComplete:_4.hitch(this,function(_423){if(_423.length!=1){throw new Error(this.declaredClass+": query "+_4.toJson(this.query)+" returned "+_423.length+" items, but must return exactly one item");}this.root=_423[0];_421(this.root);}),onError:_422});}},mayHaveChildren:function(item){return _4.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_424,_425,_426){var _427=this.store;if(!_427.isItemLoaded(_424)){var _428=_4.hitch(this,arguments.callee);_427.loadItem({item:_424,onItem:function(_429){_428(_429,_425,_426);},onError:_426});return;}var _42a=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_427.getValues(_424,this.childrenAttrs[i]);_42a=_42a.concat(vals);}var _42b=0;if(!this.deferItemLoadingUntilExpand){_4.forEach(_42a,function(item){if(!_427.isItemLoaded(item)){_42b++;}});}if(_42b==0){_425(_42a);}else{_4.forEach(_42a,function(item,idx){if(!_427.isItemLoaded(item)){_427.loadItem({item:item,onItem:function(item){_42a[idx]=item;if(--_42b==0){_425(_42a);}},onError:_426});}});}},isItem:function(_42c){return this.store.isItem(_42c);},fetchItemByIdentity:function(_42d){this.store.fetchItemByIdentity(_42d);},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_42e,_42f){var _430={parent:_42e,attribute:this.childrenAttrs[0]},_431;if(this.newItemIdAttr&&args[this.newItemIdAttr]){this.fetchItemByIdentity({identity:args[this.newItemIdAttr],scope:this,onItem:function(item){if(item){this.pasteItem(item,null,_42e,true,_42f);}else{_431=this.store.newItem(args,_430);if(_431&&(_42f!=undefined)){this.pasteItem(_431,_42e,_42e,false,_42f);}}}});}else{_431=this.store.newItem(args,_430);if(_431&&(_42f!=undefined)){this.pasteItem(_431,_42e,_42e,false,_42f);}}},pasteItem:function(_432,_433,_434,_435,_436){var _437=this.store,_438=this.childrenAttrs[0];if(_433){_4.forEach(this.childrenAttrs,function(attr){if(_437.containsValue(_433,attr,_432)){if(!_435){var _439=_4.filter(_437.getValues(_433,attr),function(x){return x!=_432;});_437.setValues(_433,attr,_439);}_438=attr;}});}if(_434){if(typeof _436=="number"){var _43a=_437.getValues(_434,_438).slice();_43a.splice(_436,0,_432);_437.setValues(_434,_438,_43a);}else{_437.setValues(_434,_438,_437.getValues(_434,_438).concat(_432));}}},onChange:function(item){},onChildrenChange:function(_43b,_43c){},onDelete:function(_43d,_43e){},onNewItem:function(item,_43f){if(!_43f){return;}this.getChildren(_43f.item,_4.hitch(this,function(_440){this.onChildrenChange(_43f.item,_440);}));},onDeleteItem:function(item){this.onDelete(item);},onSetItem:function(item,_441,_442,_443){if(_4.indexOf(this.childrenAttrs,_441)!=-1){this.getChildren(item,_4.hitch(this,function(_444){this.onChildrenChange(item,_444);}));}else{this.onChange(item);}}});}if(!_4._hasResource["dijit.tree.ForestStoreModel"]){_4._hasResource["dijit.tree.ForestStoreModel"]=true;_4.provide("dijit.tree.ForestStoreModel");_4.declare("dijit.tree.ForestStoreModel",_5.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_445){this.root={store:this,root:true,id:_445.rootId,label:_445.rootLabel,children:_445.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_446,_447,_448){if(_446===this.root){if(this.root.children){_447(this.root.children);}else{this.store.fetch({query:this.query,onComplete:_4.hitch(this,function(_449){this.root.children=_449;_447(_449);}),onError:_448});}}else{this.inherited(arguments);}},isItem:function(_44a){return (_44a===this.root)?true:this.inherited(arguments);},fetchItemByIdentity:function(_44b){if(_44b.identity==this.root.id){var _44c=_44b.scope?_44b.scope:_4.global;if(_44b.onItem){_44b.onItem.call(_44c,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,_44d,_44e){if(_44d===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_44f,_450,_451,_452,_453){if(_450===this.root){if(!_452){this.onLeaveRoot(_44f);}}_5.tree.TreeStoreModel.prototype.pasteItem.call(this,_44f,_450===this.root?null:_450,_451===this.root?null:_451,_452,_453);if(_451===this.root){this.onAddToRoot(_44f);}},onAddToRoot:function(item){console.log(this,": item ",item," added to root");},onLeaveRoot:function(item){console.log(this,": item ",item," removed from root");},_requeryTop:function(){var _454=this.root.children||[];this.store.fetch({query:this.query,onComplete:_4.hitch(this,function(_455){this.root.children=_455;if(_454.length!=_455.length||_4.some(_454,function(item,idx){return _455[idx]!=item;})){this.onChildrenChange(this.root,_455);}})});},onNewItem:function(item,_456){this._requeryTop();this.inherited(arguments);},onDeleteItem:function(item){if(_4.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);},onSetItem:function(item,_457,_458,_459){this._requeryTop();this.inherited(arguments);}});}if(!_4._hasResource["dojo.dnd.Container"]){_4._hasResource["dojo.dnd.Container"]=true;_4.provide("dojo.dnd.Container");_4.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_45a){this.node=_4.byId(node);if(!_45a){_45a={};}this.creator=_45a.creator||null;this.skipForm=_45a.skipForm;this.parent=_45a.dropParent&&_4.byId(_45a.dropParent);this.map={};this.current=null;this.containerState="";_4.addClass(this.node,"dojoDndContainer");if(!(_45a&&_45a._skipStartup)){this.startup();}this.events=[_4.connect(this.node,"onmouseover",this,"onMouseOver"),_4.connect(this.node,"onmouseout",this,"onMouseOut"),_4.connect(this.node,"ondragstart",this,"onSelectStart"),_4.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||_4.global;var m=this.map,e=_4.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return _4.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=_4.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_45b,_45c){if(!this.parent.firstChild){_45c=null;}else{if(_45b){if(!_45c){_45c=this.parent.firstChild;}}else{if(_45c){_45c=_45c.nextSibling;}}}if(_45c){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_45c);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){_4.forEach(this.events,_4.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_45d,node){_45d._skipStartup=true;return new _4.dnd.Container(node,_45d);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=_4.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!_4.dnd.isFormElement(e)){_4.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_45e){var _45f="dojoDnd"+type;var _460=type.toLowerCase()+"State";_4.replaceClass(this.node,_45f+_45e,_45f+this[_460]);this[_460]=_45e;},_addItemClass:function(node,type){_4.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){_4.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _461=node.parentNode;_461;node=_461,_461=node.parentNode){if(_461==this.parent&&_4.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!_4.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=_4.dnd.getUniqueId();}_4.addClass(t.node,"dojoDndItem");return t;}});_4.dnd._createNode=function(tag){if(!tag){return _4.dnd._createSpan;}return function(text){return _4.create(tag,{innerHTML:text});};};_4.dnd._createTrTd=function(text){var tr=_4.create("tr");_4.create("td",{innerHTML:text},tr);return tr;};_4.dnd._createSpan=function(text){return _4.create("span",{innerHTML:text});};_4.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};_4.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?_4.dnd._createTrTd:_4.dnd._createNode(_4.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _462=item&&_4.isObject(item),data,type,n;if(_462&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_462&&item.data)?item.data:item;type=(_462&&item.type)?item.type:["text"];n=(hint=="avatar"?_4.dnd._createSpan:c)(String(data));}if(!n.id){n.id=_4.dnd.getUniqueId();}return {node:n,data:data,type:type};};};}if(!_4._hasResource["dijit.tree._dndContainer"]){_4._hasResource["dijit.tree._dndContainer"]=true;_4.provide("dijit.tree._dndContainer");_4.getObject("tree",true,_4);_5.tree._compareNodes=function(n1,n2){if(n1===n2){return 0;}if("sourceIndex" in document.documentElement){return n1.sourceIndex-n2.sourceIndex;}else{if("compareDocumentPosition" in document.documentElement){return n1.compareDocumentPosition(n2)&2?1:-1;}else{if(document.createRange){var r1=doc.createRange();r1.setStartBefore(n1);var r2=doc.createRange();r2.setStartBefore(n2);return r1.compareBoundaryPoints(r1.END_TO_END,r2);}else{throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");}}}};_4.declare("dijit.tree._dndContainer",null,{constructor:function(tree,_463){this.tree=tree;this.node=tree.domNode;_4.mixin(this,_463);this.map={};this.current=null;this.containerState="";_4.addClass(this.node,"dojoDndContainer");this.events=[_4.connect(this.node,"onmouseenter",this,"onOverEvent"),_4.connect(this.node,"onmouseleave",this,"onOutEvent"),_4.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),_4.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),_4.connect(this.node,"ondragstart",_4,"stopEvent"),_4.connect(this.node,"onselectstart",_4,"stopEvent")];},getItem:function(key){var _464=this.selection[key],ret={data:_464,type:["treeNode"]};return ret;},destroy:function(){_4.forEach(this.events,_4.disconnect);this.node=this.parent=null;},onMouseOver:function(_465,evt){this.current=_465;},onMouseOut:function(_466,evt){this.current=null;},_changeState:function(type,_467){var _468="dojoDnd"+type;var _469=type.toLowerCase()+"State";_4.replaceClass(this.node,_468+_467,_468+this[_469]);this[_469]=_467;},_addItemClass:function(node,type){_4.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){_4.removeClass(node,"dojoDndItem"+type);},onOverEvent:function(){this._changeState("Container","Over");},onOutEvent:function(){this._changeState("Container","");}});}if(!_4._hasResource["dijit.tree._dndSelector"]){_4._hasResource["dijit.tree._dndSelector"]=true;_4.provide("dijit.tree._dndSelector");_4.declare("dijit.tree._dndSelector",_5.tree._dndContainer,{constructor:function(tree,_46a){this.selection={};this.anchor=null;_5.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(_4.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),_4.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),_4.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"));},singular:false,getSelectedTreeNodes:function(){var _46b=[],sel=this.selection;for(var i in sel){_46b.push(sel[i]);}return _46b;},selectNone:function(){this.setSelection([]);return this;},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null;},addTreeNode:function(node,_46c){this.setSelection(this.getSelectedTreeNodes().concat([node]));if(_46c){this.anchor=node;}return node;},removeTreeNode:function(node){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[node]));return node;},isTreeNodeSelected:function(node){return node.id&&!!this.selection[node.id];},setSelection:function(_46d){var _46e=this.getSelectedTreeNodes();_4.forEach(this._setDifference(_46e,_46d),_4.hitch(this,function(node){node.setSelected(false);if(this.anchor==node){delete this.anchor;}delete this.selection[node.id];}));_4.forEach(this._setDifference(_46d,_46e),_4.hitch(this,function(node){node.setSelected(true);this.selection[node.id]=node;}));this._updateSelectionProperties();},_setDifference:function(xs,ys){_4.forEach(ys,function(y){y.__exclude__=true;});var ret=_4.filter(xs,function(x){return !x.__exclude__;});_4.forEach(ys,function(y){delete y["__exclude__"];});return ret;},_updateSelectionProperties:function(){var _46f=this.getSelectedTreeNodes();var _470=[],_471=[];_4.forEach(_46f,function(node){_471.push(node);_470.push(node.getTreePath());});var _472=_4.map(_471,function(node){return node.item;});this.tree._set("paths",_470);this.tree._set("path",_470[0]||[]);this.tree._set("selectedNodes",_471);this.tree._set("selectedNode",_471[0]||null);this.tree._set("selectedItems",_472);this.tree._set("selectedItem",_472[0]||null);},onMouseDown:function(e){if(!this.current||this.tree.isExpandoNode(e.target,this.current)){return;}if(e.button==_4.mouseButtons.RIGHT){return;}_4.stopEvent(e);var _473=this.current,copy=_4.isCopyKey(e),id=_473.id;if(!this.singular&&!e.shiftKey&&this.selection[id]){this._doDeselect=true;return;}else{this._doDeselect=false;}this.userSelect(_473,copy,e.shiftKey);},onMouseUp:function(e){if(!this._doDeselect){return;}this._doDeselect=false;this.userSelect(this.current,_4.isCopyKey(e),e.shiftKey);},onMouseMove:function(e){this._doDeselect=false;},userSelect:function(node,_474,_475){if(this.singular){if(this.anchor==node&&_474){this.selectNone();}else{this.setSelection([node]);this.anchor=node;}}else{if(_475&&this.anchor){var cr=_5.tree._compareNodes(this.anchor.rowNode,node.rowNode),_476,end,_477=this.anchor;if(cr<0){_476=_477;end=node;}else{_476=node;end=_477;}nodes=[];while(_476!=end){nodes.push(_476);_476=this.tree._getNextNode(_476);}nodes.push(end);this.setSelection(nodes);}else{if(this.selection[node.id]&&_474){this.removeTreeNode(node);}else{if(_474){this.addTreeNode(node,true);}else{this.setSelection([node]);this.anchor=node;}}}}},forInSelectedItems:function(f,o){o=o||_4.global;for(var id in this.selection){f.call(o,this.getItem(id),id,this);}}});}if(!_4._hasResource["dijit.Tree"]){_4._hasResource["dijit.Tree"]=true;_4.provide("dijit.Tree");_4.declare("dijit._TreeNode",[_5._Widget,_5._Templated,_5._Container,_5._Contained,_5._CssStateMixin],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:_4.cache("dijit","templates/TreeNode.html","<div class=\"dijitTreeNode\" role=\"presentation\"\r\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" role=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick\"\r\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" role=\"presentation\"\r\n\t\t/><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" role=\"presentation\"\r\n\t\t></span\r\n\t\t><span dojoAttachPoint=\"contentNode\"\r\n\t\t\tclass=\"dijitTreeContent\" role=\"presentation\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitIcon dijitTreeIcon\" role=\"presentation\"\r\n\t\t\t/><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" role=\"treeitem\" tabindex=\"-1\" aria-selected=\"false\" dojoAttachEvent=\"onfocus:_onLabelFocus\"></span>\r\n\t\t</span\r\n\t></div>\r\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" role=\"presentation\" style=\"display: none;\"></div>\r\n</div>\r\n"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){_5.setWaiState(this.labelNode,"expanded",this.isExpanded);}this.setSelected(false);},_setIndentAttr:function(_478){var _479=(Math.max(_478,0)*this.tree._nodePixelIndent)+"px";_4.style(this.domNode,"backgroundPosition",_479+" 0px");_4.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_479);_4.forEach(this.getChildren(),function(_47a){_47a.set("indent",_478+1);});this._set("indent",_478);},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_47b=tree.model;if(tree._v10Compat&&item===_47b.root){item=null;}this._applyClassAndStyle(item,"icon","Icon");this._applyClassAndStyle(item,"label","Label");this._applyClassAndStyle(item,"row","Row");},_applyClassAndStyle:function(item,_47c,_47d){var _47e="_"+_47c+"Class";var _47f=_47c+"Node";var _480=this[_47e];this[_47e]=this.tree["get"+_47d+"Class"](item,this.isExpanded);_4.replaceClass(this[_47f],this[_47e]||"",_480||"");_4.style(this[_47f],this.tree["get"+_47d+"Style"](item,this.isExpanded)||{});},_updateLayout:function(){var _481=this.getParent();if(!_481||_481.rowNode.style.display=="none"){_4.addClass(this.domNode,"dijitTreeIsRoot");}else{_4.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_482){var _483=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_484=["*","-","+","*"],idx=_482?0:(this.isExpandable?(this.isExpanded?1:2):3);_4.replaceClass(this.expandoNode,_483[idx],_483);this.expandoNodeText.innerHTML=_484[idx];},expand:function(){if(this._expandDeferred){return this._expandDeferred;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;_5.setWaiState(this.labelNode,"expanded","true");if(this.tree.showRoot||this!==this.tree.rootNode){_5.setWaiRole(this.containerNode,"group");}_4.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){_5.setWaiState(this.tree.domNode,"expanded","true");}var def,_485=_4.fx.wipeIn({node:this.containerNode,duration:_5.defaultDuration,onEnd:function(){def.callback(true);}});def=(this._expandDeferred=new _4.Deferred(function(){_485.stop();}));_485.play();return def;},collapse:function(){if(!this.isExpanded){return;}if(this._expandDeferred){this._expandDeferred.cancel();delete this._expandDeferred;}this.isExpanded=false;_5.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){_5.setWaiState(this.tree.domNode,"expanded","false");}_4.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=_4.fx.wipeOut({node:this.containerNode,duration:_5.defaultDuration});}this._wipeOut.play();},indent:0,setChildItems:function(_486){var tree=this.tree,_487=tree.model,defs=[];_4.forEach(this.getChildren(),function(_488){_5._Container.prototype.removeChild.call(this,_488);},this);this.state="LOADED";if(_486&&_486.length>0){this.isExpandable=true;_4.forEach(_486,function(item){var id=_487.getIdentity(item),_489=tree._itemNodesMap[id],node;if(_489){for(var i=0;i<_489.length;i++){if(_489[i]&&!_489[i].getParent()){node=_489[i];node.set("indent",this.indent+1);break;}}}if(!node){node=this.tree._createTreeNode({item:item,tree:tree,isExpandable:_487.mayHaveChildren(item),label:tree.getLabel(item),tooltip:tree.getTooltip(item),dir:tree.dir,lang:tree.lang,indent:this.indent+1});if(_489){_489.push(node);}else{tree._itemNodesMap[id]=[node];}}this.addChild(node);if(this.tree.autoExpand||this.tree._state(item)){defs.push(tree._expandNode(node));}},this);_4.forEach(this.getChildren(),function(_48a,idx){_48a._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}this._updateItemClasses(this.item);if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setFocusable(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}return new _4.DeferredList(defs);},getTreePath:function(){var node=this;var path=[];while(node&&node!==this.tree.rootNode){path.unshift(node.item);node=node.getParent();}path.unshift(this.tree.rootNode.item);return path;},getIdentity:function(){return this.tree.model.getIdentity(this.item);},removeChild:function(node){this.inherited(arguments);var _48b=this.getChildren();if(_48b.length==0){this.isExpandable=false;this.collapse();}_4.forEach(_48b,function(_48c){_48c._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){this.tree._onNodeFocus(this);},setSelected:function(_48d){_5.setWaiState(this.labelNode,"selected",_48d);_4.toggleClass(this.rowNode,"dijitTreeRowSelected",_48d);},setFocusable:function(_48e){this.labelNode.setAttribute("tabIndex",_48e?"0":"-1");},_onClick:function(evt){this.tree._onClick(this,evt);},_onDblClick:function(evt){this.tree._onDblClick(this,evt);},_onMouseEnter:function(evt){this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){this.tree._onNodeMouseLeave(this,evt);}});_4.declare("dijit.Tree",[_5._Widget,_5._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:_4.cache("dijit","templates/Tree.html","<div class=\"dijitTree dijitTreeContainer\" role=\"tree\"\r\n\tdojoAttachEvent=\"onkeypress:_onKeyPress\">\r\n\t<div class=\"dijitInline dijitTreeIndent\" style=\"position: absolute; top: -9999px\" dojoAttachPoint=\"indentDetector\"></div>\r\n</div>\r\n"),persist:true,autoExpand:false,dndController:"dijit.tree._dndSelector",dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(_48f,_490){_4.publish(this.id,[_4.mixin({tree:this,event:_48f},_490||{})]);},postMixInProperties:function(){this.tree=this;if(this.autoExpand){this.persist=false;}this._itemNodesMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}this._loadDeferred=new _4.Deferred();this.inherited(arguments);},postCreate:function(){this._initState();if(!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){if(_4.isString(this.dndController)){this.dndController=_4.getObject(this.dndController);}var _491={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_491[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_491);}},_store2model:function(){this._v10Compat=true;_4.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _492={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_492.mayHaveChildren=_4.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_492.getChildren=_4.hitch(this,function(item,_493,_494){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_493,_494);});}this.model=new _5.tree.ForestStoreModel(_492);this.showRoot=Boolean(this.label);},onLoad:function(){},_load:function(){this.model.getRoot(_4.hitch(this,function(item){var rn=(this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1}));if(!this.showRoot){rn.rowNode.style.display="none";_5.setWaiRole(this.domNode,"presentation");_5.setWaiRole(rn.labelNode,"presentation");_5.setWaiRole(rn.containerNode,"tree");}this.domNode.appendChild(rn.domNode);var _495=this.model.getIdentity(item);if(this._itemNodesMap[_495]){this._itemNodesMap[_495].push(rn);}else{this._itemNodesMap[_495]=[rn];}rn._updateLayout();this._expandNode(rn).addCallback(_4.hitch(this,function(){this._loadDeferred.callback(true);this.onLoad();}));}),function(err){console.error(this,": error loading root: ",err);});},getNodesByItem:function(item){if(!item){return [];}var _496=_4.isString(item)?item:this.model.getIdentity(item);return [].concat(this._itemNodesMap[_496]);},_setSelectedItemAttr:function(item){this.set("selectedItems",[item]);},_setSelectedItemsAttr:function(_497){var tree=this;this._loadDeferred.addCallback(_4.hitch(this,function(){var _498=_4.map(_497,function(item){return (!item||_4.isString(item))?item:tree.model.getIdentity(item);});var _499=[];_4.forEach(_498,function(id){_499=_499.concat(tree._itemNodesMap[id]||[]);});this.set("selectedNodes",_499);}));},_setPathAttr:function(path){if(path.length){return this.set("paths",[path]);}else{return this.set("paths",[]);}},_setPathsAttr:function(_49a){var tree=this;return new _4.DeferredList(_4.map(_49a,function(path){var d=new _4.Deferred();path=_4.map(path,function(item){return _4.isString(item)?item:tree.model.getIdentity(item);});if(path.length){tree._loadDeferred.addCallback(function(){_49b(path,[tree.rootNode],d);});}else{d.errback("Empty path");}return d;})).addCallback(_49c);function _49b(path,_49d,def){var _49e=path.shift();var _49f=_4.filter(_49d,function(node){return node.getIdentity()==_49e;})[0];if(!!_49f){if(path.length){tree._expandNode(_49f).addCallback(function(){_49b(path,_49f.getChildren(),def);});}else{def.callback(_49f);}}else{def.errback("Could not expand path at "+_49e);}};function _49c(_4a0){tree.set("selectedNodes",_4.map(_4.filter(_4a0,function(x){return x[0];}),function(x){return x[1];}));};},_setSelectedNodeAttr:function(node){this.set("selectedNodes",[node]);},_setSelectedNodesAttr:function(_4a1){this._loadDeferred.addCallback(_4.hitch(this,function(){this.dndController.setSelection(_4a1);}));},mayHaveChildren:function(item){},getItemChildren:function(_4a2,_4a3){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_4a4){return (!item||this.model.mayHaveChildren(item))?(_4a4?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_4a5){},getRowClass:function(item,_4a6){},getIconStyle:function(item,_4a7){},getLabelStyle:function(item,_4a8){},getRowStyle:function(item,_4a9){},getTooltip:function(item){return "";},_onKeyPress:function(e){if(e.altKey){return;}var dk=_4.keys;var _4aa=_5.getEnclosingWidget(e.target);if(!_4aa){return;}var key=e.charOrCode;if(typeof key=="string"&&key!=" "){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_4aa,key:key.toLowerCase()});_4.stopEvent(e);}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[dk.SPACE]=map[" "]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_4aa,item:_4aa.item,evt:e});_4.stopEvent(e);}}},_onEnterKey:function(_4ab){this._publish("execute",{item:_4ab.item,node:_4ab.node});this.dndController.userSelect(_4ab.node,_4.isCopyKey(_4ab.evt),_4ab.evt.shiftKey);this.onClick(_4ab.item,_4ab.node,_4ab.evt);},_onDownArrow:function(_4ac){var node=this._getNextNode(_4ac.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_4ad){var node=_4ad.node;var _4ae=node.getPreviousSibling();if(_4ae){node=_4ae;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _4af=node.getChildren();node=_4af[_4af.length-1];}}else{var _4b0=node.getParent();if(!(!this.showRoot&&_4b0===this.rootNode)){node=_4b0;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_4b1){var node=_4b1.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_4b2){var node=_4b2.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _4b3=node.getParent();if(_4b3&&_4b3.isTreeNode&&!(!this.showRoot&&_4b3===this.rootNode)){this.focusNode(_4b3);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_4b4){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},multiCharSearchDuration:250,_onLetterKeyNav:function(_4b5){var cs=this._curSearch;if(cs){cs.pattern=cs.pattern+_4b5.key;clearTimeout(cs.timer);}else{cs=this._curSearch={pattern:_4b5.key,startNode:_4b5.node};}var self=this;cs.timer=setTimeout(function(){delete self._curSearch;},this.multiCharSearchDuration);var node=cs.startNode;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==cs.startNode&&(node.label.toLowerCase().substr(0,cs.pattern.length)!=cs.pattern));if(node&&node.isTreeNode){if(node!==cs.startNode){this.focusNode(node);}}},isExpandoNode:function(node,_4b6){return _4.isDescendant(node,_4b6.expandoNode);},_onClick:function(_4b7,e){var _4b8=e.target,_4b9=this.isExpandoNode(_4b8,_4b7);if((this.openOnClick&&_4b7.isExpandable)||_4b9){if(_4b7.isExpandable){this._onExpandoClick({node:_4b7});}}else{this._publish("execute",{item:_4b7.item,node:_4b7,evt:e});this.onClick(_4b7.item,_4b7,e);this.focusNode(_4b7);}_4.stopEvent(e);},_onDblClick:function(_4ba,e){var _4bb=e.target,_4bc=(_4bb==_4ba.expandoNode||_4bb==_4ba.expandoNodeText);if((this.openOnDblClick&&_4ba.isExpandable)||_4bc){if(_4ba.isExpandable){this._onExpandoClick({node:_4ba});}}else{this._publish("execute",{item:_4ba.item,node:_4ba,evt:e});this.onDblClick(_4ba.item,_4ba,e);this.focusNode(_4ba);}_4.stopEvent(e);},_onExpandoClick:function(_4bd){var node=_4bd.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node,evt){},onDblClick:function(item,node,evt){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _4be=node.getNextSibling();if(_4be){return _4be;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node._expandNodeDeferred){delete node._expandNodeDeferred;}if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node,_4bf){if(node._expandNodeDeferred&&!_4bf){return node._expandNodeDeferred;}var _4c0=this.model,item=node.item,_4c1=this;switch(node.state){case "UNCHECKED":node.markProcessing();var def=(node._expandNodeDeferred=new _4.Deferred());_4c0.getChildren(item,function(_4c2){node.unmarkProcessing();var scid=node.setChildItems(_4c2);var ed=_4c1._expandNode(node,true);scid.addCallback(function(){ed.addCallback(function(){def.callback();});});},function(err){console.error(_4c1,": error loading root children: ",err);});break;default:def=(node._expandNodeDeferred=node.expand());this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}return def;},focusNode:function(node){_5.focus(node.labelNode);},_onNodeFocus:function(node){if(node&&node!=this.lastFocused){if(this.lastFocused&&!this.lastFocused._destroyed){this.lastFocused.setFocusable(false);}node.setFocusable(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _4c3=this.model,_4c4=_4c3.getIdentity(item),_4c5=this._itemNodesMap[_4c4];if(_4c5){var _4c6=this.getLabel(item),_4c7=this.getTooltip(item);_4.forEach(_4c5,function(node){node.set({item:item,label:_4c6,tooltip:_4c7});node._updateItemClasses(item);});}},_onItemChildrenChange:function(_4c8,_4c9){var _4ca=this.model,_4cb=_4ca.getIdentity(_4c8),_4cc=this._itemNodesMap[_4cb];if(_4cc){_4.forEach(_4cc,function(_4cd){_4cd.setChildItems(_4c9);});}},_onItemDelete:function(item){var _4ce=this.model,_4cf=_4ce.getIdentity(item),_4d0=this._itemNodesMap[_4cf];if(_4d0){_4.forEach(_4d0,function(node){this.dndController.removeTreeNode(node);var _4d1=node.getParent();if(_4d1){_4d1.removeChild(node);}node.destroyRecursive();},this);delete this._itemNodesMap[_4cf];}},_initState:function(){if(this.persist){var _4d2=_4.cookie(this.cookieName);this._openedItemIds={};if(_4d2){_4.forEach(_4d2.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_4d3){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_4d3){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}_4.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!_4.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},resize:function(_4d4){if(_4d4){_4.marginBox(this.domNode,_4d4);}this._nodePixelIndent=_4._getMarginSize(this.tree.indentDetector).w;if(this.tree.rootNode){this.tree.rootNode.set("indent",this.showRoot?0:-1);}},_createTreeNode:function(args){return new _5._TreeNode(args);}});}if(!_4._hasResource["dijit.InlineEditBox"]){_4._hasResource["dijit.InlineEditBox"]=true;_4.provide("dijit.InlineEditBox");_4.declare("dijit.InlineEditBox",_5._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorWrapper:"dijit._InlineEditor",editorParams:{},disabled:false,onChange:function(_4d5){},onCancel:function(){},width:"100%",value:"",noValueIndicator:_4.isIE<=6?"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>":"<span style='text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",constructor:function(){this.editorParams={};},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;var _4d6={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _4d6){this.connect(this.displayNode,name,_4d6[name]);}_5.setWaiRole(this.displayNode,"button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}if(!this.value&&!("value" in this.params)){this.value=_4.trim(this.renderAsHtml?this.displayNode.innerHTML:(this.displayNode.innerText||this.displayNode.textContent||""));}if(!this.value){this.displayNode.innerHTML=this.noValueIndicator;}_4.addClass(this.displayNode,"dijitInlineEditBoxDisplayMode");},setDisabled:function(_4d7){_4.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_4d7);},_setDisabledAttr:function(_4d8){_5.setWaiState(this.domNode,"disabled",_4d8);if(_4d8){this.displayNode.removeAttribute("tabIndex");}else{this.displayNode.setAttribute("tabIndex",0);}_4.toggleClass(this.displayNode,"dijitInlineEditBoxDisplayModeDisabled",_4d8);this._set("disabled",_4d8);},_onMouseOver:function(){if(!this.disabled){_4.addClass(this.displayNode,"dijitInlineEditBoxDisplayModeHover");}},_onMouseOut:function(){_4.removeClass(this.displayNode,"dijitInlineEditBoxDisplayModeHover");},_onClick:function(e){if(this.disabled){return;}if(e){_4.stopEvent(e);}this._onMouseOut();setTimeout(_4.hitch(this,"edit"),0);},edit:function(){if(this.disabled||this.editing){return;}this.editing=true;this._savedPosition=_4.style(this.displayNode,"position")||"static";this._savedOpacity=_4.style(this.displayNode,"opacity")||"1";this._savedTabIndex=_4.attr(this.displayNode,"tabIndex")||"0";if(this.wrapperWidget){var ew=this.wrapperWidget.editWidget;ew.set("displayedValue" in ew?"displayedValue":"value",this.value);}else{var _4d9=_4.create("span",null,this.domNode,"before");var ewc=typeof this.editorWrapper=="string"?_4.getObject(this.editorWrapper):this.editorWrapper;this.wrapperWidget=new ewc({value:this.value,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,dir:this.dir,lang:this.lang,tabIndex:this._savedTabIndex,editor:this.editor,inlineEditBox:this,sourceStyle:_4.getComputedStyle(this.displayNode),save:_4.hitch(this,"save"),cancel:_4.hitch(this,"cancel")},_4d9);if(!this._started){this.startup();}}var ww=this.wrapperWidget;if(_4.isIE){_5.focus(_5.getFocus());}_4.style(this.displayNode,{position:"absolute",opacity:"0",display:"none"});_4.style(ww.domNode,{position:this._savedPosition,visibility:"visible",opacity:"1"});_4.attr(this.displayNode,"tabIndex","-1");setTimeout(_4.hitch(this,function(){ww.focus();ww._resetValue=ww.getValue();}),0);},_onBlur:function(){this.inherited(arguments);if(!this.editing){}},destroy:function(){if(this.wrapperWidget&&!this.wrapperWidget._destroyed){this.wrapperWidget.destroy();delete this.wrapperWidget;}this.inherited(arguments);},_showText:function(_4da){var ww=this.wrapperWidget;_4.style(ww.domNode,{position:"absolute",visibility:"hidden",opacity:"0"});_4.style(this.displayNode,{position:this._savedPosition,opacity:this._savedOpacity,display:""});_4.attr(this.displayNode,"tabIndex",this._savedTabIndex);if(_4da){_5.focus(this.displayNode);}},save:function(_4db){if(this.disabled||!this.editing){return;}this.editing=false;var ww=this.wrapperWidget;var _4dc=ww.getValue();this.set("value",_4dc);this._showText(_4db);},setValue:function(val){_4.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use set('value', ...) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(val){val=_4.trim(val);var _4dd=this.renderAsHtml?val:val.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>");this.displayNode.innerHTML=_4dd||this.noValueIndicator;this._set("value",val);if(this._started){setTimeout(_4.hitch(this,"onChange",val),0);}},getValue:function(){_4.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use get('value') instead.","","2.0");return this.get("value");},cancel:function(_4de){if(this.disabled||!this.editing){return;}this.editing=false;setTimeout(_4.hitch(this,"onCancel"),0);this._showText(_4de);}});_4.declare("dijit._InlineEditor",[_5._Widget,_5._Templated],{templateString:_4.cache("dijit","templates/InlineEditBox.html","<span data-dojo-attach-point=\"editNode\" role=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\r\n\tdata-dojo-attach-event=\"onkeypress: _onKeyPress\"\r\n\t><span data-dojo-attach-point=\"editorPlaceholder\"></span\r\n\t><span data-dojo-attach-point=\"buttonContainer\"\r\n\t\t><button data-dojo-type=\"dijit.form.Button\" data-dojo-props=\"label: '${buttonSave}', 'class': 'saveButton'\"\r\n\t\t\tdata-dojo-attach-point=\"saveButton\" data-dojo-attach-event=\"onClick:save\"></button\r\n\t\t><button data-dojo-type=\"dijit.form.Button\"  data-dojo-props=\"label: '${buttonCancel}', 'class': 'cancelButton'\"\r\n\t\t\tdata-dojo-attach-point=\"cancelButton\" data-dojo-attach-event=\"onClick:cancel\"></button\r\n\t></span\r\n></span>\r\n"),widgetsInTemplate:true,postMixInProperties:function(){this.inherited(arguments);this.messages=_4.i18n.getLocalization("dijit","common",this.lang);_4.forEach(["buttonSave","buttonCancel"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);},buildRendering:function(){this.inherited(arguments);var cls=typeof this.editor=="string"?_4.getObject(this.editor):this.editor;var _4df=this.sourceStyle,_4e0="line-height:"+_4df.lineHeight+";",_4e1=_4.getComputedStyle(this.domNode);_4.forEach(["Weight","Family","Size","Style"],function(prop){var _4e2=_4df["font"+prop],_4e3=_4e1["font"+prop];if(_4e3!=_4e2){_4e0+="font-"+prop+":"+_4df["font"+prop]+";";}},this);_4.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_4df[prop];},this);var _4e4=this.inlineEditBox.width;if(_4e4=="100%"){_4e0+="width:100%;";this.domNode.style.display="block";}else{_4e0+="width:"+(_4e4+(Number(_4e4)==_4e4?"px":""))+";";}var _4e5=_4.delegate(this.inlineEditBox.editorParams,{style:_4e0,dir:this.dir,lang:this.lang});_4e5["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;this.editWidget=new cls(_4e5,this.editorPlaceholder);if(this.inlineEditBox.autoSave){_4.destroy(this.buttonContainer);}},postCreate:function(){this.inherited(arguments);var ew=this.editWidget;if(this.inlineEditBox.autoSave){this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");}else{if("intermediateChanges" in ew){ew.set("intermediateChanges",true);this.connect(ew,"onChange","_onIntermediateChange");this.saveButton.set("disabled",true);}}},_onIntermediateChange:function(val){this.saveButton.set("disabled",(this.getValue()==this._resetValue)||!this.enableSave());},destroy:function(){this.editWidget.destroy(true);this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return String(ew.get("displayedValue" in ew?"displayedValue":"value"));},_onKeyPress:function(e){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==_4.keys.ESCAPE){_4.stopEvent(e);this.cancel(true);}else{if(e.charOrCode==_4.keys.ENTER&&e.target.tagName=="INPUT"){_4.stopEvent(e);this._onChange();}}}},_onBlur:function(){this.inherited(arguments);if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing){if(this.getValue()==this._resetValue){this.cancel(false);}else{if(this.enableSave()){this.save(false);}}}},_onChange:function(){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing&&this.enableSave()){_4.style(this.inlineEditBox.displayNode,{display:""});_5.focus(this.inlineEditBox.displayNode);}},enableSave:function(){return (this.editWidget.isValid?this.editWidget.isValid():true);},focus:function(){this.editWidget.focus();setTimeout(_4.hitch(this,function(){if(this.editWidget.focusNode&&this.editWidget.focusNode.tagName=="INPUT"){_5.selectInputText(this.editWidget.focusNode);}}),0);}});}if(!_4._hasResource["dijit.form.Form"]){_4._hasResource["dijit.form.Form"]=true;_4.provide("dijit.form.Form");_4.declare("dijit.form.Form",[_5._Widget,_5._Templated,_5.form._FormMixin,_5.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments);},execute:function(_4e6){},onExecute:function(){},_setEncTypeAttr:function(_4e7){this.encType=_4e7;_4.attr(this.domNode,"encType",_4e7);if(_4.isIE){this.domNode.encoding=_4e7;}},postCreate:function(){if(_4.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.set("encType",item.value);}}this.inherited(arguments);},reset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e?e.target:this.domNode,target:e?e.target:this.domNode};if(!(this.onReset(faux)===false)&&faux.returnValue){this.inherited(arguments,[]);}},onReset:function(e){return true;},_onReset:function(e){this.reset(e);_4.stopEvent(e);return false;},_onSubmit:function(e){var fp=_5.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){_4.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){_4.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!_4._hasResource["dijit.form.ComboButton"]){_4._hasResource["dijit.form.ComboButton"]=true;_4.provide("dijit.form.ComboButton");}if(!_4._hasResource["dijit.form.ToggleButton"]){_4._hasResource["dijit.form.ToggleButton"]=true;_4.provide("dijit.form.ToggleButton");}if(!_4._hasResource["dijit.form.CheckBox"]){_4._hasResource["dijit.form.CheckBox"]=true;_4.provide("dijit.form.CheckBox");_4.declare("dijit.form.CheckBox",_5.form.ToggleButton,{templateString:_4.cache("dijit.form","templates/CheckBox.html","<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\r\n\t><input\r\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\r\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\r\n\t\tdojoAttachPoint=\"focusNode\"\r\n\t \tdojoAttachEvent=\"onclick:_onClick\"\r\n/></div>\r\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:_4.delegate(_5.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_4e8){this._set("readOnly",_4e8);_4.attr(this.focusNode,"readOnly",_4e8);_5.setWaiState(this.focusNode,"readonly",_4e8);},_setValueAttr:function(_4e9,_4ea){if(typeof _4e9=="string"){this._set("value",_4e9);_4.attr(this.focusNode,"value",_4e9);_4e9=true;}if(this._created){this.set("checked",_4e9,_4ea);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_4eb){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);this._set("value",this.params.value||"on");_4.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){_4.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){_4.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);},_onClick:function(e){if(this.readOnly){_4.stopEvent(e);return false;}return this.inherited(arguments);}});_4.declare("dijit.form.RadioButton",_5.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_4ec){this.inherited(arguments);if(!this._created){return;}if(_4ec){var _4ed=this;_4.query("INPUT[type=radio]",this.focusNode.form||_4.doc).forEach(function(_4ee){if(_4ee.name==_4ed.name&&_4ee!=_4ed.focusNode&&_4ee.form==_4ed.focusNode.form){var _4ef=_5.getEnclosingWidget(_4ee);if(_4ef&&_4ef.checked){_4ef.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}if(!_4._hasResource["dijit.form.RadioButton"]){_4._hasResource["dijit.form.RadioButton"]=true;_4.provide("dijit.form.RadioButton");}if(!_4._hasResource["dojo.cldr.monetary"]){_4._hasResource["dojo.cldr.monetary"]=true;_4.provide("dojo.cldr.monetary");_4.getObject("cldr.monetary",true,_4);_4.cldr.monetary.getData=function(code){var _4f0={ADP:0,AFN:0,ALL:0,AMD:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,COP:0,CRC:0,DJF:0,ESP:0,GNF:0,GYD:0,HUF:0,IDR:0,IQD:0,IRR:3,ISK:0,ITL:0,JOD:3,JPY:0,KMF:0,KPW:0,KRW:0,KWD:3,LAK:0,LBP:0,LUF:0,LYD:3,MGA:0,MGF:0,MMK:0,MNT:0,MRO:0,MUR:0,OMR:3,PKR:0,PYG:0,RSD:0,RWF:0,SLL:0,SOS:0,STD:0,SYP:0,TMM:0,TND:3,TRL:0,TZS:0,UGX:0,UZS:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,YER:0,ZMK:0,ZWD:0};var _4f1={CHF:5};var _4f2=_4f0[code],_4f3=_4f1[code];if(typeof _4f2=="undefined"){_4f2=2;}if(typeof _4f3=="undefined"){_4f3=0;}return {places:_4f2,round:_4f3};};}if(!_4._hasResource["dojo.currency"]){_4._hasResource["dojo.currency"]=true;_4.provide("dojo.currency");_4.getObject("currency",true,_4);_4.currency._mixInDefaults=function(_4f4){_4f4=_4f4||{};_4f4.type="currency";var _4f5=_4.i18n.getLocalization("dojo.cldr","currency",_4f4.locale)||{};var iso=_4f4.currency;var data=_4.cldr.monetary.getData(iso);_4.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_4f5[iso+"_"+prop];});data.fractional=[true,false];return _4.mixin(data,_4f4);};_4.currency.format=function(_4f6,_4f7){return _4.number.format(_4f6,_4.currency._mixInDefaults(_4f7));};_4.currency.regexp=function(_4f8){return _4.number.regexp(_4.currency._mixInDefaults(_4f8));};_4.currency.parse=function(_4f9,_4fa){return _4.number.parse(_4f9,_4.currency._mixInDefaults(_4fa));};}if(!_4._hasResource["dijit.form.NumberTextBox"]){_4._hasResource["dijit.form.NumberTextBox"]=true;_4.provide("dijit.form.NumberTextBox");_4.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:_4.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:_4.number.format,_setConstraintsAttr:function(_4fb){var _4fc=typeof _4fb.places=="number"?_4fb.places:0;if(_4fc){_4fc++;}if(typeof _4fb.max!="number"){_4fb.max=9*Math.pow(10,15-_4fc);}if(typeof _4fb.min!="number"){_4fb.min=-9*Math.pow(10,15-_4fc);}this.inherited(arguments,[_4fb]);if(this.focusNode&&this.focusNode.value&&!isNaN(this.value)){this.set("value",this.value);}},_onFocus:function(){if(this.disabled){return;}var val=this.get("value");if(typeof val=="number"&&!isNaN(val)){var _4fd=this.format(val,this.constraints);if(_4fd!==undefined){this.textbox.value=_4fd;}}this.inherited(arguments);},format:function(_4fe,_4ff){var _500=String(_4fe);if(typeof _4fe!="number"){return _500;}if(isNaN(_4fe)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_4fe,_4ff))&&_4ff.exponent!==false&&/\de[-+]?\d/i.test(_500)){return _500;}if(this.editOptions&&this._focused){_4ff=_4.mixin({},_4ff,this.editOptions);}return this._formatter(_4fe,_4ff);},_parser:_4.number.parse,parse:function(_501,_502){var v=this._parser(_501,_4.mixin({},_502,(this.editOptions&&this._focused)?this.editOptions:{}));if(this.editOptions&&this._focused&&isNaN(v)){v=this._parser(_501,_502);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_503){return (_503===null||_503===""||_503===undefined)?NaN:this.inherited(arguments);},serialize:function(_504,_505){return (typeof _504!="number"||isNaN(_504))?"":this.inherited(arguments);},_setBlurValue:function(){var val=_4.hitch(_4.mixin({},this,{_focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_506,_507,_508){if(_506!==undefined&&_508===undefined){_508=String(_506);if(typeof _506=="number"){if(isNaN(_506)){_508="";}else{if(("rangeCheck" in this&&this.rangeCheck(_506,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_508)){_508=undefined;}}}else{if(!_506){_508="";_506=NaN;}else{_506=undefined;}}}this.inherited(arguments,[_506,_507,_508]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+_4.number._realNumberRegexp(_4.mixin({},this.constraints))+"$").test(this.textbox.value))){var n=Number(this.textbox.value);return isNaN(n)?undefined:n;}else{return undefined;}}else{return v;}},isValid:function(_509){if(!this._focused||this._isEmpty(this.textbox.value)){return this.inherited(arguments);}else{var v=this.get("value");if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){return true;}else{return this.inherited(arguments);}}else{return false;}}}});_4.declare("dijit.form.NumberTextBox",[_5.form.RangeBoundTextBox,_5.form.NumberTextBoxMixin],{baseClass:"dijitTextBox dijitNumberTextBox"});}if(!_4._hasResource["dijit.form.CurrencyTextBox"]){_4._hasResource["dijit.form.CurrencyTextBox"]=true;_4.provide("dijit.form.CurrencyTextBox");_4.declare("dijit.form.CurrencyTextBox",_5.form.NumberTextBox,{currency:"",baseClass:"dijitTextBox dijitCurrencyTextBox",regExpGen:function(_50a){return "("+(this._focused?this.inherited(arguments,[_4.mixin({},_50a,this.editOptions)])+"|":"")+_4.currency.regexp(_50a)+")";},_formatter:_4.currency.format,_parser:_4.currency.parse,parse:function(_50b,_50c){var v=this.inherited(arguments);if(isNaN(v)&&/\d+/.test(_50b)){v=_4.hitch(_4.mixin({},this,{_parser:_5.form.NumberTextBox.prototype._parser}),"inherited")(arguments);}return v;},_setConstraintsAttr:function(_50d){if(!_50d.currency&&this.currency){_50d.currency=this.currency;}this.inherited(arguments,[_4.currency._mixInDefaults(_4.mixin(_50d,{exponent:false}))]);}});}if(!_4._hasResource["dojo.cldr.supplemental"]){_4._hasResource["dojo.cldr.supplemental"]=true;_4.provide("dojo.cldr.supplemental");_4.getObject("cldr.supplemental",true,_4);_4.cldr.supplemental.getFirstDayOfWeek=function(_50e){var _50f={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};var _510=_4.cldr.supplemental._region(_50e);var dow=_50f[_510];return (dow===undefined)?1:dow;};_4.cldr.supplemental._region=function(_511){_511=_4.i18n.normalizeLocale(_511);var tags=_511.split("-");var _512=tags[1];if(!_512){_512={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"}[tags[0]];}else{if(_512.length==4){_512=tags[2];}}return _512;};_4.cldr.supplemental.getWeekend=function(_513){var _514={"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};var _515={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};var _516=_4.cldr.supplemental._region(_513);var _517=_514[_516];var end=_515[_516];if(_517===undefined){_517=6;}if(end===undefined){end=0;}return {start:_517,end:end};};}if(!_4._hasResource["dojo.date"]){_4._hasResource["dojo.date"]=true;_4.provide("dojo.date");_4.getObject("date",true,_4);_4.date.getDaysInMonth=function(_518){var _519=_518.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_519==1&&_4.date.isLeapYear(_518)){return 29;}return days[_519];};_4.date.isLeapYear=function(_51a){var year=_51a.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};_4.date.getTimezoneName=function(_51b){var str=_51b.toString();var tz="";var _51c;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_51c=str.match(pat))){tz=_51c[1];}else{str=_51b.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_51c=str.match(pat))){tz=_51c[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};_4.date.compare=function(_51d,_51e,_51f){_51d=new Date(+_51d);_51e=new Date(+(_51e||new Date()));if(_51f=="date"){_51d.setHours(0,0,0,0);_51e.setHours(0,0,0,0);}else{if(_51f=="time"){_51d.setFullYear(0,0,0);_51e.setFullYear(0,0,0);}}if(_51d>_51e){return 1;}if(_51d<_51e){return -1;}return 0;};_4.date.add=function(date,_520,_521){var sum=new Date(+date);var _522=false;var _523="Date";switch(_520){case "day":break;case "weekday":var days,_524;var mod=_521%5;if(!mod){days=(_521>0)?5:-5;_524=(_521>0)?((_521-5)/5):((_521+5)/5);}else{days=mod;_524=parseInt(_521/5);}var strt=date.getDay();var adj=0;if(strt==6&&_521>0){adj=1;}else{if(strt==0&&_521<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_521>0)?2:-2;}_521=(7*_524)+days+adj;break;case "year":_523="FullYear";_522=true;break;case "week":_521*=7;break;case "quarter":_521*=3;case "month":_522=true;_523="Month";break;default:_523="UTC"+_520.charAt(0).toUpperCase()+_520.substring(1)+"s";}if(_523){sum["set"+_523](sum["get"+_523]()+_521);}if(_522&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};_4.date.difference=function(_525,_526,_527){_526=_526||new Date();_527=_527||"day";var _528=_526.getFullYear()-_525.getFullYear();var _529=1;switch(_527){case "quarter":var m1=_525.getMonth();var m2=_526.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_528*4);_529=q2-q1;break;case "weekday":var days=Math.round(_4.date.difference(_525,_526,"day"));var _52a=parseInt(_4.date.difference(_525,_526,"week"));var mod=days%7;if(mod==0){days=_52a*5;}else{var adj=0;var aDay=_525.getDay();var bDay=_526.getDay();_52a=parseInt(days/7);mod=days%7;var _52b=new Date(_525);_52b.setDate(_52b.getDate()+(_52a*7));var _52c=_52b.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_52c+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_52c+mod)<0:adj=2;}}}days+=adj;days-=(_52a*2);}_529=days;break;case "year":_529=_528;break;case "month":_529=(_526.getMonth()-_525.getMonth())+(_528*12);break;case "week":_529=parseInt(_4.date.difference(_525,_526,"day")/7);break;case "day":_529/=24;case "hour":_529/=60;case "minute":_529/=60;case "second":_529/=1000;case "millisecond":_529*=_526.getTime()-_525.getTime();}return Math.round(_529);};}if(!_4._hasResource["dojo.date.locale"]){_4._hasResource["dojo.date.locale"]=true;_4.provide("dojo.date.locale");_4.getObject("date.locale",true,_4);(function(){function _52d(_52e,_52f,_530,_531){return _531.replace(/([a-z])\1*/ig,function(_532){var s,pad,c=_532.charAt(0),l=_532.length,_533=["abbr","wide","narrow"];switch(c){case "G":s=_52f[(l<4)?"eraAbbr":"eraNames"][_52e.getFullYear()<0?0:1];break;case "y":s=_52e.getFullYear();switch(l){case 1:break;case 2:if(!_530.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_52e.getMonth()+1)/3);pad=true;break;case "M":var m=_52e.getMonth();if(l<3){s=m+1;pad=true;}else{var _534=["months","format",_533[l-3]].join("-");s=_52f[_534][m];}break;case "w":var _535=0;s=_4.date.locale._getWeekOfYear(_52e,_535);pad=true;break;case "d":s=_52e.getDate();pad=true;break;case "D":s=_4.date.locale._getDayOfYear(_52e);pad=true;break;case "E":var d=_52e.getDay();if(l<3){s=d+1;pad=true;}else{var _536=["days","format",_533[l-3]].join("-");s=_52f[_536][d];}break;case "a":var _537=(_52e.getHours()<12)?"am":"pm";s=_530[_537]||_52f["dayPeriods-format-wide-"+_537];break;case "h":case "H":case "K":case "k":var h=_52e.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_52e.getMinutes();pad=true;break;case "s":s=_52e.getSeconds();pad=true;break;case "S":s=Math.round(_52e.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=_4.date.locale._getZone(_52e,true,_530);if(s){break;}l=4;case "Z":var _538=_4.date.locale._getZone(_52e,false,_530);var tz=[(_538<=0?"+":"-"),_4.string.pad(Math.floor(Math.abs(_538)/60),2),_4.string.pad(Math.abs(_538)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_531);}if(pad){s=_4.string.pad(s,l);}return s;});};_4.date.locale._getZone=function(_539,_53a,_53b){if(_53a){return _4.date.getTimezoneName(_539);}else{return _539.getTimezoneOffset();}};_4.date.locale.format=function(_53c,_53d){_53d=_53d||{};var _53e=_4.i18n.normalizeLocale(_53d.locale),_53f=_53d.formatLength||"short",_540=_4.date.locale._getGregorianBundle(_53e),str=[],_541=_4.hitch(this,_52d,_53c,_540,_53d);if(_53d.selector=="year"){return _542(_540["dateFormatItem-yyyy"]||"yyyy",_541);}var _543;if(_53d.selector!="date"){_543=_53d.timePattern||_540["timeFormat-"+_53f];if(_543){str.push(_542(_543,_541));}}if(_53d.selector!="time"){_543=_53d.datePattern||_540["dateFormat-"+_53f];if(_543){str.push(_542(_543,_541));}}return str.length==1?str[0]:_540["dateTimeFormat-"+_53f].replace(/\{(\d+)\}/g,function(_544,key){return str[key];});};_4.date.locale.regexp=function(_545){return _4.date.locale._parseInfo(_545).regexp;};_4.date.locale._parseInfo=function(_546){_546=_546||{};var _547=_4.i18n.normalizeLocale(_546.locale),_548=_4.date.locale._getGregorianBundle(_547),_549=_546.formatLength||"short",_54a=_546.datePattern||_548["dateFormat-"+_549],_54b=_546.timePattern||_548["timeFormat-"+_549],_54c;if(_546.selector=="date"){_54c=_54a;}else{if(_546.selector=="time"){_54c=_54b;}else{_54c=_548["dateTimeFormat-"+_549].replace(/\{(\d+)\}/g,function(_54d,key){return [_54b,_54a][key];});}}var _54e=[],re=_542(_54c,_4.hitch(this,_54f,_54e,_548,_546));return {regexp:re,tokens:_54e,bundle:_548};};_4.date.locale.parse=function(_550,_551){var _552=/[\u200E\u200F\u202A\u202E]/g,info=_4.date.locale._parseInfo(_551),_553=info.tokens,_554=info.bundle,re=new RegExp("^"+info.regexp.replace(_552,"")+"$",info.strict?"":"i"),_555=re.exec(_550&&_550.replace(_552,""));if(!_555){return null;}var _556=["abbr","wide","narrow"],_557=[1970,0,1,0,0,0,0],amPm="",_558=_4.every(_555,function(v,i){if(!i){return true;}var _559=_553[i-1];var l=_559.length;switch(_559.charAt(0)){case "y":if(l!=2&&_551.strict){_557[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_55a=year.substring(0,2)*100,_55b=Math.min(Number(year.substring(2,4))+20,99),num=(v<_55b)?_55a+v:_55a-100+v;_557[0]=num;}else{if(_551.strict){return false;}_557[0]=v;}}break;case "M":if(l>2){var _55c=_554["months-format-"+_556[l-3]].concat();if(!_551.strict){v=v.replace(".","").toLowerCase();_55c=_4.map(_55c,function(s){return s.replace(".","").toLowerCase();});}v=_4.indexOf(_55c,v);if(v==-1){return false;}}else{v--;}_557[1]=v;break;case "E":case "e":var days=_554["days-format-"+_556[l-3]].concat();if(!_551.strict){v=v.toLowerCase();days=_4.map(days,function(d){return d.toLowerCase();});}v=_4.indexOf(days,v);if(v==-1){return false;}break;case "D":_557[1]=0;case "d":_557[2]=v;break;case "a":var am=_551.am||_554["dayPeriods-format-wide-am"],pm=_551.pm||_554["dayPeriods-format-wide-pm"];if(!_551.strict){var _55d=/\./g;v=v.replace(_55d,"").toLowerCase();am=am.replace(_55d,"").toLowerCase();pm=pm.replace(_55d,"").toLowerCase();}if(_551.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_557[3]=v;break;case "m":_557[4]=v;break;case "s":_557[5]=v;break;case "S":_557[6]=v;}return true;});var _55e=+_557[3];if(amPm==="p"&&_55e<12){_557[3]=_55e+12;}else{if(amPm==="a"&&_55e==12){_557[3]=0;}}var _55f=new Date(_557[0],_557[1],_557[2],_557[3],_557[4],_557[5],_557[6]);if(_551.strict){_55f.setFullYear(_557[0]);}var _560=_553.join(""),_561=_560.indexOf("d")!=-1,_562=_560.indexOf("M")!=-1;if(!_558||(_562&&_55f.getMonth()>_557[1])||(_561&&_55f.getDate()>_557[2])){return null;}if((_562&&_55f.getMonth()<_557[1])||(_561&&_55f.getDate()<_557[2])){_55f=_4.date.add(_55f,"hour",1);}return _55f;};function _542(_563,_564,_565,_566){var _567=function(x){return x;};_564=_564||_567;_565=_565||_567;_566=_566||_567;var _568=_563.match(/(''|[^'])+/g),_569=_563.charAt(0)=="'";_4.forEach(_568,function(_56a,i){if(!_56a){_568[i]="";}else{_568[i]=(_569?_565:_564)(_56a.replace(/''/g,"'"));_569=!_569;}});return _566(_568.join(""));};function _54f(_56b,_56c,_56d,_56e){_56e=_4.regexp.escapeString(_56e);if(!_56d.strict){_56e=_56e.replace(" a"," ?a");}return _56e.replace(/([a-z])\1*/ig,function(_56f){var s,c=_56f.charAt(0),l=_56f.length,p2="",p3="";if(_56d.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":"1[0-2]|"+p2+"[1-9]";break;case "D":s="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p3+"[1-9][0-9]|"+p2+"[1-9]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s="[1-4][0-9]|5[0-3]|"+p2+"[1-9]";break;case "E":s="\\S+";break;case "h":s="1[0-2]|"+p2+"[1-9]";break;case "k":s="1[01]|"+p2+"\\d";break;case "H":s="1\\d|2[0-3]|"+p2+"\\d";break;case "K":s="1\\d|2[0-4]|"+p2+"[1-9]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_56d.am||_56c["dayPeriods-format-wide-am"],pm=_56d.pm||_56c["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_56d.strict){if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_56b){_56b.push(_56f);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _570=[];_4.date.locale.addCustomFormats=function(_571,_572){_570.push({pkg:_571,name:_572});};_4.date.locale._getGregorianBundle=function(_573){var _574={};_4.forEach(_570,function(desc){var _575=_4.i18n.getLocalization(desc.pkg,desc.name,_573);_574=_4.mixin(_574,_575);},this);return _574;};})();_4.date.locale.addCustomFormats("dojo.cldr","gregorian");_4.date.locale.getNames=function(item,type,_576,_577){var _578,_579=_4.date.locale._getGregorianBundle(_577),_57a=[item,_576,type];if(_576=="standAlone"){var key=_57a.join("-");_578=_579[key];if(_578[0]==1){_578=undefined;}}_57a[1]="format";return (_578||_579[_57a.join("-")]).concat();};_4.date.locale.isWeekend=function(_57b,_57c){var _57d=_4.cldr.supplemental.getWeekend(_57c),day=(_57b||new Date()).getDay();if(_57d.end<_57d.start){_57d.end+=7;if(day<_57d.start){day+=7;}}return day>=_57d.start&&day<=_57d.end;};_4.date.locale._getDayOfYear=function(_57e){return _4.date.difference(new Date(_57e.getFullYear(),0,1,_57e.getHours()),_57e)+1;};_4.date.locale._getWeekOfYear=function(_57f,_580){if(arguments.length==1){_580=0;}var _581=new Date(_57f.getFullYear(),0,1).getDay(),adj=(_581-_580+7)%7,week=Math.floor((_4.date.locale._getDayOfYear(_57f)+adj-1)/7);if(_581==_580){week++;}return week;};}if(!_4._hasResource["dijit.Calendar"]){_4._hasResource["dijit.Calendar"]=true;_4.provide("dijit.Calendar");_4.declare("dijit.Calendar",[_5._Widget,_5._Templated,_5._CssStateMixin],{templateString:_4.cache("dijit","templates/Calendar.html","<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\" aria-labelledby=\"${id}_year\">\r\n\t<thead>\r\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\r\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"decrementMonth\">\r\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" role=\"presentation\"/>\r\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' colspan=\"5\">\r\n\t\t\t\t<div dojoType=\"dijit.form.DropDownButton\" dojoAttachPoint=\"monthDropDownButton\"\r\n\t\t\t\t\tid=\"${id}_mddb\" tabIndex=\"-1\">\r\n\t\t\t\t</div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"incrementMonth\">\r\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" role=\"presentation\"/>\r\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\r\n\t\t\t</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut, onmousedown: _onDayMouseDown, onmouseup: _onDayMouseUp\" class=\"dijitReset dijitCalendarBodyContainer\">\r\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\r\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\r\n\t\t</tr>\r\n\t</tbody>\r\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\r\n\t\t<tr>\r\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\r\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\r\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\" id=\"${id}_year\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\r\n\t\t\t\t</h3>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tfoot>\r\n</table>\r\n"),widgetsInTemplate:true,value:new Date(""),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",currentFocus:new Date(),baseClass:"dijitCalendar",cssStateNodes:{"decrementMonth":"dijitCalendarArrow","incrementMonth":"dijitCalendarArrow","previousYearLabelNode":"dijitCalendarPreviousYear","nextYearLabelNode":"dijitCalendarNextYear"},_isValidDate:function(_582){return _582&&!isNaN(_582)&&typeof _582=="object"&&_582.toString()!=this.constructor.prototype.value.toString();},setValue:function(_583){_4.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_583);},_getValueAttr:function(){var _584=new this.dateClassObj(this.value);_584.setHours(0,0,0,0);if(_584.getDate()<this.value.getDate()){_584=this.dateFuncObj.add(_584,"hour",1);}return _584;},_setValueAttr:function(_585,_586){if(_585){_585=new this.dateClassObj(_585);}if(this._isValidDate(_585)){if(!this._isValidDate(this.value)||this.dateFuncObj.compare(_585,this.value)){_585.setHours(1,0,0,0);if(!this.isDisabledDate(_585,this.lang)){this._set("value",_585);this.set("currentFocus",_585);if(_586||typeof _586=="undefined"){this.onChange(this.get("value"));this.onValueSelected(this.get("value"));}}}}else{this._set("value",null);this.set("currentFocus",this.currentFocus);}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(_4.doc.createTextNode(text));},_populateGrid:function(){var _587=new this.dateClassObj(this.currentFocus);_587.setDate(1);var _588=_587.getDay(),_589=this.dateFuncObj.getDaysInMonth(_587),_58a=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_587,"month",-1)),_58b=new this.dateClassObj(),_58c=_4.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_58c>_588){_58c-=7;}_4.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_58d,i){i+=_58c;var date=new this.dateClassObj(_587),_58e,_58f="dijitCalendar",adj=0;if(i<_588){_58e=_58a-_588+i+1;adj=-1;_58f+="Previous";}else{if(i>=(_588+_589)){_58e=i-_588-_589+1;adj=1;_58f+="Next";}else{_58e=i-_588+1;_58f+="Current";}}if(adj){date=this.dateFuncObj.add(date,"month",adj);}date.setDate(_58e);if(!this.dateFuncObj.compare(date,_58b,"date")){_58f="dijitCalendarCurrentDate "+_58f;}if(this._isSelectedDate(date,this.lang)){_58f="dijitCalendarSelectedDate "+_58f;}if(this.isDisabledDate(date,this.lang)){_58f="dijitCalendarDisabledDate "+_58f;}var _590=this.getClassForDate(date,this.lang);if(_590){_58f=_590+" "+_58f;}_58d.className=_58f+"Month dijitCalendarDateTemplate";_58d.dijitDateValue=date.valueOf();_4.attr(_58d,"dijitDateValue",date.valueOf());var _591=_4.query(".dijitCalendarDateLabel",_58d)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();this._setText(_591,text);},this);var _592=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_587);this.monthDropDownButton.dropDown.set("months",_592);this.monthDropDownButton.containerNode.innerHTML=(_4.isIE==6?"":"<div class='dijitSpacer'>"+this.monthDropDownButton.dropDown.domNode.innerHTML+"</div>")+"<div class='dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'>"+_592[_587.getMonth()]+"</div>";var y=_587.getFullYear()-1;var d=new this.dateClassObj();_4.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],this.dateLocaleModule.format(d,{selector:"year",locale:this.lang}));},this);},goToToday:function(){this.set("value",new this.dateClassObj());},constructor:function(args){var _593=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";this.dateClassObj=_4.getObject(_593,false);this.datePackage=args.datePackage||this.datePackage;this.dateFuncObj=_4.getObject(this.datePackage,false);this.dateLocaleModule=_4.getObject(this.datePackage+".locale",false);},postMixInProperties:function(){if(isNaN(this.value)){delete this.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.domNode,false);var _594=_4.hitch(this,function(_595,n){var _596=_4.query(_595,this.domNode)[0];for(var i=0;i<n;i++){_596.parentNode.appendChild(_596.cloneNode(true));}});_594(".dijitCalendarDayLabelTemplate",6);_594(".dijitCalendarDateTemplate",6);_594(".dijitCalendarWeekTemplate",5);var _597=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);var _598=_4.cldr.supplemental.getFirstDayOfWeek(this.lang);_4.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_599,i){this._setText(_599,_597[(i+_598)%7]);},this);var _59a=new this.dateClassObj(this.currentFocus);this.monthDropDownButton.dropDown=new _5.Calendar._MonthDropDown({id:this.id+"_mdd",onChange:_4.hitch(this,"_onMonthSelect")});this.set("currentFocus",_59a,false);var _59b=this;var _59c=function(_59d,_59e,adj){_59b._connects.push(_5.typematic.addMouseListener(_59b[_59d],_59b,function(_59f){if(_59f>=0){_59b._adjustDisplay(_59e,adj);}},0.8,500));};_59c("incrementMonth","month",1);_59c("decrementMonth","month",-1);_59c("nextYearLabelNode","year",1);_59c("previousYearLabelNode","year",-1);},_adjustDisplay:function(part,_5a0){this._setCurrentFocusAttr(this.dateFuncObj.add(this.currentFocus,part,_5a0));},_setCurrentFocusAttr:function(date,_5a1){var _5a2=this.currentFocus,_5a3=_5a2?_4.query("[dijitDateValue="+_5a2.valueOf()+"]",this.domNode)[0]:null;date=new this.dateClassObj(date);date.setHours(1,0,0,0);this._set("currentFocus",date);this._populateGrid();var _5a4=_4.query("[dijitDateValue="+date.valueOf()+"]",this.domNode)[0];_5a4.setAttribute("tabIndex",this.tabIndex);if(this._focused||_5a1){_5a4.focus();}if(_5a3&&_5a3!=_5a4){if(_4.isWebKit){_5a3.setAttribute("tabIndex","-1");}else{_5a3.removeAttribute("tabIndex");}}},focus:function(){this._setCurrentFocusAttr(this.currentFocus,true);},_onMonthSelect:function(_5a5){this.currentFocus=this.dateFuncObj.add(this.currentFocus,"month",_5a5-this.currentFocus.getMonth());this._populateGrid();},_onDayClick:function(evt){_4.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!_4.hasClass(node,"dijitCalendarDisabledDate")){this.set("value",node.dijitDateValue);}},_onDayMouseOver:function(evt){var node=_4.hasClass(evt.target,"dijitCalendarDateLabel")?evt.target.parentNode:evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){_4.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}if(evt.relatedTarget&&evt.relatedTarget.parentNode==this._currentNode){return;}var cls="dijitCalendarHoveredDate";if(_4.hasClass(this._currentNode,"dijitCalendarActiveDate")){cls+=" dijitCalendarActiveDate";}_4.removeClass(this._currentNode,cls);this._currentNode=null;},_onDayMouseDown:function(evt){var node=evt.target.parentNode;if(node&&node.dijitDateValue){_4.addClass(node,"dijitCalendarActiveDate");this._currentNode=node;}},_onDayMouseUp:function(evt){var node=evt.target.parentNode;if(node&&node.dijitDateValue){_4.removeClass(node,"dijitCalendarActiveDate");}},handleKey:function(evt){var dk=_4.keys,_5a6=-1,_5a7,_5a8=this.currentFocus;switch(evt.keyCode){case dk.RIGHT_ARROW:_5a6=1;case dk.LEFT_ARROW:_5a7="day";if(!this.isLeftToRight()){_5a6*=-1;}break;case dk.DOWN_ARROW:_5a6=1;case dk.UP_ARROW:_5a7="week";break;case dk.PAGE_DOWN:_5a6=1;case dk.PAGE_UP:_5a7=evt.ctrlKey||evt.altKey?"year":"month";break;case dk.END:_5a8=this.dateFuncObj.add(_5a8,"month",1);_5a7="day";case dk.HOME:_5a8=new this.dateClassObj(_5a8);_5a8.setDate(1);break;case dk.ENTER:case dk.SPACE:this.set("value",this.currentFocus);break;default:return true;}if(_5a7){_5a8=this.dateFuncObj.add(_5a8,_5a7,_5a6);}this._setCurrentFocusAttr(_5a8);return false;},_onKeyPress:function(evt){if(!this.handleKey(evt)){_4.stopEvent(evt);}},onValueSelected:function(date){},onChange:function(date){},_isSelectedDate:function(_5a9,_5aa){return this._isValidDate(this.value)&&!this.dateFuncObj.compare(_5a9,this.value,"date");},isDisabledDate:function(_5ab,_5ac){},getClassForDate:function(_5ad,_5ae){}});_4.declare("dijit.Calendar._MonthDropDown",[_5._Widget,_5._Templated],{months:[],templateString:"<div class='dijitCalendarMonthMenu dijitMenu' "+"dojoAttachEvent='onclick:_onClick,onmouseover:_onMenuHover,onmouseout:_onMenuHover'></div>",_setMonthsAttr:function(_5af){this.domNode.innerHTML=_4.map(_5af,function(_5b0,idx){return _5b0?"<div class='dijitCalendarMonthLabel' month='"+idx+"'>"+_5b0+"</div>":"";}).join("");},_onClick:function(evt){this.onChange(_4.attr(evt.target,"month"));},onChange:function(_5b1){},_onMenuHover:function(evt){_4.toggleClass(evt.target,"dijitCalendarMonthLabelHover",evt.type=="mouseover");}});}if(!_4._hasResource["dijit.form._DateTimeTextBox"]){_4._hasResource["dijit.form._DateTimeTextBox"]=true;_4.provide("dijit.form._DateTimeTextBox");new Date("X");_4.declare("dijit.form._DateTimeTextBox",[_5.form.RangeBoundTextBox,_5._HasDropDown],{templateString:_4.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\trole=\"combobox\"\r\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\r\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\r\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t\t\t${_buttonInputDisabled}\r\n\t/></div\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\r\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\r\n\t/></div\r\n></div>\r\n"),hasDownArrow:true,openOnClick:true,regExpGen:_4.date.locale.regexp,datePackage:"dojo.date",compare:function(val1,val2){var _5b2=this._isInvalidDate(val1);var _5b3=this._isInvalidDate(val2);return _5b2?(_5b3?0:-1):(_5b3?1:_4.date.compare(val1,val2,this._selector));},forceWidth:true,format:function(_5b4,_5b5){if(!_5b4){return "";}return this.dateLocaleModule.format(_5b4,_5b5);},"parse":function(_5b6,_5b7){return this.dateLocaleModule.parse(_5b6,_5b7)||(this._isEmpty(_5b6)?null:undefined);},serialize:function(val,_5b8){if(val.toGregorian){val=val.toGregorian();}return _4.date.stamp.toISOString(val,_5b8);},dropDownDefaultValue:new Date(),value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){var _5b9=args.datePackage?args.datePackage+".Date":"Date";this.dateClassObj=_4.getObject(_5b9,false);this.value=new this.dateClassObj("");this.datePackage=args.datePackage||this.datePackage;this.dateLocaleModule=_4.getObject(this.datePackage+".locale",false);this.regExpGen=this.dateLocaleModule.regexp;this._invalidDate=_5.form._DateTimeTextBox.prototype.value.toString();},buildRendering:function(){this.inherited(arguments);if(!this.hasDownArrow){this._buttonNode.style.display="none";}if(this.openOnClick||!this.hasDownArrow){this._buttonNode=this.domNode;this.baseClass+=" dijitComboBoxOpenOnClick";}},_setConstraintsAttr:function(_5ba){_5ba.selector=this._selector;_5ba.fullYear=true;var _5bb=_4.date.stamp.fromISOString;if(typeof _5ba.min=="string"){_5ba.min=_5bb(_5ba.min);}if(typeof _5ba.max=="string"){_5ba.max=_5bb(_5ba.max);}this.inherited(arguments);},_isInvalidDate:function(_5bc){return !_5bc||isNaN(_5bc)||typeof _5bc!="object"||_5bc.toString()==this._invalidDate;},_setValueAttr:function(_5bd,_5be,_5bf){if(_5bd!==undefined){if(typeof _5bd=="string"){_5bd=_4.date.stamp.fromISOString(_5bd);}if(this._isInvalidDate(_5bd)){_5bd=null;}if(_5bd instanceof Date&&!(this.dateClassObj instanceof Date)){_5bd=new this.dateClassObj(_5bd);}}this.inherited(arguments);if(this.dropDown){this.dropDown.set("value",_5bd,false);}},_set:function(attr,_5c0){if(attr=="value"&&this.value instanceof Date&&this.compare(_5c0,this.value)==0){return;}this.inherited(arguments);},_setDropDownDefaultValueAttr:function(val){if(this._isInvalidDate(val)){val=new this.dateClassObj();}this.dropDownDefaultValue=val;},openDropDown:function(_5c1){if(this.dropDown){this.dropDown.destroy();}var _5c2=_4.getObject(this.popupClass,false),_5c3=this,_5c4=this.get("value");this.dropDown=new _5c2({onChange:function(_5c5){_5.form._DateTimeTextBox.superclass._setValueAttr.call(_5c3,_5c5,true);},id:this.id+"_popup",dir:_5c3.dir,lang:_5c3.lang,value:_5c4,currentFocus:!this._isInvalidDate(_5c4)?_5c4:this.dropDownDefaultValue,constraints:_5c3.constraints,filterString:_5c3.filterString,datePackage:_5c3.datePackage,isDisabledDate:function(date){return !_5c3.rangeCheck(date,_5c3.constraints);}});this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_5c6,_5c7){this._setValueAttr(this.parse(_5c6,this.constraints),_5c7,_5c6);}});}if(!_4._hasResource["dijit.form.DateTextBox"]){_4._hasResource["dijit.form.DateTextBox"]=true;_4.provide("dijit.form.DateTextBox");_4.declare("dijit.form.DateTextBox",_5.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitComboBox dijitDateTextBox",popupClass:"dijit.Calendar",_selector:"date",value:new Date("")});}if(!_4._hasResource["dijit.form._Spinner"]){_4._hasResource["dijit.form._Spinner"]=true;_4.provide("dijit.form._Spinner");_4.declare("dijit.form._Spinner",_5.form.RangeBoundTextBox,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:_4.cache("dijit.form","templates/Spinner.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\" role=\"presentation\"\r\n\t><div class=\"dijitReset dijitButtonNode dijitSpinnerButtonContainer\"\r\n\t\t><input class=\"dijitReset dijitInputField dijitSpinnerButtonInner\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t\t/><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\r\n\t\t\tdojoAttachPoint=\"upArrowNode\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\"\r\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9650;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t\t\t\t\t${_buttonInputDisabled}\r\n\t\t\t/></div\r\n\t\t></div\r\n\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\r\n\t\t\tdojoAttachPoint=\"downArrowNode\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\"\r\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9660;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t\t\t\t\t${_buttonInputDisabled}\r\n\t\t\t/></div\r\n\t\t></div\r\n\t></div\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class='dijitReset dijitInputInner' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n\t\t\trole=\"spinbutton\" autocomplete=\"off\" ${!nameAttrSetting}\r\n\t/></div\r\n></div>\r\n"),baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{"upArrowNode":"dijitUpArrowButton","downArrowNode":"dijitDownArrowButton"},adjust:function(val,_5c8){return val;},_arrowPressed:function(_5c9,_5ca,_5cb){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_5ca*_5cb),false);_5.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_5cc,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=_4.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_5cc==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){_4.stopEvent(evt);var _5cd=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_5cd!==0){var node=this[(_5cd>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_5cd,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(_4.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!_4.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(_5.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:_4.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(_5.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:_4.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(_5.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:_4.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(_5.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:_4.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));}});}if(!_4._hasResource["dijit.form.NumberSpinner"]){_4._hasResource["dijit.form.NumberSpinner"]=true;_4.provide("dijit.form.NumberSpinner");_4.declare("dijit.form.NumberSpinner",[_5.form._Spinner,_5.form.NumberTextBoxMixin],{adjust:function(val,_5ce){var tc=this.constraints,v=isNaN(val),_5cf=!isNaN(tc.max),_5d0=!isNaN(tc.min);if(v&&_5ce!=0){val=(_5ce>0)?_5d0?tc.min:_5cf?tc.max:0:_5cf?this.constraints.max:_5d0?tc.min:0;}var _5d1=val+_5ce;if(v||isNaN(_5d1)){return val;}if(_5cf&&(_5d1>tc.max)){_5d1=tc.max;}if(_5d0&&(_5d1<tc.min)){_5d1=tc.min;}return _5d1;},_onKeyPress:function(e){if((e.charOrCode==_4.keys.HOME||e.charOrCode==_4.keys.END)&&!(e.ctrlKey||e.altKey||e.metaKey)&&typeof this.get("value")!="undefined"){var _5d2=this.constraints[(e.charOrCode==_4.keys.HOME?"min":"max")];if(typeof _5d2=="number"){this._setValueAttr(_5d2,false);}_4.stopEvent(e);}}});}if(!_4._hasResource["dijit.form.MultiSelect"]){_4._hasResource["dijit.form.MultiSelect"]=true;_4.provide("dijit.form.MultiSelect");_4.declare("dijit.form.MultiSelect",_5.form._FormValueWidget,{size:7,templateString:"<select multiple='true' ${!nameAttrSetting} dojoAttachPoint='containerNode,focusNode' dojoAttachEvent='onchange: _onChange'></select>",attributeMap:_4.delegate(_5.form._FormWidget.prototype.attributeMap,{size:"focusNode"}),reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},addSelected:function(_5d3){_5d3.getSelected().forEach(function(n){this.containerNode.appendChild(n);this.domNode.scrollTop=this.domNode.offsetHeight;var _5d4=_5d3.domNode.scrollTop;_5d3.domNode.scrollTop=0;_5d3.domNode.scrollTop=_5d4;},this);},getSelected:function(){return _4.query("option",this.containerNode).filter(function(n){return n.selected;});},_getValueAttr:function(){return this.getSelected().map(function(n){return n.value;});},multiple:true,_setValueAttr:function(_5d5){_4.query("option",this.containerNode).forEach(function(n){n.selected=(_4.indexOf(_5d5,n.value)!=-1);});},invertSelection:function(_5d6){_4.query("option",this.containerNode).forEach(function(n){n.selected=!n.selected;});this._handleOnChange(this.get("value"),_5d6==true);},_onChange:function(e){this._handleOnChange(this.get("value"),true);},resize:function(size){if(size){_4.marginBox(this.domNode,size);}},postCreate:function(){this._onChange();}});}if(!_4._hasResource["dijit.form.HorizontalSlider"]){_4._hasResource["dijit.form.HorizontalSlider"]=true;_4.provide("dijit.form.HorizontalSlider");_4.declare("dijit.form.HorizontalSlider",[_5.form._FormValueWidget,_5._Container],{templateString:_4.cache("dijit.form","templates/HorizontalSlider.html","<table class=\"dijit dijitReset dijitSlider dijitSliderH\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress,onkeyup:_onKeyUp\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"topDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconH\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\r\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" role=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div role=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\"\r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" role=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div role=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\r\n\t\t\t></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconH\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n></table>\r\n"),value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:_5.defaultDuration,widgetsInTemplate:true,attributeMap:_4.delegate(_5.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",cssStateNodes:{incrementButton:"dijitSliderIncrementButton",decrementButton:"dijitSliderDecrementButton",focusNode:"dijitSliderThumb"},_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyUp:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}this._setValueAttr(this.value,true);},_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}switch(e.charOrCode){case _4.keys.HOME:this._setValueAttr(this.minimum,false);break;case _4.keys.END:this._setValueAttr(this.maximum,false);break;case ((this._descending||this.isLeftToRight())?_4.keys.RIGHT_ARROW:_4.keys.LEFT_ARROW):case (this._descending===false?_4.keys.DOWN_ARROW:_4.keys.UP_ARROW):case (this._descending===false?_4.keys.PAGE_DOWN:_4.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?_4.keys.LEFT_ARROW:_4.keys.RIGHT_ARROW):case (this._descending===false?_4.keys.UP_ARROW:_4.keys.DOWN_ARROW):case (this._descending===false?_4.keys.PAGE_UP:_4.keys.PAGE_DOWN):this.decrement(e);break;default:return;}_4.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!_4.isIE){_5.focus(this.sliderHandle);}_4.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}_5.focus(this.sliderHandle);_4.stopEvent(e);var _5d7=_4.position(this.sliderBarContainer,true);var _5d8=e[this._mousePixelCoord]-_5d7[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_5d7[this._pixelCount]-_5d8):_5d8,_5d7[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_5d9,_5da,_5db){if(this.disabled||this.readOnly){return;}_5d9=_5d9<0?0:_5da<_5d9?_5da:_5d9;var _5dc=this.discreteValues;if(_5dc<=1||_5dc==Infinity){_5dc=_5da;}_5dc--;var _5dd=_5da/_5dc;var _5de=Math.round(_5d9/_5dd);this._setValueAttr((this.maximum-this.minimum)*_5de/_5dc+this.minimum,_5db);},_setValueAttr:function(_5df,_5e0){this._set("value",_5df);this.valueNode.value=_5df;_5.setWaiState(this.focusNode,"valuenow",_5df);this.inherited(arguments);var _5e1=(_5df-this.minimum)/(this.maximum-this.minimum);var _5e2=(this._descending===false)?this.remainingBar:this.progressBar;var _5e3=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_5e0&&this.slideDuration>0&&_5e2.style[this._progressPixelSize]){var _5e4=this;var _5e5={};var _5e6=parseFloat(_5e2.style[this._progressPixelSize]);var _5e7=this.slideDuration*(_5e1-_5e6/100);if(_5e7==0){return;}if(_5e7<0){_5e7=0-_5e7;}_5e5[this._progressPixelSize]={start:_5e6,end:_5e1*100,units:"%"};this._inProgressAnim=_4.animateProperty({node:_5e2,duration:_5e7,onAnimate:function(v){_5e3.style[_5e4._progressPixelSize]=(100-parseFloat(v[_5e4._progressPixelSize]))+"%";},onEnd:function(){delete _5e4._inProgressAnim;},properties:_5e5});this._inProgressAnim.play();}else{_5e2.style[this._progressPixelSize]=(_5e1*100)+"%";_5e3.style[this._progressPixelSize]=((1-_5e1)*100)+"%";}},_bumpValue:function(_5e8,_5e9){if(this.disabled||this.readOnly){return;}var s=_4.getComputedStyle(this.sliderBarContainer);var c=_4._getContentBox(this.sliderBarContainer,s);var _5ea=this.discreteValues;if(_5ea<=1||_5ea==Infinity){_5ea=c[this._pixelCount];}_5ea--;var _5eb=(this.value-this.minimum)*_5ea/(this.maximum-this.minimum)+_5e8;if(_5eb<0){_5eb=0;}if(_5eb>_5ea){_5eb=_5ea;}_5eb=_5eb*(this.maximum-this.minimum)/_5ea+this.minimum;this._setValueAttr(_5eb,_5e9);},_onClkBumper:function(val){if(this.disabled||this.readOnly||!this.clickSelect){return;}this._setValueAttr(val,true);},_onClkIncBumper:function(){this._onClkBumper(this._descending===false?this.minimum:this.maximum);},_onClkDecBumper:function(){this._onClkBumper(this._descending===false?this.maximum:this.minimum);},decrement:function(e){this._bumpValue(e.charOrCode==_4.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==_4.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){_4.stopEvent(evt);var _5ec=!_4.isMozilla;var _5ed=evt[(_5ec?"wheelDelta":"detail")]*(_5ec?1:-1);this._bumpValue(_5ed<0?-1:1,true);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_5ee){if(this[_5ee.container]!=this.containerNode){this[_5ee.container].appendChild(_5ee.domNode);}},this);this.inherited(arguments);},_typematicCallback:function(_5ef,_5f0,e){if(_5ef==-1){this._setValueAttr(this.value,true);}else{this[(_5f0==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);}},buildRendering:function(){this.inherited(arguments);if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";}var _5f1=_4.query("label[for=\""+this.id+"\"]");if(_5f1.length){_5f1[0].id=(this.id+"_label");_5.setWaiState(this.focusNode,"labelledby",_5f1[0].id);}_5.setWaiState(this.focusNode,"valuemin",this.minimum);_5.setWaiState(this.focusNode,"valuemax",this.maximum);},postCreate:function(){this.inherited(arguments);if(this.showButtons){this._connects.push(_5.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));this._connects.push(_5.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));}this.connect(this.domNode,!_4.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _5f2=_4.declare(_5.form._SliderMover,{widget:this});this._movable=new _4.dnd.Moveable(this.sliderHandle,{mover:_5f2});this._layoutHackIE7();},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this._supportingWidgets=_5.findWidgets(this.domNode);this.inherited(arguments);}});_4.declare("dijit.form._SliderMover",_4.dnd.Mover,{onMouseMove:function(e){var _5f3=this.widget;var _5f4=_5f3._abspos;if(!_5f4){_5f4=_5f3._abspos=_4.position(_5f3.sliderBarContainer,true);_5f3._setPixelValue_=_4.hitch(_5f3,"_setPixelValue");_5f3._isReversed_=_5f3._isReversed();}var _5f5=e.touches?e.touches[0]:e,_5f6=_5f5[_5f3._mousePixelCoord]-_5f4[_5f3._startingPixelCoord];_5f3._setPixelValue_(_5f3._isReversed_?(_5f4[_5f3._pixelCount]-_5f6):_5f6,_5f4[_5f3._pixelCount],false);},destroy:function(e){_4.dnd.Mover.prototype.destroy.apply(this,arguments);var _5f7=this.widget;_5f7._abspos=null;_5f7._setValueAttr(_5f7.value,true);}});}if(!_4._hasResource["dijit.form.VerticalSlider"]){_4._hasResource["dijit.form.VerticalSlider"]=true;_4.provide("dijit.form.VerticalSlider");_4.declare("dijit.form.VerticalSlider",_5.form.HorizontalSlider,{templateString:_4.cache("dijit.form","templates/VerticalSlider.html","<table class=\"dijit dijitReset dijitSlider dijitSliderV\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress,onkeyup:_onKeyUp\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconV\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationL dijitSliderDecorationV\"></td\r\n\t\t><td class=\"dijitReset dijitSliderDecorationC\" style=\"height:100%;\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\r\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" role=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div role=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"><!--#5629--></div\r\n\t\t\t\t><div role=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableV\" style=\"vertical-align:top;\"\r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" role=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t></center\r\n\t\t></td\r\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationR dijitSliderDecorationV\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconV\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n></table>\r\n"),_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,_isReversed:function(){return this._descending;}});}if(!_4._hasResource["dijit.form.HorizontalRule"]){_4._hasResource["dijit.form.HorizontalRule"]=true;_4.provide("dijit.form.HorizontalRule");_4.declare("dijit.form.HorizontalRule",[_5._Widget,_5._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,buildRendering:function(){this.inherited(arguments);var _5f8;if(this.count==1){_5f8=this._genHTML(50,0);}else{var i;var _5f9=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_5f8=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_5f8+=this._genHTML(_5f9*i,i);}_5f8+=this._genHTML(100,this.count-1);}else{_5f8=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_5f8+=this._genHTML(100-_5f9*i,i);}_5f8+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_5f8;}});}if(!_4._hasResource["dijit.form.VerticalRule"]){_4._hasResource["dijit.form.VerticalRule"]=true;_4.provide("dijit.form.VerticalRule");_4.declare("dijit.form.VerticalRule",_5.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});}if(!_4._hasResource["dijit.form.HorizontalRuleLabels"]){_4._hasResource["dijit.form.HorizontalRuleLabels"]=true;_4.provide("dijit.form.HorizontalRuleLabels");_4.declare("dijit.form.HorizontalRuleLabels",_5.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><div class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</div></div>",_calcPosition:function(pos){return pos;},_genHTML:function(pos,ndx){return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;},getLabels:function(){var _5fa=this.labels;if(!_5fa.length){_5fa=_4.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_5fa.length&&this.count>1){var _5fb=this.minimum;var inc=(this.maximum-_5fb)/(this.count-1);for(var i=0;i<this.count;i++){_5fa.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":_4.number.format(_5fb,this.constraints));_5fb+=inc;}}return _5fa;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});}if(!_4._hasResource["dijit.form.VerticalRuleLabels"]){_4._hasResource["dijit.form.VerticalRuleLabels"]=true;_4.provide("dijit.form.VerticalRuleLabels");_4.declare("dijit.form.VerticalRuleLabels",_5.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){return 100-pos;},_isHorizontal:false});}if(!_4._hasResource["dijit.form.SimpleTextarea"]){_4._hasResource["dijit.form.SimpleTextarea"]=true;_4.provide("dijit.form.SimpleTextarea");_4.declare("dijit.form.SimpleTextarea",_5.form.TextBox,{baseClass:"dijitTextBox dijitTextArea",attributeMap:_4.delegate(_5.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);if(_4.isIE&&this.cols){_4.addClass(this.textbox,"dijitTextAreaCols");}},filter:function(_5fc){if(_5fc){_5fc=_5fc.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _5fd=parseInt(this.maxLength);var _5fe=this.textbox.value.replace(/\r/g,"");var _5ff=_5fe.length-_5fd;if(_5ff>0){if(e){_4.stopEvent(e);}var _600=this.textbox;if(_600.selectionStart){var pos=_600.selectionStart;var cr=0;if(_4.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_5fe.substring(0,pos-_5ff-cr)+_5fe.substring(pos-cr);_600.setSelectionRange(pos-_5ff,pos-_5ff);}else{if(_4.doc.selection){_600.focus();var _601=_4.doc.selection.createRange();_601.moveStart("character",-_5ff);_601.text="";_601.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!_4._hasResource["dijit.form.Textarea"]){_4._hasResource["dijit.form.Textarea"]=true;_4.provide("dijit.form.Textarea");_4.declare("dijit.form.Textarea",_5.form.SimpleTextarea,{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",_previousNewlines:0,_strictMode:(_4.doc.compatMode!="BackCompat"),_getHeight:function(_602){var newH=_602.scrollHeight;if(_4.isIE){newH+=_602.offsetHeight-_602.clientHeight-((_4.isIE<8&&this._strictMode)?_4._getPadBorderExtents(_602).h:0);}else{if(_4.isMoz){newH+=_602.offsetHeight-_602.clientHeight;}else{if(_4.isWebKit){newH+=_4._getBorderExtents(_602).h;}else{newH+=_4._getPadBorderExtents(_602).h;}}}return newH;},_estimateHeight:function(_603){_603.style.maxHeight="";_603.style.height="auto";_603.rows=(_603.value.match(/\n/g)||[]).length+1;},_needsHelpShrinking:_4.isMoz||_4.isWebKit,_onInput:function(){this.inherited(arguments);if(this._busyResizing){return;}this._busyResizing=true;var _604=this.textbox;if(_604.scrollHeight&&_604.offsetHeight&&_604.clientHeight){var newH=this._getHeight(_604)+"px";if(_604.style.height!=newH){_604.style.maxHeight=_604.style.height=newH;}if(this._needsHelpShrinking){if(this._setTimeoutHandle){clearTimeout(this._setTimeoutHandle);}this._setTimeoutHandle=setTimeout(_4.hitch(this,"_shrink"),0);}}else{this._estimateHeight(_604);}this._busyResizing=false;},_busyResizing:false,_shrink:function(){this._setTimeoutHandle=null;if(this._needsHelpShrinking&&!this._busyResizing){this._busyResizing=true;var _605=this.textbox;var _606=false;if(_605.value==""){_605.value=" ";_606=true;}var _607=_605.scrollHeight;if(!_607){this._estimateHeight(_605);}else{var _608=_605.style.paddingBottom;var _609=_4._getPadExtents(_605);_609=_609.h-_609.t;_605.style.paddingBottom=_609+1+"px";var newH=this._getHeight(_605)-1+"px";if(_605.style.maxHeight!=newH){_605.style.paddingBottom=_609+_607+"px";_605.scrollTop=0;_605.style.maxHeight=this._getHeight(_605)-_607+"px";}_605.style.paddingBottom=_608;}if(_606){_605.value="";}this._busyResizing=false;}},resize:function(){this._onInput();},_setValueAttr:function(){this.inherited(arguments);this.resize();},buildRendering:function(){this.inherited(arguments);_4.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});},postCreate:function(){this.inherited(arguments);this.connect(this.textbox,"onscroll","_onInput");this.connect(this.textbox,"onresize","_onInput");this.connect(this.textbox,"onfocus","_onInput");this._setTimeoutHandle=setTimeout(_4.hitch(this,"resize"),0);},uninitialize:function(){if(this._setTimeoutHandle){clearTimeout(this._setTimeoutHandle);}this.inherited(arguments);}});}if(!_4._hasResource["dijit.layout.StackController"]){_4._hasResource["dijit.layout.StackController"]=true;_4.provide("dijit.layout.StackController");_4.declare("dijit.layout.StackController",[_5._Widget,_5._Templated,_5._Container],{templateString:"<span role='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",constructor:function(){this.pane2button={};this.pane2connects={};this.pane2watches={};},buildRendering:function(){this.inherited(arguments);_5.setWaiRole(this.domNode,"tablist");},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(info){_4.forEach(info.children,this.onAddChild,this);if(info.selected){this.onSelectChild(info.selected);}},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(_5.byId(pane));}this.inherited(arguments);},onAddChild:function(page,_60a){var cls=_4.getObject(this.buttonWidget);var _60b=new cls({id:this.id+"_"+page.id,label:page.title,dir:page.dir,lang:page.lang,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip});_5.setWaiState(_60b.focusNode,"selected","false");var _60c=["title","showTitle","iconClass","closable","tooltip"],_60d=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=_4.map(_60c,function(_60e,idx){return page.watch(_60e,function(name,_60f,_610){_60b.set(_60d[idx],_610);});});this.pane2connects[page.id]=[this.connect(_60b,"onClick",_4.hitch(this,"onButtonClick",page)),this.connect(_60b,"onClickCloseButton",_4.hitch(this,"onCloseButtonClick",page))];this.addChild(_60b,_60a);this.pane2button[page.id]=_60b;page.controlButton=_60b;if(!this._currentChild){_60b.focusNode.setAttribute("tabIndex","0");_5.setWaiState(_60b.focusNode,"selected","true");this._currentChild=page;}if(!this.isLeftToRight()&&_4.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}_4.forEach(this.pane2connects[page.id],_4.hitch(this,"disconnect"));delete this.pane2connects[page.id];_4.forEach(this.pane2watches[page.id],function(w){w.unwatch();});delete this.pane2watches[page.id];var _611=this.pane2button[page.id];if(_611){this.removeChild(_611);delete this.pane2button[page.id];_611.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _612=this.pane2button[this._currentChild.id];_612.set("checked",false);_5.setWaiState(_612.focusNode,"selected","false");_612.focusNode.setAttribute("tabIndex","-1");}var _613=this.pane2button[page.id];_613.set("checked",true);_5.setWaiState(_613.focusNode,"selected","true");this._currentChild=page;_613.focusNode.setAttribute("tabIndex","0");var _614=_5.byId(this.containerId);_5.setWaiState(_614.containerNode,"labelledby",_613.id);},onButtonClick:function(page){var _615=_5.byId(this.containerId);_615.selectChild(page);},onCloseButtonClick:function(page){var _616=_5.byId(this.containerId);_616.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){_5.focus(b.focusNode||b.domNode);}}},adjacent:function(_617){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_617=!_617;}var _618=this.getChildren();var _619=_4.indexOf(_618,this.pane2button[this._currentChild.id]);var _61a=_617?1:_618.length-1;return _618[(_619+_61a)%_618.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _61b=null;if(e.ctrlKey||!e._djpage){var k=_4.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_61b=false;}break;case k.PAGE_UP:if(e.ctrlKey){_61b=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_61b=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_61b=true;}break;case k.HOME:case k.END:var _61c=this.getChildren();if(_61c&&_61c.length){_61c[e.charOrCode==k.HOME?0:_61c.length-1].onClick();}_4.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}_4.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();_4.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}_4.stopEvent(e);}}}}if(_61b!==null){this.adjacent(_61b).onClick();_4.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});_4.declare("dijit.layout._StackButton",_5.form.ToggleButton,{tabIndex:"-1",buildRendering:function(evt){this.inherited(arguments);_5.setWaiRole((this.focusNode||this.domNode),"tab");},onClick:function(evt){_5.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!_4._hasResource["dijit.layout.StackContainer"]){_4._hasResource["dijit.layout.StackContainer"]=true;_4.provide("dijit.layout.StackContainer");_4.declare("dijit.layout.StackContainer",_5.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);_4.addClass(this.domNode,"dijitLayoutContainer");_5.setWaiRole(this.containerNode,"tabpanel");},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _61d=this.getChildren();_4.forEach(_61d,this._setupChild,this);if(this.persist){this.selectedChildWidget=_5.byId(_4.cookie(this.id+"_selectedChild"));}else{_4.some(_61d,function(_61e){if(_61e.selected){this.selectedChildWidget=_61e;}return _61e.selected;},this);}var _61f=this.selectedChildWidget;if(!_61f&&_61d[0]){_61f=this.selectedChildWidget=_61d[0];_61f.selected=true;}_4.publish(this.id+"-startup",[{children:_61d,selected:_61f}]);this.inherited(arguments);},resize:function(){var _620=this.selectedChildWidget;if(_620&&!this._hasBeenShown){this._hasBeenShown=true;this._showChild(_620);}this.inherited(arguments);},_setupChild:function(_621){this.inherited(arguments);_4.replaceClass(_621.domNode,"dijitHidden","dijitVisible");_621.domNode.title="";},addChild:function(_622,_623){this.inherited(arguments);if(this._started){_4.publish(this.id+"-addChild",[_622,_623]);this.layout();if(!this.selectedChildWidget){this.selectChild(_622);}}},removeChild:function(page){this.inherited(arguments);if(this._started){_4.publish(this.id+"-removeChild",[page]);}if(this._beingDestroyed){return;}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _624=this.getChildren();if(_624.length){this.selectChild(_624[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_625){page=_5.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_625);this._set("selectedChildWidget",page);_4.publish(this.id+"-selectChild",[page]);if(this.persist){_4.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}return d;},_transition:function(_626,_627,_628){if(_627){this._hideChild(_627);}var d=this._showChild(_626);if(_626.resize){if(this.doLayout){_626.resize(this._containerContentBox||this._contentBox);}else{_626.resize();}}return d;},_adjacent:function(_629){var _62a=this.getChildren();var _62b=_4.indexOf(_62a,this.selectedChildWidget);_62b+=_629?1:_62a.length-1;return _62a[_62b%_62a.length];},forward:function(){return this.selectChild(this._adjacent(true),true);},back:function(){return this.selectChild(this._adjacent(false),true);},_onKeyPress:function(e){_4.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox||this._contentBox);}},_showChild:function(page){var _62c=this.getChildren();page.isFirstChild=(page==_62c[0]);page.isLastChild=(page==_62c[_62c.length-1]);page._set("selected",true);_4.replaceClass(page.domNode,"dijitVisible","dijitHidden");return page._onShow()||true;},_hideChild:function(page){page._set("selected",false);_4.replaceClass(page.domNode,"dijitHidden","dijitVisible");page.onHide();},closeChild:function(page){var _62d=page.onClose(this,page);if(_62d){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_62e){_4.forEach(this.getChildren(),function(_62f){this.removeChild(_62f);_62f.destroyRecursive(_62e);},this);}});_4.extend(_5._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});}if(!_4._hasResource["dijit.layout.AccordionPane"]){_4._hasResource["dijit.layout.AccordionPane"]=true;_4.provide("dijit.layout.AccordionPane");_4.declare("dijit.layout.AccordionPane",_5.layout.ContentPane,{constructor:function(){_4.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0");},onSelected:function(){}});}if(!_4._hasResource["dijit.layout.AccordionContainer"]){_4._hasResource["dijit.layout.AccordionContainer"]=true;_4.provide("dijit.layout.AccordionContainer");_4.declare("dijit.layout.AccordionContainer",_5.layout.StackContainer,{duration:_5.defaultDuration,buttonWidget:"dijit.layout._AccordionButton",baseClass:"dijitAccordionContainer",buildRendering:function(){this.inherited(arguments);this.domNode.style.overflow="hidden";_5.setWaiRole(this.domNode,"tablist");},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.selectedChildWidget){var _630=this.selectedChildWidget.containerNode.style;_630.display="";_630.overflow="auto";this.selectedChildWidget._wrapperWidget.set("selected",true);}},layout:function(){var _631=this.selectedChildWidget;if(!_631){return;}var _632=_631._wrapperWidget.domNode,_633=_4._getMarginExtents(_632),_634=_4._getPadBorderExtents(_632),_635=_631._wrapperWidget.containerNode,_636=_4._getMarginExtents(_635),_637=_4._getPadBorderExtents(_635),_638=this._contentBox;var _639=0;_4.forEach(this.getChildren(),function(_63a){if(_63a!=_631){_639+=_4._getMarginSize(_63a._wrapperWidget.domNode).h;}});this._verticalSpace=_638.h-_639-_633.h-_634.h-_636.h-_637.h-_631._buttonWidget.getTitleHeight();this._containerContentBox={h:this._verticalSpace,w:this._contentBox.w-_633.w-_634.w-_636.w-_637.w};if(_631){_631.resize(this._containerContentBox);}},_setupChild:function(_63b){_63b._wrapperWidget=new _5.layout._AccordionInnerContainer({contentWidget:_63b,buttonWidget:this.buttonWidget,id:_63b.id+"_wrapper",dir:_63b.dir,lang:_63b.lang,parent:this});this.inherited(arguments);},addChild:function(_63c,_63d){if(this._started){_4.place(_63c.domNode,this.containerNode,_63d);if(!_63c._started){_63c.startup();}this._setupChild(_63c);_4.publish(this.id+"-addChild",[_63c,_63d]);this.layout();if(!this.selectedChildWidget){this.selectChild(_63c);}}else{this.inherited(arguments);}},removeChild:function(_63e){if(_63e._wrapperWidget){_4.place(_63e.domNode,_63e._wrapperWidget.domNode,"after");_63e._wrapperWidget.destroy();delete _63e._wrapperWidget;}_4.removeClass(_63e.domNode,"dijitHidden");this.inherited(arguments);},getChildren:function(){return _4.map(this.inherited(arguments),function(_63f){return _63f.declaredClass=="dijit.layout._AccordionInnerContainer"?_63f.contentWidget:_63f;},this);},destroy:function(){if(this._animation){this._animation.stop();}_4.forEach(this.getChildren(),function(_640){if(_640._wrapperWidget){_640._wrapperWidget.destroy();}else{_640.destroyRecursive();}});this.inherited(arguments);},_showChild:function(_641){_641._wrapperWidget.containerNode.style.display="block";return this.inherited(arguments);},_hideChild:function(_642){_642._wrapperWidget.containerNode.style.display="none";this.inherited(arguments);},_transition:function(_643,_644,_645){if(_4.isIE<8){_645=false;}if(this._animation){this._animation.stop(true);delete this._animation;}var self=this;if(_643){_643._wrapperWidget.set("selected",true);var d=this._showChild(_643);if(this.doLayout&&_643.resize){_643.resize(this._containerContentBox);}}if(_644){_644._wrapperWidget.set("selected",false);if(!_645){this._hideChild(_644);}}if(_645){var _646=_643._wrapperWidget.containerNode,_647=_644._wrapperWidget.containerNode;var _648=_643._wrapperWidget.containerNode,_649=_4._getMarginExtents(_648),_64a=_4._getPadBorderExtents(_648),_64b=_649.h+_64a.h;_647.style.height=(self._verticalSpace-_64b)+"px";this._animation=new _4.Animation({node:_646,duration:this.duration,curve:[1,this._verticalSpace-_64b-1],onAnimate:function(_64c){_64c=Math.floor(_64c);_646.style.height=_64c+"px";_647.style.height=(self._verticalSpace-_64b-_64c)+"px";},onEnd:function(){delete self._animation;_646.style.height="auto";_644._wrapperWidget.containerNode.style.display="none";_647.style.height="auto";self._hideChild(_644);}});this._animation.onStop=this._animation.onEnd;this._animation.play();}return d;},_onKeyPress:function(e,_64d){if(this.disabled||e.altKey||!(_64d||e.ctrlKey)){return;}var k=_4.keys,c=e.charOrCode;if((_64d&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){this._adjacent(false)._buttonWidget._onTitleClick();_4.stopEvent(e);}else{if((_64d&&(c==k.RIGHT_ARROW||c==k.DOWN_ARROW))||(e.ctrlKey&&(c==k.PAGE_DOWN||c==k.TAB))){this._adjacent(true)._buttonWidget._onTitleClick();_4.stopEvent(e);}}}});_4.declare("dijit.layout._AccordionInnerContainer",[_5._Widget,_5._CssStateMixin],{baseClass:"dijitAccordionInnerContainer",isContainer:true,isLayoutContainer:true,buildRendering:function(){this.domNode=_4.place("<div class='"+this.baseClass+"'>",this.contentWidget.domNode,"after");var _64e=this.contentWidget,cls=_4.getObject(this.buttonWidget);this.button=_64e._buttonWidget=(new cls({contentWidget:_64e,label:_64e.title,title:_64e.tooltip,dir:_64e.dir,lang:_64e.lang,iconClass:_64e.iconClass,id:_64e.id+"_button",parent:this.parent})).placeAt(this.domNode);this.containerNode=_4.place("<div class='dijitAccordionChildWrapper' style='display:none'>",this.domNode);_4.place(this.contentWidget.domNode,this.containerNode);},postCreate:function(){this.inherited(arguments);var _64f=this.button;this._contentWidgetWatches=[this.contentWidget.watch("title",_4.hitch(this,function(name,_650,_651){_64f.set("label",_651);})),this.contentWidget.watch("tooltip",_4.hitch(this,function(name,_652,_653){_64f.set("title",_653);})),this.contentWidget.watch("iconClass",_4.hitch(this,function(name,_654,_655){_64f.set("iconClass",_655);}))];},_setSelectedAttr:function(_656){this._set("selected",_656);this.button.set("selected",_656);if(_656){var cw=this.contentWidget;if(cw.onSelected){cw.onSelected();}}},startup:function(){this.contentWidget.startup();},destroy:function(){this.button.destroyRecursive();_4.forEach(this._contentWidgetWatches||[],function(w){w.unwatch();});delete this.contentWidget._buttonWidget;delete this.contentWidget._wrapperWidget;this.inherited(arguments);},destroyDescendants:function(){this.contentWidget.destroyRecursive();}});_4.declare("dijit.layout._AccordionButton",[_5._Widget,_5._Templated,_5._CssStateMixin],{templateString:_4.cache("dijit.layout","templates/AccordionButton.html","<div dojoAttachEvent='onclick:_onTitleClick' class='dijitAccordionTitle'>\r\n\t<div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='onkeypress:_onTitleKeyPress'\r\n\t\t\tclass='dijitAccordionTitleFocus' role=\"tab\" aria-expanded=\"false\"\r\n\t\t><span class='dijitInline dijitAccordionArrow' role=\"presentation\"></span\r\n\t\t><span class='arrowTextUp' role=\"presentation\">+</span\r\n\t\t><span class='arrowTextDown' role=\"presentation\">-</span\r\n\t\t><img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon\" dojoAttachPoint='iconNode' style=\"vertical-align: middle\" role=\"presentation\"/>\r\n\t\t<span role=\"presentation\" dojoAttachPoint='titleTextNode' class='dijitAccordionText'></span>\r\n\t</div>\r\n</div>\r\n"),attributeMap:_4.mixin(_4.clone(_5.layout.ContentPane.prototype.attributeMap),{label:{node:"titleTextNode",type:"innerHTML"},title:{node:"titleTextNode",type:"attribute",attribute:"title"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitAccordionTitle",getParent:function(){return this.parent;},buildRendering:function(){this.inherited(arguments);var _657=this.id.replace(" ","_");_4.attr(this.titleTextNode,"id",_657+"_title");_5.setWaiState(this.focusNode,"labelledby",_4.attr(this.titleTextNode,"id"));_4.setSelectable(this.domNode,false);},getTitleHeight:function(){return _4._getMarginSize(this.domNode).h;},_onTitleClick:function(){var _658=this.getParent();_658.selectChild(this.contentWidget,true);_5.focus(this.focusNode);},_onTitleKeyPress:function(evt){return this.getParent()._onKeyPress(evt,this.contentWidget);},_setSelectedAttr:function(_659){this._set("selected",_659);_5.setWaiState(this.focusNode,"expanded",_659);_5.setWaiState(this.focusNode,"selected",_659);this.focusNode.setAttribute("tabIndex",_659?"0":"-1");}});}if(!_4._hasResource["dijit.layout.BorderContainer"]){_4._hasResource["dijit.layout.BorderContainer"]=true;_4.provide("dijit.layout.BorderContainer");_4.declare("dijit.layout.BorderContainer",_5.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_65a){var _65b=_65a.region;if(_65b){this.inherited(arguments);_4.addClass(_65a.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_65b=="leading"){_65b=ltr?"left":"right";}if(_65b=="trailing"){_65b=ltr?"right":"left";}if(_65b!="center"&&(_65a.splitter||this.gutters)&&!_65a._splitterWidget){var _65c=_4.getObject(_65a.splitter?this._splitterClass:"dijit.layout._Gutter");var _65d=new _65c({id:_65a.id+"_splitter",container:this,child:_65a,region:_65b,live:this.liveSplitters});_65d.isSplitter=true;_65a._splitterWidget=_65d;_4.place(_65d.domNode,_65a.domNode,"after");_65d.startup();}_65a.region=_65b;}},layout:function(){this._layoutChildren();},addChild:function(_65e,_65f){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_660){var _661=_660.region;var _662=_660._splitterWidget;if(_662){_662.destroy();delete _660._splitterWidget;}this.inherited(arguments);if(this._started){this._layoutChildren();}_4.removeClass(_660.domNode,this.baseClass+"Pane");_4.style(_660.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});_4.style(_660.domNode,_661=="top"||_661=="bottom"?"width":"height","auto");},getChildren:function(){return _4.filter(this.inherited(arguments),function(_663){return !_663.isSplitter;});},getSplitter:function(_664){return _4.filter(this.getChildren(),function(_665){return _665.region==_664;})[0]._splitterWidget;},resize:function(_666,_667){if(!this.cs||!this.pe){var node=this.domNode;this.cs=_4.getComputedStyle(node);this.pe=_4._getPadExtents(node,this.cs);this.pe.r=_4._toPixelValue(node,this.cs.paddingRight);this.pe.b=_4._toPixelValue(node,this.cs.paddingBottom);_4.style(node,"padding","0px");}this.inherited(arguments);},_layoutChildren:function(_668,_669){if(!this._borderBox||!this._borderBox.h){return;}var _66a=_4.map(this.getChildren(),function(_66b,idx){return {pane:_66b,weight:[_66b.region=="center"?Infinity:0,_66b.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(_66b.region)?1:-1),idx]};},this);_66a.sort(function(a,b){var aw=a.weight,bw=b.weight;for(var i=0;i<aw.length;i++){if(aw[i]!=bw[i]){return aw[i]-bw[i];}}return 0;});var _66c=[];_4.forEach(_66a,function(_66d){var pane=_66d.pane;_66c.push(pane);if(pane._splitterWidget){_66c.push(pane._splitterWidget);}});var dim={l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h};_5.layout.layoutChildren(this.domNode,dim,_66c,_668,_669);},destroyRecursive:function(){_4.forEach(this.getChildren(),function(_66e){var _66f=_66e._splitterWidget;if(_66f){_66f.destroy();}delete _66e._splitterWidget;});this.inherited(arguments);}});_4.extend(_5._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});_4.declare("dijit.layout._Splitter",[_5._Widget,_5._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse\" tabIndex=\"0\" role=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",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);_4.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var _670=_4.cookie(this._cookieName);if(_670){this.child.domNode.style[this.horizontal?"height":"width"]=_670;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_671=_4.marginBox(this.child.domNode)[dim],_672=_4.filter(this.container.getChildren(),function(_673){return _673.region=="center";})[0],_674=_4.marginBox(_672.domNode)[dim];return Math.min(this.child.maxSize,_671+_674);},_startDrag:function(e){if(!this.cover){this.cover=_4.doc.createElement("div");_4.addClass(this.cover,"dijitSplitterCover");_4.place(this.cover,this.child.domNode,"after");}_4.addClass(this.cover,"dijitSplitterCoverActive");if(this.fake){_4.destroy(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");_4.addClass(this.domNode,"dijitSplitterShadow");_4.place(this.fake,this.domNode,"after");}_4.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake){_4.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");}var _675=this._factor,_676=this.horizontal,axis=_676?"pageY":"pageX",_677=e[axis],_678=this.domNode.style,dim=_676?"h":"w",_679=_4.marginBox(this.child.domNode)[dim],max=this._computeMaxSize(),min=this.child.minSize||20,_67a=this.region,_67b=_67a=="top"||_67a=="bottom"?"top":"left",_67c=parseInt(_678[_67b],10),_67d=this._resize,_67e=_4.hitch(this.container,"_layoutChildren",this.child.id),de=_4.doc;this._handlers=(this._handlers||[]).concat([_4.connect(de,"onmousemove",this._drag=function(e,_67f){var _680=e[axis]-_677,_681=_675*_680+_679,_682=Math.max(Math.min(_681,max),min);if(_67d||_67f){_67e(_682);}_678[_67b]=_680+_67c+_675*(_682-_681)+"px";}),_4.connect(de,"ondragstart",_4.stopEvent),_4.connect(_4.body(),"onselectstart",_4.stopEvent),_4.connect(de,"onmouseup",this,"_stopDrag")]);_4.stopEvent(e);},_onMouse:function(e){var o=(e.type=="mouseover"||e.type=="mouseenter");_4.toggleClass(this.domNode,"dijitSplitterHover",o);_4.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",o);},_stopDrag:function(e){try{if(this.cover){_4.removeClass(this.cover,"dijitSplitterCoverActive");}if(this.fake){_4.destroy(this.fake);}_4.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();delete this._drag;}if(this.container.persist){_4.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});}},_cleanupHandlers:function(){_4.forEach(this._handlers,_4.disconnect);delete this._handlers;},_onKeyPress:function(e){this._resize=true;var _683=this.horizontal;var tick=1;var dk=_4.keys;switch(e.charOrCode){case _683?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _683?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _684=_4._getMarginSize(this.child.domNode)[_683?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.child.id,Math.max(Math.min(_684,this._computeMaxSize()),this.child.minSize));_4.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments);}});_4.declare("dijit.layout._Gutter",[_5._Widget,_5._Templated],{templateString:"<div class=\"dijitGutter\" role=\"presentation\"></div>",postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);},buildRendering:function(){this.inherited(arguments);_4.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}if(!_4._hasResource["dijit.layout.LayoutContainer"]){_4._hasResource["dijit.layout.LayoutContainer"]=true;_4.provide("dijit.layout.LayoutContainer");_4.declare("dijit.layout.LayoutContainer",_5.layout._LayoutWidget,{baseClass:"dijitLayoutContainer",constructor:function(){_4.deprecated("dijit.layout.LayoutContainer is deprecated","use BorderContainer instead",2);},layout:function(){_5.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());},addChild:function(_685,_686){this.inherited(arguments);if(this._started){_5.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}},removeChild:function(_687){this.inherited(arguments);if(this._started){_5.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}}});_4.extend(_5._Widget,{layoutAlign:"none"});}if(!_4._hasResource["dijit.layout.LinkPane"]){_4._hasResource["dijit.layout.LinkPane"]=true;_4.provide("dijit.layout.LinkPane");_4.declare("dijit.layout.LinkPane",[_5.layout.ContentPane,_5._Templated],{templateString:"<div class=\"dijitLinkPane\" dojoAttachPoint=\"containerNode\"></div>",postMixInProperties:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited(arguments);},_fillContent:function(_688){}});}if(!_4._hasResource["dijit.layout.SplitContainer"]){_4._hasResource["dijit.layout.SplitContainer"]=true;_4.provide("dijit.layout.SplitContainer");_4.declare("dijit.layout.SplitContainer",_5.layout._LayoutWidget,{constructor:function(){_4.deprecated("dijit.layout.SplitContainer is deprecated","use BorderContainer with splitter instead",2);},activeSizing:false,sizerWidth:7,orientation:"horizontal",persist:true,baseClass:"dijitSplitContainer",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.isHorizontal=(this.orientation=="horizontal");},postCreate:function(){this.inherited(arguments);this.sizers=[];if(_4.isMozilla){this.domNode.style.overflow="-moz-scrollbars-none";}if(typeof this.sizerWidth=="object"){try{this.sizerWidth=parseInt(this.sizerWidth.toString());}catch(e){this.sizerWidth=7;}}var _689=_4.doc.createElement("div");this.virtualSizer=_689;_689.style.position="relative";_689.style.zIndex=10;_689.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_689);_4.setSelectable(_689,false);},destroy:function(){delete this.virtualSizer;_4.forEach(this._ownconnects,_4.disconnect);this.inherited(arguments);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_68a,i,_68b){this._setupChild(_68a);if(i<_68b.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited(arguments);},_setupChild:function(_68c){this.inherited(arguments);_68c.domNode.style.position="absolute";_4.addClass(_68c.domNode,"dijitSplitPane");},_onSizerMouseDown:function(e){if(e.target.id){for(var i=0;i<this.sizers.length;i++){if(this.sizers[i].id==e.target.id){break;}}if(i<this.sizers.length){this.beginSizing(e,i);}}},_addSizer:function(_68d){_68d=_68d===undefined?this.sizers.length:_68d;var _68e=_4.doc.createElement("div");_68e.id=_5.getUniqueId("dijit_layout_SplitterContainer_Splitter");this.sizers.splice(_68d,0,_68e);this.domNode.appendChild(_68e);_68e.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _68f=_4.doc.createElement("div");_68f.className="thumb";_68e.appendChild(_68f);this.connect(_68e,"onmousedown","_onSizerMouseDown");_4.setSelectable(_68e,false);},removeChild:function(_690){if(this.sizers.length){var i=_4.indexOf(this.getChildren(),_690);if(i!=-1){if(i==this.sizers.length){i--;}_4.destroy(this.sizers[i]);this.sizers.splice(i,1);}}this.inherited(arguments);if(this._started){this.layout();}},addChild:function(_691,_692){this.inherited(arguments);if(this._started){var _693=this.getChildren();if(_693.length>1){this._addSizer(_692);}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _694=this.getChildren();if(!_694.length){return;}var _695=this.isHorizontal?this.paneWidth:this.paneHeight;if(_694.length>1){_695-=this.sizerWidth*(_694.length-1);}var _696=0;_4.forEach(_694,function(_697){_696+=_697.sizeShare;});var _698=_695/_696;var _699=0;_4.forEach(_694.slice(0,_694.length-1),function(_69a){var size=Math.round(_698*_69a.sizeShare);_69a.sizeActual=size;_699+=size;});_694[_694.length-1].sizeActual=_695-_699;this._checkSizes();var pos=0;var size=_694[0].sizeActual;this._movePanel(_694[0],pos,size);_694[0].position=pos;pos+=size;if(!this.sizers){return;}_4.some(_694.slice(1),function(_69b,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_69b.sizeActual;this._movePanel(_69b,pos,size);_69b.position=pos;pos+=size;},this);},_movePanel:function(_69c,pos,size){if(this.isHorizontal){_69c.domNode.style.left=pos+"px";_69c.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_69c.resize){_69c.resize(box);}else{_4.marginBox(_69c.domNode,box);}}else{_69c.domNode.style.left=0;_69c.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_69c.resize){_69c.resize(box);}else{_4.marginBox(_69c.domNode,box);}}},_moveSlider:function(_69d,pos,size){if(this.isHorizontal){_69d.style.left=pos+"px";_69d.style.top=0;_4.marginBox(_69d,{w:size,h:this.paneHeight});}else{_69d.style.left=0;_69d.style.top=pos+"px";_4.marginBox(_69d,{w:this.paneWidth,h:size});}},_growPane:function(_69e,pane){if(_69e>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_69e){pane.sizeActual=pane.sizeActual-_69e;_69e=0;}else{_69e-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _69e;},_checkSizes:function(){var _69f=0;var _6a0=0;var _6a1=this.getChildren();_4.forEach(_6a1,function(_6a2){_6a0+=_6a2.sizeActual;_69f+=_6a2.sizeMin;});if(_69f<=_6a0){var _6a3=0;_4.forEach(_6a1,function(_6a4){if(_6a4.sizeActual<_6a4.sizeMin){_6a3+=_6a4.sizeMin-_6a4.sizeActual;_6a4.sizeActual=_6a4.sizeMin;}});if(_6a3>0){var list=this.isDraggingLeft?_6a1.reverse():_6a1;_4.forEach(list,function(_6a5){_6a3=this._growPane(_6a3,_6a5);},this);}}else{_4.forEach(_6a1,function(_6a6){_6a6.sizeActual=Math.round(_6a0*(_6a6.sizeMin/_69f));});}},beginSizing:function(e,i){var _6a7=this.getChildren();this.paneBefore=_6a7[i];this.paneAfter=_6a7[i+1];this.isSizing=true;this.sizingSplitter=this.sizers[i];if(!this.cover){this.cover=_4.create("div",{style:{position:"absolute",zIndex:5,top:0,left:0,width:"100%",height:"100%"}},this.domNode);}else{this.cover.style.zIndex=5;}this.sizingSplitter.style.zIndex=6;this.originPos=_4.position(_6a7[0].domNode,true);if(this.isHorizontal){var _6a8=e.layerX||e.offsetX||0;var _6a9=e.pageX;this.originPos=this.originPos.x;}else{var _6a8=e.layerY||e.offsetY||0;var _6a9=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_6a9;this.screenToClientOffset=_6a9-_6a8;this.dragOffset=this.lastPoint-this.paneBefore.sizeActual-this.originPos-this.paneBefore.position;if(!this.activeSizing){this._showSizingLine();}this._ownconnects=[];this._ownconnects.push(_4.connect(_4.doc.documentElement,"onmousemove",this,"changeSizing"));this._ownconnects.push(_4.connect(_4.doc.documentElement,"onmouseup",this,"endSizing"));_4.stopEvent(e);},changeSizing:function(e){if(!this.isSizing){return;}this.lastPoint=this.isHorizontal?e.pageX:e.pageY;this.movePoint();if(this.activeSizing){this._updateSize();}else{this._moveSizingLine();}_4.stopEvent(e);},endSizing:function(e){if(!this.isSizing){return;}if(this.cover){this.cover.style.zIndex=-1;}if(!this.activeSizing){this._hideSizingLine();}this._updateSize();this.isSizing=false;if(this.persist){this._saveState(this);}_4.forEach(this._ownconnects,_4.disconnect);},movePoint:function(){var p=this.lastPoint-this.screenToClientOffset;var a=p-this.dragOffset;a=this.legaliseSplitPoint(a);p=a+this.dragOffset;this.lastPoint=p+this.screenToClientOffset;},legaliseSplitPoint:function(a){a+=this.sizingSplitter.position;this.isDraggingLeft=!!(a>0);if(!this.activeSizing){var min=this.paneBefore.position+this.paneBefore.sizeMin;if(a<min){a=min;}var max=this.paneAfter.position+(this.paneAfter.sizeActual-(this.sizerWidth+this.paneAfter.sizeMin));if(a>max){a=max;}}a-=this.sizingSplitter.position;this._checkSizes();return a;},_updateSize:function(){var pos=this.lastPoint-this.dragOffset-this.originPos;var _6aa=this.paneBefore.position;var _6ab=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_6aa;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_6ab-this.paneAfter.position;_4.forEach(this.getChildren(),function(_6ac){_6ac.sizeShare=_6ac.sizeActual;});if(this._started){this.layout();}},_showSizingLine:function(){this._moveSizingLine();_4.marginBox(this.virtualSizer,this.isHorizontal?{w:this.sizerWidth,h:this.paneHeight}:{w:this.paneWidth,h:this.sizerWidth});this.virtualSizer.style.display="block";},_hideSizingLine:function(){this.virtualSizer.style.display="none";},_moveSizingLine:function(){var pos=(this.lastPoint-this.startPoint)+this.sizingSplitter.position;_4.style(this.virtualSizer,(this.isHorizontal?"left":"top"),pos+"px");},_getCookieName:function(i){return this.id+"_"+i;},_restoreState:function(){_4.forEach(this.getChildren(),function(_6ad,i){var _6ae=this._getCookieName(i);var _6af=_4.cookie(_6ae);if(_6af){var pos=parseInt(_6af);if(typeof pos=="number"){_6ad.sizeShare=pos;}}},this);},_saveState:function(){if(!this.persist){return;}_4.forEach(this.getChildren(),function(_6b0,i){_4.cookie(this._getCookieName(i),_6b0.sizeShare,{expires:365});},this);}});_4.extend(_5._Widget,{sizeMin:10,sizeShare:10});}if(!_4._hasResource["dijit.layout._TabContainerBase"]){_4._hasResource["dijit.layout._TabContainerBase"]=true;_4.provide("dijit.layout._TabContainerBase");_4.declare("dijit.layout._TabContainerBase",[_5.layout.StackContainer,_5._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:_4.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\r\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\r\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\r\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\r\n</div>\r\n"),postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&_4.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);if(!this.doLayout){_4.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){_4.addClass(this.domNode,"dijitTabContainerNested");_4.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");_4.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");_4.addClass(this.containerNode,"dijitTabPaneWrapperNested");}else{_4.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));}},_setupChild:function(tab){_4.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){return;}var sc=this.selectedChildWidget;if(this.doLayout){var _6b1=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_6b1;var _6b2=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_6b1},{domNode:this.containerNode,layoutAlign:"client"}];_5.layout.layoutChildren(this.domNode,this._contentBox,_6b2);this._containerContentBox=_5.layout.marginBox2contentBox(this.containerNode,_6b2[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _6b3=_4.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_6b3});}if(sc&&sc.resize){sc.resize();}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!_4._hasResource["dijit.layout.TabController"]){_4._hasResource["dijit.layout.TabController"]=true;_4.provide("dijit.layout.TabController");_4.declare("dijit.layout.TabController",_5.layout.StackController,{templateString:"<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _6b4=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_6b4=Math.max(_6b4,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_6b4+"px";}}});_4.declare("dijit.layout._TabButton",_5.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:_4.cache("dijit.layout","templates/_TabButton.html","<div role=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\r\n    <div role=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\r\n        <div role=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\r\n        \t<div role=\"presentation\" dojoAttachPoint='focusNode'>\r\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" dojoAttachPoint='iconNode' />\r\n\t\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\r\n\t\t        <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" dojoAttachPoint='closeNode'\r\n\t\t        \t\tdojoAttachEvent='onclick: onClickCloseButton' role=\"presentation\">\r\n\t\t            <span dojoAttachPoint='closeText' class='dijitTabCloseText'>[x]</span\r\n\t\t        ></span>\r\n\t\t\t</div>\r\n        </div>\r\n    </div>\r\n</div>\r\n"),scrollOnFocus:false,buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.containerNode,false);},startup:function(){this.inherited(arguments);var n=this.domNode;setTimeout(function(){n.className=n.className;},1);},_setCloseButtonAttr:function(disp){this._set("closeButton",disp);_4.toggleClass(this.innerDiv,"dijitClosable",disp);this.closeNode.style.display=disp?"":"none";if(disp){var _6b5=_4.i18n.getLocalization("dijit","common");if(this.closeNode){_4.attr(this.closeNode,"title",_6b5.itemClose);}var _6b5=_4.i18n.getLocalization("dijit","common");this._closeMenu=new _5.Menu({id:this.id+"_Menu",dir:this.dir,lang:this.lang,targetNodeIds:[this.domNode]});this._closeMenu.addChild(new _5.MenuItem({label:_6b5.itemClose,dir:this.dir,lang:this.lang,onClick:_4.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_6b6){this.inherited(arguments);if(this.showLabel==false&&!this.params.title){this.iconNode.alt=_4.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},destroy:function(){if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}this.inherited(arguments);}});}if(!_4._hasResource["dijit.layout.ScrollingTabController"]){_4._hasResource["dijit.layout.ScrollingTabController"]=true;_4.provide("dijit.layout.ScrollingTabController");_4.declare("dijit.layout.ScrollingTabController",_5.layout.TabController,{templateString:_4.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\r\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerMenuButton\"\r\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\r\n\t\t\tid=\"${id}_menuBtn\" containerId=\"${containerId}\" iconClass=\"dijitTabStripMenuIcon\"\r\n\t\t\tdropDownPosition=\"below-alt, above-alt\"\r\n\t\t\tdojoAttachPoint=\"_menuBtn\" showLabel=\"false\">&#9660;</div>\r\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\r\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\r\n\t\t\tid=\"${id}_leftBtn\" iconClass=\"dijitTabStripSlideLeftIcon\"\r\n\t\t\tdojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=\"false\">&#9664;</div>\r\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\r\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\r\n\t\t\tid=\"${id}_rightBtn\" iconClass=\"dijitTabStripSlideRightIcon\"\r\n\t\t\tdojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=\"false\">&#9654;</div>\r\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\r\n\t\t<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'\r\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'></div>\r\n\t</div>\r\n</div>\r\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{"class":"containerNode"}),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";_4.addClass(n,"tabStrip-disabled");}_4.addClass(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);_4.style(this.domNode,"visibility","visible");this._postStartup=true;},onAddChild:function(page,_6b7){this.inherited(arguments);_4.forEach(["label","iconClass"],function(attr){this.pane2watches[page.id].push(this.pane2button[page.id].watch(attr,_4.hitch(this,function(name,_6b8,_6b9){if(this._postStartup&&this._dim){this.resize(this._dim);}})));},this);_4.style(this.containerNode,"width",(_4.style(this.containerNode,"width")+200)+"px");},onRemoveChild:function(page,_6ba){var _6bb=this.pane2button[page.id];if(this._selectedTab===_6bb.domNode){this._selectedTab=null;}this.inherited(arguments);},_initButtons:function(){this._btnWidth=0;this._buttons=_4.query("> .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+=_4._getMarginSize(btn).w;return true;}else{_4.style(btn,"display","none");return false;}},this);},_getTabsWidth:function(){var _6bc=this.getChildren();if(_6bc.length){var _6bd=_6bc[this.isLeftToRight()?0:_6bc.length-1].domNode,_6be=_6bc[this.isLeftToRight()?_6bc.length-1:0].domNode;return _6be.offsetLeft+_4.style(_6be,"width")-_6bd.offsetLeft;}else{return 0;}},_enableBtn:function(_6bf){var _6c0=this._getTabsWidth();_6bf=_6bf||_4.style(this.scrollNode,"width");return _6c0>0&&_6bf<_6c0;},resize:function(dim){if(this.domNode.offsetWidth==0){return;}this._dim=dim;this.scrollNode.style.height="auto";this._contentBox=_5.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});this._contentBox.h=this.scrollNode.offsetHeight;_4.contentBox(this.domNode,this._contentBox);var _6c1=this._enableBtn(this._contentBox.w);this._buttons.style("display",_6c1?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";_5.layout.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();}var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());w.scrollLeft=sl;}this._setButtonClass(this._getScroll());this._postResize=true;return {h:this._contentBox.h,w:dim.w};},_getScroll:function(){var sl=(this.isLeftToRight()||_4.isIE<8||(_4.isIE&&_4.isQuirks)||_4.isWebKit)?this.scrollNode.scrollLeft:_4.style(this.containerNode,"width")-_4.style(this.scrollNode,"width")+(_4.isIE==8?-1:1)*this.scrollNode.scrollLeft;return sl;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||_4.isIE<8||(_4.isIE&&_4.isQuirks)||_4.isWebKit){return val;}else{var _6c2=_4.style(this.containerNode,"width")-_4.style(this.scrollNode,"width");return (_4.isIE==8?-1:1)*(val-_6c2);}},onSelectChild:function(page){var tab=this.pane2button[page.id];if(!tab||!page){return;}var node=tab.domNode;if(this._postResize&&node!=this._selectedTab){this._selectedTab=node;var sl=this._getScroll();if(sl>node.offsetLeft||sl+_4.style(this.scrollNode,"width")<node.offsetLeft+_4.style(node,"width")){this.createSmoothScroll().play();}}this.inherited(arguments);},_getScrollBounds:function(){var _6c3=this.getChildren(),_6c4=_4.style(this.scrollNode,"width"),_6c5=_4.style(this.containerNode,"width"),_6c6=_6c5-_6c4,_6c7=this._getTabsWidth();if(_6c3.length&&_6c7>_6c4){return {min:this.isLeftToRight()?0:_6c3[_6c3.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_6c3[_6c3.length-1].domNode.offsetLeft+_4.style(_6c3[_6c3.length-1].domNode,"width"))-_6c4:_6c6};}else{var _6c8=this.isLeftToRight()?0:_6c6;return {min:_6c8,max:_6c8};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_6c9=_4.style(this.scrollNode,"width"),_6ca=this._getScrollBounds();var pos=(n.offsetLeft+_4.style(n,"width")/2)-_6c9/2;pos=Math.min(Math.max(pos,_6ca.min),_6ca.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _6cb=this._getScrollBounds();x=Math.min(Math.max(x,_6cb.min),_6cb.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var self=this,w=this.scrollNode,anim=new _4._Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);anim.curve=new _4._Line(oldS,newS);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=anim;this._setButtonClass(x);return anim;},_getBtnNode:function(e){var n=e.target;while(n&&!_4.hasClass(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(_6cc,node){if(node&&_4.hasClass(node,"dijitTabDisabled")){return;}var _6cd=_4.style(this.scrollNode,"width");var d=(_6cd*0.75)*_6cc;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_6ce){var _6cf=this._getScrollBounds();this._leftBtn.set("disabled",_6ce<=_6cf.min);this._rightBtn.set("disabled",_6ce>=_6cf.max);}});_4.declare("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:_4.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div dojoAttachEvent=\"onclick:_onButtonClick\">\r\n\t<div role=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\r\n\t\t<div role=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\r\n\t\t\t<img role=\"presentation\" alt=\"\" src=\"${_blankGif}\" class=\"dijitTabStripIcon\" dojoAttachPoint=\"iconNode\"/>\r\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n"),tabIndex:"",isFocusable:function(){return false;}});_4.declare("dijit.layout._ScrollingTabControllerButton",[_5.form.Button,_5.layout._ScrollingTabControllerButtonMixin]);_4.declare("dijit.layout._ScrollingTabControllerMenuButton",[_5.form.Button,_5._HasDropDown,_5.layout._ScrollingTabControllerButtonMixin],{containerId:"",tabIndex:"-1",isLoaded:function(){return false;},loadDropDown:function(_6d0){this.dropDown=new _5.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var _6d1=_5.byId(this.containerId);_4.forEach(_6d1.getChildren(),function(page){var _6d2=new _5.MenuItem({id:page.id+"_stcMi",label:page.title,iconClass:page.iconClass,dir:page.dir,lang:page.lang,onClick:function(){_6d1.selectChild(page);}});this.dropDown.addChild(_6d2);},this);_6d0();},closeDropDown:function(_6d3){this.inherited(arguments);if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}}});}if(!_4._hasResource["dijit.layout.TabContainer"]){_4._hasResource["dijit.layout.TabContainer"]=true;_4.provide("dijit.layout.TabContainer");_4.declare("dijit.layout.TabContainer",_5.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_6d4){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_6d5=_4.getObject(this.controllerWidget);return new _6d5({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_6d4);},postMixInProperties:function(){this.inherited(arguments);if(!this.controllerWidget){this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";}}});}if(!_4._hasResource["dijit.dijit-all"]){_4._hasResource["dijit.dijit-all"]=true;_4.provide("dijit.dijit-all");console.warn("dijit-all may include much more code than your application actually requires. We strongly recommend that you investigate a custom build or the web build tool");}}};});
