/* Copyright (c) 2004-2012, 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/string":function(){define(["./_base/kernel","./_base/lang"],function(_1,_2){var _3={};_2.setObject("dojo.string",_3);_3.rep=function(_4,_5){if(_5<=0||!_4){return "";}var _6=[];for(;;){if(_5&1){_6.push(_4);}if(!(_5>>=1)){break;}_4+=_4;}return _6.join("");};_3.pad=function(_7,_8,ch,_9){if(!ch){ch="0";}var _a=String(_7),_b=_3.rep(ch,Math.ceil((_8-_a.length)/ch.length));return _9?_a+_b:_b+_a;};_3.substitute=function(_c,_d,_e,_f){_f=_f||_1.global;_e=_e?_2.hitch(_f,_e):function(v){return v;};return _c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_10,key,_11){var _12=_2.getObject(key,false,_d);if(_11){_12=_2.getObject(_11,false,_f).call(_f,_12,key);}return _e(_12,key).toString();});};_3.trim=String.prototype.trim?_2.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 _3;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_13,_14,_15,dom,_16,_17,has,_18){var _19=(_18._isElementShown=function(_1a){var s=_17.get(_1a);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_16.get(_1a,"type")!="hidden");});_18.hasDefaultTabStop=function(_1b){switch(_1b.nodeName.toLowerCase()){case "a":return _16.has(_1b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _1c;try{var _1d=_1b.contentDocument;if("designMode" in _1d&&_1d.designMode=="on"){return true;}_1c=_1d.body;}catch(e1){try{_1c=_1b.contentWindow.document.body;}catch(e2){return false;}}return _1c&&(_1c.contentEditable=="true"||(_1c.firstChild&&_1c.firstChild.contentEditable=="true"));default:return _1b.contentEditable=="true";}};var _1e=(_18.isTabNavigable=function(_1f){if(_16.get(_1f,"disabled")){return false;}else{if(_16.has(_1f,"tabIndex")){return _16.get(_1f,"tabIndex")>=0;}else{return _18.hasDefaultTabStop(_1f);}}});_18._getTabNavigable=function(_20){var _21,_22,_23,_24,_25,_26,_27={};function _28(_29){return _29&&_29.tagName.toLowerCase()=="input"&&_29.type&&_29.type.toLowerCase()=="radio"&&_29.name&&_29.name.toLowerCase();};var _2a=function(_2b){for(var _2c=_2b.firstChild;_2c;_2c=_2c.nextSibling){if(_2c.nodeType!=1||(has("ie")<=9&&_2c.scopeName!=="HTML")||!_19(_2c)){continue;}if(_1e(_2c)){var _2d=+_16.get(_2c,"tabIndex");if(!_16.has(_2c,"tabIndex")||_2d==0){if(!_21){_21=_2c;}_22=_2c;}else{if(_2d>0){if(!_23||_2d<_24){_24=_2d;_23=_2c;}if(!_25||_2d>=_26){_26=_2d;_25=_2c;}}}var rn=_28(_2c);if(_16.get(_2c,"checked")&&rn){_27[rn]=_2c;}}if(_2c.nodeName.toUpperCase()!="SELECT"){_2a(_2c);}}};if(_19(_20)){_2a(_20);}function rs(_2e){return _27[_28(_2e)]||_2e;};return {first:rs(_21),last:rs(_22),lowest:rs(_23),highest:rs(_25)};};_18.getFirstInTabbingOrder=function(_2f,doc){var _30=_18._getTabNavigable(dom.byId(_2f,doc));return _30.lowest?_30.lowest:_30.first;};_18.getLastInTabbingOrder=function(_31,doc){var _32=_18._getTabNavigable(dom.byId(_31,doc));return _32.last?_32.last:_32.highest;};return {hasDefaultTabStop:_18.hasDefaultTabStop,isTabNavigable:_18.isTabNavigable,_getTabNavigable:_18._getTabNavigable,getFirstInTabbingOrder:_18.getFirstInTabbingOrder,getLastInTabbingOrder:_18.getLastInTabbingOrder};});},"dojo/dnd/autoscroll":function(){define(["../_base/lang","../sniff","../_base/window","../dom-geometry","../dom-style","../window"],function(_33,has,win,_34,_35,_36){var _37={};_33.setObject("dojo.dnd.autoscroll",_37);_37.getViewport=_36.getBox;_37.V_TRIGGER_AUTOSCROLL=32;_37.H_TRIGGER_AUTOSCROLL=32;_37.V_AUTOSCROLL_VALUE=16;_37.H_AUTOSCROLL_VALUE=16;var _38,doc=win.doc,_39=Infinity,_3a=Infinity;_37.autoScrollStart=function(d){doc=d;_38=_36.getBox(doc);var _3b=win.body(doc).parentNode;_39=Math.max(_3b.scrollHeight-_38.h,0);_3a=Math.max(_3b.scrollWidth-_38.w,0);};_37.autoScroll=function(e){var v=_38||_36.getBox(doc),_3c=win.body(doc).parentNode,dx=0,dy=0;if(e.clientX<_37.H_TRIGGER_AUTOSCROLL){dx=-_37.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_37.H_TRIGGER_AUTOSCROLL){dx=Math.min(_37.H_AUTOSCROLL_VALUE,_3a-_3c.scrollLeft);}}if(e.clientY<_37.V_TRIGGER_AUTOSCROLL){dy=-_37.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_37.V_TRIGGER_AUTOSCROLL){dy=Math.min(_37.V_AUTOSCROLL_VALUE,_39-_3c.scrollTop);}}window.scrollBy(dx,dy);};_37._validNodes={"div":1,"p":1,"td":1};_37._validOverflow={"auto":1,"scroll":1};_37.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_3d,_3e;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _37._validNodes)){var s=_35.getComputedStyle(n),_3f=(s.overflow.toLowerCase() in _37._validOverflow),_40=(s.overflowX.toLowerCase() in _37._validOverflow),_41=(s.overflowY.toLowerCase() in _37._validOverflow);if(_3f||_40||_41){b=_34.getContentBox(n,s);t=_34.position(n,true);}if(_3f||_40){w=Math.min(_37.H_TRIGGER_AUTOSCROLL,b.w/2);rx=e.pageX-t.x;if(has("webkit")||has("opera")){rx+=win.body().scrollLeft;}dx=0;if(rx>0&&rxb.w-w){dx=w;}}_3d=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_3f||_41){h=Math.min(_37.V_TRIGGER_AUTOSCROLL,b.h/2);ry=e.pageY-t.y;if(has("webkit")||has("opera")){ry+=win.body().scrollTop;}dy=0;if(ry>0&&ryb.h-h){dy=h;}}_3e=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}_37.autoScroll(e);};return _37;});},"dojox/grid/_View":function(){define(["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(_42,_43,_44,_45,_46,_47,_48,has,_49,win,_4a,_4b,_4c,_4d,_4e,_4f,_50,_51,_52,_53){var _54=function(_55,_56){return _55.style.cssText==undefined?_55.getAttribute("style"):_55.style.cssText;};var _57=_45("dojox.grid._View",[_4c,_4d],{defaultWidth:"18em",viewWidth:"",templateString:_4a,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:_51._HeaderBuilder,_contentBuilderClass:_51._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");_4f.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);_4f.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(){_50.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);_50.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(_58){var vs=(this.structure=_58);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(_59){if(_59){_46.forEach(_49("[widgetId]",_59).map(_43.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(_5a,_5b){this._onBeforeRow(_5a,_5b);if(_5a>=0){this._cleanupRowWidgets(this.getRowNode(_5a));}},onAfterRow:function(_5c,_5d,_5e){this._onAfterRow(_5c,_5d,_5e);var g=this.grid;_46.forEach(_49(".dojoxGridStubNode",_5e),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _5f=window.parseInt(_50.attr(n,"cellIdx"),10);var _60=g.getCell(_5f);var w=_43.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}_42.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,_61;(_61=row[i]);i++){_61.view=this;this.flexCells=this.flexCells||_61.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _62=this.hasVScrollbar();var _63=_50.style(this.scrollboxNode,"overflow");if(this.noscroll||!_63||_63=="hidden"){_62=false;}else{if(_63=="scroll"){_62=true;}}return (_62?_4e.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||_50.style(h.firstChild,"width")):0;},setColumnsWidth:function(_64){this.headerContentNode.firstChild.style.width=_64+"px";if(this.viewWidth){this.viewWidth=_64+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,_50._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 _65=this.grid.layout.cells;var _66=_47.hitch(this,function(_67,_68){!this.grid.isLeftToRight()&&(_68=!_68);var inc=_68?-1:1;var idx=this.header.getCellNodeIndex(_67)+inc;var _69=_65[idx];while(_69&&_69.getHeaderNode()&&_69.getHeaderNode().style.display=="none"){idx+=inc;_69=_65[idx];}if(_69){return _69.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _6a="dojoxGrid_bottomMarker";var _6b="dojoxGrid_topMarker";if(this.bottomMarker){_50.destroy(this.bottomMarker);}this.bottomMarker=_50.byId(_6a);if(this.topMarker){_50.destroy(this.topMarker);}this.topMarker=_50.byId(_6b);if(!this.bottomMarker){this.bottomMarker=_50.create("div",{"id":_6a,"class":"dojoxGridColPlaceBottom"},win.body());this._hide(this.bottomMarker);this.topMarker=_50.create("div",{"id":_6b,"class":"dojoxGridColPlaceTop"},win.body());this._hide(this.topMarker);}this.arrowDim=_50.contentBox(this.bottomMarker);var _6c=_50.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new _4b(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:_47.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")<9?1:0)){_4b.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:_47.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){_4b.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:_47.hitch(this,function(_6d){var src=this.source;if(src.current==src.targetAnchor&&src.before==_6d){return;}if(src.targetAnchor&&_66(src.targetAnchor,src.before)){src._removeItemClass(_66(src.targetAnchor,src.before),src.before?"After":"Before");}_4b.prototype._markTargetAnchor.call(src,_6d);var _6e=_6d?src.targetAnchor:_66(src.targetAnchor,src.before);var _6f=0;if(!_6e){_6e=src.targetAnchor;_6f=_50.contentBox(_6e).w+this.arrowDim.w/2+2;}var pos=_50.position(_6e,true);var _70=Math.floor(pos.x-this.arrowDim.w/2+_6f);_50.style(this.bottomMarker,"visibility","visible");_50.style(this.topMarker,"visibility","visible");_50.style(this.bottomMarker,{"left":_70+"px","top":(_6c+pos.y)+"px"});_50.style(this.topMarker,{"left":_70+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_66(src.targetAnchor,src.before)){src._addItemClass(_66(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:_47.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_66(src.targetAnchor,src.before)){src._removeItemClass(_66(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);_4b.prototype._unmarkTargetAnchor.call(src);}),destroy:_47.hitch(this,function(){_48.disconnect(this._source_conn);_48.unsubscribe(this._source_sub);_4b.prototype.destroy.call(this.source);if(this.bottomMarker){_50.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){_50.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:_47.hitch(this,function(){_4b.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=_48.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=_48.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(_71){_50.style(_71,{top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_72,_73,_74){if(_53.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _75=this.grid.views.views;var _76=_75[_72.viewIndex];var _77=_75[this.index];if(_77!=_76){_76.convertColPctToFixed();_77.convertColPctToFixed();}},_onDndDrop:function(_78,_79,_7a){if(_53.manager().target!==this.source){if(_53.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _7b=function(n){return n?_50.attr(n,"idx"):null;};var w=_50.marginBox(_79[0]).w;if(_78.viewIndex!==this.index){var _7c=this.grid.views.views;var _7d=_7c[_78.viewIndex];var _7e=_7c[this.index];if(_7d.viewWidth&&_7d.viewWidth!="auto"){_7d.setColumnsWidth(_7d.getColumnsWidth()-w);}if(_7e.viewWidth&&_7e.viewWidth!="auto"){_7e.setColumnsWidth(_7e.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!this.grid.isLeftToRight()&&(stb=!stb);var _7f=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_7f.moveColumn(_78.viewIndex,idx,_7b(_79[0]),_7b(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;}_4f.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_80){var n=_80.name||_80.grid.getCellName(_80);if(/^\s+$/.test(n)){n=" ";}var ret=["
");}else{ret=ret.concat([" ",_80.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\">
",_80.grid.sortInfo>0?"▲":"▼","
","
"]);}ret=ret.concat([n,"
"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_81){var _82=this._hasHScroll||false;if(this._hasHScroll==undefined||_81){if(this.noscroll){this._hasHScroll=false;}else{var _83=_50.style(this.scrollboxNode,"overflow");if(_83=="hidden"){this._hasHScroll=false;}else{if(_83=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()this.scrollboxNode.clientHeight);}}}}if(_85!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _87=false;this.grid.initialWidth="";var _88=_49("th",this.headerContentNode);var _89=_46.map(_88,function(c,_8a){var w=c.style.width;_50.attr(c,"vIdx",_8a);if(w&&w.slice(-1)=="%"){_87=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return _50.contentBox(c).w;});if(_87){_46.forEach(this.grid.layout.cells,function(_8b,idx){if(_8b.view==this){var _8c=_8b.view.getHeaderCellNode(_8b.index);if(_8c&&_50.hasAttr(_8c,"vIdx")){var _8d=window.parseInt(_50.attr(_8c,"vIdx"));this.setColWidth(idx,_89[_8d]);_50.removeAttr(_8c,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_8e){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var _8f=this;var _90=function(){var v;for(var i in _8f.grid.views.views){v=_8f.grid.views.views[i];if(v!==_8f&&v.hasHScrollbar()){return true;}}return false;};if(_8e||(this.noscroll&&_90())){h-=_4e.getScrollbar().h;}_4f.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(_91){var _92=this.createRowNode(_91);this.buildRow(_91,_92);return _92;},createRowNode:function(_93){var _94=document.createElement("div");_94.className=this.classTag+"Row";if(this instanceof _44.grid._RowSelector){_50.attr(_94,"role","presentation");}else{_50.attr(_94,"role","row");if(this.grid.selectionMode!="none"){_94.setAttribute("aria-selected","false");}}_94[_4f.gridViewTag]=this.id;_94[_4f.rowIndexTag]=_93;this.rowNodes[_93]=_94;return _94;},buildRow:function(_95,_96){this.buildRowContent(_95,_96);this.styleRow(_95,_96);},buildRowContent:function(_97,_98){_98.innerHTML=this.content.generateHtml(_97,_97);if(this.flexCells&&this.contentWidth){_98.firstChild.style.width=this.contentWidth;}_4f.fire(this,"onAfterRow",[_97,this.structure.cells,_98]);},rowRemoved:function(_99){if(_99>=0){this._cleanupRowWidgets(this.getRowNode(_99));}this.grid.edit.save(this,_99);delete this.rowNodes[_99];},getRowNode:function(_9a){return this.rowNodes[_9a];},getCellNode:function(_9b,_9c){var row=this.getRowNode(_9b);if(row){return this.content.getCellNode(row,_9c);}},getHeaderCellNode:function(_9d){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_9d);}},styleRow:function(_9e,_9f){_9f._style=_54(_9f);this.styleRowNode(_9e,_9f);},styleRowNode:function(_a0,_a1){if(_a1){this.doStyleRowNode(_a0,_a1);}},doStyleRowNode:function(_a2,_a3){this.grid.styleRowNode(_a2,_a3);},updateRow:function(_a4){var _a5=this.getRowNode(_a4);if(_a5){_a5.style.height="";this.buildRow(_a4,_a5);}return _a5;},updateRowStyles:function(_a6){this.styleRowNode(_a6,this.getRowNode(_a6));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_a7){if(has("ff")>=13){this._nativeScroll=true;}var _a8=this.grid.isLeftToRight();if(this.firstScroll<2){if((!_a8&&this.firstScroll==1)||(_a8&&this.firstScroll===0)){var s=_50.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=_a8?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);}this._nativeScroll=false;},setScrollTop:function(_a9){this.lastTop=_a9;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_a9;}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(_aa,_ab){this.grid.setCellWidth(_aa,_ab+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var _ac=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=_ac;this.headerNode.scrollLeft=_ac;}});var _ad=_45("dojox.grid._GridAvatar",_52,{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 _ae=this.manager.source,_af;if(_ae.creator){_af=_ae._normalizedCreator(_ae.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{_af=this.manager.nodes[0].cloneNode(true);var _b0,_b1;if(_af.tagName.toLowerCase()=="tr"){_b0=dd.createElement("table");_b1=dd.createElement("tbody");_b1.appendChild(_af);_b0.appendChild(_b1);_af=_b0;}else{if(_af.tagName.toLowerCase()=="th"){_b0=dd.createElement("table");_b1=dd.createElement("tbody");var r=dd.createElement("tr");_b0.cellPadding=_b0.cellSpacing="0";r.appendChild(_af);_b1.appendChild(r);_b0.appendChild(_b1);_af=_b0;}}}_af.id="";td.appendChild(_af);tr.appendChild(img);tr.appendChild(td);_50.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=_53.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){_53.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _b2=_53.manager().makeAvatar;_53.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!_50.hasClass(win.body(),"dijit_a11y")){return new _ad(this);}return _b2.call(_53.manager());};return _57;});},"dijit/CheckedMenuItem":function(){require({cache:{"url:dijit/templates/CheckedMenuItem.html":"\n\t\n\t\t\"\"\n\t\t\n\t\n\t\n\t\n\t \n\n"}});define("dijit/CheckedMenuItem",["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(_b3,_b4,_b5,_b6){return _b3("dijit.CheckedMenuItem",_b5,{templateString:_b6,checked:false,_setCheckedAttr:function(_b7){_b4.toggle(this.domNode,"dijitCheckedMenuItemChecked",_b7);this.domNode.setAttribute("aria-checked",_b7?"true":"false");this._set("checked",_b7);},iconClass:"",onChange:function(){},_onClick:function(evt){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.onClick(evt);}});});},"dojo/hccss":function(){define(["require","./_base/config","./dom-class","./dom-style","./has","./ready","./_base/window"],function(_b8,_b9,_ba,_bb,has,_bc,win){has.add("highcontrast",function(){var div=win.doc.createElement("div");div.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url("+(_b9.blankGif||_b8.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_bb.getComputedStyle(div),_bd=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_bd&&(_bd=="none"||_bd=="url(invalid-url:)"));if(has("ie")<=8){div.outerHTML="";}else{win.body().removeChild(div);}return hc;});_bc(90,function(){if(has("highcontrast")){_ba.add(win.body(),"dj_a11y");}});return has;});},"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/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_be,_bf,_c0,_c1,_c2,_c3,dom,_c4,_c5,_c6,_c7,_c8,has,_c9,_ca,on,_cb,_cc,_cd,win,_ce,_cf){has.add("dijit-legacy-requires",!_c9.isAsync);if(has("dijit-legacy-requires")){_cb(0,function(){var _d0=["dijit/_base/manager"];_be(_d0);});}var _d1={};function _d2(obj){var ret={};for(var _d3 in obj){ret[_d3.toLowerCase()]=true;}return ret;};function _d4(_d5){return function(val){_c4[val?"set":"remove"](this.domNode,_d5,val);this._set(_d5,val);};};return _c3("dijit._WidgetBase",[_cc,_ce],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_d4("lang"),dir:"",_setDirAttr:_d4("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_c1.blankGif||_be.toUrl("dojo/resources/blank.gif"),postscript:function(_d6,_d7){this.create(_d6,_d7);},create:function(_d8,_d9){this.srcNodeRef=dom.byId(_d9);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_d8){this.params=_d8;_ca.mixin(this,_d8);}this.postMixInProperties();if(!this.id){this.id=_cf.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_cf.add(this);this.buildRendering();var _da;if(this.domNode){this._applyAttributes();var _db=this.srcNodeRef;if(_db&&_db.parentNode&&this.domNode!==_db){_db.parentNode.replaceChild(this.domNode,_db);_da=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_da){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _dc=this.constructor,_dd=_dc._setterAttrs;if(!_dd){_dd=(_dc._setterAttrs=[]);for(var _de in this.attributeMap){_dd.push(_de);}var _df=_dc.prototype;for(var _e0 in _df){if(_e0 in this.attributeMap){continue;}var _e1="_set"+_e0.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_e1 in _df){_dd.push(_e0);}}}var _e2={};for(var key in this.params||{}){_e2[key]=this[key];}_bf.forEach(_dd,function(_e3){if(_e3 in _e2){}else{if(this[_e3]){this.set(_e3,this[_e3]);}}},this);for(key in _e2){this.set(key,_e2[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _e4=this.baseClass.split(" ");if(!this.isLeftToRight()){_e4=_e4.concat(_bf.map(_e4,function(_e5){return _e5+"Rtl";}));}_c5.add(this.domNode,_e4);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_bf.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_ca.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_e6){this._beingDestroyed=true;this.destroyDescendants(_e6);this.destroy(_e6);},destroy:function(_e7){this._beingDestroyed=true;this.uninitialize();function _e8(w){if(w.destroyRecursive){w.destroyRecursive(_e7);}else{if(w.destroy){w.destroy(_e7);}}};_bf.forEach(this._connects,_ca.hitch(this,"disconnect"));_bf.forEach(this._supportingWidgets,_e8);if(this.domNode){_bf.forEach(_cf.findWidgets(this.domNode,this.containerNode),_e8);}this.destroyRendering(_e7);_cf.remove(this.id);this._destroyed=true;},destroyRendering:function(_e9){if(this.bgIframe){this.bgIframe.destroy(_e9);delete this.bgIframe;}if(this.domNode){if(_e9){_c4.remove(this.domNode,"widgetId");}else{_c6.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_e9){_c6.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_ea){_bf.forEach(this.getChildren(),function(_eb){if(_eb.destroyRecursive){_eb.destroyRecursive(_ea);}});},uninitialize:function(){return false;},_setStyleAttr:function(_ec){var _ed=this.domNode;if(_ca.isObject(_ec)){_c8.set(_ed,_ec);}else{if(_ed.style.cssText){_ed.style.cssText+="; "+_ec;}else{_ed.style.cssText=_ec;}}this._set("style",_ec);},_attrToDom:function(_ee,_ef,_f0){_f0=arguments.length>=3?_f0:this.attributeMap[_ee];_bf.forEach(_ca.isArray(_f0)?_f0:[_f0],function(_f1){var _f2=this[_f1.node||_f1||"domNode"];var _f3=_f1.type||"attribute";switch(_f3){case "attribute":if(_ca.isFunction(_ef)){_ef=_ca.hitch(this,_ef);}var _f4=_f1.attribute?_f1.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_ee)?_ee.toLowerCase():_ee);if(_f2.tagName){_c4.set(_f2,_f4,_ef);}else{_f2.set(_f4,_ef);}break;case "innerText":_f2.innerHTML="";_f2.appendChild(this.ownerDocument.createTextNode(_ef));break;case "innerHTML":_f2.innerHTML=_ef;break;case "class":_c5.replace(_f2,_ef,this[_ee]);break;}},this);},get:function(_f5){var _f6=this._getAttrNames(_f5);return this[_f6.g]?this[_f6.g]():this[_f5];},set:function(_f7,_f8){if(typeof _f7==="object"){for(var x in _f7){this.set(x,_f7[x]);}return this;}var _f9=this._getAttrNames(_f7),_fa=this[_f9.s];if(_ca.isFunction(_fa)){var _fb=_fa.apply(this,Array.prototype.slice.call(arguments,1));}else{var _fc=this.focusNode&&!_ca.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_fc].tagName,_fd=_d1[tag]||(_d1[tag]=_d2(this[_fc])),map=_f7 in this.attributeMap?this.attributeMap[_f7]:_f9.s in this?this[_f9.s]:((_f9.l in _fd&&typeof _f8!="function")||/^aria-|^data-|^role$/.test(_f7))?_fc:null;if(map!=null){this._attrToDom(_f7,_f8,map);}this._set(_f7,_f8);}return _fb||this;},_attrPairNames:{},_getAttrNames:function(_fe){var apn=this._attrPairNames;if(apn[_fe]){return apn[_fe];}var uc=_fe.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_fe]={n:_fe+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_ff,_100){var _101=this[_ff];this[_ff]=_100;if(this._created&&_100!==_101){if(this._watchCallbacks){this._watchCallbacks(_ff,_101,_100);}this.emit("attrmodified-"+_ff,{detail:{prevValue:_101,newValue:_100}});}},emit:function(type,_102,_103){_102=_102||{};if(_102.bubbles===undefined){_102.bubbles=true;}if(_102.cancelable===undefined){_102.cancelable=true;}if(!_102.detail){_102.detail={};}_102.detail.widget=this;var ret,_104=this["on"+type];if(_104){ret=_104.apply(this,_103?_103:[_102]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_102);}return ret;},on:function(type,func){var _105=this._onMap(type);if(_105){return _c0.after(this,_105,func,true);}return this.own(on(this.domNode,type,func))[0];},_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[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_cf.findWidgets(this.containerNode):[];},getParent:function(){return _cf.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_106,_107){return this.own(_c2.connect(obj,_106,this,_107))[0];},disconnect:function(_108){_108.remove();},subscribe:function(t,_109){return this.own(_cd.subscribe(t,_ca.hitch(this,_109)))[0];},unsubscribe:function(_10a){_10a.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_c7.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_c8.get(this.domNode,"display")!="none");},placeAt:function(_10b,_10c){var _10d=!_10b.tagName&&_cf.byId(_10b);if(_10d&&_10d.addChild&&(!_10c||typeof _10c==="number")){_10d.addChild(this,_10c);}else{var ref=_10d?(_10d.containerNode&&!/after|before|replace/.test(_10c||"")?_10d.containerNode:_10d.domNode):dom.byId(_10b,this.ownerDocument);_c6.place(this.domNode,ref,_10c);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_10e){return _10e;},applyTextDir:function(){},defer:function(fcn,_10f){var _110=setTimeout(_ca.hitch(this,function(){_110=null;if(!this._destroyed){_ca.hitch(this,fcn)();}}),_10f||0);return {remove:function(){if(_110){clearTimeout(_110);_110=null;}return null;}};}});});},"dojo/dnd/common":function(){define(["../_base/connect","../_base/kernel","../_base/lang","../dom"],function(_111,_112,lang,dom){var _113=lang.getObject("dojo.dnd",true);_113.getCopyKeyState=_111.isCopyKey;_113._uniqueId=0;_113.getUniqueId=function(){var id;do{id=_112._scopeName+"Unique"+(++_113._uniqueId);}while(dom.byId(id));return id;};_113._empty={};_113.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 _113;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./domReady","./_base/window"],function(dojo,_114,dom,on,has,_115,_116,win){var _117=has("touch");var ios4=false;if(has("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));ios4=os<5;}var _118;function _119(_11a,_11b){if(_117){return function(node,_11c){var _11d=on(node,_11b,_11c),_11e=on(node,_11a,function(evt){if(!_118||(new Date()).getTime()>_118+1000){_11c.call(this,evt);}});return {remove:function(){_11d.remove();_11e.remove();}};};}else{return function(node,_11f){return on(node,_11a,_11f);};}};var _120,_121;if(_117){_116(function(){_121=win.body();win.doc.addEventListener("touchstart",function(evt){_118=(new Date()).getTime();var _122=_121;_121=evt.target;on.emit(_122,"dojotouchout",{target:_122,relatedTarget:_121,bubbles:true});on.emit(_121,"dojotouchover",{target:_121,relatedTarget:_122,bubbles:true});},true);on(win.doc,"touchmove",function(evt){_118=(new Date()).getTime();var _123=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_123&&_121!==_123){on.emit(_121,"dojotouchout",{target:_121,relatedTarget:_123,bubbles:true});on.emit(_123,"dojotouchover",{target:_123,relatedTarget:_121,bubbles:true});_121=_123;}});});_120=function(node,_124){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_121,node)){evt.target=_121;_124.call(this,evt);}});};}var _125={press:_119("mousedown","touchstart"),move:_119("mousemove",_120),release:_119("mouseup","touchend"),cancel:_119(_115.leave,"touchcancel"),over:_119("mouseover","dojotouchover"),out:_119("mouseout","dojotouchout"),enter:_115._eventHandler(_119("mouseover","dojotouchover")),leave:_115._eventHandler(_119("mouseout","dojotouchout"))};1&&(dojo.touch=_125);return _125;});},"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,_126,lang,_127,_128,_129,has,dom,_12a,_12b,_12c,util){var _12d=_126("dojox.grid._DeferredTextWidget",_12c,{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 _12e=function(_12f){try{util.fire(_12f,"focus");util.fire(_12f,"select");}catch(e){}};var _130=function(){setTimeout(lang.hitch.apply(dojo,arguments),0);};var _131=_126("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(_132){this._props=_132||{};lang.mixin(this,_132);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_133,_134){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_133!=this.defaultValue&&f)?f.apply(s,_134):_133;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new _12d({deferred:v},_12b.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "
"+this.defaultValue+"
";}return v;},format:function(_135,_136){var f,i=this.grid.edit.info,d=this.get?this.get(_135,_136):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&").replace(/";},formatNode:function(_15d,_15e,_15f){this.inherited(arguments);this.registerOnBlur(_15d,_15f);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){_127.stop(e);}}},_finish:function(_160){this.inherited(arguments);var n=this.getEditNode(_160);try{util.fire(n,"blur");}catch(e){}}});Cell.markupFactory=function(node,_161){_131.markupFactory(node,_161);var _162=lang.trim(_12a.get(node,"keyFilter")||"");if(_162){_161.keyFilter=new RegExp(_162);}};var _163=_126("dojox.grid.cells.RowIndex",Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_164){return _164+1;}});_163.markupFactory=function(node,_165){Cell.markupFactory(node,_165);};var _166=_126("dojox.grid.cells.Select",Cell,{options:null,values:null,returnIndex:-1,constructor:function(_167){this.values=this.values||this.options;},formatEditing:function(_168,_169){this.needFormatNode(_168,_169);var h=["");return h.join("");},_defaultFormat:function(_16a,_16b){var v=this.inherited(arguments);if(!this.formatter&&this.values&&this.options){var i=_129.indexOf(this.values,v);if(i>=0){v=this.options[i];}}return v;},getValue:function(_16c){var n=this.getEditNode(_16c);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});_166.markupFactory=function(node,cell){Cell.markupFactory(node,cell);var _16d=lang.trim(_12a.get(node,"options")||"");if(_16d){var o=_16d.split(",");if(o[0]!=_16d){cell.options=o;}}var _16e=lang.trim(_12a.get(node,"values")||"");if(_16e){var v=_16e.split(",");if(v[0]!=_16e){cell.values=v;}}};var _16f=_126("dojox.grid.cells.AlwaysEdit",Cell,{alwaysEditing:true,_formatNode:function(_170,_171){this.formatNode(this.getEditNode(_171),_170,_171);},applyStaticValue:function(_172){var e=this.grid.edit;e.applyCellEdit(this.getValue(_172),this,_172);e.start(this,_172,true);}});_16f.markupFactory=function(node,cell){Cell.markupFactory(node,cell);};var Bool=_126("dojox.grid.cells.Bool",_16f,{_valueProp:"checked",formatEditing:function(_173,_174){return "";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});Bool.markupFactory=function(node,cell){_16f.markupFactory(node,cell);};return _131;});},"url:dojox/grid/resources/View.html":"
\n\t
\n\t\t
\n\t\t\t
\n\t\t
\n\t
\n\t\n\t\n\t
\n\t\t
\n\t
\n
\n","dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_175,lang,_176,when){return _175("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_177){if(_177){this.set(_177);}},_get:function(name,_178){return typeof this[_178.g]==="function"?this[_178.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_179){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _17a=this._getAttrNames(name),_17b=this._get(name,_17a),_17c=this[_17a.s],_17d;if(typeof _17c==="function"){_17d=_17c.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_179;}if(this._watchCallbacks){var self=this;when(_17d,function(){self._watchCallbacks(name,_17b,_179);});}return this;},_changeAttrValue:function(name,_17e){var _17f=this.get(name);this[name]=_17e;if(this._watchCallbacks){this._watchCallbacks(name,_17f,_17e);}return this;},watch:function(name,_180){var _181=this._watchCallbacks;if(!_181){var self=this;_181=this._watchCallbacks=function(name,_182,_183,_184){var _185=function(_186){if(_186){_186=_186.slice();for(var i=0,l=_186.length;i-1){_187.splice(_189,1);}};return _188;}});});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-class","dojo/has","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/window","./registry"],function(_18a,_18b,dom,_18c,has,lang,on,_18d,win,_18e){var _18f=_18b("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_18a.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active","_opened"],function(attr){this.watch(attr,lang.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._trackMouseState(this.domNode,this.baseClass);this._setStateClass();},_cssMouseEvent:function(_190){if(!this.disabled){switch(_190.type){case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchstart":this._set("active",true);break;case "mouseup":case "touchend":this._set("active",false);break;}}},_setStateClass:function(){var _191=this.baseClass.split(" ");function _192(_193){_191=_191.concat(_18a.map(_191,function(c){return c+_193;}),"dijit"+_193);};if(!this.isLeftToRight()){_192("Rtl");}var _194=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_192(_194);}if(this.state){_192(this.state);}if(this.selected){_192("Selected");}if(this._opened){_192("Opened");}if(this.disabled){_192("Disabled");}else{if(this.readOnly){_192("ReadOnly");}else{if(this.active){_192("Active");}else{if(this.hovering){_192("Hover");}}}}if(this.focused){_192("Focused");}var tn=this.stateNode||this.domNode,_195={};_18a.forEach(tn.className.split(" "),function(c){_195[c]=true;});if("_stateClasses" in this){_18a.forEach(this._stateClasses,function(c){delete _195[c];});}_18a.forEach(_191,function(c){_195[c]=true;});var _196=[];for(var c in _195){_196.push(c);}tn.className=_196.join(" ");this._stateClasses=_191;},_subnodeCssMouseEvent:function(node,_197,evt){if(this.disabled||this.readOnly){return;}function _198(_199){_18c.toggle(node,_197+"Hover",_199);};function _19a(_19b){_18c.toggle(node,_197+"Active",_19b);};function _19c(_19d){_18c.toggle(node,_197+"Focused",_19d);};switch(evt.type){case "mouseover":_198(true);break;case "mouseout":_198(false);_19a(false);break;case "mousedown":case "touchstart":_19a(true);break;case "mouseup":case "touchend":_19a(false);break;case "focus":case "focusin":_19c(true);break;case "blur":case "focusout":_19c(false);break;}},_trackMouseState:function(node,_19e){node._cssState=_19e;}});_18d(function(){function _19f(evt){if(!dom.isDescendant(evt.relatedTarget,evt.target)){for(var node=evt.target;node&&node!=evt.relatedTarget;node=node.parentNode){if(node._cssState){var _1a0=_18e.getEnclosingWidget(node);if(_1a0){if(node==_1a0.domNode){_1a0._cssMouseEvent(evt);}else{_1a0._subnodeCssMouseEvent(node,node._cssState,evt);}}}}}};function _1a1(evt){evt.target=evt.srcElement;_19f(evt);};var body=win.body(),_1a2=(has("touch")?[]:["mouseover","mouseout"]).concat(["mousedown","touchstart","mouseup","touchend"]);_18a.forEach(_1a2,function(type){if(body.addEventListener){body.addEventListener(type,_19f,true);}else{body.attachEvent("on"+type,_1a1);}});on(body,"focusin, focusout",function(evt){var node=evt.target;if(node._cssState&&!node.getAttribute("widgetId")){var _1a3=_18e.getEnclosingWidget(node);_1a3._subnodeCssMouseEvent(node,node._cssState,evt);}});});return _18f;});},"dojo/dnd/Moveable":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../dom","../dom-class","../Evented","../on","../topic","../touch","./common","./Mover","../_base/window"],function(_1a4,_1a5,_1a6,lang,dom,_1a7,_1a8,on,_1a9,_1aa,dnd,_1ab,win){var _1ac=_1a5("dojo.dnd.Moveable",[_1a8],{handle:"",delay:0,skip:false,constructor:function(node,_1ad){this.node=dom.byId(node);if(!_1ad){_1ad={};}this.handle=_1ad.handle?dom.byId(_1ad.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_1ad.delay>0?_1ad.delay:0;this.skip=_1ad.skip;this.mover=_1ad.mover?_1ad.mover:_1ab;this.events=[on(this.handle,_1aa.press,lang.hitch(this,"onMouseDown")),on(this.handle,"dragstart",lang.hitch(this,"onSelectStart")),on(this.handle,"selectstart",lang.hitch(this,"onSelectStart"))];},markupFactory:function(_1ae,node,Ctor){return new Ctor(node,_1ae);},destroy:function(){_1a4.forEach(this.events,function(_1af){_1af.remove();});this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dnd.isFormElement(e)){return;}if(this.delay){this.events.push(on(this.handle,_1aa.move,lang.hitch(this,"onMouseMove")),on(this.handle,_1aa.release,lang.hitch(this,"onMouseUp")));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}_1a6.stop(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);}_1a6.stop(e);},onMouseUp:function(e){for(var i=0;i<2;++i){this.events.pop().remove();}_1a6.stop(e);},onSelectStart:function(e){if(!this.skip||!dnd.isFormElement(e)){_1a6.stop(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_1b0){_1a9.publish("/dnd/move/start",_1b0);_1a7.add(win.body(),"dojoMove");_1a7.add(this.node,"dojoMoveItem");},onMoveStop:function(_1b1){_1a9.publish("/dnd/move/stop",_1b1);_1a7.remove(win.body(),"dojoMove");_1a7.remove(this.node,"dojoMoveItem");},onFirstMove:function(){},onMove:function(_1b2,_1b3){this.onMoving(_1b2,_1b3);var s=_1b2.node.style;s.left=_1b3.l+"px";s.top=_1b3.t+"px";this.onMoved(_1b2,_1b3);},onMoving:function(){},onMoved:function(){}});return _1ac;});},"dojox/grid/Selection":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-attr"],function(_1b4,_1b5,lang,_1b6){return _1b4("dojox.grid.Selection",null,{constructor:function(_1b7){this.grid=_1b7;this.selected=[];this.setMode(_1b7.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-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(_1b8){return this.grid.onCanSelect(_1b8);},onCanDeselect:function(_1b9){return this.grid.onCanDeselect(_1b9);},onSelected:function(_1ba){},onDeselected:function(_1bb){},onChanging:function(){},onChanged:function(){},isSelected:function(_1bc){if(this.mode=="none"){return false;}return this.selected[_1bc];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i=0?_1c7:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_1c8,inTo){this._range(_1c8,inTo,lang.hitch(this,"addToSelection"));},deselectRange:function(_1c9,inTo){this._range(_1c9,inTo,lang.hitch(this,"deselect"));},insert:function(_1ca){this.selected.splice(_1ca,0,false);if(this.selectedIndex>=_1ca){this.selectedIndex++;}},remove:function(_1cb){this.selected.splice(_1cb,1);if(this.selectedIndex>=_1cb){this.selectedIndex--;}},deselectAll:function(_1cc){for(var i in this.selected){if((i!=_1cc)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_1cd,_1ce,_1cf){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_1cd);}else{if(!_1cf||this.rangeStartIndex<0){this.rangeStartIndex=_1cd;}if(!_1ce){this.deselectAll(_1cd);}if(_1cf){this.selectRange(this.rangeStartIndex,_1cd);}else{if(_1ce){this.toggleSelect(_1cd);}else{this.addToSelection(_1cd);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});});},"dojox/grid/_Grid":function(){require({cache:{"url:dojox/grid/resources/_Grid.html":"
\n\t
\n\t
\n\t
\n\t\n
\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,_1d0,_1d1,_1d2,_1d3,_1d4,_1d5,_1d6,_1d7,_1d8,_1d9,_1da,_1db,util,_1dc,_1dd,_1de,_1df,_1e0,_1e1,lang,has,_1e2,html,_1e3){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}var _1e4=_1d1("dojox.grid._Grid",[_1dc,_1dd,_1d2],{templateString:_1df,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:"${loadingState}",errorMessage:"${errorState}",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,summary:"",_setSummaryAttr:"domNode",sortInfo:0,_placeholders:null,_layoutClass:_1d4,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");_1e2.initOnFontResize();this.connect(_1e2,"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");}if(this.rowHeight>0){html.addClass(this.viewsNode,this.classTag+"FixedRowHeight");}},postMixInProperties:function(){this.inherited(arguments);var _1e5=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_1e0.substitute(this.loadingMessage,_1e5);this.errorMessage=_1e0.substitute(this.errorMessage,_1e5);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){_1e1.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_1e6){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&&!_1e6){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 _1d7(this);this.focus=new _1d8(this);this.edit=new _1d9(this);},createSelection:function(){this.selection=new _1da(this);},createScroller:function(){this.scroller=new _1d3();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.update();},onResizeColumn:function(_1e7){},createViews:function(){this.views=new _1d6(this);this.views.createView=lang.hitch(this,"createView");},createView:function(_1e8,idx){var c=lang.getObject(_1e8);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||_1d0._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_1e9){var s=_1e9;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(_1ea){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_1ea);},getColumnTogglingItems:function(){var _1eb,_1ec=[];_1eb=_1e1.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new _1de({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_1ed){if(self.layout.setColumnVisibility(this._gridCell.index,_1ed)){var _1ee=this._gridCell.menuItems;if(_1ee.length>1){_1e1.forEach(_1ee,function(item){if(item!==this){item.setAttribute("checked",_1ed);}},this);}_1ed=_1e1.filter(self.layout.cells,function(c){if(c.menuItems.length>1){_1e1.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_1ed.length==1){_1e1.forEach(_1ed[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _1ef=_1e1.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_1ef,1);delete this._gridCell;_1de.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_1ec.push(item);}return item;},this);if(_1ec.length==1){_1ec[0].set("disabled",true);}return _1eb;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){_1e1.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){_1e1.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_1f0){this.setScrollTop(0);},getItem:function(_1f1){return null;},showMessage:function(_1f2){if(_1f2){this.messagesNode.innerHTML=_1f2;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(_1f3,_1f4){this._pendingChangeSize=_1f3;this._pendingResultSize=_1f4;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(_1f5,_1f6){_1f5=_1f5||this._pendingChangeSize;_1f6=_1f6||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 _1f7=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<=_1f7.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(_1f6){_1f5=_1f6;}if(!this._autoHeight&&_1f5){html.marginBox(this.domNode,_1f5);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=(this._parentContentBoxHeight>0?this._parentContentBoxHeight:html._getContentBox(pn).h);this.domNode.style.height=Math.max(0,h)+"px";}}var _1f8=_1e1.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(!_1f8&&hh===undefined){hh=this._getHeaderHeight();}}if(_1f8){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _1f9=(!this.initialWidth&&this.autoWidth);var w=_1f9?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_1f9){this.domNode.style.width=vw+"px";}},adaptHeight:function(_1fa){var t=_1fa===undefined?this._getHeaderHeight():_1fa;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 _1fb=0,_1fc=0;var _1fd=_1e1.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_1fb++;}else{_1fc++;}return (!has);});if(_1fb>0&&_1fc>0){_1e1.forEach(_1fd,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(_1fe,_1ff){this.views.renderRow(_1fe,_1ff,this._skipRowRenormalize);},rowRemoved:function(_200){this.views.rowRemoved(_200);},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(_201){_201=Number(_201);if(this.updating){this.invalidated[_201]=true;}else{this.views.updateRow(_201);this.scroller.rowHeightChanged(_201);}},updateRows:function(_202,_203){_202=Number(_202);_203=Number(_203);var i;if(this.updating){for(i=0;i<_203;i++){this.invalidated[i+_202]=true;}}else{for(i=0;i<_203;i++){this.views.updateRow(i+_202,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_202);}},updateRowCount:function(_204){if(this.updating){this.invalidated.rowCount=_204;}else{this.rowCount=_204;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_204);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_205){this.views.updateRowStyles(_205);},getRowNode:function(_206){if(this.focus.focusView&&!(this.focus.focusView instanceof _1db)){return this.focus.focusView.rowNodes[_206];}else{for(var i=0,_207;(_207=this.views.views[i]);i++){if(!(_207 instanceof _1db)){return _207.rowNodes[_206];}}}return null;},rowHeightChanged:function(_208){this.views.renormalizeRow(_208);this.scroller.rowHeightChanged(_208);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(has("ie")?100:50),scrollTo:function(_209){if(!this.fastScroll){this.setScrollTop(_209);return;}var _20a=Math.abs(this.lastScrollTop-_209);this.lastScrollTop=_209;if(_20a>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_209;this.views.setScrollTop(_209);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _20b=this;this._pendingScroll=window.setTimeout(function(){delete _20b._pendingScroll;_20b.finishScrollJob();},200);}else{this.setScrollTop(_209);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_20c){this.scroller.scroll(this.views.setScrollTop(_20c));},scrollToRow:function(_20d){this.setScrollTop(this.scroller.findScrollTop(_20d)+1);},styleRowNode:function(_20e,_20f){if(_20f){this.rows.styleRowNode(_20e,_20f);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_210){return this.layout.cells[_210];},setCellWidth:function(_211,_212){this.getCell(_211).unitWidth=_212;},getCellName:function(_213){return "Cell "+_213.index;},canSort:function(_214){},sort:function(){},getSortAsc:function(_215){_215=_215==undefined?this.sortInfo:_215;return Boolean(_215>0);},getSortIndex:function(_216){_216=_216==undefined?this.sortInfo:_216;return Math.abs(_216)-1;},setSortIndex:function(_217,_218){var si=_217+1;if(_218!=undefined){si*=(_218?1:-1);}else{if(this.getSortIndex()==_217){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_219){if(this.canSort(_219)){this.sortInfo=_219;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(_21a,_21b){this.onStartEdit(_21a,_21b);},doApplyCellEdit:function(_21c,_21d,_21e){this.onApplyCellEdit(_21c,_21d,_21e);},doCancelEdit:function(_21f){this.onCancelEdit(_21f);},doApplyEdit:function(_220){this.onApplyEdit(_220);},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();}});_1e4.markupFactory=function(_221,node,ctor,_222){var _223=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(!_221.structure&&node.nodeName.toLowerCase()=="table"){_221.structure=_1e3("> 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=_223(cg);}return v;});if(!_221.structure.length){_221.structure.push({__span:Infinity,cells:[]});}_1e3("thead > tr",node).forEach(function(tr,_224){var _225=0;var _226=0;var _227;var _228=null;_1e3("> th",tr).map(function(th){if(!_228){_227=0;_228=_221.structure[0];}else{if(_225>=(_227+_228.__span)){_226++;_227+=_228.__span;var _229=_228;_228=_221.structure[_226];}}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")||"")};_225+=cell.colSpan;var _22a=html.attr(th,"rowspan");if(_22a){cell.rowSpan=_22a;}if(html.hasAttr(th,"width")){cell.width=_223(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(_222){_222(th,cell);}cell.type=cell.type?lang.getObject(cell.type):_1d0.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_228.cells[_224]){_228.cells[_224]=[];}_228.cells[_224].push(cell);});});}return new ctor(_221,node);};return _1e4;});},"dojo/dnd/Selector":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/kernel","../_base/lang","../dom","../dom-construct","../mouse","../_base/NodeList","../on","../touch","./common","./Container"],function(_22b,_22c,_22d,_22e,lang,dom,_22f,_230,_231,on,_232,dnd,_233){var _234=_22c("dojo.dnd.Selector",_233,{constructor:function(node,_235){if(!_235){_235={};}this.singular=_235.singular;this.autoSync=_235.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(on(this.node,_232.press,lang.hitch(this,"onMouseDown")),on(this.node,_232.release,lang.hitch(this,"onMouseUp")));},singular:false,getSelectedNodes:function(){var t=new _231();var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dom.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dom.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dom.byId(i);this.delItem(i);_22f.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||_22e.global;var s=this.selection,e=dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){_234.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}_22b.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_236,data,_237,_238){var _239=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_239.call(this,item,hint);if(_236){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;};_234.superclass.insertNodes.call(this,data,_237,_238);this._normalizedCreator=_239;return this;},destroy:function(){_234.superclass.destroy.call(this);this.selection=this.anchor=null;},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dnd.getCopyKeyState(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(_230.isLeft(e)){_22d.stop(e);}return;}if(!this.singular&&e.shiftKey){if(!dnd.getCopyKeyState(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,node;for(;i\n\t\n\t\t\"\"\n\t\n\t\n\t\n\t\n\t\t
\n\t\t\t\"\"\n\t\t\t+\n\t\t
\n\t\n\n","dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_23a,has,_23b,win,_23c){var _23d={},hash={};var _23e={length:0,add:function(_23f){if(hash[_23f.id]){throw new Error("Tried to register widget with id=="+_23f.id+" but that id is already registered");}hash[_23f.id]=_23f;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(_240){var id;do{id=_240+"_"+(_240 in _23d?++_23d[_240]:_23d[_240]=0);}while(hash[id]);return _23c._scopeName=="dijit"?id:_23c._scopeName+"_"+id;},findWidgets:function(root,_241){var _242=[];function _243(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _244=node.getAttribute("widgetId");if(_244){var _245=hash[_244];if(_245){_242.push(_245);}}else{if(node!==_241){_243(node);}}}}};_243(root);return _242;},_destroyAll:function(){_23c._curFocus=null;_23c._prevFocus=null;_23c._activeStack=[];_23a.forEach(_23e.findWidgets(win.body()),function(_246){if(!_246._destroyed){if(_246.destroyRecursive){_246.destroyRecursive();}else{if(_246.destroy){_246.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.nodeType==1&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_23c.registry=_23e;return _23e;});},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./sniff","./_base/window"],function(_247,lang,_248,has,_249){var html=_249.doc.documentElement,ie=has("ie"),_24a=has("opera"),maj=Math.floor,ff=has("ff"),_24b=_247.boxModel.replace(/-/,""),_24c={"dj_quirks":has("quirks"),"dj_opera":_24a,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla")};if(ie){_24c["dj_ie"]=true;_24c["dj_ie"+maj(ie)]=true;_24c["dj_iequirks"]=has("quirks");}if(ff){_24c["dj_ff"+maj(ff)]=true;}_24c["dj_"+_24b]=true;var _24d="";for(var clz in _24c){if(_24c[clz]){_24d+=clz+" ";}}html.className=lang.trim(html.className+" "+_24d);_248(90,function(){if(!_247.isBodyLtr()){var _24e="dj_rtl dijitRtl "+_24d.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_24e+"dj_rtl dijitRtl "+_24d.replace(/ /g,"-rtl "));}});return has;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(lang,has,_24f,dom,geom,_250,_251){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var body=_24f.body(doc),_252=_251.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=_251.create("div",{style:{overflow:"hidden",direction:"ltr"}},_252,"last"),ret=geom.position(div).x!=0;_252.removeChild(div);body.removeChild(_252);return ret;});has.add("position-fixed-support",function(win,doc){var body=_24f.body(doc),_253=_251.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_254=_251.create("span",{style:{position:"fixed",left:"0",top:"0"}},_253,"last"),ret=geom.position(_254).x!=geom.position(_253).x;_253.removeChild(_254);body.removeChild(_253);return ret;});var _255={getBox:function(doc){doc=doc||_24f.doc;var _256=(doc.compatMode=="BackCompat")?_24f.body(doc):doc.documentElement,_257=geom.docScroll(doc),w,h;if(has("touch")){var _258=_255.get(doc);w=_258.innerWidth||_256.clientWidth;h=_258.innerHeight||_256.clientHeight;}else{w=_256.clientWidth;h=_256.clientHeight;}return {l:_257.x,t:_257.y,w:w,h:h};},get:function(doc){if(has("ie")&&_255!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;},scrollIntoView:function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_24f.doc,body=_24f.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if(node==body||node==html){return;}if(!(has("mozilla")||isIE||isWK||has("opera"))&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _259=doc.compatMode=="BackCompat",_25a=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_25b=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_25c=(isWK||_259)?body:html,_25d=pos||geom.position(node),el=node.parentNode,_25e=function(el){return (isIE<=6||(isIE==7&&_259))?false:(has("position-fixed-support")&&(_250.get(el,"position").toLowerCase()=="fixed"));};if(_25e(node)){return;}while(el){if(el==body){el=_25c;}var _25f=geom.position(el),_260=_25e(el),rtl=_250.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_25c){_25f.w=_25a;_25f.h=_25b;if(_25c==html&&isIE&&rtl){_25f.x+=_25c.offsetWidth-_25f.w;}if(_25f.x<0||!isIE||isIE>=9){_25f.x=0;}if(_25f.y<0||!isIE||isIE>=9){_25f.y=0;}}else{var pb=geom.getPadBorderExtents(el);_25f.w-=pb.w;_25f.h-=pb.h;_25f.x+=pb.l;_25f.y+=pb.t;var _261=el.clientWidth,_262=_25f.w-_261;if(_261>0&&_262>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_25f.x+=_262;}_25f.w=_261;}_261=el.clientHeight;_262=_25f.h-_261;if(_261>0&&_262>0){_25f.h=_261;}}if(_260){if(_25f.y<0){_25f.h+=_25f.y;_25f.y=0;}if(_25f.x<0){_25f.w+=_25f.x;_25f.x=0;}if(_25f.y+_25f.h>_25b){_25f.h=_25b-_25f.y;}if(_25f.x+_25f.w>_25a){_25f.w=_25a-_25f.x;}}var l=_25d.x-_25f.x,t=_25d.y-_25f.y,r=l+_25d.w-_25f.w,bot=t+_25d.h-_25f.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_25c||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_259)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_25d.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_25c||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_25d.y-=s;}el=(el!=_25c)&&!_260&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_255);return _255;});},"dojo/dnd/Mover":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../sniff","../_base/window","../dom","../dom-geometry","../dom-style","../Evented","../on","../touch","./common","./autoscroll"],function(_263,_264,_265,lang,has,win,dom,_266,_267,_268,on,_269,dnd,_26a){return _264("dojo.dnd.Mover",[_268],{constructor:function(node,e,host){this.node=dom.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[on(d,_269.move,lang.hitch(this,"onFirstMove")),on(d,_269.move,lang.hitch(this,"onMouseMove")),on(d,_269.release,lang.hitch(this,"onMouseUp")),on(d,"dragstart",_265.stop),on(d.body,"selectstart",_265.stop)];_26a.autoScrollStart(d);if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_26a.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);_265.stop(e);},onMouseUp:function(e){if(has("webkit")&&has("mac")&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_265.stop(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=_266.getMarginBox(this.node);var b=win.doc.body;var bs=_267.getComputedStyle(b);var bm=_266.getMarginBox(b,bs);var bc=_266.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);}this.events.shift().remove();},destroy:function(){_263.forEach(this.events,function(_26b){_26b.remove();});var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});});},"url:dojox/grid/resources/_Grid.html":"
\n\t
\n\t
\n\t
\n\t\n
\n","dojox/grid/_EditManager":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/sniff","./util"],function(lang,_26c,_26d,_26e,has,util){return _26d("dojox.grid._EditManager",null,{constructor:function(_26f){this.grid=_26f;if(has("ie")){this.connections=[_26e.connect(document.body,"onfocus",lang.hitch(this,"_boomerangFocus"))];}else{this.connections=[_26e.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){_26c.forEach(this.connections,_26e.disconnect);},cellFocus:function(_270,_271){if(this.grid.singleClickEdit||this.isEditRow(_271)){this.setEditCell(_270,_271);}else{this.apply();}if(this.isEditing()||(_270&&_270.editable&&_270.alwaysEditing)){this._focusEditor(_270,_271);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_272){if(_272.index==this.info.rowIndex){_272.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(_273,_274){return (this.info.rowIndex===_273)&&(this.info.cell.index==_274);},isEditRow:function(_275){return this.info.rowIndex===_275;},setEditCell:function(_276,_277){if(!this.isEditCell(_277,_276.index)&&this.grid.canEdit&&this.grid.canEdit(_276,_277)){this.start(_276,_277,this.isEditRow(_277)||_276.editable);}},_focusEditor:function(_278,_279){util.fire(_278,"focus",[_279]);},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(_27a,_27b,_27c){if(!this._isValidInput()){return;}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_27b)){this.applyRowEdit();this.grid.updateRow(_27b);}if(_27c){this.info={cell:_27a,rowIndex:_27b};this.grid.doStartEdit(_27a,_27b);this.grid.updateRow(_27b);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_27a,_27b);this._doCatchBoomerang();},_editorDo:function(_27d){var c=this.info.cell;if(c&&c.editable){c[_27d](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_27e,_27f,_280){if(this.grid.canEdit(_27f,_280)){this.grid.doApplyCellEdit(_27e,_280,_27f.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(_281,_282){var c=this.info.cell;if(this.isEditRow(_281)&&(!_282||c.view==_282)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_283,_284){var c=this.info.cell;if(this.isEditRow(_284)&&c.view==_283&&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);}});});},"dojox/grid/DataSelection":function(){define("dojox/grid/DataSelection",["dojo/_base/declare","./_SelectionPreserver","./Selection"],function(_285,_286,_287){return _285("dojox.grid.DataSelection",_287,{constructor:function(grid){if(grid.keepSelection){this.preserver=new _286(this);}},destroy:function(){if(this.preserver){this.preserver.destroy();}},getFirstSelected:function(){var idx=_287.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_288){var _289=this.grid.getItemIndex(_288);var idx=_287.prototype.getNextSelected.call(this,_289);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _28a=[];for(var i=0,l=this.selected.length;i=0?h:0);if((has("mozilla")||has("ie")>8)&&h){h++;}}for(i=0;(n=_297[i]);i++){if(_298[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(_299){var _29a=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_299));i++){n.firstChild.style.height="";_29a.push(n);}this.normalizeRowNodeHeights(_29a);},getViewWidth:function(_29b){return this.views[_29b].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_29c){_29c.headerContentNode.style.height="";});var h=0;this.forEach(function(_29d){h=Math.max(_29d.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_29e){h=Math.max(_29e.domNode.offsetHeight,h);});return h;},findClient:function(_29f){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 _2a0=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){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!has("webkit")){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"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=0){var s=_2b2.style;var v=_2b3+"px";if(_2b2&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_2b4,_2b5,_2b6,_2b7){var evts=(_2b7?_2b7:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i1&&_2f9){for(var i in _2f9){if(i in _2f8){continue;}s[i]=_2f9[i];}}if(arguments.length>2&&_2fa){m.className=_2fa;}m.innerHTML=text;var box=_2f2.position(m);box.w=m.parentNode.scrollWidth;return box;};var _2fb={w:16,h:16};dhm.getScrollbar=function(){return {w:_2fb.w,h:_2fb.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_2fc){var f=dhm._fontResizeNode=_2f1.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";fs.display="none";if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[_2f3._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[_2f3._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:''");_2f1.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};_2f0.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;}});_2ef(function(){try{var n=_2f1.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";_2f1.body().appendChild(n);_2fb.w=n.offsetWidth-n.clientWidth;_2fb.h=n.offsetHeight-n.clientHeight;_2f1.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in _2ee.config&&!!_2ee.config.fontSizeWatch){dhm.initOnFontResize();}});return dhm;});},"dojox/grid/_Builder":function(){define(["../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","dojo/dom-geometry"],function(_2fd,_2fe,lang,win,_2ff,has,_300,_301,_302,util,html,_303){var dg=_2fd.grid;var _304=function(td){return td.cellIndex>=0?td.cellIndex:_2fe.indexOf(td.parentNode.cells,td);};var _305=function(tr){return tr.rowIndex>=0?tr.rowIndex:_2fe.indexOf(tr.parentNode.childNodes,tr);};var _306=function(_307,_308){return _307&&((_307.rows||0)[_308]||_307.childNodes[_308]);};var _309=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _30a=function(_30b,_30c){for(var n=_30b;n&&_30c(n);n=n.parentNode){}return n;};var _30d=function(_30e){var name=_30e.toUpperCase();return function(node){return node.tagName!=name;};};var _30f=util.rowIndexTag;var _310=util.gridViewTag;var _311=dg._Builder=lang.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"");return html;},generateCellMarkup:function(_312,_313,_314,_315){var _316=[],html;if(_315){var _317=_312.index!=_312.grid.getSortIndex()?"":_312.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_312.id){_312.id=this.grid.id+"Hdr"+_312.index;}html=["":"");return _316;},isCellNode:function(_319){return Boolean(_319&&_319!=win.doc&&html.attr(_319,"idx"));},getCellNodeIndex:function(_31a){return _31a?Number(html.attr(_31a,"idx")):-1;},getCellNode:function(_31b,_31c){for(var i=0,row;((row=_306(_31b.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_31c){return cell;}}}return null;},findCellTarget:function(_31d,_31e){var n=_31d;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_310 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_310]!=this.view.id))&&(n!=_31e)){n=n.parentNode;}return n!=_31e?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(_31f,_320){var n=_31f;while(n&&(n!=this.domNode)&&(!(_320 in n)||(_310 in n&&n[_310]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_321){return this.findTarget(_321,_30f);},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 _322=dg._ContentBuilder=lang.extend(function(view){_311.call(this,view);},_311.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _323=this.grid.get,_324=this.view.structure.cells;for(var j=0,row;(row=_324[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_323;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_325,_326){var html=this.getTableArray(),v=this.view,_327=v.structure.cells,item=this.grid.getItem(_326);util.fire(this.view,"onBeforeRow",[_326,_327]);for(var j=0,row;(row=_327[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"":"");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(_326,item);m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("");}html.push("
");_316.push(html.join(""));_316.push("");_316.push(_315?"
");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_30f];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});var _328=dg._HeaderBuilder=lang.extend(function(view){this.moveable=null;_311.call(this,view);},_311.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(_329,_32a){var html=this.getTableArray(),_32b=this.view.structure.cells;util.fire(this.view,"onBeforeRow",[-1,_32b]);for(var j=0,row;(row=_32b[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"":"");for(var i=0,cell,_32c;(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+"'";}}_32c=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_32c[5]=(_32a!=undefined?_32a:_329(cell));_32c[3]=cell.customStyles.join(";");_32c[1]=cell.customClasses.join(" ");html.push(_32c.join(""));}html.push("");}html.push("");return html.join("");},getCellX:function(e){var n,x,pos;n=_30a(e.target,_30d("th"));if(n){pos=_303.position(n);x=e.clientX-pos.x;}else{x=e.layerX;}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.cellX0&&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){_2ff.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){_2ff.stop(e);return true;}return false;},colResizeSetup:function(e,_32d){var _32e=html.contentBox(e.sourceView.headerNode);if(_32d){this.lineDiv=document.createElement("div");var vw=html.position(e.sourceView.headerNode,true);var _32f=html.contentBox(e.sourceView.domNode);var l=e.pageX;if(!this.grid.isLeftToRight()&&has("ie")<8){l-=_302.getScrollbar().w;}html.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_32f.h+_32e.h)+"px"});html.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;win.body().appendChild(this.lineDiv);}var _330=[],_331=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_331[i]);i++){_330.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=this.grid.isLeftToRight()?1:-1;var _332=e.grid.views.views;var _333=[];for(var j=view.idx+adj,_334;(_334=_332[j]);j=j+adj){_333.push({node:_334.headerNode,left:window.parseInt(_334.headerNode.style.left)});}var _335=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:_32e.w,table:_335,tw:html.contentBox(_335).w,spanners:_330,followers:_333};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 _301(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=lang.hitch(this,"doResizeColumn",drag);_300.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(_336,_337,_338){var _339=_338.l;var data={deltaX:_339,w:_336.w+(this.grid.isLeftToRight()?_339:-_339),vw:_336.vw+_339,tw:_336.tw+_339};this.dragRecord={inDrag:_336,mover:_337,leftTop:_338};if(data.w>=this.minColWidth){if(!_337){this.doResizeNow(_336,data);}else{html.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_33a){if(this.dragRecord){var _33b=this.dragRecord.leftTop;var _33c=this.grid.isLeftToRight()?_33b.l:-_33b.l;_33c+=Math.max(_33a.w+_33c,this.minColWidth)-(_33a.w+_33c);if(has("webkit")&&_33a.spanners.length){_33c+=html._getPadBorderExtents(_33a.spanners[0].node).w;}var data={deltaX:_33c,w:_33a.w+_33c,vw:_33a.vw+_33c,tw:_33a.tw+_33c};this.doResizeNow(_33a,data);delete this.dragRecord;}html.destroy(this.lineDiv);html.destroy(this.moverDiv);html.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_33a.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_33a.index);},doResizeNow:function(_33d,data){_33d.view.convertColPctToFixed();if(_33d.view.flexCells&&!_33d.view.testFlexCells()){var t=_309(_33d.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_33d.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_33d.view.setColWidth(s.index,sw);}}if(this.grid.isLeftToRight()||!has("ie")){for(i=0;(f=_33d.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_33d.node.style.width=data.w+"px";_33d.view.setColWidth(_33d.index,data.w);_33d.view.headerNode.style.width=data.vw+"px";_33d.view.setColumnsWidth(data.tw);if(!this.grid.isLeftToRight()){_33d.view.headerNode.scrollLeft=_33d.scrollLeft+data.deltaX;}}});dg._TableMap=lang.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_33e){var _33f=_33e.length;if(!_33f){return;}this.map=[];var row;for(var k=0;(row=_33e[k]);k++){this.map[k]=[];}for(var j=0;(row=_33e[j]);j++){for(var i=0,x=0,cell,_340,_341;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_341=cell.rowSpan||1;_340=cell.colSpan||1;for(var y=0;y<_341;y++){for(var s=0;s<_340;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_340;}}},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(_342,_343){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_343&&cell.r==_342){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_344,_345,_346){var row=_344&&_344.rows[_345];return row&&row.cells[_346];},_findOverlappingNodes:function(_347,_348,_349){var _34a=[];var m=this.getMapCoords(_348,_349);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(_347,rw.r,rw.c):null);if(n){_34a.push(n);}}return _34a;},findOverlappingNodes:function(_34b){return this._findOverlappingNodes(_309(_34b),_305(_34b.parentNode),_304(_34b));}});return {_Builder:_311,_HeaderBuilder:_328,_ContentBuilder:_322};});},"dojox/grid/_Scroller":function(){define("dojox/grid/_Scroller",["dijit/registry","dojo/_base/declare","dojo/_base/lang","./util","dojo/_base/html"],function(_34c,_34d,lang,util,html){var _34e=function(_34f){var i=0,n,p=_34f.parentNode;while((n=p.childNodes[i++])){if(n==_34f){return i-1;}}return -1;};var _350=function(_351){if(!_351){return;}dojo.forEach(_34c.toArray(),function(w){if(w.domNode&&html.isDescendant(w.domNode,_351,true)){w.destroy();}});};var _352=function(_353){var node=html.byId(_353);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _354=function(_355,_356){var _357=[];var i=0,n;while((n=_355.childNodes[i])){i++;if(_352(n)==_356){_357.push(n);}}return _357;};var _358=function(_359){return _354(_359,"div");};return _34d("dojox.grid._Scroller",null,{constructor:function(_35a){this.setContentNodes(_35a);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(_35b,_35c,_35d){switch(arguments.length){case 3:this.rowsPerPage=_35d;case 2:this.keepRows=_35c;case 1:this.rowCount=_35b;default:break;}this.defaultPageHeight=(this.grid.rowHeight>0?this.grid.rowHeight: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(_35e,_35f){return _35e?(Math.ceil(_35e/_35f)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_360){this.keepRows=_360;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_361){this.contentNodes=_361;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_363){this.height+=this.defaultPageHeight*(this.pageCount-_363-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_364){return Boolean(this.getDefaultPageNode(_364));},measurePage:function(_365){if(this.grid.rowHeight){return ((_365+1)*this.rowsPerPage>this.rowCount?this.rowCount-_365*this.rowsPerPage:this.rowsPerPage)*this.grid.rowHeight;}var n=this.getDefaultPageNode(_365);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_366,_367){for(var i=0;ithis.pacifyTicks;this.setPacifying(true);this.startPacify();return _375;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i0&&_377>0)?(_378/_377):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _379=this.pageCount-1;var _37a=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_379]=_37a;return _37a;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_37b,_37c,_37d){if(this.pageExists(_37b)){var oh=this.getPageHeight(_37b);var h=(this.measurePage(_37b));if(h===undefined){h=oh;}this.pageHeights[_37b]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_37c)){if(!_37d){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_37b);}}else{this.repositionPages(_37b);}}return h;}return 0;},rowHeightChanged:function(_37e,_37f){this.updatePageHeight(Math.floor(_37e/this.rowsPerPage),false,_37f);},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(_380){var ph=this.pageHeights[_380];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_381){return this.stack.push(_381);},popPage:function(){return this.stack.shift();},findPage:function(_382){var i=0,h=0;for(var ph=0;i=_382){break;}}this.page=i;this.pageTop=h;},buildPage:function(_383,_384,_385){this.preparePage(_383,_384);this.positionPage(_383,_385);this.installPage(_383);this.renderPage(_383);this.pushPage(_383);},needPage:function(_386,_387){var h=this.getPageHeight(_386),oh=h;if(!this.pageExists(_386)){this.buildPage(_386,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_387);h=this.updatePageHeight(_386,true);}else{this.positionPage(_386,_387);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_388){this.grid.scrollTop=_388;if(this.colCount){this.startPacify();this.findPage(_388);var h=this.height;var b=this.getScrollBottom(_388);for(var p=this.page,y=this.pageTop;(p=0?_389+this.windowHeight:-1);},processNodeEvent:function(e,_38a){var t=e.target;while(t&&(t!=_38a)&&t.parentNode&&(t.parentNode.parentNode!=_38a)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_38a)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_34e(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_38b,_38c){},removeRow:function(_38d){},getDefaultPageNode:function(_38e){return this.getDefaultNodes()[_38e];},positionPageNode:function(_38f,_390){},getPageNodePosition:function(_391){return _391.offsetTop;},invalidatePageNode:function(_392,_393){var p=_393[_392];if(p){delete _393[_392];this.removePage(_392,p);_350(p);p.innerHTML="";}return p;},getPageRow:function(_394){return _394*this.rowsPerPage;},getLastPageRow:function(_395){return Math.min(this.rowCount,this.getPageRow(_395+1))-1;},getFirstVisibleRow:function(_396,_397,_398){if(!this.pageExists(_396)){return 0;}var row=this.getPageRow(_396);var _399=this.getDefaultNodes();var rows=_358(_399[_396]);for(var i=0,l=rows.length;i=0&&_39b>_39c;i--,row--){_39b-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_39e){var _39f=this.getDefaultNodes();var rows=_358(_39f[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i=_39e){this.offset=h-(t-_39e);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_3a0){var _3a1=Math.floor(_3a0/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_3a1;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_3a1;this.needPage(_3a1,this.pageTop);var _3a2=this.getDefaultNodes();var rows=_358(_3a2[_3a1]);var r=_3a0-this.rowsPerPage*_3a1;for(i=0,l=rows.length;i1){w=0;}else{w=_3ba.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _3bb={grid:this.grid,subrow:_3b6,layoutIndex:_3b7,index:this.cells.length};if(_3b8&&_3b8 instanceof _3a3.grid.cells._Base){var _3bc=lang.clone(_3b8);_3bb.unitWidth=_3b9(_3bc._props);_3bc=lang.mixin(_3bc,this._defaultCellProps,_3b8._props,_3bb);return _3bc;}var _3bd=_3b8.type||_3b8.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||_3a3.grid.cells.Cell;if(lang.isString(_3bd)){_3bd=lang.getObject(_3bd);}_3bb.unitWidth=_3b9(_3b8);return new _3bd(lang.mixin({},this._defaultCellProps,_3b8,_3bb));},addRowDef:function(_3be,_3bf){var _3c0=[];var _3c1=0,_3c2=0,_3c3=true;for(var i=0,def,cell;(def=_3bf[i]);i++){cell=this.addCellDef(_3be,i,def);_3c0.push(cell);this.cells.push(cell);if(_3c3&&cell.relWidth){_3c1+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_3c2+=window.parseInt(w,10);}else{if(w=="auto"){_3c3=false;}}}}}if(_3c1&&_3c3){_3a5.forEach(_3c0,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_3c1)*(100-_3c2))+"%";}});}return _3c0;},addRowsDef:function(_3c4){var _3c5=[];if(lang.isArray(_3c4)){if(lang.isArray(_3c4[0])){for(var i=0,row;_3c4&&(row=_3c4[i]);i++){_3c5.push(this.addRowDef(i,row));}}else{_3c5.push(this.addRowDef(0,_3c4));}}return _3c5;},addViewDef:function(_3c6){this._defaultCellProps=_3c6.defaultCell||{};if(_3c6.width&&_3c6.width=="auto"){delete _3c6.width;}return lang.mixin({},_3c6,{cells:this.addRowsDef(_3c6.rows||_3c6.cells)});},setStructure:function(_3c7){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:_3a3._scopeName+".grid._RowSelector"};if(lang.isString(this.grid.rowSelector)){var _3c8=this.grid.rowSelector;if(_3c8=="false"){sel=null;}else{if(_3c8!="true"){sel["width"]=_3c8;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _3c9=function(def){return ("name" in def||"field" in def||"get" in def);};var _3ca=function(def){if(lang.isArray(def)){if(lang.isArray(def[0])||_3c9(def[0])){return true;}}return false;};var _3cb=function(def){return (def!==null&&lang.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_3c9(def))));};if(lang.isArray(_3c7)){var _3cc=false;for(var i=0,st;(st=_3c7[i]);i++){if(_3cb(st)){_3cc=true;break;}}if(!_3cc){s.push(this.addViewDef({cells:_3c7}));}else{for(i=0;(st=_3c7[i]);i++){if(_3ca(st)){s.push(this.addViewDef({cells:st}));}else{if(_3cb(st)){s.push(this.addViewDef(st));}}}}}else{if(_3cb(_3c7)){s.push(this.addViewDef(_3c7));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});});},"dojo/dnd/Source":function(){define(["../_base/array","../_base/connect","../_base/declare","../_base/kernel","../_base/lang","../dom-class","../dom-geometry","../mouse","../ready","../topic","./common","./Selector","./Manager"],function(_3cd,_3ce,_3cf,_3d0,lang,_3d1,_3d2,_3d3,_3d4,_3d5,dnd,_3d6,_3d7){if(!_3d0.isAsync){_3d4(0,function(){var _3d8=["dojo/dnd/AutoSource","dojo/dnd/Target"];require(_3d8);});}var _3d9=_3cf("dojo.dnd.Source",_3d6,{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,_3da){lang.mixin(this,lang.mixin({},_3da));var type=this.accept;if(type.length){this.accept={};for(var i=0;ithis.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _3de=this.getSelectedNodes();if(_3de.length){m.startDrag(this,_3de,this.copyState(dnd.getCopyKeyState(e),true));}}}if(this.isDragging){var _3df=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=_3d2.position(this.current,true);}if(this.horizontal){_3df=(e.pageX-this.targetBox.x=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_3f3.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_3f4("[widgetId]",this.containerNode).map(_3f6.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(has("dijit-legacy-requires")){_3f5(0,function(){var _406=["dijit/_base"];require(_406);});}return _400;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_407,_408,_409,lang){lang.extend(_408,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _409("dijit._FocusMixin",null,{_focusManager:_407});});},"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/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_40a,_40b,dom,_40c,_40d,_40e,lang,on,_40f,has,_410,_411,win,_412,a11y,_413,_414){var _415=_40b([_410,_40e],{curNode:null,activeStack:[],constructor:function(){var _416=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);}});_40a.before(_40d,"empty",_416);_40a.before(_40d,"destroy",_416);},registerIframe:function(_417){return this.registerWin(_417.contentWindow,_417);},registerWin:function(_418,_419){var _41a=this;var _41b=function(evt){_41a._justMouseDowned=true;setTimeout(function(){_41a._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_41a._onTouchNode(_419||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_418.document.documentElement:_418.document;if(doc){if(has("ie")){_418.document.body.attachEvent("onmousedown",_41b);var _41c=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_41a._onFocusNode(_419||evt.srcElement);}else{_41a._onTouchNode(_419||evt.srcElement);}};doc.attachEvent("onfocusin",_41c);var _41d=function(evt){_41a._onBlurNode(_419||evt.srcElement);};doc.attachEvent("onfocusout",_41d);return {remove:function(){_418.document.detachEvent("onmousedown",_41b);doc.detachEvent("onfocusin",_41c);doc.detachEvent("onfocusout",_41d);doc=null;}};}else{doc.body.addEventListener("mousedown",_41b,true);doc.body.addEventListener("touchstart",_41b,true);var _41e=function(evt){_41a._onFocusNode(_419||evt.target);};doc.addEventListener("focus",_41e,true);var _41f=function(evt){_41a._onBlurNode(_419||evt.target);};doc.addEventListener("blur",_41f,true);return {remove:function(){doc.body.removeEventListener("mousedown",_41b,true);doc.body.removeEventListener("touchstart",_41b,true);doc.removeEventListener("focus",_41e,true);doc.removeEventListener("blur",_41f,true);doc=null;}};}}},_onBlurNode:function(node){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),0);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _420=[];try{while(node){var _421=_40c.get(node,"dijitPopupParent");if(_421){node=_413.byId(_421).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_412.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_422=id&&_413.byId(id);if(_422&&!(by=="mouse"&&_422.get("disabled"))){_420.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_420,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_423,by){var _424=this.activeStack;this.set("activeStack",_423);for(var _425=0;_425=_425;i--){_426=_413.byId(_424[i]);if(_426){_426._hasBeenBlurred=true;_426.set("focused",false);if(_426._focusManager==this){_426._onBlur(by);}this.emit("widget-blur",_426,by);}}for(i=_425;i<_423.length;i++){_426=_413.byId(_423[i]);if(_426){_426.set("focused",true);if(_426._focusManager==this){_426._onFocus(by);}this.emit("widget-focus",_426,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _427=new _415();_40f(function(){var _428=_427.registerWin(_412.get(win.doc));if(has("ie")){_411.addOnWindowUnload(function(){if(_428){_428.remove();_428=null;}});}});_414.focus=function(node){_427.focus(node);};for(var attr in _427){if(!/^_/.test(attr)){_414.focus[attr]=typeof _427[attr]=="function"?lang.hitch(_427,attr):_427[attr];}}_427.watch(function(attr,_429,_42a){_414.focus[attr]=_42a;});return _427;});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_42b,_42c){return _42b("dijit._Contained",null,{_getSibling:function(_42d){var node=this.domNode;do{node=node[_42d+"Sibling"];}while(node&&node.nodeType!=1);return node&&_42c.byNode(node);},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);}});});},"dojox/grid/_RowManager":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_42e,lang,_42f){var _430=function(_431,_432){if(_431.style.cssText==undefined){_431.setAttribute("style",_432);}else{_431.style.cssText=_432;}};return _42e("dojox.grid._RowManager",null,{constructor:function(_433){this.grid=_433;},linesToEms:2,overRow:-2,prepareStylingRow:function(_434,_435){return {index:_434,node:_435,odd:Boolean(_434&1),selected:!!this.grid.selection.isSelected(_434),over:this.isOver(_434),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_436,_437){var row=this.prepareStylingRow(_436,_437);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_438){var i=_438;i.node.className=i.customClasses;var h=i.node.style.height;_430(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_439){this.grid.updateRowStyles(_439);},setOverRow:function(_43a){var last=this.overRow;this.overRow=_43a;if((last!=this.overRow)&&(lang.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_43b){return (this.overRow==_43b&&!_42f.contains(this.grid.domNode,"dojoxGridColumnResizing"));}});});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_43c,_43d,_43e){return _43e("dijit.Destroyable",null,{destroy:function(_43f){this._destroyed=true;},own:function(){_43c.forEach(arguments,function(_440){var _441="destroyRecursive" in _440?"destroyRecursive":"destroy" in _440?"destroy":"remove";var odh=_43d.before(this,"destroy",function(_442){_440[_441](_442);});var hdh=_43d.after(_440,_441,function(){odh.remove();hdh.remove();},true);},this);return arguments;}});});},"dojo/dnd/Container":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/kernel","../_base/lang","../_base/window","../dom","../dom-class","../dom-construct","../Evented","../has","../on","../query","../ready","../touch","./common"],function(_443,_444,_445,_446,lang,win,dom,_447,_448,_449,has,on,_44a,_44b,_44c,dnd){var _44d=_444("dojo.dnd.Container",_449,{skipForm:false,allowNested:false,constructor:function(node,_44e){this.node=dom.byId(node);if(!_44e){_44e={};}this.creator=_44e.creator||null;this.skipForm=_44e.skipForm;this.parent=_44e.dropParent&&dom.byId(_44e.dropParent);this.map={};this.current=null;this.containerState="";_447.add(this.node,"dojoDndContainer");if(!(_44e&&_44e._skipStartup)){this.startup();}this.events=[on(this.node,_44c.over,lang.hitch(this,"onMouseOver")),on(this.node,_44c.out,lang.hitch(this,"onMouseOut")),on(this.node,"dragstart",lang.hitch(this,"onSelectStart")),on(this.node,"selectstart",lang.hitch(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||_446.global;var m=this.map,e=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 _44a((this.allowNested?"":"> ")+".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=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,_44f,_450){if(!this.parent.firstChild){_450=null;}else{if(_44f){if(!_450){_450=this.parent.firstChild;}}else{if(_450){_450=_450.nextSibling;}}}var i,t;if(_450){for(i=0;i\n\t\n\t\t\"\"\n\t\t\n\t\n\t\n\t\n\t \n\n","dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo){return dojo.cache;});},"dojo/dnd/Manager":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../_base/window","../dom-class","../Evented","../has","../keys","../on","../topic","../touch","./common","./autoscroll","./Avatar"],function(_458,_459,_45a,lang,win,_45b,_45c,has,keys,on,_45d,_45e,dnd,_45f,_460){var _461=_459("dojo.dnd.Manager",[_45c],{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:has("touch")?0:16,OFFSET_Y:has("touch")?-64:16,overSource:function(_462){if(this.avatar){this.target=(_462&&_462.targetState!="Disabled")?_462:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}_45d.publish("/dnd/source/over",_462);},outSource:function(_463){if(this.avatar){if(this.target==_463){this.target=null;this.canDropFlag=false;this.avatar.update();_45d.publish("/dnd/source/over",null);}}else{_45d.publish("/dnd/source/over",null);}},startDrag:function(_464,_465,copy){_45f.autoScrollStart(win.doc);this.source=_464;this.nodes=_465;this.copy=Boolean(copy);this.avatar=this.makeAvatar();win.body().appendChild(this.avatar.node);_45d.publish("/dnd/start",_464,_465,this.copy);this.events=[on(win.doc,_45e.move,lang.hitch(this,"onMouseMove")),on(win.doc,_45e.release,lang.hitch(this,"onMouseUp")),on(win.doc,"keydown",lang.hitch(this,"onKeyDown")),on(win.doc,"keyup",lang.hitch(this,"onKeyUp")),on(win.doc,"dragstart",_45a.stop),on(win.body(),"selectstart",_45a.stop)];var c="dojoDnd"+(copy?"Copy":"Move");_45b.add(win.body(),c);},canDrop:function(flag){var _466=Boolean(this.target&&flag);if(this.canDropFlag!=_466){this.canDropFlag=_466;this.avatar.update();}},stopDrag:function(){_45b.remove(win.body(),["dojoDndCopy","dojoDndMove"]);_458.forEach(this.events,function(_467){_467.remove();});this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new _460(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){_45f.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(dnd.getCopyKeyState(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}if(has("touch")){e.preventDefault();}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dnd.getCopyKeyState(e)));_45d.publish("/dnd/drop/before",this.source,this.nodes,copy,this.target,e);_45d.publish("/dnd/drop",this.source,this.nodes,copy,this.target,e);}else{_45d.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case keys.ESCAPE:_45d.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==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();_45b.replace(win.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dnd._manager=null;_461.manager=dnd.manager=function(){if(!dnd._manager){dnd._manager=new _461();}return dnd._manager;};return _461;});},"dojo/dnd/Avatar":function(){define(["../_base/declare","../_base/window","../dom","../dom-attr","../dom-class","../dom-construct","../hccss","../query"],function(_468,win,dom,_469,_46a,_46b,has,_46c){return _468("dojo.dnd.Avatar",null,{constructor:function(_46d){this.manager=_46d;this.construct();},construct:function(){var a=_46b.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_46e=this.manager.source,node,b=_46b.create("tbody",null,a),tr=_46b.create("tr",null,b),td=_46b.create("td",null,tr),k=Math.min(5,this.manager.nodes.length),i=0;if(has("highcontrast")){_46b.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td);}_46b.create("span",{innerHTML:_46e.generateText?this._generateText():""},td);_469.set(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i=0&&_48a!=_489){html.toggleClass(this._findHeaderCells()[_48a],this.focusClass,false);}html.toggleClass(_488,this.focusClass,true);this._colHeadNode=_488;this._colHeadFocusIdx=_489;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.offsetLeftinfo.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt_48d){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _495={l:_491};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_495);view.update();}},styleRow:function(_496){return;},setFocusIndex:function(_497,_498){this.setFocusCell(this.grid.getCell(_498),_497);},setFocusCell:function(_499,_49a){if(_499&&!this.isFocusCell(_499,_49a)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_499;this.rowIndex=_49a;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 _49b=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_49b.editable||this.grid.canEdit&&!this.grid.canEdit(_49b,row))){this.cell=_49b;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 _49c=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_49c.editable){this.cell=_49c;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_49d,_49e){var _49f=_49e<0?-1:1;if(this.isNavHeader()){var _4a0=this._findHeaderCells();var _4a1=currentIdx=_479.indexOf(_4a0,this._colHeadNode);currentIdx+=_49e;while(currentIdx>=0&¤tIdx<_4a0.length&&_4a0[currentIdx].style.display=="none"){currentIdx+=_49f;}if((currentIdx>=0)&&(currentIdx<_4a0.length)){this._setActiveColHeader(_4a0[currentIdx],currentIdx,_4a1);}}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+_49d));if(_49d){if(_49d>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_49d<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+_49e));var cell=this.grid.getCell(col);while(col>=0&&col=0&&(row+_49d)<=rc){this.move(_49d>0?++_49d:--_49d,_49e);}return;}else{if((!n||html.style(n,"display")==="none")&&_49e){if((col+_49e)>=0&&(col+_49e)<=cc){this.move(_49d,_49e>0?++_49e:--_49e);}return;}}this.setFocusIndex(row,col);if(_49d){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){_47c.stop(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();_47c.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 _4a2=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();_47c.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()){_47c.stop(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_4a3){this.tabbingOut=true;_4a3.focus();},focusGridView:function(){util.fire(this.focusView,"focus");},focusGrid:function(_4a4){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _4a5=true;var _4a6=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_4a6){var _4a7=0;var cell=this.grid.getCell(_4a7);if(cell.hidden){_4a7=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_4a7);}else{if(this.cell&&!_4a6){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_4a5=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _4a5;},focusHeader:function(){var _4a8=this._findHeaderCells();var _4a9=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=_4a8[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_4a8.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_4a8[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,_4a9);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 _4aa=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_4aa);this._contextMenuBindNode=_4aa;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){_47c.stop(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;_47c.stop(e);},doBlur:function(e){_47c.stop(e);},doContextMenu:function(e){if(!this.headerMenu){_47c.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;_47c.stop(e);},doLastNodeBlur:function(e){_47c.stop(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,html.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());_47c.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;}});});},"dojox/grid/_Events":function(){define("dojox/grid/_Events",["dojo/keys","dojo/dom-class","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff"],function(keys,_4ab,_4ac,_4ad,has){return _4ac("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(_4ae){var i=_4ae;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_4ae);this.edit.styleRow(_4ae);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var _4af;switch(e.keyCode){case keys.ESCAPE:this.edit.cancel();break;case keys.ENTER:if(!this.edit.isEditing()){_4af=this.focus.getHeaderIndex();if(_4af>=0){this.setSortIndex(_4af);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_4ad.stop(e);}if(!e.shiftKey){var _4b0=this.edit.isEditing();this.edit.apply();if(!_4b0){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _4b1=this.focus.focusView||this.views.views[0];_4b1.content.decorateEvent(e);this.onRowClick(e);_4ad.stop(e);}break;case keys.SPACE:if(!this.edit.isEditing()){_4af=this.focus.getHeaderIndex();if(_4af>=0){this.setSortIndex(_4af);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_4ad.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 _4b2=e.keyCode;_4ad.stop(e);_4af=this.focus.getHeaderIndex();if(_4af>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_4af,(_4b2==keys.LEFT_ARROW?-1:1)*5);}else{var _4b3=(_4b2==keys.LEFT_ARROW)?1:-1;if(this.isLeftToRight()){_4b3*=-1;}this.focus.move(0,_4b3);}}break;case keys.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_4ad.stop(e);this.focus.move(-1,0);}break;case keys.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_4ad.stop(e);this.focus.move(1,0);}break;case keys.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_4ad.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){_4ad.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){_4ab.add(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){_4ab.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 _4b4;if(this._click.length>1&&has("ie")){_4b4=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_4b4=this._click[0];}else{_4b4=e;}}this.focus.setFocusCell(_4b4.cell,_4b4.rowIndex);this.edit.setEditCell(_4b4.cell,_4b4.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_4b5,_4b6){this.edit.cellFocus(_4b5,_4b6);},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){_4ad.stop(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){_4ab.add(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){_4ab.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){_4ad.stop(e);}},onStartEdit:function(_4b7,_4b8){},onApplyCellEdit:function(_4b9,_4ba,_4bb){},onCancelEdit:function(_4bc){},onApplyEdit:function(_4bd){},onCanSelect:function(_4be){return true;},onCanDeselect:function(_4bf){return true;},onSelected:function(_4c0){this.updateRowStyles(_4c0);},onDeselected:function(_4c1){this.updateRowStyles(_4c1);},onSelectionChanged:function(){}});});},"dijit/MenuItem":function(){require({cache:{"url:dijit/templates/MenuItem.html":"\n\t\n\t\t\"\"\n\t\n\t\n\t\n\t\n\t\t
\n\t\t\t\"\"\n\t\t\t+\n\t\t
\n\t\n\n"}});define("dijit/MenuItem",["dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/kernel","dojo/sniff","./_Widget","./_TemplatedMixin","./_Contained","./_CssStateMixin","dojo/text!./templates/MenuItem.html"],function(_4c2,dom,_4c3,_4c4,_4c5,has,_4c6,_4c7,_4c8,_4c9,_4ca){return _4c2("dijit.MenuItem",[_4c6,_4c7,_4c8,_4c9],{templateString:_4ca,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(val){this.containerNode.innerHTML=val;this._set("label",val);if(this.textDir==="auto"){this.applyTextDir(this.focusNode,this.label);}},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:false,_fillContent:function(_4cb){if(_4cb&&!("label" in this.params)){this.set("label",_4cb.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _4cc=this.id+"_text";_4c3.set(this.containerNode,"id",_4cc);if(this.accelKeyNode){_4c3.set(this.accelKeyNode,"id",this.id+"_accel");_4cc+=" "+this.id+"_accel";}this.domNode.setAttribute("aria-labelledby",_4cc);dom.setSelectable(this.domNode,false);},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(_4cd){_4c4.toggle(this.domNode,"dijitMenuItemSelected",_4cd);},setLabel:function(_4ce){_4c5.deprecated("dijit.MenuItem.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",_4ce);},setDisabled:function(_4cf){_4c5.deprecated("dijit.Menu.setDisabled() is deprecated. Use set('disabled', bool) instead.","","2.0");this.set("disabled",_4cf);},_setDisabledAttr:function(_4d0){this.focusNode.setAttribute("aria-disabled",_4d0?"true":"false");this._set("disabled",_4d0);},_setAccelKeyAttr:function(_4d1){this.accelKeyNode.style.display=_4d1?"":"none";this.accelKeyNode.innerHTML=_4d1;_4c3.set(this.containerNode,"colSpan",_4d1?"1":"2");this._set("accelKey",_4d1);},_setTextDirAttr:function(_4d2){if(!this._created||this.textDir!=_4d2){this._set("textDir",_4d2);this.applyTextDir(this.focusNode,this.label);}}});});},"dojox/grid/_RowSelector":function(){define(["dojo/_base/declare","./_View"],function(_4d3,_4d4){return _4d3("dojox.grid._RowSelector",_4d4,{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(_4d5,_4d6){var w=this.contentWidth||0;_4d6.innerHTML="
 
";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode&&this.contentNode.offsetWidth>0){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_4d7,_4d8){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_4d7)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_4d7)){n.push("dojoxGridRowbarSelected");}_4d8.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});});},"*now":function(r){r(["dojo/i18n!*preload*dojox/grid/nls/DataGrid*[\"ar\",\"ca\",\"cs\",\"da\",\"de\",\"el\",\"en-gb\",\"en-us\",\"es-es\",\"fi-fi\",\"fr-fr\",\"he-il\",\"hu\",\"it-it\",\"ja-jp\",\"ko-kr\",\"nl-nl\",\"nb\",\"pl\",\"pt-br\",\"pt-pt\",\"ru\",\"sk\",\"sl\",\"sv\",\"th\",\"tr\",\"zh-tw\",\"zh-cn\",\"ROOT\"]"]);}}});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(_4d9,_4da,lang,json,has,_4db,_4dc,_4dd,html){var _4de=_4db("dojox.grid.DataGrid",_4dc,{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 _4dd(this);},get:function(_4df,_4e0){if(_4e0&&this.field=="_item"&&!this.fields){return _4e0;}else{if(_4e0&&this.fields){var ret=[];var s=this.grid.store;_4da.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_4e0,f));});return ret;}else{if(!_4e0&&typeof _4df==="string"){return this.inherited(arguments);}}}return (!_4e0?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_4e0:this.grid.store.getValue(_4e0,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _4e1=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_4e1=true;}if(!this.updating){this.beginUpdate();_4e1=true;}if(_4e1){var _4e2=this;this._endUpdateDelay=setTimeout(function(){delete _4e2._endUpdateDelay;_4e2.endUpdate();},this.updateDelay);}}},_onSet:function(item,_4e3,_4e4,_4e5){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_4e6){var idty=this._hasIdentity?this.store.getIdentity(item):json.toJson(this.query)+":idx:"+_4e6+":sort:"+json.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_4e7,_4e8){this._by_idx[_4e7]=this._createItem(item,_4e7);if(!_4e8){this.updateRow(_4e7);}},_onNew:function(item,_4e9){this._checkUpdateStatus();var _4ea=this.get("rowCount");this._addingItem=true;this.updateRowCount(_4ea+1);this._addingItem=false;this._addItem(item,_4ea);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(_4eb,_4ec,_4ed){if(this._requestsPending(0)){return;}this._setQuery(_4ec,_4ed);this._setStore(_4eb);this._refresh(true);},setQuery:function(_4ee,_4ef){if(this._requestsPending(0)){return;}this._setQuery(_4ee,_4ef);this._refresh(true);},setItems:function(_4f0){this.items=_4f0;this._setStore(this.store);this._refresh(true);},_setQuery:function(_4f1,_4f2){this.query=_4f1;this.queryOptions=_4f2||this.queryOptions;},_setStore:function(_4f3){if(this.store&&this._store_connects){_4da.forEach(this._store_connects,this.disconnect,this);}this.store=_4f3;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(_4f4,req){if(!this.scroller){return;}if(_4f4&&_4f4.length>0){_4da.forEach(_4f4,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_4f4.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(_4f5,_4f6){_4f5=_4f5||0;if(this.store&&!this._pending_requests[_4f5]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_4f5]=true;try{if(this.items){var _4f7=this.items;var _4f8=this.store;this.rowsPerPage=_4f7.length;var req={start:_4f5,count:this.rowsPerPage,isRender:_4f6};this._onFetchBegin(_4f7.length,req);var _4f9=0;_4da.forEach(_4f7,function(i){if(!_4f8.isItemLoaded(i)){_4f9++;}});if(_4f9===0){this._onFetchComplete(_4f7,req);}else{var _4fa=function(item){_4f9--;if(_4f9===0){this._onFetchComplete(_4f7,req);}};_4da.forEach(_4f7,function(i){if(!_4f8.isItemLoaded(i)){_4f8.loadItem({item:i,onItem:_4fa,scope:this});}},this);}}else{this.store.fetch({start:_4f5,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_4f6,onBegin:lang.hitch(this,"_onFetchBegin"),onComplete:lang.hitch(this,"_onFetchComplete"),onError:lang.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_4f5,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,_4fb){if(!_4fb&&!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=this._eop)&&!this._addingItem){var _502=this._rowToPage(_501);this._needPage(_502);this._bop=_502*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_503){if(!this._pages[_503]){this._pages[_503]=true;this._requestPage(_503);}},_requestPage:function(_504){var row=this._pageToRow(_504);var _505=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_505>0){this._requests++;if(!this._requestsPending(row)){setTimeout(lang.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_506){return _506.field;},_refresh:function(_507){this._clearData();this._fetch(0,_507);},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(_508){if(this.store&&this.store.getState){var _509=this.store.getState(_508.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_509[s]){c=" dojoxGridRow-"+s;break;}}_508.customClasses+=c;}},onStyleRow:function(_50a){this.styleRowState(_50a);this.inherited(arguments);},canEdit:function(_50b,_50c){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _50d={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_50e,_50f){if(!this._cache[_50f]){this._cache[_50f]=this._copyAttr(_50f,_50e.field);}this.onStartEdit(_50e,_50f);},doApplyCellEdit:function(_510,_511,_512){this.store.fetchItemByIdentity({identity:this._by_idx[_511].idty,onItem:lang.hitch(this,function(item){var _513=this.store.getValue(item,_512);if(typeof _513=="number"){_510=isNaN(_510)?_510:parseFloat(_510);}else{if(typeof _513=="boolean"){_510=_510=="true"?true:_510=="false"?false:_510;}else{if(_513 instanceof Date){var _514=new Date(_510);_510=isNaN(_514.getTime())?_510:_514;}}}this.store.setValue(item,_512,_510);this.onApplyCellEdit(_510,_511,_512);})});},doCancelEdit:function(_515){var _516=this._cache[_515];if(_516){this.updateRow(_515);delete this._cache[_515];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_517,_518){var _519=this._cache[_517];this.onApplyEdit(_517);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=lang.hitch(this,function(_51a){if(_51a.length){_4da.forEach(_51a,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());}}}});_4de.cell_markupFactory=function(_51b,node,_51c){var _51d=lang.trim(html.attr(node,"field")||"");if(_51d){_51c.field=_51d;}_51c.field=_51c.field||_51c.name;var _51e=lang.trim(html.attr(node,"fields")||"");if(_51e){_51c.fields=_51e.split(",");}if(_51b){_51b(node,_51c);}};_4de.markupFactory=function(_51f,node,ctor,_520){return _4dc.markupFactory(_51f,node,ctor,lang.partial(_4de.cell_markupFactory,_520));};return _4de;});