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

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

		http://dojotoolkit.org
*/

//>>built
require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_ie":ie,"dj_ie6":_8(ie)==6,"dj_ie7":_8(ie)==7,"dj_ie8":_8(ie)==8,"dj_ie9":_8(ie)==9,"dj_quirks":_4("quirks"),"dj_iequirks":ie&&_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla"),"dj_ff3":_8(ff)==3};_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dojo/text":function(){define(["./_base/kernel","require","./has","./_base/xhr"],function(_e,_f,has,xhr){var _10;if(1){_10=function(url,_11,_12){xhr("GET",{url:url,sync:!!_11,load:_12});};}else{if(_f.getText){_10=_f.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _13={},_14=function(_15){if(_15){_15=_15.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _16=_15.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_16){_15=_16[1];}}else{_15="";}return _15;},_17={},_18={},_19={dynamic:true,normalize:function(id,_1a){var _1b=id.split("!"),url=_1b[0];return (/^\./.test(url)?_1a(url):url)+(_1b[1]?"!"+_1b[1]:"");},load:function(id,_1c,_1d){var _1e=id.split("!"),_1f=_1e.length>1,_20=_1e[0],url=_1c.toUrl(_1e[0]),_21=_17,_22=function(_23){_1d(_1f?_14(_23):_23);};if(_20 in _13){_21=_13[_20];}else{if(url in _1c.cache){_21=_1c.cache[url];}else{if(url in _13){_21=_13[url];}}}if(_21===_17){if(_18[url]){_18[url].push(_22);}else{var _24=_18[url]=[_22];_10(url,!_1c.async,function(_25){_13[_20]=_13[url]=_25;for(var i=0;i<_24.length;){_24[i++](_25);}delete _18[url];});}}else{_22(_21);}}};_e.cache=function(_26,url,_27){var key;if(typeof _26=="string"){if(/\//.test(_26)){key=_26;_27=url;}else{key=_f.toUrl(_26.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_26+"";_27=url;}var val=(_27!=undefined&&typeof _27!="string")?_27.value:_27,_28=_27&&_27.sanitize;if(typeof val=="string"){_13[key]=val;return _28?_14(val):val;}else{if(val===null){delete _13[key];return null;}else{if(!(key in _13)){_10(key,true,function(_29){_13[key]=_29;});}return _28?_14(_13[key]):_13[key];}}};return _19;});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_2a,_2b,_2c,_2d,_2e,_2f,has,win){if(has("ie")||has("mozilla")){_2f(90,function(){var div=_2d.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_2b.blankGif||_2a.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_2e.getComputedStyle(div);if(cs){var _30=cs.backgroundImage;var _31=(cs.borderTopColor==cs.borderRightColor)||(_30!=null&&(_30=="none"||_30=="url(invalid-url:)"));if(_31){_2c.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dojox/grid/_View":function(){require({cache:{"url:dojox/grid/resources/View.html":"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n"}});define("dojox/grid/_View",["dojo","dijit/registry","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/_base/connect","dojo/_base/sniff","dojo/query","dojo/_base/window","dojo/text!./resources/View.html","dojo/dnd/Source","dijit/_Widget","dijit/_TemplatedMixin","dojox/html/metrics","./util","dojo/_base/html","./_Builder","dojo/dnd/Avatar","dojo/dnd/Manager"],function(_32,_33,_34,_35,_36,_37,_38,has,_39,win,_3a,_3b,_3c,_3d,_3e,_3f,_40,_41,_42){var _43=function(_44,_45){return _44.style.cssText==undefined?_44.getAttribute("style"):_44.style.cssText;};var _46=_35("dojox.grid._View",[_3c,_3d],{defaultWidth:"18em",viewWidth:"",templateString:_3a,themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:_41._HeaderBuilder,_contentBuilderClass:_41._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");_3f.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);_3f.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!this.grid.isLeftToRight()){this.headerNodeContainer.style.width="";}},destroy:function(){_40.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);_40.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(has("ie")||has("webkit")||has("opera")){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_47){var vs=(this.structure=_47);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_48){if(_48){_36.forEach(_39("[widgetId]",_48).map(_33.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_49,_4a){this._onBeforeRow(_49,_4a);if(_49>=0){this._cleanupRowWidgets(this.getRowNode(_49));}},onAfterRow:function(_4b,_4c,_4d){this._onAfterRow(_4b,_4c,_4d);var g=this.grid;_36.forEach(_39(".dojoxGridStubNode",_4d),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _4e=window.parseInt(_40.attr(n,"cellIdx"),10);var _4f=g.getCell(_4e);var w=_33.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}_32.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,_50;(_50=row[i]);i++){_50.view=this;this.flexCells=this.flexCells||_50.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _51=this.hasVScrollbar();var _52=_40.style(this.scrollboxNode,"overflow");if(this.noscroll||!_52||_52=="hidden"){_51=false;}else{if(_52=="scroll"){_51=true;}}return (_51?_3e.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?h.firstChild.offsetWidth:0;},setColumnsWidth:function(_53){this.headerContentNode.firstChild.style.width=_53+"px";if(this.viewWidth){this.viewWidth=_53+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,_40._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _54=this.grid.layout.cells;var _55=_37.hitch(this,function(_56,_57){!this.grid.isLeftToRight()&&(_57=!_57);var inc=_57?-1:1;var idx=this.header.getCellNodeIndex(_56)+inc;var _58=_54[idx];while(_58&&_58.getHeaderNode()&&_58.getHeaderNode().style.display=="none"){idx+=inc;_58=_54[idx];}if(_58){return _58.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _59="dojoxGrid_bottomMarker";var _5a="dojoxGrid_topMarker";if(this.bottomMarker){_40.destroy(this.bottomMarker);}this.bottomMarker=_40.byId(_59);if(this.topMarker){_40.destroy(this.topMarker);}this.topMarker=_40.byId(_5a);if(!this.bottomMarker){this.bottomMarker=_40.create("div",{"id":_59,"class":"dojoxGridColPlaceBottom"},win.body());this._hide(this.bottomMarker);this.topMarker=_40.create("div",{"id":_5a,"class":"dojoxGridColPlaceTop"},win.body());this._hide(this.topMarker);}this.arrowDim=_40.contentBox(this.bottomMarker);var _5b=_40.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new _3b(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:_37.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(has("ie")?1:0)){_3b.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:_37.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){_3b.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:_37.hitch(this,function(_5c){var src=this.source;if(src.current==src.targetAnchor&&src.before==_5c){return;}if(src.targetAnchor&&_55(src.targetAnchor,src.before)){src._removeItemClass(_55(src.targetAnchor,src.before),src.before?"After":"Before");}_3b.prototype._markTargetAnchor.call(src,_5c);var _5d=_5c?src.targetAnchor:_55(src.targetAnchor,src.before);var _5e=0;if(!_5d){_5d=src.targetAnchor;_5e=_40.contentBox(_5d).w+this.arrowDim.w/2+2;}var pos=_40.position(_5d,true);var _5f=Math.floor(pos.x-this.arrowDim.w/2+_5e);_40.style(this.bottomMarker,"visibility","visible");_40.style(this.topMarker,"visibility","visible");_40.style(this.bottomMarker,{"left":_5f+"px","top":(_5b+pos.y)+"px"});_40.style(this.topMarker,{"left":_5f+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_55(src.targetAnchor,src.before)){src._addItemClass(_55(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:_37.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_55(src.targetAnchor,src.before)){src._removeItemClass(_55(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);_3b.prototype._unmarkTargetAnchor.call(src);}),destroy:_37.hitch(this,function(){_38.disconnect(this._source_conn);_38.unsubscribe(this._source_sub);_3b.prototype.destroy.call(this.source);if(this.bottomMarker){_40.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){_40.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:_37.hitch(this,function(){_3b.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=_38.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=_38.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(_60){_40.style(_60,{top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_61,_62,_63){if(_32.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _64=this.grid.views.views;var _65=_64[_61.viewIndex];var _66=_64[this.index];if(_66!=_65){_65.convertColPctToFixed();_66.convertColPctToFixed();}},_onDndDrop:function(_67,_68,_69){if(_32.dnd.manager().target!==this.source){if(_32.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _6a=function(n){return n?_40.attr(n,"idx"):null;};var w=_40.marginBox(_68[0]).w;if(_67.viewIndex!==this.index){var _6b=this.grid.views.views;var _6c=_6b[_67.viewIndex];var _6d=_6b[this.index];if(_6c.viewWidth&&_6c.viewWidth!="auto"){_6c.setColumnsWidth(_6c.getColumnsWidth()-w);}if(_6d.viewWidth&&_6d.viewWidth!="auto"){_6d.setColumnsWidth(_6d.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!this.grid.isLeftToRight()&&(stb=!stb);var _6e=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_6e.moveColumn(_67.viewIndex,idx,_6a(_68[0]),_6a(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}_3f.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_6f){var n=_6f.name||_6f.grid.getCellName(_6f);if(/^\s+$/.test(n)){n="&nbsp;";}var ret=["<div class=\"dojoxGridSortNode"];if(_6f.index!=_6f.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_6f.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_6f.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_70){var _71=this._hasHScroll||false;if(this._hasHScroll==undefined||_70){if(this.noscroll){this._hasHScroll=false;}else{var _72=_40.style(this.scrollboxNode,"overflow");if(_72=="hidden"){this._hasHScroll=false;}else{if(_72=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_71!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_73){var _74=this._hasVScroll||false;if(this._hasVScroll==undefined||_73){if(this.noscroll){this._hasVScroll=false;}else{var _75=_40.style(this.scrollboxNode,"overflow");if(_75=="hidden"){this._hasVScroll=false;}else{if(_75=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_74!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _76=false;this.grid.initialWidth="";var _77=_39("th",this.headerContentNode);var _78=_36.map(_77,function(c,_79){var w=c.style.width;_40.attr(c,"vIdx",_79);if(w&&w.slice(-1)=="%"){_76=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return _40.contentBox(c).w;});if(_76){_36.forEach(this.grid.layout.cells,function(_7a,idx){if(_7a.view==this){var _7b=_7a.view.getHeaderCellNode(_7a.index);if(_7b&&_40.hasAttr(_7b,"vIdx")){var _7c=window.parseInt(_40.attr(_7b,"vIdx"));this.setColWidth(idx,_78[_7c]);_40.removeAttr(_7b,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_7d){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var _7e=this;var _7f=function(){var v;for(var i in _7e.grid.views.views){v=_7e.grid.views.views[i];if(v!==_7e&&v.hasHScrollbar()){return true;}}return false;};if(_7d||(this.noscroll&&_7f())){h-=_3e.getScrollbar().h;}_3f.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_80){var _81=this.createRowNode(_80);this.buildRow(_80,_81);return _81;},createRowNode:function(_82){var _83=document.createElement("div");_83.className=this.classTag+"Row";if(this instanceof _34.grid._RowSelector){_40.attr(_83,"role","presentation");}else{_40.attr(_83,"role","row");if(this.grid.selectionMode!="none"){_83.setAttribute("aria-selected","false");}}_83[_3f.gridViewTag]=this.id;_83[_3f.rowIndexTag]=_82;this.rowNodes[_82]=_83;return _83;},buildRow:function(_84,_85){this.buildRowContent(_84,_85);this.styleRow(_84,_85);},buildRowContent:function(_86,_87){_87.innerHTML=this.content.generateHtml(_86,_86);if(this.flexCells&&this.contentWidth){_87.firstChild.style.width=this.contentWidth;}_3f.fire(this,"onAfterRow",[_86,this.structure.cells,_87]);},rowRemoved:function(_88){if(_88>=0){this._cleanupRowWidgets(this.getRowNode(_88));}this.grid.edit.save(this,_88);delete this.rowNodes[_88];},getRowNode:function(_89){return this.rowNodes[_89];},getCellNode:function(_8a,_8b){var row=this.getRowNode(_8a);if(row){return this.content.getCellNode(row,_8b);}},getHeaderCellNode:function(_8c){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_8c);}},styleRow:function(_8d,_8e){_8e._style=_43(_8e);this.styleRowNode(_8d,_8e);},styleRowNode:function(_8f,_90){if(_90){this.doStyleRowNode(_8f,_90);}},doStyleRowNode:function(_91,_92){this.grid.styleRowNode(_91,_92);},updateRow:function(_93){var _94=this.getRowNode(_93);if(_94){_94.style.height="";this.buildRow(_93,_94);}return _94;},updateRowStyles:function(_95){this.styleRowNode(_95,this.getRowNode(_95));},lastTop:0,firstScroll:0,doscroll:function(_96){var _97=this.grid.isLeftToRight();if(this.firstScroll<2){if((!_97&&this.firstScroll==1)||(_97&&this.firstScroll===0)){var s=_40.marginBox(this.headerNodeContainer);if(has("ie")){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(has("mozilla")){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_97?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}},setScrollTop:function(_98){this.lastTop=_98;this.scrollboxNode.scrollTop=_98;return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_99,_9a){this.grid.setCellWidth(_99,_9a+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var _9b=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=_9b;this.headerNode.scrollLeft=_9b;}});var _9c=_35("dojox.grid._GridAvatar",_42,{construct:function(){var dd=win.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _9d=this.manager.source,_9e;if(_9d.creator){_9e=_9d._normalizedCreator(_9d.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{_9e=this.manager.nodes[0].cloneNode(true);var _9f,_a0;if(_9e.tagName.toLowerCase()=="tr"){_9f=dd.createElement("table");_a0=dd.createElement("tbody");_a0.appendChild(_9e);_9f.appendChild(_a0);_9e=_9f;}else{if(_9e.tagName.toLowerCase()=="th"){_9f=dd.createElement("table");_a0=dd.createElement("tbody");var r=dd.createElement("tr");_9f.cellPadding=_9f.cellSpacing="0";r.appendChild(_9e);_a0.appendChild(r);_9f.appendChild(_a0);_9e=_9f;}}}_9e.id="";td.appendChild(_9e);tr.appendChild(img);tr.appendChild(td);_40.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=_32.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){_32.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _a1=_32.dnd.manager().makeAvatar;_32.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!_40.hasClass(win.body(),"dijit_a11y")){return new _9c(this);}return _a1.call(_32.dnd.manager());};return _46;});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_a2,_a3){return _a2("dijit._Contained",null,{_getSibling:function(_a4){var _a5=this.domNode;do{_a5=_a5[_a4+"Sibling"];}while(_a5&&_a5.nodeType!=1);return _a5&&_a3.byNode(_a5);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojo/dnd/Selector":function(){define(["../main","./common","./Container"],function(_a6){_a6.declare("dojo.dnd.Selector",_a6.dnd.Container,{constructor:function(_a7,_a8){if(!_a8){_a8={};}this.singular=_a8.singular;this.autoSync=_a8.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(_a6.connect(this.node,"onmousedown",this,"onMouseDown"),_a6.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new _a6.NodeList();var e=_a6.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(_a6.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(_a9,id){this._addItemClass(_a6.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=_a6.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=_a6.byId(i);this.delItem(i);_a6.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||_a6.global;var s=this.selection,e=_a6.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){_a6.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=_a6.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}_a6.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_aa,_ab,_ac,_ad){var _ae=this._normalizedCreator;this._normalizedCreator=function(_af,_b0){var t=_ae.call(this,_af,_b0);if(_aa){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};_a6.dnd.Selector.superclass.insertNodes.call(this,_ab,_ac,_ad);this._normalizedCreator=_ae;return this;},destroy:function(){_a6.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!_a6.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===_a6.mouseButtons.LEFT){_a6.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!_a6.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var _b1=c[i];if(_b1==this.anchor||_b1==this.current){break;}}for(++i;i<c.length;++i){var _b1=c[i];if(_b1==this.anchor||_b1==this.current){break;}this._addItemClass(_b1,"Selected");this.selection[_b1.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(_a6.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(_a6.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}_a6.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=_a6.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){_a6.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=_a6.dnd._empty;for(var i in this.selection){if(i in e){continue;}var _b2=_a6.byId(i);if(_b2){this._removeItemClass(_b2,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});return _a6.dnd.Selector;});},"dojo/parser":function(){define(["./_base/kernel","./_base/lang","./_base/array","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./query","./on","./ready"],function(_b3,_b4,_b5,_b6,_b7,_b8,_b9,_ba,_bb,_bc,don){new Date("X");var _bd={"dom-attributes-explicit":document.createElement("div").attributes.length<40};function has(_be){return _bd[_be];};_b3.parser=new function(){var _bf={};function _c0(_c1){var map={};for(var _c2 in _c1){if(_c2.charAt(0)=="_"){continue;}map[_c2.toLowerCase()]=_c2;}return map;};_ba.after(_b4,"extend",function(){_bf={};},true);var _c3={};this._functionFromScript=function(_c4,_c5){var _c6="";var _c7="";var _c8=(_c4.getAttribute(_c5+"args")||_c4.getAttribute("args"));if(_c8){_b5.forEach(_c8.split(/\s*,\s*/),function(_c9,idx){_c6+="var "+_c9+" = arguments["+idx+"]; ";});}var _ca=_c4.getAttribute("with");if(_ca&&_ca.length){_b5.forEach(_ca.split(/\s*,\s*/),function(_cb){_c6+="with("+_cb+"){";_c7+="}";});}return new Function(_c6+_c4.innerHTML+_c7);};this.instantiate=function(_cc,_cd,_ce){var _cf=[],_cd=_cd||{};_ce=_ce||{};var _d0=(_ce.scope||_b3._scopeName)+"Type",_d1="data-"+(_ce.scope||_b3._scopeName)+"-",_d2=_d1+"type",_d3=_d1+"props",_d4=_d1+"attach-point",_d5=_d1+"attach-event",_d6=_d1+"id";var _d7={};_b5.forEach([_d3,_d2,_d0,_d6,"jsId",_d4,_d5,"dojoAttachPoint","dojoAttachEvent","class","style"],function(_d8){_d7[_d8.toLowerCase()]=_d8.replace(_ce.scope,"dojo");});_b5.forEach(_cc,function(obj){if(!obj){return;}var _d9=obj.node||obj,_da=_d0 in _cd?_cd[_d0]:obj.node?obj.type:(_d9.getAttribute(_d2)||_d9.getAttribute(_d0)),_db=_c3[_da]||(_c3[_da]=_b4.getObject(_da)),_dc=_db&&_db.prototype;if(!_db){throw new Error("Could not load class '"+_da);}var _dd={};if(_ce.defaults){_b4.mixin(_dd,_ce.defaults);}if(obj.inherited){_b4.mixin(_dd,obj.inherited);}var _de;if(has("dom-attributes-explicit")){_de=_d9.attributes;}else{var _df=/^input$|^img$/i.test(_d9.nodeName)?_d9:_d9.cloneNode(false),_e0=_df.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*/,"").replace(/>.*$/,"");_de=_b5.map(_e0.split(/\s+/),function(_e1){var _e2=_e1.toLowerCase();return {name:_e1,value:(_d9.nodeName=="LI"&&_e1=="value")||_e2=="enctype"?_d9.getAttribute(_e2):_d9.getAttributeNode(_e2).value,specified:true};});}var i=0,_e3;while(_e3=_de[i++]){if(!_e3||!_e3.specified){continue;}var _e4=_e3.name,_e5=_e4.toLowerCase(),_e6=_e3.value;if(_e5 in _d7){switch(_d7[_e5]){case "data-dojo-props":var _e7=_e6;break;case "data-dojo-id":case "jsId":var _e8=_e6;break;case "data-dojo-attach-point":case "dojoAttachPoint":_dd.dojoAttachPoint=_e6;break;case "data-dojo-attach-event":case "dojoAttachEvent":_dd.dojoAttachEvent=_e6;break;case "class":_dd["class"]=_d9.className;break;case "style":_dd["style"]=_d9.style&&_d9.style.cssText;break;}}else{if(!(_e4 in _dc)){var map=(_bf[_da]||(_bf[_da]=_c0(_dc)));_e4=map[_e5]||_e4;}if(_e4 in _dc){switch(typeof _dc[_e4]){case "string":_dd[_e4]=_e6;break;case "number":_dd[_e4]=_e6.length?Number(_e6):NaN;break;case "boolean":_dd[_e4]=_e6.toLowerCase()!="false";break;case "function":if(_e6===""||_e6.search(/[^\w\.]+/i)!=-1){_dd[_e4]=new Function(_e6);}else{_dd[_e4]=_b4.getObject(_e6,false)||new Function(_e6);}break;default:var _e9=_dc[_e4];_dd[_e4]=(_e9&&"length" in _e9)?(_e6?_e6.split(/\s*,\s*/):[]):(_e9 instanceof Date)?(_e6==""?new Date(""):_e6=="now"?new Date():_bb.fromISOString(_e6)):(_e9 instanceof _b3._Url)?(_b3.baseUrl+_e6):_b9.fromJson(_e6);}}else{_dd[_e4]=_e6;}}}if(_e7){try{_e7=_b9.fromJson.call(_ce.propsThis,"{"+_e7+"}");_b4.mixin(_dd,_e7);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_e7+"'");}}_b4.mixin(_dd,_cd);var _ea=obj.node?obj.scripts:(_db&&(_db._noScript||_dc._noScript)?[]:_bc("> script[type^='dojo/']",_d9));var _eb=[],_ec=[],_ed=[],on=[];if(_ea){for(i=0;i<_ea.length;i++){var _ee=_ea[i];_d9.removeChild(_ee);var _ef=(_ee.getAttribute(_d1+"event")||_ee.getAttribute("event")),_f0=_ee.getAttribute(_d1+"prop"),_da=_ee.getAttribute("type"),nf=this._functionFromScript(_ee,_d1);if(_ef){if(_da=="dojo/connect"){_eb.push({event:_ef,func:nf});}else{if(_da=="dojo/on"){on.push({event:_ef,func:nf});}else{_dd[_ef]=nf;}}}else{if(_da=="dojo/watch"){_ed.push({prop:_f0,func:nf});}else{_ec.push(nf);}}}}var _f1=_db.markupFactory||_dc.markupFactory;var _f2=_f1?_f1(_dd,_d9,_db):new _db(_dd,_d9);_cf.push(_f2);if(_e8){_b4.setObject(_e8,_f2);}for(i=0;i<_eb.length;i++){_ba.after(_f2,_eb[i].event,_b3.hitch(_f2,_eb[i].func),true);}for(i=0;i<_ec.length;i++){_ec[i].call(_f2);}for(i=0;i<_ed.length;i++){_f2.watch(_ed[i].prop,_ed[i].func);}for(i=0;i<on.length;i++){don(_f2,on[i].event,on[i].func);}},this);if(!_cd._started){_b5.forEach(_cf,function(_f3){if(!_ce.noStart&&_f3&&_b4.isFunction(_f3.startup)&&!_f3._started){_f3.startup();}});}return _cf;};this.parse=function(_f4,_f5){var _f6;if(!_f5&&_f4&&_f4.rootNode){_f5=_f4;_f6=_f5.rootNode;}else{_f6=_f4;}_f6=_f6?_b6.byId(_f6):_b7.body();_f5=_f5||{};var _f7=(_f5.scope||_b3._scopeName)+"Type",_f8="data-"+(_f5.scope||_b3._scopeName)+"-",_f9=_f8+"type",_fa=_f8+"textdir";var _fb=[];var _fc=_f6.firstChild;var _fd=_f5&&_f5.inherited;if(!_fd){function _fe(_ff,attr){return (_ff.getAttribute&&_ff.getAttribute(attr))||(_ff!==_b7.doc&&_ff!==_b7.doc.documentElement&&_ff.parentNode?_fe(_ff.parentNode,attr):null);};_fd={dir:_fe(_f6,"dir"),lang:_fe(_f6,"lang"),textDir:_fe(_f6,_fa)};for(var key in _fd){if(!_fd[key]){delete _fd[key];}}}var _100={inherited:_fd};var _101;var _102;function _103(_104){if(!_104.inherited){_104.inherited={};var node=_104.node,_105=_103(_104.parent);var _106={dir:node.getAttribute("dir")||_105.dir,lang:node.getAttribute("lang")||_105.lang,textDir:node.getAttribute(_fa)||_105.textDir};for(var key in _106){if(_106[key]){_104.inherited[key]=_106[key];}}}return _104.inherited;};while(true){if(!_fc){if(!_100||!_100.node){break;}_fc=_100.node.nextSibling;_101=_100.scripts;_102=false;_100=_100.parent;continue;}if(_fc.nodeType!=1){_fc=_fc.nextSibling;continue;}if(_101&&_fc.nodeName.toLowerCase()=="script"){type=_fc.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_101.push(_fc);}_fc=_fc.nextSibling;continue;}if(_102){_fc=_fc.nextSibling;continue;}var type=_fc.getAttribute(_f9)||_fc.getAttribute(_f7);var _107=_fc.firstChild;if(!type&&(!_107||(_107.nodeType==3&&!_107.nextSibling))){_fc=_fc.nextSibling;continue;}var _108={node:_fc,scripts:_101,parent:_100};var ctor=type&&(_c3[type]||(_c3[type]=_b4.getObject(type))),_109=ctor&&!ctor.prototype._noScript?[]:null;if(type){_fb.push({"type":type,node:_fc,scripts:_109,inherited:_103(_108)});}_fc=_107;_101=_109;_102=ctor&&ctor.prototype.stopParser&&!(_f5&&_f5.template);_100=_108;}var _10a=_f5&&_f5.template?{template:true}:null;return this.instantiate(_fb,_10a,_f5);};}();if(_b3.config.parseOnLoad){_b3.ready(100,_b3.parser,"parse");}return _b3.parser;});},"dojox/grid/DataSelection":function(){define("dojox/grid/DataSelection",["dojo/_base/declare","./_SelectionPreserver","./Selection"],function(_10b,_10c,_10d){return _10b("dojox.grid.DataSelection",_10d,{constructor:function(grid){if(grid.keepSelection){this.preserver=new _10c(this);}},destroy:function(){if(this.preserver){this.preserver.destroy();}},getFirstSelected:function(){var idx=_10d.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_10e){var _10f=this.grid.getItemIndex(_10e);var idx=_10d.prototype.getNextSelected.call(this,_10f);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _110=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_110.push(this.grid.getItem(i));}}return _110;},addToSelection:function(_111){if(this.mode=="none"){return;}var idx=null;if(typeof _111=="number"||typeof _111=="string"){idx=_111;}else{idx=this.grid.getItemIndex(_111);}_10d.prototype.addToSelection.call(this,idx);},deselect:function(_112){if(this.mode=="none"){return;}var idx=null;if(typeof _112=="number"||typeof _112=="string"){idx=_112;}else{idx=this.grid.getItemIndex(_112);}_10d.prototype.deselect.call(this,idx);},deselectAll:function(_113){var idx=null;if(_113||typeof _113=="number"){if(typeof _113=="number"||typeof _113=="string"){idx=_113;}else{idx=this.grid.getItemIndex(_113);}_10d.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});});},"url:dijit/templates/CheckedMenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&#160;</td>\n</tr>\n","dojo/dnd/Manager":function(){define(["../main","../Evented","./common","./autoscroll","./Avatar"],function(dojo,_114){var _115=dojo.declare("dojo.dnd.Manager",[_114],{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_116){if(this.avatar){this.target=(_116&&_116.targetState!="Disabled")?_116:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_116]);},outSource:function(_117){if(this.avatar){if(this.target==_117){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_118,_119,copy){this.source=_118;this.nodes=_119;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_118,_119,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _11a=Boolean(this.target&&flag);if(this.canDropFlag!=_11a){this.canDropFlag=_11a;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),["dojoDndCopy","dojoDndMove"]);dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_11b=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_11b);dojo.publish("/dnd/drop",_11b);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.replaceClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dojo.dnd._manager=null;_115.manager=dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};return _115;});},"dojox/grid/_RowSelector":function(){define("dojox/grid/_RowSelector",["dojo/_base/declare","./_View"],function(_11c,_11d){return _11c("dojox.grid._RowSelector",_11d,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_11e,_11f){var w=this.contentWidth||0;_11f.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_120,_121){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_120)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_120)){n.push("dojoxGridRowbarSelected");}_121.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});});},"dojox/grid/_Layout":function(){define("dojox/grid/_Layout",["dojo/_base/kernel","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-geometry","./cells","./_RowSelector"],function(dojo,_122,_123,_124,lang,_125){return _123("dojox.grid._Layout",null,{constructor:function(_126){this.grid=_126;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_127,_128,_129,_12a,_12b){var _12c=this.structure[_127].cells[0];var _12d=this.structure[_128].cells[0];var cell=null;var _12e=0;var _12f=0;for(var i=0,c;c=_12c[i];i++){if(c.index==_129){_12e=i;break;}}cell=_12c.splice(_12e,1)[0];cell.view=this.grid.views.views[_128];for(i=0,c=null;c=_12d[i];i++){if(c.index==_12a){_12f=i;break;}}if(!_12b){_12f+=1;}_12d.splice(_12f,0,cell);var _130=this.grid.getCell(this.grid.getSortIndex());if(_130){_130._currentlySorted=this.grid.getSortAsc();}this.cells=[];_129=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_129;this.cells.push(c);if("_currentlySorted" in c){var si=_129+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_129++;}}}_124.forEach(this.cells,function(c){var _131=c.markup[2].split(" ");var _132=parseInt(_131[1].substring(5));if(_132!=c.index){_131[1]="idx=\""+c.index+"\"";c.markup[2]=_131.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_133,_134){var cell=this.cells[_133];if(cell.hidden==_134){cell.hidden=!_134;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=_125.getMarginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_135,_136,_137){var self=this;var _138=function(_139){var w=0;if(_139.colSpan>1){w=0;}else{w=_139.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _13a={grid:this.grid,subrow:_135,layoutIndex:_136,index:this.cells.length};if(_137&&_137 instanceof _122.grid.cells._Base){var _13b=lang.clone(_137);_13a.unitWidth=_138(_13b._props);_13b=lang.mixin(_13b,this._defaultCellProps,_137._props,_13a);return _13b;}var _13c=_137.type||_137.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||_122.grid.cells.Cell;if(lang.isString(_13c)){_13c=lang.getObject(_13c);}_13a.unitWidth=_138(_137);return new _13c(lang.mixin({},this._defaultCellProps,_137,_13a));},addRowDef:function(_13d,_13e){var _13f=[];var _140=0,_141=0,_142=true;for(var i=0,def,cell;(def=_13e[i]);i++){cell=this.addCellDef(_13d,i,def);_13f.push(cell);this.cells.push(cell);if(_142&&cell.relWidth){_140+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_141+=window.parseInt(w,10);}else{if(w=="auto"){_142=false;}}}}}if(_140&&_142){_124.forEach(_13f,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_140)*(100-_141))+"%";}});}return _13f;},addRowsDef:function(_143){var _144=[];if(lang.isArray(_143)){if(lang.isArray(_143[0])){for(var i=0,row;_143&&(row=_143[i]);i++){_144.push(this.addRowDef(i,row));}}else{_144.push(this.addRowDef(0,_143));}}return _144;},addViewDef:function(_145){this._defaultCellProps=_145.defaultCell||{};if(_145.width&&_145.width=="auto"){delete _145.width;}return lang.mixin({},_145,{cells:this.addRowsDef(_145.rows||_145.cells)});},setStructure:function(_146){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:_122._scopeName+".grid._RowSelector"};if(lang.isString(this.grid.rowSelector)){var _147=this.grid.rowSelector;if(_147=="false"){sel=null;}else{if(_147!="true"){sel["width"]=_147;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _148=function(def){return ("name" in def||"field" in def||"get" in def);};var _149=function(def){if(lang.isArray(def)){if(lang.isArray(def[0])||_148(def[0])){return true;}}return false;};var _14a=function(def){return (def!==null&&lang.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_148(def))));};if(lang.isArray(_146)){var _14b=false;for(var i=0,st;(st=_146[i]);i++){if(_14a(st)){_14b=true;break;}}if(!_14b){s.push(this.addViewDef({cells:_146}));}else{for(i=0;(st=_146[i]);i++){if(_149(st)){s.push(this.addViewDef({cells:st}));}else{if(_14a(st)){s.push(this.addViewDef(st));}}}}}else{if(_14a(_146)){s.push(this.addViewDef(_146));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});});},"dojo/i18n":function(){define(["./_base/kernel","require","./has","./_base/array","./_base/lang","./_base/xhr"],function(dojo,_14c,has,_14d,lang){var _14e=dojo.i18n={},_14f=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_150=function(root,_151,_152,_153){for(var _154=[_152+_153],_155=_151.split("-"),_156="",i=0;i<_155.length;i++){_156+=(_156?"-":"")+_155[i];if(!root||root[_156]){_154.push(_152+_156+"/"+_153);}}return _154;},_157={},_158=dojo.getL10nName=function(_159,_15a,_15b){_15b=_15b?_15b.toLowerCase():dojo.locale;_159="dojo/i18n!"+_159.replace(/\./g,"/");_15a=_15a.replace(/\./g,"/");return (/root/i.test(_15b))?(_159+"/nls/"+_15a):(_159+"/nls/"+_15b+"/"+_15a);},_15c=function(_15d,_15e,_15f,_160,_161,load){_15d([_15e],function(root){var _162=_157[_15e+"/"]=lang.clone(root.root),_163=_150(!root._v1x&&root,_161,_15f,_160);_15d(_163,function(){for(var i=1;i<_163.length;i++){_157[_163[i]]=_162=lang.mixin(lang.clone(_162),arguments[i]);}var _164=_15e+"/"+_161;_157[_164]=_162;load&&load(lang.delegate(_162));});});},_165=function(id,_166){var _167=_14f.exec(id),_168=_167[1];return /^\./.test(_168)?_166(_168)+"/"+id.substring(_168.length):id;};load=function(id,_169,load){var _16a=_14f.exec(id),_16b=_16a[1]+"/",_16c=_16a[5]||_16a[4],_16d=_16b+_16c,_16e=(_16a[5]&&_16a[4]),_16f=_16e||dojo.locale,_170=_16d+"/"+_16f;if(_16e){if(_157[_170]){load(_157[_170]);}else{_15c(_169,_16d,_16b,_16c,_16f,load);}return;}var _171=dojo.config.extraLocale||[];_171=lang.isArray(_171)?_171:[_171];_171.push(_16f);_14d.forEach(_171,function(_172){_15c(_169,_16d,_16b,_16c,_172,_172==_16f&&load);});};true||has.add("dojo-v1x-i18n-Api",1);if(1){var _173=new Function("bundle","var __preAmdResult, __amdResult; function define(bundle){__amdResult= bundle;} __preAmdResult= eval(bundle); return [__preAmdResult, __amdResult];"),_174=function(url,_175,_176){return _175?(/nls\/[^\/]+\/[^\/]+$/.test(url)?_175:{root:_175,_v1x:1}):_176;},_177=function(deps,_178){var _179=[];dojo.forEach(deps,function(mid){var url=_14c.toUrl(mid+".js");if(_157[url]){_179.push(_157[url]);}else{try{var _17a=_14c(mid);if(_17a){_179.push(_17a);return;}}catch(e){}dojo.xhrGet({url:url,sync:true,load:function(text){var _17b=_173(text);_179.push(_157[url]=_174(url,_17b[0],_17b[1]));},error:function(){_179.push(_157[url]={});}});}});_178.apply(null,_179);};_14e.getLocalization=function(_17c,_17d,_17e){var _17f,_180=_158(_17c,_17d,_17e).substring(10);load(_180,(1&&!_14c.isXdUrl(_14c.toUrl(_180+".js"))?_177:_14c),function(_181){_17f=_181;});return _17f;};_14e.normalizeLocale=function(_182){var _183=_182?_182.toLowerCase():dojo.locale;if(_183=="root"){_183="ROOT";}return _183;};}return lang.mixin(_14e,{dynamic:true,normalize:_165,load:load,cache:function(mid,_184){_157[mid]=_184;}});});},"dojox/grid/_Grid":function(){require({cache:{"url:dojox/grid/resources/_Grid.html":"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n"}});define("dojox/grid/_Grid",["dojo/_base/kernel","../main","dojo/_base/declare","./_Events","./_Scroller","./_Layout","./_View","./_ViewManager","./_RowManager","./_FocusManager","./_EditManager","./Selection","./_RowSelector","./util","dijit/_Widget","dijit/_TemplatedMixin","dijit/CheckedMenuItem","dojo/text!./resources/_Grid.html","dojo/string","dojo/_base/array","dojo/_base/lang","dojo/_base/sniff","dojox/html/metrics","dojo/_base/html","dojo/query","dojo/dnd/common","dojo/i18n!dijit/nls/loading"],function(dojo,_185,_186,_187,_188,_189,_18a,_18b,_18c,_18d,_18e,_18f,_190,util,_191,_192,_193,_194,_195,_196,lang,has,_197,html,_198){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}var _199=_186("dojox.grid._Grid",[_191,_192,_187],{templateString:_194,classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:_189,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");_197.initOnFontResize();this.connect(_197,"onFontResize","textSizeChanged");util.funnelEvents(this.domNode,this,"doKeyEvent",util.keyEvents);if(this.selectionMode!="none"){this.domNode.setAttribute("aria-multiselectable",this.selectionMode=="single"?"false":"true");}html.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){html.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _19a=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_195.substitute(this.loadingMessage,_19a);this.errorMessage=_195.substitute(this.errorMessage,_19a);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){html.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){_196.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_19b){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_19b){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new _18c(this);this.focus=new _18d(this);this.edit=new _18e(this);},createSelection:function(){this.selection=new _18f(this);},createScroller:function(){this.scroller=new _188();this.scroller.grid=this;this.scroller.renderRow=lang.hitch(this,"renderRow");this.scroller.removeRow=lang.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_19c){},createViews:function(){this.views=new _18b(this);this.views.createView=lang.hitch(this,"createView");},createView:function(_19d,idx){var c=lang.getObject(_19d);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);html.attr(this.domNode,"align",this.isLeftToRight()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||_185._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_19e){var s=_19e;if(s&&lang.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=lang.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_19f){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_19f);},getColumnTogglingItems:function(){var _1a0,_1a1=[];_1a0=_196.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new _193({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_1a2){if(self.layout.setColumnVisibility(this._gridCell.index,_1a2)){var _1a3=this._gridCell.menuItems;if(_1a3.length>1){_196.forEach(_1a3,function(item){if(item!==this){item.setAttribute("checked",_1a2);}},this);}_1a2=_196.filter(self.layout.cells,function(c){if(c.menuItems.length>1){_196.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_1a2.length==1){_196.forEach(_1a2[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _1a4=_196.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_1a4,1);delete this._gridCell;_193.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_1a1.push(item);}return item;},this);if(_1a1.length==1){_1a1[0].set("disabled",true);}return _1a0;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){_196.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){_196.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_1a5){this.setScrollTop(0);},getItem:function(_1a6){return null;},showMessage:function(_1a7){if(_1a7){this.messagesNode.innerHTML=_1a7;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_1a8,_1a9){if(dojo.isIE&&!_1a8&&!_1a9&&this._autoHeight){return;}this._pendingChangeSize=_1a8;this._pendingResultSize=_1a9;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||html._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_1aa,_1ab){_1aa=_1aa||this._pendingChangeSize;_1ab=_1ab||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _1ac=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_1ac.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_1ab){_1aa=_1ab;}if(!this._autoHeight&&_1aa){html.marginBox(this.domNode,_1aa);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||html._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _1ad=_196.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||html._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_1ad&&hh===undefined){hh=this._getHeaderHeight();}}if(_1ad){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _1ae=(!this.initialWidth&&this.autoWidth);var w=_1ae?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_1ae){this.domNode.style.width=vw+"px";}},adaptHeight:function(_1af){var t=_1af===undefined?this._getHeaderHeight():_1af;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _1b0=0,_1b1=0;var _1b2=_196.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_1b0++;}else{_1b1++;}return (!has);});if(_1b0>0&&_1b1>0){_196.forEach(_1b2,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();html.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_1b3,_1b4){this.views.renderRow(_1b3,_1b4,this._skipRowRenormalize);},rowRemoved:function(_1b5){this.views.rowRemoved(_1b5);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_1b6){_1b6=Number(_1b6);if(this.updating){this.invalidated[_1b6]=true;}else{this.views.updateRow(_1b6);this.scroller.rowHeightChanged(_1b6);}},updateRows:function(_1b7,_1b8){_1b7=Number(_1b7);_1b8=Number(_1b8);var i;if(this.updating){for(i=0;i<_1b8;i++){this.invalidated[i+_1b7]=true;}}else{for(i=0;i<_1b8;i++){this.views.updateRow(i+_1b7,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_1b7);}},updateRowCount:function(_1b9){if(this.updating){this.invalidated.rowCount=_1b9;}else{this.rowCount=_1b9;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_1b9);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_1ba){this.views.updateRowStyles(_1ba);},getRowNode:function(_1bb){if(this.focus.focusView&&!(this.focus.focusView instanceof _190)){return this.focus.focusView.rowNodes[_1bb];}else{for(var i=0,_1bc;(_1bc=this.views.views[i]);i++){if(!(_1bc instanceof _190)){return _1bc.rowNodes[_1bb];}}}return null;},rowHeightChanged:function(_1bd){this.views.renormalizeRow(_1bd);this.scroller.rowHeightChanged(_1bd);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(has("ie")?100:50),scrollTo:function(_1be){if(!this.fastScroll){this.setScrollTop(_1be);return;}var _1bf=Math.abs(this.lastScrollTop-_1be);this.lastScrollTop=_1be;if(_1bf>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_1be;this.views.setScrollTop(_1be);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _1c0=this;this._pendingScroll=window.setTimeout(function(){delete _1c0._pendingScroll;_1c0.finishScrollJob();},200);}else{this.setScrollTop(_1be);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_1c1){this.scroller.scroll(this.views.setScrollTop(_1c1));},scrollToRow:function(_1c2){this.setScrollTop(this.scroller.findScrollTop(_1c2)+1);},styleRowNode:function(_1c3,_1c4){if(_1c4){this.rows.styleRowNode(_1c3,_1c4);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_1c5){return this.layout.cells[_1c5];},setCellWidth:function(_1c6,_1c7){this.getCell(_1c6).unitWidth=_1c7;},getCellName:function(_1c8){return "Cell "+_1c8.index;},canSort:function(_1c9){},sort:function(){},getSortAsc:function(_1ca){_1ca=_1ca==undefined?this.sortInfo:_1ca;return Boolean(_1ca>0);},getSortIndex:function(_1cb){_1cb=_1cb==undefined?this.sortInfo:_1cb;return Math.abs(_1cb)-1;},setSortIndex:function(_1cc,_1cd){var si=_1cc+1;if(_1cd!=undefined){si*=(_1cd?1:-1);}else{if(this.getSortIndex()==_1cc){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_1ce){if(this.canSort(_1ce)){this.sortInfo=_1ce;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_1cf,_1d0){this.onStartEdit(_1cf,_1d0);},doApplyCellEdit:function(_1d1,_1d2,_1d3){this.onApplyCellEdit(_1d1,_1d2,_1d3);},doCancelEdit:function(_1d4){this.onCancelEdit(_1d4);},doApplyEdit:function(_1d5){this.onApplyEdit(_1d5);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});_199.markupFactory=function(_1d6,node,ctor,_1d7){var _1d8=function(n){var w=html.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_1d6.structure&&node.nodeName.toLowerCase()=="table"){_1d6.structure=_198("> colgroup",node).map(function(cg){var sv=html.attr(cg,"span");var v={noscroll:(html.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(html.hasAttr(cg,"width")){v.width=_1d8(cg);}return v;});if(!_1d6.structure.length){_1d6.structure.push({__span:Infinity,cells:[]});}_198("thead > tr",node).forEach(function(tr,_1d9){var _1da=0;var _1db=0;var _1dc;var _1dd=null;_198("> th",tr).map(function(th){if(!_1dd){_1dc=0;_1dd=_1d6.structure[0];}else{if(_1da>=(_1dc+_1dd.__span)){_1db++;_1dc+=_1dd.__span;var _1de=_1dd;_1dd=_1d6.structure[_1db];}}var cell={name:lang.trim(html.attr(th,"name")||th.innerHTML),colSpan:parseInt(html.attr(th,"colspan")||1,10),type:lang.trim(html.attr(th,"cellType")||""),id:lang.trim(html.attr(th,"id")||"")};_1da+=cell.colSpan;var _1df=html.attr(th,"rowspan");if(_1df){cell.rowSpan=_1df;}if(html.hasAttr(th,"width")){cell.width=_1d8(th);}if(html.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(html.attr(th,"relWidth"),10);}if(html.hasAttr(th,"hidden")){cell.hidden=(html.attr(th,"hidden")=="true"||html.attr(th,"hidden")===true);}if(_1d7){_1d7(th,cell);}cell.type=cell.type?lang.getObject(cell.type):_185.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_1dd.cells[_1d9]){_1dd.cells[_1d9]=[];}_1dd.cells[_1d9].push(cell);});});}return new ctor(_1d6,node);};return _199;});},"dijit/nls/loading":function(){define({root:({loadingState:"Loading...",errorState:"Sorry, an error occurred"}),"zh":true,"zh-tw":true,"tr":true,"th":true,"sv":true,"sl":true,"sk":true,"ru":true,"ro":true,"pt":true,"pt-pt":true,"pl":true,"nl":true,"nb":true,"ko":true,"kk":true,"ja":true,"it":true,"hu":true,"he":true,"fr":true,"fi":true,"es":true,"el":true,"de":true,"da":true,"cs":true,"ca":true,"ar":true});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojo/dnd/Mover":function(){define(["../main","../Evented","../touch","./common","./autoscroll"],function(dojo,_1e0,_1e1){dojo.declare("dojo.dnd.Mover",[_1e0],{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,_1e1.move,this,"onFirstMove"),dojo.connect(d,_1e1.move,this,"onMouseMove"),dojo.connect(d,_1e1.release,this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.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=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._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);}dojo.disconnect(this.events.shift());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});return dojo.dnd.Mover;});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(dojo,_1e2,lang,_1e3){return dojo.declare("dojo.Stateful",null,{postscript:function(_1e4){if(_1e4){lang.mixin(this,_1e4);}},get:function(name){return this[name];},set:function(name,_1e5){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _1e6=this[name];this[name]=_1e5;if(this._watchCallbacks){this._watchCallbacks(name,_1e6,_1e5);}return this;},watch:function(name,_1e7){var _1e8=this._watchCallbacks;if(!_1e8){var self=this;_1e8=this._watchCallbacks=function(name,_1e9,_1ea,_1eb){var _1ec=function(_1ed){if(_1ed){_1ed=_1ed.slice();for(var i=0,l=_1ed.length;i<l;i++){try{_1ed[i].call(self,name,_1e9,_1ea);}catch(e){console.error(e);}}}};_1ec(_1e8["_"+name]);if(!_1eb){_1ec(_1e8["*"]);}};}if(!_1e7&&typeof name==="function"){_1e7=name;name="*";}else{name="_"+name;}var _1ee=_1e8[name];if(typeof _1ee!=="object"){_1ee=_1e8[name]=[];}_1ee.push(_1e7);return {unwatch:function(){_1ee.splice(_1e3.indexOf(_1ee,_1e7),1);}};}});});},"dojo/touch":function(){define(["./_base/kernel","./on","./has","./mouse"],function(dojo,on,has,_1ef){function _1f0(type){return function(node,_1f1){return on(node,type,_1f1);};};var _1f2=has("touch");dojo.touch={press:_1f0(_1f2?"touchstart":"mousedown"),move:_1f0(_1f2?"touchmove":"mousemove"),release:_1f0(_1f2?"touchend":"mouseup"),cancel:_1f2?_1f0("touchcancel"):_1ef.leave};return dojo.touch;});},"dojox/grid/Selection":function(){define("dojox/grid/Selection",["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-attr"],function(_1f3,_1f4,lang,_1f5){return _1f3("dojox.grid.Selection",null,{constructor:function(_1f6){this.grid=_1f6;this.selected=[];this.setMode(_1f6.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_1f7){return this.grid.onCanSelect(_1f7);},onCanDeselect:function(_1f8){return this.grid.onCanDeselect(_1f8);},onSelected:function(_1f9){},onDeselected:function(_1fa){},onChanging:function(){},onChanged:function(){},isSelected:function(_1fb){if(this.mode=="none"){return false;}return this.selected[_1fb];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_1fc){if(this.mode=="none"){return -1;}for(var i=_1fc+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _1fd=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_1fd.push(i);}}return _1fd;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_1fe){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_1fe);this.addToSelection(_1fe);}else{this.toggleSelect(_1fe);}},addToSelection:function(_1ff){if(this.mode=="none"){return;}if(lang.isArray(_1ff)){_1f4.forEach(_1ff,this.addToSelection,this);return;}_1ff=Number(_1ff);if(this.selected[_1ff]){this.selectedIndex=_1ff;}else{if(this.onCanSelect(_1ff)!==false){this.selectedIndex=_1ff;var _200=this.grid.getRowNode(_1ff);if(_200){_1f5.set(_200,"aria-selected","true");}this._beginUpdate();this.selected[_1ff]=true;this.onSelected(_1ff);this._endUpdate();}}},deselect:function(_201){if(this.mode=="none"){return;}if(lang.isArray(_201)){_1f4.forEach(_201,this.deselect,this);return;}_201=Number(_201);if(this.selectedIndex==_201){this.selectedIndex=-1;}if(this.selected[_201]){if(this.onCanDeselect(_201)===false){return;}var _202=this.grid.getRowNode(_201);if(_202){_1f5.set(_202,"aria-selected","false");}this._beginUpdate();delete this.selected[_201];this.onDeselected(_201);this._endUpdate();}},setSelected:function(_203,_204){this[(_204?"addToSelection":"deselect")](_203);},toggleSelect:function(_205){if(lang.isArray(_205)){_1f4.forEach(_205,this.toggleSelect,this);return;}this.setSelected(_205,!this.selected[_205]);},_range:function(_206,inTo,func){var s=(_206>=0?_206:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_207,inTo){this._range(_207,inTo,lang.hitch(this,"addToSelection"));},deselectRange:function(_208,inTo){this._range(_208,inTo,lang.hitch(this,"deselect"));},insert:function(_209){this.selected.splice(_209,0,false);if(this.selectedIndex>=_209){this.selectedIndex++;}},remove:function(_20a){this.selected.splice(_20a,1);if(this.selectedIndex>=_20a){this.selectedIndex--;}},deselectAll:function(_20b){for(var i in this.selected){if((i!=_20b)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_20c,_20d,_20e){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_20c);}else{var _20f=this.selectedIndex;if(!_20d){this.deselectAll(_20c);}if(_20e){this.selectRange(_20f,_20c);}else{if(_20d){this.toggleSelect(_20c);}else{this.addToSelection(_20c);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/touch","dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/_base/lang","dojo/_base/window"],function(_210,_211,_212,_213,lang,win){return _212("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_211.forEach(["onmouseenter","onmouseleave",_210.press],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);_211.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,lang.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_214){if(!this.disabled){switch(_214.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchpress":this._set("active",true);this._mouseDown=true;var _215=this.connect(win.body(),_210.release,function(){this._mouseDown=false;this._set("active",false);this.disconnect(_215);});break;}}},_setStateClass:function(){var _216=this.baseClass.split(" ");function _217(_218){_216=_216.concat(_211.map(_216,function(c){return c+_218;}),"dijit"+_218);};if(!this.isLeftToRight()){_217("Rtl");}var _219=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_217(_219);}if(this.state){_217(this.state);}if(this.selected){_217("Selected");}if(this.disabled){_217("Disabled");}else{if(this.readOnly){_217("ReadOnly");}else{if(this.active){_217("Active");}else{if(this.hovering){_217("Hover");}}}}if(this.focused){_217("Focused");}var tn=this.stateNode||this.domNode,_21a={};_211.forEach(tn.className.split(" "),function(c){_21a[c]=true;});if("_stateClasses" in this){_211.forEach(this._stateClasses,function(c){delete _21a[c];});}_211.forEach(_216,function(c){_21a[c]=true;});var _21b=[];for(var c in _21a){_21b.push(c);}tn.className=_21b.join(" ");this._stateClasses=_216;},_trackMouseState:function(node,_21c){var _21d=false,_21e=false,_21f=false;var self=this,cn=lang.hitch(this,"connect",node);function _220(){var _221=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);_213.toggle(node,_21c+"Hover",_21d&&!_21e&&!_221);_213.toggle(node,_21c+"Active",_21e&&!_221);_213.toggle(node,_21c+"Focused",_21f&&!_221);};cn("onmouseenter",function(){_21d=true;_220();});cn("onmouseleave",function(){_21d=false;_21e=false;_220();});cn(_210.press,function(){_21e=true;_220();});cn(_210.release,function(){_21e=false;_220();});cn("onfocus",function(){_21f=true;_220();});cn("onblur",function(){_21f=false;_220();});this.watch("disabled",_220);this.watch("readOnly",_220);}});});},"url:dojox/grid/resources/_Grid.html":"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n","dojox/grid/_RowManager":function(){define("dojox/grid/_RowManager",["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_222,lang,_223){var _224=function(_225,_226){if(_225.style.cssText==undefined){_225.setAttribute("style",_226);}else{_225.style.cssText=_226;}};return _222("dojox.grid._RowManager",null,{constructor:function(_227){this.grid=_227;},linesToEms:2,overRow:-2,prepareStylingRow:function(_228,_229){return {index:_228,node:_229,odd:Boolean(_228&1),selected:!!this.grid.selection.isSelected(_228),over:this.isOver(_228),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_22a,_22b){var row=this.prepareStylingRow(_22a,_22b);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_22c){var i=_22c;i.node.className=i.customClasses;var h=i.node.style.height;_224(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_22d){this.grid.updateRowStyles(_22d);},setOverRow:function(_22e){var last=this.overRow;this.overRow=_22e;if((last!=this.overRow)&&(lang.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_22f){return (this.overRow==_22f&&!_223.contains(this.grid.domNode,"dojoxGridColumnResizing"));}});});},"dojo/_base/url":function(){define(["./kernel"],function(dojo){var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_230=function(){var n=null,_231=arguments,uri=[_231[0]];for(var i=1;i<_231.length;i++){if(!_231[i]){continue;}var _232=new _230(_231[i]+""),_233=new _230(uri[0]+"");if(_232.path==""&&!_232.scheme&&!_232.authority&&!_232.query){if(_232.fragment!=n){_233.fragment=_232.fragment;}_232=_233;}else{if(!_232.scheme){_232.scheme=_233.scheme;if(!_232.authority){_232.authority=_233.authority;if(_232.path.charAt(0)!="/"){var path=_233.path.substring(0,_233.path.lastIndexOf("/")+1)+_232.path;var segs=path.split("/");for(var j=0;j<segs.length;j++){if(segs[j]=="."){if(j==segs.length-1){segs[j]="";}else{segs.splice(j,1);j--;}}else{if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){if(j==(segs.length-1)){segs.splice(j,1);segs[j-1]="";}else{segs.splice(j-1,2);j-=2;}}}}_232.path=segs.join("/");}}}}uri=[];if(_232.scheme){uri.push(_232.scheme,":");}if(_232.authority){uri.push("//",_232.authority);}uri.push(_232.path);if(_232.query){uri.push("?",_232.query);}if(_232.fragment){uri.push("#",_232.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};_230.prototype.toString=function(){return this.uri;};return dojo._Url=_230;});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_234,map,_235,_236){_236=_236||dojo.global;_235=_235?lang.hitch(_236,_235):function(v){return v;};return _234.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_237,key,_238){var _239=lang.getObject(key,false,map);if(_238){_239=lang.getObject(_238,false,_236).call(_236,_239,key);}return _235(_239,key).toString();});};dojo.string.trim=String.prototype.trim?lang.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return dojo.string;});},"dojo/dnd/Avatar":function(){define(["../main","./common"],function(dojo){dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_23a){this.manager=_23a;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_23b=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_23b.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_23b.creator){node=_23b._normalizedCreator(_23b.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _23c=dojo.create("table"),_23d=dojo.create("tbody",null,_23c);_23d.appendChild(node);node=_23c;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});return dojo.dnd.Avatar;});},"dojox/grid/_Scroller":function(){define("dojox/grid/_Scroller",["dijit/registry","dojo/_base/declare","dojo/_base/lang","./util","dojo/_base/html"],function(_23e,_23f,lang,util,html){var _240=function(_241){var i=0,n,p=_241.parentNode;while((n=p.childNodes[i++])){if(n==_241){return i-1;}}return -1;};var _242=function(_243){if(!_243){return;}dojo.forEach(_23e.toArray(),function(w){if(w.domNode&&html.isDescendant(w.domNode,_243,true)){w.destroy();}});};var _244=function(_245){var node=html.byId(_245);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _246=function(_247,_248){var _249=[];var i=0,n;while((n=_247.childNodes[i])){i++;if(_244(n)==_248){_249.push(n);}}return _249;};var _24a=function(_24b){return _246(_24b,"div");};return _23f("dojox.grid._Scroller",null,{constructor:function(_24c){this.setContentNodes(_24c);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_24d,_24e,_24f){switch(arguments.length){case 3:this.rowsPerPage=_24f;case 2:this.keepRows=_24e;case 1:this.rowCount=_24d;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=lang.hitch(this,"onscroll");}},_getPageCount:function(_250,_251){return _250?(Math.ceil(_250/_251)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_252){this.keepRows=_252;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_253){this.contentNodes=_253;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_254){this.invalidateNodes();this.rowCount=_254;var _255=this.pageCount;if(_255===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_255){for(var i=_255-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_255){this.height+=this.defaultPageHeight*(this.pageCount-_255-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_256){return Boolean(this.getDefaultPageNode(_256));},measurePage:function(_257){if(this.grid.rowHeight){var _258=this.grid.rowHeight+1;return ((_257+1)*this.rowsPerPage>this.rowCount?this.rowCount-_257*this.rowsPerPage:this.rowsPerPage)*_258;}var n=this.getDefaultPageNode(_257);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_259,_25a){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_259].style.top=_25a+"px";}},repositionPages:function(_25b){var _25c=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_25c[_25b];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_25b):0);for(var p=_25b+1;p<=last;p++){n=_25c[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_25d){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_25d]);}},preparePage:function(_25e,_25f){var p=(_25f?this.popPage():null);for(var i=0;i<this.colCount;i++){var _260=this.pageNodes[i];var _261=(p===null?this.createPageNode():this.invalidatePageNode(p,_260));_261.pageIndex=_25e;_260[_25e]=_261;}},renderPage:function(_262){var _263=[];var i,j;for(i=0;i<this.colCount;i++){_263[i]=this.pageNodes[i][_262];}for(i=0,j=_262*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_263);}},removePage:function(_264){for(var i=0,j=_264*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_265){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_265,this.pageNodes[i]);if(n){html.destroy(n);}}},pacify:function(_266){},pacifying:false,pacifyTicks:200,setPacifying:function(_267){if(this.pacifying!=_267){this.pacifying=_267;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _268=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _268;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _269=(!this._invalidating);if(!_269){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_269=true;}}if(_269){this.needPage(this.page,this.pageTop);}var _26a=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _26b=this.getPageHeight(this.page);this.averageRowHeight=(_26b>0&&_26a>0)?(_26b/_26a):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _26c=this.pageCount-1;var _26d=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_26c]=_26d;return _26d;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_26e,_26f,_270){if(this.pageExists(_26e)){var oh=this.getPageHeight(_26e);var h=(this.measurePage(_26e));if(h===undefined){h=oh;}this.pageHeights[_26e]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_26f)){if(!_270){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_26e);}}else{this.repositionPages(_26e);}}return h;}return 0;},rowHeightChanged:function(_271,_272){this.updatePageHeight(Math.floor(_271/this.rowsPerPage),false,_272);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");html.attr(p,"role","presentation");p.style.position="absolute";p.style[this.grid.isLeftToRight()?"left":"right"]="0";return p;},getPageHeight:function(_273){var ph=this.pageHeights[_273];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_274){return this.stack.push(_274);},popPage:function(){return this.stack.shift();},findPage:function(_275){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_275){break;}}this.page=i;this.pageTop=h;},buildPage:function(_276,_277,_278){this.preparePage(_276,_277);this.positionPage(_276,_278);this.installPage(_276);this.renderPage(_276);this.pushPage(_276);},needPage:function(_279,_27a){var h=this.getPageHeight(_279),oh=h;if(!this.pageExists(_279)){this.buildPage(_279,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_27a);h=this.updatePageHeight(_279,true);}else{this.positionPage(_279,_27a);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_27b){this.grid.scrollTop=_27b;if(this.colCount){this.startPacify();this.findPage(_27b);var h=this.height;var b=this.getScrollBottom(_27b);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_27b);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_27c){return (this.windowHeight>=0?_27c+this.windowHeight:-1);},processNodeEvent:function(e,_27d){var t=e.target;while(t&&(t!=_27d)&&t.parentNode&&(t.parentNode.parentNode!=_27d)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_27d)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_240(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_27e,_27f){},removeRow:function(_280){},getDefaultPageNode:function(_281){return this.getDefaultNodes()[_281];},positionPageNode:function(_282,_283){},getPageNodePosition:function(_284){return _284.offsetTop;},invalidatePageNode:function(_285,_286){var p=_286[_285];if(p){delete _286[_285];this.removePage(_285,p);_242(p);p.innerHTML="";}return p;},getPageRow:function(_287){return _287*this.rowsPerPage;},getLastPageRow:function(_288){return Math.min(this.rowCount,this.getPageRow(_288+1))-1;},getFirstVisibleRow:function(_289,_28a,_28b){if(!this.pageExists(_289)){return 0;}var row=this.getPageRow(_289);var _28c=this.getDefaultNodes();var rows=_24a(_28c[_289]);for(var i=0,l=rows.length;i<l&&_28a<_28b;i++,row++){_28a+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_28d,_28e,_28f){if(!this.pageExists(_28d)){return 0;}var _290=this.getDefaultNodes();var row=this.getLastPageRow(_28d);var rows=_24a(_290[_28d]);for(var i=rows.length-1;i>=0&&_28e>_28f;i--,row--){_28e-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_291){var _292=this.getDefaultNodes();var rows=_24a(_292[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_291){this.offset=h-(t-_291);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_293){var _294=Math.floor(_293/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_294;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_294;this.needPage(_294,this.pageTop);var _295=this.getDefaultNodes();var rows=_24a(_295[_294]);var r=_293-this.rowsPerPage*_294;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});});},"dojox/grid/_Events":function(){define("dojox/grid/_Events",["dojo/keys","dojo/dom-class","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff"],function(keys,_296,_297,_298,has){return _297("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_299){var i=_299;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_299);this.edit.styleRow(_299);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var _29a;switch(e.keyCode){case keys.ESCAPE:this.edit.cancel();break;case keys.ENTER:if(!this.edit.isEditing()){_29a=this.focus.getHeaderIndex();if(_29a>=0){this.setSortIndex(_29a);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_298.stop(e);}if(!e.shiftKey){var _29b=this.edit.isEditing();this.edit.apply();if(!_29b){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _29c=this.focus.focusView||this.views.views[0];_29c.content.decorateEvent(e);this.onRowClick(e);_298.stop(e);}break;case keys.SPACE:if(!this.edit.isEditing()){_29a=this.focus.getHeaderIndex();if(_29a>=0){this.setSortIndex(_29a);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_298.stop(e);}break;case keys.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case keys.LEFT_ARROW:case keys.RIGHT_ARROW:if(!this.edit.isEditing()){var _29d=e.keyCode;_298.stop(e);_29a=this.focus.getHeaderIndex();if(_29a>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_29a,(_29d==keys.LEFT_ARROW?-1:1)*5);}else{var _29e=(_29d==keys.LEFT_ARROW)?1:-1;if(this.isLeftToRight()){_29e*=-1;}this.focus.move(0,_29e);}}break;case keys.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_298.stop(e);this.focus.move(-1,0);}break;case keys.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_298.stop(e);this.focus.move(1,0);}break;case keys.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_298.stop(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case keys.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_298.stop(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){_296.add(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){_296.remove(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _29f;if(this._click.length>1&&has("ie")){_29f=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_29f=this._click[0];}else{_29f=e;}}this.focus.setFocusCell(_29f.cell,_29f.rowIndex);this.onRowClick(_29f);this.edit.setEditCell(_29f.cell,_29f.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_2a0,_2a1){this.edit.cellFocus(_2a0,_2a1);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){_298.stop(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){_296.add(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){_296.remove(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){_298.stop(e);}},onStartEdit:function(_2a2,_2a3){},onApplyCellEdit:function(_2a4,_2a5,_2a6){},onCancelEdit:function(_2a7){},onApplyEdit:function(_2a8){},onCanSelect:function(_2a9){return true;},onCanDeselect:function(_2aa){return true;},onSelected:function(_2ab){this.updateRowStyles(_2ab);},onDeselected:function(_2ac){this.updateRowStyles(_2ac);},onSelectionChanged:function(){}});});},"dojo/dnd/autoscroll":function(){define(["../main","../window"],function(dojo){dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_2ad,_2ae;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n),_2af=(s.overflow.toLowerCase() in dojo.dnd._validOverflow),_2b0=(s.overflowX.toLowerCase() in dojo.dnd._validOverflow),_2b1=(s.overflowY.toLowerCase() in dojo.dnd._validOverflow);if(_2af||_2b0||_2b1){b=dojo._getContentBox(n,s);t=dojo.position(n,true);}if(_2af||_2b0){w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2);rx=e.pageX-t.x;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;}dx=0;if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}_2ad=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_2af||_2b1){h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2);ry=e.pageY-t.y;if(dojo.isWebKit||dojo.isOpera){ry+=dojo.body().scrollTop;}dy=0;if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}_2ae=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};return dojo.dnd;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_2b2,has,_2b3,win,_2b4){var _2b5={},hash={};var _2b6={length:0,add:function(_2b7){if(hash[_2b7.id]){throw new Error("Tried to register widget with id=="+_2b7.id+" but that id is already registered");}hash[_2b7.id]=_2b7;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_2b8){var id;do{id=_2b8+"_"+(_2b8 in _2b5?++_2b5[_2b8]:_2b5[_2b8]=0);}while(hash[id]);return _2b4._scopeName=="dijit"?id:_2b4._scopeName+"_"+id;},findWidgets:function(root){var _2b9=[];function _2ba(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _2bb=node.getAttribute("widgetId");if(_2bb){var _2bc=hash[_2bb];if(_2bc){_2b9.push(_2bc);}}else{_2ba(node);}}}};_2ba(root);return _2b9;},_destroyAll:function(){_2b4._curFocus=null;_2b4._prevFocus=null;_2b4._activeStack=[];_2b2.forEach(_2b6.findWidgets(win.body()),function(_2bd){if(!_2bd._destroyed){if(_2bd.destroyRecursive){_2bd.destroyRecursive();}else{if(_2bd.destroy){_2bd.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};if(has("ie")){_2b3.addOnWindowUnload(function(){_2b6._destroyAll();});}_2b4.registry=_2b6;return _2b6;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_2be,_2bf,_2c0,_2c1){_2be.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_2c1[name]=_2c0[name];});_2c1.defaultDuration=_2bf["defaultDuration"]||200;return _2c1;});},"dojox/html/metrics":function(){define("dojox/html/metrics",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","dojo/ready","dojo/_base/unload","dojo/_base/window","dojo/dom-geometry"],function(_2c2,lang,has,_2c3,_2c4,_2c5,_2c6){var dhm=lang.getObject("dojox.html.metrics",true);var _2c7=lang.getObject("dojox");dhm.getFontMeasurements=function(){var _2c8={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(has("ie")){_2c5.doc.documentElement.style.fontSize="100%";}var div=_2c5.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";_2c5.body().appendChild(div);for(var p in _2c8){ds.fontSize=p;_2c8[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}_2c5.body().removeChild(div);div=null;return _2c8;};var _2c9=null;dhm.getCachedFontMeasurements=function(_2ca){if(_2ca||!_2c9){_2c9=dhm.getFontMeasurements();}return _2c9;};var _2cb=null,_2cc={};dhm.getTextBox=function(text,_2cd,_2ce){var m,s;if(!_2cb){m=_2cb=_2c5.doc.createElement("div");var c=_2c5.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";_2c5.body().appendChild(c);}else{m=_2cb;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_2cd){for(var i in _2cd){if(i in _2cc){continue;}s[i]=_2cd[i];}}if(arguments.length>2&&_2ce){m.className=_2ce;}m.innerHTML=text;var box=_2c6.position(m);box.w=m.parentNode.scrollWidth;return box;};var _2cf={w:16,h:16};dhm.getScrollbar=function(){return {w:_2cf.w,h:_2cf.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_2d0){var f=dhm._fontResizeNode=_2c5.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[_2c7._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[_2c7._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");_2c5.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};_2c4.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(has("ie")&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});_2c3(function(){try{var n=_2c5.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";_2c5.body().appendChild(n);_2cf.w=n.offsetWidth-n.clientWidth;_2cf.h=n.offsetHeight-n.clientHeight;_2c5.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in _2c2.config&&!!_2c2.config.fontSizeWatch){dhm.initOnFontResize();}});return dhm;});},"dojox/grid/_EditManager":function(){define("dojox/grid/_EditManager",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/sniff","./util"],function(lang,_2d1,_2d2,_2d3,has,util){return _2d2("dojox.grid._EditManager",null,{constructor:function(_2d4){this.grid=_2d4;if(has("ie")){this.connections=[_2d3.connect(document.body,"onfocus",lang.hitch(this,"_boomerangFocus"))];}else{this.connections=[_2d3.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){_2d1.forEach(this.connections,_2d3.disconnect);},cellFocus:function(_2d5,_2d6){if(this.grid.singleClickEdit||this.isEditRow(_2d6)){this.setEditCell(_2d5,_2d6);}else{this.apply();}if(this.isEditing()||(_2d5&&_2d5.editable&&_2d5.alwaysEditing)){this._focusEditor(_2d5,_2d6);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_2d7){if(_2d7.index==this.info.rowIndex){_2d7.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_2d8,_2d9){return (this.info.rowIndex===_2d8)&&(this.info.cell.index==_2d9);},isEditRow:function(_2da){return this.info.rowIndex===_2da;},setEditCell:function(_2db,_2dc){if(!this.isEditCell(_2dc,_2db.index)&&this.grid.canEdit&&this.grid.canEdit(_2db,_2dc)){this.start(_2db,_2dc,this.isEditRow(_2dc)||_2db.editable);}},_focusEditor:function(_2dd,_2de){util.fire(_2dd,"focus",[_2de]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(has("ie")){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_2df,_2e0,_2e1){if(!this._isValidInput()){return;}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_2e0)){this.applyRowEdit();this.grid.updateRow(_2e0);}if(_2e1){this.info={cell:_2df,rowIndex:_2e0};this.grid.doStartEdit(_2df,_2e0);this.grid.updateRow(_2e0);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_2df,_2e0);this._doCatchBoomerang();},_editorDo:function(_2e2){var c=this.info.cell;if(c&&c.editable){c[_2e2](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_2e3,_2e4,_2e5){if(this.grid.canEdit(_2e4,_2e5)){this.grid.doApplyCellEdit(_2e3,_2e5,_2e4.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_2e6,_2e7){var c=this.info.cell;if(this.isEditRow(_2e6)&&(!_2e7||c.view==_2e7)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_2e8,_2e9){var c=this.info.cell;if(this.isEditRow(_2e9)&&c.view==_2e8&&c.editable){c.restore(this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);}});});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/sniff","./_base/manager","."],function(_2ea,_2eb,_2ec,dom,_2ed,_2ee,has,_2ef,_2f0){var _2f1=(_2f0._isElementShown=function(elem){var s=_2ee.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_2ed.get(elem,"type")!="hidden");});_2f0.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _2ed.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2f2=elem.contentDocument;if("designMode" in _2f2&&_2f2.designMode=="on"){return true;}body=_2f2.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body&&(body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true"));default:return elem.contentEditable=="true";}};var _2f3=(_2f0.isTabNavigable=function(elem){if(_2ed.get(elem,"disabled")){return false;}else{if(_2ed.has(elem,"tabIndex")){return _2ed.get(elem,"tabIndex")>=0;}else{return _2f0.hasDefaultTabStop(elem);}}});_2f0._getTabNavigable=function(root){var _2f4,last,_2f5,_2f6,_2f7,_2f8,_2f9={};function _2fa(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2fb=function(_2fc){for(var _2fd=_2fc.firstChild;_2fd;_2fd=_2fd.nextSibling){if(_2fd.nodeType!=1||(has("ie")&&_2fd.scopeName!=="HTML")||!_2f1(_2fd)){continue;}if(_2f3(_2fd)){var _2fe=_2ed.get(_2fd,"tabIndex");if(!_2ed.has(_2fd,"tabIndex")||_2fe==0){if(!_2f4){_2f4=_2fd;}last=_2fd;}else{if(_2fe>0){if(!_2f5||_2fe<_2f6){_2f6=_2fe;_2f5=_2fd;}if(!_2f7||_2fe>=_2f8){_2f8=_2fe;_2f7=_2fd;}}}var rn=_2fa(_2fd);if(_2ed.get(_2fd,"checked")&&rn){_2f9[rn]=_2fd;}}if(_2fd.nodeName.toUpperCase()!="SELECT"){_2fb(_2fd);}}};if(_2f1(root)){_2fb(root);}function rs(node){return _2f9[_2fa(node)]||node;};return {first:rs(_2f4),last:rs(last),lowest:rs(_2f5),highest:rs(_2f7)};};_2f0.getFirstInTabbingOrder=function(root){var _2ff=_2f0._getTabNavigable(dom.byId(root));return _2ff.lowest?_2ff.lowest:_2ff.first;};_2f0.getLastInTabbingOrder=function(root){var _300=_2f0._getTabNavigable(dom.byId(root));return _300.last?_300.last:_300.highest;};return {hasDefaultTabStop:_2f0.hasDefaultTabStop,isTabNavigable:_2f0.isTabNavigable,_getTabNavigable:_2f0._getTabNavigable,getFirstInTabbingOrder:_2f0.getFirstInTabbingOrder,getLastInTabbingOrder:_2f0.getLastInTabbingOrder};});},"dijit/CheckedMenuItem":function(){require({cache:{"url:dijit/templates/CheckedMenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&#160;</td>\n</tr>\n"}});define("dijit/CheckedMenuItem",["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(_301,_302,_303,_304){return _301("dijit.CheckedMenuItem",_303,{templateString:_304,checked:false,_setCheckedAttr:function(_305){_302.toggle(this.domNode,"dijitCheckedMenuItemChecked",_305);this.domNode.setAttribute("aria-checked",_305);this._set("checked",_305);},iconClass:"",onChange:function(){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});});},"dojo/dnd/Container":function(){define(["../main","../Evented","./common","../parser"],function(dojo,_306){dojo.declare("dojo.dnd.Container",_306,{skipForm:false,constructor:function(node,_307){this.node=dojo.byId(node);if(!_307){_307={};}this.creator=_307.creator||null;this.skipForm=_307.skipForm;this.parent=_307.dropParent&&dojo.byId(_307.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_307&&_307._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.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||dojo.global;var m=this.map,e=dojo.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 dojo.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=dojo.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,_308,_309){if(!this.parent.firstChild){_309=null;}else{if(_308){if(!_309){_309=this.parent.firstChild;}}else{if(_309){_309=_309.nextSibling;}}}if(_309){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,_309);}}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(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_30a,node,ctor){_30a._skipStartup=true;return new ctor(node,_30a);},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=dojo.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||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_30b){var _30c="dojoDnd"+type;var _30d=type.toLowerCase()+"State";dojo.replaceClass(this.node,_30c+_30b,_30c+this[_30d]);this[_30d]=_30b;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _30e=node.parentNode;_30e;node=_30e,_30e=node.parentNode){if(_30e==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){return dojo.create(tag,{innerHTML:text});};};dojo.dnd._createTrTd=function(text){var tr=dojo.create("tr");dojo.create("td",{innerHTML:text},tr);return tr;};dojo.dnd._createSpan=function(text){return dojo.create("span",{innerHTML:text});};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _30f=item&&dojo.isObject(item),data,type,n;if(_30f&&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=(_30f&&item.data)?item.data:item;type=(_30f&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};return dojo.dnd.Container;});},"dojo/dnd/common":function(){define(["../main"],function(dojo){dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.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;};return dojo.dnd;});},"dojox/grid/_ViewManager":function(){define("dojox/grid/_ViewManager",["dojo/_base/declare","dojo/_base/sniff","dojo/dom-class"],function(_310,has,_311){return _310("dojox.grid._ViewManager",null,{constructor:function(_312){this.grid=_312;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_313){_313.idx=this.views.length;this.views.push(_313);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _314=[];for(var i=0,v;v=this.views[i];i++){_314.push(v.contentNode);}return _314;},forEach:function(_315){for(var i=0,v;v=this.views[i];i++){_315(v,i);}},onEach:function(_316,_317){_317=_317||[];for(var i=0,v;v=this.views[i];i++){if(_316 in v){v[_316].apply(v,_317);}}},normalizeHeaderNodeHeight:function(){var _318=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_318.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_318);},normalizeRowNodeHeights:function(_319){var h=0;var _31a=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_319.length<=1){return;}for(var i=0,n;(n=_319[i]);i++){if(!_311.contains(n,"dojoxGridNonNormalizedCell")){_31a[i]=n.firstChild.offsetHeight;h=Math.max(h,_31a[i]);}}h=(h>=0?h:0);if((has("mozilla")||has("ie")>8)&&h){h++;}}for(i=0;(n=_319[i]);i++){if(_31a[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_31b){var _31c=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_31b));i++){n.firstChild.style.height="";_31c.push(n);}this.normalizeRowNodeHeights(_31c);},getViewWidth:function(_31d){return this.views[_31d].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_31e){_31e.headerContentNode.style.height="";});var h=0;this.forEach(function(_31f){h=Math.max(_31f.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_320){h=Math.max(_320.domNode.offsetHeight,h);});return h;},findClient:function(_321){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length,self=this;var c=(w<=0?len:this.findClient());var _322=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!self.grid.isLeftToRight()){ds.right=l+"px";if(has("ff")<4||has("webkit")){hs.right=l+v.getScrollbarWidth()+"px";hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_322(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_322(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_322(v,l);}return l;},renderRow:function(_323,_324,_325){var _326=[];for(var i=0,v,n,_327;(v=this.views[i])&&(n=_324[i]);i++){_327=v.renderRow(_323);n.appendChild(_327);_326.push(_327);}if(!_325){this.normalizeRowNodeHeights(_326);}},rowRemoved:function(_328){this.onEach("rowRemoved",[_328]);},updateRow:function(_329,_32a){for(var i=0,v;v=this.views[i];i++){v.updateRow(_329);}if(!_32a){this.renormalizeRow(_329);}},updateRowStyles:function(_32b){this.onEach("updateRowStyles",[_32b]);},setScrollTop:function(_32c){var top=_32c;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_32c);if(has("ie")&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});});},"dojox/grid/cells":function(){define("dojox/grid/cells",["../main","./cells/_base"],function(_32d){return _32d.grid.cells;});},"dijit/_Widget":function(){define("dijit/_Widget",["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_32e,_32f,_330,_331,_332,lang,_333,_334,_335,_336,_337,_338){function _339(){};function _33a(_33b){return function(obj,_33c,_33d,_33e){if(obj&&typeof _33c=="string"&&obj[_33c]==_339){return obj.on(_33c.substring(2).toLowerCase(),lang.hitch(_33d,_33e));}return _33b.apply(_330,arguments);};};_32e.around(_330,"connect",_33a);if(_332.connect){_32e.around(_332,"connect",_33a);}var _33f=_331("dijit._Widget",[_336,_337,_338],{onClick:_339,onDblClick:_339,onKeyDown:_339,onKeyPress:_339,onKeyUp:_339,onMouseDown:_339,onMouseMove:_339,onMouseOut:_339,onMouseOver:_339,onMouseLeave:_339,onMouseEnter:_339,onMouseUp:_339,constructor:function(_340){this._toConnect={};for(var name in _340){if(this[name]===_339){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_340[name];delete _340[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_339){return _330.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_341){_332.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_341);},attr:function(name,_342){if(_32f.isDebug){var _343=arguments.callee._ach||(arguments.callee._ach={}),_344=(arguments.callee.caller||"unknown caller").toString();if(!_343[_344]){_332.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_344,"","2.0");_343[_344]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_332.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_333("[widgetId]",this.containerNode).map(_335.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_332.isAsync){_334(0,function(){var _345=["dijit/_base"];require(_345);});}return _33f;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_346,_347,_348,lang){lang.extend(_347,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _348("dijit._FocusMixin",null,{_focusManager:_346});});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(on,_349,keys,_34a,has,_34b,win){var _34c=null;if(has("ie")){(function(){var _34d=function(evt){_34c=evt.srcElement;};win.doc.attachEvent("onkeydown",_34d);_34b.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_34d);});})();}else{win.doc.addEventListener("keydown",function(evt){_34c=evt.target;},true);}var _34e=function(node,_34f){if(/input|button/i.test(node.nodeName)){return on(node,"click",_34f);}else{function _350(e){return (e.keyCode==keys.ENTER||e.keyCode==keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _351=[on(node,"keypress",function(e){if(_350(e)){_34c=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_350(e)&&e.target==_34c){_34c=null;_34f.call(this,e);}}),on(node,"click",function(e){_34f.call(this,e);})];return {remove:function(){_349.forEach(_351,function(h){h.remove();});}};}};return _34a("dijit._OnDijitClickMixin",null,{connect:function(obj,_352,_353){return this.inherited(arguments,[obj,_352=="ondijitclick"?_34e:_352,_353]);}});});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo,text){return dojo.cache;});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","."],function(_354,_355,dom,_356,_357,_358,lang,on,_359,has,_35a,_35b,win,_35c,a11y,_35d,_35e){var _35f=_355([_35a,_358],{curNode:null,activeStack:[],constructor:function(){var _360=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_354.before(_357,"empty",_360);_354.before(_357,"destroy",_360);},registerIframe:function(_361){return this.registerWin(_361.contentWindow,_361);},registerWin:function(_362,_363){var _364=this;var _365=function(evt){_364._justMouseDowned=true;setTimeout(function(){_364._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_364._onTouchNode(_363||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_362.document.documentElement:_362.document;if(doc){if(has("ie")){_362.document.body.attachEvent("onmousedown",_365);var _366=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_364._onFocusNode(_363||evt.srcElement);}else{_364._onTouchNode(_363||evt.srcElement);}};doc.attachEvent("onactivate",_366);var _367=function(evt){_364._onBlurNode(_363||evt.srcElement);};doc.attachEvent("ondeactivate",_367);return {remove:function(){_362.document.detachEvent("onmousedown",_365);doc.detachEvent("onactivate",_366);doc.detachEvent("ondeactivate",_367);doc=null;}};}else{doc.body.addEventListener("mousedown",_365,true);doc.body.addEventListener("touchstart",_365,true);var _368=function(evt){_364._onFocusNode(_363||evt.target);};doc.addEventListener("focus",_368,true);var _369=function(evt){_364._onBlurNode(_363||evt.target);};doc.addEventListener("blur",_369,true);return {remove:function(){doc.body.removeEventListener("mousedown",_365,true);doc.body.removeEventListener("touchstart",_365,true);doc.removeEventListener("focus",_368,true);doc.removeEventListener("blur",_369,true);doc=null;}};}}},_onBlurNode:function(){this.set("prevNode",this.curNode);this.set("curNode",null);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);this.prevNode=null;}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _36a=[];try{while(node){var _36b=_356.get(node,"dijitPopupParent");if(_36b){node=_35d.byId(_36b).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_35c.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_36c=id&&_35d.byId(id);if(_36c&&!(by=="mouse"&&_36c.get("disabled"))){_36a.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_36a,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("curNode",node);},_setStack:function(_36d,by){var _36e=this.activeStack;this.set("activeStack",_36d);for(var _36f=0;_36f<Math.min(_36e.length,_36d.length);_36f++){if(_36e[_36f]!=_36d[_36f]){break;}}var _370;for(var i=_36e.length-1;i>=_36f;i--){_370=_35d.byId(_36e[i]);if(_370){_370._hasBeenBlurred=true;_370.set("focused",false);if(_370._focusManager==this){_370._onBlur(by);}this.emit("widget-blur",_370,by);}}for(i=_36f;i<_36d.length;i++){_370=_35d.byId(_36d[i]);if(_370){_370.set("focused",true);if(_370._focusManager==this){_370._onFocus(by);}this.emit("widget-focus",_370,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _371=new _35f();_359(function(){var _372=_371.registerWin(win.doc.parentWindow||win.doc.defaultView);if(has("ie")){_35b.addOnWindowUnload(function(){_372.remove();_372=null;});}});_35e.focus=function(node){_371.focus(node);};for(var attr in _371){if(!/^_/.test(attr)){_35e.focus[attr]=typeof _371[attr]=="function"?lang.hitch(_371,attr):_371[attr];}}_371.watch(function(attr,_373,_374){_35e.focus[attr]=_374;});return _371;});},"dojox/grid/util":function(){define("dojox/grid/util",["../main","dojo/_base/lang","dojo/dom"],function(_375,lang,dom){var dgu=lang.getObject("grid.util",true,_375);dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_376,_377){if(_377>=0){var s=_376.style;var v=_377+"px";if(_376&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_378,_379,_37a,_37b){var evts=(_37b?_37b:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_379.connect(_378,"on"+evts[i],_37a);}};dgu.removeNode=function(_37c){_37c=dom.byId(_37c);_37c&&_37c.parentNode&&_37c.parentNode.removeChild(_37c);return _37c;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_37d,_37e,_37f){if(_37d.length<=_37e){_37d[_37e]=_37f;}else{_37d.splice(_37e,0,_37f);}};dgu.arrayRemove=function(_380,_381){_380.splice(_381,1);};dgu.arraySwap=function(_382,inI,inJ){var _383=_382[inI];_382[inI]=_382[inJ];_382[inJ]=_383;};return _375.grid.util;});},"url:dijit/templates/MenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div data-dojo-attach-point=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n","dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojo/date/stamp":function(){define(["../_base/kernel","../_base/lang","../_base/array"],function(dojo,lang,_384){lang.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_385,_386){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _387=dojo.date.stamp._isoRegExp.exec(_385),_388=null;if(_387){_387.shift();if(_387[1]){_387[1]--;}if(_387[6]){_387[6]*=1000;}if(_386){_386=new Date(_386);_384.forEach(_384.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _386["get"+prop]();}),function(_389,_38a){_387[_38a]=_387[_38a]||_389;});}_388=new Date(_387[0]||1970,_387[1]||0,_387[2]||1,_387[3]||0,_387[4]||0,_387[5]||0,_387[6]||0);if(_387[0]<100){_388.setFullYear(_387[0]||1970);}var _38b=0,_38c=_387[7]&&_387[7].charAt(0);if(_38c!="Z"){_38b=((_387[8]||0)*60)+(Number(_387[9])||0);if(_38c!="-"){_38b*=-1;}}if(_38c){_38b-=_388.getTimezoneOffset();}if(_38b){_388.setTime(_388.getTime()+_38b*60000);}}return _388;};dojo.date.stamp.toISOString=function(_38d,_38e){var _38f=function(n){return (n<10)?"0"+n:n;};_38e=_38e||{};var _390=[],_391=_38e.zulu?"getUTC":"get",date="";if(_38e.selector!="time"){var year=_38d[_391+"FullYear"]();date=["0000".substr((year+"").length)+year,_38f(_38d[_391+"Month"]()+1),_38f(_38d[_391+"Date"]())].join("-");}_390.push(date);if(_38e.selector!="date"){var time=[_38f(_38d[_391+"Hours"]()),_38f(_38d[_391+"Minutes"]()),_38f(_38d[_391+"Seconds"]())].join(":");var _392=_38d[_391+"Milliseconds"]();if(_38e.milliseconds){time+="."+(_392<100?"0":"")+_38f(_392);}if(_38e.zulu){time+="Z";}else{if(_38e.selector!="time"){var _393=_38d.getTimezoneOffset();var _394=Math.abs(_393);time+=(_393>0?"-":"+")+_38f(Math.floor(_394/60))+":"+_38f(_394%60);}}_390.push(time);}return _390.join("T");};return dojo.date.stamp;});},"url:dojox/grid/resources/View.html":"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n","dojox/grid/_FocusManager":function(){define("dojox/grid/_FocusManager",["dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/event","dojo/_base/sniff","dojo/query","./util","dojo/_base/html"],function(_395,lang,_396,_397,_398,has,_399,util,html){return _396("dojox.grid._FocusManager",null,{constructor:function(_39a){this.grid=_39a;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(_397.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(_397.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(_397.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(_397.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(_397.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(_397.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(_397.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(_397.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(_397.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){_395.forEach(this._connects,_397.disconnect);_395.forEach(this._headerConnects,_397.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_39b,_39c){return (this.cell==_39b)&&(this.rowIndex==_39c);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return _395.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_39d){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){html.toggleClass(n,this.focusClass,_39d);if(_39d){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid.focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){html.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){_395.forEach(this._headerConnects,_397.disconnect);this._headerConnects=[];var _39e=this._findHeaderCells();for(var i=0;i<_39e.length;i++){this._headerConnects.push(_397.connect(_39e[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(_397.connect(_39e[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _39f=_399("th",this.grid.viewsHeaderNode);var _3a0=[];for(var i=0;i<_39f.length;i++){var _3a1=_39f[i];var _3a2=html.hasAttr(_3a1,"tabIndex");var _3a3=html.attr(_3a1,"tabIndex");if(_3a2&&_3a3<0){_3a0.push(_3a1);}}return _3a0;},_setActiveColHeader:function(_3a4,_3a5,_3a6){this.grid.domNode.setAttribute("aria-activedescendant",_3a4.id);if(_3a6!=null&&_3a6>=0&&_3a6!=_3a5){html.toggleClass(this._findHeaderCells()[_3a6],this.focusClass,false);}html.toggleClass(_3a4,this.focusClass,true);this._colHeadNode=_3a4;this._colHeadFocusIdx=_3a5;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_3a7){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_3a7?_3a7:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_3a8){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_3a8);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _3a9=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_3a9){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(has("ie")<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _3aa=this.focusView;if(!_3aa){for(var i=0,_3ab;(_3ab=this.grid.views.views[i]);i++){if(_3ab.headerNode){_3aa=_3ab;break;}}}return (_3aa&&html.getComputedStyle(_3aa.headerNode).display=="none");},colSizeAdjust:function(e,_3ac,_3ad){var _3ae=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_3af;(_3af=this.grid.views.views[i]);i++){if(_3af.header.tableMap.map){view=_3af;break;}}}var _3b0=_3ae[_3ac];if(!view||(_3ac==_3ae.length-1&&_3ac===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_3b0;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _3b1={l:_3ad};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_3b1);view.update();}},styleRow:function(_3b2){return;},setFocusIndex:function(_3b3,_3b4){this.setFocusCell(this.grid.getCell(_3b4),_3b3);},setFocusCell:function(_3b5,_3b6){if(_3b5&&!this.isFocusCell(_3b5,_3b6)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_3b5;this.rowIndex=_3b6;this._focusifyCellNode(true);}if(has("opera")){setTimeout(lang.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _3b7=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_3b7.editable||this.grid.canEdit&&!this.grid.canEdit(_3b7,row))){this.cell=_3b7;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _3b8=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_3b8.editable){this.cell=_3b8;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_3b9,_3ba){var _3bb=_3ba<0?-1:1;if(this.isNavHeader()){var _3bc=this._findHeaderCells();var _3bd=currentIdx=_395.indexOf(_3bc,this._colHeadNode);currentIdx+=_3ba;while(currentIdx>=0&&currentIdx<_3bc.length&&_3bc[currentIdx].style.display=="none"){currentIdx+=_3bb;}if((currentIdx>=0)&&(currentIdx<_3bc.length)){this._setActiveColHeader(_3bc[currentIdx],currentIdx,_3bd);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_3b9));if(_3b9){if(_3b9>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_3b9<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_3ba));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_3bb;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_3b9){if((row+_3b9)>=0&&(row+_3b9)<=rc){this.move(_3b9>0?++_3b9:--_3b9,_3ba);}return;}else{if((!n||html.style(n,"display")==="none")&&_3ba){if((col+_3b9)>=0&&(col+_3b9)<=cc){this.move(_3b9,_3ba>0?++_3ba:--_3ba);}return;}}this.setFocusIndex(row,col);if(_3b9){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){_398.stop(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();_398.stop(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){html.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _3be=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();_398.stop(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){_398.stop(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_3bf){this.tabbingOut=true;_3bf.focus();},focusGridView:function(){util.fire(this.focusView,"focus");},focusGrid:function(_3c0){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _3c1=true;var _3c2=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_3c2){var _3c3=0;var cell=this.grid.getCell(_3c3);if(cell.hidden){_3c3=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_3c3);}else{if(this.cell&&!_3c2){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_3c1=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _3c1;},focusHeader:function(){var _3c4=this._findHeaderCells();var _3c5=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_3c4[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_3c4.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_3c4[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_3c5);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){html.removeClass(this._colHeadNode,this.focusClass);html.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _3c6=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_3c6);this._contextMenuBindNode=_3c6;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){_398.stop(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;_398.stop(e);},doBlur:function(e){_398.stop(e);},doContextMenu:function(e){if(!this.headerMenu){_398.stop(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;_398.stop(e);},doLastNodeBlur:function(e){_398.stop(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,html.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());_398.stop(e);},doColHeaderBlur:function(e){html.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});});},"dijit/MenuItem":function(){require({cache:{"url:dijit/templates/MenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div data-dojo-attach-point=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"}});define("dijit/MenuItem",["dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/event","dojo/_base/kernel","dojo/_base/sniff","./_Widget","./_TemplatedMixin","./_Contained","./_CssStateMixin","dojo/text!./templates/MenuItem.html"],function(_3c7,dom,_3c8,_3c9,_3ca,_3cb,has,_3cc,_3cd,_3ce,_3cf,_3d0){return _3c7("dijit.MenuItem",[_3cc,_3cd,_3ce,_3cf],{templateString:_3d0,baseClass:"dijitMenuItem",label:"",_setLabelAttr:{node:"containerNode",type:"innerHTML"},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:false,_fillContent:function(_3d1){if(_3d1&&!("label" in this.params)){this.set("label",_3d1.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _3d2=this.id+"_text";_3c8.set(this.containerNode,"id",_3d2);if(this.accelKeyNode){_3c8.set(this.accelKeyNode,"id",this.id+"_accel");_3d2+=" "+this.id+"_accel";}this.domNode.setAttribute("aria-labelledby",_3d2);dom.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);_3ca.stop(evt);},onClick:function(){},focus:function(){try{if(has("ie")==8){this.containerNode.focus();}this.focusNode.focus();}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_3d3){_3c9.toggle(this.domNode,"dijitMenuItemSelected",_3d3);},setLabel:function(_3d4){_3cb.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_3d4);},setDisabled:function(_3d5){_3cb.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_3d5);},_setDisabledAttr:function(_3d6){this.focusNode.setAttribute("aria-disabled",_3d6?"true":"false");this._set("disabled",_3d6);},_setAccelKeyAttr:function(_3d7){this.accelKeyNode.style.display=_3d7?"":"none";this.accelKeyNode.innerHTML=_3d7;_3c8.set(this.containerNode,"colSpan",_3d7?"1":"2");this._set("accelKey",_3d7);}});});},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin",["dojo/_base/lang","dojo/touch","./_WidgetBase","dojo/string","dojo/cache","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(lang,_3d8,_3d9,_3da,_3db,_3dc,_3dd,_3de,has,_3df,win){var _3e0=_3dd("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _3e1=this.declaredClass,_3e2=this;return _3da.substitute(tmpl,this,function(_3e3,key){if(key.charAt(0)=="!"){_3e3=lang.getObject(key.substr(1),false,_3e2);}if(typeof _3e3=="undefined"){throw new Error(_3e1+" template:"+key);}if(_3e3==null){return "";}return key.charAt(0)=="!"?_3e3:_3e3.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_3db(this.templatePath,{sanitize:true});}var _3e4=_3e0.getCachedTemplate(this.templateString,this._skipNodeCache);var node;if(lang.isString(_3e4)){node=_3de.toDom(this._stringRepl(_3e4));if(node.nodeType!=1){throw new Error("Invalid template: "+_3e4);}}else{node=_3e4.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node,function(n,p){return n.getAttribute(p);});this._beforeFillContent();this._fillContent(this.srcNodeRef);},_beforeFillContent:function(){},_fillContent:function(_3e5){var dest=this.containerNode;if(_3e5&&dest){while(_3e5.hasChildNodes()){dest.appendChild(_3e5.firstChild);}}},_attachTemplateNodes:function(_3e6,_3e7){var _3e8=lang.isArray(_3e6)?_3e6:(_3e6.all||_3e6.getElementsByTagName("*"));var x=lang.isArray(_3e6)?0:-1;for(;x<_3e8.length;x++){var _3e9=(x==-1)?_3e6:_3e8[x];if(this.widgetsInTemplate&&(_3e7(_3e9,"dojoType")||_3e7(_3e9,"data-dojo-type"))){continue;}var _3ea=_3e7(_3e9,"dojoAttachPoint")||_3e7(_3e9,"data-dojo-attach-point");if(_3ea){var _3eb,_3ec=_3ea.split(/\s*,\s*/);while((_3eb=_3ec.shift())){if(lang.isArray(this[_3eb])){this[_3eb].push(_3e9);}else{this[_3eb]=_3e9;}this._attachPoints.push(_3eb);}}var _3ed=_3e7(_3e9,"dojoAttachEvent")||_3e7(_3e9,"data-dojo-attach-event");if(_3ed){var _3ee,_3ef=_3ed.split(/\s*,\s*/);var trim=lang.trim;while((_3ee=_3ef.shift())){if(_3ee){var _3f0=null;if(_3ee.indexOf(":")!=-1){var _3f1=_3ee.split(":");_3ee=trim(_3f1[0]);_3f0=trim(_3f1[1]);}else{_3ee=trim(_3ee);}if(!_3f0){_3f0=_3ee;}this._attachEvents.push(this.connect(_3e9,_3d8[_3ee]||_3ee,_3f0));}}}}},destroyRendering:function(){_3dc.forEach(this._attachPoints,function(_3f2){delete this[_3f2];},this);this._attachPoints=[];_3dc.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_3e0._templateCache={};_3e0.getCachedTemplate=function(_3f3,_3f4){var _3f5=_3e0._templateCache;var key=_3f3;var _3f6=_3f5[key];if(_3f6){try{if(!_3f6.ownerDocument||_3f6.ownerDocument==win.doc){return _3f6;}}catch(e){}_3de.destroy(_3f6);}_3f3=_3da.trim(_3f3);if(_3f4||_3f3.match(/\$\{([^\}]+)\}/g)){return (_3f5[key]=_3f3);}else{var node=_3de.toDom(_3f3);if(node.nodeType!=1){throw new Error("Invalid template: "+_3f3);}return (_3f5[key]=node);}};if(has("ie")){_3df.addOnWindowUnload(function(){var _3f7=_3e0._templateCache;for(var key in _3f7){var _3f8=_3f7[key];if(typeof _3f8=="object"){_3de.destroy(_3f8);}delete _3f7[key];}});}lang.extend(_3d9,{dojoAttachEvent:"",dojoAttachPoint:""});return _3e0;});},"dojox/grid/_SelectionPreserver":function(){define("dojox/grid/_SelectionPreserver",["dojo/_base/declare","dojo/_base/connect","dojo/_base/lang","dojo/_base/array"],function(_3f9,_3fa,lang,_3fb){return _3f9("dojox.grid._SelectionPreserver",null,{constructor:function(_3fc){this.selection=_3fc;var grid=this.grid=_3fc.grid;this.reset();this._connects=[_3fa.connect(grid,"_setStore",this,"reset"),_3fa.connect(grid,"_addItem",this,"_reSelectById"),_3fa.connect(_3fc,"addToSelection",lang.hitch(this,"_selectById",true)),_3fa.connect(_3fc,"deselect",lang.hitch(this,"_selectById",false)),_3fa.connect(_3fc,"deselectAll",this,"reset")];},destroy:function(){this.reset();_3fb.forEach(this._connects,_3fa.disconnect);delete this._connects;},reset:function(){this._selectedById={};},_reSelectById:function(item,_3fd){if(item&&this.grid._hasIdentity){this.selection.selected[_3fd]=this._selectedById[this.grid.store.getIdentity(item)];}},_selectById:function(_3fe,_3ff){if(this.selection.mode=="none"||!this.grid._hasIdentity){return;}var item=_3ff,g=this.grid;if(typeof _3ff=="number"||typeof _3ff=="string"){var _400=g._by_idx[_3ff];item=_400&&_400.item;}if(item){this._selectedById[g.store.getIdentity(item)]=!!_3fe;}return item;}});});},"dojo/window":function(){define(["./_base/kernel","./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(dojo,lang,has,_401,dom,geom,_402){lang.getObject("window",true,dojo);dojo.window.getBox=function(){var _403=(_401.doc.compatMode=="BackCompat")?_401.body():_401.doc.documentElement;var _404=geom.docScroll();var _405=_401.doc.parentWindow||_401.doc.defaultView;return {l:_404.x,t:_404.y,w:_405.innerWidth||_403.clientWidth,h:_405.innerHeight||_403.clientHeight};};dojo.window.get=function(doc){if(has("ie")&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_401.doc,body=doc.body||_401.body(),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if((!(has("mozilla")||isIE||isWK||has("opera"))||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _406=doc.compatMode=="BackCompat",_407=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_406?body:html),_408=isWK?body:_407,_409=_407.clientWidth,_40a=_407.clientHeight,rtl=!geom.isBodyLtr(),_40b=pos||geom.position(node),el=node.parentNode,_40c=function(el){return ((isIE<=6||(isIE&&_406))?false:(_402.get(el,"position").toLowerCase()=="fixed"));};if(_40c(node)){return;}while(el){if(el==body){el=_408;}var _40d=geom.position(el),_40e=_40c(el);if(el==_408){_40d.w=_409;_40d.h=_40a;if(_408==html&&isIE&&rtl){_40d.x+=_408.offsetWidth-_40d.w;}if(_40d.x<0||!isIE){_40d.x=0;}if(_40d.y<0||!isIE){_40d.y=0;}}else{var pb=geom.getPadBorderExtents(el);_40d.w-=pb.w;_40d.h-=pb.h;_40d.x+=pb.l;_40d.y+=pb.t;var _40f=el.clientWidth,_410=_40d.w-_40f;if(_40f>0&&_410>0){_40d.w=_40f;_40d.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_410:0;}_40f=el.clientHeight;_410=_40d.h-_40f;if(_40f>0&&_410>0){_40d.h=_40f;}}if(_40e){if(_40d.y<0){_40d.h+=_40d.y;_40d.y=0;}if(_40d.x<0){_40d.w+=_40d.x;_40d.x=0;}if(_40d.y+_40d.h>_40a){_40d.h=_40a-_40d.y;}if(_40d.x+_40d.w>_409){_40d.w=_409-_40d.x;}}var l=_40b.x-_40d.x,t=_40b.y-Math.max(_40d.y,0),r=l+_40b.w-_40d.w,bot=t+_40b.h-_40d.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_406)||isIE>=9)){s=-s;}_40b.x+=el.scrollLeft;el.scrollLeft+=s;_40b.x-=el.scrollLeft;}if(bot*t>0){_40b.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_40b.y-=el.scrollTop;}el=(el!=_408)&&!_40e&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};return dojo.window;});},"dojox/grid/_Builder":function(){define("dojox/grid/_Builder",["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/window","dojo/_base/event","dojo/_base/sniff","dojo/_base/connect","dojo/dnd/Moveable","dojox/html/metrics","./util","dojo/_base/html"],function(_411,_412,lang,win,_413,has,_414,_415,_416,util,html){var dg=_411.grid;var _417=function(td){return td.cellIndex>=0?td.cellIndex:_412.indexOf(td.parentNode.cells,td);};var _418=function(tr){return tr.rowIndex>=0?tr.rowIndex:_412.indexOf(tr.parentNode.childNodes,tr);};var _419=function(_41a,_41b){return _41a&&((_41a.rows||0)[_41b]||_41a.childNodes[_41b]);};var _41c=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _41d=function(_41e,_41f){for(var n=_41e;n&&_41f(n);n=n.parentNode){}return n;};var _420=function(_421){var name=_421.toUpperCase();return function(node){return node.tagName!=name;};};var _422=util.rowIndexTag;var _423=util.gridViewTag;var _424=dg._Builder=lang.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_425,_426,_427,_428){var _429=[],html;if(_428){var _42a=_425.index!=_425.grid.getSortIndex()?"":_425.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_425.id){_425.id=this.grid.id+"Hdr"+_425.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_42a,"id=\"",_425.id,"\""];}else{var _42b=this.grid.editable&&!_425.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_42b];}if(_425.colSpan){html.push(" colspan=\"",_425.colSpan,"\"");}if(_425.rowSpan){html.push(" rowspan=\"",_425.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_425.classes){html.push(_425.classes," ");}if(_427){html.push(_427," ");}_429.push(html.join(""));_429.push("");html=["\" idx=\"",_425.index,"\" style=\""];if(_426&&_426[_426.length-1]!=";"){_426+=";";}html.push(_425.styles,_426||"",_425.hidden?"display:none;":"");if(_425.unitWidth){html.push("width:",_425.unitWidth,";");}_429.push(html.join(""));_429.push("");html=["\""];if(_425.attrs){html.push(" ",_425.attrs);}html.push(">");_429.push(html.join(""));_429.push("");_429.push(_428?"</th>":"</td>");return _429;},isCellNode:function(_42c){return Boolean(_42c&&_42c!=win.doc&&html.attr(_42c,"idx"));},getCellNodeIndex:function(_42d){return _42d?Number(html.attr(_42d,"idx")):-1;},getCellNode:function(_42e,_42f){for(var i=0,row;((row=_419(_42e.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_42f){return cell;}}}return null;},findCellTarget:function(_430,_431){var n=_430;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_423 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_423]!=this.view.id))&&(n!=_431)){n=n.parentNode;}return n!=_431?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_432,_433){var n=_432;while(n&&(n!=this.domNode)&&(!(_433 in n)||(_423 in n&&n[_423]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_434){return this.findTarget(_434,_422);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&html.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});var _435=dg._ContentBuilder=lang.extend(function(view){_424.call(this,view);},_424.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _436=this.grid.get,_437=this.view.structure.cells;for(var j=0,row;(row=_437[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_436;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_438,_439){var html=this.getTableArray(),v=this.view,_43a=v.structure.cells,item=this.grid.getItem(_439);util.fire(this.view,"onBeforeRow",[_439,_43a]);for(var j=0,row;(row=_43a[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_439,item);if(has("ie")<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_422];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});var _43b=dg._HeaderBuilder=lang.extend(function(view){this.moveable=null;_424.call(this,view);},_424.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_43c,_43d){var html=this.getTableArray(),_43e=this.view.structure.cells;util.fire(this.view,"onBeforeRow",[-1,_43e]);for(var j=0,row;(row=_43e[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_43f;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_43f=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_43f[5]=(_43d!=undefined?_43d:_43c(cell));_43f[3]=cell.customStyles.join(";");_43f[1]=cell.customClasses.join(" ");html.push(_43f.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(has("mozilla")||has("ie")>=9){n=_41d(e.target,_420("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!this.grid.isLeftToRight()){table=_41d(n,_420("table"));x-=(table&&table.offsetLeft)||0;}}n=_41d(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=e.cellIndex;e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(html.hasClass(win.body(),"dojoDndMove")){return false;}if(has("ie")){var tN=e.target;if(html.hasClass(tN,"dojoxGridArrowButtonNode")||html.hasClass(tN,"dojoxGridArrowButtonChar")||html.hasClass(tN,"dojoxGridColCaption")){return false;}}if(this.grid.isLeftToRight()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(html.hasClass(win.body(),"dojoDndMove")){return false;}if(has("ie")){var tN=e.target;if(html.hasClass(tN,"dojoxGridArrowButtonNode")||html.hasClass(tN,"dojoxGridArrowButtonChar")||html.hasClass(tN,"dojoxGridColCaption")){return false;}}if(this.grid.isLeftToRight()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}html.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));html.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(c){_413.stop(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){_413.stop(e);return true;}return false;},colResizeSetup:function(e,_440){var _441=html.contentBox(e.sourceView.headerNode);if(_440){this.lineDiv=document.createElement("div");var vw=html.position(e.sourceView.headerNode,true);var _442=html.contentBox(e.sourceView.domNode);var l=e.pageX;if(!this.grid.isLeftToRight()&&has("ie")<8){l-=_416.getScrollbar().w;}html.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_442.h+_441.h)+"px"});html.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;win.body().appendChild(this.lineDiv);}var _443=[],_444=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_444[i]);i++){_443.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=this.grid.isLeftToRight()?1:-1;var _445=e.grid.views.views;var _446=[];for(var j=view.idx+adj,_447;(_447=_445[j]);j=j+adj){_446.push({node:_447.headerNode,left:window.parseInt(_447.headerNode.style.left)});}var _448=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:html.contentBox(e.cellNode).w,vw:_441.w,table:_448,tw:html.contentBox(_448).w,spanners:_443,followers:_446};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");html.style(this.moverDiv,{position:"absolute",left:0});win.body().appendChild(this.moverDiv);html.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new _415(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=lang.hitch(this,"doResizeColumn",drag);_414.connect(m,"onMoveStop",lang.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;html.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_449,_44a,_44b){var _44c=_44b.l;var data={deltaX:_44c,w:_449.w+(this.grid.isLeftToRight()?_44c:-_44c),vw:_449.vw+_44c,tw:_449.tw+_44c};this.dragRecord={inDrag:_449,mover:_44a,leftTop:_44b};if(data.w>=this.minColWidth){if(!_44a){this.doResizeNow(_449,data);}else{html.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_44d){if(this.dragRecord){var _44e=this.dragRecord.leftTop;var _44f=this.grid.isLeftToRight()?_44e.l:-_44e.l;_44f+=Math.max(_44d.w+_44f,this.minColWidth)-(_44d.w+_44f);if(has("webkit")&&_44d.spanners.length){_44f+=html._getPadBorderExtents(_44d.spanners[0].node).w;}var data={deltaX:_44f,w:_44d.w+_44f,vw:_44d.vw+_44f,tw:_44d.tw+_44f};this.doResizeNow(_44d,data);delete this.dragRecord;}html.destroy(this.lineDiv);html.destroy(this.moverDiv);html.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_44d.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_44d.index);},doResizeNow:function(_450,data){_450.view.convertColPctToFixed();if(_450.view.flexCells&&!_450.view.testFlexCells()){var t=_41c(_450.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_450.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_450.view.setColWidth(s.index,sw);}}if(this.grid.isLeftToRight()||!has("ie")){for(i=0;(f=_450.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_450.node.style.width=data.w+"px";_450.view.setColWidth(_450.index,data.w);_450.view.headerNode.style.width=data.vw+"px";_450.view.setColumnsWidth(data.tw);if(!this.grid.isLeftToRight()){_450.view.headerNode.scrollLeft=_450.scrollLeft+data.deltaX;}}});dg._TableMap=lang.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_451){var _452=_451.length;if(!_452){return;}this.map=[];var row;for(var k=0;(row=_451[k]);k++){this.map[k]=[];}for(var j=0;(row=_451[j]);j++){for(var i=0,x=0,cell,_453,_454;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_454=cell.rowSpan||1;_453=cell.colSpan||1;for(var y=0;y<_454;y++){for(var s=0;s<_453;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_453;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_455,_456){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_456&&cell.r==_455){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_457,_458,_459){var row=_457&&_457.rows[_458];return row&&row.cells[_459];},_findOverlappingNodes:function(_45a,_45b,_45c){var _45d=[];var m=this.getMapCoords(_45b,_45c);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_45a,rw.r,rw.c):null);if(n){_45d.push(n);}}return _45d;},findOverlappingNodes:function(_45e){return this._findOverlappingNodes(_41c(_45e),_418(_45e.parentNode),_417(_45e));}});return {_Builder:_424,_HeaderBuilder:_43b,_ContentBuilder:_435};});},"dojo/dnd/Source":function(){define(["../main","./Selector","./Manager"],function(dojo,_45f,_460){if(!dojo.isAsync){dojo.ready(0,function(){var _461=["dojo/dnd/AutoSource","dojo/dnd/Target"];require(_461);});}return dojo.declare("dojo.dnd.Source",_45f,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_462){dojo.mixin(this,dojo.mixin({},_462));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_463,_464){if(this==_463){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_464.length;++i){var type=_463.getItem(_464[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_465,self){if(_465){return true;}if(arguments.length<2){self=this==_460.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=_460.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _466=this.getSelectedNodes();if(_466.length){m.startDrag(this,_466,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _467=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_467=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_467=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_467!=this.before){this._markTargetAnchor(_467);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_468){if(this!=_468){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=_460.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_469,_46a,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_469?(copy?"Copied":"Moved"):"");}var _46b=this.accept&&this.checkAcceptance(_469,_46a);this._changeState("Target",_46b?"":"Disabled");if(this==_469){_460.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_46c,_46d,copy,_46e){if(this==_46e){this.onDrop(_46c,_46d,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_46f,_470,copy){if(this!=_46f){this.onDropExternal(_46f,_470,copy);}else{this.onDropInternal(_470,copy);}},onDropExternal:function(_471,_472,copy){var _473=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _473.call(this,_471.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_471.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_471.getItem(node.id);_471.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_471.selectNone();}this.insertNodes(true,_472,this.before,this.current);if(!copy&&this.creator){_471.deleteSelectedNodes();}this._normalizedCreator=_473;},onDropInternal:function(_474,copy){var _475=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _475.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_474,this.before,this.current);this._normalizedCreator=_475;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);_460.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);_460.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_476){if(this.current==this.targetAnchor&&this.before==_476){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_476;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});});},"dojox/grid/cells/_base":function(){define("dojox/grid/cells/_base",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/_base/event","dojo/_base/connect","dojo/_base/array","dojo/_base/sniff","dojo/dom","dojo/dom-attr","dojo/dom-construct","dijit/_Widget","../util"],function(dojo,_477,lang,_478,_479,_47a,has,dom,_47b,_47c,_47d,util){var _47e=_477("dojox.grid._DeferredTextWidget",_47d,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(lang.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});var _47f=function(_480){try{util.fire(_480,"focus");util.fire(_480,"select");}catch(e){}};var _481=function(){setTimeout(lang.hitch.apply(dojo,arguments),0);};var _482=_477("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_483){this._props=_483||{};lang.mixin(this,_483);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_484,_485){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_484!=this.defaultValue&&f)?f.apply(s,_485):_484;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new _47e({deferred:v},_47c.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_486,_487){var f,i=this.grid.edit.info,d=this.get?this.get(_486,_487):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_486&&i.cell==this))){return this.formatEditing(d,_486);}else{return this._defaultFormat(d,[d,_486,this]);}},formatEditing:function(_488,_489){},getNode:function(_48a){return this.view.getCellNode(_48a,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_48b){return (this.getNode(_48b)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&lang.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_48c,_48d){this.grid.edit.applyCellEdit(_48c,this,_48d);},cancelEdit:function(_48e){this.grid.doCancelEdit(_48e);},_onEditBlur:function(_48f){if(this.grid.edit.isEditCell(_48f,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_490,_491){if(this.commitOnBlur){_479.connect(_490,"onblur",function(e){setTimeout(lang.hitch(this,"_onEditBlur",_491),250);});}},needFormatNode:function(_492,_493){this._formatPending=true;_481(this,"_formatNode",_492,_493);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_494,_495){if(this._formatPending){this._formatPending=false;if(!has("ie")){dom.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_495),_494,_495);}},formatNode:function(_496,_497,_498){if(has("ie")){_481(this,"focus",_498,_496);}else{this.focus(_498,_496);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_499){return this.getEditNode(_499)[this._valueProp];},setValue:function(_49a,_49b){var n=this.getEditNode(_49a);if(n){n[this._valueProp]=_49b;}},focus:function(_49c,_49d){_47f(_49d||this.getEditNode(_49c));},save:function(_49e){this.value=this.value||this.getValue(_49e);},restore:function(_49f){this.setValue(_49f,this.value);},_finish:function(_4a0){dom.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_4a1){this.applyEdit(this.getValue(_4a1),_4a1);this._finish(_4a1);},cancel:function(_4a2){this.cancelEdit(_4a2);this._finish(_4a2);}});_482.markupFactory=function(node,_4a3){var _4a4=lang.trim(_47b.get(node,"formatter")||"");if(_4a4){_4a3.formatter=lang.getObject(_4a4)||_4a4;}var get=lang.trim(_47b.get(node,"get")||"");if(get){_4a3.get=lang.getObject(get);}var _4a5=function(attr,cell,_4a6){var _4a7=lang.trim(_47b.get(node,attr)||"");if(_4a7){cell[_4a6||attr]=!(_4a7.toLowerCase()=="false");}};_4a5("sortDesc",_4a3);_4a5("editable",_4a3);_4a5("alwaysEditing",_4a3);_4a5("noresize",_4a3);_4a5("draggable",_4a3);var _4a8=lang.trim(_47b.get(node,"loadingText")||_47b.get(node,"defaultValue")||"");if(_4a8){_4a3.defaultValue=_4a8;}var _4a9=function(attr,cell,_4aa){var _4ab=lang.trim(_47b.get(node,attr)||"")||undefined;if(_4ab){cell[_4aa||attr]=_4ab;}};_4a9("styles",_4a3);_4a9("headerStyles",_4a3);_4a9("cellStyles",_4a3);_4a9("classes",_4a3);_4a9("headerClasses",_4a3);_4a9("cellClasses",_4a3);};var Cell=_477("dojox.grid.cells.Cell",_482,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_4ac,_4ad){this.needFormatNode(_4ac,_4ad);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_4ac+"\">";},formatNode:function(_4ae,_4af,_4b0){this.inherited(arguments);this.registerOnBlur(_4ae,_4b0);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){_478.stop(e);}}},_finish:function(_4b1){this.inherited(arguments);var n=this.getEditNode(_4b1);try{util.fire(n,"blur");}catch(e){}}});Cell.markupFactory=function(node,_4b2){_482.markupFactory(node,_4b2);var _4b3=lang.trim(_47b.get(node,"keyFilter")||"");if(_4b3){_4b2.keyFilter=new RegExp(_4b3);}};var _4b4=_477("dojox.grid.cells.RowIndex",Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_4b5){return _4b5+1;}});_4b4.markupFactory=function(node,_4b6){Cell.markupFactory(node,_4b6);};var _4b7=_477("dojox.grid.cells.Select",Cell,{options:null,values:null,returnIndex:-1,constructor:function(_4b8){this.values=this.values||this.options;},formatEditing:function(_4b9,_4ba){this.needFormatNode(_4b9,_4ba);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_4b9==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},_defaultFormat:function(_4bb,_4bc){var v=this.inherited(arguments);if(!this.formatter&&this.values&&this.options){var i=_47a.indexOf(this.values,v);if(i>=0){v=this.options[i];}}return v;},getValue:function(_4bd){var n=this.getEditNode(_4bd);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});_4b7.markupFactory=function(node,cell){Cell.markupFactory(node,cell);var _4be=lang.trim(_47b.get(node,"options")||"");if(_4be){var o=_4be.split(",");if(o[0]!=_4be){cell.options=o;}}var _4bf=lang.trim(_47b.get(node,"values")||"");if(_4bf){var v=_4bf.split(",");if(v[0]!=_4bf){cell.values=v;}}};var _4c0=_477("dojox.grid.cells.AlwaysEdit",Cell,{alwaysEditing:true,_formatNode:function(_4c1,_4c2){this.formatNode(this.getEditNode(_4c2),_4c1,_4c2);},applyStaticValue:function(_4c3){var e=this.grid.edit;e.applyCellEdit(this.getValue(_4c3),this,_4c3);e.start(this,_4c3,true);}});_4c0.markupFactory=function(node,cell){Cell.markupFactory(node,cell);};var Bool=_477("dojox.grid.cells.Bool",_4c0,{_valueProp:"checked",formatEditing:function(_4c4,_4c5){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_4c4?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});Bool.markupFactory=function(node,cell){_4c0.markupFactory(node,cell);};return _482;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_4c6,_4c7,_4c8,_4c9,_4ca,_4cb,dom,_4cc,_4cd,_4ce,_4cf,_4d0,_4d1,lang,on,_4d2,_4d3,_4d4,win,_4d5){if(!_4d1.isAsync){_4d2(0,function(){var _4d6=["dijit/_base/manager"];_4c6(_4d6);});}var _4d7={};function _4d8(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _4d9(attr){return function(val){_4cc[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _4cb("dijit._WidgetBase",_4d3,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_4d9("lang"),dir:"",_setDirAttr:_4d9("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_4c9.blankGif||_4c6.toUrl("dojo/resources/blank.gif"),postscript:function(_4da,_4db){this.create(_4da,_4db);},create:function(_4dc,_4dd){this.srcNodeRef=dom.byId(_4dd);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_4dc){this.params=_4dc;lang.mixin(this,_4dc);}this.postMixInProperties();if(!this.id){this.id=_4d5.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_4d5.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _4de=this.srcNodeRef;if(_4de&&_4de.parentNode&&this.domNode!==_4de){_4de.parentNode.replaceChild(this.domNode,_4de);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _4df=ctor.prototype;for(var _4e0 in _4df){if(_4e0 in this.attributeMap){continue;}var _4e1="_set"+_4e0.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_4e1 in _4df){list.push(_4e0);}}}_4c7.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _4e2 in this.params){this.set(_4e2,this[_4e2]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_4ce.create("div");}if(this.baseClass){var _4e3=this.baseClass.split(" ");if(!this.isLeftToRight()){_4e3=_4e3.concat(_4c7.map(_4e3,function(name){return name+"Rtl";}));}_4cd.add(this.domNode,_4e3);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_4c7.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_4e4){this._beingDestroyed=true;this.destroyDescendants(_4e4);this.destroy(_4e4);},destroy:function(_4e5){this._beingDestroyed=true;this.uninitialize();var c;while(c=this._connects.pop()){c.remove();}var w;while(w=this._supportingWidgets.pop()){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_4e5);_4d5.remove(this.id);this._destroyed=true;},destroyRendering:function(_4e6){if(this.bgIframe){this.bgIframe.destroy(_4e6);delete this.bgIframe;}if(this.domNode){if(_4e6){_4cc.remove(this.domNode,"widgetId");}else{_4ce.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_4e6){_4ce.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_4e7){_4c7.forEach(this.getChildren(),function(_4e8){if(_4e8.destroyRecursive){_4e8.destroyRecursive(_4e7);}});},uninitialize:function(){return false;},_setStyleAttr:function(_4e9){var _4ea=this.domNode;if(lang.isObject(_4e9)){_4d0.set(_4ea,_4e9);}else{if(_4ea.style.cssText){_4ea.style.cssText+="; "+_4e9;}else{_4ea.style.cssText=_4e9;}}this._set("style",_4e9);},_attrToDom:function(attr,_4eb,_4ec){_4ec=arguments.length>=3?_4ec:this.attributeMap[attr];_4c7.forEach(lang.isArray(_4ec)?_4ec:[_4ec],function(_4ed){var _4ee=this[_4ed.node||_4ed||"domNode"];var type=_4ed.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_4eb)){_4eb=lang.hitch(this,_4eb);}var _4ef=_4ed.attribute?_4ed.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_4cc.set(_4ee,_4ef,_4eb);break;case "innerText":_4ee.innerHTML="";_4ee.appendChild(win.doc.createTextNode(_4eb));break;case "innerHTML":_4ee.innerHTML=_4eb;break;case "class":_4cd.replace(_4ee,_4eb,this[attr]);break;}},this);},get:function(name){var _4f0=this._getAttrNames(name);return this[_4f0.g]?this[_4f0.g]():this[name];},set:function(name,_4f1){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _4f2=this._getAttrNames(name),_4f3=this[_4f2.s];if(lang.isFunction(_4f3)){var _4f4=_4f3.apply(this,Array.prototype.slice.call(arguments,1));}else{var _4f5=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_4f5].tagName,_4f6=_4d7[tag]||(_4d7[tag]=_4d8(this[_4f5])),map=name in this.attributeMap?this.attributeMap[name]:_4f2.s in this?this[_4f2.s]:((_4f2.l in _4f6&&typeof _4f1!="function")||/^aria-|^data-|^role$/.test(name))?_4f5:null;if(map!=null){this._attrToDom(name,_4f1,map);}this._set(name,_4f1);}return _4f4||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_4f7){var _4f8=this[name];this[name]=_4f7;if(this._watchCallbacks&&this._created&&_4f7!==_4f8){this._watchCallbacks(name,_4f8,_4f7);}},on:function(type,func){return _4c8.after(this,this._onMap(type),func,true);},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_4d5.findWidgets(this.containerNode):[];},getParent:function(){return _4d5.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_4f9,_4fa){var _4fb=_4ca.connect(obj,_4f9,this,_4fa);this._connects.push(_4fb);return _4fb;},disconnect:function(_4fc){var i=_4c7.indexOf(this._connects,_4fc);if(i!=-1){_4fc.remove();this._connects.splice(i,1);}},subscribe:function(t,_4fd){var _4fe=_4d4.subscribe(t,lang.hitch(this,_4fd));this._connects.push(_4fe);return _4fe;},unsubscribe:function(_4ff){this.disconnect(_4ff);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_4cf.isBodyLtr();},isFocusable:function(){return this.focus&&(_4d0.get(this.domNode,"display")!="none");},placeAt:function(_500,_501){if(_500.declaredClass&&_500.addChild){_500.addChild(this,_501);}else{_4ce.place(this.domNode,_500,_501);}return this;},getTextDir:function(text,_502){return _502;},applyTextDir:function(){}});});},"dojo/dnd/Moveable":function(){define(["../main","../Evented","../touch","./Mover"],function(dojo,_503,_504){dojo.declare("dojo.dnd.Moveable",[_503],{handle:"",delay:0,skip:false,constructor:function(node,_505){this.node=dojo.byId(node);if(!_505){_505={};}this.handle=_505.handle?dojo.byId(_505.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_505.delay>0?_505.delay:0;this.skip=_505.skip;this.mover=_505.mover?_505.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,_504.press,this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_506,node,ctor){return new ctor(node,_506);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,_504.move,this,"onMouseMove"),dojo.connect(this.handle,_504.release,this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_507){dojo.publish("/dnd/move/start",[_507]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_508){dojo.publish("/dnd/move/stop",[_508]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_509,e){},onMove:function(_50a,_50b,e){this.onMoving(_50a,_50b);var s=_50a.node.style;s.left=_50b.l+"px";s.top=_50b.t+"px";this.onMoved(_50a,_50b);},onMoving:function(_50c,_50d){},onMoved:function(_50e,_50f){}});return dojo.dnd.Moveable;});}}});define("dojox/grid/DataGrid",["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/json","dojo/_base/sniff","dojo/_base/declare","./_Grid","./DataSelection","dojo/_base/html"],function(_510,_511,lang,json,has,_512,_513,_514,html){var _515=_512("dojox.grid.DataGrid",_513,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,keepSelection:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},destroy:function(){this.selection.destroy();this.inherited(arguments);},createSelection:function(){this.selection=new _514(this);},get:function(_516,_517){if(_517&&this.field=="_item"&&!this.fields){return _517;}else{if(_517&&this.fields){var ret=[];var s=this.grid.store;_511.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_517,f));});return ret;}else{if(!_517&&typeof _516==="string"){return this.inherited(arguments);}}}return (!_517?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_517:this.grid.store.getValue(_517,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _518=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_518=true;}if(!this.updating){this.beginUpdate();_518=true;}if(_518){var _519=this;this._endUpdateDelay=setTimeout(function(){delete _519._endUpdateDelay;_519.endUpdate();},this.updateDelay);}}},_onSet:function(item,_51a,_51b,_51c){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_51d){var idty=this._hasIdentity?this.store.getIdentity(item):json.toJson(this.query)+":idx:"+_51d+":sort:"+json.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_51e,_51f){this._by_idx[_51e]=this._createItem(item,_51e);if(!_51f){this.updateRow(_51e);}},_onNew:function(item,_520){this._checkUpdateStatus();var _521=this.get("rowCount");this._addingItem=true;this.updateRowCount(_521+1);this._addingItem=false;this._addItem(item,_521);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}if(this.selection.isSelected(idx)){this.selection.deselect(idx);this.selection.selected.splice(idx,1);}},_onRevert:function(){this._refresh();},setStore:function(_522,_523,_524){if(this._requestsPending(0)){return;}this._setQuery(_523,_524);this._setStore(_522);this._refresh(true);},setQuery:function(_525,_526){if(this._requestsPending(0)){return;}this._setQuery(_525,_526);this._refresh(true);},setItems:function(_527){this.items=_527;this._setStore(this.store);this._refresh(true);},_setQuery:function(_528,_529){this.query=_528;this.queryOptions=_529||this.queryOptions;},_setStore:function(_52a){if(this.store&&this._store_connects){_511.forEach(this._store_connects,this.disconnect,this);}this.store=_52a;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_52b,req){if(!this.scroller){return;}if(_52b&&_52b.length>0){_511.forEach(_52b,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_52b.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}if(has("ie")){html.setSelectable(this.domNode,this.selectable);}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_52c,_52d){_52c=_52c||0;if(this.store&&!this._pending_requests[_52c]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_52c]=true;try{if(this.items){var _52e=this.items;var _52f=this.store;this.rowsPerPage=_52e.length;var req={start:_52c,count:this.rowsPerPage,isRender:_52d};this._onFetchBegin(_52e.length,req);var _530=0;_511.forEach(_52e,function(i){if(!_52f.isItemLoaded(i)){_530++;}});if(_530===0){this._onFetchComplete(_52e,req);}else{var _531=function(item){_530--;if(_530===0){this._onFetchComplete(_52e,req);}};_511.forEach(_52e,function(i){if(!_52f.isItemLoaded(i)){_52f.loadItem({item:i,onItem:_531,scope:this});}},this);}}else{this.store.fetch({start:_52c,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_52d,onBegin:lang.hitch(this,"_onFetchBegin"),onComplete:lang.hitch(this,"_onFetchComplete"),onError:lang.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_52c,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_532){if(!_532&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_533,_534){this.query=_533;if(_534){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_535){return this._pending_requests[_535];},_rowToPage:function(_536){return (this.rowsPerPage?Math.floor(_536/this.rowsPerPage):_536);},_pageToRow:function(_537){return (this.rowsPerPage?this.rowsPerPage*_537:_537);},_preparePage:function(_538){if((_538<this._bop||_538>=this._eop)&&!this._addingItem){var _539=this._rowToPage(_538);this._needPage(_539);this._bop=_539*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_53a){if(!this._pages[_53a]){this._pages[_53a]=true;this._requestPage(_53a);}},_requestPage:function(_53b){var row=this._pageToRow(_53b);var _53c=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_53c>0){this._requests++;if(!this._requestsPending(row)){setTimeout(lang.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_53d){return _53d.field;},_refresh:function(_53e){this._clearData();this._fetch(0,_53e);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_53f){if(this.store&&this.store.getState){var _540=this.store.getState(_53f.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_540[s]){c=" dojoxGridRow-"+s;break;}}_53f.customClasses+=c;}},onStyleRow:function(_541){this.styleRowState(_541);this.inherited(arguments);},canEdit:function(_542,_543){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _544={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_545,_546){if(!this._cache[_546]){this._cache[_546]=this._copyAttr(_546,_545.field);}this.onStartEdit(_545,_546);},doApplyCellEdit:function(_547,_548,_549){this.store.fetchItemByIdentity({identity:this._by_idx[_548].idty,onItem:lang.hitch(this,function(item){var _54a=this.store.getValue(item,_549);if(typeof _54a=="number"){_547=isNaN(_547)?_547:parseFloat(_547);}else{if(typeof _54a=="boolean"){_547=_547=="true"?true:_547=="false"?false:_547;}else{if(_54a instanceof Date){var _54b=new Date(_547);_547=isNaN(_54b.getTime())?_547:_54b;}}}this.store.setValue(item,_549,_547);this.onApplyCellEdit(_547,_548,_549);})});},doCancelEdit:function(_54c){var _54d=this._cache[_54c];if(_54d){this.updateRow(_54c);delete this._cache[_54c];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_54e,_54f){var _550=this._cache[_54e];this.onApplyEdit(_54e);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=lang.hitch(this,function(_551){if(_551.length){_511.forEach(_551,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});_515.cell_markupFactory=function(_552,node,_553){var _554=lang.trim(html.attr(node,"field")||"");if(_554){_553.field=_554;}_553.field=_553.field||_553.name;var _555=lang.trim(html.attr(node,"fields")||"");if(_555){_553.fields=_555.split(",");}if(_552){_552(node,_553);}};_515.markupFactory=function(_556,node,ctor,_557){return _513.markupFactory(_556,node,ctor,lang.partial(_515.cell_markupFactory,_557));};return _515;});