/*
	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(){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(_a5,_a6){this.create(_a5,_a6);},create:function(_a7,_a8){this.srcNodeRef=dojo.byId(_a8);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_a7){this.params=_a7;dojo._mixin(this,_a7);}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 _a9=this.srcNodeRef;if(_a9&&_a9.parentNode&&this.domNode!==_a9){_a9.parentNode.replaceChild(this.domNode,_a9);}}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 _aa=function(_ab,_ac){if((_ac.params&&_ab in _ac.params)||_ac[_ab]){_ac.set(_ab,_ac[_ab]);}};for(var _ad in this.attributeMap){_aa(_ad,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_aa(a,this);}},this);},_getSetterAttributes:function(){var _ae=this.constructor;if(!_ae._setterAttrs){var r=(_ae._setterAttrs=[]),_af,_b0=_ae.prototype;for(var _b1 in _b0){if(dojo.isFunction(_b0[_b1])&&(_af=_b1.match(/^_set([a-zA-Z]*)Attr$/))&&_af[1]){r.push(_af[1].charAt(0).toLowerCase()+_af[1].substr(1));}}}return _ae._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _b2=this.baseClass.split(" ");if(!this.isLeftToRight()){_b2=_b2.concat(dojo.map(_b2,function(_b3){return _b3+"Rtl";}));}dojo.addClass(this.domNode,_b2);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_b4){this._beingDestroyed=true;this.destroyDescendants(_b4);this.destroy(_b4);},destroy:function(_b5){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_b6){dfe(_b6,d.disconnect);});dfe(this._subscribes,function(_b7){dun(_b7);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_b5);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_b8){if(this.bgIframe){this.bgIframe.destroy(_b8);delete this.bgIframe;}if(this.domNode){if(_b8){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_b8){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_b9){dojo.forEach(this.getChildren(),function(_ba){if(_ba.destroyRecursive){_ba.destroyRecursive(_b9);}});},uninitialize:function(){return false;},_setClassAttr:function(_bb){var _bc=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_bc,_bb,this["class"]);this._set("class",_bb);},_setStyleAttr:function(_bd){var _be=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_bd)){dojo.style(_be,_bd);}else{if(_be.style.cssText){_be.style.cssText+="; "+_bd;}else{_be.style.cssText=_bd;}}this._set("style",_bd);},_attrToDom:function(_bf,_c0){var _c1=this.attributeMap[_bf];dojo.forEach(dojo.isArray(_c1)?_c1:[_c1],function(_c2){var _c3=this[_c2.node||_c2||"domNode"];var _c4=_c2.type||"attribute";switch(_c4){case "attribute":if(dojo.isFunction(_c0)){_c0=dojo.hitch(this,_c0);}var _c5=_c2.attribute?_c2.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_bf)?_bf.toLowerCase():_bf);dojo.attr(_c3,_c5,_c0);break;case "innerText":_c3.innerHTML="";_c3.appendChild(dojo.doc.createTextNode(_c0));break;case "innerHTML":_c3.innerHTML=_c0;break;case "class":dojo.replaceClass(_c3,_c0,this[_bf]);break;}},this);},get:function(_c6){var _c7=this._getAttrNames(_c6);return this[_c7.g]?this[_c7.g]():this[_c6];},set:function(_c8,_c9){if(typeof _c8==="object"){for(var x in _c8){this.set(x,_c8[x]);}return this;}var _ca=this._getAttrNames(_c8);if(this[_ca.s]){var _cb=this[_ca.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(_c8 in this.attributeMap){this._attrToDom(_c8,_c9);}this._set(_c8,_c9);}return _cb||this;},_attrPairNames:{},_getAttrNames:function(_cc){var apn=this._attrPairNames;if(apn[_cc]){return apn[_cc];}var uc=_cc.charAt(0).toUpperCase()+_cc.substr(1);return (apn[_cc]={n:_cc+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_cd,_ce){var _cf=this[_cd];this[_cd]=_ce;if(this._watchCallbacks&&this._created&&_ce!==_cf){this._watchCallbacks(_cd,_cf,_ce);}},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,_d0,_d1){var _d2=[dojo._connect(obj,_d0,this,_d1)];this._connects.push(_d2);return _d2;},disconnect:function(_d3){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_d3){dojo.forEach(_d3,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_d4,_d5){var _d6=dojo.subscribe(_d4,this,_d5);this._subscribes.push(_d6);return _d6;},unsubscribe:function(_d7){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_d7){dojo.unsubscribe(_d7);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_d8,_d9){if(_d8.declaredClass&&_d8.addChild){_d8.addChild(this,_d9);}else{dojo.place(this.domNode,_d8,_d9);}return this;},defer:function(fcn,_da){var _db=setTimeout(dojo.hitch(this,function(){_db=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_da||0);return {remove:function(){if(_db){clearTimeout(_db);_db=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 _dc=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _dd=dojo._docScroll();return {w:_dc.clientWidth,h:_dc.clientHeight,l:_dd.x,t:_dd.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(_de,pos){_de=dojo.byId(_de);var _df,doc=_de.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){_df=dojo.body();var _e0=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_df,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_e0,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_e0.removeChild(div);_df.removeChild(_e0);}if(!("position_fixed_support" in dojo.window)){_df=dojo.body();var _e1=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_df,"last"),_e2=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_e1,"last");dojo.window.position_fixed_support=dojo.position(_e2).x!=dojo.position(_e1).x;_e1.removeChild(_e2);_df.removeChild(_e1);}try{_df=doc.body||doc.getElementsByTagName("body")[0];var _e3=doc.documentElement||_df.parentNode,_e4=dojo.isIE,_e5=dojo.isWebKit;if(_de==_df||_de==_e3){return;}if(!(dojo.isMozilla||_e4||_e5||dojo.isOpera)&&("scrollIntoView" in _de)){_de.scrollIntoView(false);return;}var _e6=doc.compatMode=="BackCompat",_e7=Math.min(_df.clientWidth||_e3.clientWidth,_e3.clientWidth||_df.clientWidth),_e8=Math.min(_df.clientHeight||_e3.clientHeight,_e3.clientHeight||_df.clientHeight),_e9=(_e5||_e6)?_df:_e3,_ea=pos||dojo.position(_de),el=_de.parentNode,_eb=function(el){return (_e4<=6||(_e4==7&&_e6))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_eb(_de)){return;}while(el){if(el==_df){el=_e9;}var _ec=dojo.position(el),_ed=_eb(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_e9){_ec.w=_e7;_ec.h=_e8;if(_e9==_e3&&_e4&&rtl){_ec.x+=_e9.offsetWidth-_ec.w;}if(_ec.x<0||!_e4||_e4>=9){_ec.x=0;}if(_ec.y<0||!_e4||_e4>=9){_ec.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_ec.w-=pb.w;_ec.h-=pb.h;_ec.x+=pb.l;_ec.y+=pb.t;var _ee=el.clientWidth,_ef=_ec.w-_ee;if(_ee>0&&_ef>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_ec.x+=_ef;}_ec.w=_ee;}_ee=el.clientHeight;_ef=_ec.h-_ee;if(_ee>0&&_ef>0){_ec.h=_ee;}}if(_ed){if(_ec.y<0){_ec.h+=_ec.y;_ec.y=0;}if(_ec.x<0){_ec.w+=_ec.x;_ec.x=0;}if(_ec.y+_ec.h>_e8){_ec.h=_e8-_ec.y;}if(_ec.x+_ec.w>_e7){_ec.w=_e7-_ec.x;}}var l=_ea.x-_ec.x,t=_ea.y-_ec.y,r=l+_ea.w-_ec.w,bot=t+_ea.h-_ec.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_e9||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_e4==8&&!_e6)||_e4>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_ea.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_e9||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_ea.y-=s;}el=(el!=_e9)&&!_ed&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_de.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(_f0){var _f1=dojo.doc,_f2=_f0.mark;if(_f2){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_f2.pRange){var r=_f2;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_f2);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_f1.selection&&_f2){var rg;if(_f2.pRange){rg=_f2.range;}else{if(dojo.isArray(_f2)){rg=_f1.body.createControlRange();dojo.forEach(_f2,function(n){rg.addElement(n);});}else{rg=_f1.body.createTextRange();rg.moveToBookmark(_f2);}}rg.select();}}}},getFocus:function(_f3,_f4){var _f5=!dijit._curFocus||(_f3&&dojo.isDescendant(dijit._curFocus,_f3.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_f5,bookmark:(_f5==dijit._curFocus)&&dojo.withGlobal(_f4||dojo.global,dijit.getBookmark),openedForWindow:_f4};},focus:function(_f6){if(!_f6){return;}var _f7="node" in _f6?_f6.node:_f6,_f8=_f6.bookmark,_f9=_f6.openedForWindow,_fa=_f8?_f8.isCollapsed:false;if(_f7){var _fb=(_f7.tagName.toLowerCase()=="iframe")?_f7.contentWindow:_f7;if(_fb&&_fb.focus){try{_fb.focus();}catch(e){}}dijit._onFocusNode(_f7);}if(_f8&&dojo.withGlobal(_f9||dojo.global,dijit.isCollapsed)&&!_fa){if(_f9){_f9.focus();}try{dojo.withGlobal(_f9||dojo.global,dijit.moveToBookmark,null,[_f8]);}catch(e2){}}},_activeStack:[],registerIframe:function(_fc){return dijit.registerWin(_fc.contentWindow,_fc);},unregisterIframe:function(_fd){dijit.unregisterWin(_fd);},registerWin:function(_fe,_ff){var _100=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_ff||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_fe.document.documentElement:_fe.document;if(doc){if(dojo.isIE){_fe.document.body.attachEvent("onmousedown",_100);var _101=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_ff||evt.srcElement);}else{dijit._onTouchNode(_ff||evt.srcElement);}};doc.attachEvent("onactivate",_101);var _102=function(evt){dijit._onBlurNode(_ff||evt.srcElement);};doc.attachEvent("ondeactivate",_102);return function(){_fe.document.detachEvent("onmousedown",_100);doc.detachEvent("onactivate",_101);doc.detachEvent("ondeactivate",_102);doc=null;};}else{doc.body.addEventListener("mousedown",_100,true);var _103=function(evt){dijit._onFocusNode(_ff||evt.target);};doc.addEventListener("focus",_103,true);var _104=function(evt){dijit._onBlurNode(_ff||evt.target);};doc.addEventListener("blur",_104,true);return function(){doc.body.removeEventListener("mousedown",_100,true);doc.removeEventListener("focus",_103,true);doc.removeEventListener("blur",_104,true);doc=null;};}}},unregisterWin:function(_105){_105&&_105();},_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 _106=[];try{while(node){var _107=dojo.attr(node,"dijitPopupParent");if(_107){node=dijit.byId(_107).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"),_108=id&&dijit.byId(id);if(_108&&!(by=="mouse"&&_108.get("disabled"))){_106.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_106,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(_109,by){var _10a=dijit._activeStack;dijit._activeStack=_109;for(var _10b=0;_10b<Math.min(_10a.length,_109.length);_10b++){if(_10a[_10b]!=_109[_10b]){break;}}var _10c;for(var i=_10a.length-1;i>=_10b;i--){_10c=dijit.byId(_10a[i]);if(_10c){_10c._focused=false;_10c.set("focused",false);_10c._hasBeenBlurred=true;if(_10c._onBlur){_10c._onBlur(by);}dojo.publish("widgetBlur",[_10c,by]);}}for(i=_10b;i<_109.length;i++){_10c=dijit.byId(_109[i]);if(_10c){_10c._focused=true;_10c.set("focused",true);if(_10c._onFocus){_10c._onFocus(by);}dojo.publish("widgetFocus",[_10c,by]);}}}});dojo.addOnLoad(function(){var _10d=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_10d);_10d=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_10e){this.pairs=[];this.returnWrappers=_10e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_10f,wrap,_110,_111){this.pairs[((_111)?"unshift":"push")]([name,_10f,wrap,_110]);},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,_112,_113){var _114=dojo.map(_112,function(_115){var c={corner:_115,pos:{x:pos.x,y:pos.y}};if(_113){c.pos.x+=_115.charAt(1)=="L"?_113.x:-_113.x;c.pos.y+=_115.charAt(0)=="T"?_113.y:-_113.y;}return c;});return dijit._place(node,_114);};dijit._place=function(node,_116,_117,_118){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_116,function(_119){var _11a=_119.corner;var pos=_119.pos;var _11b=0;var _11c={w:_11a.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_11a.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_117){var res=_117(node,_119.aroundCorner,_11a,_11c,_118);_11b=typeof res=="undefined"?0:res;}var _11d=node.style;var _11e=_11d.display;var _11f=_11d.visibility;_11d.visibility="hidden";_11d.display="";var mb=dojo.marginBox(node);_11d.display=_11e;_11d.visibility=_11f;var _120=Math.max(view.l,_11a.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_121=Math.max(view.t,_11a.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_11a.charAt(1)=="L"?(_120+mb.w):pos.x),endY=Math.min(view.t+view.h,_11a.charAt(0)=="T"?(_121+mb.h):pos.y),_122=endX-_120,_123=endY-_121;_11b+=(mb.w-_122)+(mb.h-_123);if(best==null||_11b<best.overflow){best={corner:_11a,aroundCorner:_119.aroundCorner,x:_120,y:_121,w:_122,h:_123,overflow:_11b,spaceAvailable:_11c};}return !_11b;});if(best.overflow&&_117){_117(node,best.aroundCorner,best.corner,best.spaceAvailable,_118);}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,_124,_125,_126){_124=dojo.byId(_124);var _127=dojo.position(_124,true);return dijit._placeOnScreenAroundRect(node,_127.x,_127.y,_127.w,_127.h,_125,_126);};dijit.placeOnScreenAroundRectangle=function(node,_128,_129,_12a){return dijit._placeOnScreenAroundRect(node,_128.x,_128.y,_128.width,_128.height,_129,_12a);};dijit._placeOnScreenAroundRect=function(node,x,y,_12b,_12c,_12d,_12e){var _12f=[];for(var _130 in _12d){_12f.push({aroundCorner:_130,corner:_12d[_130],pos:{x:x+(_130.charAt(1)=="L"?0:_12b),y:y+(_130.charAt(0)=="T"?0:_12c)}});}return dijit._place(node,_12f,_12e,{w:_12b,h:_12c});};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,_131,_132,_133){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_134,_135){var _136={};dojo.forEach(_134,function(pos){switch(pos){case "after":_136[_135?"BR":"BL"]=_135?"BL":"BR";break;case "before":_136[_135?"BL":"BR"]=_135?"BR":"BL";break;case "below-alt":_135=!_135;case "below":_136[_135?"BL":"BR"]=_135?"TL":"TR";_136[_135?"BR":"BL"]=_135?"TR":"TL";break;case "above-alt":_135=!_135;case "above":default:_136[_135?"TL":"TR"]=_135?"BL":"BR";_136[_135?"TR":"TL"]=_135?"BR":"BL";break;}});return _136;};}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(_137){var node=_137.domNode||_137,_138=_137.declaredClass?_137._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_138){_138=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_138.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_137.declaredClass){_137._popupWrapper=_138;dojo.connect(_137,"destroy",function(){dojo.destroy(_138);delete _137._popupWrapper;});}}return _138;},moveOffScreen:function(_139){var _13a=this._createWrapper(_139);dojo.style(_13a,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_13b){var _13c=this._createWrapper(_13b);dojo.style(_13c,"display","none");},getTopPopup:function(){var _13d=this._stack;for(var pi=_13d.length-1;pi>0&&_13d[pi].parent===_13d[pi-1].widget;pi--){}return _13d[pi];},open:function(args){var _13e=this._stack,_13f=args.popup,_140=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"}),_141=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_13e.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_13e[_13e.length-1].widget.domNode))){dijit.popup.close(_13e[_13e.length-1].widget);}var _142=this._createWrapper(_13f);dojo.attr(_142,{id:id,style:{zIndex:this._beginZIndex+_13e.length},"class":"dijitPopup "+(_13f.baseClass||_13f["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_13f.bgIframe){_13f.bgIframe=new dijit.BackgroundIframe(_142);}}var best=_141?dijit.placeOnScreenAroundElement(_142,_141,_140,_13f.orient?dojo.hitch(_13f,"orient"):null):dijit.placeOnScreen(_142,args,_140=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_142.style.display="";_142.style.visibility="visible";_13f.domNode.style.visibility="visible";var _143=[];_143.push(dojo.connect(_142,"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 _144=this.getTopPopup();if(_144&&_144.onCancel){_144.onCancel();}}}}));if(_13f.onCancel){_143.push(dojo.connect(_13f,"onCancel",args.onCancel));}_143.push(dojo.connect(_13f,_13f.onExecute?"onExecute":"onChange",this,function(){var _145=this.getTopPopup();if(_145&&_145.onExecute){_145.onExecute();}}));_13e.push({widget:_13f,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_143});if(_13f.onOpen){_13f.onOpen(best);}return best;},close:function(_146){var _147=this._stack;while((_146&&dojo.some(_147,function(elem){return elem.widget==_146;}))||(!_146&&_147.length)){var top=_147.pop(),_148=top.widget,_149=top.onClose;if(_148.onClose){_148.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_148&&_148.domNode){this.hide(_148);}if(_149){_149();}}}};dijit._frames=new function(){var _14a=[];this.pop=function(){var _14b;if(_14a.length){_14b=_14a.pop();_14b.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\");'>";_14b=dojo.doc.createElement(html);}else{_14b=dojo.create("iframe");_14b.src="javascript:\"\"";_14b.className="dijitBackgroundIframe";dojo.style(_14b,"opacity",0.1);}_14b.tabIndex=-1;dijit.setWaiRole(_14b,"presentation");}return _14b;};this.push=function(_14c){_14c.style.display="none";_14a.push(_14c);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _14d=(this.iframe=dijit._frames.pop());node.appendChild(_14d);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_14d,{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,_14e=d.isOpera,maj=Math.floor,ff=d.isFF,_14f=d.boxModel.replace(/-/,""),_150={dj_quirks:d.isQuirks,dj_opera:_14e,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_150["dj_ie"]=true;_150["dj_ie"+maj(ie)]=true;_150["dj_iequirks"]=d.isQuirks;}if(ff){_150["dj_ff"+maj(ff)]=true;}_150["dj_"+_14f]=true;var _151="";for(var clz in _150){if(_150[clz]){_151+=clz+" ";}}html.className=d.trim(html.className+" "+_151);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _152="dj_rtl dijitRtl "+_151.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_152);}});})();}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,_153,node,_154,obj,_155,_156,_157){if(obj!=this._obj){this.stop();this._initialDelay=_156||500;this._subsequentDelay=_155||0.9;this._minDelay=_157||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_153,_154);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,_158,_159,_15a,_15b,_15c,_15d){if(_158.keyCode){_158.charOrCode=_158.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_158.charCode){_158.charOrCode=String.fromCharCode(_158.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==_158.charOrCode&&(_158.ctrlKey===undefined||_158.ctrlKey==evt.ctrlKey)&&(_158.altKey===undefined||_158.altKey==evt.altKey)&&(_158.metaKey===undefined||_158.metaKey==(evt.metaKey||false))&&(_158.shiftKey===undefined||_158.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_159,node,_15a,_158,_15b,_15c,_15d);}else{if(dijit.typematic._obj==_158){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_158){dijit.typematic.stop();}})];},addMouseListener:function(node,_15e,_15f,_160,_161,_162){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_15e,node,_15f,node,_160,_161,_162);}),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,_15e,node,_15f,node,_160,_161,_162);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_163,_164,_165,_166,_167,_168,_169,_16a){return this.addKeyListener(_164,_165,_166,_167,_168,_169,_16a).concat(this.addMouseListener(_163,_166,_167,_168,_169,_16a));}};}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 _16b=cs.backgroundImage;var _16c=(cs.borderTopColor==cs.borderRightColor)||(_16b!=null&&(_16b=="none"||_16b=="url(invalid-url:)"));dojo[_16c?"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 _16d=this.getWaiRole(elem);return role?(_16d.indexOf(role)>-1):(_16d.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 _16e=dojo.attr(elem,"role");if(!_16e){return;}if(role){var t=dojo.trim((" "+_16e+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_16f){return elem.hasAttribute?elem.hasAttribute("aria-"+_16f):!!elem.getAttribute("aria-"+_16f);},getWaiState:function(elem,_170){return elem.getAttribute("aria-"+_170)||"";},setWaiState:function(elem,_171,_172){elem.setAttribute("aria-"+_171,_172);},removeWaiState:function(elem,_173){elem.removeAttribute("aria-"+_173);}});}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(_174,_175){if(_174&&dojo.isFunction(_174._onConnect)){_174._onConnect(_175);}});dijit._connectOnUseEventHandler=function(_176){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _177=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_177);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_177);});})();}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(_178,_179){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(_17a){if(_17a in this._deferredConnects){var _17b=this[this._deferredConnects[_17a]||"domNode"];this.connect(_17b,_17a.toLowerCase(),_17a);delete this._deferredConnects[_17a];}},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,_17c){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_17c);},attr:function(name,_17d){if(dojo.config.isDebug){var _17e=arguments.callee._ach||(arguments.callee._ach={}),_17f=(arguments.callee.caller||"unknown caller").toString();if(!_17e[_17f]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_17f,"","2.0");_17e[_17f]=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,_180,_181){var d=dojo,dc=d._connect,_182=this.inherited(arguments,[obj,_180=="ondijitclick"?"onclick":_180,_181]);if(_180=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_181);_182.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 _182;},_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(_183,map,_184,_185){_185=_185||dojo.global;_184=_184?dojo.hitch(_185,_184):function(v){return v;};return _183.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_186,key,_187){var _188=dojo.getObject(key,false,map);if(_187){_188=dojo.getObject(_187,false,_185).call(_185,_188,key);}return _184(_188,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(_189,url,_18a){if(typeof _189=="string"){var _18b=dojo.moduleUrl(_189,url);}else{_18b=_189;_18a=url;}var key=_18b.toString();var val=_18a;if(_18a!=undefined&&!dojo.isString(_18a)){val=("value" in _18a?_18a.value:undefined);}var _18c=_18a&&_18a.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_18c?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_18c?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 _18d=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_18d){val=_18d[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 _18e=this.declaredClass,_18f=this;return dojo.string.substitute(tmpl,this,function(_190,key){if(key.charAt(0)=="!"){_190=dojo.getObject(key.substr(1),false,_18f);}if(typeof _190=="undefined"){throw new Error(_18e+" template:"+key);}if(_190==null){return "";}return key.charAt(0)=="!"?_190:_190.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _191=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_191)){node=dojo._toDom(this._stringRepl(_191));if(node.nodeType!=1){throw new Error("Invalid template: "+_191);}}else{node=_191.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(_192){var dest=this.containerNode;if(_192&&dest){while(_192.hasChildNodes()){dest.appendChild(_192.firstChild);}}},_attachTemplateNodes:function(_193,_194){_194=_194||function(n,p){return n.getAttribute(p);};var _195=dojo.isArray(_193)?_193:(_193.all||_193.getElementsByTagName("*"));var x=dojo.isArray(_193)?0:-1;for(;x<_195.length;x++){var _196=(x==-1)?_193:_195[x];if(this.widgetsInTemplate&&(_194(_196,"dojoType")||_194(_196,"data-dojo-type"))){continue;}var _197=_194(_196,"dojoAttachPoint")||_194(_196,"data-dojo-attach-point");if(_197){var _198,_199=_197.split(/\s*,\s*/);while((_198=_199.shift())){if(dojo.isArray(this[_198])){this[_198].push(_196);}else{this[_198]=_196;}this._attachPoints.push(_198);}}var _19a=_194(_196,"dojoAttachEvent")||_194(_196,"data-dojo-attach-event");if(_19a){var _19b,_19c=_19a.split(/\s*,\s*/);var trim=dojo.trim;while((_19b=_19c.shift())){if(_19b){var _19d=null;if(_19b.indexOf(":")!=-1){var _19e=_19b.split(":");_19b=trim(_19e[0]);_19d=trim(_19e[1]);}else{_19b=trim(_19b);}if(!_19d){_19d=_19b;}this._attachEvents.push(this.connect(_196,_19b,_19d));}}}var role=_194(_196,"waiRole");if(role){dijit.setWaiRole(_196,role);}var _19f=_194(_196,"waiState");if(_19f){dojo.forEach(_19f.split(/\s*,\s*/),function(_1a0){if(_1a0.indexOf("-")!=-1){var pair=_1a0.split("-");dijit.setWaiState(_196,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(_1a1){delete this[_1a1];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1a2,_1a3,_1a4){var _1a5=dijit._Templated._templateCache;var key=_1a3||_1a2;var _1a6=_1a5[key];if(_1a6){try{if(!_1a6.ownerDocument||_1a6.ownerDocument==dojo.doc){return _1a6;}}catch(e){}dojo.destroy(_1a6);}if(!_1a3){_1a3=dojo.cache(_1a2,{sanitize:true});}_1a3=dojo.string.trim(_1a3);if(_1a4||_1a3.match(/\$\{([^\}]+)\}/g)){return (_1a5[key]=_1a3);}else{var node=dojo._toDom(_1a3);if(node.nodeType!=1){throw new Error("Invalid template: "+_1a3);}return (_1a5[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1a7=dijit._Templated._templateCache;for(var key in _1a7){var _1a8=_1a7[key];if(typeof _1a8=="object"){dojo.destroy(_1a8);}delete _1a7[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(_1a9,_1aa){var _1ab=this.containerNode;if(_1aa&&typeof _1aa=="number"){var _1ac=this.getChildren();if(_1ac&&_1ac.length>=_1aa){_1ab=_1ac[_1aa-1].domNode;_1aa="after";}}dojo.place(_1a9.domNode,_1ab,_1aa);if(this._started&&!_1a9._started){_1a9.startup();}},removeChild:function(_1ad){if(typeof _1ad=="number"){_1ad=this.getChildren()[_1ad];}if(_1ad){var node=_1ad.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1ae){dojo.forEach(this.getChildren(),function(_1af){_1af.destroyRecursive(_1ae);});},_getSiblingOfChild:function(_1b0,dir){var node=_1b0.domNode,_1b1=(dir>0?"nextSibling":"previousSibling");do{node=node[_1b1];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1b2){return dojo.indexOf(this.getChildren(),_1b2);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1b3){_1b3.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 _1b4=dijit.getEnclosingWidget(this.domNode.parentNode);return _1b4&&_1b4.isContainer?_1b4:null;},_getSibling:function(_1b5){var node=this.domNode;do{node=node[_1b5+"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 _1b6=this.getParent&&this.getParent();if(!(_1b6&&_1b6.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_1b7,_1b8){var node=this.domNode;if(_1b7){dojo.marginBox(node,_1b7);if(_1b7.t){node.style.top=_1b7.t+"px";}if(_1b7.l){node.style.left=_1b7.l+"px";}}var mb=_1b8||{};dojo.mixin(mb,_1b7||{});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(_1b9){var cls=this.baseClass+"-child "+(_1b9.baseClass?this.baseClass+"-"+_1b9.baseClass:"");dojo.addClass(_1b9.domNode,cls);},addChild:function(_1ba,_1bb){this.inherited(arguments);if(this._started){this._setupChild(_1ba);}},removeChild:function(_1bc){var cls=this.baseClass+"-child"+(_1bc.baseClass?" "+this.baseClass+"-"+_1bc.baseClass:"");dojo.removeClass(_1bc.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 _1bd=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1be,dim){var _1bf=_1be.resize?_1be.resize(dim):dojo.marginBox(_1be.domNode,dim);if(_1bf){dojo.mixin(_1be,_1bf);}else{dojo.mixin(_1be,dojo.marginBox(_1be.domNode));dojo.mixin(_1be,dim);}};dijit.layout.layoutChildren=function(_1c0,dim,_1c1,_1c2,_1c3){dim=dojo.mixin({},dim);dojo.addClass(_1c0,"dijitLayoutContainer");_1c1=dojo.filter(_1c1,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_1c1,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_1c1,function(_1c4){var elm=_1c4.domNode,pos=(_1c4.region||_1c4.layoutAlign);var _1c5=elm.style;_1c5.left=dim.l+"px";_1c5.top=dim.t+"px";_1c5.position="absolute";dojo.addClass(elm,"dijitAlign"+_1bd(pos));var _1c6={};if(_1c2&&_1c2==_1c4.id){_1c6[_1c4.region=="top"||_1c4.region=="bottom"?"h":"w"]=_1c3;}if(pos=="top"||pos=="bottom"){_1c6.w=dim.w;size(_1c4,_1c6);dim.h-=_1c4.h;if(pos=="top"){dim.t+=_1c4.h;}else{_1c5.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_1c6.h=dim.h;size(_1c4,_1c6);dim.w-=_1c4.w;if(pos=="left"){dim.l+=_1c4.w;}else{_1c5.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_1c4,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,_1c7){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_1c7&&_1c7.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_1c8){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("|"),_1c8);};dojo.regexp.group=function(_1c9,_1ca){return "("+(_1ca?"?:":"")+_1c9+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_1cb,_1cc){var c=document.cookie;if(arguments.length==1){var _1cd=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _1cd?decodeURIComponent(_1cd[1]):undefined;}else{_1cc=_1cc||{};var exp=_1cc.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_1cc.expires=d;}if(exp&&exp.toUTCString){_1cc.expires=exp.toUTCString();}_1cb=encodeURIComponent(_1cb);var _1ce=name+"="+_1cb,_1cf;for(_1cf in _1cc){_1ce+="; "+_1cf;var _1d0=_1cc[_1cf];if(_1d0!==true){_1ce+="="+_1d0;}}document.cookie=_1ce;}};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(_1d1){if(!this.disabled){switch(_1d1.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 _1d2=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1d2);});break;}}},_setStateClass:function(){var _1d3=this.baseClass.split(" ");function _1d4(_1d5){_1d3=_1d3.concat(dojo.map(_1d3,function(c){return c+_1d5;}),"dijit"+_1d5);};if(!this.isLeftToRight()){_1d4("Rtl");}if(this.checked){_1d4("Checked");}if(this.state){_1d4(this.state);}if(this.selected){_1d4("Selected");}if(this.disabled){_1d4("Disabled");}else{if(this.readOnly){_1d4("ReadOnly");}else{if(this.active){_1d4("Active");}else{if(this.hovering){_1d4("Hover");}}}}if(this._focused){_1d4("Focused");}var tn=this.stateNode||this.domNode,_1d6={};dojo.forEach(tn.className.split(" "),function(c){_1d6[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1d6[c];});}dojo.forEach(_1d3,function(c){_1d6[c]=true;});var _1d7=[];for(var c in _1d6){_1d7.push(c);}tn.className=_1d7.join(" ");this._stateClasses=_1d3;},_trackMouseState:function(node,_1d8){var _1d9=false,_1da=false,_1db=false;var self=this,cn=dojo.hitch(this,"connect",node);function _1dc(){var _1dd=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_1d8+"Hover",_1d9&&!_1da&&!_1dd);dojo.toggleClass(node,_1d8+"Active",_1da&&!_1dd);dojo.toggleClass(node,_1d8+"Focused",_1db&&!_1dd);};cn("onmouseenter",function(){_1d9=true;_1dc();});cn("onmouseleave",function(){_1d9=false;_1da=false;_1dc();});cn("onmousedown",function(){_1da=true;_1dc();});cn("onmouseup",function(){_1da=false;_1dc();});cn("onfocus",function(){_1db=true;_1dc();});cn("onblur",function(){_1db=false;_1dc();});this.watch("disabled",_1dc);this.watch("readOnly",_1dc);}});}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(_1de){this._set("disabled",_1de);dojo.attr(this.focusNode,"disabled",_1de);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_1de);}dijit.setWaiState(this.focusNode,"disabled",_1de);if(_1de){this._set("hovering",false);this._set("active",false);var _1df="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_1df)?_1df:[_1df],function(_1e0){var node=this[_1e0];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(_1e1){dojo.deprecated("setDisabled("+_1e1+") is deprecated. Use set('disabled',"+_1e1+") instead.","","2.0");this.set("disabled",_1e1);},_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(_1e2){},_onChangeActive:false,_handleOnChange:function(_1e3,_1e4){if(this._lastValueReported==undefined&&(_1e4===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1e3;}this._pendingOnChange=this._pendingOnChange||(typeof _1e3!=typeof this._lastValueReported)||(this.compare(_1e3,this._lastValueReported)!=0);if((this.intermediateChanges||_1e4||_1e4===undefined)&&this._pendingOnChange){this._lastValueReported=_1e3;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1e3);}),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(_1e5){dojo.deprecated("dijit.form._FormWidget:setValue("+_1e5+") is deprecated.  Use set('value',"+_1e5+") instead.","","2.0");this.set("value",_1e5);},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 _1e6=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1e6);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1e7){dojo.attr(this.focusNode,"readOnly",_1e7);dijit.setWaiState(this.focusNode,"readonly",_1e7);this._set("readOnly",_1e7);},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(_1e8,_1e9){this._handleOnChange(_1e8,_1e9);},_handleOnChange:function(_1ea,_1eb){this._set("value",_1ea);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 _1ec=this.domNode;var _1ed=_1ec.parentNode;var _1ee=_1ec.firstChild||_1ec;var _1ef=_1ee.style.filter;var _1f0=this;while(_1ed&&_1ed.clientHeight==0){(function ping(){var _1f1=_1f0.connect(_1ed,"onscroll",function(e){_1f0.disconnect(_1f1);_1ee.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1ee.style.filter=_1ef;},0);});})();_1ed=_1ed.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 _1f2=this.dropDown,_1f3=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&&!_1f3){if(dojo.hasClass(t,"dijitPopup")){_1f3=true;}else{t=t.parentNode;}}if(_1f3){t=e.target;if(_1f2.onItemClick){var _1f4;while(t&&!(_1f4=dijit.byNode(t))){t=t.parentNode;}if(_1f4&&_1f4.onClick&&_1f4.getParent){_1f4.getParent().onItemClick(_1f4,e);}}return;}}}if(this._opened&&_1f2.focus&&_1f2.autoFocus!==false){window.setTimeout(dojo.hitch(_1f2,"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 _1f5={"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"+_1f5+"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,_1f6=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==" ")&&((_1f6.tagName||"").toLowerCase()!=="input"||(_1f6.type&&_1f6.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 _1f7=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_1f7);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_1f8){_1f8();},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 _1f9=this.dropDown,_1fa=_1f9.domNode,_1fb=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_1fa.style.width){this._explicitDDWidth=true;}if(_1fa.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _1fc={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_1fc.width="";}if(!this._explicitDDHeight){_1fc.height="";}dojo.style(_1fa,_1fc);var _1fd=this.maxHeight;if(_1fd==-1){var _1fe=dojo.window.getBox(),_1ff=dojo.position(_1fb,false);_1fd=Math.floor(Math.max(_1ff.y,_1fe.h-(_1ff.y+_1ff.h)));}if(_1f9.startup&&!_1f9._started){_1f9.startup();}dijit.popup.moveOffScreen(_1f9);var mb=dojo._getMarginSize(_1fa);var _200=(_1fd&&mb.h>_1fd);dojo.style(_1fa,{overflowX:"hidden",overflowY:_200?"auto":"hidden"});if(_200){mb.h=_1fd;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_1fb.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_1fb.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_1f9.resize)){_1f9.resize(mb);}else{dojo.marginBox(_1fa,mb);}}var _201=dijit.popup.open({parent:this,popup:_1f9,around:_1fb,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 _201;},closeDropDown:function(_202){if(this._opened){if(_202){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 _203=dijit.byNode(node);if(_203&&typeof _203._onSubmit=="function"){_203._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_204){if(_204&&(!this.params||!("label" in this.params))){this.set("label",_204.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(_205){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_205);},_setLabelAttr:function(_206){this._set("label",_206);this.containerNode.innerHTML=_206;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _207=this.iconClass||"dijitNoIcon",_208=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_208,_207);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 _209=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_209[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _20a=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_20a);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _20b=this.dropDown;return (!!_20b&&(!_20b.href||_20b.isLoaded));},loadDropDown:function(){var _20c=this.dropDown;if(!_20c){return;}if(!this.isLoaded()){var _20d=dojo.connect(_20c,"onLoad",this,function(){dojo.disconnect(_20d);this.openDropDown();});_20c.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(_20e){if(!this.disabled){dijit.focus(_20e=="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(_20f,_210){this._set("checked",_20f);dojo.attr(this.focusNode||this.domNode,"checked",_20f);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_20f);this._handleOnChange(_20f,_210);},setChecked:function(_211){dojo.deprecated("setChecked("+_211+") is deprecated. Use set('checked',"+_211+") instead.","","2.0");this.set("checked",_211);},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(_212,_213,_214){_214=dojo.i18n.normalizeLocale(_214);var _215=_214.split("-");var _216=[_212,"nls",_213].join(".");var _217=dojo._loadedModules[_216];if(_217){var _218;for(var i=_215.length;i>0;i--){var loc=_215.slice(0,i).join("_");if(_217[loc]){_218=_217[loc];break;}}if(!_218){_218=_217.ROOT;}if(_218){var _219=function(){};_219.prototype=_218;return new _219();}}throw new Error("Bundle not found: "+_213+" in "+_212+" , locale="+_214);};dojo.i18n.normalizeLocale=function(_21a){var _21b=(_21a?_21a:dojo.locale).toLowerCase();if(_21b=="root"){_21b="ROOT";}return _21b;};dojo.i18n._requireLocalization=function(_21c,_21d,_21e,_21f){var _220=dojo.i18n.normalizeLocale(_21e);var _221=[_21c,"nls",_21d].join(".");var _222="";if(_21f){var _223=_21f.split(",");for(var i=0;i<_223.length;i++){if(_220["indexOf"](_223[i])==0){if(_223[i].length>_222.length){_222=_223[i];}}}if(!_222){_222="ROOT";}}var _224=_21f?_222:_220;var _225=dojo._loadedModules[_221];var _226=null;if(_225){if(dojo.config.localizationComplete&&_225._built){return;}var _227=_224.replace(/-/g,"_");var _228=_221+"."+_227;_226=dojo._loadedModules[_228];}if(!_226){_225=dojo["provide"](_221);var syms=dojo._getModuleSymbols(_21c);var _229=syms.concat("nls").join("/");var _22a;dojo.i18n._searchLocalePath(_224,_21f,function(loc){var _22b=loc.replace(/-/g,"_");var _22c=_221+"."+_22b;var _22d=false;if(!dojo._loadedModules[_22c]){dojo["provide"](_22c);var _22e=[_229];if(loc!="ROOT"){_22e.push(loc);}_22e.push(_21d);var _22f=_22e.join("/")+".js";_22d=dojo._loadPath(_22f,null,function(hash){hash=hash.root||hash;var _230=function(){};_230.prototype=_22a;_225[_22b]=new _230();for(var j in hash){_225[_22b][j]=hash[j];}});}else{_22d=true;}if(_22d&&_225[_22b]){_22a=_225[_22b];}else{_225[_22b]=_22a;}if(_21f){return true;}});}if(_21f&&_220!=_222){_225[_220.replace(/-/g,"_")]=_225[_222.replace(/-/g,"_")];}};(function(){var _231=dojo.config.extraLocale;if(_231){if(!_231 instanceof Array){_231=[_231];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_232,_233){req(m,b,_232,_233);if(_232){return;}for(var i=0;i<_231.length;i++){req(m,b,_231[i],_233);}};}})();dojo.i18n._searchLocalePath=function(_234,down,_235){_234=dojo.i18n.normalizeLocale(_234);var _236=_234.split("-");var _237=[];for(var i=_236.length;i>0;i--){_237.push(_236.slice(0,i).join("-"));}_237.push(false);if(down){_237.reverse();}for(var j=_237.length-1;j>=0;j--){var loc=_237[j]||"ROOT";var stop=_235(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_238,_239){function _23a(_23b){_23b=dojo.i18n.normalizeLocale(_23b);dojo.i18n._searchLocalePath(_23b,true,function(loc){for(var i=0;i<_239.length;i++){if(_239[i]==loc){dojo["require"](_238+"_"+loc);return true;}}return false;});};_23a();var _23c=dojo.config.extraLocale||[];for(var i=0;i<_23c.length;i++){_23a(_23c[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,_23d){var cls=dojo.getObject(this.buttonWidget);var _23e=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(_23e.focusNode,"selected","false");var _23f=["title","showTitle","iconClass","closable","tooltip"],_240=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_23f,function(_241,idx){return page.watch(_241,function(name,_242,_243){_23e.set(_240[idx],_243);});});this.pane2connects[page.id]=[this.connect(_23e,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_23e,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_23e,_23d);this.pane2button[page.id]=_23e;page.controlButton=_23e;if(!this._currentChild){_23e.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_23e.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 _244=this.pane2button[page.id];if(_244){this.removeChild(_244);delete this.pane2button[page.id];_244.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _245=this.pane2button[this._currentChild.id];_245.set("checked",false);dijit.setWaiState(_245.focusNode,"selected","false");_245.focusNode.setAttribute("tabIndex","-1");}var _246=this.pane2button[page.id];_246.set("checked",true);dijit.setWaiState(_246.focusNode,"selected","true");this._currentChild=page;_246.focusNode.setAttribute("tabIndex","0");var _247=dijit.byId(this.containerId);dijit.setWaiState(_247.containerNode,"labelledby",_246.id);},onButtonClick:function(page){var _248=dijit.byId(this.containerId);_248.selectChild(page);},onCloseButtonClick:function(page){var _249=dijit.byId(this.containerId);_249.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_24a){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_24a=!_24a;}var _24b=this.getChildren();var _24c=dojo.indexOf(_24b,this.pane2button[this._currentChild.id]);var _24d=_24a?1:_24b.length-1;return _24b[(_24c+_24d)%_24b.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _24e=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_24e=false;}break;case k.PAGE_UP:if(e.ctrlKey){_24e=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_24e=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_24e=true;}break;case k.HOME:case k.END:var _24f=this.getChildren();if(_24f&&_24f.length){_24f[e.charOrCode==k.HOME?0:_24f.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(_24e!==null){this.adjacent(_24e).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 _250=this.getChildren();dojo.forEach(_250,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_250,function(_251){if(_251.selected){this.selectedChildWidget=_251;}return _251.selected;},this);}var _252=this.selectedChildWidget;if(!_252&&_250[0]){_252=this.selectedChildWidget=_250[0];_252.selected=true;}dojo.publish(this.id+"-startup",[{children:_250,selected:_252}]);this.inherited(arguments);},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=true;var _253=this.selectedChildWidget;if(_253){this._showChild(_253);}}this.inherited(arguments);},_setupChild:function(_254){this.inherited(arguments);dojo.replaceClass(_254.domNode,"dijitHidden","dijitVisible");_254.domNode.title="";},addChild:function(_255,_256){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_255,_256]);this.layout();if(!this.selectedChildWidget){this.selectChild(_255);}}},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 _257=this.getChildren();if(_257.length){this.selectChild(_257[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_258){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_258);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(_259,_25a,_25b){if(_25a){this._hideChild(_25a);}var d=this._showChild(_259);if(_259.resize){if(this.doLayout){_259.resize(this._containerContentBox||this._contentBox);}else{_259.resize();}}return d;},_adjacent:function(_25c){var _25d=this.getChildren();var _25e=dojo.indexOf(_25d,this.selectedChildWidget);_25e+=_25c?1:_25d.length-1;return _25d[_25e%_25d.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 _25f=this.getChildren();page.isFirstChild=(page==_25f[0]);page.isLastChild=(page==_25f[_25f.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 _260=page.onClose(this,page);if(_260){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_261){dojo.forEach(this.getChildren(),function(_262){this.removeChild(_262);_262.destroyRecursive(_261);},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(_263){_263.startup();_263._started=true;});},startup:function(){if(this._started){return;}var _264=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_264&&_264.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 _265=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_266=_265.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_267=dojo.filter(_266.map(dijit.byNode),function(_268){return _268&&_268.domNode&&_268.resize;});if(_265.length==_266.length&&_267.length==1){this._singleChild=_267[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_269,_26a){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_269,_26a);},_scheduleLayout:function(_26b,_26c){if(this._isShown()){this._layout(_26b,_26c);}else{this._needLayout=true;this._changeSize=_26b;this._resultSize=_26c;}},_layout:function(_26d,_26e){if(_26d){dojo.marginBox(this.domNode,_26d);}var cn=this.containerNode;if(cn===this.domNode){var mb=_26e||{};dojo.mixin(mb,_26d||{});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(_26f){if(_26f.resize){_26f.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,_270=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_270&&_270.style&&(_270.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _271=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 _272=cont.length,i=0;i<cont.length;i=_272==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(_273,node){dojo.mixin(this,_273||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_271++].join("_");}},set:function(cont,_274){if(undefined!==cont){this.content=cont;}if(_274){this._mixin(_274);}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 _275=this.onContentError(e);try{node.innerHTML=_275;}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 _276=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_276){cont=_276[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(_277){var _278={},key;for(key in _277){if(key in _278){continue;}this[key]=_277[key];}},_parse:function(){var _279=this.node;try{var _27a={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_27a[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_279,noStart:!this.startup,inherited:_27a,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_27b){var _27c=this["on"+type+"Error"].call(this,err);if(_27b){console.error(_27b,err);}else{if(_27c){dojo.html._setNodeContent(this.node,_27c,true);}}}});dojo.html.set=function(node,cont,_27d){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_27d){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_27d,{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(_27e,_27f){if((!_27e||!_27e.template)&&_27f&&!("href" in _27e)&&!("content" in _27e)){var df=dojo.doc.createDocumentFragment();_27f=dojo.byId(_27f);while(_27f.firstChild){df.appendChild(_27f.firstChild);}_27e=dojo.delegate(_27e,{content:df});}this.inherited(arguments,[_27e,_27f]);},postMixInProperties:function(){this.inherited(arguments);var _280=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_280);this.errorMessage=dojo.string.substitute(this.errorMessage,_280);},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(_281){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 _282={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_282,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_282));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 _283=this._contentSetter;dojo.forEach(this.getChildren(),function(_284){if(_284.destroyRecursive){_284.destroyRecursive();}});if(_283){dojo.forEach(_283.parseResults,function(_285){if(_285.destroyRecursive&&_285.domNode&&_285.domNode.parentNode==dojo.body()){_285.destroyRecursive();}});delete _283.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_286){this.destroyDescendants();var _287=this._contentSetter;if(!(_287&&_287 instanceof dojo.html._ContentSetter)){_287=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _288=this.onContentError(e);try{this.containerNode.innerHTML=_288;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _289=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_287.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_289);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_286){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_28a){this.onLoadDeferred.errback(err);var _28b=this["on"+type+"Error"].call(this,err);if(_28a){console.error(_28a,err);}else{if(_28b){this._setContent(_28b,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_28c){},onDownloadError:function(_28d){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(_28e){var _28f={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 _290=dojo.cldr.supplemental._region(_28e);var dow=_28f[_290];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_291){_291=dojo.i18n.normalizeLocale(_291);var tags=_291.split("-");var _292=tags[1];if(!_292){_292={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(_292.length==4){_292=tags[2];}}return _292;};dojo.cldr.supplemental.getWeekend=function(_293){var _294={"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 _295={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 _296=dojo.cldr.supplemental._region(_293);var _297=_294[_296];var end=_295[_296];if(_297===undefined){_297=6;}if(end===undefined){end=0;}return {start:_297,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(_298){var _299=_298.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_299==1&&dojo.date.isLeapYear(_298)){return 29;}return days[_299];};dojo.date.isLeapYear=function(_29a){var year=_29a.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_29b){var str=_29b.toString();var tz="";var _29c;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_29c=str.match(pat))){tz=_29c[1];}else{str=_29b.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_29c=str.match(pat))){tz=_29c[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_29d,_29e,_29f){_29d=new Date(+_29d);_29e=new Date(+(_29e||new Date()));if(_29f=="date"){_29d.setHours(0,0,0,0);_29e.setHours(0,0,0,0);}else{if(_29f=="time"){_29d.setFullYear(0,0,0);_29e.setFullYear(0,0,0);}}if(_29d>_29e){return 1;}if(_29d<_29e){return -1;}return 0;};dojo.date.add=function(date,_2a0,_2a1){var sum=new Date(+date);var _2a2=false;var _2a3="Date";switch(_2a0){case "day":break;case "weekday":var days,_2a4;var mod=_2a1%5;if(!mod){days=(_2a1>0)?5:-5;_2a4=(_2a1>0)?((_2a1-5)/5):((_2a1+5)/5);}else{days=mod;_2a4=parseInt(_2a1/5);}var strt=date.getDay();var adj=0;if(strt==6&&_2a1>0){adj=1;}else{if(strt==0&&_2a1<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_2a1>0)?2:-2;}_2a1=(7*_2a4)+days+adj;break;case "year":_2a3="FullYear";_2a2=true;break;case "week":_2a1*=7;break;case "quarter":_2a1*=3;case "month":_2a2=true;_2a3="Month";break;default:_2a3="UTC"+_2a0.charAt(0).toUpperCase()+_2a0.substring(1)+"s";}if(_2a3){sum["set"+_2a3](sum["get"+_2a3]()+_2a1);}if(_2a2&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_2a5,_2a6,_2a7){_2a6=_2a6||new Date();_2a7=_2a7||"day";var _2a8=_2a6.getFullYear()-_2a5.getFullYear();var _2a9=1;switch(_2a7){case "quarter":var m1=_2a5.getMonth();var m2=_2a6.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_2a8*4);_2a9=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_2a5,_2a6,"day"));var _2aa=parseInt(dojo.date.difference(_2a5,_2a6,"week"));var mod=days%7;if(mod==0){days=_2aa*5;}else{var adj=0;var aDay=_2a5.getDay();var bDay=_2a6.getDay();_2aa=parseInt(days/7);mod=days%7;var _2ab=new Date(_2a5);_2ab.setDate(_2ab.getDate()+(_2aa*7));var _2ac=_2ab.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 (_2ac+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 (_2ac+mod)<0:adj=2;}}}days+=adj;days-=(_2aa*2);}_2a9=days;break;case "year":_2a9=_2a8;break;case "month":_2a9=(_2a6.getMonth()-_2a5.getMonth())+(_2a8*12);break;case "week":_2a9=parseInt(dojo.date.difference(_2a5,_2a6,"day")/7);break;case "day":_2a9/=24;case "hour":_2a9/=60;case "minute":_2a9/=60;case "second":_2a9/=1000;case "millisecond":_2a9*=_2a6.getTime()-_2a5.getTime();}return Math.round(_2a9);};}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 _2ad(_2ae,_2af,_2b0,_2b1){return _2b1.replace(/([a-z])\1*/ig,function(_2b2){var s,pad,c=_2b2.charAt(0),l=_2b2.length,_2b3=["abbr","wide","narrow"];switch(c){case "G":s=_2af[(l<4)?"eraAbbr":"eraNames"][_2ae.getFullYear()<0?0:1];break;case "y":s=_2ae.getFullYear();switch(l){case 1:break;case 2:if(!_2b0.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_2ae.getMonth()+1)/3);pad=true;break;case "M":var m=_2ae.getMonth();if(l<3){s=m+1;pad=true;}else{var _2b4=["months","format",_2b3[l-3]].join("-");s=_2af[_2b4][m];}break;case "w":var _2b5=0;s=dojo.date.locale._getWeekOfYear(_2ae,_2b5);pad=true;break;case "d":s=_2ae.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_2ae);pad=true;break;case "E":var d=_2ae.getDay();if(l<3){s=d+1;pad=true;}else{var _2b6=["days","format",_2b3[l-3]].join("-");s=_2af[_2b6][d];}break;case "a":var _2b7=(_2ae.getHours()<12)?"am":"pm";s=_2b0[_2b7]||_2af["dayPeriods-format-wide-"+_2b7];break;case "h":case "H":case "K":case "k":var h=_2ae.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=_2ae.getMinutes();pad=true;break;case "s":s=_2ae.getSeconds();pad=true;break;case "S":s=Math.round(_2ae.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_2ae,true,_2b0);if(s){break;}l=4;case "Z":var _2b8=dojo.date.locale._getZone(_2ae,false,_2b0);var tz=[(_2b8<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_2b8)/60),2),dojo.string.pad(Math.abs(_2b8)%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: "+_2b1);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_2b9,_2ba,_2bb){if(_2ba){return dojo.date.getTimezoneName(_2b9);}else{return _2b9.getTimezoneOffset();}};dojo.date.locale.format=function(_2bc,_2bd){_2bd=_2bd||{};var _2be=dojo.i18n.normalizeLocale(_2bd.locale),_2bf=_2bd.formatLength||"short",_2c0=dojo.date.locale._getGregorianBundle(_2be),str=[],_2c1=dojo.hitch(this,_2ad,_2bc,_2c0,_2bd);if(_2bd.selector=="year"){return _2c2(_2c0["dateFormatItem-yyyy"]||"yyyy",_2c1);}var _2c3;if(_2bd.selector!="date"){_2c3=_2bd.timePattern||_2c0["timeFormat-"+_2bf];if(_2c3){str.push(_2c2(_2c3,_2c1));}}if(_2bd.selector!="time"){_2c3=_2bd.datePattern||_2c0["dateFormat-"+_2bf];if(_2c3){str.push(_2c2(_2c3,_2c1));}}return str.length==1?str[0]:_2c0["dateTimeFormat-"+_2bf].replace(/\{(\d+)\}/g,function(_2c4,key){return str[key];});};dojo.date.locale.regexp=function(_2c5){return dojo.date.locale._parseInfo(_2c5).regexp;};dojo.date.locale._parseInfo=function(_2c6){_2c6=_2c6||{};var _2c7=dojo.i18n.normalizeLocale(_2c6.locale),_2c8=dojo.date.locale._getGregorianBundle(_2c7),_2c9=_2c6.formatLength||"short",_2ca=_2c6.datePattern||_2c8["dateFormat-"+_2c9],_2cb=_2c6.timePattern||_2c8["timeFormat-"+_2c9],_2cc;if(_2c6.selector=="date"){_2cc=_2ca;}else{if(_2c6.selector=="time"){_2cc=_2cb;}else{_2cc=_2c8["dateTimeFormat-"+_2c9].replace(/\{(\d+)\}/g,function(_2cd,key){return [_2cb,_2ca][key];});}}var _2ce=[],re=_2c2(_2cc,dojo.hitch(this,_2cf,_2ce,_2c8,_2c6));return {regexp:re,tokens:_2ce,bundle:_2c8};};dojo.date.locale.parse=function(_2d0,_2d1){var _2d2=/[\u200E\u200F\u202A\u202E]/g,info=dojo.date.locale._parseInfo(_2d1),_2d3=info.tokens,_2d4=info.bundle,re=new RegExp("^"+info.regexp.replace(_2d2,"")+"$",info.strict?"":"i"),_2d5=re.exec(_2d0&&_2d0.replace(_2d2,""));if(!_2d5){return null;}var _2d6=["abbr","wide","narrow"],_2d7=[1970,0,1,0,0,0,0],amPm="",_2d8=dojo.every(_2d5,function(v,i){if(!i){return true;}var _2d9=_2d3[i-1];var l=_2d9.length;switch(_2d9.charAt(0)){case "y":if(l!=2&&_2d1.strict){_2d7[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_2da=year.substring(0,2)*100,_2db=Math.min(Number(year.substring(2,4))+20,99),num=(v<_2db)?_2da+v:_2da-100+v;_2d7[0]=num;}else{if(_2d1.strict){return false;}_2d7[0]=v;}}break;case "M":if(l>2){var _2dc=_2d4["months-format-"+_2d6[l-3]].concat();if(!_2d1.strict){v=v.replace(".","").toLowerCase();_2dc=dojo.map(_2dc,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_2dc,v);if(v==-1){return false;}}else{v--;}_2d7[1]=v;break;case "E":case "e":var days=_2d4["days-format-"+_2d6[l-3]].concat();if(!_2d1.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":_2d7[1]=0;case "d":_2d7[2]=v;break;case "a":var am=_2d1.am||_2d4["dayPeriods-format-wide-am"],pm=_2d1.pm||_2d4["dayPeriods-format-wide-pm"];if(!_2d1.strict){var _2dd=/\./g;v=v.replace(_2dd,"").toLowerCase();am=am.replace(_2dd,"").toLowerCase();pm=pm.replace(_2dd,"").toLowerCase();}if(_2d1.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;}_2d7[3]=v;break;case "m":_2d7[4]=v;break;case "s":_2d7[5]=v;break;case "S":_2d7[6]=v;}return true;});var _2de=+_2d7[3];if(amPm==="p"&&_2de<12){_2d7[3]=_2de+12;}else{if(amPm==="a"&&_2de==12){_2d7[3]=0;}}var _2df=new Date(_2d7[0],_2d7[1],_2d7[2],_2d7[3],_2d7[4],_2d7[5],_2d7[6]);if(_2d1.strict){_2df.setFullYear(_2d7[0]);}var _2e0=_2d3.join(""),_2e1=_2e0.indexOf("d")!=-1,_2e2=_2e0.indexOf("M")!=-1;if(!_2d8||(_2e2&&_2df.getMonth()>_2d7[1])||(_2e1&&_2df.getDate()>_2d7[2])){return null;}if((_2e2&&_2df.getMonth()<_2d7[1])||(_2e1&&_2df.getDate()<_2d7[2])){_2df=dojo.date.add(_2df,"hour",1);}return _2df;};function _2c2(_2e3,_2e4,_2e5,_2e6){var _2e7=function(x){return x;};_2e4=_2e4||_2e7;_2e5=_2e5||_2e7;_2e6=_2e6||_2e7;var _2e8=_2e3.match(/(''|[^'])+/g),_2e9=_2e3.charAt(0)=="'";dojo.forEach(_2e8,function(_2ea,i){if(!_2ea){_2e8[i]="";}else{_2e8[i]=(_2e9?_2e5:_2e4)(_2ea.replace(/''/g,"'"));_2e9=!_2e9;}});return _2e6(_2e8.join(""));};function _2cf(_2eb,_2ec,_2ed,_2ee){_2ee=dojo.regexp.escapeString(_2ee);if(!_2ed.strict){_2ee=_2ee.replace(" a"," ?a");}return _2ee.replace(/([a-z])\1*/ig,function(_2ef){var s,c=_2ef.charAt(0),l=_2ef.length,p2="",p3="";if(_2ed.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=_2ed.am||_2ec["dayPeriods-format-wide-am"],pm=_2ed.pm||_2ec["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_2ed.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(_2eb){_2eb.push(_2ef);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _2f0=[];dojo.date.locale.addCustomFormats=function(_2f1,_2f2){_2f0.push({pkg:_2f1,name:_2f2});};dojo.date.locale._getGregorianBundle=function(_2f3){var _2f4={};dojo.forEach(_2f0,function(desc){var _2f5=dojo.i18n.getLocalization(desc.pkg,desc.name,_2f3);_2f4=dojo.mixin(_2f4,_2f5);},this);return _2f4;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_2f6,_2f7){var _2f8,_2f9=dojo.date.locale._getGregorianBundle(_2f7),_2fa=[item,_2f6,type];if(_2f6=="standAlone"){var key=_2fa.join("-");_2f8=_2f9[key];if(_2f8[0]==1){_2f8=undefined;}}_2fa[1]="format";return (_2f8||_2f9[_2fa.join("-")]).concat();};dojo.date.locale.isWeekend=function(_2fb,_2fc){var _2fd=dojo.cldr.supplemental.getWeekend(_2fc),day=(_2fb||new Date()).getDay();if(_2fd.end<_2fd.start){_2fd.end+=7;if(day<_2fd.start){day+=7;}}return day>=_2fd.start&&day<=_2fd.end;};dojo.date.locale._getDayOfYear=function(_2fe){return dojo.date.difference(new Date(_2fe.getFullYear(),0,1,_2fe.getHours()),_2fe)+1;};dojo.date.locale._getWeekOfYear=function(_2ff,_300){if(arguments.length==1){_300=0;}var _301=new Date(_2ff.getFullYear(),0,1).getDay(),adj=(_301-_300+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_2ff)+adj-1)/7);if(_301==_300){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(_302){return _302&&!isNaN(_302)&&typeof _302=="object"&&_302.toString()!=this.constructor.prototype.value.toString();},setValue:function(_303){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_303);},_getValueAttr:function(){var _304=new this.dateClassObj(this.value);_304.setHours(0,0,0,0);if(_304.getDate()<this.value.getDate()){_304=this.dateFuncObj.add(_304,"hour",1);}return _304;},_setValueAttr:function(_305,_306){if(_305){_305=new this.dateClassObj(_305);}if(this._isValidDate(_305)){if(!this._isValidDate(this.value)||this.dateFuncObj.compare(_305,this.value)){_305.setHours(1,0,0,0);if(!this.isDisabledDate(_305,this.lang)){this._set("value",_305);this.set("currentFocus",_305);if(_306||typeof _306=="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 _307=new this.dateClassObj(this.currentFocus);_307.setDate(1);var _308=_307.getDay(),_309=this.dateFuncObj.getDaysInMonth(_307),_30a=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_307,"month",-1)),_30b=new this.dateClassObj(),_30c=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_30c>_308){_30c-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_30d,i){i+=_30c;var date=new this.dateClassObj(_307),_30e,_30f="dijitCalendar",adj=0;if(i<_308){_30e=_30a-_308+i+1;adj=-1;_30f+="Previous";}else{if(i>=(_308+_309)){_30e=i-_308-_309+1;adj=1;_30f+="Next";}else{_30e=i-_308+1;_30f+="Current";}}if(adj){date=this.dateFuncObj.add(date,"month",adj);}date.setDate(_30e);if(!this.dateFuncObj.compare(date,_30b,"date")){_30f="dijitCalendarCurrentDate "+_30f;}if(this._isSelectedDate(date,this.lang)){_30f="dijitCalendarSelectedDate "+_30f;}if(this.isDisabledDate(date,this.lang)){_30f="dijitCalendarDisabledDate "+_30f;}var _310=this.getClassForDate(date,this.lang);if(_310){_30f=_310+" "+_30f;}_30d.className=_30f+"Month dijitCalendarDateTemplate";_30d.dijitDateValue=date.valueOf();dojo.attr(_30d,"dijitDateValue",date.valueOf());var _311=dojo.query(".dijitCalendarDateLabel",_30d)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();this._setText(_311,text);},this);var _312=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_307);this.monthDropDownButton.dropDown.set("months",_312);this.monthDropDownButton.containerNode.innerHTML=(dojo.isIE==6?"":"<div class='dijitSpacer'>"+this.monthDropDownButton.dropDown.domNode.innerHTML+"</div>")+"<div class='dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'>"+_312[_307.getMonth()]+"</div>";var y=_307.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 _313=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_313,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 _314=dojo.hitch(this,function(_315,n){var _316=dojo.query(_315,this.domNode)[0];for(var i=0;i<n;i++){_316.parentNode.appendChild(_316.cloneNode(true));}});_314(".dijitCalendarDayLabelTemplate",6);_314(".dijitCalendarDateTemplate",6);_314(".dijitCalendarWeekTemplate",5);var _317=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);var _318=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_319,i){this._setText(_319,_317[(i+_318)%7]);},this);var _31a=new this.dateClassObj(this.currentFocus);this.monthDropDownButton.dropDown=new dijit.Calendar._MonthDropDown({id:this.id+"_mdd",onChange:dojo.hitch(this,"_onMonthSelect")});this.set("currentFocus",_31a,false);var _31b=this;var _31c=function(_31d,_31e,adj){_31b._connects.push(dijit.typematic.addMouseListener(_31b[_31d],_31b,function(_31f){if(_31f>=0){_31b._adjustDisplay(_31e,adj);}},0.8,500));};_31c("incrementMonth","month",1);_31c("decrementMonth","month",-1);_31c("nextYearLabelNode","year",1);_31c("previousYearLabelNode","year",-1);},_adjustDisplay:function(part,_320){this._setCurrentFocusAttr(this.dateFuncObj.add(this.currentFocus,part,_320));},_setCurrentFocusAttr:function(date,_321){var _322=this.currentFocus,_323=_322?dojo.query("[dijitDateValue="+_322.valueOf()+"]",this.domNode)[0]:null;date=new this.dateClassObj(date);date.setHours(1,0,0,0);this._set("currentFocus",date);this._populateGrid();var _324=dojo.query("[dijitDateValue="+date.valueOf()+"]",this.domNode)[0];_324.setAttribute("tabIndex",this.tabIndex);if(this._focused||_321){_324.focus();}if(_323&&_323!=_324){if(dojo.isWebKit){_323.setAttribute("tabIndex","-1");}else{_323.removeAttribute("tabIndex");}}},focus:function(){this._setCurrentFocusAttr(this.currentFocus,true);},_onMonthSelect:function(_325){this.currentFocus=this.dateFuncObj.add(this.currentFocus,"month",_325-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,_326=-1,_327,_328=this.currentFocus;switch(evt.keyCode){case dk.RIGHT_ARROW:_326=1;case dk.LEFT_ARROW:_327="day";if(!this.isLeftToRight()){_326*=-1;}break;case dk.DOWN_ARROW:_326=1;case dk.UP_ARROW:_327="week";break;case dk.PAGE_DOWN:_326=1;case dk.PAGE_UP:_327=evt.ctrlKey||evt.altKey?"year":"month";break;case dk.END:_328=this.dateFuncObj.add(_328,"month",1);_327="day";case dk.HOME:_328=new this.dateClassObj(_328);_328.setDate(1);break;case dk.ENTER:case dk.SPACE:this.set("value",this.currentFocus);break;default:return true;}if(_327){_328=this.dateFuncObj.add(_328,_327,_326);}this._setCurrentFocusAttr(_328);return false;},_onKeyPress:function(evt){if(!this.handleKey(evt)){dojo.stopEvent(evt);}},onValueSelected:function(date){},onChange:function(date){},_isSelectedDate:function(_329,_32a){return this._isValidDate(this.value)&&!this.dateFuncObj.compare(_329,this.value,"date");},isDisabledDate:function(_32b,_32c){},getClassForDate:function(_32d,_32e){}});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(_32f){this.domNode.innerHTML=dojo.map(_32f,function(_330,idx){return _330?"<div class='dijitCalendarMonthLabel' month='"+idx+"'>"+_330+"</div>":"";}).join("");},_onClick:function(evt){this.onChange(dojo.attr(evt.target,"month"));},onChange:function(_331){},_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(_332,_333,_334){var _335;if(_332!==undefined){_335=this.filter(_332);if(typeof _334!="string"){if(_335!==null&&((typeof _335!="number")||!isNaN(_335))){_334=this.filter(this.format(_335,this.constraints));}else{_334="";}}}if(_334!=null&&_334!=undefined&&((typeof _334)!="number"||!isNaN(_334))&&this.textbox.value!=_334){this.textbox.value=_334;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_335,_333]);},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(_336){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_336);},_setDisplayedValueAttr:function(_337){if(_337===null||_337===undefined){_337="";}else{if(typeof _337!="string"){_337=String(_337);}}this.textbox.value=_337;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_338,_339){return ((_338==null||_338==undefined)?"":(_338.toString?_338.toString():_338));},parse:function(_33a,_33b){return _33a;},_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 _33c=this;setTimeout(function(){_33c._handleOnChange(_33c.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 _33d=this.domNode.getElementsByTagName("INPUT");if(_33d){for(var i=0;i<_33d.length;i++){_33d[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 _33e;if(dojo.isIE){var _33f=dojo.doc.selection.createRange();var _340=_33f.parentElement();_33e=_340==this.textbox&&_33f.text.length==0;}else{_33e=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_33e){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_341,_342,stop){var _343=dojo.global;var _344=dojo.doc;_341=dojo.byId(_341);if(isNaN(_342)){_342=0;}if(isNaN(stop)){stop=_341.value?_341.value.length:0;}dijit.focus(_341);if(_344["selection"]&&dojo.body()["createTextRange"]){if(_341.createTextRange){var r=_341.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_342);r.moveEnd("character",stop-_342);r.select();}}else{if(_343["getSelection"]){if(_341.setSelectionRange){_341.setSelectionRange(_342,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(_345,_346,_347,rtl){if(this.aroundNode&&this.aroundNode===_346){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_345;var pos=dijit.placeOnScreenAroundElement(this.domNode,_346,dijit.getPopupAroundAlignment((_347&&_347.length)?_347:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_346;},orient:function(node,_348,_349,_34a,_34b){this.connectorNode.style.top="";var _34c=_34a.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"}[_348+"-"+_349];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _34d=Math.min((Math.max(_34c,1)),size.w);var _34e=_34d<size.w;this.domNode.style.width=_34d+"px";if(_34e){this.containerNode.style.overflow="auto";var _34f=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_34f>_34d){_34f=_34f+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_34f+"px";}}if(_349.charAt(0)=="B"&&_348.charAt(0)=="B"){var mb=dojo.marginBox(node);var _350=this.connectorNode.offsetHeight;if(mb.h>_34a.h){var _351=_34a.h-(_34b.h/2)-(_350/2);this.connectorNode.style.top=_351+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_34b.h/2-_350/2,0),mb.h-_350)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_34c);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_352){if(this._onDeck&&this._onDeck[1]==_352){this._onDeck=null;}else{if(this.aroundNode===_352){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(_353,_354,_355,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_353,_354,_355,rtl);};dijit.hideTooltip=function(_356){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_356);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_357){dojo.forEach(this._connections||[],function(_358){dojo.forEach(_358,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_357)?_357:(_357?[_357]:[]);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",_357);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 _359=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_359);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_35a){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_35a,this.position,!this.isLeftToRight());this._connectNode=_35a;this.onShow(_35a,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(_35b,_35c){},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(_35d){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_35e,_35f){return (new RegExp("^(?:"+this.regExpGen(_35f)+")"+(this.required?"":"?")+"$")).test(_35e)&&(!this.required||!this._isEmpty(_35e))&&(this._isEmpty(_35e)||this.parse(_35e,_35f)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_360){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_361){return (this.trim?/^\s*$/:/^$/).test(_361);},getErrorMessage:function(_362){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_363){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_364){var _365="";var _366=this.disabled||this.isValid(_364);if(_366){this._maskValidSubsetError=true;}var _367=this._isEmpty(this.textbox.value);var _368=!_366&&_364&&this._isValidSubset();this._set("state",_366?"":(((((!this._hasBeenBlurred||_364)&&_367)||_368)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_366?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_364&&_368;_365=this.getErrorMessage(_364);}else{if(this.state=="Incomplete"){_365=this.getPromptMessage(_364);this._maskValidSubsetError=!this._hasBeenBlurred||_364;}else{if(_367){_365=this.getPromptMessage(_364);}}}this.set("message",_365);return _366;},displayMessage:function(_369){dijit.hideTooltip(this.domNode);if(_369&&this._focused){dijit.showTooltip(_369,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_36a){if(!_36a.locale&&this.lang){_36a.locale=this.lang;}this._set("constraints",_36a);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _36b="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_36b+=re;break;case ")":_36b+="|$)";break;default:_36b+="(?:"+re+"|$)";break;}});}try{"".search(_36b);}catch(e){_36b=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_36b+")$";},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(_36c){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_36d){this._set("required",_36d);dijit.setWaiState(this.focusNode,"required",_36d);this._refreshState();},_setMessageAttr:function(_36e){this._set("message",_36e);this.displayMessage(_36e);},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,_36f){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(_370,_371){return ("min" in _371?(this.compare(_370,_371.min)>=0):true)&&("max" in _371?(this.compare(_370,_371.max)<=0):true);},isInRange:function(_372){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _373=false;var _374=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_373=(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);_374=(typeof max=="number")&&max>0;}return _373||_374;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_375){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_375));},getErrorMessage:function(_376){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_376)){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(_377){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(_378,_379){dijit.setWaiState(this.focusNode,"valuenow",_378);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 _37a=this._isInvalidDate(val1);var _37b=this._isInvalidDate(val2);return _37a?(_37b?0:-1):(_37b?1:dojo.date.compare(val1,val2,this._selector));},forceWidth:true,format:function(_37c,_37d){if(!_37c){return "";}return this.dateLocaleModule.format(_37c,_37d);},"parse":function(_37e,_37f){return this.dateLocaleModule.parse(_37e,_37f)||(this._isEmpty(_37e)?null:undefined);},serialize:function(val,_380){if(val.toGregorian){val=val.toGregorian();}return dojo.date.stamp.toISOString(val,_380);},dropDownDefaultValue:new Date(),value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){var _381=args.datePackage?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_381,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(_382){_382.selector=this._selector;_382.fullYear=true;var _383=dojo.date.stamp.fromISOString;if(typeof _382.min=="string"){_382.min=_383(_382.min);}if(typeof _382.max=="string"){_382.max=_383(_382.max);}this.inherited(arguments);},_isInvalidDate:function(_384){return !_384||isNaN(_384)||typeof _384!="object"||_384.toString()==this._invalidDate;},_setValueAttr:function(_385,_386,_387){if(_385!==undefined){if(typeof _385=="string"){_385=dojo.date.stamp.fromISOString(_385);}if(this._isInvalidDate(_385)){_385=null;}if(_385 instanceof Date&&!(this.dateClassObj instanceof Date)){_385=new this.dateClassObj(_385);}}this.inherited(arguments);if(this.value instanceof Date){this.filterString="";}if(this.dropDown){this.dropDown.set("value",_385,false);}},_set:function(attr,_388){if(attr=="value"&&this.value instanceof Date&&this.compare(_388,this.value)==0){return;}this.inherited(arguments);},_setDropDownDefaultValueAttr:function(val){if(this._isInvalidDate(val)){val=new this.dateClassObj();}this.dropDownDefaultValue=val;},openDropDown:function(_389){if(this.dropDown){this.dropDown.destroy();}var _38a=dojo.getObject(this.popupClass,false),_38b=this,_38c=this.get("value");this.dropDown=new _38a({onChange:function(_38d){_38b.set("value",_38d,true);},id:this.id+"_popup",dir:_38b.dir,lang:_38b.lang,value:_38c,currentFocus:!this._isInvalidDate(_38c)?_38c:this.dropDownDefaultValue,constraints:_38b.constraints,filterString:_38b.filterString,datePackage:_38b.datePackage,isDisabledDate:function(date){return !_38b.rangeCheck(date,_38b.constraints);}});this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_38e,_38f){this._setValueAttr(this.parse(_38e,this.constraints),_38f,_38e);}});}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(_390){dojo.deprecated("dijit._TimePicker:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_390);},_setValueAttr:function(date){this._set("value",date);this._showText();},_setFilterStringAttr:function(val){this._set("filterString",val);this._showText();},isDisabledDate:function(_391,_392){return false;},_getFilteredNodes:function(_393,_394,_395,_396){var _397=[],_398=_396?_396.date:this._refDate,n,i=_393,max=this._maxIncrement+Math.abs(i),chk=_395?-1:1,dec=_395?1:0,inc=1-dec;do{i-=dec;n=this._createOption(i);if(n){if((_395&&n.date>_398)||(!_395&&n.date<_398)){break;}_397[_395?"unshift":"push"](n);_398=n.date;}i+=inc;}while(_397.length<_394&&(i*chk)<max);return _397;},_showText:function(){var _399=dojo.date.stamp.fromISOString;this.timeMenu.innerHTML="";this._clickableIncrementDate=_399(this.clickableIncrement);this._visibleIncrementDate=_399(this.visibleIncrement);this._visibleRangeDate=_399(this.visibleRange);var _39a=function(date){return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();},_39b=_39a(this._clickableIncrementDate),_39c=_39a(this._visibleIncrementDate),_39d=_39a(this._visibleRangeDate),time=(this.value||this.currentFocus).getTime();this._refDate=new Date(time-time%(_39b*1000));this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._totalIncrements=_39d/_39b;this._visibleIncrement=_39c/_39b;this._maxIncrement=(60*60*24)/_39b;var _39e=Math.min(this._totalIncrements,10),_39f=this._getFilteredNodes(0,(_39e>>1)+1,false),_3a0=[],_3a1=_39e-_39f.length,_3a2=this._getFilteredNodes(0,_3a1,true,_39f[0]);if(_3a2.length<_3a1&&_39f.length>0){_3a0=this._getFilteredNodes(_39f.length,_3a1-_3a2.length,false,_39f[_39f.length-1]);}dojo.forEach(_3a2.concat(_39f,_3a0),function(n){this.timeMenu.appendChild(n);},this);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this._setConstraintsAttr(this.constraints);},_setConstraintsAttr:function(_3a3){dojo.mixin(this,_3a3);if(!_3a3.locale){_3a3.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(_3a4){var date=new Date(this._refDate);var _3a5=this._clickableIncrementDate;date.setHours(date.getHours()+_3a5.getHours()*_3a4,date.getMinutes()+_3a5.getMinutes()*_3a4,date.getSeconds()+_3a5.getSeconds()*_3a4);if(this.constraints.selector=="time"){date.setFullYear(1970,0,1);}var _3a6=dojo.date.locale.format(date,this.constraints);if(this.filterString&&_3a6.toLowerCase().indexOf(this.filterString)!==0){return null;}var div=dojo.create("div",{"class":this.baseClass+"Item"});div.date=date;div.index=_3a4;dojo.create("div",{"class":this.baseClass+"ItemInner",innerHTML:_3a6},div);if(_3a4%this._visibleIncrement<1&&_3a4%this._visibleIncrement>-1){dojo.addClass(div,this.baseClass+"Marker");}else{if(!(_3a4%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 _3a7=tgt.target.date||tgt.target.parentNode.date;if(!_3a7||this.isDisabledDate(_3a7)){return;}this._highlighted_option=null;this.set("value",_3a7);this.onChange(_3a7);},onChange:function(time){},_highlightOption:function(node,_3a8){if(!node){return;}if(_3a8){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",_3a8);if(dojo.hasClass(node,this.baseClass+"Marker")){dojo.toggleClass(node,this.baseClass+"MarkerHover",_3a8);}else{dojo.toggleClass(node,this.baseClass+"TickHover",_3a8);}},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 _3a9=(dojo.isIE?e.wheelDelta:-e.detail);this[(_3a9>0?"_onArrowUp":"_onArrowDown")]();},_onArrowUp:function(_3aa){if(typeof _3aa=="number"&&_3aa==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _3ab=this.timeMenu.childNodes[0].index;var divs=this._getFilteredNodes(_3ab,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(_3ac){if(typeof _3ac=="number"&&_3ac==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _3ad=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;var divs=this._getFilteredNodes(_3ad,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 _3ae=this.timeMenu,tgt=this._highlighted_option||dojo.query("."+this.baseClass+"ItemSelected",_3ae)[0];if(!tgt){tgt=_3ae.childNodes[0];}else{if(_3ae.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(_3af){if(dijit.byId(this.startid)){var _3b0=dijit.byId(this.startid).value;if(_3b0!==null&&this.value!==null&&_3b0>=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(_3b1){if(_3b1){_3b1=_3b1.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _3b2=parseInt(this.maxLength);var _3b3=this.textbox.value.replace(/\r/g,"");var _3b4=_3b3.length-_3b2;if(_3b4>0){if(e){dojo.stopEvent(e);}var _3b5=this.textbox;if(_3b5.selectionStart){var pos=_3b5.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_3b3.substring(0,pos-_3b4-cr)+_3b3.substring(pos-cr);_3b5.setSelectionRange(pos-_3b4,pos-_3b4);}else{if(dojo.doc.selection){_3b5.focus();var _3b6=dojo.doc.selection.createRange();_3b6.moveStart("character",-_3b4);_3b6.text="";_3b6.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 _3b7=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(_3b7,"onresize","_resizeLater");this.connect(_3b7,"onfocus","_resizeLater");_3b7.style.overflowY="hidden";},startup:function(){this.inherited(arguments);this._resizeLater();},_onInput:function(e){this.inherited(arguments);this.resize();},_estimateHeight:function(){var _3b8=this.textbox;_3b8.rows=(_3b8.value.match(/\n/g)||[]).length+1;},_resizeLater:function(){this.defer("resize");},resize:function(){var _3b9=this.textbox;function _3ba(){var _3bb=false;if(_3b9.value===""){_3b9.value=" ";_3bb=true;}var sh=_3b9.scrollHeight;if(_3bb){_3b9.value="";}return sh;};if(_3b9.style.overflowY=="hidden"){_3b9.scrollTop=0;}if(this.busyResizing){return;}this.busyResizing=true;if(_3ba()||_3b9.offsetHeight){var newH=_3ba()+Math.max(_3b9.offsetHeight-_3b9.clientHeight,0);var _3bc=newH+"px";if(_3bc!=_3b9.style.height){_3b9.style.height=_3bc;_3b9.rows=1;}if(needsHelpShrinking){var _3bd=_3ba(),_3be=_3bd,_3bf=_3b9.style.minHeight,_3c0=4,_3c1,_3c2=_3b9.scrollTop;_3b9.style.minHeight=_3bc;_3b9.style.height="auto";while(newH>0){_3b9.style.minHeight=Math.max(newH-_3c0,4)+"px";_3c1=_3ba();var _3c3=_3be-_3c1;newH-=_3c3;if(_3c3<_3c0){break;}_3be=_3c1;_3c0<<=1;}_3b9.style.height=newH+"px";_3b9.style.minHeight=_3bf;_3b9.scrollTop=_3c2;}_3b9.style.overflowY=_3ba()>_3b9.clientHeight?"auto":"hidden";if(_3b9.style.overflowY=="hidden"){_3b9.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(_3c4,_3c5){var _3c6=[];function _3c7(attr,dir,comp,s){return function(_3c8,_3c9){var a=s.getValue(_3c8,attr);var b=s.getValue(_3c9,attr);return dir*comp(a,b);};};var _3ca;var map=_3c5.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_3c4.length;i++){_3ca=_3c4[i];var attr=_3ca.attribute;if(attr){var dir=(_3ca.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_3c6.push(_3c7(attr,dir,comp,_3c5));}}return function(rowA,rowB){var i=0;while(i<_3c6.length){var ret=_3c6[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(_3cb){_3cb=_3cb||{};if(!_3cb.store){_3cb.store=this;}var self=this;var _3cc=function(_3cd,_3ce){if(_3ce.onError){var _3cf=_3ce.scope||dojo.global;_3ce.onError.call(_3cf,_3cd,_3ce);}};var _3d0=function(_3d1,_3d2){var _3d3=_3d2.abort||null;var _3d4=false;var _3d5=_3d2.start?_3d2.start:0;var _3d6=(_3d2.count&&(_3d2.count!==Infinity))?(_3d5+_3d2.count):_3d1.length;_3d2.abort=function(){_3d4=true;if(_3d3){_3d3.call(_3d2);}};var _3d7=_3d2.scope||dojo.global;if(!_3d2.store){_3d2.store=self;}if(_3d2.onBegin){_3d2.onBegin.call(_3d7,_3d1.length,_3d2);}if(_3d2.sort){_3d1.sort(dojo.data.util.sorter.createSortFunction(_3d2.sort,self));}if(_3d2.onItem){for(var i=_3d5;(i<_3d1.length)&&(i<_3d6);++i){var item=_3d1[i];if(!_3d4){_3d2.onItem.call(_3d7,item,_3d2);}}}if(_3d2.onComplete&&!_3d4){var _3d8=null;if(!_3d2.onItem){_3d8=_3d1.slice(_3d5,_3d6);}_3d2.onComplete.call(_3d7,_3d8,_3d2);}};this._fetchItems(_3cb,_3d0,_3cc);return _3cb;};}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(_3d9,_3da){var rxp="^";var c=null;for(var i=0;i<_3d9.length;i++){c=_3d9.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_3d9.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(_3da){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(_3db){var pos=0;if(typeof (_3db.selectionStart)=="number"){pos=_3db.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_3db.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(_3dc,_3dd){_3dd=parseInt(_3dd);dijit.selectInputText(_3dc,_3dd,_3dd);},_setDisabledAttr:function(_3de){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_3de);},_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 _3df=false;var pw=this.dropDown;var dk=dojo.keys;var _3e0=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_3e0=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(_3e0);}dojo.stopEvent(evt);break;case dk.ENTER:if(_3e0){if(_3e0==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_3e0==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 _3e1=this.get("displayedValue");if(pw&&(_3e1==pw._messages["previousMessage"]||_3e1==pw._messages["nextMessage"])){break;}if(_3e0){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_3e0){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_3df=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_3df=true;break;default:_3df=typeof key=="string"||key==229;}if(_3df){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 _3e2=this.ignoreCase?"toLowerCase":"substr";if(text[_3e2](0).indexOf(this.focusNode.value[_3e2](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(_3e3,_3e4){this._fetchHandle=null;if(this.disabled||this.readOnly||(_3e4.query[this.searchAttr]!=this._lastQuery)){return;}var _3e5=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_3e3.length&&!this._maxOptions){this.closeDropDown();return;}_3e4._maxOptions=this._maxOptions;var _3e6=this.dropDown.createOptions(_3e3,_3e4,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_3e4.direction){if(1==_3e4.direction){this.dropDown.highlightFirstOption();}else{if(-1==_3e4.direction){this.dropDown.highlightLastOption();}}if(_3e5){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_3e4.query[this.searchAttr])){this._announceOption(_3e6[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_3e7){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 _3e8=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_3e8==pw._messages["previousMessage"]||_3e8==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_3e8);}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,_3e9,_3ea){if(!_3ea){_3ea=this.store.getValue(item,this.searchAttr);}var _3eb=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_3ea;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_3eb,_3e9,_3ea);},_announceOption:function(node){if(!node){return;}var _3ec;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_3ec=node.innerHTML;this.item=undefined;this.value="";}else{_3ec=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_3ec);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_3ec);},_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 _3ed=this.id+"_popup",_3ee=dojo.getObject(this.dropDownClass,false);this.dropDown=new _3ee({onChange:dojo.hitch(this,this._selectOption),id:_3ed,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_3ed);}var _3ef=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_3ef[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_3f0,_3f1){this.searchTimer=null;var _3f2={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_3f0,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_3f3){_3f1._fetchHandle=null;console.error("dijit.form.ComboBox: "+_3f3);_3f1.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_3f2,_3f1.fetchProperties);this._fetchHandle=_3f1.store.fetch(_3f2);var _3f4=function(_3f5,_3f6){_3f5.start+=_3f5.count*_3f6;_3f5.direction=_3f6;this._fetchHandle=this.store.fetch(_3f5);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_3f4,this._fetchHandle);},_3ef,this),this.searchDelay);},_setMaxOptions:function(size,_3f7){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _3f8=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_3f8);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _3f9=this._getValueField();this.value=this.store.getValue(item,_3f9);}}}this.inherited(arguments);},postCreate:function(){var _3fa=dojo.query("label[for=\""+this.id+"\"]");if(_3fa.length){_3fa[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_3fa[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _3fb=this.labelFunc(item,this.store),_3fc=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_3fb=this.doHighlight(_3fb,this._escapeHtml(this._lastInput));_3fc="html";}return {html:_3fc=="html",label:_3fb};},doHighlight:function(_3fd,find){var _3fe=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_3fd).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_3fe),"<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,_3ff){return _3ff.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(_400){this.value=_400;this.onChange(_400);},onChange:function(_401){},onPage:function(_402){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_403){var _404=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _405=_403(item);if(_405.html){_404.innerHTML=_405.label;}else{_404.appendChild(dojo.doc.createTextNode(_405.label));}if(_404.innerHTML==""){_404.innerHTML="&nbsp;";}_404.item=item;return _404;},createOptions:function(_406,_407,_408){this.previousButton.style.display=(_407.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_406,function(item,i){var _409=this._createOption(item,_408);dojo.attr(_409,"id",this.id+i);this.domNode.insertBefore(_409,this.nextButton);},this);var _40a=false;if(_407._maxOptions&&_407._maxOptions!=-1){if((_407.start+_407.count)<_407._maxOptions){_40a=true;}else{if((_407.start+_407.count)>_407._maxOptions&&_407.count==_406.length){_40a=true;}}}else{if(_407.count==_406.length){_40a=true;}}this.nextButton.style.display=_40a?"":"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 _40b=this.domNode.firstChild;var _40c=_40b.nextSibling;this._focusOptionNode(_40c.style.display=="none"?_40b:_40c);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 _40d=0;var _40e=this.domNode.scrollTop;var _40f=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_40d<_40f){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 _410=this.domNode.scrollTop;_40d+=(_410-_40e)*(up?-1:1);_40e=_410;}},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(_411,_412,_413){this._set("item",null);if(!_411){_411="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_411,_412,_413);}});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,_414,_415){return (_414=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_416){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_417,_418){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _419=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_41a=dojo.query("> option",this.root).filter(function(_41b){return (_41b.innerText||_41b.textContent||"").match(_419);});if(args.sort){_41a.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_417(_41a,args);},close:function(_41c){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(_41d,_41e,_41f){if((_41e&&_41e.query[this.searchAttr]!=this._lastQuery)||(!_41e&&_41d.length&&this.store.getIdentity(_41d[0])!=this._lastQuery)){return;}if(!_41d.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_41f||(_41f===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_41d[0],_41f);}},_openResultList:function(_420,_421){if(_421.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(_422,_423){if(!this._onChangeActive){_423=null;}this._lastQuery=_422;if(_422===null||_422===""){this._setDisplayedValueAttr("",_423);return;}var self=this;this.store.fetchItemByIdentity({identity:_422,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_423);}});},_setItemAttr:function(item,_424,_425){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_426,_427){if(_426==null){_426="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_427=false;}if(this.store){this.closeDropDown();var _428=dojo.clone(this.query);this._lastQuery=_428[this.searchAttr]=this._getDisplayQueryString(_426);this.textbox.value=_426;this._lastDisplayedValue=_426;this._set("displayedValue",_426);var _429=this;var _42a={query:_428,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_42b,_42c){_429._fetchHandle=null;dojo.hitch(_429,"_callbackSetLabel")(_42b,_42c,_427);},onError:function(_42d){_429._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_42d);dojo.hitch(_429,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_42a,this.fetchProperties);this._fetchHandle=this.store.fetch(_42a);}},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,_42e){return val;},_arrowPressed:function(_42f,_430,_431){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_430*_431),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_432,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(_432==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _433=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_433!==0){var node=this[(_433>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_433,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(_434,_435){_435=dojo.mixin({},_435||{});var _436=dojo.i18n.normalizeLocale(_435.locale),_437=dojo.i18n.getLocalization("dojo.cldr","number",_436);_435.customs=_437;var _438=_435.pattern||_437[(_435.type||"decimal")+"Format"];if(isNaN(_434)||Math.abs(_434)==Infinity){return null;}return dojo.number._applyPattern(_434,_438,_435);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_439,_43a,_43b){_43b=_43b||{};var _43c=_43b.customs.group,_43d=_43b.customs.decimal,_43e=_43a.split(";"),_43f=_43e[0];_43a=_43e[(_439<0)?1:0]||("-"+_43f);if(_43a.indexOf("%")!=-1){_439*=100;}else{if(_43a.indexOf("‰")!=-1){_439*=1000;}else{if(_43a.indexOf("¤")!=-1){_43c=_43b.customs.currencyGroup||_43c;_43d=_43b.customs.currencyDecimal||_43d;_43a=_43a.replace(/\u00a4{1,3}/,function(_440){var prop=["symbol","currency","displayName"][_440.length-1];return _43b[prop]||_43b.currency||"";});}else{if(_43a.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _441=dojo.number._numberPatternRE;var _442=_43f.match(_441);if(!_442){throw new Error("unable to find a number expression in pattern: "+_43a);}if(_43b.fractional===false){_43b.places=0;}return _43a.replace(_441,dojo.number._formatAbsolute(_439,_442[0],{decimal:_43d,group:_43c,places:_43b.places,round:_43b.round}));};dojo.number.round=function(_443,_444,_445){var _446=10/(_445||10);return (_446*+_443).toFixed(_444)/_446;};if((0.9).toFixed()==0){(function(){var _447=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 _447(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_448,_449,_44a){_44a=_44a||{};if(_44a.places===true){_44a.places=0;}if(_44a.places===Infinity){_44a.places=6;}var _44b=_449.split("."),_44c=typeof _44a.places=="string"&&_44a.places.indexOf(","),_44d=_44a.places;if(_44c){_44d=_44a.places.substring(_44c+1);}else{if(!(_44d>=0)){_44d=(_44b[1]||[]).length;}}if(!(_44a.round<0)){_448=dojo.number.round(_448,_44d,_44a.round);}var _44e=String(Math.abs(_448)).split("."),_44f=_44e[1]||"";if(_44b[1]||_44a.places){if(_44c){_44a.places=_44a.places.substring(0,_44c);}var pad=_44a.places!==undefined?_44a.places:(_44b[1]&&_44b[1].lastIndexOf("0")+1);if(pad>_44f.length){_44e[1]=dojo.string.pad(_44f,pad,"0",true);}if(_44d<_44f.length){_44e[1]=_44f.substr(0,_44d);}}else{if(_44e[1]){_44e.pop();}}var _450=_44b[0].replace(",","");pad=_450.indexOf("0");if(pad!=-1){pad=_450.length-pad;if(pad>_44e[0].length){_44e[0]=dojo.string.pad(_44e[0],pad);}if(_450.indexOf("#")==-1){_44e[0]=_44e[0].substr(_44e[0].length-pad);}}var _451=_44b[0].lastIndexOf(","),_452,_453;if(_451!=-1){_452=_44b[0].length-_451-1;var _454=_44b[0].substr(0,_451);_451=_454.lastIndexOf(",");if(_451!=-1){_453=_454.length-_451-1;}}var _455=[];for(var _456=_44e[0];_456;){var off=_456.length-_452;_455.push((off>0)?_456.substr(off):_456);_456=(off>0)?_456.slice(0,off):"";if(_453){_452=_453;delete _453;}}_44e[0]=_455.reverse().join(_44a.group||",");return _44e.join(_44a.decimal||".");};dojo.number.regexp=function(_457){return dojo.number._parseInfo(_457).regexp;};dojo.number._parseInfo=function(_458){_458=_458||{};var _459=dojo.i18n.normalizeLocale(_458.locale),_45a=dojo.i18n.getLocalization("dojo.cldr","number",_459),_45b=_458.pattern||_45a[(_458.type||"decimal")+"Format"],_45c=_45a.group,_45d=_45a.decimal,_45e=1;if(_45b.indexOf("%")!=-1){_45e/=100;}else{if(_45b.indexOf("‰")!=-1){_45e/=1000;}else{var _45f=_45b.indexOf("¤")!=-1;if(_45f){_45c=_45a.currencyGroup||_45c;_45d=_45a.currencyDecimal||_45d;}}}var _460=_45b.split(";");if(_460.length==1){_460.push("-"+_460[0]);}var re=dojo.regexp.buildGroupRE(_460,function(_461){_461="(?:"+dojo.regexp.escapeString(_461,".")+")";return _461.replace(dojo.number._numberPatternRE,function(_462){var _463={signed:false,separator:_458.strict?_45c:[_45c,""],fractional:_458.fractional,decimal:_45d,exponent:false},_464=_462.split("."),_465=_458.places;if(_464.length==1&&_45e!=1){_464[1]="###";}if(_464.length==1||_465===0){_463.fractional=false;}else{if(_465===undefined){_465=_458.pattern?_464[1].lastIndexOf("0")+1:Infinity;}if(_465&&_458.fractional==undefined){_463.fractional=true;}if(!_458.places&&(_465<_464[1].length)){_465+=","+_464[1].length;}_463.places=_465;}var _466=_464[0].split(",");if(_466.length>1){_463.groupSize=_466.pop().length;if(_466.length>1){_463.groupSize2=_466.pop().length;}}return "("+dojo.number._realNumberRegexp(_463)+")";});},true);if(_45f){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_467,_468,_469,_46a){var prop=["symbol","currency","displayName"][_469.length-1],_46b=dojo.regexp.escapeString(_458[prop]||_458.currency||"");_468=_468?"[\\s\\xa0]":"";_46a=_46a?"[\\s\\xa0]":"";if(!_458.strict){if(_468){_468+="*";}if(_46a){_46a+="*";}return "(?:"+_468+_46b+_46a+")?";}return _468+_46b+_46a;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_45c,decimal:_45d,factor:_45e};};dojo.number.parse=function(_46c,_46d){var info=dojo.number._parseInfo(_46d),_46e=(new RegExp("^"+info.regexp+"$")).exec(_46c);if(!_46e){return NaN;}var _46f=_46e[1];if(!_46e[1]){if(!_46e[2]){return NaN;}_46f=_46e[2];info.factor*=-1;}_46f=_46f.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _46f*info.factor;};dojo.number._realNumberRegexp=function(_470){_470=_470||{};if(!("places" in _470)){_470.places=Infinity;}if(typeof _470.decimal!="string"){_470.decimal=".";}if(!("fractional" in _470)||/^0/.test(_470.places)){_470.fractional=[true,false];}if(!("exponent" in _470)){_470.exponent=[true,false];}if(!("eSigned" in _470)){_470.eSigned=[true,false];}var _471=dojo.number._integerRegexp(_470),_472=dojo.regexp.buildGroupRE(_470.fractional,function(q){var re="";if(q&&(_470.places!==0)){re="\\"+_470.decimal;if(_470.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_470.places+"}";}}return re;},true);var _473=dojo.regexp.buildGroupRE(_470.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_470.eSigned})+")";}return "";});var _474=_471+_472;if(_472){_474="(?:(?:"+_474+")|(?:"+_472+"))";}return _474+_473;};dojo.number._integerRegexp=function(_475){_475=_475||{};if(!("signed" in _475)){_475.signed=[true,false];}if(!("separator" in _475)){_475.separator="";}else{if(!("groupSize" in _475)){_475.groupSize=3;}}var _476=dojo.regexp.buildGroupRE(_475.signed,function(q){return q?"[-+]":"";},true);var _477=dojo.regexp.buildGroupRE(_475.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_475.groupSize,grp2=_475.groupSize2;if(grp2){var _478="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_478+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_478;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _476+_477;};}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(_479){var _47a=typeof _479.places=="number"?_479.places:0;if(_47a){_47a++;}if(typeof _479.max!="number"){_479.max=9*Math.pow(10,15-_47a);}if(typeof _479.min!="number"){_479.min=-9*Math.pow(10,15-_47a);}this.inherited(arguments,[_479]);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 _47b=this.format(val,this.constraints);if(_47b!==undefined){this.textbox.value=_47b;}}this.inherited(arguments);},format:function(_47c,_47d){var _47e=String(_47c);if(typeof _47c!="number"){return _47e;}if(isNaN(_47c)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_47c,_47d))&&_47d.exponent!==false&&/\de[-+]?\d/i.test(_47e)){return _47e;}if(this.editOptions&&this._focused){_47d=dojo.mixin({},_47d,this.editOptions);}return this._formatter(_47c,_47d);},_parser:dojo.number.parse,parse:function(_47f,_480){var v=this._parser(_47f,dojo.mixin({},_480,(this.editOptions&&this._focused)?this.editOptions:{}));if(this.editOptions&&this._focused&&isNaN(v)){v=this._parser(_47f,_480);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_481){return (_481===null||_481===""||_481===undefined)?NaN:this.inherited(arguments);},serialize:function(_482,_483){return (typeof _482!="number"||isNaN(_482))?"":this.inherited(arguments);},_setBlurValue:function(){var val=dojo.hitch(dojo.mixin({},this,{_focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_484,_485,_486){if(_484!==undefined&&_486===undefined){_486=String(_484);if(typeof _484=="number"){if(isNaN(_484)){_486="";}else{if(("rangeCheck" in this&&this.rangeCheck(_484,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_486)){_486=undefined;}}}else{if(!_484){_486="";_484=NaN;}else{_484=undefined;}}}this.inherited(arguments,[_484,_485,_486]);},_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(_487){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,_488){var tc=this.constraints,v=isNaN(val),_489=!isNaN(tc.max),_48a=!isNaN(tc.min);if(v&&_488!=0){val=(_488>0)?_48a?tc.min:_489?tc.max:0:_489?this.constraints.max:_48a?tc.min:0;}var _48b=val+_488;if(v||isNaN(_48b)){return val;}if(_489&&(_48b>tc.max)){_48b=tc.max;}if(_48a&&(_48b<tc.min)){_48b=tc.min;}return _48b;},_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 _48c=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(typeof _48c=="number"){this._setValueAttr(_48c,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(_48d,_48e){var _48f=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_48d,function(code){_48f[code]=prev;});dojo.forEach(_48e,function(code){_48f[code]=next;});_48f[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_48f[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(_490,_491){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_490);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _492=this._getFirstFocusableChild();if(_492){this.focusChild(_492);}},focusLastChild:function(){var _493=this._getLastFocusableChild();if(_493){this.focusChild(_493);}},focusNext:function(){var _494=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_494);},focusPrev:function(){var _495=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_495,true);},focusChild:function(_496,last){if(this.focusedChild&&_496!==this.focusedChild){this._onChildBlur(this.focusedChild);}_496.set("tabIndex",this.tabIndex);_496.focus(last?"end":"start");this._set("focusedChild",_496);},_startupChild:function(_497){_497.set("tabIndex","-1");this.connect(_497,"_onFocus",function(){_497.set("tabIndex",this.tabIndex);});this.connect(_497,"_onBlur",function(){_497.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(_498){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_499,dir){if(_499){_499=this._getSiblingOfChild(_499,dir);}var _49a=this.getChildren();for(var i=0;i<_49a.length;i++){if(!_499){_499=_49a[(dir>0)?0:(_49a.length-1)];}if(_499.isFocusable()){return _499;}_499=this._getSiblingOfChild(_499,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(_49b){if(_49b&&!("label" in this.params)){this.set("label",_49b.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _49c=this.id+"_text";dojo.attr(this.containerNode,"id",_49c);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_49c+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_49c);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(_49d){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_49d);},setLabel:function(_49e){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_49e);},setDisabled:function(_49f){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_49f);},_setDisabledAttr:function(_4a0){dijit.setWaiState(this.focusNode,"disabled",_4a0?"true":"false");this._set("disabled",_4a0);},_setAccelKeyAttr:function(_4a1){this.accelKeyNode.style.display=_4a1?"":"none";this.accelKeyNode.innerHTML=_4a1;dojo.attr(this.containerNode,"colSpan",_4a1?"1":"2");this._set("accelKey",_4a1);}});}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 _4a2=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_4a2[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(_4a3){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_4a3);dijit.setWaiState(this.domNode,"checked",_4a3);this._set("checked",_4a3);},onChange:function(_4a4){},_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(_4a5){_4a5.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_4a6){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _4a7=this._getTopMenu();if(_4a7&&_4a7._isMenuBar){_4a7.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _4a8=this.currentPopup.parentMenu;if(_4a8.focusedChild){_4a8.focusedChild._setSelected(false);}_4a8.focusedChild=this.currentPopup.from_item;_4a8.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 _4a9=item.popup;if(_4a9){this._stopPendingCloseTimer(_4a9);_4a9._pendingClose_timer=setTimeout(function(){_4a9._pendingClose_timer=null;if(_4a9.parentMenu){_4a9.parentMenu.currentPopup=null;}dijit.popup.close(_4a9);},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(_4aa){if(_4aa._pendingClose_timer){clearTimeout(_4aa._pendingClose_timer);_4aa._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 _4ab=this.focusedChild;if(!_4ab){return;}var _4ac=_4ab.popup;if(_4ac.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_4ac.parentMenu=this;_4ac.from_item=_4ab;var self=this;dijit.popup.open({parent:this,popup:_4ac,around:_4ab.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(_4ab);self._cleanUp();_4ab._setSelected(true);self.focusedChild=_4ab;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_4ac;_4ac.connect(_4ac.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_4ac.focus){_4ac._focus_timer=setTimeout(dojo.hitch(_4ac,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 _4ad=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(_4ae){var win=dojo.window.get(this._iframeContentDocument(_4ae))||this._iframeContentDocument(_4ae)["__parent__"]||(_4ae.name&&dojo.doc.frames[_4ae.name])||null;return win;},_iframeContentDocument:function(_4af){var doc=_4af.contentDocument||(_4af.contentWindow&&_4af.contentWindow.document)||(_4af.name&&dojo.doc.frames[_4af.name]&&dojo.doc.frames[_4af.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _4b0=node,win=this._iframeContentWindow(_4b0);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _4b1={node:node,iframe:_4b0};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_4b1));var _4b2=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_4b0,{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,_4b0);}})];});_4b1.connects=cn?_4b2(cn):[];if(_4b0){_4b1.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_4b0);cn=dojo.withGlobal(win,dojo.body);_4b1.connects=_4b2(cn);});if(_4b0.addEventListener){_4b0.addEventListener("load",_4b1.onloadHandler,false);}else{_4b0.attachEvent("onload",_4b1.onloadHandler);}}},unBindDomNode:function(_4b3){var node;try{node=dojo.byId(_4b3);}catch(e){return;}var _4b4="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_4b4)){var bid=dojo.attr(node,_4b4)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _4b5=b.iframe;if(_4b5){if(_4b5.removeEventListener){_4b5.removeEventListener("load",b.onloadHandler,false);}else{_4b5.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_4b4);delete this._bindings[bid];}},_scheduleOpen:function(_4b6,_4b7,_4b8){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_4b6,iframe:_4b7,coords:_4b8});}),1);}},_openMyself:function(args){var _4b9=args.target,_4ba=args.iframe,_4bb=args.coords;if(_4bb){if(_4ba){var od=_4b9.ownerDocument,ifc=dojo.position(_4ba,true),win=this._iframeContentWindow(_4ba),_4bc=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_4ba),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_4ba,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_4ba,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_4ba,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_4ba,cs.borderTopWidth):0);_4bb.x+=ifc.x+left-_4bc.x;_4bb.y+=ifc.y+top-_4bc.y;}}else{_4bb=dojo.position(_4b9,true);_4bb.x+=10;_4bb.y+=10;}var self=this;var _4bd=dijit.getFocus(this);function _4be(){if(self.refocus){dijit.focus(_4bd);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_4bb.x,y:_4bb.y,onExecute:_4be,onCancel:_4be,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 _4bf={"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 _4bf){ds.fontSize=p;_4bf[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _4bf;};var _4c0=null;dhm.getCachedFontMeasurements=function(_4c1){if(_4c1||!_4c0){_4c0=dhm.getFontMeasurements();}return _4c0;};var _4c2=null,_4c3={};dhm.getTextBox=function(text,_4c4,_4c5){var m,s;if(!_4c2){m=_4c2=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=_4c2;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_4c4){for(var i in _4c4){if(i in _4c3){continue;}s[i]=_4c4[i];}}if(arguments.length>2&&_4c5){m.className=_4c5;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _4c6={w:16,h:16};dhm.getScrollbar=function(){return {w:_4c6.w,h:_4c6.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_4c7){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);_4c6.w=n.offsetWidth-n.clientWidth;_4c6.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(_4c8,_4c9){if(_4c9>=0){var s=_4c8.style;var v=_4c9+"px";if(_4c8&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_4ca,_4cb,_4cc,_4cd){var evts=(_4cd?_4cd:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_4cb.connect(_4ca,"on"+evts[i],_4cc);}};dgu.removeNode=function(_4ce){_4ce=dojo.byId(_4ce);_4ce&&_4ce.parentNode&&_4ce.parentNode.removeChild(_4ce);return _4ce;};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(_4cf,_4d0,_4d1){if(_4cf.length<=_4d0){_4cf[_4d0]=_4d1;}else{_4cf.splice(_4d0,0,_4d1);}};dgu.arrayRemove=function(_4d2,_4d3){_4d2.splice(_4d3,1);};dgu.arraySwap=function(_4d4,inI,inJ){var _4d5=_4d4[inI];_4d4[inI]=_4d4[inJ];_4d4[inJ]=_4d5;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _4d6=function(_4d7){var i=0,n,p=_4d7.parentNode;while((n=p.childNodes[i++])){if(n==_4d7){return i-1;}}return -1;};var _4d8=function(_4d9){if(!_4d9){return;}var _4da=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_4d9,true);};var ws=dijit.registry.filter(_4da);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _4db=function(_4dc){var node=dojo.byId(_4dc);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _4dd=function(_4de,_4df){var _4e0=[];var i=0,n;while((n=_4de.childNodes[i])){i++;if(_4db(n)==_4df){_4e0.push(n);}}return _4e0;};var _4e1=function(_4e2){return _4dd(_4e2,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_4e3){this.setContentNodes(_4e3);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(_4e4,_4e5,_4e6){switch(arguments.length){case 3:this.rowsPerPage=_4e6;case 2:this.keepRows=_4e5;case 1:this.rowCount=_4e4;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(_4e7,_4e8){return _4e7?(Math.ceil(_4e7/_4e8)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_4e9){this.keepRows=_4e9;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_4ea){this.contentNodes=_4ea;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(_4eb){this.invalidateNodes();this.rowCount=_4eb;var _4ec=this.pageCount;if(_4ec===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_4ec){for(var i=_4ec-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_4ec){this.height+=this.defaultPageHeight*(this.pageCount-_4ec-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_4ed){return Boolean(this.getDefaultPageNode(_4ed));},measurePage:function(_4ee){if(this.grid.rowHeight){var _4ef=this.grid.rowHeight+1;return ((_4ee+1)*this.rowsPerPage>this.rowCount?this.rowCount-_4ee*this.rowsPerPage:this.rowsPerPage)*_4ef;}var n=this.getDefaultPageNode(_4ee);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_4f0,_4f1){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_4f0].style.top=_4f1+"px";}},repositionPages:function(_4f2){var _4f3=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_4f3[_4f2];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_4f2):0);for(var p=_4f2+1;p<=last;p++){n=_4f3[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_4f4){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_4f4]);}},preparePage:function(_4f5,_4f6){var p=(_4f6?this.popPage():null);for(var i=0;i<this.colCount;i++){var _4f7=this.pageNodes[i];var _4f8=(p===null?this.createPageNode():this.invalidatePageNode(p,_4f7));_4f8.pageIndex=_4f5;_4f7[_4f5]=_4f8;}},renderPage:function(_4f9){var _4fa=[];var i,j;for(i=0;i<this.colCount;i++){_4fa[i]=this.pageNodes[i][_4f9];}for(i=0,j=_4f9*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_4fa);}},removePage:function(_4fb){for(var i=0,j=_4fb*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_4fc){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_4fc,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_4fd){},pacifying:false,pacifyTicks:200,setPacifying:function(_4fe){if(this.pacifying!=_4fe){this.pacifying=_4fe;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _4ff=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _4ff;},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 _500=(!this._invalidating);if(!_500){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_500=true;}}if(_500){this.needPage(this.page,this.pageTop);}var _501=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _502=this.getPageHeight(this.page);this.averageRowHeight=(_502>0&&_501>0)?(_502/_501):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _503=this.pageCount-1;var _504=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_503]=_504;return _504;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_505,_506,_507){if(this.pageExists(_505)){var oh=this.getPageHeight(_505);var h=(this.measurePage(_505));if(h===undefined){h=oh;}this.pageHeights[_505]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_506)){if(!_507){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_505);}}else{this.repositionPages(_505);}}return h;}return 0;},rowHeightChanged:function(_508,_509){this.updatePageHeight(Math.floor(_508/this.rowsPerPage),false,_509);},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(_50a){var ph=this.pageHeights[_50a];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_50b){return this.stack.push(_50b);},popPage:function(){return this.stack.shift();},findPage:function(_50c){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_50c){break;}}this.page=i;this.pageTop=h;},buildPage:function(_50d,_50e,_50f){this.preparePage(_50d,_50e);this.positionPage(_50d,_50f);this.installPage(_50d);this.renderPage(_50d);this.pushPage(_50d);},needPage:function(_510,_511){var h=this.getPageHeight(_510),oh=h;if(!this.pageExists(_510)){this.buildPage(_510,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_511);h=this.updatePageHeight(_510,true);}else{this.positionPage(_510,_511);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_512){this.grid.scrollTop=_512;if(this.colCount){this.startPacify();this.findPage(_512);var h=this.height;var b=this.getScrollBottom(_512);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,_512);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_513){return (this.windowHeight>=0?_513+this.windowHeight:-1);},processNodeEvent:function(e,_514){var t=e.target;while(t&&(t!=_514)&&t.parentNode&&(t.parentNode.parentNode!=_514)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_514)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_4d6(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_515,_516){},removeRow:function(_517){},getDefaultPageNode:function(_518){return this.getDefaultNodes()[_518];},positionPageNode:function(_519,_51a){},getPageNodePosition:function(_51b){return _51b.offsetTop;},invalidatePageNode:function(_51c,_51d){var p=_51d[_51c];if(p){delete _51d[_51c];this.removePage(_51c,p);_4d8(p);p.innerHTML="";}return p;},getPageRow:function(_51e){return _51e*this.rowsPerPage;},getLastPageRow:function(_51f){return Math.min(this.rowCount,this.getPageRow(_51f+1))-1;},getFirstVisibleRow:function(_520,_521,_522){if(!this.pageExists(_520)){return 0;}var row=this.getPageRow(_520);var _523=this.getDefaultNodes();var rows=_4e1(_523[_520]);for(var i=0,l=rows.length;i<l&&_521<_522;i++,row++){_521+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_524,_525,_526){if(!this.pageExists(_524)){return 0;}var _527=this.getDefaultNodes();var row=this.getLastPageRow(_524);var rows=_4e1(_527[_524]);for(var i=rows.length-1;i>=0&&_525>_526;i--,row--){_525-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_528){var _529=this.getDefaultNodes();var rows=_4e1(_529[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_528){this.offset=h-(t-_528);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_52a){var _52b=Math.floor(_52a/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_52b;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_52b;this.needPage(_52b,this.pageTop);var _52c=this.getDefaultNodes();var rows=_4e1(_52c[_52b]);var r=_52a-this.rowsPerPage*_52b;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 _52d=function(_52e){try{dojox.grid.util.fire(_52e,"focus");dojox.grid.util.fire(_52e,"select");}catch(e){}};var _52f=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(_530){this._props=_530||{};dojo.mixin(this,_530);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_531,_532){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_531!=this.defaultValue&&f)?f.apply(s,_532):_531;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(_533,_534){var f,i=this.grid.edit.info,d=this.get?this.get(_533,_534):(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==_533&&i.cell==this))){return this.formatEditing(d,_533);}else{return this._defaultFormat(d,[d,_533,this]);}},formatEditing:function(_535,_536){},getNode:function(_537){return this.view.getCellNode(_537,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_538){return (this.getNode(_538)||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(_539,_53a){this.grid.edit.applyCellEdit(_539,this,_53a);},cancelEdit:function(_53b){this.grid.doCancelEdit(_53b);},_onEditBlur:function(_53c){if(this.grid.edit.isEditCell(_53c,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_53d,_53e){if(this.commitOnBlur){dojo.connect(_53d,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_53e),250);});}},needFormatNode:function(_53f,_540){this._formatPending=true;_52f(this,"_formatNode",_53f,_540);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_541,_542){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_542),_541,_542);}},formatNode:function(_543,_544,_545){if(dojo.isIE){_52f(this,"focus",_545,_543);}else{this.focus(_545,_543);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_546){return this.getEditNode(_546)[this._valueProp];},setValue:function(_547,_548){var n=this.getEditNode(_547);if(n){n[this._valueProp]=_548;}},focus:function(_549,_54a){_52d(_54a||this.getEditNode(_549));},save:function(_54b){this.value=this.value||this.getValue(_54b);},restore:function(_54c){this.setValue(_54c,this.value);},_finish:function(_54d){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_54e){this.applyEdit(this.getValue(_54e),_54e);this._finish(_54e);},cancel:function(_54f){this.cancelEdit(_54f);this._finish(_54f);}});dgc._Base.markupFactory=function(node,_550){var d=dojo;var _551=d.trim(d.attr(node,"formatter")||"");if(_551){_550.formatter=dojo.getObject(_551)||_551;}var get=d.trim(d.attr(node,"get")||"");if(get){_550.get=dojo.getObject(get);}var _552=function(attr,cell,_553){var _554=d.trim(d.attr(node,attr)||"");if(_554){cell[_553||attr]=!(_554.toLowerCase()=="false");}};_552("sortDesc",_550);_552("editable",_550);_552("alwaysEditing",_550);_552("noresize",_550);_552("draggable",_550);var _555=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_555){_550.defaultValue=_555;}var _556=function(attr,cell,_557){var _558=d.trim(d.attr(node,attr)||"")||undefined;if(_558){cell[_557||attr]=_558;}};_556("styles",_550);_556("headerStyles",_550);_556("cellStyles",_550);_556("classes",_550);_556("headerClasses",_550);_556("cellClasses",_550);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_559,_55a){this.needFormatNode(_559,_55a);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_559+"\">";},formatNode:function(_55b,_55c,_55d){this.inherited(arguments);this.registerOnBlur(_55b,_55d);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_55e){this.inherited(arguments);var n=this.getEditNode(_55e);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_55f){dgc._Base.markupFactory(node,_55f);var d=dojo;var _560=d.trim(d.attr(node,"keyFilter")||"");if(_560){_55f.keyFilter=new RegExp(_560);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_561){return _561+1;}});dgc.RowIndex.markupFactory=function(node,_562){dgc.Cell.markupFactory(node,_562);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_563){this.values=this.values||this.options;},formatEditing:function(_564,_565){this.needFormatNode(_564,_565);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",(_564==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_566){var n=this.getEditNode(_566);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 _567=d.trim(d.attr(node,"options")||"");if(_567){var o=_567.split(",");if(o[0]!=_567){cell.options=o;}}var _568=d.trim(d.attr(node,"values")||"");if(_568){var v=_568.split(",");if(v[0]!=_568){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_569,_56a){this.formatNode(this.getEditNode(_56a),_569,_56a);},applyStaticValue:function(_56b){var e=this.grid.edit;e.applyCellEdit(this.getValue(_56b),this,_56b);e.start(this,_56b,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_56c,_56d){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_56c?" 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 _56e=n.scrollLeft,_56f=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_56e!=n.scrollLeft||_56f!=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,_570){this.node=dojo.byId(node);if(!_570){_570={};}this.handle=_570.handle?dojo.byId(_570.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_570.delay>0?_570.delay:0;this.skip=_570.skip;this.mover=_570.mover?_570.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(_571,node){return new dojo.dnd.Moveable(node,_571);},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(_572){dojo.publish("/dnd/move/start",[_572]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_573){dojo.publish("/dnd/move/stop",[_573]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_574,e){},onMove:function(_575,_576,e){this.onMoving(_575,_576);var s=_575.node.style;s.left=_576.l+"px";s.top=_576.t+"px";this.onMoved(_575,_576);},onMoving:function(_577,_578){},onMoved:function(_579,_57a){}});}if(!dojo._hasResource["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _57b=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _57c=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _57d=function(_57e,_57f){return _57e&&((_57e.rows||0)[_57f]||_57e.childNodes[_57f]);};var _580=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _581=function(_582,_583){for(var n=_582;n&&_583(n);n=n.parentNode){}return n;};var _584=function(_585){var name=_585.toUpperCase();return function(node){return node.tagName!=name;};};var _586=dojox.grid.util.rowIndexTag;var _587=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(_588,_589,_58a,_58b){var _58c=[],html;if(_58b){var _58d=_588.index!=_588.grid.getSortIndex()?"":_588.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_588.id){_588.id=this.grid.id+"Hdr"+_588.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_58d,"id=\"",_588.id,"\""];}else{var _58e=this.grid.editable&&!_588.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_58e];}if(_588.colSpan){html.push(" colspan=\"",_588.colSpan,"\"");}if(_588.rowSpan){html.push(" rowspan=\"",_588.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_588.classes){html.push(_588.classes," ");}if(_58a){html.push(_58a," ");}_58c.push(html.join(""));_58c.push("");html=["\" idx=\"",_588.index,"\" style=\""];if(_589&&_589[_589.length-1]!=";"){_589+=";";}html.push(_588.styles,_589||"",_588.hidden?"display:none;":"");if(_588.unitWidth){html.push("width:",_588.unitWidth,";");}_58c.push(html.join(""));_58c.push("");html=["\""];if(_588.attrs){html.push(" ",_588.attrs);}html.push(">");_58c.push(html.join(""));_58c.push("");_58c.push(_58b?"</th>":"</td>");return _58c;},isCellNode:function(_58f){return Boolean(_58f&&_58f!=dojo.doc&&dojo.attr(_58f,"idx"));},getCellNodeIndex:function(_590){return _590?Number(dojo.attr(_590,"idx")):-1;},getCellNode:function(_591,_592){for(var i=0,row;((row=_57d(_591.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_592){return cell;}}}return null;},findCellTarget:function(_593,_594){var n=_593;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_587 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_587]!=this.view.id))&&(n!=_594)){n=n.parentNode;}return n!=_594?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(_595,_596){var n=_595;while(n&&(n!=this.domNode)&&(!(_596 in n)||(_587 in n&&n[_587]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_597){return this.findTarget(_597,_586);},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 _598=this.grid.get,_599=this.view.structure.cells;for(var j=0,row;(row=_599[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_598;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_59a,_59b){var html=this.getTableArray(),v=this.view,_59c=v.structure.cells,item=this.grid.getItem(_59b);dojox.grid.util.fire(this.view,"onBeforeRow",[_59b,_59c]);for(var j=0,row;(row=_59c[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(_59b,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[_586];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(_59d,_59e){var html=this.getTableArray(),_59f=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_59f]);for(var j=0,row;(row=_59f[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_5a0;(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+"'";}}_5a0=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_5a0[5]=(_59e!=undefined?_59e:_59d(cell));_5a0[3]=cell.customStyles.join(";");_5a0[1]=cell.customClasses.join(" ");html.push(_5a0.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=_581(e.target,_584("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_581(n,_584("table"));x-=(table&&table.offsetLeft)||0;}}n=_581(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=_57b(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,_5a1){var _5a2=dojo.contentBox(e.sourceView.headerNode);if(_5a1){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _5a3=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:(_5a3.h+_5a2.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _5a4=[],_5a5=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_5a5[i]);i++){_5a4.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _5a6=e.grid.views.views;var _5a7=[];for(var j=view.idx+adj,_5a8;(_5a8=_5a6[j]);j=j+adj){_5a7.push({node:_5a8.headerNode,left:window.parseInt(_5a8.headerNode.style.left)});}var _5a9=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:_5a2.w,table:_5a9,tw:dojo.contentBox(_5a9).w,spanners:_5a4,followers:_5a7};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(_5aa,_5ab,_5ac){var _5ad=_5ac.l;var data={deltaX:_5ad,w:_5aa.w+(dojo._isBodyLtr()?_5ad:-_5ad),vw:_5aa.vw+_5ad,tw:_5aa.tw+_5ad};this.dragRecord={inDrag:_5aa,mover:_5ab,leftTop:_5ac};if(data.w>=this.minColWidth){if(!_5ab){this.doResizeNow(_5aa,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_5ae){if(this.dragRecord){var _5af=this.dragRecord.leftTop;var _5b0=dojo._isBodyLtr()?_5af.l:-_5af.l;_5b0+=Math.max(_5ae.w+_5b0,this.minColWidth)-(_5ae.w+_5b0);if(dojo.isWebKit&&_5ae.spanners.length){_5b0+=dojo._getPadBorderExtents(_5ae.spanners[0].node).w;}var data={deltaX:_5b0,w:_5ae.w+_5b0,vw:_5ae.vw+_5b0,tw:_5ae.tw+_5b0};this.doResizeNow(_5ae,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_5ae.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_5ae.index);},doResizeNow:function(_5b1,data){_5b1.view.convertColPctToFixed();if(_5b1.view.flexCells&&!_5b1.view.testFlexCells()){var t=_580(_5b1.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_5b1.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_5b1.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_5b1.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_5b1.node.style.width=data.w+"px";_5b1.view.setColWidth(_5b1.index,data.w);_5b1.view.headerNode.style.width=data.vw+"px";_5b1.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_5b1.view.headerNode.scrollLeft=_5b1.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_5b2){var _5b3=_5b2.length;if(!_5b3){return;}this.map=[];var row;for(var k=0;(row=_5b2[k]);k++){this.map[k]=[];}for(var j=0;(row=_5b2[j]);j++){for(var i=0,x=0,cell,_5b4,_5b5;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_5b5=cell.rowSpan||1;_5b4=cell.colSpan||1;for(var y=0;y<_5b5;y++){for(var s=0;s<_5b4;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_5b4;}}},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(_5b6,_5b7){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_5b7&&cell.r==_5b6){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_5b8,_5b9,_5ba){var row=_5b8&&_5b8.rows[_5b9];return row&&row.cells[_5ba];},_findOverlappingNodes:function(_5bb,_5bc,_5bd){var _5be=[];var m=this.getMapCoords(_5bc,_5bd);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(_5bb,rw.r,rw.c):null);if(n){_5be.push(n);}}return _5be;},findOverlappingNodes:function(_5bf){return this._findOverlappingNodes(_580(_5bf),_57c(_5bf.parentNode),_57b(_5bf));}});})();}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,_5c0){this.node=dojo.byId(node);if(!_5c0){_5c0={};}this.creator=_5c0.creator||null;this.skipForm=_5c0.skipForm;this.parent=_5c0.dropParent&&dojo.byId(_5c0.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_5c0&&_5c0._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,_5c1,_5c2){if(!this.parent.firstChild){_5c2=null;}else{if(_5c1){if(!_5c2){_5c2=this.parent.firstChild;}}else{if(_5c2){_5c2=_5c2.nextSibling;}}}if(_5c2){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,_5c2);}}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(_5c3,node){_5c3._skipStartup=true;return new dojo.dnd.Container(node,_5c3);},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,_5c4){var _5c5="dojoDnd"+type;var _5c6=type.toLowerCase()+"State";dojo.replaceClass(this.node,_5c5+_5c4,_5c5+this[_5c6]);this[_5c6]=_5c4;},_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 _5c7=node.parentNode;_5c7;node=_5c7,_5c7=node.parentNode){if(_5c7==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 _5c8=item&&dojo.isObject(item),data,type,n;if(_5c8&&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=(_5c8&&item.data)?item.data:item;type=(_5c8&&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,_5c9){if(!_5c9){_5c9={};}this.singular=_5c9.singular;this.autoSync=_5c9.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(_5ca,data,_5cb,_5cc){var _5cd=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_5cd.call(this,item,hint);if(_5ca){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,_5cb,_5cc);this._normalizedCreator=_5cd;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_5ce,node){_5ce._skipStartup=true;return new dojo.dnd.Selector(node,_5ce);},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(_5cf){this.manager=_5cf;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"}}),_5d0=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:_5d0.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(_5d0.creator){node=_5d0._normalizedCreator(_5d0.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _5d1=dojo.create("table"),_5d2=dojo.create("tbody",null,_5d1);_5d2.appendChild(node);node=_5d1;}}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(_5d3){if(this.avatar){this.target=(_5d3&&_5d3.targetState!="Disabled")?_5d3:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_5d3]);},outSource:function(_5d4){if(this.avatar){if(this.target==_5d4){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_5d5,_5d6,copy){this.source=_5d5;this.nodes=_5d6;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_5d5,_5d6,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 _5d7=Boolean(this.target&&flag);if(this.canDropFlag!=_5d7){this.canDropFlag=_5d7;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))),_5d8=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_5d8);dojo.publish("/dnd/drop",_5d8);}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,_5d9){dojo.mixin(this,dojo.mixin({},_5d9));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(_5da,_5db){if(this==_5da){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_5db.length;++i){var type=_5da.getItem(_5db[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(_5dc,self){if(_5dc){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(_5dd,node){_5dd._skipStartup=true;return new dojo.dnd.Source(node,_5dd);},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 _5de=this.getSelectedNodes();if(_5de.length){m.startDrag(this,_5de,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _5df=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_5df=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_5df=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_5df!=this.before){this._markTargetAnchor(_5df);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(_5e0){if(this!=_5e0){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(_5e1,_5e2,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_5e1?(copy?"Copied":"Moved"):"");}var _5e3=this.accept&&this.checkAcceptance(_5e1,_5e2);this._changeState("Target",_5e3?"":"Disabled");if(this==_5e1){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_5e4,_5e5,copy,_5e6){if(this==_5e6){this.onDrop(_5e4,_5e5,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(_5e7,_5e8,copy){if(this!=_5e7){this.onDropExternal(_5e7,_5e8,copy);}else{this.onDropInternal(_5e8,copy);}},onDropExternal:function(_5e9,_5ea,copy){var _5eb=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _5eb.call(this,_5e9.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_5e9.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=_5e9.getItem(node.id);_5e9.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_5e9.selectNone();}this.insertNodes(true,_5ea,this.before,this.current);if(!copy&&this.creator){_5e9.deleteSelectedNodes();}this._normalizedCreator=_5eb;},onDropInternal:function(_5ec,copy){var _5ed=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _5ed.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,_5ec,this.before,this.current);this._normalizedCreator=_5ed;},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(_5ee){if(this.current==this.targetAnchor&&this.before==_5ee){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_5ee;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,_5ef){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_5f0,node){_5f0._skipStartup=true;return new dojo.dnd.Target(node,_5f0);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_5f1){this.autoSync=true;},markupFactory:function(_5f2,node){_5f2._skipStartup=true;return new dojo.dnd.AutoSource(node,_5f2);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _5f3=function(_5f4,_5f5){return _5f4.style.cssText==undefined?_5f4.getAttribute("style"):_5f4.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(_5f6){var vs=(this.structure=_5f6);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(_5f7){if(_5f7){dojo.forEach(dojo.query("[widgetId]",_5f7).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(_5f8,_5f9){this._onBeforeRow(_5f8,_5f9);if(_5f8>=0){this._cleanupRowWidgets(this.getRowNode(_5f8));}},onAfterRow:function(_5fa,_5fb,_5fc){this._onAfterRow(_5fa,_5fb,_5fc);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_5fc),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _5fd=window.parseInt(dojo.attr(n,"cellIdx"),10);var _5fe=g.getCell(_5fd);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 _5ff=this.hasVScrollbar();var _600=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_600||_600=="hidden"){_5ff=false;}else{if(_600=="scroll"){_5ff=true;}}return (_5ff?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(_601){this.headerContentNode.firstChild.style.width=_601+"px";if(this.viewWidth){this.viewWidth=_601+"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 _602=this.grid.layout.cells;var _603=dojo.hitch(this,function(node,_604){!dojo._isBodyLtr()&&(_604=!_604);var inc=_604?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_602[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_602[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _605="dojoxGrid_bottomMarker";var _606="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_605);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_606);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_605,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_606,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _607=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(_608){var src=this.source;if(src.current==src.targetAnchor&&src.before==_608){return;}if(src.targetAnchor&&_603(src.targetAnchor,src.before)){src._removeItemClass(_603(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_608);var _609=_608?src.targetAnchor:_603(src.targetAnchor,src.before);var _60a=0;if(!_609){_609=src.targetAnchor;_60a=dojo.contentBox(_609).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_609,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_60a);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_607+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_603(src.targetAnchor,src.before)){src._addItemClass(_603(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_603(src.targetAnchor,src.before)){src._removeItemClass(_603(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(_60b,_60c,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _60d=this.grid.views.views;var _60e=_60d[_60b.viewIndex];var _60f=_60d[this.index];if(_60f!=_60e){_60e.convertColPctToFixed();_60f.convertColPctToFixed();}},_onDndDrop:function(_610,_611,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 _612=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_611[0]).w;if(_610.viewIndex!==this.index){var _613=this.grid.views.views;var _614=_613[_610.viewIndex];var _615=_613[this.index];if(_614.viewWidth&&_614.viewWidth!="auto"){_614.setColumnsWidth(_614.getColumnsWidth()-w);}if(_615.viewWidth&&_615.viewWidth!="auto"){_615.setColumnsWidth(_615.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _616=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_616.moveColumn(_610.viewIndex,idx,_612(_611[0]),_612(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(_617){var n=_617.name||_617.grid.getCellName(_617);var ret=["<div class=\"dojoxGridSortNode"];if(_617.index!=_617.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_617.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_617.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(_618){var _619=this._hasHScroll||false;if(this._hasHScroll==undefined||_618){if(this.noscroll){this._hasHScroll=false;}else{var _61a=dojo.style(this.scrollboxNode,"overflow");if(_61a=="hidden"){this._hasHScroll=false;}else{if(_61a=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_619!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_61b){var _61c=this._hasVScroll||false;if(this._hasVScroll==undefined||_61b){if(this.noscroll){this._hasVScroll=false;}else{var _61d=dojo.style(this.scrollboxNode,"overflow");if(_61d=="hidden"){this._hasVScroll=false;}else{if(_61d=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_61c!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _61e=false;this.grid.initialWidth="";var _61f=dojo.query("th",this.headerContentNode);var _620=dojo.map(_61f,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_61e=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_61e){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _621=cell.view.getHeaderCellNode(cell.index);if(_621&&dojo.hasAttr(_621,"vIdx")){var vIdx=window.parseInt(dojo.attr(_621,"vIdx"));this.setColWidth(idx,_620[vIdx]);dojo.removeAttr(_621,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_622){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 _623=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(_622||(this.noscroll&&_623())){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(_624){var _625=this.createRowNode(_624);this.buildRow(_624,_625);return _625;},createRowNode:function(_626){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]=_626;this.rowNodes[_626]=node;return node;},buildRow:function(_627,_628){this.buildRowContent(_627,_628);this.styleRow(_627,_628);},buildRowContent:function(_629,_62a){_62a.innerHTML=this.content.generateHtml(_629,_629);if(this.flexCells&&this.contentWidth){_62a.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_629,this.structure.cells,_62a]);},rowRemoved:function(_62b){if(_62b>=0){this._cleanupRowWidgets(this.getRowNode(_62b));}this.grid.edit.save(this,_62b);delete this.rowNodes[_62b];},getRowNode:function(_62c){return this.rowNodes[_62c];},getCellNode:function(_62d,_62e){var row=this.getRowNode(_62d);if(row){return this.content.getCellNode(row,_62e);}},getHeaderCellNode:function(_62f){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_62f);}},styleRow:function(_630,_631){_631._style=_5f3(_631);this.styleRowNode(_630,_631);},styleRowNode:function(_632,_633){if(_633){this.doStyleRowNode(_632,_633);}},doStyleRowNode:function(_634,_635){this.grid.styleRowNode(_634,_635);},updateRow:function(_636){var _637=this.getRowNode(_636);if(_637){_637.style.height="";this.buildRow(_636,_637);}return _637;},updateRowStyles:function(_638){this.styleRowNode(_638,this.getRowNode(_638));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_639){if(dojo.isFF>=13){this._nativeScroll=true;}var _63a=dojo._isBodyLtr();if(this.firstScroll<2){if((!_63a&&this.firstScroll==1)||(_63a&&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=_63a?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(_63b){this.lastTop=_63b;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_63b;}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(_63c,_63d){this.grid.setCellWidth(_63c,_63d+"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 _63e=this.manager.source,node;if(_63e.creator){node=_63e._normalizedCreator(_63e.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _63f,_640;if(node.tagName.toLowerCase()=="tr"){_63f=dd.createElement("table");_640=dd.createElement("tbody");_640.appendChild(node);_63f.appendChild(_640);node=_63f;}else{if(node.tagName.toLowerCase()=="th"){_63f=dd.createElement("table");_640=dd.createElement("tbody");var r=dd.createElement("tr");_63f.cellPadding=_63f.cellSpacing="0";r.appendChild(node);_640.appendChild(r);_63f.appendChild(_640);node=_63f;}}}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 _641=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 _641.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(_642,_643){var w=this.contentWidth||0;_643.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(_644,_645){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_644)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_644)){n.push("dojoxGridRowbarSelected");}_645.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(_646){this.grid=_646;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_647,_648,_649,_64a,_64b){var _64c=this.structure[_647].cells[0];var _64d=this.structure[_648].cells[0];var cell=null;var _64e=0;var _64f=0;for(var i=0,c;c=_64c[i];i++){if(c.index==_649){_64e=i;break;}}cell=_64c.splice(_64e,1)[0];cell.view=this.grid.views.views[_648];for(i=0,c=null;c=_64d[i];i++){if(c.index==_64a){_64f=i;break;}}if(!_64b){_64f+=1;}_64d.splice(_64f,0,cell);var _650=this.grid.getCell(this.grid.getSortIndex());if(_650){_650._currentlySorted=this.grid.getSortAsc();}this.cells=[];_649=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=_649;this.cells.push(c);if("_currentlySorted" in c){var si=_649+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_649++;}}}dojo.forEach(this.cells,function(c){var _651=c.markup[2].split(" ");var _652=parseInt(_651[1].substring(5));if(_652!=c.index){_651[1]="idx=\""+c.index+"\"";c.markup[2]=_651.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_653,_654){var cell=this.cells[_653];if(cell.hidden==_654){cell.hidden=!_654;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(_655,_656,_657){var self=this;var _658=function(_659){var w=0;if(_659.colSpan>1){w=0;}else{w=_659.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _65a={grid:this.grid,subrow:_655,layoutIndex:_656,index:this.cells.length};if(_657&&_657 instanceof dojox.grid.cells._Base){var _65b=dojo.clone(_657);_65a.unitWidth=_658(_65b._props);_65b=dojo.mixin(_65b,this._defaultCellProps,_657._props,_65a);return _65b;}var _65c=_657.type||_657.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_65c)){_65c=dojo.getObject(_65c);}_65a.unitWidth=_658(_657);return new _65c(dojo.mixin({},this._defaultCellProps,_657,_65a));},addRowDef:function(_65d,_65e){var _65f=[];var _660=0,_661=0,_662=true;for(var i=0,def,cell;(def=_65e[i]);i++){cell=this.addCellDef(_65d,i,def);_65f.push(cell);this.cells.push(cell);if(_662&&cell.relWidth){_660+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_661+=window.parseInt(w,10);}else{if(w=="auto"){_662=false;}}}}}if(_660&&_662){dojo.forEach(_65f,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_660)*(100-_661))+"%";}});}return _65f;},addRowsDef:function(_663){var _664=[];if(dojo.isArray(_663)){if(dojo.isArray(_663[0])){for(var i=0,row;_663&&(row=_663[i]);i++){_664.push(this.addRowDef(i,row));}}else{_664.push(this.addRowDef(0,_663));}}return _664;},addViewDef:function(_665){this._defaultCellProps=_665.defaultCell||{};if(_665.width&&_665.width=="auto"){delete _665.width;}return dojo.mixin({},_665,{cells:this.addRowsDef(_665.rows||_665.cells)});},setStructure:function(_666){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 _667=this.grid.rowSelector;if(_667=="false"){sel=null;}else{if(_667!="true"){sel["width"]=_667;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _668=function(def){return ("name" in def||"field" in def||"get" in def);};var _669=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_668(def[0])){return true;}}return false;};var _66a=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_668(def))));};if(dojo.isArray(_666)){var _66b=false;for(var i=0,st;(st=_666[i]);i++){if(_66a(st)){_66b=true;break;}}if(!_66b){s.push(this.addViewDef({cells:_666}));}else{for(i=0;(st=_666[i]);i++){if(_669(st)){s.push(this.addViewDef({cells:st}));}else{if(_66a(st)){s.push(this.addViewDef(st));}}}}}else{if(_66a(_666)){s.push(this.addViewDef(_666));}}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(_66c){this.grid=_66c;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_66d){_66d.idx=this.views.length;this.views.push(_66d);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _66e=[];for(var i=0,v;v=this.views[i];i++){_66e.push(v.contentNode);}return _66e;},forEach:function(_66f){for(var i=0,v;v=this.views[i];i++){_66f(v,i);}},onEach:function(_670,_671){_671=_671||[];for(var i=0,v;v=this.views[i];i++){if(_670 in v){v[_670].apply(v,_671);}}},normalizeHeaderNodeHeight:function(){var _672=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_672.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_672);},normalizeRowNodeHeights:function(_673){var h=0;var _674=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_673.length<=1){return;}for(var i=0,n;(n=_673[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_674[i]=n.firstChild.offsetHeight;h=Math.max(h,_674[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_673[i]);i++){if(_674[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(_675){var _676=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_675));i++){n.firstChild.style.height="";_676.push(n);}this.normalizeRowNodeHeights(_676);},getViewWidth:function(_677){return this.views[_677].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_678){_678.headerContentNode.style.height="";});var h=0;this.forEach(function(_679){h=Math.max(_679.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_67a){h=Math.max(_67a.domNode.offsetHeight,h);});return h;},findClient:function(_67b){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 _67c=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);_67c(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;_67c(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_67c(v,l);}return l;},renderRow:function(_67d,_67e,_67f){var _680=[];for(var i=0,v,n,_681;(v=this.views[i])&&(n=_67e[i]);i++){_681=v.renderRow(_67d);n.appendChild(_681);_680.push(_681);}if(!_67f){this.normalizeRowNodeHeights(_680);}},rowRemoved:function(_682){this.onEach("rowRemoved",[_682]);},updateRow:function(_683,_684){for(var i=0,v;v=this.views[i];i++){v.updateRow(_683);}if(!_684){this.renormalizeRow(_683);}},updateRowStyles:function(_685){this.onEach("updateRowStyles",[_685]);},setScrollTop:function(_686){var top=_686;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_686);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 _687=function(_688,_689){if(_688.style.cssText==undefined){_688.setAttribute("style",_689);}else{_688.style.cssText=_689;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_68a){this.grid=_68a;},linesToEms:2,overRow:-2,prepareStylingRow:function(_68b,_68c){return {index:_68b,node:_68c,odd:Boolean(_68b&1),selected:!!this.grid.selection.isSelected(_68b),over:this.isOver(_68b),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_68d,_68e){var row=this.prepareStylingRow(_68d,_68e);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_68f){var i=_68f;i.node.className=i.customClasses;var h=i.node.style.height;_687(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_690){this.grid.updateRowStyles(_690);},setOverRow:function(_691){var last=this.overRow;this.overRow=_691;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_692){return (this.overRow==_692&&!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(_693){this.grid=_693;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(_694,_695){return (this.cell==_694)&&(this.rowIndex==_695);},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(_696){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_696);if(_696){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 _697=this._findHeaderCells();for(var i=0;i<_697.length;i++){this._headerConnects.push(dojo.connect(_697[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_697[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _698=dojo.query("th",this.grid.viewsHeaderNode);var _699=[];for(var i=0;i<_698.length;i++){var _69a=_698[i];var _69b=dojo.hasAttr(_69a,"tabIndex");var _69c=dojo.attr(_69a,"tabIndex");if(_69b&&_69c<0){_699.push(_69a);}}return _699;},_setActiveColHeader:function(_69d,_69e,_69f){dojo.attr(this.grid.domNode,"aria-activedescendant",_69d.id);if(_69f!=null&&_69f>=0&&_69f!=_69e){dojo.toggleClass(this._findHeaderCells()[_69f],this.focusClass,false);}dojo.toggleClass(_69d,this.focusClass,true);this._colHeadNode=_69d;this._colHeadFocusIdx=_69e;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,_6a0){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:(_6a0?_6a0:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_6a1){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_6a1);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _6a2=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_6a2){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 _6a3=this.focusView;if(!_6a3){for(var i=0,_6a4;(_6a4=this.grid.views.views[i]);i++){if(_6a4.headerNode){_6a3=_6a4;break;}}}return (_6a3&&dojo.getComputedStyle(_6a3.headerNode).display=="none");},colSizeAdjust:function(e,_6a5,_6a6){var _6a7=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_6a8;(_6a8=this.grid.views.views[i]);i++){if(_6a8.header.tableMap.map){view=_6a8;break;}}}var _6a9=_6a7[_6a5];if(!view||(_6a5==_6a7.length-1&&_6a5===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_6a9;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _6aa={l:_6a6};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_6aa);view.update();}},styleRow:function(_6ab){return;},setFocusIndex:function(_6ac,_6ad){this.setFocusCell(this.grid.getCell(_6ad),_6ac);},setFocusCell:function(_6ae,_6af){if(_6ae&&!this.isFocusCell(_6ae,_6af)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_6ae;this.rowIndex=_6af;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 _6b0=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_6b0.editable||this.grid.canEdit&&!this.grid.canEdit(_6b0,row))){this.cell=_6b0;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 _6b1=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_6b1.editable){this.cell=_6b1;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_6b2,_6b3){var _6b4=_6b3<0?-1:1;if(this.isNavHeader()){var _6b5=this._findHeaderCells();var _6b6=currentIdx=dojo.indexOf(_6b5,this._colHeadNode);currentIdx+=_6b3;while(currentIdx>=0&&currentIdx<_6b5.length&&_6b5[currentIdx].style.display=="none"){currentIdx+=_6b4;}if((currentIdx>=0)&&(currentIdx<_6b5.length)){this._setActiveColHeader(_6b5[currentIdx],currentIdx,_6b6);}}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+_6b2));if(_6b2){if(_6b2>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_6b2<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+_6b3));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_6b4;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_6b2){if((row+_6b2)>=0&&(row+_6b2)<=rc){this.move(_6b2>0?++_6b2:--_6b2,_6b3);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_6b3){if((col+_6b3)>=0&&(col+_6b3)<=cc){this.move(_6b2,_6b3>0?++_6b3:--_6b3);}return;}}this.setFocusIndex(row,col);if(_6b2){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 _6b7=(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(_6b8){this.tabbingOut=true;_6b8.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_6b9){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _6ba=true;var _6bb=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_6bb){var _6bc=0;var cell=this.grid.getCell(_6bc);if(cell.hidden){_6bc=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_6bc);}else{if(this.cell&&!_6bb){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_6ba=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _6ba;},focusHeader:function(){var _6bd=this._findHeaderCells();var _6be=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=_6bd[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_6bd.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_6bd[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,_6be);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 _6bf=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_6bf);this._contextMenuBindNode=_6bf;}},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(_6c0){this.grid=_6c0;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(_6c1,_6c2){if(this.grid.singleClickEdit||this.isEditRow(_6c2)){this.setEditCell(_6c1,_6c2);}else{this.apply();}if(this.isEditing()||(_6c1&&_6c1.editable&&_6c1.alwaysEditing)){this._focusEditor(_6c1,_6c2);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_6c3){if(_6c3.index==this.info.rowIndex){_6c3.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(_6c4,_6c5){return (this.info.rowIndex===_6c4)&&(this.info.cell.index==_6c5);},isEditRow:function(_6c6){return this.info.rowIndex===_6c6;},setEditCell:function(_6c7,_6c8){if(!this.isEditCell(_6c8,_6c7.index)&&this.grid.canEdit&&this.grid.canEdit(_6c7,_6c8)){this.start(_6c7,_6c8,this.isEditRow(_6c8)||_6c7.editable);}},_focusEditor:function(_6c9,_6ca){dojox.grid.util.fire(_6c9,"focus",[_6ca]);},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(_6cb,_6cc,_6cd){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_6cc)){this.applyRowEdit();this.grid.updateRow(_6cc);}if(_6cd){this.info={cell:_6cb,rowIndex:_6cc};this.grid.doStartEdit(_6cb,_6cc);this.grid.updateRow(_6cc);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_6cb,_6cc);this._doCatchBoomerang();},_editorDo:function(_6ce){var c=this.info.cell;if(c&&c.editable){c[_6ce](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_6cf,_6d0,_6d1){if(this.grid.canEdit(_6d0,_6d1)){this.grid.doApplyCellEdit(_6cf,_6d1,_6d0.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(_6d2,_6d3){var c=this.info.cell;if(this.isEditRow(_6d2)&&(!_6d3||c.view==_6d3)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_6d4,_6d5){var c=this.info.cell;if(this.isEditRow(_6d5)&&c.view==_6d4&&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(_6d6){this.grid=_6d6;this.selected=[];this.setMode(_6d6.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(_6d7){return this.grid.onCanSelect(_6d7);},onCanDeselect:function(_6d8){return this.grid.onCanDeselect(_6d8);},onSelected:function(_6d9){},onDeselected:function(_6da){},onChanging:function(){},onChanged:function(){},isSelected:function(_6db){if(this.mode=="none"){return false;}return this.selected[_6db];},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(_6dc){if(this.mode=="none"){return -1;}for(var i=_6dc+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _6dd=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_6dd.push(i);}}return _6dd;},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(_6de){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_6de);this.addToSelection(_6de);}else{this.toggleSelect(_6de);}},addToSelection:function(_6df){if(this.mode=="none"){return;}if(dojo.isArray(_6df)){dojo.forEach(_6df,this.addToSelection,this);return;}_6df=Number(_6df);if(this.selected[_6df]){this.selectedIndex=_6df;}else{if(this.onCanSelect(_6df)!==false){this.selectedIndex=_6df;var _6e0=this.grid.getRowNode(_6df);if(_6e0){dojo.attr(_6e0,"aria-selected","true");}this._beginUpdate();this.selected[_6df]=true;this.onSelected(_6df);this._endUpdate();}}},deselect:function(_6e1){if(this.mode=="none"){return;}if(dojo.isArray(_6e1)){dojo.forEach(_6e1,this.deselect,this);return;}_6e1=Number(_6e1);if(this.selectedIndex==_6e1){this.selectedIndex=-1;}if(this.selected[_6e1]){if(this.onCanDeselect(_6e1)===false){return;}var _6e2=this.grid.getRowNode(_6e1);if(_6e2){dojo.attr(_6e2,"aria-selected","false");}this._beginUpdate();delete this.selected[_6e1];this.onDeselected(_6e1);this._endUpdate();}},setSelected:function(_6e3,_6e4){this[(_6e4?"addToSelection":"deselect")](_6e3);},toggleSelect:function(_6e5){if(dojo.isArray(_6e5)){dojo.forEach(_6e5,this.toggleSelect,this);return;}this.setSelected(_6e5,!this.selected[_6e5]);},_range:function(_6e6,inTo,func){var s=(_6e6>=0?_6e6:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_6e7,inTo){this._range(_6e7,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_6e8,inTo){this._range(_6e8,inTo,dojo.hitch(this,"deselect"));},insert:function(_6e9){this.selected.splice(_6e9,0,false);if(this.selectedIndex>=_6e9){this.selectedIndex++;}},remove:function(_6ea){this.selected.splice(_6ea,1);if(this.selectedIndex>=_6ea){this.selectedIndex--;}},deselectAll:function(_6eb){for(var i in this.selected){if((i!=_6eb)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_6ec,_6ed,_6ee){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_6ec);}else{if(!_6ee||this.rangeStartIndex<0){this.rangeStartIndex=_6ec;}if(!_6ed){this.deselectAll(_6ec);}if(_6ee){this.selectRange(this.rangeStartIndex,_6ec);}else{if(_6ed){this.toggleSelect(_6ec);}else{this.addToSelection(_6ec);}}}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(_6ef){var i=_6ef;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_6ef);this.edit.styleRow(_6ef);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _6f0;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_6f0=this.focus.getHeaderIndex();if(_6f0>=0){this.setSortIndex(_6f0);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _6f1=this.edit.isEditing();this.edit.apply();if(!_6f1){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _6f2=this.focus.focusView||this.views.views[0];_6f2.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_6f0=this.focus.getHeaderIndex();if(_6f0>=0){this.setSortIndex(_6f0);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 _6f3=e.keyCode;dojo.stopEvent(e);_6f0=this.focus.getHeaderIndex();if(_6f0>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_6f0,(_6f3==dk.LEFT_ARROW?-1:1)*5);}else{var _6f4=(_6f3==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_6f4*=-1;}this.focus.move(0,_6f4);}}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 _6f5;if(this._click.length>1&&dojo.isIE){_6f5=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_6f5=this._click[0];}else{_6f5=e;}}this.focus.setFocusCell(_6f5.cell,_6f5.rowIndex);this.edit.setEditCell(_6f5.cell,_6f5.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_6f6,_6f7){this.edit.cellFocus(_6f6,_6f7);},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(_6f8,_6f9){},onApplyCellEdit:function(_6fa,_6fb,_6fc){},onCancelEdit:function(_6fd){},onApplyEdit:function(_6fe){},onCanSelect:function(_6ff){return true;},onCanDeselect:function(_700){return true;},onSelected:function(_701){this.updateRowStyles(_701);},onDeselected:function(_702){this.updateRowStyles(_702);},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 _703=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_703);this.errorMessage=dojo.string.substitute(this.errorMessage,_703);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,_704){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&&!_704){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(_705){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_706,idx){var c=dojo.getObject(_706);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(_707){var s=_707;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(_708){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_708);},getColumnTogglingItems:function(){var _709,_70a=[];_709=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(_70b){if(self.layout.setColumnVisibility(this._gridCell.index,_70b)){var _70c=this._gridCell.menuItems;if(_70c.length>1){dojo.forEach(_70c,function(item){if(item!==this){item.setAttribute("checked",_70b);}},this);}_70b=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(_70b.length==1){dojo.forEach(_70b[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _70d=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_70d,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_70a.push(item);}return item;},this);if(_70a.length==1){_70a[0].set("disabled",true);}return _709;},_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(_70e){this.setScrollTop(0);},getItem:function(_70f){return null;},showMessage:function(_710){if(_710){this.messagesNode.innerHTML=_710;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(_711,_712){this._pendingChangeSize=_711;this._pendingResultSize=_712;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(_713,_714){_713=_713||this._pendingChangeSize;_714=_714||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 _715=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<=_715.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(_714){_713=_714;}if(!this._autoHeight&&_713){dojo.marginBox(this.domNode,_713);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 _716=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(!_716&&hh===undefined){hh=this._getHeaderHeight();}}if(_716){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _717=(!this.initialWidth&&this.autoWidth);var w=_717?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_717){this.domNode.style.width=vw+"px";}},adaptHeight:function(_718){var t=_718===undefined?this._getHeaderHeight():_718;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 _719=0,_71a=0;var _71b=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_719++;}else{_71a++;}return (!has);});if(_719>0&&_71a>0){dojo.forEach(_71b,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(_71c,_71d){this.views.renderRow(_71c,_71d,this._skipRowRenormalize);},rowRemoved:function(_71e){this.views.rowRemoved(_71e);},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(_71f){_71f=Number(_71f);if(this.updating){this.invalidated[_71f]=true;}else{this.views.updateRow(_71f);this.scroller.rowHeightChanged(_71f);}},updateRows:function(_720,_721){_720=Number(_720);_721=Number(_721);var i;if(this.updating){for(i=0;i<_721;i++){this.invalidated[i+_720]=true;}}else{for(i=0;i<_721;i++){this.views.updateRow(i+_720,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_720);}},updateRowCount:function(_722){if(this.updating){this.invalidated.rowCount=_722;}else{this.rowCount=_722;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_722);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_723){this.views.updateRowStyles(_723);},getRowNode:function(_724){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_724];}else{for(var i=0,_725;(_725=this.views.views[i]);i++){if(!(_725 instanceof dojox.grid._RowSelector)){return _725.rowNodes[_724];}}}return null;},rowHeightChanged:function(_726){this.views.renormalizeRow(_726);this.scroller.rowHeightChanged(_726);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_727){if(!this.fastScroll){this.setScrollTop(_727);return;}var _728=Math.abs(this.lastScrollTop-_727);this.lastScrollTop=_727;if(_728>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_727;this.views.setScrollTop(_727);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _729=this;this._pendingScroll=window.setTimeout(function(){delete _729._pendingScroll;_729.finishScrollJob();},200);}else{this.setScrollTop(_727);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_72a){this.scroller.scroll(this.views.setScrollTop(_72a));},scrollToRow:function(_72b){this.setScrollTop(this.scroller.findScrollTop(_72b)+1);},styleRowNode:function(_72c,_72d){if(_72d){this.rows.styleRowNode(_72c,_72d);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_72e){return this.layout.cells[_72e];},setCellWidth:function(_72f,_730){this.getCell(_72f).unitWidth=_730;},getCellName:function(_731){return "Cell "+_731.index;},canSort:function(_732){},sort:function(){},getSortAsc:function(_733){_733=_733==undefined?this.sortInfo:_733;return Boolean(_733>0);},getSortIndex:function(_734){_734=_734==undefined?this.sortInfo:_734;return Math.abs(_734)-1;},setSortIndex:function(_735,_736){var si=_735+1;if(_736!=undefined){si*=(_736?1:-1);}else{if(this.getSortIndex()==_735){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_737){if(this.canSort(_737)){this.sortInfo=_737;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(_738,_739){this.onStartEdit(_738,_739);},doApplyCellEdit:function(_73a,_73b,_73c){this.onApplyCellEdit(_73a,_73b,_73c);},doCancelEdit:function(_73d){this.onCancelEdit(_73d);},doApplyEdit:function(_73e){this.onApplyEdit(_73e);},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(_73f,node,ctor,_740){var d=dojo;var _741=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(!_73f.structure&&node.nodeName.toLowerCase()=="table"){_73f.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=_741(cg);}return v;});if(!_73f.structure.length){_73f.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_742){var _743=0;var _744=0;var _745;var _746=null;d.query("> th",tr).map(function(th){if(!_746){_745=0;_746=_73f.structure[0];}else{if(_743>=(_745+_746.__span)){_744++;_745+=_746.__span;var _747=_746;_746=_73f.structure[_744];}}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")||"")};_743+=cell.colSpan;var _748=d.attr(th,"rowspan");if(_748){cell.rowSpan=_748;}if(d.hasAttr(th,"width")){cell.width=_741(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(_740){_740(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(!_746.cells[_742]){_746.cells[_742]=[];}_746.cells[_742].push(cell);});});}return new ctor(_73f,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(_749){var _74a=this.grid.getItemIndex(_749);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_74a);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _74b=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_74b.push(this.grid.getItem(i));}}return _74b;},addToSelection:function(_74c){if(this.mode=="none"){return;}var idx=null;if(typeof _74c=="number"||typeof _74c=="string"){idx=_74c;}else{idx=this.grid.getItemIndex(_74c);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect: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.deselect.call(this,idx);},deselectAll:function(_74e){var idx=null;if(_74e||typeof _74e=="number"){if(typeof _74e=="number"||typeof _74e=="string"){idx=_74e;}else{idx=this.grid.getItemIndex(_74e);}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(_74f,_750){if(_750&&this.field=="_item"&&!this.fields){return _750;}else{if(_750&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_750,f));});return ret;}else{if(!_750&&typeof _74f==="string"){return this.inherited(arguments);}}}return (!_750?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_750:this.grid.store.getValue(_750,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _751=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_751=true;}if(!this.updating){this.beginUpdate();_751=true;}if(_751){var _752=this;this._endUpdateDelay=setTimeout(function(){delete _752._endUpdateDelay;_752.endUpdate();},this.updateDelay);}}},_onSet:function(item,_753,_754,_755){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_756){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_756+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_757,_758){this._by_idx[_757]=this._createItem(item,_757);if(!_758){this.updateRow(_757);}},_onNew:function(item,_759){this._checkUpdateStatus();var _75a=this.get("rowCount");this._addingItem=true;this.updateRowCount(_75a+1);this._addingItem=false;this._addItem(item,_75a);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(_75b,_75c,_75d){this._setQuery(_75c,_75d);this._setStore(_75b);this._refresh(true);},setQuery:function(_75e,_75f){this._setQuery(_75e,_75f);this._refresh(true);},setItems:function(_760){this.items=_760;this._setStore(this.store);this._refresh(true);},_setQuery:function(_761,_762){this.query=_761;this.queryOptions=_762||this.queryOptions;},_setStore:function(_763){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_763;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(_764,req){if(!this.scroller){return;}if(_764&&_764.length>0){dojo.forEach(_764,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_764.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){console.log(err);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(_765,_766){_765=_765||0;if(this.store&&!this._pending_requests[_765]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_765]=true;try{if(this.items){var _767=this.items;var _768=this.store;this.rowsPerPage=_767.length;var req={start:_765,count:this.rowsPerPage,isRender:_766};this._onFetchBegin(_767.length,req);var _769=0;dojo.forEach(_767,function(i){if(!_768.isItemLoaded(i)){_769++;}});if(_769===0){this._onFetchComplete(_767,req);}else{var _76a=function(item){_769--;if(_769===0){this._onFetchComplete(_767,req);}};dojo.forEach(_767,function(i){if(!_768.isItemLoaded(i)){_768.loadItem({item:i,onItem:_76a,scope:this});}},this);}}else{this.store.fetch({start:_765,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_766,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_765,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,_76b){if(!_76b&&!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(_76c,_76d){this.query=_76c;if(_76d){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(_76e){return this._pending_requests[_76e];},_rowToPage:function(_76f){return (this.rowsPerPage?Math.floor(_76f/this.rowsPerPage):_76f);},_pageToRow:function(_770){return (this.rowsPerPage?this.rowsPerPage*_770:_770);},_preparePage:function(_771){if((_771<this._bop||_771>=this._eop)&&!this._addingItem){var _772=this._rowToPage(_771);this._needPage(_772);this._bop=_772*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_773){if(!this._pages[_773]){this._pages[_773]=true;this._requestPage(_773);}},_requestPage:function(_774){var row=this._pageToRow(_774);var _775=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_775>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_776){return _776.field;},_refresh:function(_777){this._clearData();this._fetch(0,_777);},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(_778){if(this.store&&this.store.getState){var _779=this.store.getState(_778.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_779[s]){c=" dojoxGridRow-"+s;break;}}_778.customClasses+=c;}},onStyleRow:function(_77a){this.styleRowState(_77a);this.inherited(arguments);},canEdit:function(_77b,_77c){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _77d={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_77e,_77f){if(!this._cache[_77f]){this._cache[_77f]=this._copyAttr(_77f,_77e.field);}this.onStartEdit(_77e,_77f);},doApplyCellEdit:function(_780,_781,_782){this.store.fetchItemByIdentity({identity:this._by_idx[_781].idty,onItem:dojo.hitch(this,function(item){var _783=this.store.getValue(item,_782);if(typeof _783=="number"){_780=isNaN(_780)?_780:parseFloat(_780);}else{if(typeof _783=="boolean"){_780=_780=="true"?true:_780=="false"?false:_780;}else{if(_783 instanceof Date){var _784=new Date(_780);_780=isNaN(_784.getTime())?_780:_784;}}}this.store.setValue(item,_782,_780);this.onApplyCellEdit(_780,_781,_782);})});},doCancelEdit:function(_785){var _786=this._cache[_785];if(_786){this.updateRow(_785);delete this._cache[_785];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_787,_788){var _789=this._cache[_787];this.onApplyEdit(_787);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_78a){if(_78a.length){dojo.forEach(_78a,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(_78b,node,_78c){var _78d=dojo.trim(dojo.attr(node,"field")||"");if(_78d){_78c.field=_78d;}_78c.field=_78c.field||_78c.name;var _78e=dojo.trim(dojo.attr(node,"fields")||"");if(_78e){_78c.fields=_78e.split(",");}if(_78b){_78b(node,_78c);}};dojox.grid.DataGrid.markupFactory=function(_78f,node,ctor,_790){return dojox.grid._Grid.markupFactory(_78f,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_790));};}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_791,_792){var _793=[];var _794,_795,_796=0;while(_794=re.exec(str)){_795=str.slice(_796,re.lastIndex-_794[0].length);if(_795.length){_793.push(_795);}if(_791){if(dojo.isOpera){var copy=_794.slice(0);while(copy.length<_794.length){copy.push(null);}_794=copy;}var _797=_791.apply(_792,_794.slice(1).concat(_793.length));if(typeof _797!="undefined"){_793.push(_797);}}_796=re.lastIndex;}_795=str.slice(_796);if(_795.length){_793.push(_795);}return _793;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_798,_799){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _79a=new dojox.string.sprintf.Formatter(_798);return _79a.format.apply(_79a,args);};dojox.string.sprintf.Formatter=function(_79b){var _79c=[];this._mapped=false;this._format=_79b;this._tokens=dojox.string.tokenize(_79b,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_79d,_79e,_79f,_7a0,_7a1,_7a2,_7a3){if(_79d){this._mapped=true;}return {mapping:_79d,intmapping:_79e,flags:_79f,_minWidth:_7a0,period:_7a1,_precision:_7a2,specifier:_7a3};},_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(_7a4){if(!isNaN(_7a4.arg)){var num=parseInt(_7a4.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_7a4.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_7a5){_7a5.maxWidth=(_7a5.period==".")?_7a5.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(_7a6){if(this._mapped&&typeof _7a6!="object"){throw new Error("format requires a mapping");}var str="";var _7a7=0;for(var i=0,_7a8;i<this._tokens.length;i++){_7a8=this._tokens[i];if(typeof _7a8=="string"){str+=_7a8;}else{if(this._mapped){if(typeof _7a6[_7a8.mapping]=="undefined"){throw new Error("missing key "+_7a8.mapping);}_7a8.arg=_7a6[_7a8.mapping];}else{if(_7a8.intmapping){var _7a7=parseInt(_7a8.intmapping)-1;}if(_7a7>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_7a8.arg=arguments[_7a7++];}if(!_7a8.compiled){_7a8.compiled=true;_7a8.sign="";_7a8.zeroPad=false;_7a8.rightJustify=false;_7a8.alternative=false;var _7a9={};for(var fi=_7a8.flags.length;fi--;){var flag=_7a8.flags.charAt(fi);_7a9[flag]=true;switch(flag){case " ":_7a8.sign=" ";break;case "+":_7a8.sign="+";break;case "0":_7a8.zeroPad=(_7a9["-"])?false:true;break;case "-":_7a8.rightJustify=true;_7a8.zeroPad=false;break;case "#":_7a8.alternative=true;break;default:throw Error("bad formatting flag '"+_7a8.flags.charAt(fi)+"'");}}_7a8.minWidth=(_7a8._minWidth)?parseInt(_7a8._minWidth):0;_7a8.maxWidth=-1;_7a8.toUpper=false;_7a8.isUnsigned=false;_7a8.isInt=false;_7a8.isDouble=false;_7a8.precision=1;if(_7a8.period=="."){if(_7a8._precision){_7a8.precision=parseInt(_7a8._precision);}else{_7a8.precision=0;}}var _7aa=this._specifiers[_7a8.specifier];if(typeof _7aa=="undefined"){throw new Error("unexpected specifier '"+_7a8.specifier+"'");}if(_7aa.extend){dojo.mixin(_7aa,this._specifiers[_7aa.extend]);delete _7aa.extend;}dojo.mixin(_7a8,_7aa);}if(typeof _7a8.setArg=="function"){_7a8.setArg(_7a8);}if(typeof _7a8.setMaxWidth=="function"){_7a8.setMaxWidth(_7a8);}if(_7a8._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_7a8.minWidth=parseInt(arguments[_7a7++]);if(isNaN(_7a8.minWidth)){throw new Error("the argument for * width at position "+_7a7+" is not a number in "+this._format);}if(_7a8.minWidth<0){_7a8.rightJustify=true;_7a8.minWidth=-_7a8.minWidth;}}if(_7a8._precision=="*"&&_7a8.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_7a8.precision=parseInt(arguments[_7a7++]);if(isNaN(_7a8.precision)){throw Error("the argument for * precision at position "+_7a7+" is not a number in "+this._format);}if(_7a8.precision<0){_7a8.precision=1;_7a8.period="";}}if(_7a8.isInt){if(_7a8.period=="."){_7a8.zeroPad=false;}this.formatInt(_7a8);}else{if(_7a8.isDouble){if(_7a8.period!="."){_7a8.precision=6;}this.formatDouble(_7a8);}}this.fitField(_7a8);str+=""+_7a8.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_7ab){var i=parseInt(_7ab.arg);if(!isFinite(i)){if(typeof _7ab.arg!="number"){throw new Error("format argument '"+_7ab.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_7ab.isUnsigned||_7ab.base!=10)){i=4294967295+i+1;}if(i<0){_7ab.arg=(-i).toString(_7ab.base);this.zeroPad(_7ab);_7ab.arg="-"+_7ab.arg;}else{_7ab.arg=i.toString(_7ab.base);if(!i&&!_7ab.precision){_7ab.arg="";}else{this.zeroPad(_7ab);}if(_7ab.sign){_7ab.arg=_7ab.sign+_7ab.arg;}}if(_7ab.base==16){if(_7ab.alternative){_7ab.arg="0x"+_7ab.arg;}_7ab.arg=_7ab.toUpper?_7ab.arg.toUpperCase():_7ab.arg.toLowerCase();}if(_7ab.base==8){if(_7ab.alternative&&_7ab.arg.charAt(0)!="0"){_7ab.arg="0"+_7ab.arg;}}},formatDouble:function(_7ac){var f=parseFloat(_7ac.arg);if(!isFinite(f)){if(typeof _7ac.arg!="number"){throw new Error("format argument '"+_7ac.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_7ac.doubleNotation){case "e":_7ac.arg=f.toExponential(_7ac.precision);break;case "f":_7ac.arg=f.toFixed(_7ac.precision);break;case "g":if(Math.abs(f)<0.0001){_7ac.arg=f.toExponential(_7ac.precision>0?_7ac.precision-1:_7ac.precision);}else{_7ac.arg=f.toPrecision(_7ac.precision);}if(!_7ac.alternative){_7ac.arg=_7ac.arg.replace(/(\..*[^0])0*/,"$1");_7ac.arg=_7ac.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_7ac.doubleNotation+"'");}_7ac.arg=_7ac.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_7ac.arg=_7ac.arg.replace(/^\./,"0.");}if(_7ac.alternative){_7ac.arg=_7ac.arg.replace(/^(\d+)$/,"$1.");_7ac.arg=_7ac.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_7ac.sign){_7ac.arg=_7ac.sign+_7ac.arg;}_7ac.arg=_7ac.toUpper?_7ac.arg.toUpperCase():_7ac.arg.toLowerCase();},zeroPad:function(_7ad,_7ae){_7ae=(arguments.length==2)?_7ae:_7ad.precision;if(typeof _7ad.arg!="string"){_7ad.arg=""+_7ad.arg;}var _7af=_7ae-10;while(_7ad.arg.length<_7af){_7ad.arg=(_7ad.rightJustify)?_7ad.arg+this._zeros10:this._zeros10+_7ad.arg;}var pad=_7ae-_7ad.arg.length;_7ad.arg=(_7ad.rightJustify)?_7ad.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_7ad.arg;},fitField:function(_7b0){if(_7b0.maxWidth>=0&&_7b0.arg.length>_7b0.maxWidth){return _7b0.arg.substring(0,_7b0.maxWidth);}if(_7b0.zeroPad){this.zeroPad(_7b0,_7b0.minWidth);return;}this.spacePad(_7b0);},spacePad:function(_7b1,_7b2){_7b2=(arguments.length==2)?_7b2:_7b1.minWidth;if(typeof _7b1.arg!="string"){_7b1.arg=""+_7b1.arg;}var _7b3=_7b2-10;while(_7b1.arg.length<_7b3){_7b1.arg=(_7b1.rightJustify)?_7b1.arg+this._spaces10:this._spaces10+_7b1.arg;}var pad=_7b2-_7b1.arg.length;_7b1.arg=(_7b1.rightJustify)?_7b1.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_7b1.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(_7b4,node){return new dojo.dnd.move.constrainedMoveable(node,_7b4);},constructor:function(node,_7b5){if(!_7b5){_7b5={};}this.constraints=_7b5.constraints;this.within=_7b5.within;},onFirstMove:function(_7b6){var c=this.constraintBox=this.constraints.call(this,_7b6);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_7b6.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_7b7,_7b8){var c=this.constraintBox,s=_7b7.node.style;this.onMoving(_7b7,_7b8);_7b8.l=_7b8.l<c.l?c.l:c.r<_7b8.l?c.r:_7b8.l;_7b8.t=_7b8.t<c.t?c.t:c.b<_7b8.t?c.b:_7b8.t;s.left=_7b8.l+"px";s.top=_7b8.t+"px";this.onMoved(_7b7,_7b8);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_7b9,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_7b9);},constructor:function(node,_7ba){var box=_7ba&&_7ba.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_7bb,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_7bb);},constructor:function(node,_7bc){var area=_7bc&&_7bc.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 _7bd=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_7be){if(!_7be){_7be={};}if(_7be.timeout&&typeof _7be.timeout=="number"&&_7be.timeout>=0){this.timeout=_7be.timeout;}},markupFactory:function(_7bf,node){return new dojo.dnd.TimedMoveable(node,_7bf);},onMoveStop:function(_7c0){if(_7c0._timer){clearTimeout(_7c0._timer);_7bd.call(this,_7c0,_7c0._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_7c1,_7c2){_7c1._leftTop=_7c2;if(!_7c1._timer){var _7c3=this;_7c1._timer=setTimeout(function(){_7c1._timer=null;_7bd.call(_7c3,_7c1,_7c1._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 _7c4=this;dojo.mixin(_7c4,args);_7c4.node=args.node;_7c4._showArgs=dojo.mixin({},args);_7c4._showArgs.node=_7c4.node;_7c4._showArgs.duration=_7c4.showDuration;_7c4.showAnim=_7c4.showFunc(_7c4._showArgs);_7c4._hideArgs=dojo.mixin({},args);_7c4._hideArgs.node=_7c4.node;_7c4._hideArgs.duration=_7c4.hideDuration;_7c4.hideAnim=_7c4.hideFunc(_7c4._hideArgs);dojo.connect(_7c4.showAnim,"beforeBegin",dojo.hitch(_7c4.hideAnim,"stop",true));dojo.connect(_7c4.hideAnim,"beforeBegin",dojo.hitch(_7c4.showAnim,"stop",true));},show:function(_7c5){return this.showAnim.play(_7c5||0);},hide:function(_7c6){return this.hideAnim.play(_7c6||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_7c7={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _7c8=function(_7c9){this._index=-1;this._animations=_7c9||[];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(_7c8,{_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(_7ca,_7cb){if(!this._current){this._current=this._animations[this._index=0];}if(!_7cb&&this._current.status()=="playing"){return this;}var _7cc=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_7cd=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_7ce=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_7cc);d.disconnect(_7cd);d.disconnect(_7ce);});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(_7cf,_7d0){this.pause();var _7d1=this.duration*_7cf;this._current=null;d.some(this._animations,function(a){if(a.duration<=_7d1){this._current=a;return true;}_7d1-=a.duration;return false;});if(this._current){this._current.gotoPercent(_7d1/this._current.duration,_7d0);}return this;},stop:function(_7d2){if(this._current){if(_7d2){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(_7c8,_7c7);dojo.fx.chain=function(_7d3){return new _7c8(_7d3);};var _7d4=function(_7d5){this._animations=_7d5||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_7d5,function(a){var _7d6=a.duration;if(a.delay){_7d6+=a.delay;}if(this.duration<_7d6){this.duration=_7d6;}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(_7d4,{_doAction:function(_7d7,args){d.forEach(this._animations,function(a){a[_7d7].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_7d8,args){var t=this._pseudoAnimation;t[_7d8].apply(t,args);},play:function(_7d9,_7da){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(_7db,_7dc){var ms=this.duration*_7db;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_7dc);});this._call("gotoPercent",arguments);return this;},stop:function(_7dd){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(_7d4,_7c7);dojo.fx.combine=function(_7de){return new _7d4(_7de);};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 _7df=d.style(node,"height");return Math.max(_7df,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(_7e0){if(_7e0.reset){_7e0.reset();}});},validate:function(){var _7e1=false;return dojo.every(dojo.map(this.getDescendants(),function(_7e2){_7e2._hasBeenBlurred=true;var _7e3=_7e2.disabled||!_7e2.validate||_7e2.validate();if(!_7e3&&!_7e1){dojo.window.scrollIntoView(_7e2.containerNode||_7e2.domNode);_7e2.focus();_7e1=true;}return _7e3;}),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(_7e4){if(!_7e4.name){return;}var _7e5=map[_7e4.name]||(map[_7e4.name]=[]);_7e5.push(_7e4);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _7e6=map[name],_7e7=dojo.getObject(name,false,obj);if(_7e7===undefined){continue;}if(!dojo.isArray(_7e7)){_7e7=[_7e7];}if(typeof _7e6[0].checked=="boolean"){dojo.forEach(_7e6,function(w,i){w.set("value",dojo.indexOf(_7e7,w.value)!=-1);});}else{if(_7e6[0].multiple){_7e6[0].set("value",_7e7);}else{dojo.forEach(_7e6,function(w,i){w.set("value",_7e7[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(_7e8){var name=_7e8.name;if(!name||_7e8.disabled){return;}var _7e9=_7e8.get("value");if(typeof _7e8.checked=="boolean"){if(/Radio/.test(_7e8.declaredClass)){if(_7e9!==false){dojo.setObject(name,_7e9,obj);}else{_7e9=dojo.getObject(name,false,obj);if(_7e9===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_7e9!==false){ary.push(_7e9);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_7e9);}else{dojo.setObject(name,[prev,_7e9],obj);}}else{dojo.setObject(name,_7e9,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_7ea){},_getState:function(){var _7eb=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_7eb,"Error")>=0?"Error":dojo.indexOf(_7eb,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_7ec){var _7ed=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_7ec?function(name,val){_7ed[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _7ee=(this._childConnections=[]),_7ef=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_7f0){dojo.forEach(["state","disabled"],function(attr){_7ef.push(_7f0.watch(attr,function(attr,_7f1,_7f2){_7ed.set("state",_7ed._getState());}));});});var _7f3=function(){if(_7ed._onChangeDelayTimer){clearTimeout(_7ed._onChangeDelayTimer);}_7ed._onChangeDelayTimer=setTimeout(function(){delete _7ed._onChangeDelayTimer;_7ed._set("value",_7ed.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_7f4){_7ee.push(_7ed.connect(_7f4,"onChange",_7f3));_7ef.push(_7f4.watch("disabled",_7f3));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_7f5,_7f6){this.onValidStateChange(_7f6=="");});},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(_7f7){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _7f8=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_7f8.lowest||_7f8.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_7f8.last||_7f8.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(_7f9){this.node.className="dijitDialogUnderlay "+_7f9;this._set("class",_7f9);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _7fa=dojo.window.getBox();os.top=_7fa.t+"px";os.left=_7fa.l+"px";is.width=_7fa.w+"px";is.height=_7fa.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(_7fb){this.containerNode.title=_7fb;this._set("title",_7fb);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_7fc,_7fd){var newC="dijitTooltipAB"+(_7fd.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_7fd.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 _7fe=(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(!_7fe){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_7fe){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 _7ff=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_7ff);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 _800=dojo.window.getBox();if(mb.w>=_800.w||mb.h>=_800.h){var w=Math.min(mb.w,Math.floor(_800.w*0.75)),h=Math.min(mb.h,Math.floor(_800.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,_801=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_801.l+(p?p.x:(_801.w-bb.w)/2)),t=Math.floor(_801.t+(p?p.y:(_801.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 _802=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_802){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_802){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();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _803=dojo.window.getBox();if(!this._oldViewport||_803.h!=this._oldViewport.h||_803.w!=this._oldViewport.w){this.layout();this._oldViewport=_803;}}));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 _804;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_804.stop();delete this._fadeInDeferred;}));_804=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){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _805;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_805.stop();delete this._fadeOutDeferred;}));_805=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(_806,_807){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_806);var _808=dijit._underlay;if(!_808||_808._destroyed){_808=dijit._underlay=new dijit.DialogUnderlay(_807);}else{_808.set(_806.underlayAttrs);}var _809=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_808.show();}dojo.style(dijit._underlay.domNode,"zIndex",_809-1);dojo.style(_806.domNode,"zIndex",_809);ds.push({dialog:_806,underlayAttrs:_807,zIndex:_809});},hide:function(_80a){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_80a){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(_80a.refocus){var _80b=pd.focus;if(!_80b||(pd.dialog&&!dojo.isDescendant(_80b.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_80b=pd.dialog._firstFocusItem;}try{dijit.focus(_80b);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_80a);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_80c){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_80c;}};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(_80d){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_80d.url;this._ccUrl=_80d.url;this.url=_80d.url;this._jsonData=_80d.data;this.data=null;this._datatypeMap=_80d.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_80e){return dojo.date.stamp.fromISOString(_80e);}};}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(_80d.urlPreventCache!==undefined){this.urlPreventCache=_80d.urlPreventCache?true:false;}if(_80d.hierarchical!==undefined){this.hierarchical=_80d.hierarchical?true:false;}if(_80d.clearOnClose){this.clearOnClose=true;}if("failOk" in _80d){this.failOk=_80d.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(_80f){if(typeof _80f!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_810,_811){var _812=this.getValues(item,_810);return (_812.length>0)?_812[0]:_811;},getValues:function(item,_813){this._assertIsItem(item);this._assertIsAttribute(_813);return (item[_813]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _814=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_814.push(key);}}return _814;},hasAttribute:function(item,_815){this._assertIsItem(item);this._assertIsAttribute(_815);return (_815 in item);},containsValue:function(item,_816,_817){var _818=undefined;if(typeof _817==="string"){_818=dojo.data.util.filter.patternToRegExp(_817,false);}return this._containsValue(item,_816,_817,_818);},_containsValue:function(item,_819,_81a,_81b){return dojo.some(this.getValues(item,_819),function(_81c){if(_81c!==null&&!dojo.isObject(_81c)&&_81b){if(_81c.toString().match(_81b)){return true;}}else{if(_81a===_81c){return true;}}});},isItem:function(_81d){if(_81d&&_81d[this._storeRefPropName]===this){if(this._arrayOfAllItems[_81d[this._itemNumPropName]]===_81d){return true;}}return false;},isItemLoaded:function(_81e){return this.isItem(_81e);},loadItem:function(_81f){this._assertIsItem(_81f.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(_820,_821,_822){var self=this,_823=function(_824,_825){var _826=[],i,key;if(_824.query){var _827,_828=_824.queryOptions?_824.queryOptions.ignoreCase:false;var _829={};for(key in _824.query){_827=_824.query[key];if(typeof _827==="string"){_829[key]=dojo.data.util.filter.patternToRegExp(_827,_828);}else{if(_827 instanceof RegExp){_829[key]=_827;}}}for(i=0;i<_825.length;++i){var _82a=true;var _82b=_825[i];if(_82b===null){_82a=false;}else{for(key in _824.query){_827=_824.query[key];if(!self._containsValue(_82b,key,_827,_829[key])){_82a=false;}}}if(_82a){_826.push(_82b);}}_821(_826,_824);}else{for(i=0;i<_825.length;++i){var item=_825[i];if(item!==null){_826.push(item);}}_821(_826,_824);}};if(this._loadFinished){_823(_820,this._getItemsArray(_820.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:_820,filter:_823});}else{this._loadInProgress=true;var _82c={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _82d=dojo.xhrGet(_82c);_82d.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_823(_820,self._getItemsArray(_820.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_822(e,_820);}});_82d.addErrback(function(_82e){self._loadInProgress=false;_822(_82e,_820);});var _82f=null;if(_820.abort){_82f=_820.abort;}_820.abort=function(){var df=_82d;if(df&&df.fired===-1){df.cancel();df=null;}if(_82f){_82f.call(_820);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_823(_820,this._getItemsArray(_820.queryOptions));}catch(e){_822(e,_820);}}else{_822(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_820);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _830=this._queuedFetches[i],_831=_830.args,_832=_830.filter;if(_832){_832(_831,this._getItemsArray(_831.queryOptions));}else{this.fetchItemByIdentity(_831);}}this._queuedFetches=[];}},_getItemsArray:function(_833){if(_833&&_833.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_834){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_835){var _836=false,self=this;function _837(_838){var _839=((_838!==null)&&(typeof _838==="object")&&(!dojo.isArray(_838)||_836)&&(!dojo.isFunction(_838))&&(_838.constructor==Object||dojo.isArray(_838))&&(typeof _838._reference==="undefined")&&(typeof _838._type==="undefined")&&(typeof _838._value==="undefined")&&self.hierarchical);return _839;};function _83a(_83b){self._arrayOfAllItems.push(_83b);for(var _83c in _83b){var _83d=_83b[_83c];if(_83d){if(dojo.isArray(_83d)){var _83e=_83d;for(var k=0;k<_83e.length;++k){var _83f=_83e[k];if(_837(_83f)){_83a(_83f);}}}else{if(_837(_83d)){_83a(_83d);}}}}};this._labelAttr=_835.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_835.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_836=true;}_83a(item);item[this._rootItemPropName]=true;}var _840={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _841=item[key];if(_841!==null){if(!dojo.isArray(_841)){item[key]=[_841];}}else{item[key]=[null];}}_840[key]=key;}}while(_840[this._storeRefPropName]){this._storeRefPropName+="_";}while(_840[this._itemNumPropName]){this._itemNumPropName+="_";}while(_840[this._reverseRefMap]){this._reverseRefMap+="_";}var _842;var _843=_835.identifier;if(_843){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_843;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_842=item[_843];var _844=_842[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_844)){this._itemsByIdentity[_844]=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: ["+_843+"].  Value collided: ["+_844+"]");}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: ["+_843+"].  Value collided: ["+_844+"]");}}}}}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){_842=item[key];for(var j=0;j<_842.length;++j){_841=_842[j];if(_841!==null&&typeof _841=="object"){if(("_type" in _841)&&("_value" in _841)){var type=_841._type;var _845=this._datatypeMap[type];if(!_845){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_845)){_842[j]=new _845(_841._value);}else{if(dojo.isFunction(_845.deserialize)){_842[j]=_845.deserialize(_841._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(_841._reference){var _846=_841._reference;if(!dojo.isObject(_846)){_842[j]=this._getItemByIdentity(_846);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _847=this._arrayOfAllItems[k],_848=true;for(var _849 in _846){if(_847[_849]!=_846[_849]){_848=false;}}if(_848){_842[j]=_847;}}}if(this.referenceIntegrity){var _84a=_842[j];if(this.isItem(_84a)){this._addReferenceToMap(_84a,item,key);}}}else{if(this.isItem(_841)){if(this.referenceIntegrity){this._addReferenceToMap(_841,item,key);}}}}}}}},_addReferenceToMap:function(_84b,_84c,_84d){},getIdentity:function(item){var _84e=this._features["dojo.data.api.Identity"];if(_84e===Number){return item[this._itemNumPropName];}else{var _84f=item[_84e];if(_84f){return _84f[0];}}return null;},fetchItemByIdentity:function(_850){var item,_851;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:_850});}else{this._loadInProgress=true;var _852={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _853=dojo.xhrGet(_852);_853.addCallback(function(data){var _854=_850.scope?_850.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_850.identity);if(_850.onItem){_850.onItem.call(_854,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_850.onError){_850.onError.call(_854,error);}}});_853.addErrback(function(_855){self._loadInProgress=false;if(_850.onError){var _856=_850.scope?_850.scope:dojo.global;_850.onError.call(_856,_855);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_850.identity);if(_850.onItem){_851=_850.scope?_850.scope:dojo.global;_850.onItem.call(_851,item);}}}}else{item=this._getItemByIdentity(_850.identity);if(_850.onItem){_851=_850.scope?_850.scope:dojo.global;_850.onItem.call(_851,item);}}},_getItemByIdentity:function(_857){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_857)){item=this._itemsByIdentity[_857];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_857)){item=this._arrayOfAllItems[_857];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _858=this._features["dojo.data.api.Identity"];if(_858===Number){return null;}else{return [_858];}},_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 _859={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _85a=dojo.xhrGet(_859);_85a.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){console.log(e);throw e;}});_85a.addErrback(function(_85b){throw _85b;});}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(_85c){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(_85c&&(_85c.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_85d){if(!_85d){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _85e=this.getFeatures()["dojo.data.api.Identity"];return _85e;},newItem:function(_85f,_860){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _85f!="object"&&typeof _85f!="undefined"){throw new Error("newItem() was passed something other than an object");}var _861=null;var _862=this._getIdentifierAttribute();if(_862===Number){_861=this._arrayOfAllItems.length;}else{_861=_85f[_862];if(typeof _861==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_861)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_861]==="undefined");}this._assert(typeof this._pending._newItems[_861]==="undefined");this._assert(typeof this._pending._deletedItems[_861]==="undefined");var _863={};_863[this._storeRefPropName]=this;_863[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_861]=_863;_863[_862]=[_861];}this._arrayOfAllItems.push(_863);var _864=null;if(_860&&_860.parent&&_860.attribute){_864={item:_860.parent,attribute:_860.attribute,oldValue:undefined};var _865=this.getValues(_860.parent,_860.attribute);if(_865&&_865.length>0){var _866=_865.slice(0,_865.length);if(_865.length===1){_864.oldValue=_865[0];}else{_864.oldValue=_865.slice(0,_865.length);}_866.push(_863);this._setValueOrValues(_860.parent,_860.attribute,_866,false);_864.newValue=this.getValues(_860.parent,_860.attribute);}else{this._setValueOrValues(_860.parent,_860.attribute,_863,false);_864.newValue=_863;}}else{_863[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_863);}this._pending._newItems[_861]=_863;for(var key in _85f){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _867=_85f[key];if(!dojo.isArray(_867)){_867=[_867];}_863[key]=_867;if(this.referenceIntegrity){for(var i=0;i<_867.length;i++){var val=_867[i];if(this.isItem(val)){this._addReferenceToMap(val,_863,key);}}}}this.onNew(_863,_864);return _863;},_removeArrayElement:function(_868,_869){var _86a=dojo.indexOf(_868,_869);if(_86a!=-1){_868.splice(_86a,1);return true;}return false;},deleteItem:function(item){this._assert(!this._saveInProgress);this._assertIsItem(item);var _86b=item[this._itemNumPropName];var _86c=this.getIdentity(item);if(this.referenceIntegrity){var _86d=this.getAttributes(item);if(item[this._reverseRefMap]){item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);}dojo.forEach(_86d,function(_86e){dojo.forEach(this.getValues(item,_86e),function(_86f){if(this.isItem(_86f)){if(!item["backupRefs_"+this._reverseRefMap]){item["backupRefs_"+this._reverseRefMap]=[];}item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_86f),attr:_86e});this._removeReferenceFromMap(_86f,item,_86e);}},this);},this);var _870=item[this._reverseRefMap];if(_870){for(var _871 in _870){var _872=null;if(this._itemsByIdentity){_872=this._itemsByIdentity[_871];}else{_872=this._arrayOfAllItems[_871];}if(_872){for(var _873 in _870[_871]){var _874=this.getValues(_872,_873)||[];var _875=dojo.filter(_874,function(_876){return !(this.isItem(_876)&&this.getIdentity(_876)==_86c);},this);this._removeReferenceFromMap(item,_872,_873);if(_875.length<_874.length){this._setValueOrValues(_872,_873,_875,true);}}}}}}this._arrayOfAllItems[_86b]=null;item[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_86c];}this._pending._deletedItems[_86c]=item;if(item[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,item);}this.onDelete(item);return true;},setValue:function(item,_877,_878){return this._setValueOrValues(item,_877,_878,true);},setValues:function(item,_879,_87a){return this._setValueOrValues(item,_879,_87a,true);},unsetAttribute:function(item,_87b){return this._setValueOrValues(item,_87b,[],true);},_setValueOrValues:function(item,_87c,_87d,_87e){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_87c));this._assert(typeof _87d!=="undefined");var _87f=this._getIdentifierAttribute();if(_87c==_87f){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _880=this._getValueOrValues(item,_87c);var _881=this.getIdentity(item);if(!this._pending._modifiedItems[_881]){var _882={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_882[key]=item[key];}else{if(key===this._reverseRefMap){_882[key]=dojo.clone(item[key]);}else{_882[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_881]=_882;}var _883=false;if(dojo.isArray(_87d)&&_87d.length===0){_883=delete item[_87c];_87d=undefined;if(this.referenceIntegrity&&_880){var _884=_880;if(!dojo.isArray(_884)){_884=[_884];}for(var i=0;i<_884.length;i++){var _885=_884[i];if(this.isItem(_885)){this._removeReferenceFromMap(_885,item,_87c);}}}}else{var _886;if(dojo.isArray(_87d)){var _887=_87d;_886=_87d.slice(0,_87d.length);}else{_886=[_87d];}if(this.referenceIntegrity){if(_880){var _884=_880;if(!dojo.isArray(_884)){_884=[_884];}var map={};dojo.forEach(_884,function(_888){if(this.isItem(_888)){var id=this.getIdentity(_888);map[id.toString()]=true;}},this);dojo.forEach(_886,function(_889){if(this.isItem(_889)){var id=this.getIdentity(_889);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_889,item,_87c);}}},this);for(var rId in map){var _88a;if(this._itemsByIdentity){_88a=this._itemsByIdentity[rId];}else{_88a=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_88a,item,_87c);}}else{for(var i=0;i<_886.length;i++){var _885=_886[i];if(this.isItem(_885)){this._addReferenceToMap(_885,item,_87c);}}}}item[_87c]=_886;_883=true;}if(_87e){this.onSet(item,_87c,_880,_87d);}return _883;},_addReferenceToMap:function(_88b,_88c,_88d){var _88e=this.getIdentity(_88c);var _88f=_88b[this._reverseRefMap];if(!_88f){_88f=_88b[this._reverseRefMap]={};}var _890=_88f[_88e];if(!_890){_890=_88f[_88e]={};}_890[_88d]=true;},_removeReferenceFromMap:function(_891,_892,_893){var _894=this.getIdentity(_892);var _895=_891[this._reverseRefMap];var _896;if(_895){for(_896 in _895){if(_896==_894){delete _895[_896][_893];if(this._isEmpty(_895[_896])){delete _895[_896];}}}if(this._isEmpty(_895)){delete _891[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i<this._arrayOfAllItems.length;i++){var item=this._arrayOfAllItems[i];if(item&&item[this._reverseRefMap]){console.log("Item: ["+this.getIdentity(item)+"] is referenced by: "+dojo.toJson(item[this._reverseRefMap]));}}},_getValueOrValues:function(item,_897){var _898=undefined;if(this.hasAttribute(item,_897)){var _899=this.getValues(item,_897);if(_899.length==1){_898=_899[0];}else{_898=_899;}}return _898;},_flatten:function(_89a){if(this.isItem(_89a)){var item=_89a;var _89b=this.getIdentity(item);var _89c={_reference:_89b};return _89c;}else{if(typeof _89a==="object"){for(var type in this._datatypeMap){var _89d=this._datatypeMap[type];if(dojo.isObject(_89d)&&!dojo.isFunction(_89d)){if(_89a instanceof _89d.type){if(!_89d.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_89d.serialize(_89a)};}}else{if(_89a instanceof _89d){return {_type:type,_value:_89a.toString()};}}}}return _89a;}},_getNewFileContentString:function(){var _89e={};var _89f=this._getIdentifierAttribute();if(_89f!==Number){_89e.identifier=_89f;}if(this._labelAttr){_89e.label=this._labelAttr;}_89e.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _8a0={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _8a1=key;var _8a2=this.getValues(item,_8a1);if(_8a2.length==1){_8a0[_8a1]=this._flatten(_8a2[0]);}else{var _8a3=[];for(var j=0;j<_8a2.length;++j){_8a3.push(this._flatten(_8a2[j]));_8a0[_8a1]=_8a3;}}}}_89e.items.push(_8a0);}}var _8a4=true;return dojo.toJson(_89e,_8a4);},_isEmpty:function(_8a5){var _8a6=true;if(dojo.isObject(_8a5)){var i;for(i in _8a5){_8a6=false;break;}}else{if(dojo.isArray(_8a5)){if(_8a5.length>0){_8a6=false;}}}return _8a6;},save:function(_8a7){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _8a8=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_8a7&&_8a7.onComplete){var _8a9=_8a7.scope||dojo.global;_8a7.onComplete.call(_8a9);}};var _8aa=function(err){self._saveInProgress=false;if(_8a7&&_8a7.onError){var _8ab=_8a7.scope||dojo.global;_8a7.onError.call(_8ab,err);}};if(this._saveEverything){var _8ac=this._getNewFileContentString();this._saveEverything(_8a8,_8aa,_8ac);}if(this._saveCustom){this._saveCustom(_8a8,_8aa);}if(!this._saveEverything&&!this._saveCustom){_8a8();}},revert:function(){this._assert(!this._saveInProgress);var _8ad;for(_8ad in this._pending._modifiedItems){var _8ae=this._pending._modifiedItems[_8ad];var _8af=null;if(this._itemsByIdentity){_8af=this._itemsByIdentity[_8ad];}else{_8af=this._arrayOfAllItems[_8ad];}_8ae[this._storeRefPropName]=this;for(key in _8af){delete _8af[key];}dojo.mixin(_8af,_8ae);}var _8b0;for(_8ad in this._pending._deletedItems){_8b0=this._pending._deletedItems[_8ad];_8b0[this._storeRefPropName]=this;var _8b1=_8b0[this._itemNumPropName];if(_8b0["backup_"+this._reverseRefMap]){_8b0[this._reverseRefMap]=_8b0["backup_"+this._reverseRefMap];delete _8b0["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_8b1]=_8b0;if(this._itemsByIdentity){this._itemsByIdentity[_8ad]=_8b0;}if(_8b0[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_8b0);}}for(_8ad in this._pending._deletedItems){_8b0=this._pending._deletedItems[_8ad];if(_8b0["backupRefs_"+this._reverseRefMap]){dojo.forEach(_8b0["backupRefs_"+this._reverseRefMap],function(_8b2){var _8b3;if(this._itemsByIdentity){_8b3=this._itemsByIdentity[_8b2.id];}else{_8b3=this._arrayOfAllItems[_8b2.id];}this._addReferenceToMap(_8b3,_8b0,_8b2.attr);},this);delete _8b0["backupRefs_"+this._reverseRefMap];}}for(_8ad in this._pending._newItems){var _8b4=this._pending._newItems[_8ad];_8b4[this._storeRefPropName]=null;this._arrayOfAllItems[_8b4[this._itemNumPropName]]=null;if(_8b4[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_8b4);}if(this._itemsByIdentity){delete this._itemsByIdentity[_8ad];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _8b5=this.getIdentity(item);return new Boolean(this._pending._newItems[_8b5]||this._pending._modifiedItems[_8b5]||this._pending._deletedItems[_8b5]).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,_8b6,_8b7,_8b8){},onNew:function(_8b9,_8ba){},onDelete:function(_8bb){},close:function(_8bc){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"]);
