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

if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4c=_4c?dojo.byId(_4c):dojo.body();_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-";function _4f(_50,_51){var _52=dojo.clone(_50.inherited);dojo.forEach(["dir","lang"],function(_53){var val=_50.node.getAttribute(_53);if(val){_52[_53]=val;}});var _54=_50.clsInfo&&!_50.clsInfo.cls.prototype._noScript?_50.scripts:null;var _55=(!_50.clsInfo||!_50.clsInfo.cls.prototype.stopParser)||(_4b&&_4b.template);for(var _56=_50.node.firstChild;_56;_56=_56.nextSibling){if(_56.nodeType==1){var _57,_58=_55&&_56.getAttribute(_4e+"type");if(_58){_57=_58;}else{_57=_55&&_56.getAttribute(_4d);}var _59=_58==_57;if(_57){var _5a={"type":_57,fastpath:_59,clsInfo:_1f(_57,_59),node:_56,scripts:[],inherited:_52};_51.push(_5a);_4f(_5a,_51);}else{if(_54&&_56.nodeName.toLowerCase()=="script"){_57=_56.getAttribute("type");if(_57&&/^dojo\/\w/i.test(_57)){_54.push(_56);}}else{if(_55){_4f({node:_56,inherited:_52},_51);}}}}}};var _5b={};if(_4b&&_4b.inherited){for(var key in _4b.inherited){if(_4b.inherited[key]){_5b[key]=_4b.inherited[key];}}}var _5c=[];_4f({node:_4c,inherited:_5b},_5c);var _5d=_4b&&_4b.template?{template:true}:null;return this.instantiate(_5c,_5d,_4b);};}();(function(){var _5e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_5e);}else{dojo._loaders.unshift(_5e);}})();}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_5f){if(this._hash[_5f.id]){throw new Error("Tried to register widget with id=="+_5f.id+" but that id is already registered");}this._hash[_5f.id]=_5f;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_60,_61){_61=_61||dojo.global;var i=0,id;for(id in this._hash){_60.call(_61,this._hash[id],i++,this._hash);}return this;},filter:function(_62,_63){_63=_63||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_62.call(_63,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_64;for(id in this._hash){_64=this._hash[id];if(_64.declaredClass==cls){res.add(_64);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_65,_66){return dojo.map(this.toArray(),_65,_66);},every:function(_67,_68){_68=_68||dojo.global;var x=0,i;for(i in this._hash){if(!_67.call(_68,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_69,_6a){_6a=_6a||dojo.global;var x=0,i;for(i in this._hash){if(_69.call(_6a,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _6b=dijit.registry._hash,_6c=dojo.attr,_6d=dojo.hasAttr,_6e=dojo.style;dijit.byId=function(id){return typeof id=="string"?_6b[id]:id;};var _6f={};dijit.getUniqueId=function(_70){var id;do{id=_70+"_"+(_70 in _6f?++_6f[_70]:_6f[_70]=0);}while(_6b[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_71){var _72=[];function _73(_74){for(var _75=_74.firstChild;_75;_75=_75.nextSibling){if(_75.nodeType==1){var _76=_75.getAttribute("widgetId");if(_76){var _77=_6b[_76];if(_77){_72.push(_77);}}else{_73(_75);}}}};_73(_71);return _72;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_78){if(!_78._destroyed){if(_78.destroyRecursive){_78.destroyRecursive();}else{if(_78.destroy){_78.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_79){return _6b[_79.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_7a){while(_7a){var id=_7a.getAttribute&&_7a.getAttribute("widgetId");if(id){return _6b[id];}_7a=_7a.parentNode;}return null;};var _7b=(dijit._isElementShown=function(_7c){var s=_6e(_7c);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_6c(_7c,"type")!="hidden");});dijit.hasDefaultTabStop=function(_7d){switch(_7d.nodeName.toLowerCase()){case "a":return _6d(_7d,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _7e;try{var _7f=_7d.contentDocument;if("designMode" in _7f&&_7f.designMode=="on"){return true;}_7e=_7f.body;}catch(e1){try{_7e=_7d.contentWindow.document.body;}catch(e2){return false;}}return _7e.contentEditable=="true"||(_7e.firstChild&&_7e.firstChild.contentEditable=="true");default:return _7d.contentEditable=="true";}};var _80=(dijit.isTabNavigable=function(_81){if(_6c(_81,"disabled")){return false;}else{if(_6d(_81,"tabIndex")){return _6c(_81,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_81);}}});dijit._getTabNavigable=function(_82){var _83,_84,_85,_86,_87,_88,_89={};function _8a(_8b){return _8b&&_8b.tagName.toLowerCase()=="input"&&_8b.type&&_8b.type.toLowerCase()=="radio"&&_8b.name&&_8b.name.toLowerCase();};var _8c=function(_8d){dojo.query("> *",_8d).forEach(function(_8e){if((dojo.isIE<=9&&_8e.scopeName!=="HTML")||!_7b(_8e)){return;}if(_80(_8e)){var _8f=_6c(_8e,"tabIndex");if(!_6d(_8e,"tabIndex")||_8f==0){if(!_83){_83=_8e;}_84=_8e;}else{if(_8f>0){if(!_85||_8f<_86){_86=_8f;_85=_8e;}if(!_87||_8f>=_88){_88=_8f;_87=_8e;}}}var rn=_8a(_8e);if(dojo.attr(_8e,"checked")&&rn){_89[rn]=_8e;}}if(_8e.nodeName.toUpperCase()!="SELECT"){_8c(_8e);}});};if(_7b(_82)){_8c(_82);}function rs(_90){return _89[_8a(_90)]||_90;};return {first:rs(_83),last:rs(_84),lowest:rs(_85),highest:rs(_87)};};dijit.getFirstInTabbingOrder=function(_91){var _92=dijit._getTabNavigable(dojo.byId(_91));return _92.lowest?_92.lowest:_92.first;};dijit.getLastInTabbingOrder=function(_93){var _94=dijit._getTabNavigable(dojo.byId(_93));return _94.last?_94.last:_94.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_95){if(_95){dojo.mixin(this,_95);}},get:function(_96){return this[_96];},set:function(_97,_98){if(typeof _97==="object"){for(var x in _97){this.set(x,_97[x]);}return this;}var _99=this[_97];this[_97]=_98;if(this._watchCallbacks){this._watchCallbacks(_97,_99,_98);}return this;},watch:function(_9a,_9b){var _9c=this._watchCallbacks;if(!_9c){var _9d=this;_9c=this._watchCallbacks=function(_9e,_9f,_a0,_a1){var _a2=function(_a3){if(_a3){_a3=_a3.slice();for(var i=0,l=_a3.length;i<l;i++){try{_a3[i].call(_9d,_9e,_9f,_a0);}catch(e){console.error(e);}}}};_a2(_9c["_"+_9e]);if(!_a1){_a2(_9c["*"]);}};}if(!_9b&&typeof _9a==="function"){_9b=_9a;_9a="*";}else{_9a="_"+_9a;}var _a4=_9c[_9a];if(typeof _a4!=="object"){_a4=_9c[_9a]=[];}_a4.push(_9b);return {unwatch:function(){_a4.splice(dojo.indexOf(_a4,_9b),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){function _a5(a,b){return a===b||(a!==a&&b!==b);};dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_a6,_a7){this.create(_a6,_a7);},create:function(_a8,_a9){this.srcNodeRef=dojo.byId(_a9);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_a8){this.params=_a8;dojo._mixin(this,_a8);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _aa=this.srcNodeRef;if(_aa&&_aa.parentNode&&this.domNode!==_aa){_aa.parentNode.replaceChild(this.domNode,_aa);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _ab=function(_ac,_ad){if((_ad.params&&_ac in _ad.params)||_ad[_ac]){_ad.set(_ac,_ad[_ac]);}};for(var _ae in this.attributeMap){_ab(_ae,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_ab(a,this);}},this);},_getSetterAttributes:function(){var _af=this.constructor;if(!_af._setterAttrs){var r=(_af._setterAttrs=[]),_b0,_b1=_af.prototype;for(var _b2 in _b1){if(dojo.isFunction(_b1[_b2])&&(_b0=_b2.match(/^_set([a-zA-Z]*)Attr$/))&&_b0[1]){r.push(_b0[1].charAt(0).toLowerCase()+_b0[1].substr(1));}}}return _af._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _b3=this.baseClass.split(" ");if(!this.isLeftToRight()){_b3=_b3.concat(dojo.map(_b3,function(_b4){return _b4+"Rtl";}));}dojo.addClass(this.domNode,_b3);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_b5){this._beingDestroyed=true;this.destroyDescendants(_b5);this.destroy(_b5);},destroy:function(_b6){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_b7){dfe(_b7,d.disconnect);});dfe(this._subscribes,function(_b8){dun(_b8);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_b6);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_b9){if(this.bgIframe){this.bgIframe.destroy(_b9);delete this.bgIframe;}if(this.domNode){if(_b9){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_b9){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_ba){dojo.forEach(this.getChildren(),function(_bb){if(_bb.destroyRecursive){_bb.destroyRecursive(_ba);}});},uninitialize:function(){return false;},_setClassAttr:function(_bc){var _bd=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_bd,_bc,this["class"]);this._set("class",_bc);},_setStyleAttr:function(_be){var _bf=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_be)){dojo.style(_bf,_be);}else{if(_bf.style.cssText){_bf.style.cssText+="; "+_be;}else{_bf.style.cssText=_be;}}this._set("style",_be);},_attrToDom:function(_c0,_c1){var _c2=this.attributeMap[_c0];dojo.forEach(dojo.isArray(_c2)?_c2:[_c2],function(_c3){var _c4=this[_c3.node||_c3||"domNode"];var _c5=_c3.type||"attribute";switch(_c5){case "attribute":if(dojo.isFunction(_c1)){_c1=dojo.hitch(this,_c1);}var _c6=_c3.attribute?_c3.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_c0)?_c0.toLowerCase():_c0);dojo.attr(_c4,_c6,_c1);break;case "innerText":_c4.innerHTML="";_c4.appendChild(dojo.doc.createTextNode(_c1));break;case "innerHTML":_c4.innerHTML=_c1;break;case "class":dojo.replaceClass(_c4,_c1,this[_c0]);break;}},this);},get:function(_c7){var _c8=this._getAttrNames(_c7);return this[_c8.g]?this[_c8.g]():this[_c7];},set:function(_c9,_ca){if(typeof _c9==="object"){for(var x in _c9){this.set(x,_c9[x]);}return this;}var _cb=this._getAttrNames(_c9);if(this[_cb.s]){var _cc=this[_cb.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(_c9 in this.attributeMap){this._attrToDom(_c9,_ca);}this._set(_c9,_ca);}return _cc||this;},_attrPairNames:{},_getAttrNames:function(_cd){var apn=this._attrPairNames;if(apn[_cd]){return apn[_cd];}var uc=_cd.charAt(0).toUpperCase()+_cd.substr(1);return (apn[_cd]={n:_cd+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_ce,_cf){var _d0=this[_ce];this[_ce]=_cf;if(this._watchCallbacks&&this._created&&!_a5(_cf,_d0)){this._watchCallbacks(_ce,_d0,_cf);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_d1,_d2){var _d3=[dojo._connect(obj,_d1,this,_d2)];this._connects.push(_d3);return _d3;},disconnect:function(_d4){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_d4){dojo.forEach(_d4,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_d5,_d6){var _d7=dojo.subscribe(_d5,this,_d6);this._subscribes.push(_d7);return _d7;},unsubscribe:function(_d8){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_d8){dojo.unsubscribe(_d8);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_d9,_da){if(_d9.declaredClass&&_d9.addChild){_d9.addChild(this,_da);}else{dojo.place(this.domNode,_d9,_da);}return this;},defer:function(fcn,_db){var _dc=setTimeout(dojo.hitch(this,function(){_dc=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_db||0);return {remove:function(){if(_dc){clearTimeout(_dc);_dc=null;}return null;}};}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _dd=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _de=dojo._docScroll();return {w:_dd.clientWidth,h:_dd.clientHeight,l:_de.x,t:_de.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_df,pos){_df=dojo.byId(_df);var _e0,doc=_df.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){_e0=dojo.body();var _e1=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_e0,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_e1,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_e1.removeChild(div);_e0.removeChild(_e1);}if(!("position_fixed_support" in dojo.window)){_e0=dojo.body();var _e2=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_e0,"last"),_e3=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_e2,"last");dojo.window.position_fixed_support=dojo.position(_e3).x!=dojo.position(_e2).x;_e2.removeChild(_e3);_e0.removeChild(_e2);}try{_e0=doc.body||doc.getElementsByTagName("body")[0];var _e4=doc.documentElement||_e0.parentNode,_e5=dojo.isIE,_e6=dojo.isWebKit;if(_df==_e0||_df==_e4){return;}if(!(dojo.isMozilla||_e5||_e6||dojo.isOpera)&&("scrollIntoView" in _df)){_df.scrollIntoView(false);return;}var _e7=doc.compatMode=="BackCompat",_e8=Math.min(_e0.clientWidth||_e4.clientWidth,_e4.clientWidth||_e0.clientWidth),_e9=Math.min(_e0.clientHeight||_e4.clientHeight,_e4.clientHeight||_e0.clientHeight),_ea=(_e6||_e7)?_e0:_e4,_eb=pos||dojo.position(_df),el=_df.parentNode,_ec=function(el){return (_e5<=6||(_e5==7&&_e7))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_ec(_df)){return;}while(el){if(el==_e0){el=_ea;}var _ed=dojo.position(el),_ee=_ec(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_ea){_ed.w=_e8;_ed.h=_e9;if(_ea==_e4&&_e5&&rtl){_ed.x+=_ea.offsetWidth-_ed.w;}if(_ed.x<0||!_e5||_e5>=9){_ed.x=0;}if(_ed.y<0||!_e5||_e5>=9){_ed.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_ed.w-=pb.w;_ed.h-=pb.h;_ed.x+=pb.l;_ed.y+=pb.t;var _ef=el.clientWidth,_f0=_ed.w-_ef;if(_ef>0&&_f0>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_ed.x+=_f0;}_ed.w=_ef;}_ef=el.clientHeight;_f0=_ed.h-_ef;if(_ef>0&&_f0>0){_ed.h=_ef;}}if(_ee){if(_ed.y<0){_ed.h+=_ed.y;_ed.y=0;}if(_ed.x<0){_ed.w+=_ed.x;_ed.x=0;}if(_ed.y+_ed.h>_e9){_ed.h=_e9-_ed.y;}if(_ed.x+_ed.w>_e8){_ed.w=_e8-_ed.x;}}var l=_eb.x-_ed.x,t=_eb.y-_ed.y,r=l+_eb.w-_ed.w,bot=t+_eb.h-_ed.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_ea||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_e5==8&&!_e7)||_e5>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_eb.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_ea||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_eb.y-=s;}el=(el!=_ea)&&!_ee&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_df.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_f1){var _f2=dojo.doc,_f3=_f1.mark;if(_f3){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_f3.pRange){var r=_f3;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_f3);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_f2.selection&&_f3){var rg;if(_f3.pRange){rg=_f3.range;}else{if(dojo.isArray(_f3)){rg=_f2.body.createControlRange();dojo.forEach(_f3,function(n){rg.addElement(n);});}else{rg=_f2.body.createTextRange();rg.moveToBookmark(_f3);}}rg.select();}}}},getFocus:function(_f4,_f5){var _f6=!dijit._curFocus||(_f4&&dojo.isDescendant(dijit._curFocus,_f4.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_f6,bookmark:(_f6==dijit._curFocus)&&dojo.withGlobal(_f5||dojo.global,dijit.getBookmark),openedForWindow:_f5};},focus:function(_f7){if(!_f7){return;}var _f8="node" in _f7?_f7.node:_f7,_f9=_f7.bookmark,_fa=_f7.openedForWindow,_fb=_f9?_f9.isCollapsed:false;if(_f8){var _fc=(_f8.tagName.toLowerCase()=="iframe")?_f8.contentWindow:_f8;if(_fc&&_fc.focus){try{_fc.focus();}catch(e){}}dijit._onFocusNode(_f8);}if(_f9&&dojo.withGlobal(_fa||dojo.global,dijit.isCollapsed)&&!_fb){if(_fa){_fa.focus();}try{dojo.withGlobal(_fa||dojo.global,dijit.moveToBookmark,null,[_f9]);}catch(e2){}}},_activeStack:[],registerIframe:function(_fd){return dijit.registerWin(_fd.contentWindow,_fd);},unregisterIframe:function(_fe){dijit.unregisterWin(_fe);},registerWin:function(_ff,_100){var _101=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_100||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_ff.document.documentElement:_ff.document;if(doc){if(dojo.isIE){_ff.document.body.attachEvent("onmousedown",_101);var _102=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_100||evt.srcElement);}else{dijit._onTouchNode(_100||evt.srcElement);}};doc.attachEvent("onactivate",_102);var _103=function(evt){dijit._onBlurNode(_100||evt.srcElement);};doc.attachEvent("ondeactivate",_103);return function(){_ff.document.detachEvent("onmousedown",_101);doc.detachEvent("onactivate",_102);doc.detachEvent("ondeactivate",_103);doc=null;};}else{doc.body.addEventListener("mousedown",_101,true);var _104=function(evt){dijit._onFocusNode(_100||evt.target);};doc.addEventListener("focus",_104,true);var _105=function(evt){dijit._onBlurNode(_100||evt.target);};doc.addEventListener("blur",_105,true);return function(){doc.body.removeEventListener("mousedown",_101,true);doc.removeEventListener("focus",_104,true);doc.removeEventListener("blur",_105,true);doc=null;};}}},unregisterWin:function(_106){_106&&_106();},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _107=[];try{while(node){var _108=dojo.attr(node,"dijitPopupParent");if(_108){node=dijit.byId(_108).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_109=id&&dijit.byId(id);if(_109&&!(by=="mouse"&&_109.get("disabled"))){_107.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_107,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_10a,by){var _10b=dijit._activeStack;dijit._activeStack=_10a;for(var _10c=0;_10c<Math.min(_10b.length,_10a.length);_10c++){if(_10b[_10c]!=_10a[_10c]){break;}}var _10d;for(var i=_10b.length-1;i>=_10c;i--){_10d=dijit.byId(_10b[i]);if(_10d){_10d._focused=false;_10d.set("focused",false);_10d._hasBeenBlurred=true;if(_10d._onBlur){_10d._onBlur(by);}dojo.publish("widgetBlur",[_10d,by]);}}for(i=_10c;i<_10a.length;i++){_10d=dijit.byId(_10a[i]);if(_10d){_10d._focused=true;_10d.set("focused",true);if(_10d._onFocus){_10d._onFocus(by);}dojo.publish("widgetFocus",[_10d,by]);}}}});dojo.addOnLoad(function(){var _10e=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_10e);_10e=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_10f){this.pairs=[];this.returnWrappers=_10f||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_110,wrap,_111,_112){this.pairs[((_112)?"unshift":"push")]([name,_110,wrap,_111]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_113,_114){var _115=dojo.map(_113,function(_116){var c={corner:_116,pos:{x:pos.x,y:pos.y}};if(_114){c.pos.x+=_116.charAt(1)=="L"?_114.x:-_114.x;c.pos.y+=_116.charAt(0)=="T"?_114.y:-_114.y;}return c;});return dijit._place(node,_115);};dijit._place=function(node,_117,_118,_119){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_117,function(_11a){var _11b=_11a.corner;var pos=_11a.pos;var _11c=0;var _11d={w:_11b.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_11b.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_118){var res=_118(node,_11a.aroundCorner,_11b,_11d,_119);_11c=typeof res=="undefined"?0:res;}var _11e=node.style;var _11f=_11e.display;var _120=_11e.visibility;_11e.visibility="hidden";_11e.display="";var mb=dojo.marginBox(node);_11e.display=_11f;_11e.visibility=_120;var _121=Math.max(view.l,_11b.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_122=Math.max(view.t,_11b.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_11b.charAt(1)=="L"?(_121+mb.w):pos.x),endY=Math.min(view.t+view.h,_11b.charAt(0)=="T"?(_122+mb.h):pos.y),_123=endX-_121,_124=endY-_122;_11c+=(mb.w-_123)+(mb.h-_124);if(best==null||_11c<best.overflow){best={corner:_11b,aroundCorner:_11a.aroundCorner,x:_121,y:_122,w:_123,h:_124,overflow:_11c,spaceAvailable:_11d};}return !_11c;});if(best.overflow&&_118){_118(node,best.aroundCorner,best.corner,best.spaceAvailable,_119);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};dijit.placeOnScreenAroundNode=function(node,_125,_126,_127){_125=dojo.byId(_125);var _128=dojo.position(_125,true);return dijit._placeOnScreenAroundRect(node,_128.x,_128.y,_128.w,_128.h,_126,_127);};dijit.placeOnScreenAroundRectangle=function(node,_129,_12a,_12b){return dijit._placeOnScreenAroundRect(node,_129.x,_129.y,_129.width,_129.height,_12a,_12b);};dijit._placeOnScreenAroundRect=function(node,x,y,_12c,_12d,_12e,_12f){var _130=[];for(var _131 in _12e){_130.push({aroundCorner:_131,corner:_12e[_131],pos:{x:x+(_131.charAt(1)=="L"?0:_12c),y:y+(_131.charAt(0)=="T"?0:_12d)}});}return dijit._place(node,_130,_12f,{w:_12c,h:_12d});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_132,_133,_134){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_135,_136){var _137={};dojo.forEach(_135,function(pos){switch(pos){case "after":_137[_136?"BR":"BL"]=_136?"BL":"BR";break;case "before":_137[_136?"BL":"BR"]=_136?"BR":"BL";break;case "below-alt":_136=!_136;case "below":_137[_136?"BL":"BR"]=_136?"TL":"TR";_137[_136?"BR":"BL"]=_136?"TR":"TL";break;case "above-alt":_136=!_136;case "above":default:_137[_136?"TL":"TR"]=_136?"BL":"BR";_137[_136?"TR":"TL"]=_136?"BR":"BL";break;}});return _137;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_138){var node=_138.domNode||_138,_139=_138.declaredClass?_138._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_139){_139=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_139.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_138.declaredClass){_138._popupWrapper=_139;dojo.connect(_138,"destroy",function(){dojo.destroy(_139);delete _138._popupWrapper;});}}return _139;},moveOffScreen:function(_13a){var _13b=this._createWrapper(_13a);dojo.style(_13b,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_13c){var _13d=this._createWrapper(_13c);dojo.style(_13d,"display","none");},getTopPopup:function(){var _13e=this._stack;for(var pi=_13e.length-1;pi>0&&_13e[pi].parent===_13e[pi-1].widget;pi--){}return _13e[pi];},open:function(args){var _13f=this._stack,_140=args.popup,_141=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_142=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_13f.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_13f[_13f.length-1].widget.domNode))){dijit.popup.close(_13f[_13f.length-1].widget);}var _143=this._createWrapper(_140);dojo.attr(_143,{id:id,style:{zIndex:this._beginZIndex+_13f.length},"class":"dijitPopup "+(_140.baseClass||_140["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_140.bgIframe){_140.bgIframe=new dijit.BackgroundIframe(_143);}}var best=_142?dijit.placeOnScreenAroundElement(_143,_142,_141,_140.orient?dojo.hitch(_140,"orient"):null):dijit.placeOnScreen(_143,args,_141=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_143.style.display="";_143.style.visibility="visible";_140.domNode.style.visibility="visible";var _144=[];_144.push(dojo.connect(_143,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _145=this.getTopPopup();if(_145&&_145.onCancel){_145.onCancel();}}}}));if(_140.onCancel){_144.push(dojo.connect(_140,"onCancel",args.onCancel));}_144.push(dojo.connect(_140,_140.onExecute?"onExecute":"onChange",this,function(){var _146=this.getTopPopup();if(_146&&_146.onExecute){_146.onExecute();}}));_13f.push({widget:_140,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_144});if(_140.onOpen){_140.onOpen(best);}return best;},close:function(_147){var _148=this._stack;while((_147&&dojo.some(_148,function(elem){return elem.widget==_147;}))||(!_147&&_148.length)){var top=_148.pop(),_149=top.widget,_14a=top.onClose;if(_149.onClose){_149.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_149&&_149.domNode){this.hide(_149);}if(_14a){_14a();}}}};dijit._frames=new function(){var _14b=[];this.pop=function(){var _14c;if(_14b.length){_14c=_14b.pop();_14c.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_14c=dojo.doc.createElement(html);}else{_14c=dojo.create("iframe");_14c.src="javascript:\"\"";_14c.className="dijitBackgroundIframe";dojo.style(_14c,"opacity",0.1);}_14c.tabIndex=-1;dijit.setWaiRole(_14c,"presentation");}return _14c;};this.push=function(_14d){_14d.style.display="none";_14b.push(_14d);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _14e=(this.iframe=dijit._frames.pop());node.appendChild(_14e);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_14e,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_14f=d.isOpera,maj=Math.floor,ff=d.isFF,_150=d.boxModel.replace(/-/,""),_151={dj_quirks:d.isQuirks,dj_opera:_14f,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_151["dj_ie"]=true;_151["dj_ie"+maj(ie)]=true;_151["dj_iequirks"]=d.isQuirks;}if(ff){_151["dj_ff"+maj(ff)]=true;}_151["dj_"+_150]=true;var _152="";for(var clz in _151){if(_151[clz]){_152+=clz+" ";}}html.className=d.trim(html.className+" "+_152);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _153="dj_rtl dijitRtl "+_152.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_153);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_154,node,_155,obj,_156,_157,_158){if(obj!=this._obj){this.stop();this._initialDelay=_157||500;this._subsequentDelay=_156||0.9;this._minDelay=_158||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_154,_155);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_159,_15a,_15b,_15c,_15d,_15e){if(_159.keyCode){_159.charOrCode=_159.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_159.charCode){_159.charOrCode=String.fromCharCode(_159.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_159.charOrCode&&(_159.ctrlKey===undefined||_159.ctrlKey==evt.ctrlKey)&&(_159.altKey===undefined||_159.altKey==evt.altKey)&&(_159.metaKey===undefined||_159.metaKey==(evt.metaKey||false))&&(_159.shiftKey===undefined||_159.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_15a,node,_15b,_159,_15c,_15d,_15e);}else{if(dijit.typematic._obj==_159){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_159){dijit.typematic.stop();}})];},addMouseListener:function(node,_15f,_160,_161,_162,_163){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_15f,node,_160,node,_161,_162,_163);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_15f,node,_160,node,_161,_162,_163);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_164,_165,_166,_167,_168,_169,_16a,_16b){return this.addKeyListener(_165,_166,_167,_168,_169,_16a,_16b).concat(this.addMouseListener(_164,_167,_168,_169,_16a,_16b));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _16c=cs.backgroundImage;var _16d=(cs.borderTopColor==cs.borderRightColor)||(_16c!=null&&(_16c=="none"||_16c=="url(invalid-url:)"));dojo[_16d?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem,role){var _16e=this.getWaiRole(elem);return role?(_16e.indexOf(role)>-1):(_16e.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _16f=dojo.attr(elem,"role");if(!_16f){return;}if(role){var t=dojo.trim((" "+_16f+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_170){return elem.hasAttribute?elem.hasAttribute("aria-"+_170):!!elem.getAttribute("aria-"+_170);},getWaiState:function(elem,_171){return elem.getAttribute("aria-"+_171)||"";},setWaiState:function(elem,_172,_173){elem.setAttribute("aria-"+_172,_173);},removeWaiState:function(elem,_174){elem.removeAttribute("aria-"+_174);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_175,_176){if(_175&&dojo.isFunction(_175._onConnect)){_175._onConnect(_176);}});dijit._connectOnUseEventHandler=function(_177){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _178=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_178);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_178);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,create:function(_179,_17a){this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_17b){if(_17b in this._deferredConnects){var _17c=this[this._deferredConnects[_17b]||"domNode"];this.connect(_17c,_17b.toLowerCase(),_17b);delete this._deferredConnects[_17b];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_17d){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_17d);},attr:function(name,_17e){if(dojo.config.isDebug){var _17f=arguments.callee._ach||(arguments.callee._ach={}),_180=(arguments.callee.caller||"unknown caller").toString();if(!_17f[_180]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_180,"","2.0");_17f[_180]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_181,_182){var d=dojo,dc=d._connect,_183=this.inherited(arguments,[obj,_181=="ondijitclick"?"onclick":_181,_182]);if(_181=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_182);_183.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}}return _183;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_184,map,_185,_186){_186=_186||dojo.global;_185=_185?dojo.hitch(_186,_185):function(v){return v;};return _184.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_187,key,_188){var _189=dojo.getObject(key,false,map);if(_188){_189=dojo.getObject(_188,false,_186).call(_186,_189,key);}return _185(_189,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.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;};}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_18a,url,_18b){if(typeof _18a=="string"){var _18c=dojo.moduleUrl(_18a,url);}else{_18c=_18a;_18b=url;}var key=_18c.toString();var val=_18b;if(_18b!=undefined&&!dojo.isString(_18b)){val=("value" in _18b?_18b.value:undefined);}var _18d=_18b&&_18b.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_18d?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_18d?dojo.cache._sanitize(val):val;}val=cache[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _18e=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_18e){val=_18e[1];}}else{val="";}return val;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _18f=this.declaredClass,_190=this;return dojo.string.substitute(tmpl,this,function(_191,key){if(key.charAt(0)=="!"){_191=dojo.getObject(key.substr(1),false,_190);}if(typeof _191=="undefined"){throw new Error(_18f+" template:"+key);}if(_191==null){return "";}return key.charAt(0)=="!"?_191:_191.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _192=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_192)){node=dojo._toDom(this._stringRepl(_192));if(node.nodeType!=1){throw new Error("Invalid template: "+_192);}}else{node=_192.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_193){var dest=this.containerNode;if(_193&&dest){while(_193.hasChildNodes()){dest.appendChild(_193.firstChild);}}},_attachTemplateNodes:function(_194,_195){_195=_195||function(n,p){return n.getAttribute(p);};var _196=dojo.isArray(_194)?_194:(_194.all||_194.getElementsByTagName("*"));var x=dojo.isArray(_194)?0:-1;for(;x<_196.length;x++){var _197=(x==-1)?_194:_196[x];if(this.widgetsInTemplate&&(_195(_197,"dojoType")||_195(_197,"data-dojo-type"))){continue;}var _198=_195(_197,"dojoAttachPoint")||_195(_197,"data-dojo-attach-point");if(_198){var _199,_19a=_198.split(/\s*,\s*/);while((_199=_19a.shift())){if(dojo.isArray(this[_199])){this[_199].push(_197);}else{this[_199]=_197;}this._attachPoints.push(_199);}}var _19b=_195(_197,"dojoAttachEvent")||_195(_197,"data-dojo-attach-event");if(_19b){var _19c,_19d=_19b.split(/\s*,\s*/);var trim=dojo.trim;while((_19c=_19d.shift())){if(_19c){var _19e=null;if(_19c.indexOf(":")!=-1){var _19f=_19c.split(":");_19c=trim(_19f[0]);_19e=trim(_19f[1]);}else{_19c=trim(_19c);}if(!_19e){_19e=_19c;}this._attachEvents.push(this.connect(_197,_19c,_19e));}}}var role=_195(_197,"waiRole");if(role){dijit.setWaiRole(_197,role);}var _1a0=_195(_197,"waiState");if(_1a0){dojo.forEach(_1a0.split(/\s*,\s*/),function(_1a1){if(_1a1.indexOf("-")!=-1){var pair=_1a1.split("-");dijit.setWaiState(_197,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_1a2){delete this[_1a2];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1a3,_1a4,_1a5){var _1a6=dijit._Templated._templateCache;var key=_1a4||_1a3;var _1a7=_1a6[key];if(_1a7){try{if(!_1a7.ownerDocument||_1a7.ownerDocument==dojo.doc){return _1a7;}}catch(e){}dojo.destroy(_1a7);}if(!_1a4){_1a4=dojo.cache(_1a3,{sanitize:true});}_1a4=dojo.string.trim(_1a4);if(_1a5||_1a4.match(/\$\{([^\}]+)\}/g)){return (_1a6[key]=_1a4);}else{var node=dojo._toDom(_1a4);if(node.nodeType!=1){throw new Error("Invalid template: "+_1a4);}return (_1a6[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1a8=dijit._Templated._templateCache;for(var key in _1a8){var _1a9=_1a8[key];if(typeof _1a9=="object"){dojo.destroy(_1a9);}delete _1a8[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1aa,_1ab){var _1ac=this.containerNode;if(_1ab&&typeof _1ab=="number"){var _1ad=this.getChildren();if(_1ad&&_1ad.length>=_1ab){_1ac=_1ad[_1ab-1].domNode;_1ab="after";}}dojo.place(_1aa.domNode,_1ac,_1ab);if(this._started&&!_1aa._started){_1aa.startup();}},removeChild:function(_1ae){if(typeof _1ae=="number"){_1ae=this.getChildren()[_1ae];}if(_1ae){var node=_1ae.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1af){dojo.forEach(this.getChildren(),function(_1b0){_1b0.destroyRecursive(_1af);});},_getSiblingOfChild:function(_1b1,dir){var node=_1b1.domNode,_1b2=(dir>0?"nextSibling":"previousSibling");do{node=node[_1b2];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1b3){return dojo.indexOf(this.getChildren(),_1b3);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1b4){_1b4.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _1b5=dijit.getEnclosingWidget(this.domNode.parentNode);return _1b5&&_1b5.isContainer?_1b5:null;},_getSibling:function(_1b6){var node=this.domNode;do{node=node[_1b6+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.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);}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _1b7=this.getParent&&this.getParent();if(!(_1b7&&_1b7.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_1b8,_1b9){var node=this.domNode;if(_1b8){dojo.marginBox(node,_1b8);if(_1b8.t){node.style.top=_1b8.t+"px";}if(_1b8.l){node.style.left=_1b8.l+"px";}}var mb=_1b9||{};dojo.mixin(mb,_1b8||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_1ba){var cls=this.baseClass+"-child "+(_1ba.baseClass?this.baseClass+"-"+_1ba.baseClass:"");dojo.addClass(_1ba.domNode,cls);},addChild:function(_1bb,_1bc){this.inherited(arguments);if(this._started){this._setupChild(_1bb);}},removeChild:function(_1bd){var cls=this.baseClass+"-child"+(_1bd.baseClass?" "+this.baseClass+"-"+_1bd.baseClass:"");dojo.removeClass(_1bd.domNode,cls);this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1be=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1bf,dim){var _1c0=_1bf.resize?_1bf.resize(dim):dojo.marginBox(_1bf.domNode,dim);if(_1c0){dojo.mixin(_1bf,_1c0);}else{dojo.mixin(_1bf,dojo.marginBox(_1bf.domNode));dojo.mixin(_1bf,dim);}};dijit.layout.layoutChildren=function(_1c1,dim,_1c2,_1c3,_1c4){dim=dojo.mixin({},dim);dojo.addClass(_1c1,"dijitLayoutContainer");_1c2=dojo.filter(_1c2,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_1c2,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_1c2,function(_1c5){var elm=_1c5.domNode,pos=(_1c5.region||_1c5.layoutAlign);var _1c6=elm.style;_1c6.left=dim.l+"px";_1c6.top=dim.t+"px";_1c6.position="absolute";dojo.addClass(elm,"dijitAlign"+_1be(pos));var _1c7={};if(_1c3&&_1c3==_1c5.id){_1c7[_1c5.region=="top"||_1c5.region=="bottom"?"h":"w"]=_1c4;}if(pos=="top"||pos=="bottom"){_1c7.w=dim.w;size(_1c5,_1c7);dim.h-=_1c5.h;if(pos=="top"){dim.t+=_1c5.h;}else{_1c6.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_1c7.h=dim.h;size(_1c5,_1c7);dim.w-=_1c5.w;if(pos=="left"){dim.l+=_1c5.w;}else{_1c6.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_1c5,dim);}}}});};})();}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_1c8){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_1c8&&_1c8.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_1c9){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_1c9);};dojo.regexp.group=function(_1ca,_1cb){return "("+(_1cb?"?:":"")+_1ca+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_1cc,_1cd){var c=document.cookie;if(arguments.length==1){var _1ce=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _1ce?decodeURIComponent(_1ce[1]):undefined;}else{_1cd=_1cd||{};var exp=_1cd.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_1cd.expires=d;}if(exp&&exp.toUTCString){_1cd.expires=exp.toUTCString();}_1cc=encodeURIComponent(_1cc);var _1cf=name+"="+_1cc,_1d0;for(_1d0 in _1cd){_1cf+="; "+_1d0;var _1d1=_1cd[_1d0];if(_1d1!==true){_1cf+="="+_1d1;}}document.cookie=_1cf;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_1d2){if(!this.disabled){switch(_1d2.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _1d3=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1d3);});break;}}},_setStateClass:function(){var _1d4=this.baseClass.split(" ");function _1d5(_1d6){_1d4=_1d4.concat(dojo.map(_1d4,function(c){return c+_1d6;}),"dijit"+_1d6);};if(!this.isLeftToRight()){_1d5("Rtl");}if(this.checked){_1d5("Checked");}if(this.state){_1d5(this.state);}if(this.selected){_1d5("Selected");}if(this.disabled){_1d5("Disabled");}else{if(this.readOnly){_1d5("ReadOnly");}else{if(this.active){_1d5("Active");}else{if(this.hovering){_1d5("Hover");}}}}if(this._focused){_1d5("Focused");}var tn=this.stateNode||this.domNode,_1d7={};dojo.forEach(tn.className.split(" "),function(c){_1d7[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1d7[c];});}dojo.forEach(_1d4,function(c){_1d7[c]=true;});var _1d8=[];for(var c in _1d7){_1d8.push(c);}tn.className=_1d8.join(" ");this._stateClasses=_1d4;},_trackMouseState:function(node,_1d9){var _1da=false,_1db=false,_1dc=false;var self=this,cn=dojo.hitch(this,"connect",node);function _1dd(){var _1de=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_1d9+"Hover",_1da&&!_1db&&!_1de);dojo.toggleClass(node,_1d9+"Active",_1db&&!_1de);dojo.toggleClass(node,_1d9+"Focused",_1dc&&!_1de);};cn("onmouseenter",function(){_1da=true;_1dd();});cn("onmouseleave",function(){_1da=false;_1db=false;_1dd();});cn("onmousedown",function(){_1db=true;_1dd();});cn("onmouseup",function(){_1db=false;_1dd();});cn("onfocus",function(){_1dc=true;_1dd();});cn("onblur",function(){_1dc=false;_1dd();});this.watch("disabled",_1dd);this.watch("readOnly",_1dd);}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_1df){this._set("disabled",_1df);dojo.attr(this.focusNode,"disabled",_1df);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_1df);}dijit.setWaiState(this.focusNode,"disabled",_1df);if(_1df){this._set("hovering",false);this._set("active",false);var _1e0="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_1e0)?_1e0:[_1e0],function(_1e1){var node=this[_1e1];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_1e2){dojo.deprecated("setDisabled("+_1e2+") is deprecated. Use set('disabled',"+_1e2+") instead.","","2.0");this.set("disabled",_1e2);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){dijit.focus(this.focusNode);}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_1e3){},_onChangeActive:false,_handleOnChange:function(_1e4,_1e5){if(this._lastValueReported==undefined&&(_1e5===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1e4;}this._pendingOnChange=this._pendingOnChange||(typeof _1e4!=typeof this._lastValueReported)||(this.compare(_1e4,this._lastValueReported)!=0);if((this.intermediateChanges||_1e5||_1e5===undefined)&&this._pendingOnChange){this._lastValueReported=_1e4;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1e4);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_1e6){dojo.deprecated("dijit.form._FormWidget:setValue("+_1e6+") is deprecated.  Use set('value',"+_1e6+") instead.","","2.0");this.set("value",_1e6);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&dojo.mouseButtons.isLeft(e)&&this.isFocusable()){var _1e7=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1e7);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1e8){dojo.attr(this.focusNode,"readOnly",_1e8);dijit.setWaiState(this.focusNode,"readonly",_1e8);this._set("readOnly",_1e8);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_1e9,_1ea){this._handleOnChange(_1e9,_1ea);},_handleOnChange:function(_1eb,_1ec){this._set("value",_1eb);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _1ed=this.domNode;var _1ee=_1ed.parentNode;var _1ef=_1ed.firstChild||_1ed;var _1f0=_1ef.style.filter;var _1f1=this;while(_1ee&&_1ee.clientHeight==0){(function ping(){var _1f2=_1f1.connect(_1ee,"onscroll",function(e){_1f1.disconnect(_1f2);_1ef.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1ef.style.filter=_1f0;},0);});})();_1ee=_1ee.parentNode;}}}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _1f3=this.dropDown,_1f4=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_1f4){if(dojo.hasClass(t,"dijitPopup")){_1f4=true;}else{t=t.parentNode;}}if(_1f4){t=e.target;if(_1f3.onItemClick){var _1f5;while(t&&!(_1f5=dijit.byNode(t))){t=t.parentNode;}if(_1f5&&_1f5.onClick&&_1f5.getParent){_1f5.getParent().onItemClick(_1f5,e);}}return;}}}if(this._opened&&_1f3.focus&&_1f3.autoFocus!==false){window.setTimeout(dojo.hitch(_1f3,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _1f6={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_1f6+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_1f7=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_1f7.tagName||"").toLowerCase()!=="input"||(_1f7.type&&_1f7.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _1f8=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_1f8);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_1f9){_1f9();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _1fa=this.dropDown,_1fb=_1fa.domNode,_1fc=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_1fb.style.width){this._explicitDDWidth=true;}if(_1fb.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _1fd={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_1fd.width="";}if(!this._explicitDDHeight){_1fd.height="";}dojo.style(_1fb,_1fd);var _1fe=this.maxHeight;if(_1fe==-1){var _1ff=dojo.window.getBox(),_200=dojo.position(_1fc,false);_1fe=Math.floor(Math.max(_200.y,_1ff.h-(_200.y+_200.h)));}if(_1fa.startup&&!_1fa._started){_1fa.startup();}dijit.popup.moveOffScreen(_1fa);var mb=dojo._getMarginSize(_1fb);var _201=(_1fe&&mb.h>_1fe);dojo.style(_1fb,{overflowX:"hidden",overflowY:_201?"auto":"hidden"});if(_201){mb.h=_1fe;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_1fc.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_1fc.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_1fa.resize)){_1fa.resize(mb);}else{dojo.marginBox(_1fb,mb);}}var _202=dijit.popup.open({parent:this,popup:_1fa,around:_1fc,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _202;},closeDropDown:function(_203){if(this._opened){if(_203){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _204=dijit.byNode(node);if(_204&&typeof _204._onSubmit=="function"){_204._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_205){if(_205&&(!this.params||!("label" in this.params))){this.set("label",_205.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_206){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_206);},_setLabelAttr:function(_207){this._set("label",_207);this.containerNode.innerHTML=_207;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _208=this.iconClass||"dijitNoIcon",_209=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_209,_208);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _20a=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_20a[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _20b=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_20b);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _20c=this.dropDown;return (!!_20c&&(!_20c.href||_20c.isLoaded));},loadDropDown:function(){var _20d=this.dropDown;if(!_20d){return;}if(!this.isLoaded()){var _20e=dojo.connect(_20d,"onLoad",this,function(){dojo.disconnect(_20e);this.openDropDown();});_20d.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_20f){if(!this.disabled){dijit.focus(_20f=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_210,_211){this._set("checked",_210);dojo.attr(this.focusNode||this.domNode,"checked",_210);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_210);this._handleOnChange(_210,_211);},setChecked:function(_212){dojo.deprecated("setChecked("+_212+") is deprecated. Use set('checked',"+_212+") instead.","","2.0");this.set("checked",_212);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_213,_214,_215){_215=dojo.i18n.normalizeLocale(_215);var _216=_215.split("-");var _217=[_213,"nls",_214].join(".");var _218=dojo._loadedModules[_217];if(_218){var _219;for(var i=_216.length;i>0;i--){var loc=_216.slice(0,i).join("_");if(_218[loc]){_219=_218[loc];break;}}if(!_219){_219=_218.ROOT;}if(_219){var _21a=function(){};_21a.prototype=_219;return new _21a();}}throw new Error("Bundle not found: "+_214+" in "+_213+" , locale="+_215);};dojo.i18n.normalizeLocale=function(_21b){var _21c=(_21b?_21b:dojo.locale).toLowerCase();if(_21c=="root"){_21c="ROOT";}return _21c;};dojo.i18n._requireLocalization=function(_21d,_21e,_21f,_220){var _221=dojo.i18n.normalizeLocale(_21f);var _222=[_21d,"nls",_21e].join(".");var _223="";if(_220){var _224=_220.split(",");for(var i=0;i<_224.length;i++){if(_221["indexOf"](_224[i])==0){if(_224[i].length>_223.length){_223=_224[i];}}}if(!_223){_223="ROOT";}}var _225=_220?_223:_221;var _226=dojo._loadedModules[_222];var _227=null;if(_226){if(dojo.config.localizationComplete&&_226._built){return;}var _228=_225.replace(/-/g,"_");var _229=_222+"."+_228;_227=dojo._loadedModules[_229];}if(!_227){_226=dojo["provide"](_222);var syms=dojo._getModuleSymbols(_21d);var _22a=syms.concat("nls").join("/");var _22b;dojo.i18n._searchLocalePath(_225,_220,function(loc){var _22c=loc.replace(/-/g,"_");var _22d=_222+"."+_22c;var _22e=false;if(!dojo._loadedModules[_22d]){dojo["provide"](_22d);var _22f=[_22a];if(loc!="ROOT"){_22f.push(loc);}_22f.push(_21e);var _230=_22f.join("/")+".js";_22e=dojo._loadPath(_230,null,function(hash){hash=hash.root||hash;var _231=function(){};_231.prototype=_22b;_226[_22c]=new _231();for(var j in hash){_226[_22c][j]=hash[j];}});}else{_22e=true;}if(_22e&&_226[_22c]){_22b=_226[_22c];}else{_226[_22c]=_22b;}if(_220){return true;}});}if(_220&&_221!=_223){_226[_221.replace(/-/g,"_")]=_226[_223.replace(/-/g,"_")];}};(function(){var _232=dojo.config.extraLocale;if(_232){if(!_232 instanceof Array){_232=[_232];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_233,_234){req(m,b,_233,_234);if(_233){return;}for(var i=0;i<_232.length;i++){req(m,b,_232[i],_234);}};}})();dojo.i18n._searchLocalePath=function(_235,down,_236){_235=dojo.i18n.normalizeLocale(_235);var _237=_235.split("-");var _238=[];for(var i=_237.length;i>0;i--){_238.push(_237.slice(0,i).join("-"));}_238.push(false);if(down){_238.reverse();}for(var j=_238.length-1;j>=0;j--){var loc=_238[j]||"ROOT";var stop=_236(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_239,_23a){function _23b(_23c){_23c=dojo.i18n.normalizeLocale(_23c);dojo.i18n._searchLocalePath(_23c,true,function(loc){for(var i=0;i<_23a.length;i++){if(_23a[i]==loc){dojo["require"](_239+"_"+loc);return true;}}return false;});};_23b();var _23d=dojo.config.extraLocale||[];for(var i=0;i<_23d.length;i++){_23b(_23d[i]);}};}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span role='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",constructor:function(){this.pane2button={};this.pane2connects={};this.pane2watches={};},buildRendering:function(){this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},postCreate:function(){this.inherited(arguments);this.subscribe(this.containerId+"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);if(info.selected){this.onSelectChild(info.selected);}},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(dijit.byId(pane));}this.inherited(arguments);},onAddChild:function(page,_23e){var cls=dojo.getObject(this.buttonWidget);var _23f=new cls({id:this.id+"_"+page.id,label:page.title,dir:page.dir,lang:page.lang,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip});dijit.setWaiState(_23f.focusNode,"selected","false");var _240=["title","showTitle","iconClass","closable","tooltip"],_241=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_240,function(_242,idx){return page.watch(_242,function(name,_243,_244){_23f.set(_241[idx],_244);});});this.pane2connects[page.id]=[this.connect(_23f,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_23f,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_23f,_23e);this.pane2button[page.id]=_23f;page.controlButton=_23f;if(!this._currentChild){_23f.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_23f.focusNode,"selected","true");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2connects[page.id],dojo.hitch(this,"disconnect"));delete this.pane2connects[page.id];dojo.forEach(this.pane2watches[page.id],function(w){w.unwatch();});delete this.pane2watches[page.id];var _245=this.pane2button[page.id];if(_245){this.removeChild(_245);delete this.pane2button[page.id];_245.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _246=this.pane2button[this._currentChild.id];_246.set("checked",false);dijit.setWaiState(_246.focusNode,"selected","false");_246.focusNode.setAttribute("tabIndex","-1");}var _247=this.pane2button[page.id];_247.set("checked",true);dijit.setWaiState(_247.focusNode,"selected","true");this._currentChild=page;_247.focusNode.setAttribute("tabIndex","0");var _248=dijit.byId(this.containerId);dijit.setWaiState(_248.containerNode,"labelledby",_247.id);},onButtonClick:function(page){var _249=dijit.byId(this.containerId);_249.selectChild(page);},onCloseButtonClick:function(page){var _24a=dijit.byId(this.containerId);_24a.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_24b){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_24b=!_24b;}var _24c=this.getChildren();var _24d=dojo.indexOf(_24c,this.pane2button[this._currentChild.id]);var _24e=_24b?1:_24c.length-1;return _24c[(_24d+_24e)%_24c.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _24f=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_24f=false;}break;case k.PAGE_UP:if(e.ctrlKey){_24f=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_24f=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_24f=true;}break;case k.HOME:case k.END:var _250=this.getChildren();if(_250&&_250.length){_250[e.charOrCode==k.HOME?0:_250.length-1].onClick();}dojo.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_24f!==null){this.adjacent(_24f).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",buildRendering:function(evt){this.inherited(arguments);dijit.setWaiRole((this.focusNode||this.domNode),"tab");},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _251=this.getChildren();dojo.forEach(_251,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_251,function(_252){if(_252.selected){this.selectedChildWidget=_252;}return _252.selected;},this);}var _253=this.selectedChildWidget;if(!_253&&_251[0]){_253=this.selectedChildWidget=_251[0];_253.selected=true;}dojo.publish(this.id+"-startup",[{children:_251,selected:_253}]);this.inherited(arguments);},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=true;var _254=this.selectedChildWidget;if(_254){this._showChild(_254);}}this.inherited(arguments);},_setupChild:function(_255){this.inherited(arguments);dojo.replaceClass(_255.domNode,"dijitHidden","dijitVisible");_255.domNode.title="";},addChild:function(_256,_257){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_256,_257]);this.layout();if(!this.selectedChildWidget){this.selectChild(_256);}}},removeChild:function(page){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-removeChild",[page]);}if(this._beingDestroyed){return;}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _258=this.getChildren();if(_258.length){this.selectChild(_258[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_259){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_259);this._set("selectedChildWidget",page);dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}return d;},_transition:function(_25a,_25b,_25c){if(_25b){this._hideChild(_25b);}var d=this._showChild(_25a);if(_25a.resize){if(this.doLayout){_25a.resize(this._containerContentBox||this._contentBox);}else{_25a.resize();}}return d;},_adjacent:function(_25d){var _25e=this.getChildren();var _25f=dojo.indexOf(_25e,this.selectedChildWidget);_25f+=_25d?1:_25e.length-1;return _25e[_25f%_25e.length];},forward:function(){return this.selectChild(this._adjacent(true),true);},back:function(){return this.selectChild(this._adjacent(false),true);},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox||this._contentBox);}},_showChild:function(page){var _260=this.getChildren();page.isFirstChild=(page==_260[0]);page.isLastChild=(page==_260[_260.length-1]);page._set("selected",true);dojo.replaceClass(page.domNode,"dijitVisible","dijitHidden");return page._onShow()||true;},_hideChild:function(page){page._set("selected",false);dojo.replaceClass(page.domNode,"dijitHidden","dijitVisible");page.onHide();},closeChild:function(page){var _261=page.onClose(this,page);if(_261){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_262){dojo.forEach(this.getChildren(),function(_263){this.removeChild(_263);_263.destroyRecursive(_262);},this);}});dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_264){_264.startup();_264._started=true;});},startup:function(){if(this._started){return;}var _265=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_265&&_265.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _266=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_267=_266.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_268=dojo.filter(_267.map(dijit.byNode),function(_269){return _269&&_269.domNode&&_269.resize;});if(_266.length==_267.length&&_268.length==1){this._singleChild=_268[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_26a,_26b){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_26a,_26b);},_scheduleLayout:function(_26c,_26d){if(this._isShown()){this._layout(_26c,_26d);}else{this._needLayout=true;this._changeSize=_26c;this._resultSize=_26d;}},_layout:function(_26e,_26f){if(_26e){dojo.marginBox(this.domNode,_26e);}var cn=this.containerNode;if(cn===this.domNode){var mb=_26f||{};dojo.mixin(mb,_26e||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_270){if(_270.resize){_270.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_271=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_271&&_271.style&&(_271.style.display!="none");}}},_onShow:function(){this._wasShown=true;if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _272=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _273=cont.length,i=0;i<cont.length;i=_273==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(_274,node){dojo.mixin(this,_274||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_272++].join("_");}},set:function(cont,_275){if(undefined!==cont){this.content=cont;}if(_275){this._mixin(_275);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){throw new Error(this.declaredClass+": setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _276=this.onContentError(e);try{node.innerHTML=_276;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _277=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_277){cont=_277[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_278){var _279={},key;for(key in _278){if(key in _279){continue;}this[key]=_278[key];}},_parse:function(){var _27a=this.node;try{var _27b={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_27b[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_27a,noStart:!this.startup,inherited:_27b,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_27c){var _27d=this["on"+type+"Error"].call(this,err);if(_27c){console.error(_27c,err);}else{if(_27d){dojo.html._setNodeContent(this.node,_27d,true);}}}});dojo.html.set=function(node,cont,_27e){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_27e){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_27e,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_27f,_280){if((!_27f||!_27f.template)&&_280&&!("href" in _27f)&&!("content" in _27f)){var df=dojo.doc.createDocumentFragment();_280=dojo.byId(_280);while(_280.firstChild){df.appendChild(_280.firstChild);}_27f=dojo.delegate(_27f,{content:df});}this.inherited(arguments,[_27f,_280]);},postMixInProperties:function(){this.inherited(arguments);var _281=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_281);this.errorMessage=dojo.string.substitute(this.errorMessage,_281);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_282){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _283={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_283,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_283));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _284=this._contentSetter;dojo.forEach(this.getChildren(),function(_285){if(_285.destroyRecursive){_285.destroyRecursive();}});if(_284){dojo.forEach(_284.parseResults,function(_286){if(_286.destroyRecursive&&_286.domNode&&_286.domNode.parentNode==dojo.body()){_286.destroyRecursive();}});delete _284.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_287){this.destroyDescendants();var _288=this._contentSetter;if(!(_288&&_288 instanceof dojo.html._ContentSetter)){_288=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _289=this.onContentError(e);try{this.containerNode.innerHTML=_289;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _28a=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_288.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_28a);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_287){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_28b){this.onLoadDeferred.errback(err);var _28c=this["on"+type+"Error"].call(this,err);if(_28b){console.error(_28b,err);}else{if(_28c){this._setContent(_28c,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_28d){},onDownloadError:function(_28e){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.getObject("cldr.supplemental",true,dojo);dojo.cldr.supplemental.getFirstDayOfWeek=function(_28f){var _290={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};var _291=dojo.cldr.supplemental._region(_28f);var dow=_290[_291];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_292){_292=dojo.i18n.normalizeLocale(_292);var tags=_292.split("-");var _293=tags[1];if(!_293){_293={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_293.length==4){_293=tags[2];}}return _293;};dojo.cldr.supplemental.getWeekend=function(_294){var _295={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5};var _296={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};var _297=dojo.cldr.supplemental._region(_294);var _298=_295[_297];var end=_296[_297];if(_298===undefined){_298=6;}if(end===undefined){end=0;}return {start:_298,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.getObject("date",true,dojo);dojo.date.getDaysInMonth=function(_299){var _29a=_299.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_29a==1&&dojo.date.isLeapYear(_299)){return 29;}return days[_29a];};dojo.date.isLeapYear=function(_29b){var year=_29b.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_29c){var str=_29c.toString();var tz="";var _29d;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_29d=str.match(pat))){tz=_29d[1];}else{str=_29c.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_29d=str.match(pat))){tz=_29d[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_29e,_29f,_2a0){_29e=new Date(+_29e);_29f=new Date(+(_29f||new Date()));if(_2a0=="date"){_29e.setHours(0,0,0,0);_29f.setHours(0,0,0,0);}else{if(_2a0=="time"){_29e.setFullYear(0,0,0);_29f.setFullYear(0,0,0);}}if(_29e>_29f){return 1;}if(_29e<_29f){return -1;}return 0;};dojo.date.add=function(date,_2a1,_2a2){var sum=new Date(+date);var _2a3=false;var _2a4="Date";switch(_2a1){case "day":break;case "weekday":var days,_2a5;var mod=_2a2%5;if(!mod){days=(_2a2>0)?5:-5;_2a5=(_2a2>0)?((_2a2-5)/5):((_2a2+5)/5);}else{days=mod;_2a5=parseInt(_2a2/5);}var strt=date.getDay();var adj=0;if(strt==6&&_2a2>0){adj=1;}else{if(strt==0&&_2a2<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_2a2>0)?2:-2;}_2a2=(7*_2a5)+days+adj;break;case "year":_2a4="FullYear";_2a3=true;break;case "week":_2a2*=7;break;case "quarter":_2a2*=3;case "month":_2a3=true;_2a4="Month";break;default:_2a4="UTC"+_2a1.charAt(0).toUpperCase()+_2a1.substring(1)+"s";}if(_2a4){sum["set"+_2a4](sum["get"+_2a4]()+_2a2);}if(_2a3&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_2a6,_2a7,_2a8){_2a7=_2a7||new Date();_2a8=_2a8||"day";var _2a9=_2a7.getFullYear()-_2a6.getFullYear();var _2aa=1;switch(_2a8){case "quarter":var m1=_2a6.getMonth();var m2=_2a7.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_2a9*4);_2aa=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_2a6,_2a7,"day"));var _2ab=parseInt(dojo.date.difference(_2a6,_2a7,"week"));var mod=days%7;if(mod==0){days=_2ab*5;}else{var adj=0;var aDay=_2a6.getDay();var bDay=_2a7.getDay();_2ab=parseInt(days/7);mod=days%7;var _2ac=new Date(_2a6);_2ac.setDate(_2ac.getDate()+(_2ab*7));var _2ad=_2ac.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_2ad+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_2ad+mod)<0:adj=2;}}}days+=adj;days-=(_2ab*2);}_2aa=days;break;case "year":_2aa=_2a9;break;case "month":_2aa=(_2a7.getMonth()-_2a6.getMonth())+(_2a9*12);break;case "week":_2aa=parseInt(dojo.date.difference(_2a6,_2a7,"day")/7);break;case "day":_2aa/=24;case "hour":_2aa/=60;case "minute":_2aa/=60;case "second":_2aa/=1000;case "millisecond":_2aa*=_2a7.getTime()-_2a6.getTime();}return Math.round(_2aa);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");dojo.getObject("date.locale",true,dojo);(function(){function _2ae(_2af,_2b0,_2b1,_2b2){return _2b2.replace(/([a-z])\1*/ig,function(_2b3){var s,pad,c=_2b3.charAt(0),l=_2b3.length,_2b4=["abbr","wide","narrow"];switch(c){case "G":s=_2b0[(l<4)?"eraAbbr":"eraNames"][_2af.getFullYear()<0?0:1];break;case "y":s=_2af.getFullYear();switch(l){case 1:break;case 2:if(!_2b1.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_2af.getMonth()+1)/3);pad=true;break;case "M":var m=_2af.getMonth();if(l<3){s=m+1;pad=true;}else{var _2b5=["months","format",_2b4[l-3]].join("-");s=_2b0[_2b5][m];}break;case "w":var _2b6=0;s=dojo.date.locale._getWeekOfYear(_2af,_2b6);pad=true;break;case "d":s=_2af.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_2af);pad=true;break;case "E":var d=_2af.getDay();if(l<3){s=d+1;pad=true;}else{var _2b7=["days","format",_2b4[l-3]].join("-");s=_2b0[_2b7][d];}break;case "a":var _2b8=(_2af.getHours()<12)?"am":"pm";s=_2b1[_2b8]||_2b0["dayPeriods-format-wide-"+_2b8];break;case "h":case "H":case "K":case "k":var h=_2af.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_2af.getMinutes();pad=true;break;case "s":s=_2af.getSeconds();pad=true;break;case "S":s=Math.round(_2af.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_2af,true,_2b1);if(s){break;}l=4;case "Z":var _2b9=dojo.date.locale._getZone(_2af,false,_2b1);var tz=[(_2b9<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_2b9)/60),2),dojo.string.pad(Math.abs(_2b9)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_2b2);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_2ba,_2bb,_2bc){if(_2bb){return dojo.date.getTimezoneName(_2ba);}else{return _2ba.getTimezoneOffset();}};dojo.date.locale.format=function(_2bd,_2be){_2be=_2be||{};var _2bf=dojo.i18n.normalizeLocale(_2be.locale),_2c0=_2be.formatLength||"short",_2c1=dojo.date.locale._getGregorianBundle(_2bf),str=[],_2c2=dojo.hitch(this,_2ae,_2bd,_2c1,_2be);if(_2be.selector=="year"){return _2c3(_2c1["dateFormatItem-yyyy"]||"yyyy",_2c2);}var _2c4;if(_2be.selector!="date"){_2c4=_2be.timePattern||_2c1["timeFormat-"+_2c0];if(_2c4){str.push(_2c3(_2c4,_2c2));}}if(_2be.selector!="time"){_2c4=_2be.datePattern||_2c1["dateFormat-"+_2c0];if(_2c4){str.push(_2c3(_2c4,_2c2));}}return str.length==1?str[0]:_2c1["dateTimeFormat-"+_2c0].replace(/\{(\d+)\}/g,function(_2c5,key){return str[key];});};dojo.date.locale.regexp=function(_2c6){return dojo.date.locale._parseInfo(_2c6).regexp;};dojo.date.locale._parseInfo=function(_2c7){_2c7=_2c7||{};var _2c8=dojo.i18n.normalizeLocale(_2c7.locale),_2c9=dojo.date.locale._getGregorianBundle(_2c8),_2ca=_2c7.formatLength||"short",_2cb=_2c7.datePattern||_2c9["dateFormat-"+_2ca],_2cc=_2c7.timePattern||_2c9["timeFormat-"+_2ca],_2cd;if(_2c7.selector=="date"){_2cd=_2cb;}else{if(_2c7.selector=="time"){_2cd=_2cc;}else{_2cd=_2c9["dateTimeFormat-"+_2ca].replace(/\{(\d+)\}/g,function(_2ce,key){return [_2cc,_2cb][key];});}}var _2cf=[],re=_2c3(_2cd,dojo.hitch(this,_2d0,_2cf,_2c9,_2c7));return {regexp:re,tokens:_2cf,bundle:_2c9};};dojo.date.locale.parse=function(_2d1,_2d2){var _2d3=/[\u200E\u200F\u202A\u202E]/g,info=dojo.date.locale._parseInfo(_2d2),_2d4=info.tokens,_2d5=info.bundle,re=new RegExp("^"+info.regexp.replace(_2d3,"")+"$",info.strict?"":"i"),_2d6=re.exec(_2d1&&_2d1.replace(_2d3,""));if(!_2d6){return null;}var _2d7=["abbr","wide","narrow"],_2d8=[1970,0,1,0,0,0,0],amPm="",_2d9=dojo.every(_2d6,function(v,i){if(!i){return true;}var _2da=_2d4[i-1];var l=_2da.length;switch(_2da.charAt(0)){case "y":if(l!=2&&_2d2.strict){_2d8[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_2db=year.substring(0,2)*100,_2dc=Math.min(Number(year.substring(2,4))+20,99),num=(v<_2dc)?_2db+v:_2db-100+v;_2d8[0]=num;}else{if(_2d2.strict){return false;}_2d8[0]=v;}}break;case "M":if(l>2){var _2dd=_2d5["months-format-"+_2d7[l-3]].concat();if(!_2d2.strict){v=v.replace(".","").toLowerCase();_2dd=dojo.map(_2dd,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_2dd,v);if(v==-1){return false;}}else{v--;}_2d8[1]=v;break;case "E":case "e":var days=_2d5["days-format-"+_2d7[l-3]].concat();if(!_2d2.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_2d8[1]=0;case "d":_2d8[2]=v;break;case "a":var am=_2d2.am||_2d5["dayPeriods-format-wide-am"],pm=_2d2.pm||_2d5["dayPeriods-format-wide-pm"];if(!_2d2.strict){var _2de=/\./g;v=v.replace(_2de,"").toLowerCase();am=am.replace(_2de,"").toLowerCase();pm=pm.replace(_2de,"").toLowerCase();}if(_2d2.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_2d8[3]=v;break;case "m":_2d8[4]=v;break;case "s":_2d8[5]=v;break;case "S":_2d8[6]=v;}return true;});var _2df=+_2d8[3];if(amPm==="p"&&_2df<12){_2d8[3]=_2df+12;}else{if(amPm==="a"&&_2df==12){_2d8[3]=0;}}var _2e0=new Date(_2d8[0],_2d8[1],_2d8[2],_2d8[3],_2d8[4],_2d8[5],_2d8[6]);if(_2d2.strict){_2e0.setFullYear(_2d8[0]);}var _2e1=_2d4.join(""),_2e2=_2e1.indexOf("d")!=-1,_2e3=_2e1.indexOf("M")!=-1;if(!_2d9||(_2e3&&_2e0.getMonth()>_2d8[1])||(_2e2&&_2e0.getDate()>_2d8[2])){return null;}if((_2e3&&_2e0.getMonth()<_2d8[1])||(_2e2&&_2e0.getDate()<_2d8[2])){_2e0=dojo.date.add(_2e0,"hour",1);}return _2e0;};function _2c3(_2e4,_2e5,_2e6,_2e7){var _2e8=function(x){return x;};_2e5=_2e5||_2e8;_2e6=_2e6||_2e8;_2e7=_2e7||_2e8;var _2e9=_2e4.match(/(''|[^'])+/g),_2ea=_2e4.charAt(0)=="'";dojo.forEach(_2e9,function(_2eb,i){if(!_2eb){_2e9[i]="";}else{_2e9[i]=(_2ea?_2e6:_2e5)(_2eb.replace(/''/g,"'"));_2ea=!_2ea;}});return _2e7(_2e9.join(""));};function _2d0(_2ec,_2ed,_2ee,_2ef){_2ef=dojo.regexp.escapeString(_2ef);if(!_2ee.strict){_2ef=_2ef.replace(" a"," ?a");}return _2ef.replace(/([a-z])\1*/ig,function(_2f0){var s,c=_2f0.charAt(0),l=_2f0.length,p2="",p3="";if(_2ee.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":"1[0-2]|"+p2+"[1-9]";break;case "D":s="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p3+"[1-9][0-9]|"+p2+"[1-9]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s="[1-4][0-9]|5[0-3]|"+p2+"[1-9]";break;case "E":s="\\S+";break;case "h":s="1[0-2]|"+p2+"[1-9]";break;case "k":s="1[01]|"+p2+"\\d";break;case "H":s="1\\d|2[0-3]|"+p2+"\\d";break;case "K":s="1\\d|2[0-4]|"+p2+"[1-9]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_2ee.am||_2ed["dayPeriods-format-wide-am"],pm=_2ee.pm||_2ed["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_2ee.strict){if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_2ec){_2ec.push(_2f0);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _2f1=[];dojo.date.locale.addCustomFormats=function(_2f2,_2f3){_2f1.push({pkg:_2f2,name:_2f3});};dojo.date.locale._getGregorianBundle=function(_2f4){var _2f5={};dojo.forEach(_2f1,function(desc){var _2f6=dojo.i18n.getLocalization(desc.pkg,desc.name,_2f4);_2f5=dojo.mixin(_2f5,_2f6);},this);return _2f5;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_2f7,_2f8){var _2f9,_2fa=dojo.date.locale._getGregorianBundle(_2f8),_2fb=[item,_2f7,type];if(_2f7=="standAlone"){var key=_2fb.join("-");_2f9=_2fa[key];if(_2f9[0]==1){_2f9=undefined;}}_2fb[1]="format";return (_2f9||_2fa[_2fb.join("-")]).concat();};dojo.date.locale.isWeekend=function(_2fc,_2fd){var _2fe=dojo.cldr.supplemental.getWeekend(_2fd),day=(_2fc||new Date()).getDay();if(_2fe.end<_2fe.start){_2fe.end+=7;if(day<_2fe.start){day+=7;}}return day>=_2fe.start&&day<=_2fe.end;};dojo.date.locale._getDayOfYear=function(_2ff){return dojo.date.difference(new Date(_2ff.getFullYear(),0,1,_2ff.getHours()),_2ff)+1;};dojo.date.locale._getWeekOfYear=function(_300,_301){if(arguments.length==1){_301=0;}var _302=new Date(_300.getFullYear(),0,1).getDay(),adj=(_302-_301+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_300)+adj-1)/7);if(_302==_301){week++;}return week;};}if(!dojo._hasResource["dijit.form.DropDownButton"]){dojo._hasResource["dijit.form.DropDownButton"]=true;dojo.provide("dijit.form.DropDownButton");}if(!dojo._hasResource["dijit.Calendar"]){dojo._hasResource["dijit.Calendar"]=true;dojo.provide("dijit.Calendar");dojo.declare("dijit.Calendar",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Calendar.html","<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\" aria-labelledby=\"${id}_year\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" role=\"presentation\"/>\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div dojoType=\"dijit.form.DropDownButton\" dojoAttachPoint=\"monthDropDownButton\"\n\t\t\t\t\tid=\"${id}_mddb\" tabIndex=\"-1\">\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" role=\"presentation\"/>\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut, onmousedown: _onDayMouseDown, onmouseup: _onDayMouseUp\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\" id=\"${id}_year\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n"),widgetsInTemplate:true,value:new Date(""),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",currentFocus:new Date(),baseClass:"dijitCalendar",cssStateNodes:{"decrementMonth":"dijitCalendarArrow","incrementMonth":"dijitCalendarArrow","previousYearLabelNode":"dijitCalendarPreviousYear","nextYearLabelNode":"dijitCalendarNextYear"},_isValidDate:function(_303){return _303&&!isNaN(_303)&&typeof _303=="object"&&_303.toString()!=this.constructor.prototype.value.toString();},setValue:function(_304){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_304);},_getValueAttr:function(){var _305=new this.dateClassObj(this.value);_305.setHours(0,0,0,0);if(_305.getDate()<this.value.getDate()){_305=this.dateFuncObj.add(_305,"hour",1);}return _305;},_setValueAttr:function(_306,_307){if(_306){_306=new this.dateClassObj(_306);}if(this._isValidDate(_306)){if(!this._isValidDate(this.value)||this.dateFuncObj.compare(_306,this.value)){_306.setHours(1,0,0,0);if(!this.isDisabledDate(_306,this.lang)){this._set("value",_306);this.set("currentFocus",_306);if(_307||typeof _307=="undefined"){this.onChange(this.get("value"));this.onValueSelected(this.get("value"));}}}}else{this._set("value",null);this.set("currentFocus",this.currentFocus);}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _308=new this.dateClassObj(this.currentFocus);_308.setDate(1);var _309=_308.getDay(),_30a=this.dateFuncObj.getDaysInMonth(_308),_30b=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_308,"month",-1)),_30c=new this.dateClassObj(),_30d=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_30d>_309){_30d-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_30e,i){i+=_30d;var date=new this.dateClassObj(_308),_30f,_310="dijitCalendar",adj=0;if(i<_309){_30f=_30b-_309+i+1;adj=-1;_310+="Previous";}else{if(i>=(_309+_30a)){_30f=i-_309-_30a+1;adj=1;_310+="Next";}else{_30f=i-_309+1;_310+="Current";}}if(adj){date=this.dateFuncObj.add(date,"month",adj);}date.setDate(_30f);if(!this.dateFuncObj.compare(date,_30c,"date")){_310="dijitCalendarCurrentDate "+_310;}if(this._isSelectedDate(date,this.lang)){_310="dijitCalendarSelectedDate "+_310;}if(this.isDisabledDate(date,this.lang)){_310="dijitCalendarDisabledDate "+_310;}var _311=this.getClassForDate(date,this.lang);if(_311){_310=_311+" "+_310;}_30e.className=_310+"Month dijitCalendarDateTemplate";_30e.dijitDateValue=date.valueOf();dojo.attr(_30e,"dijitDateValue",date.valueOf());var _312=dojo.query(".dijitCalendarDateLabel",_30e)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();this._setText(_312,text);},this);var _313=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_308);this.monthDropDownButton.dropDown.set("months",_313);this.monthDropDownButton.containerNode.innerHTML=(dojo.isIE==6?"":"<div class='dijitSpacer'>"+this.monthDropDownButton.dropDown.domNode.innerHTML+"</div>")+"<div class='dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'>"+_313[_308.getMonth()]+"</div>";var y=_308.getFullYear()-1;var d=new this.dateClassObj();dojo.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],this.dateLocaleModule.format(d,{selector:"year",locale:this.lang}));},this);},goToToday:function(){this.set("value",new this.dateClassObj());},constructor:function(args){var _314=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_314,false);this.datePackage=args.datePackage||this.datePackage;this.dateFuncObj=dojo.getObject(this.datePackage,false);this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);},postMixInProperties:function(){if(isNaN(this.value)){delete this.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _315=dojo.hitch(this,function(_316,n){var _317=dojo.query(_316,this.domNode)[0];for(var i=0;i<n;i++){_317.parentNode.appendChild(_317.cloneNode(true));}});_315(".dijitCalendarDayLabelTemplate",6);_315(".dijitCalendarDateTemplate",6);_315(".dijitCalendarWeekTemplate",5);var _318=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);var _319=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_31a,i){this._setText(_31a,_318[(i+_319)%7]);},this);var _31b=new this.dateClassObj(this.currentFocus);this.monthDropDownButton.dropDown=new dijit.Calendar._MonthDropDown({id:this.id+"_mdd",onChange:dojo.hitch(this,"_onMonthSelect")});this.set("currentFocus",_31b,false);var _31c=this;var _31d=function(_31e,_31f,adj){_31c._connects.push(dijit.typematic.addMouseListener(_31c[_31e],_31c,function(_320){if(_320>=0){_31c._adjustDisplay(_31f,adj);}},0.8,500));};_31d("incrementMonth","month",1);_31d("decrementMonth","month",-1);_31d("nextYearLabelNode","year",1);_31d("previousYearLabelNode","year",-1);},_adjustDisplay:function(part,_321){this._setCurrentFocusAttr(this.dateFuncObj.add(this.currentFocus,part,_321));},_setCurrentFocusAttr:function(date,_322){var _323=this.currentFocus,_324=_323?dojo.query("[dijitDateValue="+_323.valueOf()+"]",this.domNode)[0]:null;date=new this.dateClassObj(date);date.setHours(1,0,0,0);this._set("currentFocus",date);this._populateGrid();var _325=dojo.query("[dijitDateValue="+date.valueOf()+"]",this.domNode)[0];_325.setAttribute("tabIndex",this.tabIndex);if(this._focused||_322){_325.focus();}if(_324&&_324!=_325){if(dojo.isWebKit){_324.setAttribute("tabIndex","-1");}else{_324.removeAttribute("tabIndex");}}},focus:function(){this._setCurrentFocusAttr(this.currentFocus,true);},_onMonthSelect:function(_326){this.currentFocus=this.dateFuncObj.add(this.currentFocus,"month",_326-this.currentFocus.getMonth());this._populateGrid();},_onDayClick:function(evt){dojo.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.set("value",node.dijitDateValue);}},_onDayMouseOver:function(evt){var node=dojo.hasClass(evt.target,"dijitCalendarDateLabel")?evt.target.parentNode:evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}if(evt.relatedTarget&&evt.relatedTarget.parentNode==this._currentNode){return;}var cls="dijitCalendarHoveredDate";if(dojo.hasClass(this._currentNode,"dijitCalendarActiveDate")){cls+=" dijitCalendarActiveDate";}dojo.removeClass(this._currentNode,cls);this._currentNode=null;},_onDayMouseDown:function(evt){var node=evt.target.parentNode;if(node&&node.dijitDateValue){dojo.addClass(node,"dijitCalendarActiveDate");this._currentNode=node;}},_onDayMouseUp:function(evt){var node=evt.target.parentNode;if(node&&node.dijitDateValue){dojo.removeClass(node,"dijitCalendarActiveDate");}},handleKey:function(evt){var dk=dojo.keys,_327=-1,_328,_329=this.currentFocus;switch(evt.keyCode){case dk.RIGHT_ARROW:_327=1;case dk.LEFT_ARROW:_328="day";if(!this.isLeftToRight()){_327*=-1;}break;case dk.DOWN_ARROW:_327=1;case dk.UP_ARROW:_328="week";break;case dk.PAGE_DOWN:_327=1;case dk.PAGE_UP:_328=evt.ctrlKey||evt.altKey?"year":"month";break;case dk.END:_329=this.dateFuncObj.add(_329,"month",1);_328="day";case dk.HOME:_329=new this.dateClassObj(_329);_329.setDate(1);break;case dk.ENTER:case dk.SPACE:this.set("value",this.currentFocus);break;default:return true;}if(_328){_329=this.dateFuncObj.add(_329,_328,_327);}this._setCurrentFocusAttr(_329);return false;},_onKeyPress:function(evt){if(!this.handleKey(evt)){dojo.stopEvent(evt);}},onValueSelected:function(date){},onChange:function(date){},_isSelectedDate:function(_32a,_32b){return this._isValidDate(this.value)&&!this.dateFuncObj.compare(_32a,this.value,"date");},isDisabledDate:function(_32c,_32d){},getClassForDate:function(_32e,_32f){}});dojo.declare("dijit.Calendar._MonthDropDown",[dijit._Widget,dijit._Templated],{months:[],templateString:"<div class='dijitCalendarMonthMenu dijitMenu' "+"dojoAttachEvent='onclick:_onClick,onmouseover:_onMenuHover,onmouseout:_onMenuHover'></div>",_setMonthsAttr:function(_330){this.domNode.innerHTML=dojo.map(_330,function(_331,idx){return _331?"<div class='dijitCalendarMonthLabel' month='"+idx+"'>"+_331+"</div>":"";}).join("");},_onClick:function(evt){this.onChange(dojo.attr(evt.target,"month"));},onChange:function(_332){},_onMenuHover:function(evt){dojo.toggleClass(evt.target,"dijitCalendarMonthLabelHover",evt.type=="mouseover");}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:dojo.cache("dijit.form","templates/TextBox.html","<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),_singleNodeTemplate:"<input class=\"dijit dijitReset dijitLeft dijitInputField\" dojoAttachPoint=\"textbox,focusNode\" autocomplete=\"off\" type=\"${type}\" ${!nameAttrSetting} />",_buttonInputDisabled:dojo.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var type=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==dijit.form.TextBox.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=dojo.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(v));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this._focused&&!this.textbox.value)?"":"none";}},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_333,_334,_335){var _336;if(_333!==undefined){_336=this.filter(_333);if(typeof _335!="string"){if(_336!==null&&((typeof _336!="number")||!isNaN(_336))){_335=this.filter(this.format(_336,this.constraints));}else{_335="";}}}if(_335!=null&&_335!=undefined&&((typeof _335)!="number"||!isNaN(_335))&&this.textbox.value!=_335){this.textbox.value=_335;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_336,_334]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_337){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_337);},_setDisplayedValueAttr:function(_338){if(_338===null||_338===undefined){_338="";}else{if(typeof _338!="string"){_338=String(_338);}}this.textbox.value=_338;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_339,_33a){return ((_339==null||_339==undefined)?"":(_339.toString?_339.toString():_339));},parse:function(_33b,_33c){return _33b;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _33d=this;setTimeout(function(){_33d._handleOnChange(_33d.get("value"),false);},0);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){if(dojo.isIE){setTimeout(dojo.hitch(this,function(){var s=dojo.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _33e=this.domNode.getElementsByTagName("INPUT");if(_33e){for(var i=0;i<_33e.length;i++){_33e[i].style.fontFamily=ff;}}}}}),0);}this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput","_onInput");}else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput");}},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}if(this.selectOnClick&&dojo.isMoz){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}this._updatePlaceHolder();},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var _33f;if(dojo.isIE){var _340=dojo.doc.selection.createRange();var _341=_340.parentElement();_33f=_341==this.textbox&&_340.text.length==0;}else{_33f=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_33f){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_342,_343,stop){var _344=dojo.global;var _345=dojo.doc;_342=dojo.byId(_342);if(isNaN(_343)){_343=0;}if(isNaN(stop)){stop=_342.value?_342.value.length:0;}dijit.focus(_342);if(_345["selection"]&&dojo.body()["createTextRange"]){if(_342.createTextRange){var r=_342.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_343);r.moveEnd("character",stop-_343);r.select();}}else{if(_344["getSelection"]){if(_342.setSelectionRange){_342.setSelectionRange(_343,stop);}}}};}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_346,_347,_348,rtl){if(this.aroundNode&&this.aroundNode===_347){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_346;var pos=dijit.placeOnScreenAroundElement(this.domNode,_347,dijit.getPopupAroundAlignment((_348&&_348.length)?_348:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_347;},orient:function(node,_349,_34a,_34b,_34c){this.connectorNode.style.top="";var _34d=_34b.w-this.connectorNode.offsetWidth;node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_349+"-"+_34a];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _34e=Math.min((Math.max(_34d,1)),size.w);var _34f=_34e<size.w;this.domNode.style.width=_34e+"px";if(_34f){this.containerNode.style.overflow="auto";var _350=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_350>_34e){_350=_350+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_350+"px";}}if(_34a.charAt(0)=="B"&&_349.charAt(0)=="B"){var mb=dojo.marginBox(node);var _351=this.connectorNode.offsetHeight;if(mb.h>_34b.h){var _352=_34b.h-(_34c.h/2)-(_351/2);this.connectorNode.style.top=_352+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_34c.h/2-_351/2,0),mb.h-_351)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_34d);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_353){if(this._onDeck&&this._onDeck[1]==_353){this._onDeck=null;}else{if(this.aroundNode===_353){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_354,_355,_356,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_354,_355,_356,rtl);};dijit.hideTooltip=function(_357){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_357);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_358){dojo.forEach(this._connections||[],function(_359){dojo.forEach(_359,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_358)?_358:(_358?[_358]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_358);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _35a=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_35a);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_35b){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_35b,this.position,!this.isLeftToRight());this._connectNode=_35b;this.onShow(_35b,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_35c,_35d){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(_35e){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_35f,_360){return (new RegExp("^(?:"+this.regExpGen(_360)+")"+(this.required?"":"?")+"$")).test(_35f)&&(!this.required||!this._isEmpty(_35f))&&(this._isEmpty(_35f)||this.parse(_35f,_360)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_361){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_362){return (this.trim?/^\s*$/:/^$/).test(_362);},getErrorMessage:function(_363){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_364){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_365){var _366="";var _367=this.disabled||this.isValid(_365);if(_367){this._maskValidSubsetError=true;}var _368=this._isEmpty(this.textbox.value);var _369=!_367&&_365&&this._isValidSubset();this._set("state",_367?"":(((((!this._hasBeenBlurred||_365)&&_368)||_369)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_367?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_365&&_369;_366=this.getErrorMessage(_365);}else{if(this.state=="Incomplete"){_366=this.getPromptMessage(_365);this._maskValidSubsetError=!this._hasBeenBlurred||_365;}else{if(_368){_366=this.getPromptMessage(_365);}}}this.set("message",_366);return _367;},displayMessage:function(_36a){dijit.hideTooltip(this.domNode);if(_36a&&this._focused){dijit.showTooltip(_36a,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_36b){if(!_36b.locale&&this.lang){_36b.locale=this.lang;}this._set("constraints",_36b);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _36c="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_36c+=re;break;case ")":_36c+="|$)";break;default:_36c+="(?:"+re+"|$)";break;}});}try{"".search(_36c);}catch(e){_36c=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_36c+")$";},postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}if(!this.invalidMessage){this.invalidMessage=this.promptMessage;}if(this.missingMessage=="$_unset_$"){this.missingMessage=this.messages.missingMessage;}if(!this.missingMessage){this.missingMessage=this.invalidMessage;}this._setConstraintsAttr(this.constraints);},_setDisabledAttr:function(_36d){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_36e){this._set("required",_36e);dijit.setWaiState(this.focusNode,"required",_36e);this._refreshState();},_setMessageAttr:function(_36f){this._set("message",_36f);this.displayMessage(_36f);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);},_onBlur:function(){this.displayMessage("");this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_370){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.get("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_371,_372){return ("min" in _372?(this.compare(_371,_372.min)>=0):true)&&("max" in _372?(this.compare(_371,_372.max)<=0):true);},isInRange:function(_373){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _374=false;var _375=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_374=(typeof min=="number")&&min<0;}if("max" in this.constraints){var max=this.constraints.max;max=this.compare(val,((typeof max!="number")||max>0)?max:0);_375=(typeof max=="number")&&max>0;}return _374||_375;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_376){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_376));},getErrorMessage:function(_377){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_377)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},_setConstraintsAttr:function(_378){this.inherited(arguments);if(this.focusNode){if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}else{dijit.removeWaiState(this.focusNode,"valuemin");}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}else{dijit.removeWaiState(this.focusNode,"valuemax");}}},_setValueAttr:function(_379,_37a){dijit.setWaiState(this.focusNode,"valuenow",_379);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){dojo._hasResource["dijit.form._DateTimeTextBox"]=true;dojo.provide("dijit.form._DateTimeTextBox");new Date("X");dojo.declare("dijit.form._DateTimeTextBox",[dijit.form.RangeBoundTextBox,dijit._HasDropDown],{templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),hasDownArrow:true,openOnClick:true,regExpGen:dojo.date.locale.regexp,datePackage:"dojo.date",compare:function(val1,val2){var _37b=this._isInvalidDate(val1);var _37c=this._isInvalidDate(val2);return _37b?(_37c?0:-1):(_37c?1:dojo.date.compare(val1,val2,this._selector));},forceWidth:true,format:function(_37d,_37e){if(!_37d){return "";}return this.dateLocaleModule.format(_37d,_37e);},"parse":function(_37f,_380){return this.dateLocaleModule.parse(_37f,_380)||(this._isEmpty(_37f)?null:undefined);},serialize:function(val,_381){if(val.toGregorian){val=val.toGregorian();}return dojo.date.stamp.toISOString(val,_381);},dropDownDefaultValue:new Date(),value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){var _382=args.datePackage?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_382,false);this.value=new this.dateClassObj("");this.datePackage=args.datePackage||this.datePackage;this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);this.regExpGen=this.dateLocaleModule.regexp;this._invalidDate=dijit.form._DateTimeTextBox.prototype.value.toString();},buildRendering:function(){this.inherited(arguments);if(!this.hasDownArrow){this._buttonNode.style.display="none";}if(this.openOnClick||!this.hasDownArrow){this._buttonNode=this.domNode;this.baseClass+=" dijitComboBoxOpenOnClick";}},_setConstraintsAttr:function(_383){_383.selector=this._selector;_383.fullYear=true;var _384=dojo.date.stamp.fromISOString;if(typeof _383.min=="string"){_383.min=_384(_383.min);}if(typeof _383.max=="string"){_383.max=_384(_383.max);}this.inherited(arguments);},_isInvalidDate:function(_385){return !_385||isNaN(_385)||typeof _385!="object"||_385.toString()==this._invalidDate;},_setValueAttr:function(_386,_387,_388){if(_386!==undefined){if(typeof _386=="string"){_386=dojo.date.stamp.fromISOString(_386);}if(this._isInvalidDate(_386)){_386=null;}if(_386 instanceof Date&&!(this.dateClassObj instanceof Date)){_386=new this.dateClassObj(_386);}}this.inherited(arguments);if(this.value instanceof Date){this.filterString="";}if(this.dropDown){this.dropDown.set("value",_386,false);}},_set:function(attr,_389){if(attr=="value"&&this.value instanceof Date&&this.compare(_389,this.value)==0){return;}this.inherited(arguments);},_setDropDownDefaultValueAttr:function(val){if(this._isInvalidDate(val)){val=new this.dateClassObj();}this.dropDownDefaultValue=val;},openDropDown:function(_38a){if(this.dropDown){this.dropDown.destroy();}var _38b=dojo.getObject(this.popupClass,false),_38c=this,_38d=this.get("value");this.dropDown=new _38b({onChange:function(_38e){_38c.set("value",_38e,true);},id:this.id+"_popup",dir:_38c.dir,lang:_38c.lang,value:_38d,currentFocus:!this._isInvalidDate(_38d)?_38d:this.dropDownDefaultValue,constraints:_38c.constraints,filterString:_38c.filterString,datePackage:_38c.datePackage,isDisabledDate:function(date){return !_38c.rangeCheck(date,_38c.constraints);}});this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_38f,_390){this._setValueAttr(this.parse(_38f,this.constraints),_390,_38f);}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitComboBox dijitDateTextBox",popupClass:"dijit.Calendar",_selector:"date",value:new Date("")});}if(!dojo._hasResource["dijit._TimePicker"]){dojo._hasResource["dijit._TimePicker"]=true;dojo.provide("dijit._TimePicker");dojo.declare("dijit._TimePicker",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/TimePicker.html","<div id=\"widget_${id}\" class=\"dijitMenu\"\n    ><div dojoAttachPoint=\"upArrow\" class=\"dijitButtonNode dijitUpArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div></div\n    ><div dojoAttachPoint=\"timeMenu,focusNode\" dojoAttachEvent=\"onclick:_onOptionSelected,onmouseover,onmouseout\"></div\n    ><div dojoAttachPoint=\"downArrow\" class=\"dijitButtonNode dijitDownArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div></div\n></div>\n"),baseClass:"dijitTimePicker",clickableIncrement:"T00:15:00",visibleIncrement:"T01:00:00",visibleRange:"T05:00:00",value:new Date(),_visibleIncrement:2,_clickableIncrement:1,_totalIncrements:10,constraints:{},serialize:dojo.date.stamp.toISOString,setValue:function(_391){dojo.deprecated("dijit._TimePicker:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_391);},_setValueAttr:function(date){this._set("value",date);this._showText();},_setFilterStringAttr:function(val){this._set("filterString",val);this._showText();},isDisabledDate:function(_392,_393){return false;},_getFilteredNodes:function(_394,_395,_396,_397){var _398=[],_399=_397?_397.date:this._refDate,n,i=_394,max=this._maxIncrement+Math.abs(i),chk=_396?-1:1,dec=_396?1:0,inc=1-dec;do{i-=dec;n=this._createOption(i);if(n){if((_396&&n.date>_399)||(!_396&&n.date<_399)){break;}_398[_396?"unshift":"push"](n);_399=n.date;}i+=inc;}while(_398.length<_395&&(i*chk)<max);return _398;},_showText:function(){var _39a=dojo.date.stamp.fromISOString;this.timeMenu.innerHTML="";this._clickableIncrementDate=_39a(this.clickableIncrement);this._visibleIncrementDate=_39a(this.visibleIncrement);this._visibleRangeDate=_39a(this.visibleRange);var _39b=function(date){return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();},_39c=_39b(this._clickableIncrementDate),_39d=_39b(this._visibleIncrementDate),_39e=_39b(this._visibleRangeDate),time=(this.value||this.currentFocus).getTime();this._refDate=new Date(time-time%(_39c*1000));this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._totalIncrements=_39e/_39c;this._visibleIncrement=_39d/_39c;this._maxIncrement=(60*60*24)/_39c;var _39f=Math.min(this._totalIncrements,10),_3a0=this._getFilteredNodes(0,(_39f>>1)+1,false),_3a1=[],_3a2=_39f-_3a0.length,_3a3=this._getFilteredNodes(0,_3a2,true,_3a0[0]);if(_3a3.length<_3a2&&_3a0.length>0){_3a1=this._getFilteredNodes(_3a0.length,_3a2-_3a3.length,false,_3a0[_3a0.length-1]);}dojo.forEach(_3a3.concat(_3a0,_3a1),function(n){this.timeMenu.appendChild(n);},this);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this._setConstraintsAttr(this.constraints);},_setConstraintsAttr:function(_3a4){dojo.mixin(this,_3a4);if(!_3a4.locale){_3a4.locale=this.lang;}},postCreate:function(){this.connect(this.timeMenu,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addMouseListener(this.upArrow,this,"_onArrowUp",33,250));this._connects.push(dijit.typematic.addMouseListener(this.downArrow,this,"_onArrowDown",33,250));this.inherited(arguments);},_buttonMouse:function(e){dojo.toggleClass(e.currentTarget,e.currentTarget==this.upArrow?"dijitUpArrowHover":"dijitDownArrowHover",e.type=="mouseenter"||e.type=="mouseover");},_createOption:function(_3a5){var date=new Date(this._refDate);var _3a6=this._clickableIncrementDate;date.setHours(date.getHours()+_3a6.getHours()*_3a5,date.getMinutes()+_3a6.getMinutes()*_3a5,date.getSeconds()+_3a6.getSeconds()*_3a5);if(this.constraints.selector=="time"){date.setFullYear(1970,0,1);}var _3a7=dojo.date.locale.format(date,this.constraints);if(this.filterString&&_3a7.toLowerCase().indexOf(this.filterString)!==0){return null;}var div=dojo.create("div",{"class":this.baseClass+"Item"});div.date=date;div.index=_3a5;dojo.create("div",{"class":this.baseClass+"ItemInner",innerHTML:_3a7},div);if(_3a5%this._visibleIncrement<1&&_3a5%this._visibleIncrement>-1){dojo.addClass(div,this.baseClass+"Marker");}else{if(!(_3a5%this._clickableIncrement)){dojo.addClass(div,this.baseClass+"Tick");}}if(this.isDisabledDate(date)){dojo.addClass(div,this.baseClass+"ItemDisabled");}if(this.value&&!dojo.date.compare(this.value,date,this.constraints.selector)){div.selected=true;dojo.addClass(div,this.baseClass+"ItemSelected");if(dojo.hasClass(div,this.baseClass+"Marker")){dojo.addClass(div,this.baseClass+"MarkerSelected");}else{dojo.addClass(div,this.baseClass+"TickSelected");}this._highlightOption(div,true);}return div;},_onOptionSelected:function(tgt){var _3a8=tgt.target.date||tgt.target.parentNode.date;if(!_3a8||this.isDisabledDate(_3a8)){return;}this._highlighted_option=null;this.set("value",_3a8);this.onChange(_3a8);},onChange:function(time){},_highlightOption:function(node,_3a9){if(!node){return;}if(_3a9){if(this._highlighted_option){this._highlightOption(this._highlighted_option,false);}this._highlighted_option=node;}else{if(this._highlighted_option!==node){return;}else{this._highlighted_option=null;}}dojo.toggleClass(node,this.baseClass+"ItemHover",_3a9);if(dojo.hasClass(node,this.baseClass+"Marker")){dojo.toggleClass(node,this.baseClass+"MarkerHover",_3a9);}else{dojo.toggleClass(node,this.baseClass+"TickHover",_3a9);}},onmouseover:function(e){this._keyboardSelected=null;var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;if(!dojo.hasClass(tgr,this.baseClass+"Item")){return;}this._highlightOption(tgr,true);},onmouseout:function(e){this._keyboardSelected=null;var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;this._highlightOption(tgr,false);},_mouseWheeled:function(e){this._keyboardSelected=null;dojo.stopEvent(e);var _3aa=(dojo.isIE?e.wheelDelta:-e.detail);this[(_3aa>0?"_onArrowUp":"_onArrowDown")]();},_onArrowUp:function(_3ab){if(typeof _3ab=="number"&&_3ab==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _3ac=this.timeMenu.childNodes[0].index;var divs=this._getFilteredNodes(_3ac,1,true,this.timeMenu.childNodes[0]);if(divs.length){this.timeMenu.removeChild(this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);this.timeMenu.insertBefore(divs[0],this.timeMenu.childNodes[0]);}},_onArrowDown:function(_3ad){if(typeof _3ad=="number"&&_3ad==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _3ae=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;var divs=this._getFilteredNodes(_3ae,1,false,this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);if(divs.length){this.timeMenu.removeChild(this.timeMenu.childNodes[0]);this.timeMenu.appendChild(divs[0]);}},handleKey:function(e){var dk=dojo.keys;if(e.charOrCode==dk.DOWN_ARROW||e.charOrCode==dk.UP_ARROW){dojo.stopEvent(e);if(this._highlighted_option&&!this._highlighted_option.parentNode){this._highlighted_option=null;}var _3af=this.timeMenu,tgt=this._highlighted_option||dojo.query("."+this.baseClass+"ItemSelected",_3af)[0];if(!tgt){tgt=_3af.childNodes[0];}else{if(_3af.childNodes.length){if(e.charOrCode==dk.DOWN_ARROW&&!tgt.nextSibling){this._onArrowDown();}else{if(e.charOrCode==dk.UP_ARROW&&!tgt.previousSibling){this._onArrowUp();}}if(e.charOrCode==dk.DOWN_ARROW){tgt=tgt.nextSibling;}else{tgt=tgt.previousSibling;}}}this._highlightOption(tgt,true);this._keyboardSelected=tgt;return false;}else{if(e.charOrCode==dk.ENTER||e.charOrCode===dk.TAB){if(!this._keyboardSelected&&e.charOrCode===dk.TAB){return true;}if(this._highlighted_option){this._onOptionSelected({target:this._highlighted_option});}return e.charOrCode===dk.TAB;}}return undefined;}});}if(!dojo._hasResource["dijit.form.TimeTextBox"]){dojo._hasResource["dijit.form.TimeTextBox"]=true;dojo.provide("dijit.form.TimeTextBox");dojo.declare("dijit.form.TimeTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitComboBox dijitTimeTextBox",popupClass:"dijit._TimePicker",_selector:"time",value:new Date(""),_onKey:function(evt){this.inherited(arguments);switch(evt.keyCode){case dojo.keys.ENTER:case dojo.keys.TAB:case dojo.keys.ESCAPE:case dojo.keys.DOWN_ARROW:case dojo.keys.UP_ARROW:break;default:setTimeout(dojo.hitch(this,function(){var val=this.get("displayedValue");this.filterString=(val&&!this.parse(val,this.constraints))?val.toLowerCase():"";if(this._opened){this.closeDropDown();}this.openDropDown();}),0);}}});}if(!dojo._hasResource["vcldojo.TimeTextBoxEnd"]){dojo._hasResource["vcldojo.TimeTextBoxEnd"]=true;dojo.provide("vcldojo.TimeTextBoxEnd");dojo.declare("vcldojo.TimeTextBoxEnd",[dijit.form.TimeTextBox],{startid:"",invalidMessage:"(initial message)",isValid:function(_3b0){if(dijit.byId(this.startid)){var _3b1=dijit.byId(this.startid).value;if(_3b1!==null&&this.value!==null&&_3b1>=this.value){return false;}}return this.inherited(arguments);},postCreate:function(){if(usenls&&"This must be a valid time that is greater than the start time" in nlsmessages){this.invalidMessage=nlsmessages["This must be a valid time that is greater than the start time"];}else{this.invalidMessage="This must be a valid time that is greater than the start time";}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.SimpleTextarea"]){dojo._hasResource["dijit.form.SimpleTextarea"]=true;dojo.provide("dijit.form.SimpleTextarea");dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextBox dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.textbox,"dijitTextAreaCols");}},filter:function(_3b2){if(_3b2){_3b2=_3b2.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _3b3=parseInt(this.maxLength);var _3b4=this.textbox.value.replace(/\r/g,"");var _3b5=_3b4.length-_3b3;if(_3b5>0){if(e){dojo.stopEvent(e);}var _3b6=this.textbox;if(_3b6.selectionStart){var pos=_3b6.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_3b4.substring(0,pos-_3b5-cr)+_3b4.substring(pos-cr);_3b6.setSelectionRange(pos-_3b5,pos-_3b5);}else{if(dojo.doc.selection){_3b6.focus();var _3b7=dojo.doc.selection.createRange();_3b7.moveStart("character",-_3b5);_3b7.text="";_3b7.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]){dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]=true;dojo.provide("dijit.form._ExpandingTextAreaMixin");var needsHelpShrinking;dojo.declare("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);var _3b8=this.textbox;if(needsHelpShrinking==undefined){var te=dojo.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},dojo.body(),"last");needsHelpShrinking=te.scrollHeight>=te.clientHeight;dojo.body().removeChild(te);}this.connect(_3b8,"onresize","_resizeLater");this.connect(_3b8,"onfocus","_resizeLater");_3b8.style.overflowY="hidden";},startup:function(){this.inherited(arguments);this._resizeLater();},_onInput:function(e){this.inherited(arguments);this.resize();},_estimateHeight:function(){var _3b9=this.textbox;_3b9.rows=(_3b9.value.match(/\n/g)||[]).length+1;},_resizeLater:function(){this.defer("resize");},resize:function(){var _3ba=this.textbox;function _3bb(){var _3bc=false;if(_3ba.value===""){_3ba.value=" ";_3bc=true;}var sh=_3ba.scrollHeight;if(_3bc){_3ba.value="";}return sh;};if(_3ba.style.overflowY=="hidden"){_3ba.scrollTop=0;}if(this.busyResizing){return;}this.busyResizing=true;if(_3bb()||_3ba.offsetHeight){var newH=_3bb()+Math.max(_3ba.offsetHeight-_3ba.clientHeight,0);var _3bd=newH+"px";if(_3bd!=_3ba.style.height){_3ba.style.height=_3bd;_3ba.rows=1;}if(needsHelpShrinking){var _3be=_3bb(),_3bf=_3be,_3c0=_3ba.style.minHeight,_3c1=4,_3c2,_3c3=_3ba.scrollTop;_3ba.style.minHeight=_3bd;_3ba.style.height="auto";while(newH>0){_3ba.style.minHeight=Math.max(newH-_3c1,4)+"px";_3c2=_3bb();var _3c4=_3bf-_3c2;newH-=_3c4;if(_3c4<_3c1){break;}_3bf=_3c2;_3c1<<=1;}_3ba.style.height=newH+"px";_3ba.style.minHeight=_3c0;_3ba.scrollTop=_3c3;}_3ba.style.overflowY=_3bb()>_3ba.clientHeight?"auto":"hidden";if(_3ba.style.overflowY=="hidden"){_3ba.scrollTop=0;}}else{this._estimateHeight();}this.busyResizing=false;}});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",[dijit.form.SimpleTextarea,dijit.form._ExpandingTextAreaMixin],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});}});}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_3c5,_3c6){var _3c7=[];function _3c8(attr,dir,comp,s){return function(_3c9,_3ca){var a=s.getValue(_3c9,attr);var b=s.getValue(_3ca,attr);return dir*comp(a,b);};};var _3cb;var map=_3c6.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_3c5.length;i++){_3cb=_3c5[i];var attr=_3cb.attribute;if(attr){var dir=(_3cb.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_3c7.push(_3c8(attr,dir,comp,_3c6));}}return function(rowA,rowB){var i=0;while(i<_3c7.length){var ret=_3c7[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_3cc){_3cc=_3cc||{};if(!_3cc.store){_3cc.store=this;}var self=this;var _3cd=function(_3ce,_3cf){if(_3cf.onError){var _3d0=_3cf.scope||dojo.global;_3cf.onError.call(_3d0,_3ce,_3cf);}};var _3d1=function(_3d2,_3d3){var _3d4=_3d3.abort||null;var _3d5=false;var _3d6=_3d3.start?_3d3.start:0;var _3d7=(_3d3.count&&(_3d3.count!==Infinity))?(_3d6+_3d3.count):_3d2.length;_3d3.abort=function(){_3d5=true;if(_3d4){_3d4.call(_3d3);}};var _3d8=_3d3.scope||dojo.global;if(!_3d3.store){_3d3.store=self;}if(_3d3.onBegin){_3d3.onBegin.call(_3d8,_3d2.length,_3d3);}if(_3d3.sort){_3d2.sort(dojo.data.util.sorter.createSortFunction(_3d3.sort,self));}if(_3d3.onItem){for(var i=_3d6;(i<_3d2.length)&&(i<_3d7);++i){var item=_3d2[i];if(!_3d5){_3d3.onItem.call(_3d8,item,_3d3);}}}if(_3d3.onComplete&&!_3d5){var _3d9=null;if(!_3d3.onItem){_3d9=_3d2.slice(_3d6,_3d7);}_3d3.onComplete.call(_3d8,_3d9,_3d3);}};this._fetchItems(_3cc,_3d1,_3cd);return _3cc;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_3da,_3db){var rxp="^";var c=null;for(var i=0;i<_3da.length;i++){c=_3da.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_3da.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_3db){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",dijit._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(_3dc){var pos=0;if(typeof (_3dc.selectionStart)=="number"){pos=_3dc.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_3dc.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_3dd,_3de){_3de=parseInt(_3de);dijit.selectInputText(_3dd,_3de,_3de);},_setDisabledAttr:function(_3df){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_3df);},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null;}if(this._fetchHandle){if(this._fetchHandle.abort){this._fetchHandle.abort();}this._fetchHandle=null;}},_onInput:function(evt){if(!this.searchTimer&&(evt.type=="paste"||evt.type=="input")&&this._lastInput!=this.textbox.value){this.searchTimer=setTimeout(dojo.hitch(this,function(){this._onKey({charOrCode:229});}),100);}this.inherited(arguments);},_onKey:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){return;}var _3e0=false;var pw=this.dropDown;var dk=dojo.keys;var _3e1=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_3e1=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(this._opened){this._announceOption(_3e1);}dojo.stopEvent(evt);break;case dk.ENTER:if(_3e1){if(_3e1==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_3e1==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}if(this._opened||this._fetchHandle){evt.preventDefault();}case dk.TAB:var _3e2=this.get("displayedValue");if(pw&&(_3e2==pw._messages["previousMessage"]||_3e2==pw._messages["nextMessage"])){break;}if(_3e1){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_3e1){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_3e0=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_3e0=true;break;default:_3e0=typeof key=="string"||key==229;}if(_3e0){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _3e3=this.ignoreCase?"toLowerCase":"substr";if(text[_3e3](0).indexOf(this.focusNode.value[_3e3](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_3e4,_3e5){this._fetchHandle=null;if(this.disabled||this.readOnly||(_3e5.query[this.searchAttr]!=this._lastQuery)){return;}var _3e6=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_3e4.length&&!this._maxOptions){this.closeDropDown();return;}_3e5._maxOptions=this._maxOptions;var _3e7=this.dropDown.createOptions(_3e4,_3e5,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_3e5.direction){if(1==_3e5.direction){this.dropDown.highlightFirstOption();}else{if(-1==_3e5.direction){this.dropDown.highlightLastOption();}}if(_3e6){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_3e5.query[this.searchAttr])){this._announceOption(_3e7[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_3e8){this._startSearchAll();},isLoaded:function(){return false;},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);dijit.setWaiState(this.domNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _3e9=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_3e9==pw._messages["previousMessage"]||_3e9==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_3e9);}else{if(this.value!=this._lastValueReported){dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},_setItemAttr:function(item,_3ea,_3eb){if(!_3eb){_3eb=this.store.getValue(item,this.searchAttr);}var _3ec=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_3eb;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_3ec,_3ea,_3eb);},_announceOption:function(node){if(!node){return;}var _3ed;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_3ed=node.innerHTML;this.item=undefined;this.value="";}else{_3ed=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_3ed);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_3ed);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_startSearchAll:function(){this._startSearch("");},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this.dropDown){var _3ee=this.id+"_popup",_3ef=dojo.getObject(this.dropDownClass,false);this.dropDown=new _3ef({onChange:dojo.hitch(this,this._selectOption),id:_3ee,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_3ee);}var _3f0=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_3f0[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_3f1,_3f2){this.searchTimer=null;var _3f3={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_3f1,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_3f4){_3f2._fetchHandle=null;console.error("dijit.form.ComboBox: "+_3f4);_3f2.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_3f3,_3f2.fetchProperties);this._fetchHandle=_3f2.store.fetch(_3f3);var _3f5=function(_3f6,_3f7){_3f6.start+=_3f6.count*_3f7;_3f6.direction=_3f7;this._fetchHandle=this.store.fetch(_3f6);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_3f5,this._fetchHandle);},_3f0,this),this.searchDelay);},_setMaxOptions:function(size,_3f8){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _3f9=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_3f9);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _3fa=this._getValueField();this.value=this.store.getValue(item,_3fa);}}}this.inherited(arguments);},postCreate:function(){var _3fb=dojo.query("label[for=\""+this.id+"\"]");if(_3fb.length){_3fb[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_3fb[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _3fc=this.labelFunc(item,this.store),_3fd=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_3fc=this.doHighlight(_3fc,this._escapeHtml(this._lastInput));_3fd="html";}return {html:_3fd=="html",label:_3fc};},doHighlight:function(_3fe,find){var _3ff=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_3fe).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_3ff),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_400){return _400.getValue(item,this.labelAttr||this.searchAttr).toString();}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];},_setValueAttr:function(_401){this.value=_401;this.onChange(_401);},onChange:function(_402){},onPage:function(_403){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_404){var _405=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _406=_404(item);if(_406.html){_405.innerHTML=_406.label;}else{_405.appendChild(dojo.doc.createTextNode(_406.label));}if(_405.innerHTML==""){_405.innerHTML="&nbsp;";}_405.item=item;return _405;},createOptions:function(_407,_408,_409){this.previousButton.style.display=(_408.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_407,function(item,i){var _40a=this._createOption(item,_409);dojo.attr(_40a,"id",this.id+i);this.domNode.insertBefore(_40a,this.nextButton);},this);var _40b=false;if(_408._maxOptions&&_408._maxOptions!=-1){if((_408.start+_408.count)<_408._maxOptions){_40b=true;}else{if((_408.start+_408.count)>_408._maxOptions&&_408.count==_407.length){_40b=true;}}}else{if(_408.count==_407.length){_40b=true;}}this.nextButton.style.display=_40b?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes;},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}this._blurOptionNode();},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode||!this._highlighted_option){return;}else{if(evt.target==this.previousButton){this._blurOptionNode();this.onPage(-1);}else{if(evt.target==this.nextButton){this._blurOptionNode();this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){var fc=this.domNode.firstChild;this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}else{this.highlightFirstOption();}}dojo.window.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){var _40c=this.domNode.firstChild;var _40d=_40c.nextSibling;this._focusOptionNode(_40d.style.display=="none"?_40c:_40d);dojo.window.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dojo.window.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){if(!this.getHighlightedOption()){var lc=this.domNode.lastChild;this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}else{this.highlightLastOption();}}dojo.window.scrollIntoView(this._highlighted_option);},_page:function(up){var _40e=0;var _40f=this.domNode.scrollTop;var _410=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_40e<_410){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _411=this.domNode.scrollTop;_40e+=(_411-_40f)*(up?-1:1);_40f=_411;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();return false;case dojo.keys.PAGE_DOWN:this.pageDown();return false;case dojo.keys.UP_ARROW:this._highlightPrevOption();return false;case dojo.keys.PAGE_UP:this.pageUp();return false;default:return true;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_412,_413,_414){this._set("item",null);if(!_412){_412="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_412,_413,_414);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;if(root.tagName!="SELECT"&&root.firstChild){root=dojo.query("select",root);if(root.length>0){root=root[0];}else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";root=this.root.firstChild;}this.root=root;}dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_415,_416){return (_415=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_417){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_418,_419){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _41a=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_41b=dojo.query("> option",this.root).filter(function(_41c){return (_41c.innerText||_41c.textContent||"").match(_41a);});if(args.sort){_41b.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_418(_41b,args);},close:function(_41d){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("> option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return typeof si=="number"?dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0]:null;}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{required:true,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened;},isValid:function(){return this.item||(!this.required&&this.get("displayedValue")=="");},_refreshState:function(){if(!this.searchTimer){this.inherited(arguments);}},_callbackSetLabel:function(_41e,_41f,_420){if((_41f&&_41f.query[this.searchAttr]!=this._lastQuery)||(!_41f&&_41e.length&&this.store.getIdentity(_41e[0])!=this._lastQuery)){return;}if(!_41e.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_420||(_420===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_41e[0],_420);}},_openResultList:function(_421,_422){if(_422.query[this.searchAttr]!=this._lastQuery){return;}dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);if(this.item===undefined){this.validate(true);}},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValueAttr:function(_423,_424){if(!this._onChangeActive){_424=null;}this._lastQuery=_423;if(_423===null||_423===""){this._setDisplayedValueAttr("",_424);return;}var self=this;this.store.fetchItemByIdentity({identity:_423,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_424);}});},_setItemAttr:function(item,_425,_426){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_427,_428){if(_427==null){_427="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_428=false;}if(this.store){this.closeDropDown();var _429=dojo.clone(this.query);this._lastQuery=_429[this.searchAttr]=this._getDisplayQueryString(_427);this.textbox.value=_427;this._lastDisplayedValue=_427;this._set("displayedValue",_427);var _42a=this;var _42b={query:_429,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_42c,_42d){_42a._fetchHandle=null;dojo.hitch(_42a,"_callbackSetLabel")(_42c,_42d,_428);},onError:function(_42e){_42a._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_42e);dojo.hitch(_42a,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_42b,this.fetchProperties);this._fetchHandle=this.store.fetch(_42b);}},undo:function(){this.set("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form._Spinner"]){dojo._hasResource["dijit.form._Spinner"]=true;dojo.provide("dijit.form._Spinner");dojo.declare("dijit.form._Spinner",dijit.form.RangeBoundTextBox,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:dojo.cache("dijit.form","templates/Spinner.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitButtonNode dijitSpinnerButtonContainer\"\n\t\t><input class=\"dijitReset dijitInputField dijitSpinnerButtonInner\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t/><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\n\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9650;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9660;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t\t\trole=\"spinbutton\" autocomplete=\"off\" ${!nameAttrSetting}\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{"upArrowNode":"dijitUpArrowButton","downArrowNode":"dijitDownArrowButton"},adjust:function(val,_42f){return val;},_arrowPressed:function(_430,_431,_432){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_431*_432),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_433,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=dojo.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_433==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _434=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_434!==0){var node=this[(_434>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_434,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));}});}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.getObject("number",true,dojo);dojo.number.format=function(_435,_436){_436=dojo.mixin({},_436||{});var _437=dojo.i18n.normalizeLocale(_436.locale),_438=dojo.i18n.getLocalization("dojo.cldr","number",_437);_436.customs=_438;var _439=_436.pattern||_438[(_436.type||"decimal")+"Format"];if(isNaN(_435)||Math.abs(_435)==Infinity){return null;}return dojo.number._applyPattern(_435,_439,_436);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_43a,_43b,_43c){_43c=_43c||{};var _43d=_43c.customs.group,_43e=_43c.customs.decimal,_43f=_43b.split(";"),_440=_43f[0];_43b=_43f[(_43a<0)?1:0]||("-"+_440);if(_43b.indexOf("%")!=-1){_43a*=100;}else{if(_43b.indexOf("‰")!=-1){_43a*=1000;}else{if(_43b.indexOf("¤")!=-1){_43d=_43c.customs.currencyGroup||_43d;_43e=_43c.customs.currencyDecimal||_43e;_43b=_43b.replace(/\u00a4{1,3}/,function(_441){var prop=["symbol","currency","displayName"][_441.length-1];return _43c[prop]||_43c.currency||"";});}else{if(_43b.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _442=dojo.number._numberPatternRE;var _443=_440.match(_442);if(!_443){throw new Error("unable to find a number expression in pattern: "+_43b);}if(_43c.fractional===false){_43c.places=0;}return _43b.replace(_442,dojo.number._formatAbsolute(_43a,_443[0],{decimal:_43e,group:_43d,places:_43c.places,round:_43c.round}));};dojo.number.round=function(_444,_445,_446){var _447=10/(_446||10);return (_447*+_444).toFixed(_445)/_447;};if((0.9).toFixed()==0){(function(){var _448=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _448(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_449,_44a,_44b){_44b=_44b||{};if(_44b.places===true){_44b.places=0;}if(_44b.places===Infinity){_44b.places=6;}var _44c=_44a.split("."),_44d=typeof _44b.places=="string"&&_44b.places.indexOf(","),_44e=_44b.places;if(_44d){_44e=_44b.places.substring(_44d+1);}else{if(!(_44e>=0)){_44e=(_44c[1]||[]).length;}}if(!(_44b.round<0)){_449=dojo.number.round(_449,_44e,_44b.round);}var _44f=String(Math.abs(_449)).split("."),_450=_44f[1]||"";if(_44c[1]||_44b.places){if(_44d){_44b.places=_44b.places.substring(0,_44d);}var pad=_44b.places!==undefined?_44b.places:(_44c[1]&&_44c[1].lastIndexOf("0")+1);if(pad>_450.length){_44f[1]=dojo.string.pad(_450,pad,"0",true);}if(_44e<_450.length){_44f[1]=_450.substr(0,_44e);}}else{if(_44f[1]){_44f.pop();}}var _451=_44c[0].replace(",","");pad=_451.indexOf("0");if(pad!=-1){pad=_451.length-pad;if(pad>_44f[0].length){_44f[0]=dojo.string.pad(_44f[0],pad);}if(_451.indexOf("#")==-1){_44f[0]=_44f[0].substr(_44f[0].length-pad);}}var _452=_44c[0].lastIndexOf(","),_453,_454;if(_452!=-1){_453=_44c[0].length-_452-1;var _455=_44c[0].substr(0,_452);_452=_455.lastIndexOf(",");if(_452!=-1){_454=_455.length-_452-1;}}var _456=[];for(var _457=_44f[0];_457;){var off=_457.length-_453;_456.push((off>0)?_457.substr(off):_457);_457=(off>0)?_457.slice(0,off):"";if(_454){_453=_454;delete _454;}}_44f[0]=_456.reverse().join(_44b.group||",");return _44f.join(_44b.decimal||".");};dojo.number.regexp=function(_458){return dojo.number._parseInfo(_458).regexp;};dojo.number._parseInfo=function(_459){_459=_459||{};var _45a=dojo.i18n.normalizeLocale(_459.locale),_45b=dojo.i18n.getLocalization("dojo.cldr","number",_45a),_45c=_459.pattern||_45b[(_459.type||"decimal")+"Format"],_45d=_45b.group,_45e=_45b.decimal,_45f=1;if(_45c.indexOf("%")!=-1){_45f/=100;}else{if(_45c.indexOf("‰")!=-1){_45f/=1000;}else{var _460=_45c.indexOf("¤")!=-1;if(_460){_45d=_45b.currencyGroup||_45d;_45e=_45b.currencyDecimal||_45e;}}}var _461=_45c.split(";");if(_461.length==1){_461.push("-"+_461[0]);}var re=dojo.regexp.buildGroupRE(_461,function(_462){_462="(?:"+dojo.regexp.escapeString(_462,".")+")";return _462.replace(dojo.number._numberPatternRE,function(_463){var _464={signed:false,separator:_459.strict?_45d:[_45d,""],fractional:_459.fractional,decimal:_45e,exponent:false},_465=_463.split("."),_466=_459.places;if(_465.length==1&&_45f!=1){_465[1]="###";}if(_465.length==1||_466===0){_464.fractional=false;}else{if(_466===undefined){_466=_459.pattern?_465[1].lastIndexOf("0")+1:Infinity;}if(_466&&_459.fractional==undefined){_464.fractional=true;}if(!_459.places&&(_466<_465[1].length)){_466+=","+_465[1].length;}_464.places=_466;}var _467=_465[0].split(",");if(_467.length>1){_464.groupSize=_467.pop().length;if(_467.length>1){_464.groupSize2=_467.pop().length;}}return "("+dojo.number._realNumberRegexp(_464)+")";});},true);if(_460){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_468,_469,_46a,_46b){var prop=["symbol","currency","displayName"][_46a.length-1],_46c=dojo.regexp.escapeString(_459[prop]||_459.currency||"");_469=_469?"[\\s\\xa0]":"";_46b=_46b?"[\\s\\xa0]":"";if(!_459.strict){if(_469){_469+="*";}if(_46b){_46b+="*";}return "(?:"+_469+_46c+_46b+")?";}return _469+_46c+_46b;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_45d,decimal:_45e,factor:_45f};};dojo.number.parse=function(_46d,_46e){var info=dojo.number._parseInfo(_46e),_46f=(new RegExp("^"+info.regexp+"$")).exec(_46d);if(!_46f){return NaN;}var _470=_46f[1];if(!_46f[1]){if(!_46f[2]){return NaN;}_470=_46f[2];info.factor*=-1;}_470=_470.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _470*info.factor;};dojo.number._realNumberRegexp=function(_471){_471=_471||{};if(!("places" in _471)){_471.places=Infinity;}if(typeof _471.decimal!="string"){_471.decimal=".";}if(!("fractional" in _471)||/^0/.test(_471.places)){_471.fractional=[true,false];}if(!("exponent" in _471)){_471.exponent=[true,false];}if(!("eSigned" in _471)){_471.eSigned=[true,false];}var _472=dojo.number._integerRegexp(_471),_473=dojo.regexp.buildGroupRE(_471.fractional,function(q){var re="";if(q&&(_471.places!==0)){re="\\"+_471.decimal;if(_471.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_471.places+"}";}}return re;},true);var _474=dojo.regexp.buildGroupRE(_471.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_471.eSigned})+")";}return "";});var _475=_472+_473;if(_473){_475="(?:(?:"+_475+")|(?:"+_473+"))";}return _475+_474;};dojo.number._integerRegexp=function(_476){_476=_476||{};if(!("signed" in _476)){_476.signed=[true,false];}if(!("separator" in _476)){_476.separator="";}else{if(!("groupSize" in _476)){_476.groupSize=3;}}var _477=dojo.regexp.buildGroupRE(_476.signed,function(q){return q?"[-+]":"";},true);var _478=dojo.regexp.buildGroupRE(_476.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_476.groupSize,grp2=_476.groupSize2;if(grp2){var _479="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_479+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_479;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _477+_478;};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,_setConstraintsAttr:function(_47a){var _47b=typeof _47a.places=="number"?_47a.places:0;if(_47b){_47b++;}if(typeof _47a.max!="number"){_47a.max=9*Math.pow(10,15-_47b);}if(typeof _47a.min!="number"){_47a.min=-9*Math.pow(10,15-_47b);}this.inherited(arguments,[_47a]);if(this.focusNode&&this.focusNode.value&&!isNaN(this.value)){this.set("value",this.value);}},_onFocus:function(){if(this.disabled){return;}var val=this.get("value");if(typeof val=="number"&&!isNaN(val)){var _47c=this.format(val,this.constraints);if(_47c!==undefined){this.textbox.value=_47c;}}this.inherited(arguments);},format:function(_47d,_47e){var _47f=String(_47d);if(typeof _47d!="number"){return _47f;}if(isNaN(_47d)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_47d,_47e))&&_47e.exponent!==false&&/\de[-+]?\d/i.test(_47f)){return _47f;}if(this.editOptions&&this._focused){_47e=dojo.mixin({},_47e,this.editOptions);}return this._formatter(_47d,_47e);},_parser:dojo.number.parse,parse:function(_480,_481){var v=this._parser(_480,dojo.mixin({},_481,(this.editOptions&&this._focused)?this.editOptions:{}));if(this.editOptions&&this._focused&&isNaN(v)){v=this._parser(_480,_481);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_482){return (_482===null||_482===""||_482===undefined)?NaN:this.inherited(arguments);},serialize:function(_483,_484){return (typeof _483!="number"||isNaN(_483))?"":this.inherited(arguments);},_setBlurValue:function(){var val=dojo.hitch(dojo.mixin({},this,{_focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_485,_486,_487){if(_485!==undefined&&_487===undefined){_487=String(_485);if(typeof _485=="number"){if(isNaN(_485)){_487="";}else{if(("rangeCheck" in this&&this.rangeCheck(_485,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_487)){_487=undefined;}}}else{if(!_485){_487="";_485=NaN;}else{_485=undefined;}}}this.inherited(arguments,[_485,_486,_487]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+dojo.number._realNumberRegexp(dojo.mixin({},this.constraints))+"$").test(this.textbox.value))){var n=Number(this.textbox.value);return isNaN(n)?undefined:n;}else{return undefined;}}else{return v;}},isValid:function(_488){if(!this._focused||this._isEmpty(this.textbox.value)){return this.inherited(arguments);}else{var v=this.get("value");if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){return true;}else{return this.inherited(arguments);}}else{return false;}}}});dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{baseClass:"dijitTextBox dijitNumberTextBox"});}if(!dojo._hasResource["dijit.form.NumberSpinner"]){dojo._hasResource["dijit.form.NumberSpinner"]=true;dojo.provide("dijit.form.NumberSpinner");dojo.declare("dijit.form.NumberSpinner",[dijit.form._Spinner,dijit.form.NumberTextBoxMixin],{adjust:function(val,_489){var tc=this.constraints,v=isNaN(val),_48a=!isNaN(tc.max),_48b=!isNaN(tc.min);if(v&&_489!=0){val=(_489>0)?_48b?tc.min:_48a?tc.max:0:_48a?this.constraints.max:_48b?tc.min:0;}var _48c=val+_489;if(v||isNaN(_48c)){return val;}if(_48a&&(_48c>tc.max)){_48c=tc.max;}if(_48b&&(_48c<tc.min)){_48c=tc.min;}return _48c;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!(e.ctrlKey||e.altKey||e.metaKey)&&typeof this.get("value")!="undefined"){var _48d=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(typeof _48d=="number"){this._setValueAttr(_48d,false);}dojo.stopEvent(e);}}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_48e,_48f){var _490=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_48e,function(code){_490[code]=prev;});dojo.forEach(_48f,function(code){_490[code]=next;});_490[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_490[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_491,_492){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_491);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _493=this._getFirstFocusableChild();if(_493){this.focusChild(_493);}},focusLastChild:function(){var _494=this._getLastFocusableChild();if(_494){this.focusChild(_494);}},focusNext:function(){var _495=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_495);},focusPrev:function(){var _496=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_496,true);},focusChild:function(_497,last){if(this.focusedChild&&_497!==this.focusedChild){this._onChildBlur(this.focusedChild);}_497.set("tabIndex",this.tabIndex);_497.focus(last?"end":"start");this._set("focusedChild",_497);},_startupChild:function(_498){_498.set("tabIndex","-1");this.connect(_498,"_onFocus",function(){_498.set("tabIndex",this.tabIndex);});this.connect(_498,"_onBlur",function(){_498.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_499){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_49a,dir){if(_49a){_49a=this._getSiblingOfChild(_49a,dir);}var _49b=this.getChildren();for(var i=0;i<_49b.length;i++){if(!_49a){_49a=_49b[(dir>0)?0:(_49b.length-1)];}if(_49a.isFocusable()){return _49a;}_49a=this._getSiblingOfChild(_49a,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_49c){if(_49c&&!("label" in this.params)){this.set("label",_49c.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _49d=this.id+"_text";dojo.attr(this.containerNode,"id",_49d);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_49d+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_49d);dojo.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(dojo.isIE==8){this.containerNode.focus();}dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_49e){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_49e);},setLabel:function(_49f){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_49f);},setDisabled:function(_4a0){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_4a0);},_setDisabledAttr:function(_4a1){dijit.setWaiState(this.focusNode,"disabled",_4a1?"true":"false");this._set("disabled",_4a1);},_setAccelKeyAttr:function(_4a2){this.accelKeyNode.style.display=_4a2?"":"none";this.accelKeyNode.innerHTML=_4a2;dojo.attr(this.containerNode,"colSpan",_4a2?"1":"2");this._set("accelKey",_4a2);}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _4a3=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_4a3[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_4a4){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_4a4);dijit.setWaiState(this.domNode,"checked",_4a4);this._set("checked",_4a4);},onChange:function(_4a5){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_4a6){_4a6.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_4a7){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _4a8=this._getTopMenu();if(_4a8&&_4a8._isMenuBar){_4a8.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _4a9=this.currentPopup.parentMenu;if(_4a9.focusedChild){_4a9.focusedChild._setSelected(false);}_4a9.focusedChild=this.currentPopup.from_item;_4a9.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _4aa=item.popup;if(_4aa){this._stopPendingCloseTimer(_4aa);_4aa._pendingClose_timer=setTimeout(function(){_4aa._pendingClose_timer=null;if(_4aa.parentMenu){_4aa.parentMenu.currentPopup=null;}dijit.popup.close(_4aa);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_4ab){if(_4ab._pendingClose_timer){clearTimeout(_4ab._pendingClose_timer);_4ab._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _4ac=this.focusedChild;if(!_4ac){return;}var _4ad=_4ac.popup;if(_4ad.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_4ad.parentMenu=this;_4ad.from_item=_4ac;var self=this;dijit.popup.open({parent:this,popup:_4ad,around:_4ac.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_4ac);self._cleanUp();_4ac._setSelected(true);self.focusedChild=_4ac;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_4ad;_4ad.connect(_4ad.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_4ad.focus){_4ad._focus_timer=setTimeout(dojo.hitch(_4ad,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _4ae=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}dijit.popup.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_4af){var win=dojo.window.get(this._iframeContentDocument(_4af))||this._iframeContentDocument(_4af)["__parent__"]||(_4af.name&&dojo.doc.frames[_4af.name])||null;return win;},_iframeContentDocument:function(_4b0){var doc=_4b0.contentDocument||(_4b0.contentWindow&&_4b0.contentWindow.document)||(_4b0.name&&dojo.doc.frames[_4b0.name]&&dojo.doc.frames[_4b0.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _4b1=node,win=this._iframeContentWindow(_4b1);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _4b2={node:node,iframe:_4b1};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_4b2));var _4b3=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_4b1,{x:evt.pageX,y:evt.pageY});}),dojo.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_4b1);}})];});_4b2.connects=cn?_4b3(cn):[];if(_4b1){_4b2.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_4b1);cn=dojo.withGlobal(win,dojo.body);_4b2.connects=_4b3(cn);});if(_4b1.addEventListener){_4b1.addEventListener("load",_4b2.onloadHandler,false);}else{_4b1.attachEvent("onload",_4b2.onloadHandler);}}},unBindDomNode:function(_4b4){var node;try{node=dojo.byId(_4b4);}catch(e){return;}var _4b5="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_4b5)){var bid=dojo.attr(node,_4b5)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _4b6=b.iframe;if(_4b6){if(_4b6.removeEventListener){_4b6.removeEventListener("load",b.onloadHandler,false);}else{_4b6.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_4b5);delete this._bindings[bid];}},_scheduleOpen:function(_4b7,_4b8,_4b9){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_4b7,iframe:_4b8,coords:_4b9});}),1);}},_openMyself:function(args){var _4ba=args.target,_4bb=args.iframe,_4bc=args.coords;if(_4bc){if(_4bb){var od=_4ba.ownerDocument,ifc=dojo.position(_4bb,true),win=this._iframeContentWindow(_4bb),_4bd=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_4bb),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_4bb,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_4bb,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_4bb,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_4bb,cs.borderTopWidth):0);_4bc.x+=ifc.x+left-_4bd.x;_4bc.y+=ifc.y+top-_4bd.y;}}else{_4bc=dojo.position(_4ba,true);_4bc.x+=10;_4bc.y+=10;}var self=this;var _4be=dijit.getFocus(this);function _4bf(){if(self.refocus){dijit.focus(_4be);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_4bc.x,y:_4bc.y,onExecute:_4bf,onCancel:_4bf,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dojox.html.metrics"]){dojo._hasResource["dojox.html.metrics"]=true;dojo.provide("dojox.html.metrics");(function(){var dhm=dojox.html.metrics;dhm.getFontMeasurements=function(){var _4c0={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";dojo.body().appendChild(div);for(var p in _4c0){ds.fontSize=p;_4c0[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _4c0;};var _4c1=null;dhm.getCachedFontMeasurements=function(_4c2){if(_4c2||!_4c1){_4c1=dhm.getFontMeasurements();}return _4c1;};var _4c3=null,_4c4={};dhm.getTextBox=function(text,_4c5,_4c6){var m,s;if(!_4c3){m=_4c3=dojo.doc.createElement("div");var c=dojo.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";dojo.body().appendChild(c);}else{m=_4c3;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_4c5){for(var i in _4c5){if(i in _4c4){continue;}s[i]=_4c5[i];}}if(arguments.length>2&&_4c6){m.className=_4c6;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _4c7={w:16,h:16};dhm.getScrollbar=function(){return {w:_4c7.w,h:_4c7.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_4c8){var f=dhm._fontResizeNode=dojo.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(dojo.isIE){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");dojo.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};dojo.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(dojo.isIE&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});dojo.addOnLoad(function(){try{var n=dojo.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";dojo.body().appendChild(n);_4c7.w=n.offsetWidth-n.clientWidth;_4c7.h=n.offsetHeight-n.clientHeight;dojo.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in dojo.config&&!!dojo.config.fontSizeWatch){dhm.initOnFontResize();}});})();}if(!dojo._hasResource["dojox.grid.util"]){dojo._hasResource["dojox.grid.util"]=true;dojo.provide("dojox.grid.util");(function(){var dgu=dojox.grid.util;dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_4c9,_4ca){if(_4ca>=0){var s=_4c9.style;var v=_4ca+"px";if(_4c9&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_4cb,_4cc,_4cd,_4ce){var evts=(_4ce?_4ce:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_4cc.connect(_4cb,"on"+evts[i],_4cd);}};dgu.removeNode=function(_4cf){_4cf=dojo.byId(_4cf);_4cf&&_4cf.parentNode&&_4cf.parentNode.removeChild(_4cf);return _4cf;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_4d0,_4d1,_4d2){if(_4d0.length<=_4d1){_4d0[_4d1]=_4d2;}else{_4d0.splice(_4d1,0,_4d2);}};dgu.arrayRemove=function(_4d3,_4d4){_4d3.splice(_4d4,1);};dgu.arraySwap=function(_4d5,inI,inJ){var _4d6=_4d5[inI];_4d5[inI]=_4d5[inJ];_4d5[inJ]=_4d6;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _4d7=function(_4d8){var i=0,n,p=_4d8.parentNode;while((n=p.childNodes[i++])){if(n==_4d8){return i-1;}}return -1;};var _4d9=function(_4da){if(!_4da){return;}var _4db=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_4da,true);};var ws=dijit.registry.filter(_4db);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _4dc=function(_4dd){var node=dojo.byId(_4dd);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _4de=function(_4df,_4e0){var _4e1=[];var i=0,n;while((n=_4df.childNodes[i])){i++;if(_4dc(n)==_4e0){_4e1.push(n);}}return _4e1;};var _4e2=function(_4e3){return _4de(_4e3,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_4e4){this.setContentNodes(_4e4);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(_4e5,_4e6,_4e7){switch(arguments.length){case 3:this.rowsPerPage=_4e7;case 2:this.keepRows=_4e6;case 1:this.rowCount=_4e5;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=dojo.hitch(this,"onscroll");}},_getPageCount:function(_4e8,_4e9){return _4e8?(Math.ceil(_4e8/_4e9)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_4ea){this.keepRows=_4ea;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_4eb){this.contentNodes=_4eb;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_4ec){this.invalidateNodes();this.rowCount=_4ec;var _4ed=this.pageCount;if(_4ed===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_4ed){for(var i=_4ed-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_4ed){this.height+=this.defaultPageHeight*(this.pageCount-_4ed-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_4ee){return Boolean(this.getDefaultPageNode(_4ee));},measurePage:function(_4ef){if(this.grid.rowHeight){var _4f0=this.grid.rowHeight+1;return ((_4ef+1)*this.rowsPerPage>this.rowCount?this.rowCount-_4ef*this.rowsPerPage:this.rowsPerPage)*_4f0;}var n=this.getDefaultPageNode(_4ef);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_4f1,_4f2){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_4f1].style.top=_4f2+"px";}},repositionPages:function(_4f3){var _4f4=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_4f4[_4f3];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_4f3):0);for(var p=_4f3+1;p<=last;p++){n=_4f4[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_4f5){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_4f5]);}},preparePage:function(_4f6,_4f7){var p=(_4f7?this.popPage():null);for(var i=0;i<this.colCount;i++){var _4f8=this.pageNodes[i];var _4f9=(p===null?this.createPageNode():this.invalidatePageNode(p,_4f8));_4f9.pageIndex=_4f6;_4f8[_4f6]=_4f9;}},renderPage:function(_4fa){var _4fb=[];var i,j;for(i=0;i<this.colCount;i++){_4fb[i]=this.pageNodes[i][_4fa];}for(i=0,j=_4fa*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_4fb);}},removePage:function(_4fc){for(var i=0,j=_4fc*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_4fd){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_4fd,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_4fe){},pacifying:false,pacifyTicks:200,setPacifying:function(_4ff){if(this.pacifying!=_4ff){this.pacifying=_4ff;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _500=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _500;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){dojox.grid.util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _501=(!this._invalidating);if(!_501){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_501=true;}}if(_501){this.needPage(this.page,this.pageTop);}var _502=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _503=this.getPageHeight(this.page);this.averageRowHeight=(_503>0&&_502>0)?(_503/_502):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _504=this.pageCount-1;var _505=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_504]=_505;return _505;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_506,_507,_508){if(this.pageExists(_506)){var oh=this.getPageHeight(_506);var h=(this.measurePage(_506));if(h===undefined){h=oh;}this.pageHeights[_506]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_507)){if(!_508){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_506);}}else{this.repositionPages(_506);}}return h;}return 0;},rowHeightChanged:function(_509,_50a){this.updatePageHeight(Math.floor(_509/this.rowsPerPage),false,_50a);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");dojo.attr(p,"role","presentation");p.style.position="absolute";p.style[dojo._isBodyLtr()?"left":"right"]="0";return p;},getPageHeight:function(_50b){var ph=this.pageHeights[_50b];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_50c){return this.stack.push(_50c);},popPage:function(){return this.stack.shift();},findPage:function(_50d){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_50d){break;}}this.page=i;this.pageTop=h;},buildPage:function(_50e,_50f,_510){this.preparePage(_50e,_50f);this.positionPage(_50e,_510);this.installPage(_50e);this.renderPage(_50e);this.pushPage(_50e);},needPage:function(_511,_512){var h=this.getPageHeight(_511),oh=h;if(!this.pageExists(_511)){this.buildPage(_511,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_512);h=this.updatePageHeight(_511,true);}else{this.positionPage(_511,_512);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_513){this.grid.scrollTop=_513;if(this.colCount){this.startPacify();this.findPage(_513);var h=this.height;var b=this.getScrollBottom(_513);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_513);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_514){return (this.windowHeight>=0?_514+this.windowHeight:-1);},processNodeEvent:function(e,_515){var t=e.target;while(t&&(t!=_515)&&t.parentNode&&(t.parentNode.parentNode!=_515)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_515)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_4d7(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_516,_517){},removeRow:function(_518){},getDefaultPageNode:function(_519){return this.getDefaultNodes()[_519];},positionPageNode:function(_51a,_51b){},getPageNodePosition:function(_51c){return _51c.offsetTop;},invalidatePageNode:function(_51d,_51e){var p=_51e[_51d];if(p){delete _51e[_51d];this.removePage(_51d,p);_4d9(p);p.innerHTML="";}return p;},getPageRow:function(_51f){return _51f*this.rowsPerPage;},getLastPageRow:function(_520){return Math.min(this.rowCount,this.getPageRow(_520+1))-1;},getFirstVisibleRow:function(_521,_522,_523){if(!this.pageExists(_521)){return 0;}var row=this.getPageRow(_521);var _524=this.getDefaultNodes();var rows=_4e2(_524[_521]);for(var i=0,l=rows.length;i<l&&_522<_523;i++,row++){_522+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_525,_526,_527){if(!this.pageExists(_525)){return 0;}var _528=this.getDefaultNodes();var row=this.getLastPageRow(_525);var rows=_4e2(_528[_525]);for(var i=rows.length-1;i>=0&&_526>_527;i--,row--){_526-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_529){var _52a=this.getDefaultNodes();var rows=_4e2(_52a[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_529){this.offset=h-(t-_529);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_52b){var _52c=Math.floor(_52b/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_52c;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_52c;this.needPage(_52c,this.pageTop);var _52d=this.getDefaultNodes();var rows=_4e2(_52d[_52c]);var r=_52b-this.rowsPerPage*_52c;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});})();}if(!dojo._hasResource["dojox.grid.cells._base"]){dojo._hasResource["dojox.grid.cells._base"]=true;dojo.provide("dojox.grid.cells._base");dojo.declare("dojox.grid._DeferredTextWidget",dijit._Widget,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(dojo.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});(function(){var _52e=function(_52f){try{dojox.grid.util.fire(_52f,"focus");dojox.grid.util.fire(_52f,"select");}catch(e){}};var _530=function(){setTimeout(dojo.hitch.apply(dojo,arguments),0);};var dgc=dojox.grid.cells;dojo.declare("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(_531){this._props=_531||{};dojo.mixin(this,_531);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_532,_533){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_532!=this.defaultValue&&f)?f.apply(s,_533):_532;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new dojox.grid._DeferredTextWidget({deferred:v},dojo.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_534,_535){var f,i=this.grid.edit.info,d=this.get?this.get(_534,_535):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_534&&i.cell==this))){return this.formatEditing(d,_534);}else{return this._defaultFormat(d,[d,_534,this]);}},formatEditing:function(_536,_537){},getNode:function(_538){return this.view.getCellNode(_538,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_539){return (this.getNode(_539)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&dojo.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_53a,_53b){this.grid.edit.applyCellEdit(_53a,this,_53b);},cancelEdit:function(_53c){this.grid.doCancelEdit(_53c);},_onEditBlur:function(_53d){if(this.grid.edit.isEditCell(_53d,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_53e,_53f){if(this.commitOnBlur){dojo.connect(_53e,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_53f),250);});}},needFormatNode:function(_540,_541){this._formatPending=true;_530(this,"_formatNode",_540,_541);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_542,_543){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_543),_542,_543);}},formatNode:function(_544,_545,_546){if(dojo.isIE){_530(this,"focus",_546,_544);}else{this.focus(_546,_544);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_547){return this.getEditNode(_547)[this._valueProp];},setValue:function(_548,_549){var n=this.getEditNode(_548);if(n){n[this._valueProp]=_549;}},focus:function(_54a,_54b){_52e(_54b||this.getEditNode(_54a));},save:function(_54c){this.value=this.value||this.getValue(_54c);},restore:function(_54d){this.setValue(_54d,this.value);},_finish:function(_54e){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_54f){this.applyEdit(this.getValue(_54f),_54f);this._finish(_54f);},cancel:function(_550){this.cancelEdit(_550);this._finish(_550);}});dgc._Base.markupFactory=function(node,_551){var d=dojo;var _552=d.trim(d.attr(node,"formatter")||"");if(_552){_551.formatter=dojo.getObject(_552)||_552;}var get=d.trim(d.attr(node,"get")||"");if(get){_551.get=dojo.getObject(get);}var _553=function(attr,cell,_554){var _555=d.trim(d.attr(node,attr)||"");if(_555){cell[_554||attr]=!(_555.toLowerCase()=="false");}};_553("sortDesc",_551);_553("editable",_551);_553("alwaysEditing",_551);_553("noresize",_551);_553("draggable",_551);var _556=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_556){_551.defaultValue=_556;}var _557=function(attr,cell,_558){var _559=d.trim(d.attr(node,attr)||"")||undefined;if(_559){cell[_558||attr]=_559;}};_557("styles",_551);_557("headerStyles",_551);_557("cellStyles",_551);_557("classes",_551);_557("headerClasses",_551);_557("cellClasses",_551);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_55a,_55b){this.needFormatNode(_55a,_55b);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_55a+"\">";},formatNode:function(_55c,_55d,_55e){this.inherited(arguments);this.registerOnBlur(_55c,_55e);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_55f){this.inherited(arguments);var n=this.getEditNode(_55f);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_560){dgc._Base.markupFactory(node,_560);var d=dojo;var _561=d.trim(d.attr(node,"keyFilter")||"");if(_561){_560.keyFilter=new RegExp(_561);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_562){return _562+1;}});dgc.RowIndex.markupFactory=function(node,_563){dgc.Cell.markupFactory(node,_563);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_564){this.values=this.values||this.options;},formatEditing:function(_565,_566){this.needFormatNode(_565,_566);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_565==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_567){var n=this.getEditNode(_567);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});dgc.Select.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);var d=dojo;var _568=d.trim(d.attr(node,"options")||"");if(_568){var o=_568.split(",");if(o[0]!=_568){cell.options=o;}}var _569=d.trim(d.attr(node,"values")||"");if(_569){var v=_569.split(",");if(v[0]!=_569){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_56a,_56b){this.formatNode(this.getEditNode(_56b),_56a,_56b);},applyStaticValue:function(_56c){var e=this.grid.edit;e.applyCellEdit(this.getValue(_56c),this,_56c);e.start(this,_56c,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_56d,_56e){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_56d?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});dgc.Bool.markupFactory=function(node,cell){dgc.AlwaysEdit.markupFactory(node,cell);};})();}if(!dojo._hasResource["dojox.grid.cells"]){dojo._hasResource["dojox.grid.cells"]=true;dojo.provide("dojox.grid.cells");}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _56f=n.scrollLeft,_570=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_56f!=n.scrollLeft||_570!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}dojo.disconnect(this.events.shift());dojo.disconnect(this.events.shift());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_571){this.node=dojo.byId(node);if(!_571){_571={};}this.handle=_571.handle?dojo.byId(_571.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_571.delay>0?_571.delay:0;this.skip=_571.skip;this.mover=_571.mover?_571.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_572,node){return new dojo.dnd.Moveable(node,_572);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_573){dojo.publish("/dnd/move/start",[_573]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_574){dojo.publish("/dnd/move/stop",[_574]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_575,e){},onMove:function(_576,_577,e){this.onMoving(_576,_577);var s=_576.node.style;s.left=_577.l+"px";s.top=_577.t+"px";this.onMoved(_576,_577);},onMoving:function(_578,_579){},onMoved:function(_57a,_57b){}});}if(!dojo._hasResource["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _57c=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _57d=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _57e=function(_57f,_580){return _57f&&((_57f.rows||0)[_580]||_57f.childNodes[_580]);};var _581=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _582=function(_583,_584){for(var n=_583;n&&_584(n);n=n.parentNode){}return n;};var _585=function(_586){var name=_586.toUpperCase();return function(node){return node.tagName!=name;};};var _587=dojox.grid.util.rowIndexTag;var _588=dojox.grid.util.gridViewTag;dg._Builder=dojo.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_589,_58a,_58b,_58c){var _58d=[],html;if(_58c){var _58e=_589.index!=_589.grid.getSortIndex()?"":_589.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_589.id){_589.id=this.grid.id+"Hdr"+_589.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_58e,"id=\"",_589.id,"\""];}else{var _58f=this.grid.editable&&!_589.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_58f];}if(_589.colSpan){html.push(" colspan=\"",_589.colSpan,"\"");}if(_589.rowSpan){html.push(" rowspan=\"",_589.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_589.classes){html.push(_589.classes," ");}if(_58b){html.push(_58b," ");}_58d.push(html.join(""));_58d.push("");html=["\" idx=\"",_589.index,"\" style=\""];if(_58a&&_58a[_58a.length-1]!=";"){_58a+=";";}html.push(_589.styles,_58a||"",_589.hidden?"display:none;":"");if(_589.unitWidth){html.push("width:",_589.unitWidth,";");}_58d.push(html.join(""));_58d.push("");html=["\""];if(_589.attrs){html.push(" ",_589.attrs);}html.push(">");_58d.push(html.join(""));_58d.push("");_58d.push(_58c?"</th>":"</td>");return _58d;},isCellNode:function(_590){return Boolean(_590&&_590!=dojo.doc&&dojo.attr(_590,"idx"));},getCellNodeIndex:function(_591){return _591?Number(dojo.attr(_591,"idx")):-1;},getCellNode:function(_592,_593){for(var i=0,row;((row=_57e(_592.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_593){return cell;}}}return null;},findCellTarget:function(_594,_595){var n=_594;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_588 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_588]!=this.view.id))&&(n!=_595)){n=n.parentNode;}return n!=_595?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(_596,_597){var n=_596;while(n&&(n!=this.domNode)&&(!(_597 in n)||(_588 in n&&n[_588]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_598){return this.findTarget(_598,_587);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&dojo.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);}});dg._ContentBuilder=dojo.extend(function(view){dg._Builder.call(this,view);},dg._Builder.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _599=this.grid.get,_59a=this.view.structure.cells;for(var j=0,row;(row=_59a[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_599;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_59b,_59c){var html=this.getTableArray(),v=this.view,_59d=v.structure.cells,item=this.grid.getItem(_59c);dojox.grid.util.fire(this.view,"onBeforeRow",[_59c,_59d]);for(var j=0,row;(row=_59d[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_59c,item);if(dojo.isIE<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_587];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});dg._HeaderBuilder=dojo.extend(function(view){this.moveable=null;dg._Builder.call(this,view);},dg._Builder.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(_59e,_59f){var html=this.getTableArray(),_5a0=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_5a0]);for(var j=0,row;(row=_5a0[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_5a1;(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+"'";}}_5a1=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_5a1[5]=(_59f!=undefined?_59f:_59e(cell));_5a1[3]=cell.customStyles.join(";");_5a1[1]=cell.customClasses.join(" ");html.push(_5a1.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz||dojo.isIE>=9){n=_582(e.target,_585("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_582(n,_585("table"));x-=(table&&table.offsetLeft)||0;}}n=_582(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=_57c(e.cellNode);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(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(dojo.isIE){var t=e.sourceView.headerNode.scrollLeft;e.sourceView.headerNode.scrollLeft=t;}if(c){dojo.stopEvent(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){dojo.stopEvent(e);return true;}return false;},colResizeSetup:function(e,_5a2){var _5a3=dojo.contentBox(e.sourceView.headerNode);if(_5a2){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _5a4=dojo.contentBox(e.sourceView.domNode);var l=e.pageX;if(!dojo._isBodyLtr()&&dojo.isIE<8){l-=dojox.html.metrics.getScrollbar().w;}dojo.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_5a4.h+_5a3.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _5a5=[],_5a6=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_5a6[i]);i++){_5a5.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _5a7=e.grid.views.views;var _5a8=[];for(var j=view.idx+adj,_5a9;(_5a9=_5a7[j]);j=j+adj){_5a8.push({node:_5a9.headerNode,left:window.parseInt(_5a9.headerNode.style.left)});}var _5aa=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:dojo.contentBox(e.cellNode).w,vw:_5a3.w,table:_5aa,tw:dojo.contentBox(_5aa).w,spanners:_5a5,followers:_5a8};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");dojo.style(this.moverDiv,{position:"absolute",left:0});dojo.body().appendChild(this.moverDiv);dojo.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new dojo.dnd.Moveable(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=dojo.hitch(this,"doResizeColumn",drag);dojo.connect(m,"onMoveStop",dojo.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;dojo.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_5ab,_5ac,_5ad){var _5ae=_5ad.l;var data={deltaX:_5ae,w:_5ab.w+(dojo._isBodyLtr()?_5ae:-_5ae),vw:_5ab.vw+_5ae,tw:_5ab.tw+_5ae};this.dragRecord={inDrag:_5ab,mover:_5ac,leftTop:_5ad};if(data.w>=this.minColWidth){if(!_5ac){this.doResizeNow(_5ab,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_5af){if(this.dragRecord){var _5b0=this.dragRecord.leftTop;var _5b1=dojo._isBodyLtr()?_5b0.l:-_5b0.l;_5b1+=Math.max(_5af.w+_5b1,this.minColWidth)-(_5af.w+_5b1);if(dojo.isWebKit&&_5af.spanners.length){_5b1+=dojo._getPadBorderExtents(_5af.spanners[0].node).w;}var data={deltaX:_5b1,w:_5af.w+_5b1,vw:_5af.vw+_5b1,tw:_5af.tw+_5b1};this.doResizeNow(_5af,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_5af.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_5af.index);},doResizeNow:function(_5b2,data){_5b2.view.convertColPctToFixed();if(_5b2.view.flexCells&&!_5b2.view.testFlexCells()){var t=_581(_5b2.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_5b2.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_5b2.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_5b2.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_5b2.node.style.width=data.w+"px";_5b2.view.setColWidth(_5b2.index,data.w);_5b2.view.headerNode.style.width=data.vw+"px";_5b2.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_5b2.view.headerNode.scrollLeft=_5b2.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_5b3){var _5b4=_5b3.length;if(!_5b4){return;}this.map=[];var row;for(var k=0;(row=_5b3[k]);k++){this.map[k]=[];}for(var j=0;(row=_5b3[j]);j++){for(var i=0,x=0,cell,_5b5,_5b6;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_5b6=cell.rowSpan||1;_5b5=cell.colSpan||1;for(var y=0;y<_5b6;y++){for(var s=0;s<_5b5;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_5b5;}}},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(_5b7,_5b8){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_5b8&&cell.r==_5b7){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_5b9,_5ba,_5bb){var row=_5b9&&_5b9.rows[_5ba];return row&&row.cells[_5bb];},_findOverlappingNodes:function(_5bc,_5bd,_5be){var _5bf=[];var m=this.getMapCoords(_5bd,_5be);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(_5bc,rw.r,rw.c):null);if(n){_5bf.push(n);}}return _5bf;},findOverlappingNodes:function(_5c0){return this._findOverlappingNodes(_581(_5c0),_57d(_5c0.parentNode),_57c(_5c0));}});})();}if(!dojo._hasResource["dojo.dnd.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_5c1){this.node=dojo.byId(node);if(!_5c1){_5c1={};}this.creator=_5c1.creator||null;this.skipForm=_5c1.skipForm;this.parent=_5c1.dropParent&&dojo.byId(_5c1.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_5c1&&_5c1._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||dojo.global;var m=this.map,e=dojo.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return dojo.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dojo.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_5c2,_5c3){if(!this.parent.firstChild){_5c3=null;}else{if(_5c2){if(!_5c3){_5c3=this.parent.firstChild;}}else{if(_5c3){_5c3=_5c3.nextSibling;}}}if(_5c3){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_5c3);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_5c4,node){_5c4._skipStartup=true;return new dojo.dnd.Container(node,_5c4);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dojo.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_5c5){var _5c6="dojoDnd"+type;var _5c7=type.toLowerCase()+"State";dojo.replaceClass(this.node,_5c6+_5c5,_5c6+this[_5c7]);this[_5c7]=_5c5;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _5c8=node.parentNode;_5c8;node=_5c8,_5c8=node.parentNode){if(_5c8==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){return dojo.create(tag,{innerHTML:text});};};dojo.dnd._createTrTd=function(text){var tr=dojo.create("tr");dojo.create("td",{innerHTML:text},tr);return tr;};dojo.dnd._createSpan=function(text){return dojo.create("span",{innerHTML:text});};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _5c9=item&&dojo.isObject(item),data,type,n;if(_5c9&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_5c9&&item.data)?item.data:item;type=(_5c9&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};}if(!dojo._hasResource["dojo.dnd.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_5ca){if(!_5ca){_5ca={};}this.singular=_5ca.singular;this.autoSync=_5ca.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new dojo.NodeList();var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dojo.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dojo.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dojo.byId(i);this.delItem(i);dojo.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||dojo.global;var s=this.selection,e=dojo.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){dojo.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}dojo.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_5cb,data,_5cc,_5cd){var _5ce=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_5ce.call(this,item,hint);if(_5cb){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;};dojo.dnd.Selector.superclass.insertNodes.call(this,data,_5cc,_5cd);this._normalizedCreator=_5ce;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_5cf,node){_5cf._skipStartup=true;return new dojo.dnd.Selector(node,_5cf);},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dojo.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===dojo.mouseButtons.LEFT){dojo.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!dojo.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dojo.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dojo.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}dojo.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){dojo.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dojo.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});}if(!dojo._hasResource["dojo.dnd.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_5d0){this.manager=_5d0;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_5d1=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_5d1.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_5d1.creator){node=_5d1._normalizedCreator(_5d1.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _5d2=dojo.create("table"),_5d3=dojo.create("tbody",null,_5d2);_5d3.appendChild(node);node=_5d2;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});}if(!dojo._hasResource["dojo.dnd.Manager"]){dojo._hasResource["dojo.dnd.Manager"]=true;dojo.provide("dojo.dnd.Manager");dojo.declare("dojo.dnd.Manager",null,{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_5d4){if(this.avatar){this.target=(_5d4&&_5d4.targetState!="Disabled")?_5d4:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_5d4]);},outSource:function(_5d5){if(this.avatar){if(this.target==_5d5){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_5d6,_5d7,copy){this.source=_5d6;this.nodes=_5d7;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_5d6,_5d7,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _5d8=Boolean(this.target&&flag);if(this.canDropFlag!=_5d8){this.canDropFlag=_5d8;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),["dojoDndCopy","dojoDndMove"]);dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_5d9=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_5d9);dojo.publish("/dnd/drop",_5d9);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.replaceClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dojo.dnd._manager=null;dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};}if(!dojo._hasResource["dojo.dnd.Source"]){dojo._hasResource["dojo.dnd.Source"]=true;dojo.provide("dojo.dnd.Source");dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{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,_5da){dojo.mixin(this,dojo.mixin({},_5da));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_5db,_5dc){if(this==_5db){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_5dc.length;++i){var type=_5db.getItem(_5dc[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_5dd,self){if(_5dd){return true;}if(arguments.length<2){self=this==dojo.dnd.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},markupFactory:function(_5de,node){_5de._skipStartup=true;return new dojo.dnd.Source(node,_5de);},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=dojo.dnd.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _5df=this.getSelectedNodes();if(_5df.length){m.startDrag(this,_5df,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _5e0=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_5e0=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_5e0=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_5e0!=this.before){this._markTargetAnchor(_5e0);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_5e1){if(this!=_5e1){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=dojo.dnd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_5e2,_5e3,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_5e2?(copy?"Copied":"Moved"):"");}var _5e4=this.accept&&this.checkAcceptance(_5e2,_5e3);this._changeState("Target",_5e4?"":"Disabled");if(this==_5e2){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_5e5,_5e6,copy,_5e7){if(this==_5e7){this.onDrop(_5e5,_5e6,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_5e8,_5e9,copy){if(this!=_5e8){this.onDropExternal(_5e8,_5e9,copy);}else{this.onDropInternal(_5e9,copy);}},onDropExternal:function(_5ea,_5eb,copy){var _5ec=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _5ec.call(this,_5ea.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_5ea.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_5ea.getItem(node.id);_5ea.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_5ea.selectNone();}this.insertNodes(true,_5eb,this.before,this.current);if(!copy&&this.creator){_5ea.deleteSelectedNodes();}this._normalizedCreator=_5ec;},onDropInternal:function(_5ed,copy){var _5ee=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _5ee.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_5ed,this.before,this.current);this._normalizedCreator=_5ee;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);dojo.dnd.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);dojo.dnd.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_5ef){if(this.current==this.targetAnchor&&this.before==_5ef){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_5ef;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function(node,_5f0){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_5f1,node){_5f1._skipStartup=true;return new dojo.dnd.Target(node,_5f1);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_5f2){this.autoSync=true;},markupFactory:function(_5f3,node){_5f3._skipStartup=true;return new dojo.dnd.AutoSource(node,_5f3);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _5f4=function(_5f5,_5f6){return _5f5.style.cssText==undefined?_5f5.getAttribute("style"):_5f5.style.cssText;};dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:dojox.grid._HeaderBuilder,_contentBuilderClass:dojox.grid._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.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(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}},destroy:function(){dojo.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);dojo.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(dojo.isIE||dojo.isWebKit||dojo.isOpera){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_5f7){var vs=(this.structure=_5f7);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(_5f8){if(_5f8){dojo.forEach(dojo.query("[widgetId]",_5f8).map(dijit.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(_5f9,_5fa){this._onBeforeRow(_5f9,_5fa);if(_5f9>=0){this._cleanupRowWidgets(this.getRowNode(_5f9));}},onAfterRow:function(_5fb,_5fc,_5fd){this._onAfterRow(_5fb,_5fc,_5fd);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_5fd),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _5fe=window.parseInt(dojo.attr(n,"cellIdx"),10);var _5ff=g.getCell(_5fe);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}dojo.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,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _600=this.hasVScrollbar();var _601=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_601||_601=="hidden"){_600=false;}else{if(_601=="scroll"){_600=true;}}return (_600?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||dojo.style(h.firstChild,"width")):0;},setColumnsWidth:function(_602){this.headerContentNode.firstChild.style.width=_602+"px";if(this.viewWidth){this.viewWidth=_602+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,dojo._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 _603=this.grid.layout.cells;var _604=dojo.hitch(this,function(node,_605){!dojo._isBodyLtr()&&(_605=!_605);var inc=_605?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_603[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_603[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _606="dojoxGrid_bottomMarker";var _607="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_606);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_607);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_606,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_607,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _608=dojo.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:dojo.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===(dojo.isIE<9?1:0)){dojo.dnd.Source.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:dojo.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){dojo.dnd.Source.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:dojo.hitch(this,function(_609){var src=this.source;if(src.current==src.targetAnchor&&src.before==_609){return;}if(src.targetAnchor&&_604(src.targetAnchor,src.before)){src._removeItemClass(_604(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_609);var _60a=_609?src.targetAnchor:_604(src.targetAnchor,src.before);var _60b=0;if(!_60a){_60a=src.targetAnchor;_60b=dojo.contentBox(_60a).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_60a,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_60b);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_608+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_604(src.targetAnchor,src.before)){src._addItemClass(_604(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_604(src.targetAnchor,src.before)){src._removeItemClass(_604(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);dojo.dnd.Source.prototype._unmarkTargetAnchor.call(src);}),destroy:dojo.hitch(this,function(){dojo.disconnect(this._source_conn);dojo.unsubscribe(this._source_sub);dojo.dnd.Source.prototype.destroy.call(this.source);if(this.bottomMarker){dojo.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){dojo.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:dojo.hitch(this,function(){dojo.dnd.Source.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=dojo.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=dojo.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(node){dojo.style(node,{left:"-10000px",top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_60c,_60d,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _60e=this.grid.views.views;var _60f=_60e[_60c.viewIndex];var _610=_60e[this.index];if(_610!=_60f){_60f.convertColPctToFixed();_610.convertColPctToFixed();}},_onDndDrop:function(_611,_612,copy){if(dojo.dnd.manager().target!==this.source){if(dojo.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _613=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_612[0]).w;if(_611.viewIndex!==this.index){var _614=this.grid.views.views;var _615=_614[_611.viewIndex];var _616=_614[this.index];if(_615.viewWidth&&_615.viewWidth!="auto"){_615.setColumnsWidth(_615.getColumnsWidth()-w);}if(_616.viewWidth&&_616.viewWidth!="auto"){_616.setColumnsWidth(_616.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _617=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_617.moveColumn(_611.viewIndex,idx,_613(_612[0]),_613(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;}dojox.grid.util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_618){var n=_618.name||_618.grid.getCellName(_618);var ret=["<div class=\"dojoxGridSortNode"];if(_618.index!=_618.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_618.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_618.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_619){var _61a=this._hasHScroll||false;if(this._hasHScroll==undefined||_619){if(this.noscroll){this._hasHScroll=false;}else{var _61b=dojo.style(this.scrollboxNode,"overflow");if(_61b=="hidden"){this._hasHScroll=false;}else{if(_61b=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_61a!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_61c){var _61d=this._hasVScroll||false;if(this._hasVScroll==undefined||_61c){if(this.noscroll){this._hasVScroll=false;}else{var _61e=dojo.style(this.scrollboxNode,"overflow");if(_61e=="hidden"){this._hasVScroll=false;}else{if(_61e=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_61d!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _61f=false;this.grid.initialWidth="";var _620=dojo.query("th",this.headerContentNode);var _621=dojo.map(_620,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_61f=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_61f){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _622=cell.view.getHeaderCellNode(cell.index);if(_622&&dojo.hasAttr(_622,"vIdx")){var vIdx=window.parseInt(dojo.attr(_622,"vIdx"));this.setColWidth(idx,_621[vIdx]);dojo.removeAttr(_622,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_623){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var self=this;var _624=function(){var v;for(var i in self.grid.views.views){v=self.grid.views.views[i];if(v!==self&&v.hasHScrollbar()){return true;}}return false;};if(_623||(this.noscroll&&_624())){h-=dojox.html.metrics.getScrollbar().h;}dojox.grid.util.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(_625){var _626=this.createRowNode(_625);this.buildRow(_625,_626);return _626;},createRowNode:function(_627){var node=document.createElement("div");node.className=this.classTag+"Row";if(this instanceof dojox.grid._RowSelector){dojo.attr(node,"role","presentation");}else{dojo.attr(node,"role","row");if(this.grid.selectionMode!="none"){dojo.attr(node,"aria-selected","false");}}node[dojox.grid.util.gridViewTag]=this.id;node[dojox.grid.util.rowIndexTag]=_627;this.rowNodes[_627]=node;return node;},buildRow:function(_628,_629){this.buildRowContent(_628,_629);this.styleRow(_628,_629);},buildRowContent:function(_62a,_62b){_62b.innerHTML=this.content.generateHtml(_62a,_62a);if(this.flexCells&&this.contentWidth){_62b.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_62a,this.structure.cells,_62b]);},rowRemoved:function(_62c){if(_62c>=0){this._cleanupRowWidgets(this.getRowNode(_62c));}this.grid.edit.save(this,_62c);delete this.rowNodes[_62c];},getRowNode:function(_62d){return this.rowNodes[_62d];},getCellNode:function(_62e,_62f){var row=this.getRowNode(_62e);if(row){return this.content.getCellNode(row,_62f);}},getHeaderCellNode:function(_630){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_630);}},styleRow:function(_631,_632){_632._style=_5f4(_632);this.styleRowNode(_631,_632);},styleRowNode:function(_633,_634){if(_634){this.doStyleRowNode(_633,_634);}},doStyleRowNode:function(_635,_636){this.grid.styleRowNode(_635,_636);},updateRow:function(_637){var _638=this.getRowNode(_637);if(_638){_638.style.height="";this.buildRow(_637,_638);}return _638;},updateRowStyles:function(_639){this.styleRowNode(_639,this.getRowNode(_639));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_63a){if(dojo.isFF>=13){this._nativeScroll=true;}var _63b=dojo._isBodyLtr();if(this.firstScroll<2){if((!_63b&&this.firstScroll==1)||(_63b&&this.firstScroll===0)){var s=dojo.marginBox(this.headerNodeContainer);if(dojo.isIE){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(dojo.isMoz){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_63b?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(_63c){this.lastTop=_63c;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_63c;}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(_63d,_63e){this.grid.setCellWidth(_63d,_63e+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var left=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=left;this.headerNode.scrollLeft=left;}});dojo.declare("dojox.grid._GridAvatar",dojo.dnd.Avatar,{construct:function(){var dd=dojo.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 _63f=this.manager.source,node;if(_63f.creator){node=_63f._normalizedCreator(_63f.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _640,_641;if(node.tagName.toLowerCase()=="tr"){_640=dd.createElement("table");_641=dd.createElement("tbody");_641.appendChild(node);_640.appendChild(_641);node=_640;}else{if(node.tagName.toLowerCase()=="th"){_640=dd.createElement("table");_641=dd.createElement("tbody");var r=dd.createElement("tr");_640.cellPadding=_640.cellSpacing="0";r.appendChild(node);_641.appendChild(r);_640.appendChild(_641);node=_640;}}}node.id="";td.appendChild(node);tr.appendChild(img);tr.appendChild(td);dojo.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=dojo.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){dojo.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _642=dojo.dnd.manager().makeAvatar;dojo.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!dojo.hasClass(dojo.body(),"dijit_a11y")){return new dojox.grid._GridAvatar(this);}return _642.call(dojo.dnd.manager());};})();}if(!dojo._hasResource["dojox.grid._RowSelector"]){dojo._hasResource["dojox.grid._RowSelector"]=true;dojo.provide("dojox.grid._RowSelector");dojo.declare("dojox.grid._RowSelector",dojox.grid._View,{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(_643,_644){var w=this.contentWidth||0;_644.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_645,_646){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_645)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_645)){n.push("dojoxGridRowbarSelected");}_646.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});}if(!dojo._hasResource["dojox.grid._Layout"]){dojo._hasResource["dojox.grid._Layout"]=true;dojo.provide("dojox.grid._Layout");dojo.declare("dojox.grid._Layout",null,{constructor:function(_647){this.grid=_647;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_648,_649,_64a,_64b,_64c){var _64d=this.structure[_648].cells[0];var _64e=this.structure[_649].cells[0];var cell=null;var _64f=0;var _650=0;for(var i=0,c;c=_64d[i];i++){if(c.index==_64a){_64f=i;break;}}cell=_64d.splice(_64f,1)[0];cell.view=this.grid.views.views[_649];for(i=0,c=null;c=_64e[i];i++){if(c.index==_64b){_650=i;break;}}if(!_64c){_650+=1;}_64e.splice(_650,0,cell);var _651=this.grid.getCell(this.grid.getSortIndex());if(_651){_651._currentlySorted=this.grid.getSortAsc();}this.cells=[];_64a=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_64a;this.cells.push(c);if("_currentlySorted" in c){var si=_64a+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_64a++;}}}dojo.forEach(this.cells,function(c){var _652=c.markup[2].split(" ");var _653=parseInt(_652[1].substring(5));if(_653!=c.index){_652[1]="idx=\""+c.index+"\"";c.markup[2]=_652.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_654,_655){var cell=this.cells[_654];if(cell.hidden==_655){cell.hidden=!_655;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=dojo.marginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_656,_657,_658){var self=this;var _659=function(_65a){var w=0;if(_65a.colSpan>1){w=0;}else{w=_65a.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _65b={grid:this.grid,subrow:_656,layoutIndex:_657,index:this.cells.length};if(_658&&_658 instanceof dojox.grid.cells._Base){var _65c=dojo.clone(_658);_65b.unitWidth=_659(_65c._props);_65c=dojo.mixin(_65c,this._defaultCellProps,_658._props,_65b);return _65c;}var _65d=_658.type||_658.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_65d)){_65d=dojo.getObject(_65d);}_65b.unitWidth=_659(_658);return new _65d(dojo.mixin({},this._defaultCellProps,_658,_65b));},addRowDef:function(_65e,_65f){var _660=[];var _661=0,_662=0,_663=true;for(var i=0,def,cell;(def=_65f[i]);i++){cell=this.addCellDef(_65e,i,def);_660.push(cell);this.cells.push(cell);if(_663&&cell.relWidth){_661+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_662+=window.parseInt(w,10);}else{if(w=="auto"){_663=false;}}}}}if(_661&&_663){dojo.forEach(_660,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_661)*(100-_662))+"%";}});}return _660;},addRowsDef:function(_664){var _665=[];if(dojo.isArray(_664)){if(dojo.isArray(_664[0])){for(var i=0,row;_664&&(row=_664[i]);i++){_665.push(this.addRowDef(i,row));}}else{_665.push(this.addRowDef(0,_664));}}return _665;},addViewDef:function(_666){this._defaultCellProps=_666.defaultCell||{};if(_666.width&&_666.width=="auto"){delete _666.width;}return dojo.mixin({},_666,{cells:this.addRowsDef(_666.rows||_666.cells)});},setStructure:function(_667){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:dojox._scopeName+".grid._RowSelector"};if(dojo.isString(this.grid.rowSelector)){var _668=this.grid.rowSelector;if(_668=="false"){sel=null;}else{if(_668!="true"){sel["width"]=_668;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _669=function(def){return ("name" in def||"field" in def||"get" in def);};var _66a=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_669(def[0])){return true;}}return false;};var _66b=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_669(def))));};if(dojo.isArray(_667)){var _66c=false;for(var i=0,st;(st=_667[i]);i++){if(_66b(st)){_66c=true;break;}}if(!_66c){s.push(this.addViewDef({cells:_667}));}else{for(i=0;(st=_667[i]);i++){if(_66a(st)){s.push(this.addViewDef({cells:st}));}else{if(_66b(st)){s.push(this.addViewDef(st));}}}}}else{if(_66b(_667)){s.push(this.addViewDef(_667));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});}if(!dojo._hasResource["dojox.grid._ViewManager"]){dojo._hasResource["dojox.grid._ViewManager"]=true;dojo.provide("dojox.grid._ViewManager");dojo.declare("dojox.grid._ViewManager",null,{constructor:function(_66d){this.grid=_66d;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_66e){_66e.idx=this.views.length;this.views.push(_66e);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _66f=[];for(var i=0,v;v=this.views[i];i++){_66f.push(v.contentNode);}return _66f;},forEach:function(_670){for(var i=0,v;v=this.views[i];i++){_670(v,i);}},onEach:function(_671,_672){_672=_672||[];for(var i=0,v;v=this.views[i];i++){if(_671 in v){v[_671].apply(v,_672);}}},normalizeHeaderNodeHeight:function(){var _673=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_673.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_673);},normalizeRowNodeHeights:function(_674){var h=0;var _675=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_674.length<=1){return;}for(var i=0,n;(n=_674[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_675[i]=n.firstChild.offsetHeight;h=Math.max(h,_675[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_674[i]);i++){if(_675[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(_676){var _677=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_676));i++){n.firstChild.style.height="";_677.push(n);}this.normalizeRowNodeHeights(_677);},getViewWidth:function(_678){return this.views[_678].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_679){_679.headerContentNode.style.height="";});var h=0;this.forEach(function(_67a){h=Math.max(_67a.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_67b){h=Math.max(_67b.domNode.offsetHeight,h);});return h;},findClient:function(_67c){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;var c=(w<=0?len:this.findClient());var _67d=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isFF<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!dojo.isWebKit){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<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_67d(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_67d(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_67d(v,l);}return l;},renderRow:function(_67e,_67f,_680){var _681=[];for(var i=0,v,n,_682;(v=this.views[i])&&(n=_67f[i]);i++){_682=v.renderRow(_67e);n.appendChild(_682);_681.push(_682);}if(!_680){this.normalizeRowNodeHeights(_681);}},rowRemoved:function(_683){this.onEach("rowRemoved",[_683]);},updateRow:function(_684,_685){for(var i=0,v;v=this.views[i];i++){v.updateRow(_684);}if(!_685){this.renormalizeRow(_684);}},updateRowStyles:function(_686){this.onEach("updateRowStyles",[_686]);},setScrollTop:function(_687){var top=_687;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_687);if(dojo.isIE&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});}if(!dojo._hasResource["dojox.grid._RowManager"]){dojo._hasResource["dojox.grid._RowManager"]=true;dojo.provide("dojox.grid._RowManager");(function(){var _688=function(_689,_68a){if(_689.style.cssText==undefined){_689.setAttribute("style",_68a);}else{_689.style.cssText=_68a;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_68b){this.grid=_68b;},linesToEms:2,overRow:-2,prepareStylingRow:function(_68c,_68d){return {index:_68c,node:_68d,odd:Boolean(_68c&1),selected:!!this.grid.selection.isSelected(_68c),over:this.isOver(_68c),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_68e,_68f){var row=this.prepareStylingRow(_68e,_68f);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_690){var i=_690;i.node.className=i.customClasses;var h=i.node.style.height;_688(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_691){this.grid.updateRowStyles(_691);},setOverRow:function(_692){var last=this.overRow;this.overRow=_692;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_693){return (this.overRow==_693&&!dojo.hasClass(this.grid.domNode,"dojoxGridColumnResizing"));}});})();}if(!dojo._hasResource["dojox.grid._FocusManager"]){dojo._hasResource["dojox.grid._FocusManager"]=true;dojo.provide("dojox.grid._FocusManager");dojo.declare("dojox.grid._FocusManager",null,{constructor:function(_694){this.grid=_694;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(dojo.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(dojo.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(dojo.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(dojo.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(dojo.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(dojo.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);dojo.forEach(this._headerConnects,dojo.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_695,_696){return (this.cell==_695)&&(this.rowIndex==_696);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return dojo.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_697){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_697);if(_697){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){dojox.grid.util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid._focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){dojo.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}dojox.grid.util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){dojo.forEach(this._headerConnects,dojo.disconnect);this._headerConnects=[];var _698=this._findHeaderCells();for(var i=0;i<_698.length;i++){this._headerConnects.push(dojo.connect(_698[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_698[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _699=dojo.query("th",this.grid.viewsHeaderNode);var _69a=[];for(var i=0;i<_699.length;i++){var _69b=_699[i];var _69c=dojo.hasAttr(_69b,"tabIndex");var _69d=dojo.attr(_69b,"tabIndex");if(_69c&&_69d<0){_69a.push(_69b);}}return _69a;},_setActiveColHeader:function(_69e,_69f,_6a0){dojo.attr(this.grid.domNode,"aria-activedescendant",_69e.id);if(_6a0!=null&&_6a0>=0&&_6a0!=_69f){dojo.toggleClass(this._findHeaderCells()[_6a0],this.focusClass,false);}dojo.toggleClass(_69e,this.focusClass,true);this._colHeadNode=_69e;this._colHeadFocusIdx=_69f;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_6a1){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_6a1?_6a1:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_6a2){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_6a2);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _6a3=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_6a3){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(dojo.isIE<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _6a4=this.focusView;if(!_6a4){for(var i=0,_6a5;(_6a5=this.grid.views.views[i]);i++){if(_6a5.headerNode){_6a4=_6a5;break;}}}return (_6a4&&dojo.getComputedStyle(_6a4.headerNode).display=="none");},colSizeAdjust:function(e,_6a6,_6a7){var _6a8=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_6a9;(_6a9=this.grid.views.views[i]);i++){if(_6a9.header.tableMap.map){view=_6a9;break;}}}var _6aa=_6a8[_6a6];if(!view||(_6a6==_6a8.length-1&&_6a6===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_6aa;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _6ab={l:_6a7};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_6ab);view.update();}},styleRow:function(_6ac){return;},setFocusIndex:function(_6ad,_6ae){this.setFocusCell(this.grid.getCell(_6ae),_6ad);},setFocusCell:function(_6af,_6b0){if(_6af&&!this.isFocusCell(_6af,_6b0)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_6af;this.rowIndex=_6b0;this._focusifyCellNode(true);}if(dojo.isOpera){setTimeout(dojo.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 _6b1=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_6b1.editable||this.grid.canEdit&&!this.grid.canEdit(_6b1,row))){this.cell=_6b1;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 _6b2=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_6b2.editable){this.cell=_6b2;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_6b3,_6b4){var _6b5=_6b4<0?-1:1;if(this.isNavHeader()){var _6b6=this._findHeaderCells();var _6b7=currentIdx=dojo.indexOf(_6b6,this._colHeadNode);currentIdx+=_6b4;while(currentIdx>=0&&currentIdx<_6b6.length&&_6b6[currentIdx].style.display=="none"){currentIdx+=_6b5;}if((currentIdx>=0)&&(currentIdx<_6b6.length)){this._setActiveColHeader(_6b6[currentIdx],currentIdx,_6b7);}}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+_6b3));if(_6b3){if(_6b3>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_6b3<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+_6b4));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_6b5;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_6b3){if((row+_6b3)>=0&&(row+_6b3)<=rc){this.move(_6b3>0?++_6b3:--_6b3,_6b4);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_6b4){if((col+_6b4)>=0&&(col+_6b4)<=cc){this.move(_6b3,_6b4>0?++_6b4:--_6b4);}return;}}this.setFocusIndex(row,col);if(_6b3){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();dojo.stopEvent(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){dojo.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _6b8=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();dojo.stopEvent(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()){dojo.stopEvent(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_6b9){this.tabbingOut=true;_6b9.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_6ba){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _6bb=true;var _6bc=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_6bc){var _6bd=0;var cell=this.grid.getCell(_6bd);if(cell.hidden){_6bd=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_6bd);}else{if(this.cell&&!_6bc){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_6bb=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _6bb;},focusHeader:function(){var _6be=this._findHeaderCells();var _6bf=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=_6be[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_6be.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_6be[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,_6bf);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){dojo.removeClass(this._colHeadNode,this.focusClass);dojo.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _6c0=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_6c0);this._contextMenuBindNode=_6c0;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;dojo.stopEvent(e);},doBlur:function(e){dojo.stopEvent(e);},doContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(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;dojo.stopEvent(e);},doLastNodeBlur:function(e){dojo.stopEvent(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,dojo.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());dojo.stopEvent(e);},doColHeaderBlur:function(e){dojo.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;}});}if(!dojo._hasResource["dojox.grid._EditManager"]){dojo._hasResource["dojox.grid._EditManager"]=true;dojo.provide("dojox.grid._EditManager");dojo.declare("dojox.grid._EditManager",null,{constructor:function(_6c1){this.grid=_6c1;if(dojo.isIE){this.connections=[dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus"))];}else{this.connections=[dojo.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){dojo.forEach(this.connections,dojo.disconnect);},cellFocus:function(_6c2,_6c3){if(this.grid.singleClickEdit||this.isEditRow(_6c3)){this.setEditCell(_6c2,_6c3);}else{this.apply();}if(this.isEditing()||(_6c2&&_6c2.editable&&_6c2.alwaysEditing)){this._focusEditor(_6c2,_6c3);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_6c4){if(_6c4.index==this.info.rowIndex){_6c4.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(_6c5,_6c6){return (this.info.rowIndex===_6c5)&&(this.info.cell.index==_6c6);},isEditRow:function(_6c7){return this.info.rowIndex===_6c7;},setEditCell:function(_6c8,_6c9){if(!this.isEditCell(_6c9,_6c8.index)&&this.grid.canEdit&&this.grid.canEdit(_6c8,_6c9)){this.start(_6c8,_6c9,this.isEditRow(_6c9)||_6c8.editable);}},_focusEditor:function(_6ca,_6cb){dojox.grid.util.fire(_6ca,"focus",[_6cb]);},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(dojo.isIE){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_6cc,_6cd,_6ce){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_6cd)){this.applyRowEdit();this.grid.updateRow(_6cd);}if(_6ce){this.info={cell:_6cc,rowIndex:_6cd};this.grid.doStartEdit(_6cc,_6cd);this.grid.updateRow(_6cd);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_6cc,_6cd);this._doCatchBoomerang();},_editorDo:function(_6cf){var c=this.info.cell;if(c&&c.editable){c[_6cf](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_6d0,_6d1,_6d2){if(this.grid.canEdit(_6d1,_6d2)){this.grid.doApplyCellEdit(_6d0,_6d2,_6d1.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(_6d3,_6d4){var c=this.info.cell;if(this.isEditRow(_6d3)&&(!_6d4||c.view==_6d4)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_6d5,_6d6){var c=this.info.cell;if(this.isEditRow(_6d6)&&c.view==_6d5&&c.editable){c.restore(c,this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);},_avoidUpdate:function(){var self=this;self._noUpdate=true;if(self._avoidUpdateHandler){clearTimeout(self._avoidUpdateHandler);}self._avoidUpdateHandler=setTimeout(function(){self._noUpdate=false;},100);}});}if(!dojo._hasResource["dojox.grid.Selection"]){dojo._hasResource["dojox.grid.Selection"]=true;dojo.provide("dojox.grid.Selection");dojo.declare("dojox.grid.Selection",null,{constructor:function(_6d7){this.grid=_6d7;this.selected=[];this.setMode(_6d7.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(_6d8){return this.grid.onCanSelect(_6d8);},onCanDeselect:function(_6d9){return this.grid.onCanDeselect(_6d9);},onSelected:function(_6da){},onDeselected:function(_6db){},onChanging:function(){},onChanged:function(){},isSelected:function(_6dc){if(this.mode=="none"){return false;}return this.selected[_6dc];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_6dd){if(this.mode=="none"){return -1;}for(var i=_6dd+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _6de=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_6de.push(i);}}return _6de;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_6df){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_6df);this.addToSelection(_6df);}else{this.toggleSelect(_6df);}},addToSelection:function(_6e0){if(this.mode=="none"){return;}if(dojo.isArray(_6e0)){dojo.forEach(_6e0,this.addToSelection,this);return;}_6e0=Number(_6e0);if(this.selected[_6e0]){this.selectedIndex=_6e0;}else{if(this.onCanSelect(_6e0)!==false){this.selectedIndex=_6e0;var _6e1=this.grid.getRowNode(_6e0);if(_6e1){dojo.attr(_6e1,"aria-selected","true");}this._beginUpdate();this.selected[_6e0]=true;this.onSelected(_6e0);this._endUpdate();}}},deselect:function(_6e2){if(this.mode=="none"){return;}if(dojo.isArray(_6e2)){dojo.forEach(_6e2,this.deselect,this);return;}_6e2=Number(_6e2);if(this.selectedIndex==_6e2){this.selectedIndex=-1;}if(this.selected[_6e2]){if(this.onCanDeselect(_6e2)===false){return;}var _6e3=this.grid.getRowNode(_6e2);if(_6e3){dojo.attr(_6e3,"aria-selected","false");}this._beginUpdate();delete this.selected[_6e2];this.onDeselected(_6e2);this._endUpdate();}},setSelected:function(_6e4,_6e5){this[(_6e5?"addToSelection":"deselect")](_6e4);},toggleSelect:function(_6e6){if(dojo.isArray(_6e6)){dojo.forEach(_6e6,this.toggleSelect,this);return;}this.setSelected(_6e6,!this.selected[_6e6]);},_range:function(_6e7,inTo,func){var s=(_6e7>=0?_6e7:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_6e8,inTo){this._range(_6e8,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_6e9,inTo){this._range(_6e9,inTo,dojo.hitch(this,"deselect"));},insert:function(_6ea){this.selected.splice(_6ea,0,false);if(this.selectedIndex>=_6ea){this.selectedIndex++;}},remove:function(_6eb){this.selected.splice(_6eb,1);if(this.selectedIndex>=_6eb){this.selectedIndex--;}},deselectAll:function(_6ec){for(var i in this.selected){if((i!=_6ec)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_6ed,_6ee,_6ef){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_6ed);}else{if(!_6ef||this.rangeStartIndex<0){this.rangeStartIndex=_6ed;}if(!_6ee){this.deselectAll(_6ed);}if(_6ef){this.selectRange(this.rangeStartIndex,_6ed);}else{if(_6ee){this.toggleSelect(_6ed);}else{this.addToSelection(_6ed);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});}if(!dojo._hasResource["dojox.grid._Events"]){dojo._hasResource["dojox.grid._Events"]=true;dojo.provide("dojox.grid._Events");dojo.declare("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(_6f0){var i=_6f0;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_6f0);this.edit.styleRow(_6f0);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _6f1;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_6f1=this.focus.getHeaderIndex();if(_6f1>=0){this.setSortIndex(_6f1);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _6f2=this.edit.isEditing();this.edit.apply();if(!_6f2){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _6f3=this.focus.focusView||this.views.views[0];_6f3.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_6f1=this.focus.getHeaderIndex();if(_6f1>=0){this.setSortIndex(_6f1);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}break;case dk.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case dk.LEFT_ARROW:case dk.RIGHT_ARROW:if(!this.edit.isEditing()){var _6f4=e.keyCode;dojo.stopEvent(e);_6f1=this.focus.getHeaderIndex();if(_6f1>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_6f1,(_6f4==dk.LEFT_ARROW?-1:1)*5);}else{var _6f5=(_6f4==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_6f5*=-1;}this.focus.move(0,_6f5);}}break;case dk.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);this.focus.move(-1,0);}break;case dk.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);this.focus.move(1,0);}break;case dk.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(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 dk.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(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){dojo.addClass(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(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 _6f6;if(this._click.length>1&&dojo.isIE){_6f6=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_6f6=this._click[0];}else{_6f6=e;}}this.focus.setFocusCell(_6f6.cell,_6f6.rowIndex);this.edit.setEditCell(_6f6.cell,_6f6.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_6f7,_6f8){this.edit.cellFocus(_6f7,_6f8);},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){dojo.stopEvent(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(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){dojo.stopEvent(e);}},onStartEdit:function(_6f9,_6fa){},onApplyCellEdit:function(_6fb,_6fc,_6fd){},onCancelEdit:function(_6fe){},onApplyEdit:function(_6ff){},onCanSelect:function(_700){return true;},onCanDeselect:function(_701){return true;},onSelected:function(_702){this.updateRowStyles(_702);},onDeselected:function(_703){this.updateRowStyles(_703);},onSelectionChanged:function(){}});}if(!dojo._hasResource["dojox.grid._Grid"]){dojo._hasResource["dojox.grid._Grid"]=true;dojo.provide("dojox.grid._Grid");(function(){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}dojo.declare("dojox.grid._Grid",[dijit._Widget,dijit._Templated,dojox.grid._Events],{templateString:"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n",classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:dojox.grid._Layout,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");dojox.html.metrics.initOnFontResize();this.connect(dojox.html.metrics,"onFontResize","textSizeChanged");dojox.grid.util.funnelEvents(this.domNode,this,"doKeyEvent",dojox.grid.util.keyEvents);if(this.selectionMode!="none"){dojo.attr(this.domNode,"aria-multiselectable",this.selectionMode=="single"?"false":"true");}dojo.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){dojo.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _704=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_704);this.errorMessage=dojo.string.substitute(this.errorMessage,_704);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){dojo.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){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_705){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&&!_705){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 dojox.grid._RowManager(this);this.focus=new dojox.grid._FocusManager(this);this.edit=new dojox.grid._EditManager(this);},createSelection:function(){this.selection=new dojox.grid.Selection(this);},createScroller:function(){this.scroller=new dojox.grid._Scroller();this.scroller.grid=this;this.scroller.renderRow=dojo.hitch(this,"renderRow");this.scroller.removeRow=dojo.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_706){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_707,idx){var c=dojo.getObject(_707);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);dojo.attr(this.domNode,"align",dojo._isBodyLtr()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||dojox._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_708){var s=_708;if(s&&dojo.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=dojo.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(_709){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_709);},getColumnTogglingItems:function(){var _70a,_70b=[];_70a=dojo.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new dijit.CheckedMenuItem({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_70c){if(self.layout.setColumnVisibility(this._gridCell.index,_70c)){var _70d=this._gridCell.menuItems;if(_70d.length>1){dojo.forEach(_70d,function(item){if(item!==this){item.setAttribute("checked",_70c);}},this);}_70c=dojo.filter(self.layout.cells,function(c){if(c.menuItems.length>1){dojo.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_70c.length==1){dojo.forEach(_70c[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _70e=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_70e,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_70b.push(item);}return item;},this);if(_70b.length==1){_70b[0].set("disabled",true);}return _70a;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){dojo.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){dojo.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_70f){this.setScrollTop(0);},getItem:function(_710){return null;},showMessage:function(_711){if(_711){this.messagesNode.innerHTML=_711;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(_712,_713){this._pendingChangeSize=_712;this._pendingResultSize=_713;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||dojo._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(_714,_715){_714=_714||this._pendingChangeSize;_715=_715||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 _716=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<=_716.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(_715){_714=_715;}if(!this._autoHeight&&_714){dojo.marginBox(this.domNode,_714);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||dojo._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _717=dojo.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||dojo._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_717&&hh===undefined){hh=this._getHeaderHeight();}}if(_717){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _718=(!this.initialWidth&&this.autoWidth);var w=_718?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_718){this.domNode.style.width=vw+"px";}},adaptHeight:function(_719){var t=_719===undefined?this._getHeaderHeight():_719;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 _71a=0,_71b=0;var _71c=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_71a++;}else{_71b++;}return (!has);});if(_71a>0&&_71b>0){dojo.forEach(_71c,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();dojo.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(_71d,_71e){this.views.renderRow(_71d,_71e,this._skipRowRenormalize);},rowRemoved:function(_71f){this.views.rowRemoved(_71f);},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||this.edit._noUpdate){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(_720){_720=Number(_720);if(this.updating){this.invalidated[_720]=true;}else{this.views.updateRow(_720);this.scroller.rowHeightChanged(_720);}},updateRows:function(_721,_722){_721=Number(_721);_722=Number(_722);var i;if(this.updating){for(i=0;i<_722;i++){this.invalidated[i+_721]=true;}}else{for(i=0;i<_722;i++){this.views.updateRow(i+_721,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_721);}},updateRowCount:function(_723){if(this.updating){this.invalidated.rowCount=_723;}else{this.rowCount=_723;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_723);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_724){this.views.updateRowStyles(_724);},getRowNode:function(_725){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_725];}else{for(var i=0,_726;(_726=this.views.views[i]);i++){if(!(_726 instanceof dojox.grid._RowSelector)){return _726.rowNodes[_725];}}}return null;},rowHeightChanged:function(_727){this.views.renormalizeRow(_727);this.scroller.rowHeightChanged(_727);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_728){if(!this.fastScroll){this.setScrollTop(_728);return;}var _729=Math.abs(this.lastScrollTop-_728);this.lastScrollTop=_728;if(_729>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_728;this.views.setScrollTop(_728);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _72a=this;this._pendingScroll=window.setTimeout(function(){delete _72a._pendingScroll;_72a.finishScrollJob();},200);}else{this.setScrollTop(_728);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_72b){this.scroller.scroll(this.views.setScrollTop(_72b));},scrollToRow:function(_72c){this.setScrollTop(this.scroller.findScrollTop(_72c)+1);},styleRowNode:function(_72d,_72e){if(_72e){this.rows.styleRowNode(_72d,_72e);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_72f){return this.layout.cells[_72f];},setCellWidth:function(_730,_731){this.getCell(_730).unitWidth=_731;},getCellName:function(_732){return "Cell "+_732.index;},canSort:function(_733){},sort:function(){},getSortAsc:function(_734){_734=_734==undefined?this.sortInfo:_734;return Boolean(_734>0);},getSortIndex:function(_735){_735=_735==undefined?this.sortInfo:_735;return Math.abs(_735)-1;},setSortIndex:function(_736,_737){var si=_736+1;if(_737!=undefined){si*=(_737?1:-1);}else{if(this.getSortIndex()==_736){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_738){if(this.canSort(_738)){this.sortInfo=_738;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(_739,_73a){this.onStartEdit(_739,_73a);},doApplyCellEdit:function(_73b,_73c,_73d){this.onApplyCellEdit(_73b,_73c,_73d);},doCancelEdit:function(_73e){this.onCancelEdit(_73e);},doApplyEdit:function(_73f){this.onApplyEdit(_73f);},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();}});dojox.grid._Grid.markupFactory=function(_740,node,ctor,_741){var d=dojo;var _742=function(n){var w=d.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_740.structure&&node.nodeName.toLowerCase()=="table"){_740.structure=d.query("> colgroup",node).map(function(cg){var sv=d.attr(cg,"span");var v={noscroll:(d.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(d.hasAttr(cg,"width")){v.width=_742(cg);}return v;});if(!_740.structure.length){_740.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_743){var _744=0;var _745=0;var _746;var _747=null;d.query("> th",tr).map(function(th){if(!_747){_746=0;_747=_740.structure[0];}else{if(_744>=(_746+_747.__span)){_745++;_746+=_747.__span;var _748=_747;_747=_740.structure[_745];}}var cell={name:d.trim(d.attr(th,"name")||th.innerHTML),colSpan:parseInt(d.attr(th,"colspan")||1,10),type:d.trim(d.attr(th,"cellType")||""),id:d.trim(d.attr(th,"id")||"")};_744+=cell.colSpan;var _749=d.attr(th,"rowspan");if(_749){cell.rowSpan=_749;}if(d.hasAttr(th,"width")){cell.width=_742(th);}if(d.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(dojo.attr(th,"relWidth"),10);}if(d.hasAttr(th,"hidden")){cell.hidden=(d.attr(th,"hidden")=="true"||d.attr(th,"hidden")===true);}if(_741){_741(th,cell);}cell.type=cell.type?dojo.getObject(cell.type):dojox.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_747.cells[_743]){_747.cells[_743]=[];}_747.cells[_743].push(cell);});});}return new ctor(_740,node);};})();}if(!dojo._hasResource["dojox.grid.DataSelection"]){dojo._hasResource["dojox.grid.DataSelection"]=true;dojo.provide("dojox.grid.DataSelection");dojo.declare("dojox.grid.DataSelection",dojox.grid.Selection,{getFirstSelected:function(){var idx=dojox.grid.Selection.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_74a){var _74b=this.grid.getItemIndex(_74a);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_74b);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _74c=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_74c.push(this.grid.getItem(i));}}return _74c;},addToSelection:function(_74d){if(this.mode=="none"){return;}var idx=null;if(typeof _74d=="number"||typeof _74d=="string"){idx=_74d;}else{idx=this.grid.getItemIndex(_74d);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_74e){if(this.mode=="none"){return;}var idx=null;if(typeof _74e=="number"||typeof _74e=="string"){idx=_74e;}else{idx=this.grid.getItemIndex(_74e);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_74f){var idx=null;if(_74f||typeof _74f=="number"){if(typeof _74f=="number"||typeof _74f=="string"){idx=_74f;}else{idx=this.grid.getItemIndex(_74f);}dojox.grid.Selection.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});}if(!dojo._hasResource["dojox.grid.DataGrid"]){dojo._hasResource["dojox.grid.DataGrid"]=true;dojo.provide("dojox.grid.DataGrid");dojo.declare("dojox.grid.DataGrid",dojox.grid._Grid,{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,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);},createSelection:function(){this.selection=new dojox.grid.DataSelection(this);},get:function(_750,_751){if(_751&&this.field=="_item"&&!this.fields){return _751;}else{if(_751&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_751,f));});return ret;}else{if(!_751&&typeof _750==="string"){return this.inherited(arguments);}}}return (!_751?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_751:this.grid.store.getValue(_751,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _752=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_752=true;}if(!this.updating){this.beginUpdate();_752=true;}if(_752){var _753=this;this._endUpdateDelay=setTimeout(function(){delete _753._endUpdateDelay;_753.endUpdate();},this.updateDelay);}}},_onSet:function(item,_754,_755,_756){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_757){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_757+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_758,_759){this._by_idx[_758]=this._createItem(item,_758);if(!_759){this.updateRow(_758);}},_onNew:function(item,_75a){this._checkUpdateStatus();var _75b=this.get("rowCount");this._addingItem=true;this.updateRowCount(_75b+1);this._addingItem=false;this._addItem(item,_75b);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);}}},_onRevert:function(){this._refresh();},setStore:function(_75c,_75d,_75e){this._setQuery(_75d,_75e);this._setStore(_75c);this._refresh(true);},setQuery:function(_75f,_760){this._setQuery(_75f,_760);this._refresh(true);},setItems:function(_761){this.items=_761;this._setStore(this.store);this._refresh(true);},_setQuery:function(_762,_763){this.query=_762;this.queryOptions=_763||this.queryOptions;},_setStore:function(_764){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_764;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(_765,req){if(!this.scroller){return;}if(_765&&_765.length>0){dojo.forEach(_765,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_765.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}}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(_766,_767){_766=_766||0;if(this.store&&!this._pending_requests[_766]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_766]=true;try{if(this.items){var _768=this.items;var _769=this.store;this.rowsPerPage=_768.length;var req={start:_766,count:this.rowsPerPage,isRender:_767};this._onFetchBegin(_768.length,req);var _76a=0;dojo.forEach(_768,function(i){if(!_769.isItemLoaded(i)){_76a++;}});if(_76a===0){this._onFetchComplete(_768,req);}else{var _76b=function(item){_76a--;if(_76a===0){this._onFetchComplete(_768,req);}};dojo.forEach(_768,function(i){if(!_769.isItemLoaded(i)){_769.loadItem({item:i,onItem:_76b,scope:this});}},this);}}else{this.store.fetch({start:_766,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_767,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_766,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,_76c){if(!_76c&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_76d,_76e){this.query=_76d;if(_76e){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_76f){return this._pending_requests[_76f];},_rowToPage:function(_770){return (this.rowsPerPage?Math.floor(_770/this.rowsPerPage):_770);},_pageToRow:function(_771){return (this.rowsPerPage?this.rowsPerPage*_771:_771);},_preparePage:function(_772){if((_772<this._bop||_772>=this._eop)&&!this._addingItem){var _773=this._rowToPage(_772);this._needPage(_773);this._bop=_773*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_774){if(!this._pages[_774]){this._pages[_774]=true;this._requestPage(_774);}},_requestPage:function(_775){var row=this._pageToRow(_775);var _776=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_776>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_777){return _777.field;},_refresh:function(_778){this._clearData();this._fetch(0,_778);},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(_779){if(this.store&&this.store.getState){var _77a=this.store.getState(_779.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_77a[s]){c=" dojoxGridRow-"+s;break;}}_779.customClasses+=c;}},onStyleRow:function(_77b){this.styleRowState(_77b);this.inherited(arguments);},canEdit:function(_77c,_77d){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _77e={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_77f,_780){if(!this._cache[_780]){this._cache[_780]=this._copyAttr(_780,_77f.field);}this.onStartEdit(_77f,_780);},doApplyCellEdit:function(_781,_782,_783){this.store.fetchItemByIdentity({identity:this._by_idx[_782].idty,onItem:dojo.hitch(this,function(item){var _784=this.store.getValue(item,_783);if(typeof _784=="number"){_781=isNaN(_781)?_781:parseFloat(_781);}else{if(typeof _784=="boolean"){_781=_781=="true"?true:_781=="false"?false:_781;}else{if(_784 instanceof Date){var _785=new Date(_781);_781=isNaN(_785.getTime())?_781:_785;}}}this.store.setValue(item,_783,_781);this.onApplyCellEdit(_781,_782,_783);})});},doCancelEdit:function(_786){var _787=this._cache[_786];if(_787){this.updateRow(_786);delete this._cache[_786];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_788,_789){var _78a=this._cache[_788];this.onApplyEdit(_788);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_78b){if(_78b.length){dojo.forEach(_78b,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());}}}});dojox.grid.DataGrid.cell_markupFactory=function(_78c,node,_78d){var _78e=dojo.trim(dojo.attr(node,"field")||"");if(_78e){_78d.field=_78e;}_78d.field=_78d.field||_78d.name;var _78f=dojo.trim(dojo.attr(node,"fields")||"");if(_78f){_78d.fields=_78f.split(",");}if(_78c){_78c(node,_78d);}};dojox.grid.DataGrid.markupFactory=function(_790,node,ctor,_791){return dojox.grid._Grid.markupFactory(_790,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_791));};}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_792,_793){var _794=[];var _795,_796,_797=0;while(_795=re.exec(str)){_796=str.slice(_797,re.lastIndex-_795[0].length);if(_796.length){_794.push(_796);}if(_792){if(dojo.isOpera){var copy=_795.slice(0);while(copy.length<_795.length){copy.push(null);}_795=copy;}var _798=_792.apply(_793,_795.slice(1).concat(_794.length));if(typeof _798!="undefined"){_794.push(_798);}}_797=re.lastIndex;}_796=str.slice(_797);if(_796.length){_794.push(_796);}return _794;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_799,_79a){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _79b=new dojox.string.sprintf.Formatter(_799);return _79b.format.apply(_79b,args);};dojox.string.sprintf.Formatter=function(_79c){var _79d=[];this._mapped=false;this._format=_79c;this._tokens=dojox.string.tokenize(_79c,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_79e,_79f,_7a0,_7a1,_7a2,_7a3,_7a4){if(_79e){this._mapped=true;}return {mapping:_79e,intmapping:_79f,flags:_7a0,_minWidth:_7a1,period:_7a2,_precision:_7a3,specifier:_7a4};},_specifiers:{b:{base:2,isInt:true},o:{base:8,isInt:true},x:{base:16,isInt:true},X:{extend:["x"],toUpper:true},d:{base:10,isInt:true},i:{extend:["d"]},u:{extend:["d"],isUnsigned:true},c:{setArg:function(_7a5){if(!isNaN(_7a5.arg)){var num=parseInt(_7a5.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_7a5.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_7a6){_7a6.maxWidth=(_7a6.period==".")?_7a6.precision:-1;}},e:{isDouble:true,doubleNotation:"e"},E:{extend:["e"],toUpper:true},f:{isDouble:true,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:true,doubleNotation:"g"},G:{extend:["g"],toUpper:true}},format:function(_7a7){if(this._mapped&&typeof _7a7!="object"){throw new Error("format requires a mapping");}var str="";var _7a8=0;for(var i=0,_7a9;i<this._tokens.length;i++){_7a9=this._tokens[i];if(typeof _7a9=="string"){str+=_7a9;}else{if(this._mapped){if(typeof _7a7[_7a9.mapping]=="undefined"){throw new Error("missing key "+_7a9.mapping);}_7a9.arg=_7a7[_7a9.mapping];}else{if(_7a9.intmapping){var _7a8=parseInt(_7a9.intmapping)-1;}if(_7a8>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_7a9.arg=arguments[_7a8++];}if(!_7a9.compiled){_7a9.compiled=true;_7a9.sign="";_7a9.zeroPad=false;_7a9.rightJustify=false;_7a9.alternative=false;var _7aa={};for(var fi=_7a9.flags.length;fi--;){var flag=_7a9.flags.charAt(fi);_7aa[flag]=true;switch(flag){case " ":_7a9.sign=" ";break;case "+":_7a9.sign="+";break;case "0":_7a9.zeroPad=(_7aa["-"])?false:true;break;case "-":_7a9.rightJustify=true;_7a9.zeroPad=false;break;case "#":_7a9.alternative=true;break;default:throw Error("bad formatting flag '"+_7a9.flags.charAt(fi)+"'");}}_7a9.minWidth=(_7a9._minWidth)?parseInt(_7a9._minWidth):0;_7a9.maxWidth=-1;_7a9.toUpper=false;_7a9.isUnsigned=false;_7a9.isInt=false;_7a9.isDouble=false;_7a9.precision=1;if(_7a9.period=="."){if(_7a9._precision){_7a9.precision=parseInt(_7a9._precision);}else{_7a9.precision=0;}}var _7ab=this._specifiers[_7a9.specifier];if(typeof _7ab=="undefined"){throw new Error("unexpected specifier '"+_7a9.specifier+"'");}if(_7ab.extend){dojo.mixin(_7ab,this._specifiers[_7ab.extend]);delete _7ab.extend;}dojo.mixin(_7a9,_7ab);}if(typeof _7a9.setArg=="function"){_7a9.setArg(_7a9);}if(typeof _7a9.setMaxWidth=="function"){_7a9.setMaxWidth(_7a9);}if(_7a9._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_7a9.minWidth=parseInt(arguments[_7a8++]);if(isNaN(_7a9.minWidth)){throw new Error("the argument for * width at position "+_7a8+" is not a number in "+this._format);}if(_7a9.minWidth<0){_7a9.rightJustify=true;_7a9.minWidth=-_7a9.minWidth;}}if(_7a9._precision=="*"&&_7a9.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_7a9.precision=parseInt(arguments[_7a8++]);if(isNaN(_7a9.precision)){throw Error("the argument for * precision at position "+_7a8+" is not a number in "+this._format);}if(_7a9.precision<0){_7a9.precision=1;_7a9.period="";}}if(_7a9.isInt){if(_7a9.period=="."){_7a9.zeroPad=false;}this.formatInt(_7a9);}else{if(_7a9.isDouble){if(_7a9.period!="."){_7a9.precision=6;}this.formatDouble(_7a9);}}this.fitField(_7a9);str+=""+_7a9.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_7ac){var i=parseInt(_7ac.arg);if(!isFinite(i)){if(typeof _7ac.arg!="number"){throw new Error("format argument '"+_7ac.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_7ac.isUnsigned||_7ac.base!=10)){i=4294967295+i+1;}if(i<0){_7ac.arg=(-i).toString(_7ac.base);this.zeroPad(_7ac);_7ac.arg="-"+_7ac.arg;}else{_7ac.arg=i.toString(_7ac.base);if(!i&&!_7ac.precision){_7ac.arg="";}else{this.zeroPad(_7ac);}if(_7ac.sign){_7ac.arg=_7ac.sign+_7ac.arg;}}if(_7ac.base==16){if(_7ac.alternative){_7ac.arg="0x"+_7ac.arg;}_7ac.arg=_7ac.toUpper?_7ac.arg.toUpperCase():_7ac.arg.toLowerCase();}if(_7ac.base==8){if(_7ac.alternative&&_7ac.arg.charAt(0)!="0"){_7ac.arg="0"+_7ac.arg;}}},formatDouble:function(_7ad){var f=parseFloat(_7ad.arg);if(!isFinite(f)){if(typeof _7ad.arg!="number"){throw new Error("format argument '"+_7ad.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_7ad.doubleNotation){case "e":_7ad.arg=f.toExponential(_7ad.precision);break;case "f":_7ad.arg=f.toFixed(_7ad.precision);break;case "g":if(Math.abs(f)<0.0001){_7ad.arg=f.toExponential(_7ad.precision>0?_7ad.precision-1:_7ad.precision);}else{_7ad.arg=f.toPrecision(_7ad.precision);}if(!_7ad.alternative){_7ad.arg=_7ad.arg.replace(/(\..*[^0])0*/,"$1");_7ad.arg=_7ad.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_7ad.doubleNotation+"'");}_7ad.arg=_7ad.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_7ad.arg=_7ad.arg.replace(/^\./,"0.");}if(_7ad.alternative){_7ad.arg=_7ad.arg.replace(/^(\d+)$/,"$1.");_7ad.arg=_7ad.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_7ad.sign){_7ad.arg=_7ad.sign+_7ad.arg;}_7ad.arg=_7ad.toUpper?_7ad.arg.toUpperCase():_7ad.arg.toLowerCase();},zeroPad:function(_7ae,_7af){_7af=(arguments.length==2)?_7af:_7ae.precision;if(typeof _7ae.arg!="string"){_7ae.arg=""+_7ae.arg;}var _7b0=_7af-10;while(_7ae.arg.length<_7b0){_7ae.arg=(_7ae.rightJustify)?_7ae.arg+this._zeros10:this._zeros10+_7ae.arg;}var pad=_7af-_7ae.arg.length;_7ae.arg=(_7ae.rightJustify)?_7ae.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_7ae.arg;},fitField:function(_7b1){if(_7b1.maxWidth>=0&&_7b1.arg.length>_7b1.maxWidth){return _7b1.arg.substring(0,_7b1.maxWidth);}if(_7b1.zeroPad){this.zeroPad(_7b1,_7b1.minWidth);return;}this.spacePad(_7b1);},spacePad:function(_7b2,_7b3){_7b3=(arguments.length==2)?_7b3:_7b2.minWidth;if(typeof _7b2.arg!="string"){_7b2.arg=""+_7b2.arg;}var _7b4=_7b3-10;while(_7b2.arg.length<_7b4){_7b2.arg=(_7b2.rightJustify)?_7b2.arg+this._spaces10:this._spaces10+_7b2.arg;}var pad=_7b3-_7b2.arg.length;_7b2.arg=(_7b2.rightJustify)?_7b2.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_7b2.arg;}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_7b5,node){return new dojo.dnd.move.constrainedMoveable(node,_7b5);},constructor:function(node,_7b6){if(!_7b6){_7b6={};}this.constraints=_7b6.constraints;this.within=_7b6.within;},onFirstMove:function(_7b7){var c=this.constraintBox=this.constraints.call(this,_7b7);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_7b7.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_7b8,_7b9){var c=this.constraintBox,s=_7b8.node.style;this.onMoving(_7b8,_7b9);_7b9.l=_7b9.l<c.l?c.l:c.r<_7b9.l?c.r:_7b9.l;_7b9.t=_7b9.t<c.t?c.t:c.b<_7b9.t?c.b:_7b9.t;s.left=_7b9.l+"px";s.top=_7b9.t+"px";this.onMoved(_7b8,_7b9);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_7ba,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_7ba);},constructor:function(node,_7bb){var box=_7bb&&_7bb.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_7bc,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_7bc);},constructor:function(node,_7bd){var area=_7bd&&_7bd.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _7be=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_7bf){if(!_7bf){_7bf={};}if(_7bf.timeout&&typeof _7bf.timeout=="number"&&_7bf.timeout>=0){this.timeout=_7bf.timeout;}},markupFactory:function(_7c0,node){return new dojo.dnd.TimedMoveable(node,_7c0);},onMoveStop:function(_7c1){if(_7c1._timer){clearTimeout(_7c1._timer);_7be.call(this,_7c1,_7c1._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_7c2,_7c3){_7c2._leftTop=_7c3;if(!_7c2._timer){var _7c4=this;_7c2._timer=setTimeout(function(){_7c2._timer=null;_7be.call(_7c4,_7c2,_7c2._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _7c5=this;dojo.mixin(_7c5,args);_7c5.node=args.node;_7c5._showArgs=dojo.mixin({},args);_7c5._showArgs.node=_7c5.node;_7c5._showArgs.duration=_7c5.showDuration;_7c5.showAnim=_7c5.showFunc(_7c5._showArgs);_7c5._hideArgs=dojo.mixin({},args);_7c5._hideArgs.node=_7c5.node;_7c5._hideArgs.duration=_7c5.hideDuration;_7c5.hideAnim=_7c5.hideFunc(_7c5._hideArgs);dojo.connect(_7c5.showAnim,"beforeBegin",dojo.hitch(_7c5.hideAnim,"stop",true));dojo.connect(_7c5.hideAnim,"beforeBegin",dojo.hitch(_7c5.showAnim,"stop",true));},show:function(_7c6){return this.showAnim.play(_7c6||0);},hide:function(_7c7){return this.hideAnim.play(_7c7||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_7c8={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _7c9=function(_7ca){this._index=-1;this._animations=_7ca||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_7c9,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_7cb,_7cc){if(!this._current){this._current=this._animations[this._index=0];}if(!_7cc&&this._current.status()=="playing"){return this;}var _7cd=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_7ce=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_7cf=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_7cd);d.disconnect(_7ce);d.disconnect(_7cf);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_7d0,_7d1){this.pause();var _7d2=this.duration*_7d0;this._current=null;d.some(this._animations,function(a){if(a.duration<=_7d2){this._current=a;return true;}_7d2-=a.duration;return false;});if(this._current){this._current.gotoPercent(_7d2/this._current.duration,_7d1);}return this;},stop:function(_7d3){if(this._current){if(_7d3){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_7c9,_7c8);dojo.fx.chain=function(_7d4){return new _7c9(_7d4);};var _7d5=function(_7d6){this._animations=_7d6||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_7d6,function(a){var _7d7=a.duration;if(a.delay){_7d7+=a.delay;}if(this.duration<_7d7){this.duration=_7d7;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_7d5,{_doAction:function(_7d8,args){d.forEach(this._animations,function(a){a[_7d8].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_7d9,args){var t=this._pseudoAnimation;t[_7d9].apply(t,args);},play:function(_7da,_7db){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_7dc,_7dd){var ms=this.duration*_7dc;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_7dd);});this._call("gotoPercent",arguments);return this;},stop:function(_7de){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_7d5,_7c8);dojo.fx.combine=function(_7df){return new _7d5(_7df);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _7e0=d.style(node,"height");return Math.max(_7e0,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{state:"",reset:function(){dojo.forEach(this.getDescendants(),function(_7e1){if(_7e1.reset){_7e1.reset();}});},validate:function(){var _7e2=false;return dojo.every(dojo.map(this.getDescendants(),function(_7e3){_7e3._hasBeenBlurred=true;var _7e4=_7e3.disabled||!_7e3.validate||_7e3.validate();if(!_7e4&&!_7e2){dojo.window.scrollIntoView(_7e3.containerNode||_7e3.domNode);_7e3.focus();_7e2=true;}return _7e4;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_7e5){if(!_7e5.name){return;}var _7e6=map[_7e5.name]||(map[_7e5.name]=[]);_7e6.push(_7e5);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _7e7=map[name],_7e8=dojo.getObject(name,false,obj);if(_7e8===undefined){continue;}if(!dojo.isArray(_7e8)){_7e8=[_7e8];}if(typeof _7e7[0].checked=="boolean"){dojo.forEach(_7e7,function(w,i){w.set("value",dojo.indexOf(_7e8,w.value)!=-1);});}else{if(_7e7[0].multiple){_7e7[0].set("value",_7e8);}else{dojo.forEach(_7e7,function(w,i){w.set("value",_7e8[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_7e9){var name=_7e9.name;if(!name||_7e9.disabled){return;}var _7ea=_7e9.get("value");if(typeof _7e9.checked=="boolean"){if(/Radio/.test(_7e9.declaredClass)){if(_7ea!==false){dojo.setObject(name,_7ea,obj);}else{_7ea=dojo.getObject(name,false,obj);if(_7ea===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_7ea!==false){ary.push(_7ea);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_7ea);}else{dojo.setObject(name,[prev,_7ea],obj);}}else{dojo.setObject(name,_7ea,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_7eb){},_getState:function(){var _7ec=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_7ec,"Error")>=0?"Error":dojo.indexOf(_7ec,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_7ed){var _7ee=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_7ed?function(name,val){_7ee[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _7ef=(this._childConnections=[]),_7f0=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_7f1){dojo.forEach(["state","disabled"],function(attr){_7f0.push(_7f1.watch(attr,function(attr,_7f2,_7f3){_7ee.set("state",_7ee._getState());}));});});var _7f4=function(){if(_7ee._onChangeDelayTimer){clearTimeout(_7ee._onChangeDelayTimer);}_7ee._onChangeDelayTimer=setTimeout(function(){delete _7ee._onChangeDelayTimer;_7ee._set("value",_7ee.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_7f5){_7ef.push(_7ee.connect(_7f5,"onChange",_7f4));_7f0.push(_7f5.watch("disabled",_7f4));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_7f6,_7f7){this.onValidStateChange(_7f7=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_7f8){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _7f9=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_7f9.lowest||_7f9.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_7f9.last||_7f9.highest||this._firstFocusItem;}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_7fa){this.node.className="dijitDialogUnderlay "+_7fa;this._set("class",_7fa);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _7fb=dojo.window.getBox();os.top=_7fb.t+"px";os.left=_7fb.l+"px";is.width=_7fb.w+"px";is.height=_7fb.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\n</div>\n"),_setTitleAttr:function(_7fc){this.containerNode.title=_7fc;this._set("title",_7fc);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_7fd,_7fe){var newC="dijitTooltipAB"+(_7fe.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_7fe.charAt(0)=="T"?"Below":"Above");dojo.replaceClass(this.domNode,newC,this._currentOrientClass||"");this._currentOrientClass=newC;},focus:function(){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _7ff=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(dojo.hitch(this,"onCancel"),0);dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_7ff){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_7ff){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _800=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_800);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{display:"none",position:"absolute"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=dojo.position(e.node);}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});this._dndListener=dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{dojo.style(this.containerNode,{width:"auto",height:"auto"});}var mb=dojo._getMarginSize(this.domNode);var _801=dojo.window.getBox();if(mb.w>=_801.w||mb.h>=_801.h){var w=Math.min(mb.w,Math.floor(_801.w*0.75)),h=Math.min(mb.h,Math.floor(_801.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode,_802=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_802.l+(p?p.x:(_802.w-bb.w)/2)),t=Math.floor(_802.t+(p?p.y:(_802.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _803=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_803){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_803){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();dijit._DialogLevelManager.hide(this);}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _804=dojo.window.getBox();if(!this._oldViewport||_804.h!=this._oldViewport.h||_804.w!=this._oldViewport.w){this.layout();this._oldViewport=_804;}}));this._modalconnects.push(dojo.connect(this.domNode,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _805;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_805.stop();delete this._fadeInDeferred;}));_805=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){dijit._DialogLevelManager.show(this,this.underlayAttrs);}),onEnd:dojo.hitch(this,function(){if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized||!this.open){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _806;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_806.stop();delete this._fadeOutDeferred;}));_806=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";dijit._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}if(this._dndListener){dojo.unsubscribe(this._dndListener);}dojo.forEach(this._modalconnects,dojo.disconnect);dijit._DialogLevelManager.hide(this);this.inherited(arguments);}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._DialogLevelManager={show:function(_807,_808){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_807);var _809=dijit._underlay;if(!_809||_809._destroyed){_809=dijit._underlay=new dijit.DialogUnderlay(_808);}else{_809.set(_807.underlayAttrs);}var _80a=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_809.show();}dojo.style(dijit._underlay.domNode,"zIndex",_80a-1);dojo.style(_807.domNode,"zIndex",_80a);ds.push({dialog:_807,underlayAttrs:_808,zIndex:_80a});},hide:function(_80b){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_80b){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!dijit._underlay._destroyed){dijit._underlay.hide();}}else{dojo.style(dijit._underlay.domNode,"zIndex",pd.zIndex-1);dijit._underlay.set(pd.underlayAttrs);}if(_80b.refocus){var _80c=pd.focus;if(!_80c||(pd.dialog&&!dojo.isDescendant(_80c.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_80c=pd.dialog._firstFocusItem;}try{dijit.focus(_80c);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_80b);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_80d){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_80d;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_80e){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_80e.url;this._ccUrl=_80e.url;this.url=_80e.url;this._jsonData=_80e.data;this.data=null;this._datatypeMap=_80e.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_80f){return dojo.date.stamp.fromISOString(_80f);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_80e.urlPreventCache!==undefined){this.urlPreventCache=_80e.urlPreventCache?true:false;}if(_80e.hierarchical!==undefined){this.hierarchical=_80e.hierarchical?true:false;}if(_80e.clearOnClose){this.clearOnClose=true;}if("failOk" in _80e){this.failOk=_80e.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_810){if(typeof _810!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_811,_812){var _813=this.getValues(item,_811);return (_813.length>0)?_813[0]:_812;},getValues:function(item,_814){this._assertIsItem(item);this._assertIsAttribute(_814);return (item[_814]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _815=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_815.push(key);}}return _815;},hasAttribute:function(item,_816){this._assertIsItem(item);this._assertIsAttribute(_816);return (_816 in item);},containsValue:function(item,_817,_818){var _819=undefined;if(typeof _818==="string"){_819=dojo.data.util.filter.patternToRegExp(_818,false);}return this._containsValue(item,_817,_818,_819);},_containsValue:function(item,_81a,_81b,_81c){return dojo.some(this.getValues(item,_81a),function(_81d){if(_81d!==null&&!dojo.isObject(_81d)&&_81c){if(_81d.toString().match(_81c)){return true;}}else{if(_81b===_81d){return true;}}});},isItem:function(_81e){if(_81e&&_81e[this._storeRefPropName]===this){if(this._arrayOfAllItems[_81e[this._itemNumPropName]]===_81e){return true;}}return false;},isItemLoaded:function(_81f){return this.isItem(_81f);},loadItem:function(_820){this._assertIsItem(_820.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_821,_822,_823){var self=this,_824=function(_825,_826){var _827=[],i,key;if(_825.query){var _828,_829=_825.queryOptions?_825.queryOptions.ignoreCase:false;var _82a={};for(key in _825.query){_828=_825.query[key];if(typeof _828==="string"){_82a[key]=dojo.data.util.filter.patternToRegExp(_828,_829);}else{if(_828 instanceof RegExp){_82a[key]=_828;}}}for(i=0;i<_826.length;++i){var _82b=true;var _82c=_826[i];if(_82c===null){_82b=false;}else{for(key in _825.query){_828=_825.query[key];if(!self._containsValue(_82c,key,_828,_82a[key])){_82b=false;}}}if(_82b){_827.push(_82c);}}_822(_827,_825);}else{for(i=0;i<_826.length;++i){var item=_826[i];if(item!==null){_827.push(item);}}_822(_827,_825);}};if(this._loadFinished){_824(_821,this._getItemsArray(_821.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_821,filter:_824});}else{this._loadInProgress=true;var _82d={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _82e=dojo.xhrGet(_82d);_82e.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_824(_821,self._getItemsArray(_821.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_823(e,_821);}});_82e.addErrback(function(_82f){self._loadInProgress=false;_823(_82f,_821);});var _830=null;if(_821.abort){_830=_821.abort;}_821.abort=function(){var df=_82e;if(df&&df.fired===-1){df.cancel();df=null;}if(_830){_830.call(_821);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_824(_821,this._getItemsArray(_821.queryOptions));}catch(e){_823(e,_821);}}else{_823(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_821);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _831=this._queuedFetches[i],_832=_831.args,_833=_831.filter;if(_833){_833(_832,this._getItemsArray(_832.queryOptions));}else{this.fetchItemByIdentity(_832);}}this._queuedFetches=[];}},_getItemsArray:function(_834){if(_834&&_834.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_835){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_836){var _837=false,self=this;function _838(_839){var _83a=((_839!==null)&&(typeof _839==="object")&&(!dojo.isArray(_839)||_837)&&(!dojo.isFunction(_839))&&(_839.constructor==Object||dojo.isArray(_839))&&(typeof _839._reference==="undefined")&&(typeof _839._type==="undefined")&&(typeof _839._value==="undefined")&&self.hierarchical);return _83a;};function _83b(_83c){self._arrayOfAllItems.push(_83c);for(var _83d in _83c){var _83e=_83c[_83d];if(_83e){if(dojo.isArray(_83e)){var _83f=_83e;for(var k=0;k<_83f.length;++k){var _840=_83f[k];if(_838(_840)){_83b(_840);}}}else{if(_838(_83e)){_83b(_83e);}}}}};this._labelAttr=_836.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_836.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_837=true;}_83b(item);item[this._rootItemPropName]=true;}var _841={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _842=item[key];if(_842!==null){if(!dojo.isArray(_842)){item[key]=[_842];}}else{item[key]=[null];}}_841[key]=key;}}while(_841[this._storeRefPropName]){this._storeRefPropName+="_";}while(_841[this._itemNumPropName]){this._itemNumPropName+="_";}while(_841[this._reverseRefMap]){this._reverseRefMap+="_";}var _843;var _844=_836.identifier;if(_844){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_844;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_843=item[_844];var _845=_843[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_845)){this._itemsByIdentity[_845]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_844+"].  Value collided: ["+_845+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_844+"].  Value collided: ["+_845+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_843=item[key];for(var j=0;j<_843.length;++j){_842=_843[j];if(_842!==null&&typeof _842=="object"){if(("_type" in _842)&&("_value" in _842)){var type=_842._type;var _846=this._datatypeMap[type];if(!_846){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_846)){_843[j]=new _846(_842._value);}else{if(dojo.isFunction(_846.deserialize)){_843[j]=_846.deserialize(_842._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_842._reference){var _847=_842._reference;if(!dojo.isObject(_847)){_843[j]=this._getItemByIdentity(_847);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _848=this._arrayOfAllItems[k],_849=true;for(var _84a in _847){if(_848[_84a]!=_847[_84a]){_849=false;}}if(_849){_843[j]=_848;}}}if(this.referenceIntegrity){var _84b=_843[j];if(this.isItem(_84b)){this._addReferenceToMap(_84b,item,key);}}}else{if(this.isItem(_842)){if(this.referenceIntegrity){this._addReferenceToMap(_842,item,key);}}}}}}}},_addReferenceToMap:function(_84c,_84d,_84e){},getIdentity:function(item){var _84f=this._features["dojo.data.api.Identity"];if(_84f===Number){return item[this._itemNumPropName];}else{var _850=item[_84f];if(_850){return _850[0];}}return null;},fetchItemByIdentity:function(_851){var item,_852;if(!this._loadFinished){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_851});}else{this._loadInProgress=true;var _853={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _854=dojo.xhrGet(_853);_854.addCallback(function(data){var _855=_851.scope?_851.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_851.identity);if(_851.onItem){_851.onItem.call(_855,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_851.onError){_851.onError.call(_855,error);}}});_854.addErrback(function(_856){self._loadInProgress=false;if(_851.onError){var _857=_851.scope?_851.scope:dojo.global;_851.onError.call(_857,_856);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_851.identity);if(_851.onItem){_852=_851.scope?_851.scope:dojo.global;_851.onItem.call(_852,item);}}}}else{item=this._getItemByIdentity(_851.identity);if(_851.onItem){_852=_851.scope?_851.scope:dojo.global;_851.onItem.call(_852,item);}}},_getItemByIdentity:function(_858){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_858)){item=this._itemsByIdentity[_858];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_858)){item=this._arrayOfAllItems[_858];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _859=this._features["dojo.data.api.Identity"];if(_859===Number){return null;}else{return [_859];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _85a={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _85b=dojo.xhrGet(_85a);_85b.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){throw e;}});_85b.addErrback(function(_85c){throw _85c;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.data.ItemFileWriteStore"]){dojo._hasResource["dojo.data.ItemFileWriteStore"]=true;dojo.provide("dojo.data.ItemFileWriteStore");dojo.declare("dojo.data.ItemFileWriteStore",dojo.data.ItemFileReadStore,{constructor:function(_85d){this._features["dojo.data.api.Write"]=true;this._features["dojo.data.api.Notification"]=true;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};if(!this._datatypeMap["Date"].serialize){this._datatypeMap["Date"].serialize=function(obj){return dojo.date.stamp.toISOString(obj,{zulu:true});};}if(_85d&&(_85d.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_85e){if(!_85e){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _85f=this.getFeatures()["dojo.data.api.Identity"];return _85f;},newItem:function(_860,_861){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _860!="object"&&typeof _860!="undefined"){throw new Error("newItem() was passed something other than an object");}var _862=null;var _863=this._getIdentifierAttribute();if(_863===Number){_862=this._arrayOfAllItems.length;}else{_862=_860[_863];if(typeof _862==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_862)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_862]==="undefined");}this._assert(typeof this._pending._newItems[_862]==="undefined");this._assert(typeof this._pending._deletedItems[_862]==="undefined");var _864={};_864[this._storeRefPropName]=this;_864[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_862]=_864;_864[_863]=[_862];}this._arrayOfAllItems.push(_864);var _865=null;if(_861&&_861.parent&&_861.attribute){_865={item:_861.parent,attribute:_861.attribute,oldValue:undefined};var _866=this.getValues(_861.parent,_861.attribute);if(_866&&_866.length>0){var _867=_866.slice(0,_866.length);if(_866.length===1){_865.oldValue=_866[0];}else{_865.oldValue=_866.slice(0,_866.length);}_867.push(_864);this._setValueOrValues(_861.parent,_861.attribute,_867,false);_865.newValue=this.getValues(_861.parent,_861.attribute);}else{this._setValueOrValues(_861.parent,_861.attribute,_864,false);_865.newValue=_864;}}else{_864[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_864);}this._pending._newItems[_862]=_864;for(var key in _860){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _868=_860[key];if(!dojo.isArray(_868)){_868=[_868];}_864[key]=_868;if(this.referenceIntegrity){for(var i=0;i<_868.length;i++){var val=_868[i];if(this.isItem(val)){this._addReferenceToMap(val,_864,key);}}}}this.onNew(_864,_865);return _864;},_removeArrayElement:function(_869,_86a){var _86b=dojo.indexOf(_869,_86a);if(_86b!=-1){_869.splice(_86b,1);return true;}return false;},deleteItem:function(item){this._assert(!this._saveInProgress);this._assertIsItem(item);var _86c=item[this._itemNumPropName];var _86d=this.getIdentity(item);if(this.referenceIntegrity){var _86e=this.getAttributes(item);if(item[this._reverseRefMap]){item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);}dojo.forEach(_86e,function(_86f){dojo.forEach(this.getValues(item,_86f),function(_870){if(this.isItem(_870)){if(!item["backupRefs_"+this._reverseRefMap]){item["backupRefs_"+this._reverseRefMap]=[];}item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_870),attr:_86f});this._removeReferenceFromMap(_870,item,_86f);}},this);},this);var _871=item[this._reverseRefMap];if(_871){for(var _872 in _871){var _873=null;if(this._itemsByIdentity){_873=this._itemsByIdentity[_872];}else{_873=this._arrayOfAllItems[_872];}if(_873){for(var _874 in _871[_872]){var _875=this.getValues(_873,_874)||[];var _876=dojo.filter(_875,function(_877){return !(this.isItem(_877)&&this.getIdentity(_877)==_86d);},this);this._removeReferenceFromMap(item,_873,_874);if(_876.length<_875.length){this._setValueOrValues(_873,_874,_876,true);}}}}}}this._arrayOfAllItems[_86c]=null;item[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_86d];}this._pending._deletedItems[_86d]=item;if(item[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,item);}this.onDelete(item);return true;},setValue:function(item,_878,_879){return this._setValueOrValues(item,_878,_879,true);},setValues:function(item,_87a,_87b){return this._setValueOrValues(item,_87a,_87b,true);},unsetAttribute:function(item,_87c){return this._setValueOrValues(item,_87c,[],true);},_setValueOrValues:function(item,_87d,_87e,_87f){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_87d));this._assert(typeof _87e!=="undefined");var _880=this._getIdentifierAttribute();if(_87d==_880){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _881=this._getValueOrValues(item,_87d);var _882=this.getIdentity(item);if(!this._pending._modifiedItems[_882]){var _883={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_883[key]=item[key];}else{if(key===this._reverseRefMap){_883[key]=dojo.clone(item[key]);}else{_883[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_882]=_883;}var _884=false;if(dojo.isArray(_87e)&&_87e.length===0){_884=delete item[_87d];_87e=undefined;if(this.referenceIntegrity&&_881){var _885=_881;if(!dojo.isArray(_885)){_885=[_885];}for(var i=0;i<_885.length;i++){var _886=_885[i];if(this.isItem(_886)){this._removeReferenceFromMap(_886,item,_87d);}}}}else{var _887;if(dojo.isArray(_87e)){var _888=_87e;_887=_87e.slice(0,_87e.length);}else{_887=[_87e];}if(this.referenceIntegrity){if(_881){var _885=_881;if(!dojo.isArray(_885)){_885=[_885];}var map={};dojo.forEach(_885,function(_889){if(this.isItem(_889)){var id=this.getIdentity(_889);map[id.toString()]=true;}},this);dojo.forEach(_887,function(_88a){if(this.isItem(_88a)){var id=this.getIdentity(_88a);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_88a,item,_87d);}}},this);for(var rId in map){var _88b;if(this._itemsByIdentity){_88b=this._itemsByIdentity[rId];}else{_88b=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_88b,item,_87d);}}else{for(var i=0;i<_887.length;i++){var _886=_887[i];if(this.isItem(_886)){this._addReferenceToMap(_886,item,_87d);}}}}item[_87d]=_887;_884=true;}if(_87f){this.onSet(item,_87d,_881,_87e);}return _884;},_addReferenceToMap:function(_88c,_88d,_88e){var _88f=this.getIdentity(_88d);var _890=_88c[this._reverseRefMap];if(!_890){_890=_88c[this._reverseRefMap]={};}var _891=_890[_88f];if(!_891){_891=_890[_88f]={};}_891[_88e]=true;},_removeReferenceFromMap:function(_892,_893,_894){var _895=this.getIdentity(_893);var _896=_892[this._reverseRefMap];var _897;if(_896){for(_897 in _896){if(_897==_895){delete _896[_897][_894];if(this._isEmpty(_896[_897])){delete _896[_897];}}}if(this._isEmpty(_896)){delete _892[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i<this._arrayOfAllItems.length;i++){var item=this._arrayOfAllItems[i];if(item&&item[this._reverseRefMap]){}}},_getValueOrValues:function(item,_898){var _899=undefined;if(this.hasAttribute(item,_898)){var _89a=this.getValues(item,_898);if(_89a.length==1){_899=_89a[0];}else{_899=_89a;}}return _899;},_flatten:function(_89b){if(this.isItem(_89b)){var item=_89b;var _89c=this.getIdentity(item);var _89d={_reference:_89c};return _89d;}else{if(typeof _89b==="object"){for(var type in this._datatypeMap){var _89e=this._datatypeMap[type];if(dojo.isObject(_89e)&&!dojo.isFunction(_89e)){if(_89b instanceof _89e.type){if(!_89e.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_89e.serialize(_89b)};}}else{if(_89b instanceof _89e){return {_type:type,_value:_89b.toString()};}}}}return _89b;}},_getNewFileContentString:function(){var _89f={};var _8a0=this._getIdentifierAttribute();if(_8a0!==Number){_89f.identifier=_8a0;}if(this._labelAttr){_89f.label=this._labelAttr;}_89f.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _8a1={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _8a2=key;var _8a3=this.getValues(item,_8a2);if(_8a3.length==1){_8a1[_8a2]=this._flatten(_8a3[0]);}else{var _8a4=[];for(var j=0;j<_8a3.length;++j){_8a4.push(this._flatten(_8a3[j]));_8a1[_8a2]=_8a4;}}}}_89f.items.push(_8a1);}}var _8a5=true;return dojo.toJson(_89f,_8a5);},_isEmpty:function(_8a6){var _8a7=true;if(dojo.isObject(_8a6)){var i;for(i in _8a6){_8a7=false;break;}}else{if(dojo.isArray(_8a6)){if(_8a6.length>0){_8a7=false;}}}return _8a7;},save:function(_8a8){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _8a9=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_8a8&&_8a8.onComplete){var _8aa=_8a8.scope||dojo.global;_8a8.onComplete.call(_8aa);}};var _8ab=function(err){self._saveInProgress=false;if(_8a8&&_8a8.onError){var _8ac=_8a8.scope||dojo.global;_8a8.onError.call(_8ac,err);}};if(this._saveEverything){var _8ad=this._getNewFileContentString();this._saveEverything(_8a9,_8ab,_8ad);}if(this._saveCustom){this._saveCustom(_8a9,_8ab);}if(!this._saveEverything&&!this._saveCustom){_8a9();}},revert:function(){this._assert(!this._saveInProgress);var _8ae;for(_8ae in this._pending._modifiedItems){var _8af=this._pending._modifiedItems[_8ae];var _8b0=null;if(this._itemsByIdentity){_8b0=this._itemsByIdentity[_8ae];}else{_8b0=this._arrayOfAllItems[_8ae];}_8af[this._storeRefPropName]=this;for(key in _8b0){delete _8b0[key];}dojo.mixin(_8b0,_8af);}var _8b1;for(_8ae in this._pending._deletedItems){_8b1=this._pending._deletedItems[_8ae];_8b1[this._storeRefPropName]=this;var _8b2=_8b1[this._itemNumPropName];if(_8b1["backup_"+this._reverseRefMap]){_8b1[this._reverseRefMap]=_8b1["backup_"+this._reverseRefMap];delete _8b1["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_8b2]=_8b1;if(this._itemsByIdentity){this._itemsByIdentity[_8ae]=_8b1;}if(_8b1[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_8b1);}}for(_8ae in this._pending._deletedItems){_8b1=this._pending._deletedItems[_8ae];if(_8b1["backupRefs_"+this._reverseRefMap]){dojo.forEach(_8b1["backupRefs_"+this._reverseRefMap],function(_8b3){var _8b4;if(this._itemsByIdentity){_8b4=this._itemsByIdentity[_8b3.id];}else{_8b4=this._arrayOfAllItems[_8b3.id];}this._addReferenceToMap(_8b4,_8b1,_8b3.attr);},this);delete _8b1["backupRefs_"+this._reverseRefMap];}}for(_8ae in this._pending._newItems){var _8b5=this._pending._newItems[_8ae];_8b5[this._storeRefPropName]=null;this._arrayOfAllItems[_8b5[this._itemNumPropName]]=null;if(_8b5[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_8b5);}if(this._itemsByIdentity){delete this._itemsByIdentity[_8ae];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _8b6=this.getIdentity(item);return new Boolean(this._pending._newItems[_8b6]||this._pending._modifiedItems[_8b6]||this._pending._deletedItems[_8b6]).valueOf();}else{if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){return true;}return false;}},onSet:function(item,_8b7,_8b8,_8b9){},onNew:function(_8ba,_8bb){},onDelete:function(_8bc){},close:function(_8bd){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");}}}});}dojo.i18n._preloadLocalizations("dojo.nls.vclEditBlockAllocation",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
