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

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

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4c=_4c?dojo.byId(_4c):dojo.body();_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-";function _4f(_50,_51){var _52=dojo.clone(_50.inherited);dojo.forEach(["dir","lang"],function(_53){var val=_50.node.getAttribute(_53);if(val){_52[_53]=val;}});var _54=_50.clsInfo&&!_50.clsInfo.cls.prototype._noScript?_50.scripts:null;var _55=(!_50.clsInfo||!_50.clsInfo.cls.prototype.stopParser)||(_4b&&_4b.template);for(var _56=_50.node.firstChild;_56;_56=_56.nextSibling){if(_56.nodeType==1){var _57,_58=_55&&_56.getAttribute(_4e+"type");if(_58){_57=_58;}else{_57=_55&&_56.getAttribute(_4d);}var _59=_58==_57;if(_57){var _5a={"type":_57,fastpath:_59,clsInfo:_1f(_57,_59),node:_56,scripts:[],inherited:_52};_51.push(_5a);_4f(_5a,_51);}else{if(_54&&_56.nodeName.toLowerCase()=="script"){_57=_56.getAttribute("type");if(_57&&/^dojo\/\w/i.test(_57)){_54.push(_56);}}else{if(_55){_4f({node:_56,inherited:_52},_51);}}}}}};var _5b={};if(_4b&&_4b.inherited){for(var key in _4b.inherited){if(_4b.inherited[key]){_5b[key]=_4b.inherited[key];}}}var _5c=[];_4f({node:_4c,inherited:_5b},_5c);var _5d=_4b&&_4b.template?{template:true}:null;return this.instantiate(_5c,_5d,_4b);};}();(function(){var _5e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_5e);}else{dojo._loaders.unshift(_5e);}})();}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_5f){if(this._hash[_5f.id]){throw new Error("Tried to register widget with id=="+_5f.id+" but that id is already registered");}this._hash[_5f.id]=_5f;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_60,_61){_61=_61||dojo.global;var i=0,id;for(id in this._hash){_60.call(_61,this._hash[id],i++,this._hash);}return this;},filter:function(_62,_63){_63=_63||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_62.call(_63,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_64;for(id in this._hash){_64=this._hash[id];if(_64.declaredClass==cls){res.add(_64);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_65,_66){return dojo.map(this.toArray(),_65,_66);},every:function(_67,_68){_68=_68||dojo.global;var x=0,i;for(i in this._hash){if(!_67.call(_68,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_69,_6a){_6a=_6a||dojo.global;var x=0,i;for(i in this._hash){if(_69.call(_6a,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _6b=dijit.registry._hash,_6c=dojo.attr,_6d=dojo.hasAttr,_6e=dojo.style;dijit.byId=function(id){return typeof id=="string"?_6b[id]:id;};var _6f={};dijit.getUniqueId=function(_70){var id;do{id=_70+"_"+(_70 in _6f?++_6f[_70]:_6f[_70]=0);}while(_6b[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_71){var _72=[];function _73(_74){for(var _75=_74.firstChild;_75;_75=_75.nextSibling){if(_75.nodeType==1){var _76=_75.getAttribute("widgetId");if(_76){var _77=_6b[_76];if(_77){_72.push(_77);}}else{_73(_75);}}}};_73(_71);return _72;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_78){if(!_78._destroyed){if(_78.destroyRecursive){_78.destroyRecursive();}else{if(_78.destroy){_78.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_79){return _6b[_79.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_7a){while(_7a){var id=_7a.getAttribute&&_7a.getAttribute("widgetId");if(id){return _6b[id];}_7a=_7a.parentNode;}return null;};var _7b=(dijit._isElementShown=function(_7c){var s=_6e(_7c);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_6c(_7c,"type")!="hidden");});dijit.hasDefaultTabStop=function(_7d){switch(_7d.nodeName.toLowerCase()){case "a":return _6d(_7d,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _7e;try{var _7f=_7d.contentDocument;if("designMode" in _7f&&_7f.designMode=="on"){return true;}_7e=_7f.body;}catch(e1){try{_7e=_7d.contentWindow.document.body;}catch(e2){return false;}}return _7e.contentEditable=="true"||(_7e.firstChild&&_7e.firstChild.contentEditable=="true");default:return _7d.contentEditable=="true";}};var _80=(dijit.isTabNavigable=function(_81){if(_6c(_81,"disabled")){return false;}else{if(_6d(_81,"tabIndex")){return _6c(_81,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_81);}}});dijit._getTabNavigable=function(_82){var _83,_84,_85,_86,_87,_88,_89={};function _8a(_8b){return _8b&&_8b.tagName.toLowerCase()=="input"&&_8b.type&&_8b.type.toLowerCase()=="radio"&&_8b.name&&_8b.name.toLowerCase();};var _8c=function(_8d){dojo.query("> *",_8d).forEach(function(_8e){if((dojo.isIE<=9&&_8e.scopeName!=="HTML")||!_7b(_8e)){return;}if(_80(_8e)){var _8f=_6c(_8e,"tabIndex");if(!_6d(_8e,"tabIndex")||_8f==0){if(!_83){_83=_8e;}_84=_8e;}else{if(_8f>0){if(!_85||_8f<_86){_86=_8f;_85=_8e;}if(!_87||_8f>=_88){_88=_8f;_87=_8e;}}}var rn=_8a(_8e);if(dojo.attr(_8e,"checked")&&rn){_89[rn]=_8e;}}if(_8e.nodeName.toUpperCase()!="SELECT"){_8c(_8e);}});};if(_7b(_82)){_8c(_82);}function rs(_90){return _89[_8a(_90)]||_90;};return {first:rs(_83),last:rs(_84),lowest:rs(_85),highest:rs(_87)};};dijit.getFirstInTabbingOrder=function(_91){var _92=dijit._getTabNavigable(dojo.byId(_91));return _92.lowest?_92.lowest:_92.first;};dijit.getLastInTabbingOrder=function(_93){var _94=dijit._getTabNavigable(dojo.byId(_93));return _94.last?_94.last:_94.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_95){if(_95){dojo.mixin(this,_95);}},get:function(_96){return this[_96];},set:function(_97,_98){if(typeof _97==="object"){for(var x in _97){this.set(x,_97[x]);}return this;}var _99=this[_97];this[_97]=_98;if(this._watchCallbacks){this._watchCallbacks(_97,_99,_98);}return this;},watch:function(_9a,_9b){var _9c=this._watchCallbacks;if(!_9c){var _9d=this;_9c=this._watchCallbacks=function(_9e,_9f,_a0,_a1){var _a2=function(_a3){if(_a3){_a3=_a3.slice();for(var i=0,l=_a3.length;i<l;i++){try{_a3[i].call(_9d,_9e,_9f,_a0);}catch(e){console.error(e);}}}};_a2(_9c["_"+_9e]);if(!_a1){_a2(_9c["*"]);}};}if(!_9b&&typeof _9a==="function"){_9b=_9a;_9a="*";}else{_9a="_"+_9a;}var _a4=_9c[_9a];if(typeof _a4!=="object"){_a4=_9c[_9a]=[];}_a4.push(_9b);return {unwatch:function(){_a4.splice(dojo.indexOf(_a4,_9b),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){function _a5(a,b){return a===b||(a!==a&&b!==b);};dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_a6,_a7){this.create(_a6,_a7);},create:function(_a8,_a9){this.srcNodeRef=dojo.byId(_a9);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_a8){this.params=_a8;dojo._mixin(this,_a8);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _aa=this.srcNodeRef;if(_aa&&_aa.parentNode&&this.domNode!==_aa){_aa.parentNode.replaceChild(this.domNode,_aa);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _ab=function(_ac,_ad){if((_ad.params&&_ac in _ad.params)||_ad[_ac]){_ad.set(_ac,_ad[_ac]);}};for(var _ae in this.attributeMap){_ab(_ae,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_ab(a,this);}},this);},_getSetterAttributes:function(){var _af=this.constructor;if(!_af._setterAttrs){var r=(_af._setterAttrs=[]),_b0,_b1=_af.prototype;for(var _b2 in _b1){if(dojo.isFunction(_b1[_b2])&&(_b0=_b2.match(/^_set([a-zA-Z]*)Attr$/))&&_b0[1]){r.push(_b0[1].charAt(0).toLowerCase()+_b0[1].substr(1));}}}return _af._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _b3=this.baseClass.split(" ");if(!this.isLeftToRight()){_b3=_b3.concat(dojo.map(_b3,function(_b4){return _b4+"Rtl";}));}dojo.addClass(this.domNode,_b3);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_b5){this._beingDestroyed=true;this.destroyDescendants(_b5);this.destroy(_b5);},destroy:function(_b6){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_b7){dfe(_b7,d.disconnect);});dfe(this._subscribes,function(_b8){dun(_b8);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_b6);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_b9){if(this.bgIframe){this.bgIframe.destroy(_b9);delete this.bgIframe;}if(this.domNode){if(_b9){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_b9){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_ba){dojo.forEach(this.getChildren(),function(_bb){if(_bb.destroyRecursive){_bb.destroyRecursive(_ba);}});},uninitialize:function(){return false;},_setClassAttr:function(_bc){var _bd=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_bd,_bc,this["class"]);this._set("class",_bc);},_setStyleAttr:function(_be){var _bf=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_be)){dojo.style(_bf,_be);}else{if(_bf.style.cssText){_bf.style.cssText+="; "+_be;}else{_bf.style.cssText=_be;}}this._set("style",_be);},_attrToDom:function(_c0,_c1){var _c2=this.attributeMap[_c0];dojo.forEach(dojo.isArray(_c2)?_c2:[_c2],function(_c3){var _c4=this[_c3.node||_c3||"domNode"];var _c5=_c3.type||"attribute";switch(_c5){case "attribute":if(dojo.isFunction(_c1)){_c1=dojo.hitch(this,_c1);}var _c6=_c3.attribute?_c3.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_c0)?_c0.toLowerCase():_c0);dojo.attr(_c4,_c6,_c1);break;case "innerText":_c4.innerHTML="";_c4.appendChild(dojo.doc.createTextNode(_c1));break;case "innerHTML":_c4.innerHTML=_c1;break;case "class":dojo.replaceClass(_c4,_c1,this[_c0]);break;}},this);},get:function(_c7){var _c8=this._getAttrNames(_c7);return this[_c8.g]?this[_c8.g]():this[_c7];},set:function(_c9,_ca){if(typeof _c9==="object"){for(var x in _c9){this.set(x,_c9[x]);}return this;}var _cb=this._getAttrNames(_c9);if(this[_cb.s]){var _cc=this[_cb.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(_c9 in this.attributeMap){this._attrToDom(_c9,_ca);}this._set(_c9,_ca);}return _cc||this;},_attrPairNames:{},_getAttrNames:function(_cd){var apn=this._attrPairNames;if(apn[_cd]){return apn[_cd];}var uc=_cd.charAt(0).toUpperCase()+_cd.substr(1);return (apn[_cd]={n:_cd+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_ce,_cf){var _d0=this[_ce];this[_ce]=_cf;if(this._watchCallbacks&&this._created&&!_a5(_cf,_d0)){this._watchCallbacks(_ce,_d0,_cf);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_d1,_d2){var _d3=[dojo._connect(obj,_d1,this,_d2)];this._connects.push(_d3);return _d3;},disconnect:function(_d4){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_d4){dojo.forEach(_d4,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_d5,_d6){var _d7=dojo.subscribe(_d5,this,_d6);this._subscribes.push(_d7);return _d7;},unsubscribe:function(_d8){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_d8){dojo.unsubscribe(_d8);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_d9,_da){if(_d9.declaredClass&&_d9.addChild){_d9.addChild(this,_da);}else{dojo.place(this.domNode,_d9,_da);}return this;},defer:function(fcn,_db){var _dc=setTimeout(dojo.hitch(this,function(){_dc=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_db||0);return {remove:function(){if(_dc){clearTimeout(_dc);_dc=null;}return null;}};}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _dd=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _de=dojo._docScroll();return {w:_dd.clientWidth,h:_dd.clientHeight,l:_de.x,t:_de.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_df,pos){_df=dojo.byId(_df);var _e0,doc=_df.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){_e0=dojo.body();var _e1=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_e0,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_e1,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_e1.removeChild(div);_e0.removeChild(_e1);}if(!("position_fixed_support" in dojo.window)){_e0=dojo.body();var _e2=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_e0,"last"),_e3=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_e2,"last");dojo.window.position_fixed_support=dojo.position(_e3).x!=dojo.position(_e2).x;_e2.removeChild(_e3);_e0.removeChild(_e2);}try{_e0=doc.body||doc.getElementsByTagName("body")[0];var _e4=doc.documentElement||_e0.parentNode,_e5=dojo.isIE,_e6=dojo.isWebKit;if(_df==_e0||_df==_e4){return;}if(!(dojo.isMozilla||_e5||_e6||dojo.isOpera)&&("scrollIntoView" in _df)){_df.scrollIntoView(false);return;}var _e7=doc.compatMode=="BackCompat",_e8=Math.min(_e0.clientWidth||_e4.clientWidth,_e4.clientWidth||_e0.clientWidth),_e9=Math.min(_e0.clientHeight||_e4.clientHeight,_e4.clientHeight||_e0.clientHeight),_ea=(_e6||_e7)?_e0:_e4,_eb=pos||dojo.position(_df),el=_df.parentNode,_ec=function(el){return (_e5<=6||(_e5==7&&_e7))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_ec(_df)){return;}while(el){if(el==_e0){el=_ea;}var _ed=dojo.position(el),_ee=_ec(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_ea){_ed.w=_e8;_ed.h=_e9;if(_ea==_e4&&_e5&&rtl){_ed.x+=_ea.offsetWidth-_ed.w;}if(_ed.x<0||!_e5||_e5>=9){_ed.x=0;}if(_ed.y<0||!_e5||_e5>=9){_ed.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_ed.w-=pb.w;_ed.h-=pb.h;_ed.x+=pb.l;_ed.y+=pb.t;var _ef=el.clientWidth,_f0=_ed.w-_ef;if(_ef>0&&_f0>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_ed.x+=_f0;}_ed.w=_ef;}_ef=el.clientHeight;_f0=_ed.h-_ef;if(_ef>0&&_f0>0){_ed.h=_ef;}}if(_ee){if(_ed.y<0){_ed.h+=_ed.y;_ed.y=0;}if(_ed.x<0){_ed.w+=_ed.x;_ed.x=0;}if(_ed.y+_ed.h>_e9){_ed.h=_e9-_ed.y;}if(_ed.x+_ed.w>_e8){_ed.w=_e8-_ed.x;}}var l=_eb.x-_ed.x,t=_eb.y-_ed.y,r=l+_eb.w-_ed.w,bot=t+_eb.h-_ed.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_ea||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_e5==8&&!_e7)||_e5>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_eb.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_ea||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_eb.y-=s;}el=(el!=_ea)&&!_ee&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_df.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_f1){var _f2=dojo.doc,_f3=_f1.mark;if(_f3){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_f3.pRange){var r=_f3;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_f3);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_f2.selection&&_f3){var rg;if(_f3.pRange){rg=_f3.range;}else{if(dojo.isArray(_f3)){rg=_f2.body.createControlRange();dojo.forEach(_f3,function(n){rg.addElement(n);});}else{rg=_f2.body.createTextRange();rg.moveToBookmark(_f3);}}rg.select();}}}},getFocus:function(_f4,_f5){var _f6=!dijit._curFocus||(_f4&&dojo.isDescendant(dijit._curFocus,_f4.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_f6,bookmark:(_f6==dijit._curFocus)&&dojo.withGlobal(_f5||dojo.global,dijit.getBookmark),openedForWindow:_f5};},focus:function(_f7){if(!_f7){return;}var _f8="node" in _f7?_f7.node:_f7,_f9=_f7.bookmark,_fa=_f7.openedForWindow,_fb=_f9?_f9.isCollapsed:false;if(_f8){var _fc=(_f8.tagName.toLowerCase()=="iframe")?_f8.contentWindow:_f8;if(_fc&&_fc.focus){try{_fc.focus();}catch(e){}}dijit._onFocusNode(_f8);}if(_f9&&dojo.withGlobal(_fa||dojo.global,dijit.isCollapsed)&&!_fb){if(_fa){_fa.focus();}try{dojo.withGlobal(_fa||dojo.global,dijit.moveToBookmark,null,[_f9]);}catch(e2){}}},_activeStack:[],registerIframe:function(_fd){return dijit.registerWin(_fd.contentWindow,_fd);},unregisterIframe:function(_fe){dijit.unregisterWin(_fe);},registerWin:function(_ff,_100){var _101=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_100||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_ff.document.documentElement:_ff.document;if(doc){if(dojo.isIE){_ff.document.body.attachEvent("onmousedown",_101);var _102=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_100||evt.srcElement);}else{dijit._onTouchNode(_100||evt.srcElement);}};doc.attachEvent("onactivate",_102);var _103=function(evt){dijit._onBlurNode(_100||evt.srcElement);};doc.attachEvent("ondeactivate",_103);return function(){_ff.document.detachEvent("onmousedown",_101);doc.detachEvent("onactivate",_102);doc.detachEvent("ondeactivate",_103);doc=null;};}else{doc.body.addEventListener("mousedown",_101,true);var _104=function(evt){dijit._onFocusNode(_100||evt.target);};doc.addEventListener("focus",_104,true);var _105=function(evt){dijit._onBlurNode(_100||evt.target);};doc.addEventListener("blur",_105,true);return function(){doc.body.removeEventListener("mousedown",_101,true);doc.removeEventListener("focus",_104,true);doc.removeEventListener("blur",_105,true);doc=null;};}}},unregisterWin:function(_106){_106&&_106();},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _107=[];try{while(node){var _108=dojo.attr(node,"dijitPopupParent");if(_108){node=dijit.byId(_108).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_109=id&&dijit.byId(id);if(_109&&!(by=="mouse"&&_109.get("disabled"))){_107.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_107,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_10a,by){var _10b=dijit._activeStack;dijit._activeStack=_10a;for(var _10c=0;_10c<Math.min(_10b.length,_10a.length);_10c++){if(_10b[_10c]!=_10a[_10c]){break;}}var _10d;for(var i=_10b.length-1;i>=_10c;i--){_10d=dijit.byId(_10b[i]);if(_10d){_10d._focused=false;_10d.set("focused",false);_10d._hasBeenBlurred=true;if(_10d._onBlur){_10d._onBlur(by);}dojo.publish("widgetBlur",[_10d,by]);}}for(i=_10c;i<_10a.length;i++){_10d=dijit.byId(_10a[i]);if(_10d){_10d._focused=true;_10d.set("focused",true);if(_10d._onFocus){_10d._onFocus(by);}dojo.publish("widgetFocus",[_10d,by]);}}}});dojo.addOnLoad(function(){var _10e=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_10e);_10e=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_10f){this.pairs=[];this.returnWrappers=_10f||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_110,wrap,_111,_112){this.pairs[((_112)?"unshift":"push")]([name,_110,wrap,_111]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_113,_114){var _115=dojo.map(_113,function(_116){var c={corner:_116,pos:{x:pos.x,y:pos.y}};if(_114){c.pos.x+=_116.charAt(1)=="L"?_114.x:-_114.x;c.pos.y+=_116.charAt(0)=="T"?_114.y:-_114.y;}return c;});return dijit._place(node,_115);};dijit._place=function(node,_117,_118,_119){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_117,function(_11a){var _11b=_11a.corner;var pos=_11a.pos;var _11c=0;var _11d={w:_11b.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_11b.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_118){var res=_118(node,_11a.aroundCorner,_11b,_11d,_119);_11c=typeof res=="undefined"?0:res;}var _11e=node.style;var _11f=_11e.display;var _120=_11e.visibility;_11e.visibility="hidden";_11e.display="";var mb=dojo.marginBox(node);_11e.display=_11f;_11e.visibility=_120;var _121=Math.max(view.l,_11b.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_122=Math.max(view.t,_11b.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_11b.charAt(1)=="L"?(_121+mb.w):pos.x),endY=Math.min(view.t+view.h,_11b.charAt(0)=="T"?(_122+mb.h):pos.y),_123=endX-_121,_124=endY-_122;_11c+=(mb.w-_123)+(mb.h-_124);if(best==null||_11c<best.overflow){best={corner:_11b,aroundCorner:_11a.aroundCorner,x:_121,y:_122,w:_123,h:_124,overflow:_11c,spaceAvailable:_11d};}return !_11c;});if(best.overflow&&_118){_118(node,best.aroundCorner,best.corner,best.spaceAvailable,_119);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};dijit.placeOnScreenAroundNode=function(node,_125,_126,_127){_125=dojo.byId(_125);var _128=dojo.position(_125,true);return dijit._placeOnScreenAroundRect(node,_128.x,_128.y,_128.w,_128.h,_126,_127);};dijit.placeOnScreenAroundRectangle=function(node,_129,_12a,_12b){return dijit._placeOnScreenAroundRect(node,_129.x,_129.y,_129.width,_129.height,_12a,_12b);};dijit._placeOnScreenAroundRect=function(node,x,y,_12c,_12d,_12e,_12f){var _130=[];for(var _131 in _12e){_130.push({aroundCorner:_131,corner:_12e[_131],pos:{x:x+(_131.charAt(1)=="L"?0:_12c),y:y+(_131.charAt(0)=="T"?0:_12d)}});}return dijit._place(node,_130,_12f,{w:_12c,h:_12d});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_132,_133,_134){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_135,_136){var _137={};dojo.forEach(_135,function(pos){switch(pos){case "after":_137[_136?"BR":"BL"]=_136?"BL":"BR";break;case "before":_137[_136?"BL":"BR"]=_136?"BR":"BL";break;case "below-alt":_136=!_136;case "below":_137[_136?"BL":"BR"]=_136?"TL":"TR";_137[_136?"BR":"BL"]=_136?"TR":"TL";break;case "above-alt":_136=!_136;case "above":default:_137[_136?"TL":"TR"]=_136?"BL":"BR";_137[_136?"TR":"TL"]=_136?"BR":"BL";break;}});return _137;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_138){var node=_138.domNode||_138,_139=_138.declaredClass?_138._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_139){_139=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_139.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_138.declaredClass){_138._popupWrapper=_139;dojo.connect(_138,"destroy",function(){dojo.destroy(_139);delete _138._popupWrapper;});}}return _139;},moveOffScreen:function(_13a){var _13b=this._createWrapper(_13a);dojo.style(_13b,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_13c){var _13d=this._createWrapper(_13c);dojo.style(_13d,"display","none");},getTopPopup:function(){var _13e=this._stack;for(var pi=_13e.length-1;pi>0&&_13e[pi].parent===_13e[pi-1].widget;pi--){}return _13e[pi];},open:function(args){var _13f=this._stack,_140=args.popup,_141=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_142=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_13f.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_13f[_13f.length-1].widget.domNode))){dijit.popup.close(_13f[_13f.length-1].widget);}var _143=this._createWrapper(_140);dojo.attr(_143,{id:id,style:{zIndex:this._beginZIndex+_13f.length},"class":"dijitPopup "+(_140.baseClass||_140["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_140.bgIframe){_140.bgIframe=new dijit.BackgroundIframe(_143);}}var best=_142?dijit.placeOnScreenAroundElement(_143,_142,_141,_140.orient?dojo.hitch(_140,"orient"):null):dijit.placeOnScreen(_143,args,_141=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_143.style.display="";_143.style.visibility="visible";_140.domNode.style.visibility="visible";var _144=[];_144.push(dojo.connect(_143,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _145=this.getTopPopup();if(_145&&_145.onCancel){_145.onCancel();}}}}));if(_140.onCancel){_144.push(dojo.connect(_140,"onCancel",args.onCancel));}_144.push(dojo.connect(_140,_140.onExecute?"onExecute":"onChange",this,function(){var _146=this.getTopPopup();if(_146&&_146.onExecute){_146.onExecute();}}));_13f.push({widget:_140,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_144});if(_140.onOpen){_140.onOpen(best);}return best;},close:function(_147){var _148=this._stack;while((_147&&dojo.some(_148,function(elem){return elem.widget==_147;}))||(!_147&&_148.length)){var top=_148.pop(),_149=top.widget,_14a=top.onClose;if(_149.onClose){_149.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_149&&_149.domNode){this.hide(_149);}if(_14a){_14a();}}}};dijit._frames=new function(){var _14b=[];this.pop=function(){var _14c;if(_14b.length){_14c=_14b.pop();_14c.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_14c=dojo.doc.createElement(html);}else{_14c=dojo.create("iframe");_14c.src="javascript:\"\"";_14c.className="dijitBackgroundIframe";dojo.style(_14c,"opacity",0.1);}_14c.tabIndex=-1;dijit.setWaiRole(_14c,"presentation");}return _14c;};this.push=function(_14d){_14d.style.display="none";_14b.push(_14d);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _14e=(this.iframe=dijit._frames.pop());node.appendChild(_14e);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_14e,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_14f=d.isOpera,maj=Math.floor,ff=d.isFF,_150=d.boxModel.replace(/-/,""),_151={dj_quirks:d.isQuirks,dj_opera:_14f,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_151["dj_ie"]=true;_151["dj_ie"+maj(ie)]=true;_151["dj_iequirks"]=d.isQuirks;}if(ff){_151["dj_ff"+maj(ff)]=true;}_151["dj_"+_150]=true;var _152="";for(var clz in _151){if(_151[clz]){_152+=clz+" ";}}html.className=d.trim(html.className+" "+_152);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _153="dj_rtl dijitRtl "+_152.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_153);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_154,node,_155,obj,_156,_157,_158){if(obj!=this._obj){this.stop();this._initialDelay=_157||500;this._subsequentDelay=_156||0.9;this._minDelay=_158||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_154,_155);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_159,_15a,_15b,_15c,_15d,_15e){if(_159.keyCode){_159.charOrCode=_159.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_159.charCode){_159.charOrCode=String.fromCharCode(_159.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_159.charOrCode&&(_159.ctrlKey===undefined||_159.ctrlKey==evt.ctrlKey)&&(_159.altKey===undefined||_159.altKey==evt.altKey)&&(_159.metaKey===undefined||_159.metaKey==(evt.metaKey||false))&&(_159.shiftKey===undefined||_159.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_15a,node,_15b,_159,_15c,_15d,_15e);}else{if(dijit.typematic._obj==_159){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_159){dijit.typematic.stop();}})];},addMouseListener:function(node,_15f,_160,_161,_162,_163){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_15f,node,_160,node,_161,_162,_163);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_15f,node,_160,node,_161,_162,_163);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_164,_165,_166,_167,_168,_169,_16a,_16b){return this.addKeyListener(_165,_166,_167,_168,_169,_16a,_16b).concat(this.addMouseListener(_164,_167,_168,_169,_16a,_16b));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _16c=cs.backgroundImage;var _16d=(cs.borderTopColor==cs.borderRightColor)||(_16c!=null&&(_16c=="none"||_16c=="url(invalid-url:)"));dojo[_16d?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem,role){var _16e=this.getWaiRole(elem);return role?(_16e.indexOf(role)>-1):(_16e.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _16f=dojo.attr(elem,"role");if(!_16f){return;}if(role){var t=dojo.trim((" "+_16f+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_170){return elem.hasAttribute?elem.hasAttribute("aria-"+_170):!!elem.getAttribute("aria-"+_170);},getWaiState:function(elem,_171){return elem.getAttribute("aria-"+_171)||"";},setWaiState:function(elem,_172,_173){elem.setAttribute("aria-"+_172,_173);},removeWaiState:function(elem,_174){elem.removeAttribute("aria-"+_174);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_175,_176){if(_175&&dojo.isFunction(_175._onConnect)){_175._onConnect(_176);}});dijit._connectOnUseEventHandler=function(_177){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _178=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_178);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_178);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,create:function(_179,_17a){this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_17b){if(_17b in this._deferredConnects){var _17c=this[this._deferredConnects[_17b]||"domNode"];this.connect(_17c,_17b.toLowerCase(),_17b);delete this._deferredConnects[_17b];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_17d){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_17d);},attr:function(name,_17e){if(dojo.config.isDebug){var _17f=arguments.callee._ach||(arguments.callee._ach={}),_180=(arguments.callee.caller||"unknown caller").toString();if(!_17f[_180]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_180,"","2.0");_17f[_180]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_181,_182){var d=dojo,dc=d._connect,_183=this.inherited(arguments,[obj,_181=="ondijitclick"?"onclick":_181,_182]);if(_181=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_182);_183.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}}return _183;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_184,map,_185,_186){_186=_186||dojo.global;_185=_185?dojo.hitch(_186,_185):function(v){return v;};return _184.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_187,key,_188){var _189=dojo.getObject(key,false,map);if(_188){_189=dojo.getObject(_188,false,_186).call(_186,_189,key);}return _185(_189,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_18a,url,_18b){if(typeof _18a=="string"){var _18c=dojo.moduleUrl(_18a,url);}else{_18c=_18a;_18b=url;}var key=_18c.toString();var val=_18b;if(_18b!=undefined&&!dojo.isString(_18b)){val=("value" in _18b?_18b.value:undefined);}var _18d=_18b&&_18b.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_18d?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_18d?dojo.cache._sanitize(val):val;}val=cache[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _18e=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_18e){val=_18e[1];}}else{val="";}return val;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _18f=this.declaredClass,_190=this;return dojo.string.substitute(tmpl,this,function(_191,key){if(key.charAt(0)=="!"){_191=dojo.getObject(key.substr(1),false,_190);}if(typeof _191=="undefined"){throw new Error(_18f+" template:"+key);}if(_191==null){return "";}return key.charAt(0)=="!"?_191:_191.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _192=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_192)){node=dojo._toDom(this._stringRepl(_192));if(node.nodeType!=1){throw new Error("Invalid template: "+_192);}}else{node=_192.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_193){var dest=this.containerNode;if(_193&&dest){while(_193.hasChildNodes()){dest.appendChild(_193.firstChild);}}},_attachTemplateNodes:function(_194,_195){_195=_195||function(n,p){return n.getAttribute(p);};var _196=dojo.isArray(_194)?_194:(_194.all||_194.getElementsByTagName("*"));var x=dojo.isArray(_194)?0:-1;for(;x<_196.length;x++){var _197=(x==-1)?_194:_196[x];if(this.widgetsInTemplate&&(_195(_197,"dojoType")||_195(_197,"data-dojo-type"))){continue;}var _198=_195(_197,"dojoAttachPoint")||_195(_197,"data-dojo-attach-point");if(_198){var _199,_19a=_198.split(/\s*,\s*/);while((_199=_19a.shift())){if(dojo.isArray(this[_199])){this[_199].push(_197);}else{this[_199]=_197;}this._attachPoints.push(_199);}}var _19b=_195(_197,"dojoAttachEvent")||_195(_197,"data-dojo-attach-event");if(_19b){var _19c,_19d=_19b.split(/\s*,\s*/);var trim=dojo.trim;while((_19c=_19d.shift())){if(_19c){var _19e=null;if(_19c.indexOf(":")!=-1){var _19f=_19c.split(":");_19c=trim(_19f[0]);_19e=trim(_19f[1]);}else{_19c=trim(_19c);}if(!_19e){_19e=_19c;}this._attachEvents.push(this.connect(_197,_19c,_19e));}}}var role=_195(_197,"waiRole");if(role){dijit.setWaiRole(_197,role);}var _1a0=_195(_197,"waiState");if(_1a0){dojo.forEach(_1a0.split(/\s*,\s*/),function(_1a1){if(_1a1.indexOf("-")!=-1){var pair=_1a1.split("-");dijit.setWaiState(_197,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_1a2){delete this[_1a2];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1a3,_1a4,_1a5){var _1a6=dijit._Templated._templateCache;var key=_1a4||_1a3;var _1a7=_1a6[key];if(_1a7){try{if(!_1a7.ownerDocument||_1a7.ownerDocument==dojo.doc){return _1a7;}}catch(e){}dojo.destroy(_1a7);}if(!_1a4){_1a4=dojo.cache(_1a3,{sanitize:true});}_1a4=dojo.string.trim(_1a4);if(_1a5||_1a4.match(/\$\{([^\}]+)\}/g)){return (_1a6[key]=_1a4);}else{var node=dojo._toDom(_1a4);if(node.nodeType!=1){throw new Error("Invalid template: "+_1a4);}return (_1a6[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1a8=dijit._Templated._templateCache;for(var key in _1a8){var _1a9=_1a8[key];if(typeof _1a9=="object"){dojo.destroy(_1a9);}delete _1a8[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.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(_1aa,_1ab,_1ac,rtl){if(this.aroundNode&&this.aroundNode===_1ab){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_1aa;var pos=dijit.placeOnScreenAroundElement(this.domNode,_1ab,dijit.getPopupAroundAlignment((_1ac&&_1ac.length)?_1ac:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_1ab;},orient:function(node,_1ad,_1ae,_1af,_1b0){this.connectorNode.style.top="";var _1b1=_1af.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"}[_1ad+"-"+_1ae];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _1b2=Math.min((Math.max(_1b1,1)),size.w);var _1b3=_1b2<size.w;this.domNode.style.width=_1b2+"px";if(_1b3){this.containerNode.style.overflow="auto";var _1b4=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_1b4>_1b2){_1b4=_1b4+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_1b4+"px";}}if(_1ae.charAt(0)=="B"&&_1ad.charAt(0)=="B"){var mb=dojo.marginBox(node);var _1b5=this.connectorNode.offsetHeight;if(mb.h>_1af.h){var _1b6=_1af.h-(_1b0.h/2)-(_1b5/2);this.connectorNode.style.top=_1b6+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_1b0.h/2-_1b5/2,0),mb.h-_1b5)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_1b1);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_1b7){if(this._onDeck&&this._onDeck[1]==_1b7){this._onDeck=null;}else{if(this.aroundNode===_1b7){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(_1b8,_1b9,_1ba,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_1b8,_1b9,_1ba,rtl);};dijit.hideTooltip=function(_1bb){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_1bb);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_1bc){dojo.forEach(this._connections||[],function(_1bd){dojo.forEach(_1bd,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_1bc)?_1bc:(_1bc?[_1bc]:[]);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",_1bc);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 _1be=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_1be);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_1bf){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_1bf,this.position,!this.isLeftToRight());this._connectNode=_1bf;this.onShow(_1bf,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(_1c0,_1c1){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}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(_1c2){if(!this.disabled){switch(_1c2.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 _1c3=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1c3);});break;}}},_setStateClass:function(){var _1c4=this.baseClass.split(" ");function _1c5(_1c6){_1c4=_1c4.concat(dojo.map(_1c4,function(c){return c+_1c6;}),"dijit"+_1c6);};if(!this.isLeftToRight()){_1c5("Rtl");}if(this.checked){_1c5("Checked");}if(this.state){_1c5(this.state);}if(this.selected){_1c5("Selected");}if(this.disabled){_1c5("Disabled");}else{if(this.readOnly){_1c5("ReadOnly");}else{if(this.active){_1c5("Active");}else{if(this.hovering){_1c5("Hover");}}}}if(this._focused){_1c5("Focused");}var tn=this.stateNode||this.domNode,_1c7={};dojo.forEach(tn.className.split(" "),function(c){_1c7[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1c7[c];});}dojo.forEach(_1c4,function(c){_1c7[c]=true;});var _1c8=[];for(var c in _1c7){_1c8.push(c);}tn.className=_1c8.join(" ");this._stateClasses=_1c4;},_trackMouseState:function(node,_1c9){var _1ca=false,_1cb=false,_1cc=false;var self=this,cn=dojo.hitch(this,"connect",node);function _1cd(){var _1ce=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_1c9+"Hover",_1ca&&!_1cb&&!_1ce);dojo.toggleClass(node,_1c9+"Active",_1cb&&!_1ce);dojo.toggleClass(node,_1c9+"Focused",_1cc&&!_1ce);};cn("onmouseenter",function(){_1ca=true;_1cd();});cn("onmouseleave",function(){_1ca=false;_1cb=false;_1cd();});cn("onmousedown",function(){_1cb=true;_1cd();});cn("onmouseup",function(){_1cb=false;_1cd();});cn("onfocus",function(){_1cc=true;_1cd();});cn("onblur",function(){_1cc=false;_1cd();});this.watch("disabled",_1cd);this.watch("readOnly",_1cd);}});}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(_1cf){this._set("disabled",_1cf);dojo.attr(this.focusNode,"disabled",_1cf);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_1cf);}dijit.setWaiState(this.focusNode,"disabled",_1cf);if(_1cf){this._set("hovering",false);this._set("active",false);var _1d0="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_1d0)?_1d0:[_1d0],function(_1d1){var node=this[_1d1];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(_1d2){dojo.deprecated("setDisabled("+_1d2+") is deprecated. Use set('disabled',"+_1d2+") instead.","","2.0");this.set("disabled",_1d2);},_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(_1d3){},_onChangeActive:false,_handleOnChange:function(_1d4,_1d5){if(this._lastValueReported==undefined&&(_1d5===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1d4;}this._pendingOnChange=this._pendingOnChange||(typeof _1d4!=typeof this._lastValueReported)||(this.compare(_1d4,this._lastValueReported)!=0);if((this.intermediateChanges||_1d5||_1d5===undefined)&&this._pendingOnChange){this._lastValueReported=_1d4;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1d4);}),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(_1d6){dojo.deprecated("dijit.form._FormWidget:setValue("+_1d6+") is deprecated.  Use set('value',"+_1d6+") instead.","","2.0");this.set("value",_1d6);},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 _1d7=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1d7);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1d8){dojo.attr(this.focusNode,"readOnly",_1d8);dijit.setWaiState(this.focusNode,"readonly",_1d8);this._set("readOnly",_1d8);},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(_1d9,_1da){this._handleOnChange(_1d9,_1da);},_handleOnChange:function(_1db,_1dc){this._set("value",_1db);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 _1dd=this.domNode;var _1de=_1dd.parentNode;var _1df=_1dd.firstChild||_1dd;var _1e0=_1df.style.filter;var _1e1=this;while(_1de&&_1de.clientHeight==0){(function ping(){var _1e2=_1e1.connect(_1de,"onscroll",function(e){_1e1.disconnect(_1e2);_1df.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1df.style.filter=_1e0;},0);});})();_1de=_1de.parentNode;}}}});}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(_1e3,_1e4){var _1e5=this.containerNode;if(_1e4&&typeof _1e4=="number"){var _1e6=this.getChildren();if(_1e6&&_1e6.length>=_1e4){_1e5=_1e6[_1e4-1].domNode;_1e4="after";}}dojo.place(_1e3.domNode,_1e5,_1e4);if(this._started&&!_1e3._started){_1e3.startup();}},removeChild:function(_1e7){if(typeof _1e7=="number"){_1e7=this.getChildren()[_1e7];}if(_1e7){var node=_1e7.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1e8){dojo.forEach(this.getChildren(),function(_1e9){_1e9.destroyRecursive(_1e8);});},_getSiblingOfChild:function(_1ea,dir){var node=_1ea.domNode,_1eb=(dir>0?"nextSibling":"previousSibling");do{node=node[_1eb];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1ec){return dojo.indexOf(this.getChildren(),_1ec);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1ed){_1ed.startup();});this.inherited(arguments);}});}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 _1ee=this.dropDown,_1ef=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&&!_1ef){if(dojo.hasClass(t,"dijitPopup")){_1ef=true;}else{t=t.parentNode;}}if(_1ef){t=e.target;if(_1ee.onItemClick){var _1f0;while(t&&!(_1f0=dijit.byNode(t))){t=t.parentNode;}if(_1f0&&_1f0.onClick&&_1f0.getParent){_1f0.getParent().onItemClick(_1f0,e);}}return;}}}if(this._opened&&_1ee.focus&&_1ee.autoFocus!==false){window.setTimeout(dojo.hitch(_1ee,"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 _1f1={"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"+_1f1+"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,_1f2=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==" ")&&((_1f2.tagName||"").toLowerCase()!=="input"||(_1f2.type&&_1f2.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 _1f3=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_1f3);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_1f4){_1f4();},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 _1f5=this.dropDown,_1f6=_1f5.domNode,_1f7=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_1f6.style.width){this._explicitDDWidth=true;}if(_1f6.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _1f8={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_1f8.width="";}if(!this._explicitDDHeight){_1f8.height="";}dojo.style(_1f6,_1f8);var _1f9=this.maxHeight;if(_1f9==-1){var _1fa=dojo.window.getBox(),_1fb=dojo.position(_1f7,false);_1f9=Math.floor(Math.max(_1fb.y,_1fa.h-(_1fb.y+_1fb.h)));}if(_1f5.startup&&!_1f5._started){_1f5.startup();}dijit.popup.moveOffScreen(_1f5);var mb=dojo._getMarginSize(_1f6);var _1fc=(_1f9&&mb.h>_1f9);dojo.style(_1f6,{overflowX:"hidden",overflowY:_1fc?"auto":"hidden"});if(_1fc){mb.h=_1f9;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_1f7.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_1f7.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_1f5.resize)){_1f5.resize(mb);}else{dojo.marginBox(_1f6,mb);}}var _1fd=dijit.popup.open({parent:this,popup:_1f5,around:_1f7,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 _1fd;},closeDropDown:function(_1fe){if(this._opened){if(_1fe){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 _1ff=dijit.byNode(node);if(_1ff&&typeof _1ff._onSubmit=="function"){_1ff._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_200){if(_200&&(!this.params||!("label" in this.params))){this.set("label",_200.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(_201){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_201);},_setLabelAttr:function(_202){this._set("label",_202);this.containerNode.innerHTML=_202;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _203=this.iconClass||"dijitNoIcon",_204=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_204,_203);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 _205=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_205[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _206=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_206);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _207=this.dropDown;return (!!_207&&(!_207.href||_207.isLoaded));},loadDropDown:function(){var _208=this.dropDown;if(!_208){return;}if(!this.isLoaded()){var _209=dojo.connect(_208,"onLoad",this,function(){dojo.disconnect(_209);this.openDropDown();});_208.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(_20a){if(!this.disabled){dijit.focus(_20a=="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(_20b,_20c){this._set("checked",_20b);dojo.attr(this.focusNode||this.domNode,"checked",_20b);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_20b);this._handleOnChange(_20b,_20c);},setChecked:function(_20d){dojo.deprecated("setChecked("+_20d+") is deprecated. Use set('checked',"+_20d+") instead.","","2.0");this.set("checked",_20d);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dojox.gfx.matrix"]){dojo._hasResource["dojox.gfx.matrix"]=true;dojo.provide("dojox.gfx.matrix");(function(){var m=dojox.gfx.matrix;var _20e={};m._degToRad=function(_20f){return _20e[_20f]||(_20e[_20f]=(Math.PI*_20f/180));};m._radToDeg=function(_210){return _210/Math.PI*180;};m.Matrix2D=function(arg){if(arg){if(typeof arg=="number"){this.xx=this.yy=arg;}else{if(arg instanceof Array){if(arg.length>0){var _211=m.normalize(arg[0]);for(var i=1;i<arg.length;++i){var l=_211,r=dojox.gfx.matrix.normalize(arg[i]);_211=new m.Matrix2D();_211.xx=l.xx*r.xx+l.xy*r.yx;_211.xy=l.xx*r.xy+l.xy*r.yy;_211.yx=l.yx*r.xx+l.yy*r.yx;_211.yy=l.yx*r.xy+l.yy*r.yy;_211.dx=l.xx*r.dx+l.xy*r.dy+l.dx;_211.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}dojo.mixin(this,_211);}}else{dojo.mixin(this,arg);}}}};dojo.extend(m.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});dojo.mixin(m,{identity:new m.Matrix2D(),flipX:new m.Matrix2D({xx:-1}),flipY:new m.Matrix2D({yy:-1}),flipXY:new m.Matrix2D({xx:-1,yy:-1}),translate:function(a,b){if(arguments.length>1){return new m.Matrix2D({dx:a,dy:b});}return new m.Matrix2D({dx:a.x,dy:a.y});},scale:function(a,b){if(arguments.length>1){return new m.Matrix2D({xx:a,yy:b});}if(typeof a=="number"){return new m.Matrix2D({xx:a,yy:a});}return new m.Matrix2D({xx:a.x,yy:a.y});},rotate:function(_212){var c=Math.cos(_212);var s=Math.sin(_212);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_213){return m.rotate(m._degToRad(_213));},skewX:function(_214){return new m.Matrix2D({xy:Math.tan(_214)});},skewXg:function(_215){return m.skewX(m._degToRad(_215));},skewY:function(_216){return new m.Matrix2D({yx:Math.tan(_216)});},skewYg:function(_217){return m.skewY(m._degToRad(_217));},reflect:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=2*a*b/n2;return new m.Matrix2D({xx:2*a2/n2-1,xy:xy,yx:xy,yy:2*b2/n2-1});},project:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=a*b/n2;return new m.Matrix2D({xx:a2/n2,xy:xy,yx:xy,yy:b2/n2});},normalize:function(_218){return (_218 instanceof m.Matrix2D)?_218:new m.Matrix2D(_218);},clone:function(_219){var obj=new m.Matrix2D();for(var i in _219){if(typeof (_219[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_219[i]){obj[i]=_219[i];}}return obj;},invert:function(_21a){var M=m.normalize(_21a),D=M.xx*M.yy-M.xy*M.yx,M=new m.Matrix2D({xx:M.yy/D,xy:-M.xy/D,yx:-M.yx/D,yy:M.xx/D,dx:(M.xy*M.dy-M.yy*M.dx)/D,dy:(M.yx*M.dx-M.xx*M.dy)/D});return M;},_multiplyPoint:function(_21b,x,y){return {x:_21b.xx*x+_21b.xy*y+_21b.dx,y:_21b.yx*x+_21b.yy*y+_21b.dy};},multiplyPoint:function(_21c,a,b){var M=m.normalize(_21c);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_21d){var M=m.normalize(_21d);for(var i=1;i<arguments.length;++i){var l=M,r=m.normalize(arguments[i]);M=new m.Matrix2D();M.xx=l.xx*r.xx+l.xy*r.yx;M.xy=l.xx*r.xy+l.xy*r.yy;M.yx=l.yx*r.xx+l.yy*r.yx;M.yy=l.yx*r.xy+l.yy*r.yy;M.dx=l.xx*r.dx+l.xy*r.dy+l.dx;M.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}return M;},_sandwich:function(_21e,x,y){return m.multiply(m.translate(x,y),_21e,m.translate(-x,-y));},scaleAt:function(a,b,c,d){switch(arguments.length){case 4:return m._sandwich(m.scale(a,b),c,d);case 3:if(typeof c=="number"){return m._sandwich(m.scale(a),b,c);}return m._sandwich(m.scale(a,b),c.x,c.y);}return m._sandwich(m.scale(a),b.x,b.y);},rotateAt:function(_21f,a,b){if(arguments.length>2){return m._sandwich(m.rotate(_21f),a,b);}return m._sandwich(m.rotate(_21f),a.x,a.y);},rotategAt:function(_220,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_220),a,b);}return m._sandwich(m.rotateg(_220),a.x,a.y);},skewXAt:function(_221,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_221),a,b);}return m._sandwich(m.skewX(_221),a.x,a.y);},skewXgAt:function(_222,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_222),a,b);}return m._sandwich(m.skewXg(_222),a.x,a.y);},skewYAt:function(_223,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_223),a,b);}return m._sandwich(m.skewY(_223),a.x,a.y);},skewYgAt:function(_224,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_224),a,b);}return m._sandwich(m.skewYg(_224),a.x,a.y);}});})();dojox.gfx.Matrix2D=dojox.gfx.matrix.Matrix2D;}if(!dojo._hasResource["dojox.gfx._base"]){dojo._hasResource["dojox.gfx._base"]=true;dojo.provide("dojox.gfx._base");(function(){var g=dojox.gfx,b=g._base;g._hasClass=function(node,_225){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_225+" ")>=0;};g._addClass=function(node,_226){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_226+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_226);}};g._removeClass=function(node,_227){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_227+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _228={"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.create("div",{style:{position:"absolute",left:"0",top:"-100px",width:"30px",height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},dojo.body());for(var p in _228){div.style.fontSize=p;_228[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);return _228;};var _229=null;b._getCachedFontMeasurements=function(_22a){if(_22a||!_229){_229=b._getFontMeasurements();}return _229;};var _22b=null,_22c={};b._getTextBox=function(text,_22d,_22e){var m,s,al=arguments.length;if(!_22b){_22b=dojo.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},dojo.body());}m=_22b;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_22d){for(var i in _22d){if(i in _22c){continue;}s[i]=_22d[i];}}if(al>2&&_22e){m.className=_22e;}m.innerHTML=text;if(m["getBoundingClientRect"]){var bcr=m.getBoundingClientRect();return {l:bcr.left,t:bcr.top,w:bcr.width||(bcr.right-bcr.left),h:bcr.height||(bcr.bottom-bcr.top)};}else{return dojo.marginBox(m);}};var _22f=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++_22f);}while(dojo.byId(id));return id;};})();dojo.mixin(dojox.gfx,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",x:0,y:0,text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultStroke:{type:"stroke",color:"black",style:"solid",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",x:0,y:0,width:0,height:0,src:""},defaultFont:{type:"font",style:"normal",variant:"normal",weight:"normal",size:"10pt",family:"serif"},getDefault:(function(){var _230={};return function(type){var t=_230[type];if(t){return new t();}t=_230[type]=new Function;t.prototype=dojox.gfx["default"+type];return new t();};})(),normalizeColor:function(_231){return (_231 instanceof dojo.Color)?_231:new dojo.Color(_231);},normalizeParameters:function(_232,_233){if(_233){var _234={};for(var x in _232){if(x in _233&&!(x in _234)){_232[x]=_233[x];}}}return _232;},makeParameters:function(_235,_236){if(!_236){return dojo.delegate(_235);}var _237={};for(var i in _235){if(!(i in _237)){_237[i]=dojo.clone((i in _236)?_236[i]:_235[i]);}}return _237;},formatNumber:function(x,_238){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _239=val.indexOf(".");if(_239>=0&&val.length-_239>5){val=x.toFixed(4);}}if(x<0){return val;}return _238?" "+val:val;},makeFontString:function(font){return font.style+" "+font.variant+" "+font.weight+" "+font.size+" "+font.family;},splitFontString:function(str){var font=dojox.gfx.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}font.style=t[0];font.variant=t[1];font.weight=t[2];var i=t[3].indexOf("/");font.size=i<0?t[3]:t[3].substring(0,i);var j=4;if(i<0){if(t[4]=="/"){j=6;}else{if(t[4].charAt(0)=="/"){j=5;}}}if(j<t.length){font.family=t.slice(j).join(" ");}}while(false);return font;},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return dojox.gfx._base._getCachedFontMeasurements()["12pt"]/12;},pt2px:function(len){return len*dojox.gfx.px_in_pt();},px2pt:function(len){return len/dojox.gfx.px_in_pt();},normalizedLength:function(len){if(len.length==0){return 0;}if(len.length>2){var _23a=dojox.gfx.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_23a;case "in":return val*72*_23a;case "pc":return val*12*_23a;case "mm":return val*dojox.gfx.mm_in_pt*_23a;case "cm":return val*dojox.gfx.cm_in_pt*_23a;}}return parseFloat(len);},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-Za-z])|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,equalSources:function(a,b){return a&&b&&a==b;},switchTo:function(_23b){var ns=dojox.gfx[_23b];if(ns){dojo.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface"],function(name){dojox.gfx[name]=ns[name];});}}});}if(!dojo._hasResource["dojox.gfx"]){dojo._hasResource["dojox.gfx"]=true;dojo.provide("dojox.gfx");dojo.loadInit(function(){var gfx=dojo.getObject("dojox.gfx",true),sl,flag,_23c;while(!gfx.renderer){if(dojo.config.forceGfxRenderer){dojox.gfx.renderer=dojo.config.forceGfxRenderer;break;}var _23d=(typeof dojo.config.gfxRenderer=="string"?dojo.config.gfxRenderer:"svg,vml,canvas,silverlight").split(",");for(var i=0;i<_23d.length;++i){switch(_23d[i]){case "svg":if("SVGAngle" in dojo.global){dojox.gfx.renderer="svg";}break;case "vml":if(dojo.isIE){dojox.gfx.renderer="vml";}break;case "silverlight":try{if(dojo.isIE){sl=new ActiveXObject("AgControl.AgControl");if(sl&&sl.IsVersionSupported("1.0")){flag=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){flag=true;}}}catch(e){flag=false;}finally{sl=null;}if(flag){dojox.gfx.renderer="silverlight";}break;case "canvas":if(dojo.global.CanvasRenderingContext2D){dojox.gfx.renderer="canvas";}break;}if(gfx.renderer){break;}}break;}if(dojo.config.isDebug){}if(gfx[gfx.renderer]){gfx.switchTo(gfx.renderer);}else{gfx.loadAndSwitch=gfx.renderer;dojo["require"]("dojox.gfx."+gfx.renderer);}});}if(!dojo._hasResource["dojox.lang.functional.lambda"]){dojo._hasResource["dojox.lang.functional.lambda"]=true;dojo.provide("dojox.lang.functional.lambda");(function(){var df=dojox.lang.functional,_23e={};var _23f="ab".split(/a*/).length>1?String.prototype.split:function(sep){var r=this.split.call(this,sep),m=sep.exec(this);if(m&&m.index==0){r.unshift("");}return r;};var _240=function(s){var args=[],_241=_23f.call(s,/\s*->\s*/m);if(_241.length>1){while(_241.length){s=_241.pop();args=_241.pop().split(/\s*,\s*|\s+/m);if(_241.length){_241.push("(function("+args+"){return ("+s+")})");}}}else{if(s.match(/\b_\b/)){args=["_"];}else{var l=s.match(/^\s*(?:[+*\/%&|\^\.=<>]|!=)/m),r=s.match(/[+\-*\/%&|\^\.=<>!]\s*$/m);if(l||r){if(l){args.push("$1");s="$1"+s;}if(r){args.push("$2");s=s+"$2";}}else{var vars=s.replace(/(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|this|true|false|null|undefined|typeof|instanceof|in|delete|new|void|arguments|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|isFinite|isNaN|parseFloat|parseInt|unescape|dojo|dijit|dojox|window|document|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g,"").match(/([a-z_$][a-z_$\d]*)/gi)||[],t={};dojo.forEach(vars,function(v){if(!(v in t)){args.push(v);t[v]=1;}});}}}return {args:args,body:s};};var _242=function(a){return a.length?function(){var i=a.length-1,x=df.lambda(a[i]).apply(this,arguments);for(--i;i>=0;--i){x=df.lambda(a[i]).call(this,x);}return x;}:function(x){return x;};};dojo.mixin(df,{rawLambda:function(s){return _240(s);},buildLambda:function(s){s=_240(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _242(s);}if(s in _23e){return _23e[s];}s=_240(s);return _23e[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_23e={};}});})();}if(!dojo._hasResource["dojox.lang.functional.array"]){dojo._hasResource["dojox.lang.functional.array"]=true;dojo.provide("dojox.lang.functional.array");(function(){var d=dojo,df=dojox.lang.functional,_243={};d.mixin(df,{filter:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t=[],v,i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){v=a.next();if(f.call(o,v,i++,a)){t.push(v);}}}else{for(i in a){if(!(i in _243)){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}}}return t;},forEach:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();f.call(o,a.next(),i++,a)){}}else{for(i in a){if(!(i in _243)){f.call(o,a[i],i,a);}}}}return o;},map:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,i;if(d.isArray(a)){t=new Array(n=a.length);for(i=0;i<n;t[i]=f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[];for(i=0;a.hasNext();t.push(f.call(o,a.next(),i++,a))){}}else{t=[];for(i in a){if(!(i in _243)){t.push(f.call(o,a[i],i,a));}}}}return t;},every:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){if(!f.call(o,a[i],i,a)){return false;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(!f.call(o,a.next(),i++,a)){return false;}}}else{for(i in a){if(!(i in _243)){if(!f.call(o,a[i],i,a)){return false;}}}}}return true;},some:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){if(f.call(o,a[i],i,a)){return true;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(f.call(o,a.next(),i++,a)){return true;}}}else{for(i in a){if(!(i in _243)){if(f.call(o,a[i],i,a)){return true;}}}}}return false;}});})();}if(!dojo._hasResource["dojox.lang.functional.object"]){dojo._hasResource["dojox.lang.functional.object"]=true;dojo.provide("dojox.lang.functional.object");(function(){var d=dojo,df=dojox.lang.functional,_244={};d.mixin(df,{keys:function(obj){var t=[];for(var i in obj){if(!(i in _244)){t.push(i);}}return t;},values:function(obj){var t=[];for(var i in obj){if(!(i in _244)){t.push(obj[i]);}}return t;},filterIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},v,i;for(i in obj){if(!(i in _244)){v=obj[i];if(f.call(o,v,i,obj)){t[i]=v;}}}return t;},forIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);for(var i in obj){if(!(i in _244)){f.call(o,obj[i],i,obj);}}return o;},mapIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},i;for(i in obj){if(!(i in _244)){t[i]=f.call(o,obj[i],i,obj);}}return t;}});})();}if(!dojo._hasResource["dojox.lang.functional"]){dojo._hasResource["dojox.lang.functional"]=true;dojo.provide("dojox.lang.functional");}if(!dojo._hasResource["dojox.lang.functional.fold"]){dojo._hasResource["dojox.lang.functional.fold"]=true;dojo.provide("dojox.lang.functional.fold");(function(){var d=dojo,df=dojox.lang.functional,_245={};d.mixin(df,{foldl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}else{for(i in a){if(!(i in _245)){z=f.call(o,z,a[i],i,a);}}}}return z;},foldl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var z,i,n;if(d.isArray(a)){z=a[0];for(i=1,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){z=a.next();for(i=1;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}}else{var _246=true;for(i in a){if(!(i in _245)){if(_246){z=a[i];_246=false;}else{z=f.call(o,z,a[i],i,a);}}}}}return z;},foldr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},foldr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,z=a[n-1],i=n-1;for(;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},reduce:function(a,f,z){return arguments.length<3?df.foldl1(a,f):df.foldl(a,f,z);},reduceRight:function(a,f,z){return arguments.length<3?df.foldr1(a,f):df.foldr(a,f,z);},unfold:function(pr,f,g,z,o){o=o||d.global;f=df.lambda(f);g=df.lambda(g);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(f.call(o,z)),z=g.call(o,z)){}return t;}});})();}if(!dojo._hasResource["dojox.lang.functional.reversed"]){dojo._hasResource["dojox.lang.functional.reversed"]=true;dojo.provide("dojox.lang.functional.reversed");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{filterRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t=[],v,i=a.length-1;for(;i>=0;--i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}return t;},forEachRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;f.call(o,a[i],i,a),--i){}},mapRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n),i=n-1,j=0;for(;i>=0;t[j++]=f.call(o,a[i],i,a),--i){}return t;},everyRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(!f.call(o,a[i],i,a)){return false;}}return true;},someRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(f.call(o,a[i],i,a)){return true;}}return false;}});})();}if(!dojo._hasResource["dojox.charting.Element"]){dojo._hasResource["dojox.charting.Element"]=true;dojo.provide("dojox.charting.Element");dojo.declare("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:true,constructor:function(_247){this.chart=_247;this.group=null;this.htmlElements=[];this.dirty=true;this.trailingSymbol="...";this._events=[];},createGroup:function(_248){if(!_248){_248=this.chart.surface;}if(!this.group){this.group=_248.createGroup();}return this;},purgeGroup:function(){this.destroyHtmlElements();if(this.group){this.group.clear();this.group.removeShape();this.group=null;}this.dirty=true;if(this._events.length){dojo.forEach(this._events,function(item){item.shape.disconnect(item.handle);});this._events=[];}return this;},cleanGroup:function(_249){this.destroyHtmlElements();if(!_249){_249=this.chart.surface;}if(this.group){this.group.clear();}else{this.group=_249.createGroup();}this.dirty=true;return this;},destroyHtmlElements:function(){if(this.htmlElements.length){dojo.forEach(this.htmlElements,dojo.destroy);this.htmlElements=[];}},destroy:function(){this.purgeGroup();},getTextWidth:function(s,font){return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},getTextWithLimitLength:function(s,font,_24a,_24b){if(!s||s.length<=0){return {text:"",truncated:_24b||false};}if(!_24a||_24a<=0){return {text:s,truncated:_24b||false};}var _24c=2,_24d=0.618,_24e=s.substring(0,1)+this.trailingSymbol,_24f=this.getTextWidth(_24e,font);if(_24a<=_24f){return {text:_24e,truncated:true};}var _250=this.getTextWidth(s,font);if(_250<=_24a){return {text:s,truncated:_24b||false};}else{var _251=0,end=s.length;while(_251<end){if(end-_251<=_24c){while(this.getTextWidth(s.substring(0,_251)+this.trailingSymbol,font)>_24a){_251-=1;}return {text:(s.substring(0,_251)+this.trailingSymbol),truncated:true};}var _252=_251+Math.round((end-_251)*_24d),_253=this.getTextWidth(s.substring(0,_252),font);if(_253<_24a){_251=_252;end=end;}else{_251=_251;end=_252;}}}},getTextWithLimitCharCount:function(s,font,_254,_255){if(!s||s.length<=0){return {text:"",truncated:_255||false};}if(!_254||_254<=0||s.length<=_254){return {text:s,truncated:_255||false};}return {text:s.substring(0,_254)+this.trailingSymbol,truncated:true};},_plotFill:function(fill,dim,_256){if(!fill||!fill.type||!fill.space){return fill;}var _257=fill.space;switch(fill.type){case "linear":if(_257==="plot"||_257==="shapeX"||_257==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_257;if(_257==="plot"||_257==="shapeX"){var span=dim.height-_256.t-_256.b;fill.y1=_256.t+span*fill.y1/100;fill.y2=_256.t+span*fill.y2/100;}if(_257==="plot"||_257==="shapeY"){var span=dim.width-_256.l-_256.r;fill.x1=_256.l+span*fill.x1/100;fill.x2=_256.l+span*fill.x2/100;}}break;case "radial":if(_257==="plot"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_257;var _258=dim.width-_256.l-_256.r,_259=dim.height-_256.t-_256.b;fill.cx=_256.l+_258*fill.cx/100;fill.cy=_256.t+_259*fill.cy/100;fill.r=fill.r*Math.sqrt(_258*_258+_259*_259)/200;}break;case "pattern":if(_257==="plot"||_257==="shapeX"||_257==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_257;if(_257==="plot"||_257==="shapeX"){var span=dim.height-_256.t-_256.b;fill.y=_256.t+span*fill.y/100;fill.height=span*fill.height/100;}if(_257==="plot"||_257==="shapeY"){var span=dim.width-_256.l-_256.r;fill.x=_256.l+span*fill.x/100;fill.width=span*fill.width/100;}}break;}return fill;},_shapeFill:function(fill,bbox){if(!fill||!fill.space){return fill;}var _25a=fill.space;switch(fill.type){case "linear":if(_25a==="shape"||_25a==="shapeX"||_25a==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_25a;if(_25a==="shape"||_25a==="shapeX"){var span=bbox.width;fill.x1=bbox.x+span*fill.x1/100;fill.x2=bbox.x+span*fill.x2/100;}if(_25a==="shape"||_25a==="shapeY"){var span=bbox.height;fill.y1=bbox.y+span*fill.y1/100;fill.y2=bbox.y+span*fill.y2/100;}}break;case "radial":if(_25a==="shape"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_25a;fill.cx=bbox.x+bbox.width/2;fill.cy=bbox.y+bbox.height/2;fill.r=fill.r*bbox.width/200;}break;case "pattern":if(_25a==="shape"||_25a==="shapeX"||_25a==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_25a;if(_25a==="shape"||_25a==="shapeX"){var span=bbox.width;fill.x=bbox.x+span*fill.x/100;fill.width=span*fill.width/100;}if(_25a==="shape"||_25a==="shapeY"){var span=bbox.height;fill.y=bbox.y+span*fill.y/100;fill.height=span*fill.height/100;}}break;}return fill;},_pseudoRadialFill:function(fill,_25b,_25c,_25d,end){if(!fill||fill.type!=="radial"||fill.space!=="shape"){return fill;}var _25e=fill.space;fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_25e;if(arguments.length<4){fill.cx=_25b.x;fill.cy=_25b.y;fill.r=fill.r*_25c/100;return fill;}var _25f=arguments.length<5?_25d:(end+_25d)/2;return {type:"linear",x1:_25b.x,y1:_25b.y,x2:_25b.x+fill.r*_25c*Math.cos(_25f)/100,y2:_25b.y+fill.r*_25c*Math.sin(_25f)/100,colors:fill.colors};return fill;}});}if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");dojo.getObject("colors",true,dojo);(function(){var _260=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_261,obj){var m=_261.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}return dojo.colorFromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_260(m1,m2,H+1/3)*256,_260(m1,m2,H)*256,_260(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _262=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_262(t.r,0,255));t.g=Math.round(_262(t.g,0,255));t.b=Math.round(_262(t.b,0,255));t.a=_262(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojox.color._base"]){dojo._hasResource["dojox.color._base"]=true;dojo.provide("dojox.color._base");dojox.color.Color=dojo.Color;dojox.color.blend=dojo.blendColors;dojox.color.fromRgb=dojo.colorFromRgb;dojox.color.fromHex=dojo.colorFromHex;dojox.color.fromArray=dojo.colorFromArray;dojox.color.fromString=dojo.colorFromString;dojox.color.greyscale=dojo.colors.makeGrey;dojo.mixin(dojox.color,{fromCmy:function(cyan,_263,_264){if(dojo.isArray(cyan)){_263=cyan[1],_264=cyan[2],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_263=cyan.m,_264=cyan.y,cyan=cyan.c;}}cyan/=100,_263/=100,_264/=100;var r=1-cyan,g=1-_263,b=1-_264;return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_265,_266,_267){if(dojo.isArray(cyan)){_265=cyan[1],_266=cyan[2],_267=cyan[3],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_265=cyan.m,_266=cyan.y,_267=cyan.b,cyan=cyan.c;}}cyan/=100,_265/=100,_266/=100,_267/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_267)+_267);g=1-Math.min(1,_265*(1-_267)+_267);b=1-Math.min(1,_266*(1-_267)+_267);return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_268,_269){if(dojo.isArray(hue)){_268=hue[1],_269=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_268=hue.s,_269=hue.l,hue=hue.h;}}_268/=100;_269/=100;while(hue<0){hue+=360;}while(hue>=360){hue-=360;}var r,g,b;if(hue<120){r=(120-hue)/60,g=hue/60,b=0;}else{if(hue<240){r=0,g=(240-hue)/60,b=(hue-120)/60;}else{r=(hue-240)/60,g=0,b=(360-hue)/60;}}r=2*_268*Math.min(r,1)+(1-_268);g=2*_268*Math.min(g,1)+(1-_268);b=2*_268*Math.min(b,1)+(1-_268);if(_269<0.5){r*=_269,g*=_269,b*=_269;}else{r=(1-_269)*r+2*_269-1;g=(1-_269)*g+2*_269-1;b=(1-_269)*b+2*_269-1;}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsv:function(hue,_26a,_26b){if(dojo.isArray(hue)){_26a=hue[1],_26b=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_26a=hue.s,_26b=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_26a/=100;_26b/=100;var r,g,b;if(_26a==0){r=_26b,b=_26b,g=_26b;}else{var _26c=hue/60,i=Math.floor(_26c),f=_26c-i;var p=_26b*(1-_26a);var q=_26b*(1-(_26a*f));var t=_26b*(1-(_26a*(1-f)));switch(i){case 0:r=_26b,g=t,b=p;break;case 1:r=q,g=_26b,b=p;break;case 2:r=p,g=_26b,b=t;break;case 3:r=p,g=q,b=_26b;break;case 4:r=t,g=p,b=_26b;break;case 5:r=_26b,g=p,b=q;break;}}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});}});dojo.extend(dojox.color.Color,{toCmy:function(){var cyan=1-(this.r/255),_26d=1-(this.g/255),_26e=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_26d*100),y:Math.round(_26e*100)};},toCmyk:function(){var cyan,_26f,_270,_271;var r=this.r/255,g=this.g/255,b=this.b/255;_271=Math.min(1-r,1-g,1-b);cyan=(1-r-_271)/(1-_271);_26f=(1-g-_271)/(1-_271);_270=(1-b-_271)/(1-_271);return {c:Math.round(cyan*100),m:Math.round(_26f*100),y:Math.round(_270*100),b:Math.round(_271*100)};},toHsl:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _272=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_272/((l<0.5)?(2*l):(2-2*l));}if(_272>0){if(max==r&&max!=g){h+=(g-b)/_272;}if(max==g&&max!=b){h+=(2+(b-r)/_272);}if(max==b&&max!=r){h+=(4+(r-g)/_272);}h*=60;}return {h:h,s:Math.round(s*100),l:Math.round(l*100)};},toHsv:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _273=max-min;var h=null,s=(max==0)?0:(_273/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_273;}else{if(g==max){h=120+60*(b-r)/_273;}else{h=240+60*(r-g)/_273;}}if(h<0){h+=360;}}return {h:h,s:Math.round(s*100),v:Math.round(max*100)};}});}if(!dojo._hasResource["dojox.color"]){dojo._hasResource["dojox.color"]=true;dojo.provide("dojox.color");}if(!dojo._hasResource["dojox.color.Palette"]){dojo._hasResource["dojox.color.Palette"]=true;dojo.provide("dojox.color.Palette");(function(){var dxc=dojox.color;dxc.Palette=function(base){this.colors=[];if(base instanceof dojox.color.Palette){this.colors=base.colors.slice(0);}else{if(base instanceof dojox.color.Color){this.colors=[null,null,base,null,null];}else{if(dojo.isArray(base)){this.colors=dojo.map(base.slice(0),function(item){if(dojo.isString(item)){return new dojox.color.Color(item);}return item;});}else{if(dojo.isString(base)){this.colors=[null,null,new dojox.color.Color(base),null,null];}}}}};function _274(p,_275,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var r=(_275=="dr")?item.r+val:item.r,g=(_275=="dg")?item.g+val:item.g,b=(_275=="db")?item.b+val:item.b,a=(_275=="da")?item.a+val:item.a;ret.colors.push(new dojox.color.Color({r:Math.min(255,Math.max(0,r)),g:Math.min(255,Math.max(0,g)),b:Math.min(255,Math.max(0,b)),a:Math.min(1,Math.max(0,a))}));});return ret;};function tCMY(p,_276,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmy(),c=(_276=="dc")?o.c+val:o.c,m=(_276=="dm")?o.m+val:o.m,y=(_276=="dy")?o.y+val:o.y;ret.colors.push(dojox.color.fromCmy(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y))));});return ret;};function _277(p,_278,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmyk(),c=(_278=="dc")?o.c+val:o.c,m=(_278=="dm")?o.m+val:o.m,y=(_278=="dy")?o.y+val:o.y,k=(_278=="dk")?o.b+val:o.b;ret.colors.push(dojox.color.fromCmyk(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y)),Math.min(100,Math.max(0,k))));});return ret;};function tHSL(p,_279,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsl(),h=(_279=="dh")?o.h+val:o.h,s=(_279=="ds")?o.s+val:o.s,l=(_279=="dl")?o.l+val:o.l;ret.colors.push(dojox.color.fromHsl(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,l))));});return ret;};function tHSV(p,_27a,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsv(),h=(_27a=="dh")?o.h+val:o.h,s=(_27a=="ds")?o.s+val:o.s,v=(_27a=="dv")?o.v+val:o.v;ret.colors.push(dojox.color.fromHsv(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,v))));});return ret;};function _27b(val,low,high){return high-((high-val)*((high-low)/high));};dojo.extend(dxc.Palette,{transform:function(_27c){var fn=_274;if(_27c.use){var use=_27c.use.toLowerCase();if(use.indexOf("hs")==0){if(use.charAt(2)=="l"){fn=tHSL;}else{fn=tHSV;}}else{if(use.indexOf("cmy")==0){if(use.charAt(3)=="k"){fn=_277;}else{fn=tCMY;}}}}else{if("dc" in _27c||"dm" in _27c||"dy" in _27c){if("dk" in _27c){fn=_277;}else{fn=tCMY;}}else{if("dh" in _27c||"ds" in _27c){if("dv" in _27c){fn=tHSV;}else{fn=tHSL;}}}}var _27d=this;for(var p in _27c){if(p=="use"){continue;}_27d=fn(_27d,p,_27c[p]);}return _27d;},clone:function(){return new dxc.Palette(this);}});dojo.mixin(dxc.Palette,{generators:{analogous:function(args){var high=args.high||60,low=args.low||18,base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h=[(hsv.h+low+360)%360,(hsv.h+Math.round(low/2)+360)%360,hsv.h,(hsv.h-Math.round(high/2)+360)%360,(hsv.h-high+360)%360];var s1=Math.max(10,(hsv.s<=95)?hsv.s+5:(100-(hsv.s-95))),s2=(hsv.s>1)?hsv.s-1:21-hsv.s,v1=(hsv.v>=92)?hsv.v-9:Math.max(hsv.v+9,20),v2=(hsv.v<=90)?Math.max(hsv.v+5,20):(95+Math.ceil((hsv.v-90)/2)),s=[s1,s2,hsv.s,s1,s1],v=[v1,v2,hsv.v,v1,v2];return new dxc.Palette(dojo.map(h,function(hue,i){return dojox.color.fromHsv(hue,s[i],v[i]);}));},monochromatic:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var s1=(hsv.s-30>9)?hsv.s-30:hsv.s+30,s2=hsv.s,v1=_27b(hsv.v,20,100),v2=(hsv.v-20>20)?hsv.v-20:hsv.v+60,v3=(hsv.v-50>20)?hsv.v-50:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v3),base,dojox.color.fromHsv(hsv.h,s1,v3),dojox.color.fromHsv(hsv.h,s2,v2)]);},triadic:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=(hsv.h+57+360)%360,h2=(hsv.h-157+360)%360,s1=(hsv.s>20)?hsv.s-10:hsv.s+10,s2=(hsv.s>90)?hsv.s-10:hsv.s+10,s3=(hsv.s>95)?hsv.s-5:hsv.s+5,v1=(hsv.v-20>20)?hsv.v-20:hsv.v+20,v2=(hsv.v-30>20)?hsv.v-30:hsv.v+30,v3=(hsv.v-30>70)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(h1,s1,hsv.v),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h2,s2,v1),dojox.color.fromHsv(h2,s3,v3)]);},complementary:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,s1=Math.max(hsv.s-10,0),s2=_27b(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h1,s3,v2),dojox.color.fromHsv(h1,hsv.s,hsv.v)]);},splitComplementary:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,_27e=args.da||30,hsv=base.toHsv();var _27f=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_27f-_27e+360)%360,h2=(_27f+_27e)%360,s1=Math.max(hsv.s-10,0),s2=_27b(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v2),dojox.color.fromHsv(h2,hsv.s,hsv.v)]);},compound:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+18<360)?(hsv.h*2)+18:Math.floor(hsv.h/2)-18,h2=((hsv.h*2)+120<360)?(hsv.h*2)+120:Math.floor(hsv.h/2)-120,h3=((hsv.h*2)+99<360)?(hsv.h*2)+99:Math.floor(hsv.h/2)-99,s1=(hsv.s-40>10)?hsv.s-40:hsv.s+40,s2=(hsv.s-10>80)?hsv.s-10:hsv.s+10,s3=(hsv.s-25>10)?hsv.s-25:hsv.s+25,v1=(hsv.v-40>10)?hsv.v-40:hsv.v+40,v2=(hsv.v-20>80)?hsv.v-20:hsv.v+20,v3=Math.max(hsv.v,20);return new dxc.Palette([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v3),dojox.color.fromHsv(h3,s2,v2)]);},shades:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var s=(hsv.s==100&&hsv.v==0)?0:hsv.s,v1=(hsv.v-50>20)?hsv.v-50:hsv.v+30,v2=(hsv.v-25>=20)?hsv.v-25:hsv.v+55,v3=(hsv.v-75>=20)?hsv.v-75:hsv.v+5,v4=Math.max(hsv.v-10,20);return new dxc.Palette([new dojox.color.fromHsv(hsv.h,s,v1),new dojox.color.fromHsv(hsv.h,s,v2),base,new dojox.color.fromHsv(hsv.h,s,v3),new dojox.color.fromHsv(hsv.h,s,v4)]);}},generate:function(base,type){if(dojo.isFunction(type)){return type({base:base});}else{if(dxc.Palette.generators[type]){return dxc.Palette.generators[type]({base:base});}}throw new Error("dojox.color.Palette.generate: the specified generator ('"+type+"') does not exist.");}});})();}if(!dojo._hasResource["dojox.lang.utils"]){dojo._hasResource["dojox.lang.utils"]=true;dojo.provide("dojox.lang.utils");(function(){var _280={},du=dojox.lang.utils,opts=Object.prototype.toString;var _281=function(o){if(o){switch(opts.call(o)){case "[object Array]":return o.slice(0);case "[object Object]":return dojo.delegate(o);}}return o;};dojo.mixin(du,{coerceType:function(_282,_283){switch(typeof _282){case "number":return Number(eval("("+_283+")"));case "string":return String(_283);case "boolean":return Boolean(eval("("+_283+")"));}return eval("("+_283+")");},updateWithObject:function(_284,_285,conv){if(!_285){return _284;}for(var x in _284){if(x in _285&&!(x in _280)){var t=_284[x];if(t&&typeof t=="object"){du.updateWithObject(t,_285[x],conv);}else{_284[x]=conv?du.coerceType(t,_285[x]):_281(_285[x]);}}}return _284;},updateWithPattern:function(_286,_287,_288,conv){if(!_287||!_288){return _286;}for(var x in _288){if(x in _287&&!(x in _280)){_286[x]=conv?du.coerceType(_288[x],_287[x]):_281(_287[x]);}}return _286;},merge:function(_289,_28a){if(_28a){var _28b=opts.call(_289),_28c=opts.call(_28a),t,i,l,m;switch(_28c){case "[object Array]":if(_28c==_28b){t=new Array(Math.max(_289.length,_28a.length));for(i=0,l=t.length;i<l;++i){t[i]=du.merge(_289[i],_28a[i]);}return t;}return _28a.slice(0);case "[object Object]":if(_28c==_28b&&_289){t=dojo.delegate(_289);for(i in _28a){if(i in _289){l=_289[i];m=_28a[i];if(m!==l){t[i]=du.merge(l,m);}}else{t[i]=dojo.clone(_28a[i]);}}return t;}return dojo.clone(_28a);}}return _28a;}});})();}if(!dojo._hasResource["dojox.gfx.gradutils"]){dojo._hasResource["dojox.gfx.gradutils"]=true;dojo.provide("dojox.gfx.gradutils");(function(){var d=dojo,m=dojox.gfx.matrix,C=d.Color;function _28d(o,c){if(o<=0){return c[0].color;}var len=c.length;if(o>=1){return c[len-1].color;}for(var i=0;i<len;++i){var stop=c[i];if(stop.offset>=o){if(i){var prev=c[i-1];return d.blendColors(new C(prev.color),new C(stop.color),(o-prev.offset)/(stop.offset-prev.offset));}return stop.color;}}return c[len-1].color;};dojox.gfx.gradutils.getColor=function(fill,pt){var o;if(fill){switch(fill.type){case "linear":var _28e=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_28f=m.rotate(-_28e),_290=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_290,pt),pf1=m.multiplyPoint(_290,fill.x1,fill.y1),pf2=m.multiplyPoint(_290,fill.x2,fill.y2),_291=m.multiplyPoint(_28f,pf2.x-pf1.x,pf2.y-pf1.y).x,o=m.multiplyPoint(_28f,p.x-pf1.x,p.y-pf1.y).x/_291;break;case "radial":var dx=pt.x-fill.cx,dy=pt.y-fill.cy,o=Math.sqrt(dx*dx+dy*dy)/fill.r;break;}return _28d(o,fill.colors);}return new C(fill||[0,0,0,0]);};dojox.gfx.gradutils.reverse=function(fill){if(fill){switch(fill.type){case "linear":case "radial":fill=dojo.delegate(fill);if(fill.colors){var c=fill.colors,l=c.length,i=0,stop,n=fill.colors=new Array(c.length);for(;i<l;++i){stop=c[i];n[i]={offset:1-stop.offset,color:stop.color};}n.sort(function(a,b){return a.offset-b.offset;});}break;}}return fill;};})();}if(!dojo._hasResource["dojox.charting.Theme"]){dojo._hasResource["dojox.charting.Theme"]=true;dojo.provide("dojox.charting.Theme");dojo.declare("dojox.charting.Theme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(_292){_292=_292||{};var def=dojox.charting.Theme.defaultTheme;dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){this[name]=dojo.delegate(def[name],_292[name]);},this);if(_292.seriesThemes&&_292.seriesThemes.length){this.colors=null;this.seriesThemes=_292.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_292.colors||dojox.charting.Theme.defaultColors).slice(0);}this.markerThemes=null;if(_292.markerThemes&&_292.markerThemes.length){this.markerThemes=_292.markerThemes.slice(0);}this.markers=_292.markers?dojo.clone(_292.markers):dojo.delegate(dojox.charting.Theme.defaultMarkers);this.noGradConv=_292.noGradConv;this.noRadialConv=_292.noRadialConv;if(_292.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _293=new dojox.charting.Theme({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv});dojo.forEach(["clone","clear","next","skip","addMixin","post","getTick"],function(name){if(this.hasOwnProperty(name)){_293[name]=this[name];}},this);return _293;},clear:function(){this._current=0;},next:function(_294,_295,_296){var _297=dojox.lang.utils.merge,_298,_299;if(this.colors){_298=dojo.delegate(this.series);_299=dojo.delegate(this.marker);var _29a=new dojo.Color(this.colors[this._current%this.colors.length]),old;if(_298.stroke&&_298.stroke.color){_298.stroke=dojo.delegate(_298.stroke);old=new dojo.Color(_298.stroke.color);_298.stroke.color=new dojo.Color(_29a);_298.stroke.color.a=old.a;}else{_298.stroke={color:_29a};}if(_299.stroke&&_299.stroke.color){_299.stroke=dojo.delegate(_299.stroke);old=new dojo.Color(_299.stroke.color);_299.stroke.color=new dojo.Color(_29a);_299.stroke.color.a=old.a;}else{_299.stroke={color:_29a};}if(!_298.fill||_298.fill.type){_298.fill=_29a;}else{old=new dojo.Color(_298.fill);_298.fill=new dojo.Color(_29a);_298.fill.a=old.a;}if(!_299.fill||_299.fill.type){_299.fill=_29a;}else{old=new dojo.Color(_299.fill);_299.fill=new dojo.Color(_29a);_299.fill.a=old.a;}}else{_298=this.seriesThemes?_297(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_299=this.markerThemes?_297(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_298;}var _29b=_299&&_299.symbol||this._markers[this._current%this._markers.length];var _29c={series:_298,marker:_299,symbol:_29b};++this._current;if(_295){_29c=this.addMixin(_29c,_294,_295);}if(_296){_29c=this.post(_29c,_294);}return _29c;},skip:function(){++this._current;},addMixin:function(_29d,_29e,_29f,_2a0){if(dojo.isArray(_29f)){dojo.forEach(_29f,function(m){_29d=this.addMixin(_29d,_29e,m);},this);}else{var t={};if("color" in _29f){if(_29e=="line"||_29e=="area"){dojo.setObject("series.stroke.color",_29f.color,t);dojo.setObject("marker.stroke.color",_29f.color,t);}else{dojo.setObject("series.fill",_29f.color,t);}}dojo.forEach(["stroke","outline","shadow","fill","font","fontColor","labelWiring"],function(name){var _2a1="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_2a1 in _29f;if(name in _29f){dojo.setObject("series."+name,_29f[name],t);if(!b){dojo.setObject("marker."+name,_29f[name],t);}}if(b){dojo.setObject("marker."+name,_29f[_2a1],t);}});if("marker" in _29f){t.symbol=_29f.marker;}_29d=dojox.lang.utils.merge(_29d,t);}if(_2a0){_29d=this.post(_29d,_29e);}return _29d;},post:function(_2a2,_2a3){var fill=_2a2.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_2a3=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_2a3=="slice"||_2a3=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dojox.lang.utils.merge(_2a2,{series:{fill:t}});}}return _2a2;},getTick:function(name,_2a4){var tick=this.axis.tick,_2a5=name+"Tick";merge=dojox.lang.utils.merge;if(tick){if(this.axis[_2a5]){tick=merge(tick,this.axis[_2a5]);}}else{tick=this.axis[_2a5];}if(_2a4){if(tick){if(_2a4[_2a5]){tick=merge(tick,_2a4[_2a5]);}}else{tick=_2a4[_2a5];}}return tick;},inspectObjects:function(f){dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){f(this[name]);},this);if(this.seriesThemes){dojo.forEach(this.seriesThemes,f);}if(this.markerThemes){dojo.forEach(this.markerThemes,f);}},reverseFills:function(){this.inspectObjects(function(o){if(o&&o.fill){o.fill=dojox.gfx.gradutils.reverse(o.fill);}});},addMarker:function(name,_2a6){this.markers[name]=_2a6;this._buildMarkerArray();},setMarkers:function(obj){this.markers=obj;this._buildMarkerArray();},_buildMarkerArray:function(){this._markers=[];for(var p in this.markers){this._markers.push(this.markers[p]);}}});dojo.mixin(dojox.charting.Theme,{defaultMarkers:{CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"},defaultColors:["#54544c","#858e94","#6e767a","#948585","#474747"],defaultTheme:{chart:{stroke:null,fill:"white",pageStyle:null,titleGap:20,titlePos:"top",titleFont:"normal normal bold 14pt Tahoma",titleFontColor:"#333"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333",titleGap:15,titleFont:"normal normal normal 11pt Tahoma",titleFontColor:"#333",titleOrientation:"axis"},majorTick:{width:1,length:6},minorTick:{width:0.8,length:3},microTick:{width:0.5,length:1}},series:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000",labelWiring:{width:1,color:"#ccc"}},marker:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000"}},defineColors:function(_2a7){_2a7=_2a7||{};var c=[],n=_2a7.num||5;if(_2a7.colors){var l=_2a7.colors.length;for(var i=0;i<n;i++){c.push(_2a7.colors[i%l]);}return c;}if(_2a7.hue){var s=_2a7.saturation||100;var st=_2a7.low||30;var end=_2a7.high||90;var l=(end+st)/2;return dojox.color.Palette.generate(dojox.color.fromHsv(_2a7.hue,s,l),"monochromatic").colors;}if(_2a7.generator){return dojox.color.Palette.generate(_2a7.base,_2a7.generator).colors;}return c;},generateGradient:function(_2a8,_2a9,_2aa){var fill=dojo.delegate(_2a8);fill.colors=[{offset:0,color:_2a9},{offset:1,color:_2aa}];return fill;},generateHslColor:function(_2ab,_2ac){_2ab=new dojox.color.Color(_2ab);var hsl=_2ab.toHsl(),_2ad=dojox.color.fromHsl(hsl.h,hsl.s,_2ac);_2ad.a=_2ab.a;return _2ad;},generateHslGradient:function(_2ae,_2af,_2b0,_2b1){_2ae=new dojox.color.Color(_2ae);var hsl=_2ae.toHsl(),_2b2=dojox.color.fromHsl(hsl.h,hsl.s,_2b0),_2b3=dojox.color.fromHsl(hsl.h,hsl.s,_2b1);_2b2.a=_2b3.a=_2ae.a;return dojox.charting.Theme.generateGradient(_2af,_2b2,_2b3);}});}if(!dojo._hasResource["dojox.charting.Series"]){dojo._hasResource["dojox.charting.Series"]=true;dojo.provide("dojox.charting.Series");dojo.declare("dojox.charting.Series",dojox.charting.Element,{constructor:function(_2b4,data,_2b5){dojo.mixin(this,_2b5);if(typeof this.plot!="string"){this.plot="default";}this.update(data);},clear:function(){this.dyn={};},update:function(data){if(dojo.isArray(data)){this.data=data;}else{this.source=data;this.data=this.source.data;if(this.source.setSeriesObject){this.source.setSeriesObject(this);}}this.dirty=true;this.clear();}});}if(!dojo._hasResource["dojox.charting.axis2d.common"]){dojo._hasResource["dojox.charting.axis2d.common"]=true;dojo.provide("dojox.charting.axis2d.common");(function(){var g=dojox.gfx;var _2b6=function(s){s.marginLeft="0px";s.marginTop="0px";s.marginRight="0px";s.marginBottom="0px";s.paddingLeft="0px";s.paddingTop="0px";s.paddingRight="0px";s.paddingBottom="0px";s.borderLeftWidth="0px";s.borderTopWidth="0px";s.borderRightWidth="0px";s.borderBottomWidth="0px";};var _2b7=function(n){if(n["getBoundingClientRect"]){var bcr=n.getBoundingClientRect();return bcr.width||(bcr.right-bcr.left);}else{return dojo.marginBox(n).w;}};dojo.mixin(dojox.charting.axis2d.common,{createText:{gfx:function(_2b8,_2b9,x,y,_2ba,text,font,_2bb){return _2b9.createText({x:x,y:y,text:text,align:_2ba}).setFont(font).setFill(_2bb);},html:function(_2bc,_2bd,x,y,_2be,text,font,_2bf,_2c0){var p=dojo.doc.createElement("div"),s=p.style,_2c1;_2b6(s);s.font=font;p.innerHTML=String(text).replace(/\s/g,"&nbsp;");s.color=_2bf;s.position="absolute";s.left="-10000px";dojo.body().appendChild(p);var size=g.normalizedLength(g.splitFontString(font).size);if(!_2c0){_2c1=_2b7(p);}dojo.body().removeChild(p);s.position="relative";if(_2c0){s.width=_2c0+"px";switch(_2be){case "middle":s.textAlign="center";s.left=(x-_2c0/2)+"px";break;case "end":s.textAlign="right";s.left=(x-_2c0)+"px";break;default:s.left=x+"px";s.textAlign="left";break;}}else{switch(_2be){case "middle":s.left=Math.floor(x-_2c1/2)+"px";break;case "end":s.left=Math.floor(x-_2c1)+"px";break;default:s.left=Math.floor(x)+"px";break;}}s.top=Math.floor(y-size)+"px";s.whiteSpace="nowrap";var wrap=dojo.doc.createElement("div"),w=wrap.style;_2b6(w);w.width="0px";w.height="0px";wrap.appendChild(p);_2bc.node.insertBefore(wrap,_2bc.node.firstChild);return wrap;}}});})();}if(!dojo._hasResource["dojox.charting.Chart"]){dojo._hasResource["dojox.charting.Chart"]=true;dojo.provide("dojox.charting.Chart");(function(){var df=dojox.lang.functional,dc=dojox.charting,g=dojox.gfx,_2c2=df.lambda("item.clear()"),_2c3=df.lambda("item.purgeGroup()"),_2c4=df.lambda("item.destroy()"),_2c5=df.lambda("item.dirty = false"),_2c6=df.lambda("item.dirty = true"),_2c7=df.lambda("item.name");dojo.declare("dojox.charting.Chart",null,{constructor:function(node,_2c8){if(!_2c8){_2c8={};}this.margins=_2c8.margins?_2c8.margins:{l:10,t:10,r:10,b:10};this.stroke=_2c8.stroke;this.fill=_2c8.fill;this.delayInMs=_2c8.delayInMs||200;this.title=_2c8.title;this.titleGap=_2c8.titleGap;this.titlePos=_2c8.titlePos;this.titleFont=_2c8.titleFont;this.titleFontColor=_2c8.titleFontColor;this.chartTitle=null;this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=true;this.coords=null;this.node=dojo.byId(node);var box=dojo.marginBox(node);this.surface=g.createSurface(this.node,box.w||400,box.h||300);},destroy:function(){dojo.forEach(this.series,_2c4);dojo.forEach(this.stack,_2c4);df.forIn(this.axes,_2c4);if(this.chartTitle&&this.chartTitle.tagName){dojo.destroy(this.chartTitle);}this.surface.destroy();},getCoords:function(){if(!this.coords){this.coords=dojo.coords(this.node,true);}return this.coords;},setTheme:function(_2c9){this.theme=_2c9.clone();this.dirty=true;return this;},addAxis:function(name,_2ca){var axis,_2cb=_2ca&&_2ca.type||"Default";if(typeof _2cb=="string"){if(!dc.axis2d||!dc.axis2d[_2cb]){throw Error("Can't find axis: "+_2cb+" - didn't you forget to dojo"+".require() it?");}axis=new dc.axis2d[_2cb](this,_2ca);}else{axis=new _2cb(this,_2ca);}axis.name=name;axis.dirty=true;if(name in this.axes){this.axes[name].destroy();}this.axes[name]=axis;this.dirty=true;return this;},getAxis:function(name){return this.axes[name];},removeAxis:function(name){if(name in this.axes){this.axes[name].destroy();delete this.axes[name];this.dirty=true;}return this;},addPlot:function(name,_2cc){var plot,_2cd=_2cc&&_2cc.type||"Default";if(typeof _2cd=="string"){if(!dc.plot2d||!dc.plot2d[_2cd]){throw Error("Can't find plot: "+_2cd+" - didn't you forget to dojo"+".require() it?");}plot=new dc.plot2d[_2cd](this,_2cc);}else{plot=new _2cd(this,_2cc);}plot.name=name;plot.dirty=true;if(name in this.plots){this.stack[this.plots[name]].destroy();this.stack[this.plots[name]]=plot;}else{this.plots[name]=this.stack.length;this.stack.push(plot);}this.dirty=true;return this;},removePlot:function(name){if(name in this.plots){var _2ce=this.plots[name];delete this.plots[name];this.stack[_2ce].destroy();this.stack.splice(_2ce,1);df.forIn(this.plots,function(idx,name,_2cf){if(idx>_2ce){_2cf[name]=idx-1;}});var ns=dojo.filter(this.series,function(run){return run.plot!=name;});if(ns.length<this.series.length){dojo.forEach(this.series,function(run){if(run.plot==name){run.destroy();}});this.runs={};dojo.forEach(ns,function(run,_2d0){this.runs[run.plot]=_2d0;},this);this.series=ns;}this.dirty=true;}return this;},getPlotOrder:function(){return df.map(this.stack,_2c7);},setPlotOrder:function(_2d1){var _2d2={},_2d3=df.filter(_2d1,function(name){if(!(name in this.plots)||(name in _2d2)){return false;}_2d2[name]=1;return true;},this);if(_2d3.length<this.stack.length){df.forEach(this.stack,function(plot){var name=plot.name;if(!(name in _2d2)){_2d3.push(name);}});}var _2d4=df.map(_2d3,function(name){return this.stack[this.plots[name]];},this);df.forEach(_2d4,function(plot,i){this.plots[plot.name]=i;},this);this.stack=_2d4;this.dirty=true;return this;},movePlotToFront:function(name){if(name in this.plots){var _2d5=this.plots[name];if(_2d5){var _2d6=this.getPlotOrder();_2d6.splice(_2d5,1);_2d6.unshift(name);return this.setPlotOrder(_2d6);}}return this;},movePlotToBack:function(name){if(name in this.plots){var _2d7=this.plots[name];if(_2d7<this.stack.length-1){var _2d8=this.getPlotOrder();_2d8.splice(_2d7,1);_2d8.push(name);return this.setPlotOrder(_2d8);}}return this;},addSeries:function(name,data,_2d9){var run=new dc.Series(this,data,_2d9);run.name=name;if(name in this.runs){this.series[this.runs[name]].destroy();this.series[this.runs[name]]=run;}else{this.runs[name]=this.series.length;this.series.push(run);}this.dirty=true;if(!("ymin" in run)&&"min" in run){run.ymin=run.min;}if(!("ymax" in run)&&"max" in run){run.ymax=run.max;}return this;},removeSeries:function(name){if(name in this.runs){var _2da=this.runs[name];delete this.runs[name];this.series[_2da].destroy();this.series.splice(_2da,1);df.forIn(this.runs,function(idx,name,runs){if(idx>_2da){runs[name]=idx-1;}});this.dirty=true;}return this;},updateSeries:function(name,data){if(name in this.runs){var run=this.series[this.runs[name]];run.update(data);this._invalidateDependentPlots(run.plot,false);this._invalidateDependentPlots(run.plot,true);}return this;},getSeriesOrder:function(_2db){return df.map(df.filter(this.series,function(run){return run.plot==_2db;}),_2c7);},setSeriesOrder:function(_2dc){var _2dd,_2de={},_2df=df.filter(_2dc,function(name){if(!(name in this.runs)||(name in _2de)){return false;}var run=this.series[this.runs[name]];if(_2dd){if(run.plot!=_2dd){return false;}}else{_2dd=run.plot;}_2de[name]=1;return true;},this);df.forEach(this.series,function(run){var name=run.name;if(!(name in _2de)&&run.plot==_2dd){_2df.push(name);}});var _2e0=df.map(_2df,function(name){return this.series[this.runs[name]];},this);this.series=_2e0.concat(df.filter(this.series,function(run){return run.plot!=_2dd;}));df.forEach(this.series,function(run,i){this.runs[run.name]=i;},this);this.dirty=true;return this;},moveSeriesToFront:function(name){if(name in this.runs){var _2e1=this.runs[name],_2e2=this.getSeriesOrder(this.series[_2e1].plot);if(name!=_2e2[0]){_2e2.splice(_2e1,1);_2e2.unshift(name);return this.setSeriesOrder(_2e2);}}return this;},moveSeriesToBack:function(name){if(name in this.runs){var _2e3=this.runs[name],_2e4=this.getSeriesOrder(this.series[_2e3].plot);if(name!=_2e4[_2e4.length-1]){_2e4.splice(_2e3,1);_2e4.push(name);return this.setSeriesOrder(_2e4);}}return this;},resize:function(_2e5,_2e6){var box;switch(arguments.length){case 1:box=dojo.mixin({},_2e5);dojo.marginBox(this.node,box);break;case 2:box={w:_2e5,h:_2e6};dojo.marginBox(this.node,box);break;}box=dojo.marginBox(this.node);this.surface.setDimensions(box.w,box.h);this.dirty=true;this.coords=null;return this.render();},getGeometry:function(){var ret={};df.forIn(this.axes,function(axis){if(axis.initialized()){ret[axis.name]={name:axis.name,vertical:axis.vertical,scaler:axis.scaler,ticks:axis.ticks};}});return ret;},setAxisWindow:function(name,_2e7,_2e8,zoom){var axis=this.axes[name];if(axis){axis.setWindow(_2e7,_2e8);dojo.forEach(this.stack,function(plot){if(plot.hAxis==name||plot.vAxis==name){plot.zoom=zoom;}});}return this;},setWindow:function(sx,sy,dx,dy,zoom){if(!("plotArea" in this)){this.calculateGeometry();}df.forIn(this.axes,function(axis){var _2e9,_2ea,_2eb=axis.getScaler().bounds,s=_2eb.span/(_2eb.upper-_2eb.lower);if(axis.vertical){_2e9=sy;_2ea=dy/s/_2e9;}else{_2e9=sx;_2ea=dx/s/_2e9;}axis.setWindow(_2e9,_2ea);});dojo.forEach(this.stack,function(plot){plot.zoom=zoom;});return this;},zoomIn:function(name,_2ec){var axis=this.axes[name];if(axis){var _2ed,_2ee,_2ef=axis.getScaler().bounds;var _2f0=Math.min(_2ec[0],_2ec[1]);var _2f1=Math.max(_2ec[0],_2ec[1]);_2f0=_2ec[0]<_2ef.lower?_2ef.lower:_2f0;_2f1=_2ec[1]>_2ef.upper?_2ef.upper:_2f1;_2ed=(_2ef.upper-_2ef.lower)/(_2f1-_2f0);_2ee=_2f0-_2ef.lower;this.setAxisWindow(name,_2ed,_2ee);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _2f2=dojo.filter(this.stack,function(plot){return plot.dirty||(plot.hAxis&&this.axes[plot.hAxis].dirty)||(plot.vAxis&&this.axes[plot.vAxis].dirty);},this);_2f3(_2f2,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();dojo.forEach(this.stack,_2c2);if(!this.theme){this.setTheme(new dojox.charting.Theme(dojox.charting._def));}dojo.forEach(this.series,function(run){if(!(run.plot in this.plots)){if(!dc.plot2d||!dc.plot2d.Default){throw Error("Can't find plot: Default - didn't you forget to dojo"+".require() it?");}var plot=new dc.plot2d.Default(this,{});plot.name=run.plot;this.plots[run.plot]=this.stack.length;this.stack.push(plot);}this.stack[this.plots[run.plot]].addSeries(run);},this);dojo.forEach(this.stack,function(plot){if(plot.hAxis){plot.setAxis(this.axes[plot.hAxis]);}if(plot.vAxis){plot.setAxis(this.axes[plot.vAxis]);}},this);var dim=this.dim=this.surface.getDimensions();dim.width=g.normalizedLength(dim.width);dim.height=g.normalizedLength(dim.height);df.forIn(this.axes,_2c2);_2f3(this.stack,dim);var _2f4=this.offsets={l:0,r:0,t:0,b:0};df.forIn(this.axes,function(axis){df.forIn(axis.getOffsets(),function(o,i){_2f4[i]+=o;});});if(this.title){this.titleGap=(this.titleGap==0)?0:this.titleGap||this.theme.chart.titleGap||20;this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";this.titleFont=this.titleFont||this.theme.chart.titleFont;this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";var _2f5=g.normalizedLength(g.splitFontString(this.titleFont).size);_2f4[this.titlePos=="top"?"t":"b"]+=(_2f5+this.titleGap);}df.forIn(this.margins,function(o,i){_2f4[i]+=o;});this.plotArea={width:dim.width-_2f4.l-_2f4.r,height:dim.height-_2f4.t-_2f4.b};df.forIn(this.axes,_2c2);_2f3(this.stack,this.plotArea);return this;},render:function(){if(this.theme){this.theme.clear();}if(this.dirty){return this.fullRender();}this.calculateGeometry();df.forEachRev(this.stack,function(plot){plot.render(this.dim,this.offsets);},this);df.forIn(this.axes,function(axis){axis.render(this.dim,this.offsets);},this);this._makeClean();if(this.surface.render){this.surface.render();}return this;},fullRender:function(){this.fullGeometry();var _2f6=this.offsets,dim=this.dim,rect;dojo.forEach(this.series,_2c3);df.forIn(this.axes,_2c3);dojo.forEach(this.stack,_2c3);if(this.chartTitle&&this.chartTitle.tagName){dojo.destroy(this.chartTitle);}this.surface.clear();this.chartTitle=null;var t=this.theme,fill=t.plotarea&&t.plotarea.fill,_2f7=t.plotarea&&t.plotarea.stroke,rect={x:_2f6.l-1,y:_2f6.t-1,width:dim.width-_2f6.l-_2f6.r+2,height:dim.height-_2f6.t-_2f6.b+2};if(fill){fill=dc.Element.prototype._shapeFill(dc.Element.prototype._plotFill(fill,dim,_2f6),rect);this.surface.createRect(rect).setFill(fill);}if(_2f7){this.surface.createRect({x:_2f6.l,y:_2f6.t,width:dim.width-_2f6.l-_2f6.r+1,height:dim.height-_2f6.t-_2f6.b+1}).setStroke(_2f7);}df.foldr(this.stack,function(z,plot){return plot.render(dim,_2f6),0;},0);fill=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_2f7=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);if(fill=="inherit"){var node=this.node,fill=new dojo.Color(dojo.style(node,"backgroundColor"));while(fill.a==0&&node!=document.documentElement){fill=new dojo.Color(dojo.style(node,"backgroundColor"));node=node.parentNode;}}if(fill){fill=dc.Element.prototype._plotFill(fill,dim,_2f6);if(_2f6.l){rect={width:_2f6.l,height:dim.height+1};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_2f6.r){rect={x:dim.width-_2f6.r,width:_2f6.r+1,height:dim.height+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_2f6.t){rect={width:dim.width+1,height:_2f6.t};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_2f6.b){rect={y:dim.height-_2f6.b,width:dim.width+1,height:_2f6.b+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}}if(_2f7){this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_2f7);}if(this.title){var _2f8=(g.renderer=="canvas"),_2f9=_2f8||!dojo.isIE&&!dojo.isOpera?"html":"gfx",_2fa=g.normalizedLength(g.splitFontString(this.titleFont).size);this.chartTitle=dc.axis2d.common.createText[_2f9](this,this.surface,dim.width/2,this.titlePos=="top"?_2fa+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);}df.forIn(this.axes,function(axis){axis.render(dim,_2f6);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},delayedRender:function(){if(!this._delayedRenderHandle){this._delayedRenderHandle=setTimeout(dojo.hitch(this,function(){clearTimeout(this._delayedRenderHandle);this._delayedRenderHandle=null;this.render();}),this.delayInMs);}return this;},connectToPlot:function(name,_2fb,_2fc){return name in this.plots?this.stack[this.plots[name]].connect(_2fb,_2fc):null;},fireEvent:function(_2fd,_2fe,_2ff){if(_2fd in this.runs){var _300=this.series[this.runs[_2fd]].plot;if(_300 in this.plots){var plot=this.stack[this.plots[_300]];if(plot){plot.fireEvent(_2fd,_2fe,_2ff);}}}return this;},_makeClean:function(){dojo.forEach(this.axes,_2c5);dojo.forEach(this.stack,_2c5);dojo.forEach(this.series,_2c5);this.dirty=false;},_makeDirty:function(){dojo.forEach(this.axes,_2c6);dojo.forEach(this.stack,_2c6);dojo.forEach(this.series,_2c6);this.dirty=true;},_invalidateDependentPlots:function(_301,_302){if(_301 in this.plots){var plot=this.stack[this.plots[_301]],axis,_303=_302?"vAxis":"hAxis";if(plot[_303]){axis=this.axes[plot[_303]];if(axis&&axis.dependOnData()){axis.dirty=true;dojo.forEach(this.stack,function(p){if(p[_303]&&p[_303]==plot[_303]){p.dirty=true;}});}}else{plot.dirty=true;}}}});function _304(_305){return {min:_305.hmin,max:_305.hmax};};function _306(_307){return {min:_307.vmin,max:_307.vmax};};function _308(_309,h){_309.hmin=h.min;_309.hmax=h.max;};function _30a(_30b,v){_30b.vmin=v.min;_30b.vmax=v.max;};function _30c(_30d,_30e){if(_30d&&_30e){_30d.min=Math.min(_30d.min,_30e.min);_30d.max=Math.max(_30d.max,_30e.max);}return _30d||_30e;};function _2f3(_30f,_310){var _311={},axes={};dojo.forEach(_30f,function(plot){var _312=_311[plot.name]=plot.getSeriesStats();if(plot.hAxis){axes[plot.hAxis]=_30c(axes[plot.hAxis],_304(_312));}if(plot.vAxis){axes[plot.vAxis]=_30c(axes[plot.vAxis],_306(_312));}});dojo.forEach(_30f,function(plot){var _313=_311[plot.name];if(plot.hAxis){_308(_313,axes[plot.hAxis]);}if(plot.vAxis){_30a(_313,axes[plot.vAxis]);}plot.initializeScalers(_310,_313);});};})();}if(!dojo._hasResource["dojox.charting.widget.Chart"]){dojo._hasResource["dojox.charting.widget.Chart"]=true;dojo.provide("dojox.charting.widget.Chart");(function(){var _314,_315,_316,_317,_318,_319=function(o){return o;},df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting,d=dojo;dojo.declare("dojox.charting.widget.Chart",dijit._Widget,{theme:null,margins:null,stroke:null,fill:null,buildRendering:function(){var n=this.domNode=this.srcNodeRef;var axes=d.query("> .axis",n).map(_315).filter(_319),_31a=d.query("> .plot",n).map(_316).filter(_319),_31b=d.query("> .action",n).map(_317).filter(_319),_31c=d.query("> .series",n).map(_318).filter(_319);n.innerHTML="";var c=this.chart=new dc.Chart(n,{margins:this.margins,stroke:this.stroke,fill:this.fill});if(this.theme){c.setTheme(this.theme);}axes.forEach(function(axis){c.addAxis(axis.name,axis.kwArgs);});_31a.forEach(function(plot){c.addPlot(plot.name,plot.kwArgs);});this.actions=_31b.map(function(_31d){return new _31d.action(c,_31d.plot,_31d.kwArgs);});var _31e=df.foldl(_31c,function(_31f,_320){if(_320.type=="data"){c.addSeries(_320.name,_320.data,_320.kwArgs);_31f=true;}else{c.addSeries(_320.name,[0],_320.kwArgs);var kw={};du.updateWithPattern(kw,_320.kwArgs,{"query":"","queryOptions":null,"start":0,"count":1},true);if(_320.kwArgs.sort){kw.sort=dojo.clone(_320.kwArgs.sort);}d.mixin(kw,{onComplete:function(data){var _321;if("valueFn" in _320.kwArgs){var fn=_320.kwArgs.valueFn;_321=d.map(data,function(x){return fn(_320.data.getValue(x,_320.field,0));});}else{_321=d.map(data,function(x){return _320.data.getValue(x,_320.field,0);});}c.addSeries(_320.name,_321,_320.kwArgs).render();}});_320.data.fetch(kw);}return _31f;},false);if(_31e){c.render();}},destroy:function(){this.chart.destroy();this.inherited(arguments);},resize:function(box){this.chart.resize(box);}});_314=function(node,type,kw){var dp=eval("("+type+".prototype.defaultParams)");var x,attr;for(x in dp){if(x in kw){continue;}attr=node.getAttribute(x);kw[x]=du.coerceType(dp[x],attr==null||typeof attr=="undefined"?dp[x]:attr);}var op=eval("("+type+".prototype.optionalParams)");for(x in op){if(x in kw){continue;}attr=node.getAttribute(x);if(attr!=null){kw[x]=du.coerceType(op[x],attr);}}};_315=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.axis2d[type]){type=dojox._scopeName+".charting.axis2d."+type;}var axis=eval("("+type+")");if(axis){kw.type=axis;}}else{type=dojox._scopeName+".charting.axis2d.Default";}_314(node,type,kw);if(kw.font||kw.fontColor){if(!kw.tick){kw.tick={};}if(kw.font){kw.tick.font=kw.font;}if(kw.fontColor){kw.tick.fontColor=kw.fontColor;}}return o;};_316=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.plot2d&&dc.plot2d[type]){type=dojox._scopeName+".charting.plot2d."+type;}var plot=eval("("+type+")");if(plot){kw.type=plot;}}else{type=dojox._scopeName+".charting.plot2d.Default";}_314(node,type,kw);return o;};_317=function(node){var plot=node.getAttribute("plot"),type=node.getAttribute("type");if(!plot){plot="default";}var o={plot:plot,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.action2d[type]){type=dojox._scopeName+".charting.action2d."+type;}var _322=eval("("+type+")");if(!_322){return null;}o.action=_322;}else{return null;}_314(node,type,kw);return o;};_318=function(node){var ga=d.partial(d.attr,node);var name=ga("name");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs,t;t=ga("plot");if(t!=null){kw.plot=t;}t=ga("marker");if(t!=null){kw.marker=t;}t=ga("stroke");if(t!=null){kw.stroke=eval("("+t+")");}t=ga("outline");if(t!=null){kw.outline=eval("("+t+")");}t=ga("shadow");if(t!=null){kw.shadow=eval("("+t+")");}t=ga("fill");if(t!=null){kw.fill=eval("("+t+")");}t=ga("font");if(t!=null){kw.font=t;}t=ga("fontColor");if(t!=null){kw.fontColor=eval("("+t+")");}t=ga("legend");if(t!=null){kw.legend=t;}t=ga("data");if(t!=null){o.type="data";o.data=t?dojo.map(String(t).split(","),Number):[];return o;}t=ga("array");if(t!=null){o.type="data";o.data=eval("("+t+")");return o;}t=ga("store");if(t!=null){o.type="store";o.data=eval("("+t+")");t=ga("field");o.field=t!=null?t:"value";t=ga("query");if(!!t){kw.query=t;}t=ga("queryOptions");if(!!t){kw.queryOptions=eval("("+t+")");}t=ga("start");if(!!t){kw.start=Number(t);}t=ga("count");if(!!t){kw.count=Number(t);}t=ga("sort");if(!!t){kw.sort=eval("("+t+")");}t=ga("valueFn");if(!!t){kw.valueFn=df.lambda(t);}return o;}return null;};})();}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.getObject("fx.easing",true,dojo);dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.gfx.fx"]){dojo._hasResource["dojox.gfx.fx"]=true;dojo.provide("dojox.gfx.fx");(function(){var d=dojo,g=dojox.gfx,m=g.matrix;function _323(_324,end){this.start=_324,this.end=end;};_323.prototype.getValue=function(r){return (this.end-this.start)*r+this.start;};function _325(_326,end,_327){this.start=_326,this.end=end;this.units=_327;};_325.prototype.getValue=function(r){return (this.end-this.start)*r+this.start+this.units;};function _328(_329,end){this.start=_329,this.end=end;this.temp=new dojo.Color();};_328.prototype.getValue=function(r){return d.blendColors(this.start,this.end,r,this.temp);};function _32a(_32b){this.values=_32b;this.length=_32b.length;};_32a.prototype.getValue=function(r){return this.values[Math.min(Math.floor(r*this.length),this.length-1)];};function _32c(_32d,def){this.values=_32d;this.def=def?def:{};};_32c.prototype.getValue=function(r){var ret=dojo.clone(this.def);for(var i in this.values){ret[i]=this.values[i].getValue(r);}return ret;};function _32e(_32f,_330){this.stack=_32f;this.original=_330;};_32e.prototype.getValue=function(r){var ret=[];dojo.forEach(this.stack,function(t){if(t instanceof m.Matrix2D){ret.push(t);return;}if(t.name=="original"&&this.original){ret.push(this.original);return;}if(!(t.name in m)){return;}var f=m[t.name];if(typeof f!="function"){ret.push(f);return;}var val=dojo.map(t.start,function(v,i){return (t.end[i]-v)*r+v;}),_331=f.apply(m,val);if(_331 instanceof m.Matrix2D){ret.push(_331);}},this);return ret;};var _332=new d.Color(0,0,0,0);function _333(prop,obj,name,def){if(prop.values){return new _32a(prop.values);}var _334,_335,end;if(prop.start){_335=g.normalizeColor(prop.start);}else{_335=_334=obj?(name?obj[name]:obj):def;}if(prop.end){end=g.normalizeColor(prop.end);}else{if(!_334){_334=obj?(name?obj[name]:obj):def;}end=_334;}return new _328(_335,end);};function _336(prop,obj,name,def){if(prop.values){return new _32a(prop.values);}var _337,_338,end;if(prop.start){_338=prop.start;}else{_338=_337=obj?obj[name]:def;}if(prop.end){end=prop.end;}else{if(typeof _337!="number"){_337=obj?obj[name]:def;}end=_337;}return new _323(_338,end);};g.fx.animateStroke=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_339=args.shape,_33a;d.connect(anim,"beforeBegin",anim,function(){_33a=_339.getStroke();var prop=args.color,_33b={},_33c,_33d,end;if(prop){_33b.color=_333(prop,_33a,"color",_332);}prop=args.style;if(prop&&prop.values){_33b.style=new _32a(prop.values);}prop=args.width;if(prop){_33b.width=_336(prop,_33a,"width",1);}prop=args.cap;if(prop&&prop.values){_33b.cap=new _32a(prop.values);}prop=args.join;if(prop){if(prop.values){_33b.join=new _32a(prop.values);}else{_33d=prop.start?prop.start:(_33a&&_33a.join||0);end=prop.end?prop.end:(_33a&&_33a.join||0);if(typeof _33d=="number"&&typeof end=="number"){_33b.join=new _323(_33d,end);}}}this.curve=new _32c(_33b,_33a);});d.connect(anim,"onAnimate",_339,"setStroke");return anim;};g.fx.animateFill=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_33e=args.shape,fill;d.connect(anim,"beforeBegin",anim,function(){fill=_33e.getFill();var prop=args.color,_33f={};if(prop){this.curve=_333(prop,fill,"",_332);}});d.connect(anim,"onAnimate",_33e,"setFill");return anim;};g.fx.animateFont=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_340=args.shape,font;d.connect(anim,"beforeBegin",anim,function(){font=_340.getFont();var prop=args.style,_341={},_342,_343,end;if(prop&&prop.values){_341.style=new _32a(prop.values);}prop=args.variant;if(prop&&prop.values){_341.variant=new _32a(prop.values);}prop=args.weight;if(prop&&prop.values){_341.weight=new _32a(prop.values);}prop=args.family;if(prop&&prop.values){_341.family=new _32a(prop.values);}prop=args.size;if(prop&&prop.units){_343=parseFloat(prop.start?prop.start:(_340.font&&_340.font.size||"0"));end=parseFloat(prop.end?prop.end:(_340.font&&_340.font.size||"0"));_341.size=new _325(_343,end,prop.units);}this.curve=new _32c(_341,font);});d.connect(anim,"onAnimate",_340,"setFont");return anim;};g.fx.animateTransform=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_344=args.shape,_345;d.connect(anim,"beforeBegin",anim,function(){_345=_344.getTransform();this.curve=new _32e(args.transform,_345);});d.connect(anim,"onAnimate",_344,"setTransform");return anim;};})();}if(!dojo._hasResource["dojox.charting.action2d.Base"]){dojo._hasResource["dojox.charting.action2d.Base"]=true;dojo.provide("dojox.charting.action2d.Base");(function(){var _346=400,_347=dojo.fx.easing.backOut,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.Base",null,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_348,plot,_349){this.chart=_348;this.plot=plot||"default";this.anim={};if(!_349){_349={};}this.duration=_349.duration?_349.duration:_346;this.easing=_349.easing?_349.easing:_347;},connect:function(){this.handle=this.chart.connectToPlot(this.plot,this,"process");},disconnect:function(){if(this.handle){dojo.disconnect(this.handle);this.handle=null;}},reset:function(){},destroy:function(){this.disconnect();df.forIn(this.anim,function(o){df.forIn(o,function(anim){anim.action.stop(true);});});this.anim={};}});})();}if(!dojo._hasResource["dojox.charting.action2d.Highlight"]){dojo._hasResource["dojox.charting.action2d.Highlight"]=true;dojo.provide("dojox.charting.action2d.Highlight");(function(){var _34a=100,_34b=75,_34c=50,c=dojox.color,cc=function(_34d){return function(){return _34d;};},hl=function(_34e){var a=new c.Color(_34e),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=_34a;if(x.l<_34c){x.l=_34b;}else{if(x.l>_34b){x.l=_34c;}else{x.l=x.l-_34c>_34b-x.l?_34c:_34b;}}}return c.fromHsl(x);};dojo.declare("dojox.charting.action2d.Highlight",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut},optionalParams:{highlight:"red"},constructor:function(_34f,plot,_350){var a=_350&&_350.highlight;this.colorFun=a?(dojo.isFunction(a)?a:cc(a)):hl;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _351=o.run.name,_352=o.index,anim,_353,_354;if(_351 in this.anim){anim=this.anim[_351][_352];}else{this.anim[_351]={};}if(anim){anim.action.stop(true);}else{var _355=o.shape.getFill();if(!_355||!(_355 instanceof dojo.Color)){return;}this.anim[_351][_352]=anim={start:_355,end:this.colorFun(_355)};}var _356=anim.start,end=anim.end;if(o.type=="onmouseout"){var t=_356;_356=end;end=t;}anim.action=dojox.gfx.fx.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_356,end:end}});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_351]){delete this.anim[_351][_352];}});}anim.action.play();}});})();}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 _357=this;dojo.mixin(_357,args);_357.node=args.node;_357._showArgs=dojo.mixin({},args);_357._showArgs.node=_357.node;_357._showArgs.duration=_357.showDuration;_357.showAnim=_357.showFunc(_357._showArgs);_357._hideArgs=dojo.mixin({},args);_357._hideArgs.node=_357.node;_357._hideArgs.duration=_357.hideDuration;_357.hideAnim=_357.hideFunc(_357._hideArgs);dojo.connect(_357.showAnim,"beforeBegin",dojo.hitch(_357.hideAnim,"stop",true));dojo.connect(_357.hideAnim,"beforeBegin",dojo.hitch(_357.showAnim,"stop",true));},show:function(_358){return this.showAnim.play(_358||0);},hide:function(_359){return this.hideAnim.play(_359||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_35a={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _35b=function(_35c){this._index=-1;this._animations=_35c||[];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(_35b,{_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(_35d,_35e){if(!this._current){this._current=this._animations[this._index=0];}if(!_35e&&this._current.status()=="playing"){return this;}var _35f=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_360=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_361=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_35f);d.disconnect(_360);d.disconnect(_361);});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(_362,_363){this.pause();var _364=this.duration*_362;this._current=null;d.some(this._animations,function(a){if(a.duration<=_364){this._current=a;return true;}_364-=a.duration;return false;});if(this._current){this._current.gotoPercent(_364/this._current.duration,_363);}return this;},stop:function(_365){if(this._current){if(_365){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(_35b,_35a);dojo.fx.chain=function(_366){return new _35b(_366);};var _367=function(_368){this._animations=_368||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_368,function(a){var _369=a.duration;if(a.delay){_369+=a.delay;}if(this.duration<_369){this.duration=_369;}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(_367,{_doAction:function(_36a,args){d.forEach(this._animations,function(a){a[_36a].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_36b,args){var t=this._pseudoAnimation;t[_36b].apply(t,args);},play:function(_36c,_36d){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(_36e,_36f){var ms=this.duration*_36e;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_36f);});this._call("gotoPercent",arguments);return this;},stop:function(_370){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(_367,_35a);dojo.fx.combine=function(_371){return new _367(_371);};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 _372=d.style(node,"height");return Math.max(_372,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["dojox.charting.action2d.Magnify"]){dojo._hasResource["dojox.charting.action2d.Magnify"]=true;dojo.provide("dojox.charting.action2d.Magnify");(function(){var _373=2,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Magnify",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_373},optionalParams:{},constructor:function(_374,plot,_375){this.scale=_375&&typeof _375.scale=="number"?_375.scale:_373;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){return;}var _376=o.run.name,_377=o.index,_378=[],anim,init,_379;if(_376 in this.anim){anim=this.anim[_376][_377];}else{this.anim[_376]={};}if(anim){anim.action.stop(true);}else{this.anim[_376][_377]=anim={};}if(o.type=="onmouseover"){init=m.identity;_379=this.scale;}else{init=m.scaleAt(this.scale,o.cx,o.cy);_379=1/this.scale;}var _37a={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_379,o.cx,o.cy]},init]};if(o.shape){_378.push(gf.animateTransform(_37a));}if(o.oultine){_37a.shape=o.outline;_378.push(gf.animateTransform(_37a));}if(o.shadow){_37a.shape=o.shadow;_378.push(gf.animateTransform(_37a));}if(!_378.length){delete this.anim[_376][_377];return;}anim.action=dojo.fx.combine(_378);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_376]){delete this.anim[_376][_377];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.lang.functional.scan"]){dojo._hasResource["dojox.lang.functional.scan"]=true;dojo.provide("dojox.lang.functional.scan");(function(){var d=dojo,df=dojox.lang.functional,_37b={};d.mixin(df,{scanl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,i;if(d.isArray(a)){t=new Array((n=a.length)+1);t[0]=z;for(i=0;i<n;z=f.call(o,z,a[i],i,a),t[++i]=z){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[z];for(i=0;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}else{t=[z];for(i in a){if(!(i in _37b)){t.push(z=f.call(o,z,a[i],i,a));}}}}return t;},scanl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,z,_37c=true;if(d.isArray(a)){t=new Array(n=a.length);t[0]=z=a[0];for(var i=1;i<n;t[i]=z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){t=[z=a.next()];for(var i=1;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}}else{for(var i in a){if(!(i in _37b)){if(_37c){t=[z=a[i]];_37c=false;}else{t.push(z=f.call(o,z,a[i],i,a));}}}}}return t;},scanr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n+1),i=n;t[n]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;},scanr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n),z=a[n-1],i=n-1;t[i]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;}});})();}if(!dojo._hasResource["dojox.charting.action2d.MoveSlice"]){dojo._hasResource["dojox.charting.action2d.MoveSlice"]=true;dojo.provide("dojox.charting.action2d.MoveSlice");(function(){var _37d=1.05,_37e=7,m=dojox.gfx.matrix,gf=dojox.gfx.fx,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.MoveSlice",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_37d,shift:_37e},optionalParams:{},constructor:function(_37f,plot,_380){if(!_380){_380={};}this.scale=typeof _380.scale=="number"?_380.scale:_37d;this.shift=typeof _380.shift=="number"?_380.shift:_37e;this.connect();},process:function(o){if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){return;}if(!this.angles){var _381=m._degToRad(o.plot.opt.startAngle);if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",_381),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",_381),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _382=o.index,anim,_383,_384,_385,_386,_387=(this.angles[_382]+this.angles[_382+1])/2,_388=m.rotateAt(-_387,o.cx,o.cy),_389=m.rotateAt(_387,o.cx,o.cy);anim=this.anim[_382];if(anim){anim.action.stop(true);}else{this.anim[_382]=anim={};}if(o.type=="onmouseover"){_385=0;_386=this.shift;_383=1;_384=this.scale;}else{_385=this.shift;_386=0;_383=this.scale;_384=1;}anim.action=dojox.gfx.fx.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_389,{name:"translate",start:[_385,0],end:[_386,0]},{name:"scaleAt",start:[_383,o.cx,o.cy],end:[_384,o.cx,o.cy]},_388]});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){delete this.anim[_382];});}anim.action.play();},reset:function(){delete this.angles;}});})();}if(!dojo._hasResource["dojox.charting.action2d.Shake"]){dojo._hasResource["dojox.charting.action2d.Shake"]=true;dojo.provide("dojox.charting.action2d.Shake");(function(){var _38a=3,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Shake",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,shiftX:_38a,shiftY:_38a},optionalParams:{},constructor:function(_38b,plot,_38c){if(!_38c){_38c={};}this.shiftX=typeof _38c.shiftX=="number"?_38c.shiftX:_38a;this.shiftY=typeof _38c.shiftY=="number"?_38c.shiftY:_38a;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _38d=o.run.name,_38e=o.index,_38f=[],anim,_390=o.type=="onmouseover"?this.shiftX:-this.shiftX,_391=o.type=="onmouseover"?this.shiftY:-this.shiftY;if(_38d in this.anim){anim=this.anim[_38d][_38e];}else{this.anim[_38d]={};}if(anim){anim.action.stop(true);}else{this.anim[_38d][_38e]=anim={};}var _392={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"translate",start:[this.shiftX,this.shiftY],end:[0,0]},m.identity]};if(o.shape){_38f.push(gf.animateTransform(_392));}if(o.oultine){_392.shape=o.outline;_38f.push(gf.animateTransform(_392));}if(o.shadow){_392.shape=o.shadow;_38f.push(gf.animateTransform(_392));}if(!_38f.length){delete this.anim[_38d][_38e];return;}anim.action=dojo.fx.combine(_38f);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_38d]){delete this.anim[_38d][_38e];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.charting.action2d.Tooltip"]){dojo._hasResource["dojox.charting.action2d.Tooltip"]=true;dojo.provide("dojox.charting.action2d.Tooltip");(function(){var _393=function(o){var t=o.run&&o.run.data&&o.run.data[o.index];if(t&&typeof t!="number"&&(t.tooltip||t.text)){return t.tooltip||t.text;}if(o.element=="candlestick"){return "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" style=\"font-size:0.9em;\">"+"<tr><td>Open:</td><td align=\"right\"><strong>"+o.data.open+"</strong></td></tr>"+"<tr><td>High:</td><td align=\"right\"><strong>"+o.data.high+"</strong></td></tr>"+"<tr><td>Low:</td><td align=\"right\"><strong>"+o.data.low+"</strong></td></tr>"+"<tr><td>Close:</td><td align=\"right\"><strong>"+o.data.close+"</strong></td></tr>"+(o.data.mid!==undefined?"<tr><td>Mid:</td><td align=\"right\"><strong>"+o.data.mid+"</strong></td></tr>":"")+"</table>";}return o.element=="bar"?o.x:o.y;};var df=dojox.lang.functional,m=dojox.gfx.matrix,pi4=Math.PI/4,pi2=Math.PI/2;dojo.declare("dojox.charting.action2d.Tooltip",dojox.charting.action2d.Base,{defaultParams:{text:_393},optionalParams:{},constructor:function(_394,plot,_395){this.text=_395&&_395.text?_395.text:_393;this.connect();},process:function(o){if(o.type==="onplotreset"||o.type==="onmouseout"){dijit.hideTooltip(this.aroundRect);this.aroundRect=null;if(o.type==="onplotreset"){delete this.angles;}return;}if(!o.shape||o.type!=="onmouseover"){return;}var _396={type:"rect"},_397=["after","before"];switch(o.element){case "marker":_396.x=o.cx;_396.y=o.cy;_396.width=_396.height=1;break;case "circle":_396.x=o.cx-o.cr;_396.y=o.cy-o.cr;_396.width=_396.height=2*o.cr;break;case "column":_397=["above","below"];case "bar":_396=dojo.clone(o.shape.getShape());break;case "candlestick":_396.x=o.x;_396.y=o.y;_396.width=o.width;_396.height=o.height;break;default:if(!this.angles){if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _398=m._degToRad(o.plot.opt.startAngle),_399=(this.angles[o.index]+this.angles[o.index+1])/2+_398;_396.x=o.cx+o.cr*Math.cos(_399);_396.y=o.cy+o.cr*Math.sin(_399);_396.width=_396.height=1;if(_399<pi4){}else{if(_399<pi2+pi4){_397=["below","above"];}else{if(_399<Math.PI+pi4){_397=["before","after"];}else{if(_399<2*Math.PI-pi4){_397=["above","below"];}}}}break;}var lt=dojo.coords(this.chart.node,true);_396.x+=lt.x;_396.y+=lt.y;_396.x=Math.round(_396.x);_396.y=Math.round(_396.y);_396.width=Math.ceil(_396.width);_396.height=Math.ceil(_396.height);this.aroundRect=_396;var _39a=this.text(o);if(_39a){dijit.showTooltip(_39a,this.aroundRect,_397);}}});})();}if(!dojo._hasResource["dojox.charting.scaler.common"]){dojo._hasResource["dojox.charting.scaler.common"]=true;dojo.provide("dojox.charting.scaler.common");(function(){var eq=function(a,b){return Math.abs(a-b)<=0.000001*(Math.abs(a)+Math.abs(b));};dojo.mixin(dojox.charting.scaler.common,{findString:function(val,text){val=val.toLowerCase();for(var i=0;i<text.length;++i){if(val==text[i]){return true;}}return false;},getNumericLabel:function(_39b,_39c,_39d){var def="";if(dojo.number){def=(_39d.fixed?dojo.number.format(_39b,{places:_39c<0?-_39c:0}):dojo.number.format(_39b))||"";}else{def=_39d.fixed?_39b.toFixed(_39c<0?-_39c:0):_39b.toString();}if(_39d.labelFunc){var r=_39d.labelFunc(def,_39b,_39c);if(r){return r;}}if(_39d.labels){var l=_39d.labels,lo=0,hi=l.length;while(lo<hi){var mid=Math.floor((lo+hi)/2),val=l[mid].value;if(val<_39b){lo=mid+1;}else{hi=mid;}}if(lo<l.length&&eq(l[lo].value,_39b)){return l[lo].text;}--lo;if(lo>=0&&lo<l.length&&eq(l[lo].value,_39b)){return l[lo].text;}lo+=2;if(lo<l.length&&eq(l[lo].value,_39b)){return l[lo].text;}}return def;}});})();}if(!dojo._hasResource["dojox.charting.scaler.linear"]){dojo._hasResource["dojox.charting.scaler.linear"]=true;dojo.provide("dojox.charting.scaler.linear");(function(){var _39e=3,dc=dojox.charting,dcs=dc.scaler,dcsc=dcs.common,_39f=dcsc.findString,_3a0=dcsc.getNumericLabel;var _3a1=function(min,max,_3a2,_3a3,_3a4,_3a5,span){_3a2=dojo.delegate(_3a2);if(!_3a3){if(_3a2.fixUpper=="major"){_3a2.fixUpper="minor";}if(_3a2.fixLower=="major"){_3a2.fixLower="minor";}}if(!_3a4){if(_3a2.fixUpper=="minor"){_3a2.fixUpper="micro";}if(_3a2.fixLower=="minor"){_3a2.fixLower="micro";}}if(!_3a5){if(_3a2.fixUpper=="micro"){_3a2.fixUpper="none";}if(_3a2.fixLower=="micro"){_3a2.fixLower="none";}}var _3a6=_39f(_3a2.fixLower,["major"])?Math.floor(_3a2.min/_3a3)*_3a3:_39f(_3a2.fixLower,["minor"])?Math.floor(_3a2.min/_3a4)*_3a4:_39f(_3a2.fixLower,["micro"])?Math.floor(_3a2.min/_3a5)*_3a5:_3a2.min,_3a7=_39f(_3a2.fixUpper,["major"])?Math.ceil(_3a2.max/_3a3)*_3a3:_39f(_3a2.fixUpper,["minor"])?Math.ceil(_3a2.max/_3a4)*_3a4:_39f(_3a2.fixUpper,["micro"])?Math.ceil(_3a2.max/_3a5)*_3a5:_3a2.max;if(_3a2.useMin){min=_3a6;}if(_3a2.useMax){max=_3a7;}var _3a8=(!_3a3||_3a2.useMin&&_39f(_3a2.fixLower,["major"]))?min:Math.ceil(min/_3a3)*_3a3,_3a9=(!_3a4||_3a2.useMin&&_39f(_3a2.fixLower,["major","minor"]))?min:Math.ceil(min/_3a4)*_3a4,_3aa=(!_3a5||_3a2.useMin&&_39f(_3a2.fixLower,["major","minor","micro"]))?min:Math.ceil(min/_3a5)*_3a5,_3ab=!_3a3?0:(_3a2.useMax&&_39f(_3a2.fixUpper,["major"])?Math.round((max-_3a8)/_3a3):Math.floor((max-_3a8)/_3a3))+1,_3ac=!_3a4?0:(_3a2.useMax&&_39f(_3a2.fixUpper,["major","minor"])?Math.round((max-_3a9)/_3a4):Math.floor((max-_3a9)/_3a4))+1,_3ad=!_3a5?0:(_3a2.useMax&&_39f(_3a2.fixUpper,["major","minor","micro"])?Math.round((max-_3aa)/_3a5):Math.floor((max-_3aa)/_3a5))+1,_3ae=_3a4?Math.round(_3a3/_3a4):0,_3af=_3a5?Math.round(_3a4/_3a5):0,_3b0=_3a3?Math.floor(Math.log(_3a3)/Math.LN10):0,_3b1=_3a4?Math.floor(Math.log(_3a4)/Math.LN10):0,_3b2=span/(max-min);if(!isFinite(_3b2)){_3b2=1;}return {bounds:{lower:_3a6,upper:_3a7,from:min,to:max,scale:_3b2,span:span},major:{tick:_3a3,start:_3a8,count:_3ab,prec:_3b0},minor:{tick:_3a4,start:_3a9,count:_3ac,prec:_3b1},micro:{tick:_3a5,start:_3aa,count:_3ad,prec:0},minorPerMajor:_3ae,microPerMinor:_3af,scaler:dcs.linear};};dojo.mixin(dojox.charting.scaler.linear,{buildScaler:function(min,max,span,_3b3){var h={fixUpper:"none",fixLower:"none",natural:false};if(_3b3){if("fixUpper" in _3b3){h.fixUpper=String(_3b3.fixUpper);}if("fixLower" in _3b3){h.fixLower=String(_3b3.fixLower);}if("natural" in _3b3){h.natural=Boolean(_3b3.natural);}}if("min" in _3b3){min=_3b3.min;}if("max" in _3b3){max=_3b3.max;}if(_3b3.includeZero){if(min>0){min=0;}if(max<0){max=0;}}h.min=min;h.useMin=true;h.max=max;h.useMax=true;if("from" in _3b3){min=_3b3.from;h.useMin=false;}if("to" in _3b3){max=_3b3.to;h.useMax=false;}if(max<=min){return _3a1(min,max,h,0,0,0,span);}var mag=Math.floor(Math.log(max-min)/Math.LN10),_3b4=_3b3&&("majorTickStep" in _3b3)?_3b3.majorTickStep:Math.pow(10,mag),_3b5=0,_3b6=0,_3b7;if(_3b3&&("minorTickStep" in _3b3)){_3b5=_3b3.minorTickStep;}else{do{_3b5=_3b4/10;if(!h.natural||_3b5>0.9){_3b7=_3a1(min,max,h,_3b4,_3b5,0,span);if(_3b7.bounds.scale*_3b7.minor.tick>_39e){break;}}_3b5=_3b4/5;if(!h.natural||_3b5>0.9){_3b7=_3a1(min,max,h,_3b4,_3b5,0,span);if(_3b7.bounds.scale*_3b7.minor.tick>_39e){break;}}_3b5=_3b4/2;if(!h.natural||_3b5>0.9){_3b7=_3a1(min,max,h,_3b4,_3b5,0,span);if(_3b7.bounds.scale*_3b7.minor.tick>_39e){break;}}return _3a1(min,max,h,_3b4,0,0,span);}while(false);}if(_3b3&&("microTickStep" in _3b3)){_3b6=_3b3.microTickStep;_3b7=_3a1(min,max,h,_3b4,_3b5,_3b6,span);}else{do{_3b6=_3b5/10;if(!h.natural||_3b6>0.9){_3b7=_3a1(min,max,h,_3b4,_3b5,_3b6,span);if(_3b7.bounds.scale*_3b7.micro.tick>_39e){break;}}_3b6=_3b5/5;if(!h.natural||_3b6>0.9){_3b7=_3a1(min,max,h,_3b4,_3b5,_3b6,span);if(_3b7.bounds.scale*_3b7.micro.tick>_39e){break;}}_3b6=_3b5/2;if(!h.natural||_3b6>0.9){_3b7=_3a1(min,max,h,_3b4,_3b5,_3b6,span);if(_3b7.bounds.scale*_3b7.micro.tick>_39e){break;}}_3b6=0;}while(false);}return _3b6?_3b7:_3a1(min,max,h,_3b4,_3b5,0,span);},buildTicks:function(_3b8,_3b9){var step,next,tick,_3ba=_3b8.major.start,_3bb=_3b8.minor.start,_3bc=_3b8.micro.start;if(_3b9.microTicks&&_3b8.micro.tick){step=_3b8.micro.tick,next=_3bc;}else{if(_3b9.minorTicks&&_3b8.minor.tick){step=_3b8.minor.tick,next=_3bb;}else{if(_3b8.major.tick){step=_3b8.major.tick,next=_3ba;}else{return null;}}}var _3bd=1/_3b8.bounds.scale;if(_3b8.bounds.to<=_3b8.bounds.from||isNaN(_3bd)||!isFinite(_3bd)||step<=0||isNaN(step)||!isFinite(step)){return null;}var _3be=[],_3bf=[],_3c0=[];while(next<=_3b8.bounds.to+_3bd){if(Math.abs(_3ba-next)<step/2){tick={value:_3ba};if(_3b9.majorLabels){tick.label=_3a0(_3ba,_3b8.major.prec,_3b9);}_3be.push(tick);_3ba+=_3b8.major.tick;_3bb+=_3b8.minor.tick;_3bc+=_3b8.micro.tick;}else{if(Math.abs(_3bb-next)<step/2){if(_3b9.minorTicks){tick={value:_3bb};if(_3b9.minorLabels&&(_3b8.minMinorStep<=_3b8.minor.tick*_3b8.bounds.scale)){tick.label=_3a0(_3bb,_3b8.minor.prec,_3b9);}_3bf.push(tick);}_3bb+=_3b8.minor.tick;_3bc+=_3b8.micro.tick;}else{if(_3b9.microTicks){_3c0.push({value:_3bc});}_3bc+=_3b8.micro.tick;}}next+=step;}return {major:_3be,minor:_3bf,micro:_3c0};},getTransformerFromModel:function(_3c1){var _3c2=_3c1.bounds.from,_3c3=_3c1.bounds.scale;return function(x){return (x-_3c2)*_3c3;};},getTransformerFromPlot:function(_3c4){var _3c5=_3c4.bounds.from,_3c6=_3c4.bounds.scale;return function(x){return x/_3c6+_3c5;};}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Base"]){dojo._hasResource["dojox.charting.axis2d.Base"]=true;dojo.provide("dojox.charting.axis2d.Base");dojo.declare("dojox.charting.axis2d.Base",dojox.charting.Element,{constructor:function(_3c7,_3c8){this.vertical=_3c8&&_3c8.vertical;},clear:function(){return this;},initialized:function(){return false;},calculate:function(min,max,span){return this;},getScaler:function(){return null;},getTicks:function(){return null;},getOffsets:function(){return {l:0,r:0,t:0,b:0};},render:function(dim,_3c9){this.dirty=false;return this;}});}if(!dojo._hasResource["dojox.charting.axis2d.Invisible"]){dojo._hasResource["dojox.charting.axis2d.Invisible"]=true;dojo.provide("dojox.charting.axis2d.Invisible");(function(){var dc=dojox.charting,df=dojox.lang.functional,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_3ca=du.merge,_3cb=4,_3cc=45;dojo.declare("dojox.charting.axis2d.Invisible",dojox.charting.axis2d.Base,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null},constructor:function(_3cd,_3ce){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3ce);du.updateWithPattern(this.opt,_3ce,this.optionalParams);},dependOnData:function(){return !("min" in this.opt)||!("max" in this.opt);},clear:function(){delete this.scaler;delete this.ticks;this.dirty=true;return this;},initialized:function(){return "scaler" in this&&!(this.dirty&&this.dependOnData());},setWindow:function(_3cf,_3d0){this.scale=_3cf;this.offset=_3d0;return this.clear();},getWindowScale:function(){return "scale" in this?this.scale:1;},getWindowOffset:function(){return "offset" in this?this.offset:0;},_groupLabelWidth:function(_3d1,font,_3d2){if(!_3d1.length){return 0;}if(dojo.isObject(_3d1[0])){_3d1=df.map(_3d1,function(_3d3){return _3d3.text;});}if(_3d2){_3d1=df.map(_3d1,function(_3d4){return dojo.trim(_3d4).length==0?"":_3d4.substring(0,_3d2)+this.trailingSymbol;},this);}var s=_3d1.join("<br>");return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},calculate:function(min,max,span,_3d5){if(this.initialized()){return this;}var o=this.opt;this.labels="labels" in o?o.labels:_3d5;this.scaler=lin.buildScaler(min,max,span,o);var tsb=this.scaler.bounds;if("scale" in this){o.from=tsb.lower+this.offset;o.to=(tsb.upper-tsb.lower)/this.scale+o.from;if(!isFinite(o.from)||isNaN(o.from)||!isFinite(o.to)||isNaN(o.to)||o.to-o.from>=tsb.upper-tsb.lower){delete o.from;delete o.to;delete this.scale;delete this.offset;}else{if(o.from<tsb.lower){o.to+=tsb.lower-o.from;o.from=tsb.lower;}else{if(o.to>tsb.upper){o.from+=tsb.upper-o.to;o.to=tsb.upper;}}this.offset=o.from-tsb.lower;}this.scaler=lin.buildScaler(min,max,span,o);tsb=this.scaler.bounds;if(this.scale==1&&this.offset==0){delete this.scale;delete this.offset;}}var ta=this.chart.theme.axis,_3d6=0,_3d7=o.rotation%360,_3d8=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),size=_3d8?g.normalizedLength(g.splitFontString(_3d8).size):0,cosr=Math.abs(Math.cos(_3d7*Math.PI/180)),sinr=Math.abs(Math.sin(_3d7*Math.PI/180));if(_3d7<0){_3d7+=360;}if(size){if(this.vertical?_3d7!=0&&_3d7!=180:_3d7!=90&&_3d7!=270){if(this.labels){_3d6=this._groupLabelWidth(this.labels,_3d8,o.maxLabelCharCount);}else{var _3d9=Math.ceil(Math.log(Math.max(Math.abs(tsb.from),Math.abs(tsb.to)))/Math.LN10),t=[];if(tsb.from<0||tsb.to<0){t.push("-");}t.push(dojo.string.rep("9",_3d9));var _3da=Math.floor(Math.log(tsb.to-tsb.from)/Math.LN10);if(_3da>0){t.push(".");t.push(dojo.string.rep("9",_3da));}_3d6=dojox.gfx._base._getTextBox(t.join(""),{font:_3d8}).w;}_3d6=o.maxLabelSize?Math.min(o.maxLabelSize,_3d6):_3d6;}else{_3d6=size;}switch(_3d7){case 0:case 90:case 180:case 270:break;default:var gap1=Math.sqrt(_3d6*_3d6+size*size),gap2=this.vertical?size*cosr+_3d6*sinr:_3d6*cosr+size*sinr;_3d6=Math.min(gap1,gap2);break;}}this.scaler.minMinorStep=_3d6+_3cb;this.ticks=lin.buildTicks(this.scaler,o);return this;},getScaler:function(){return this.scaler;},getTicks:function(){return this.ticks;}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Default"]){dojo._hasResource["dojox.charting.axis2d.Default"]=true;dojo.provide("dojox.charting.axis2d.Default");(function(){var dc=dojox.charting,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_3db=4,_3dc=45;dojo.declare("dojox.charting.axis2d.Default",dojox.charting.axis2d.Invisible,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0,htmlLabels:true},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:"",title:"",titleGap:0,titleFont:"",titleFontColor:"",titleOrientation:""},constructor:function(_3dd,_3de){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3de);du.updateWithPattern(this.opt,_3de,this.optionalParams);},getOffsets:function(){var s=this.scaler,_3df={l:0,r:0,t:0,b:0};if(!s){return _3df;}var o=this.opt,_3e0=0,a,b,c,d,gl=dc.scaler.common.getNumericLabel,_3e1=0,ma=s.major,mi=s.minor,ta=this.chart.theme.axis,_3e2=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_3e3=o.titleFont||(ta.tick&&ta.tick.titleFont),_3e4=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_3e5=this.chart.theme.getTick("major",o),_3e6=this.chart.theme.getTick("minor",o),size=_3e2?g.normalizedLength(g.splitFontString(_3e2).size):0,_3e7=_3e3?g.normalizedLength(g.splitFontString(_3e3).size):0,_3e8=o.rotation%360,_3e9=o.leftBottom,cosr=Math.abs(Math.cos(_3e8*Math.PI/180)),sinr=Math.abs(Math.sin(_3e8*Math.PI/180));this.trailingSymbol=(o.trailingSymbol===undefined||o.trailingSymbol===null)?this.trailingSymbol:o.trailingSymbol;if(_3e8<0){_3e8+=360;}if(size){if(this.labels){_3e0=this._groupLabelWidth(this.labels,_3e2,o.maxLabelCharCount);}else{_3e0=this._groupLabelWidth([gl(ma.start,ma.prec,o),gl(ma.start+ma.count*ma.tick,ma.prec,o),gl(mi.start,mi.prec,o),gl(mi.start+mi.count*mi.tick,mi.prec,o)],_3e2,o.maxLabelCharCount);}_3e0=o.maxLabelSize?Math.min(o.maxLabelSize,_3e0):_3e0;if(this.vertical){var side=_3e9?"l":"r";switch(_3e8){case 0:case 180:_3df[side]=_3e0;_3df.t=_3df.b=size/2;break;case 90:case 270:_3df[side]=size;_3df.t=_3df.b=_3e0/2;break;default:if(_3e8<=_3dc||(180<_3e8&&_3e8<=(180+_3dc))){_3df[side]=size*sinr/2+_3e0*cosr;_3df[_3e9?"t":"b"]=size*cosr/2+_3e0*sinr;_3df[_3e9?"b":"t"]=size*cosr/2;}else{if(_3e8>(360-_3dc)||(180>_3e8&&_3e8>(180-_3dc))){_3df[side]=size*sinr/2+_3e0*cosr;_3df[_3e9?"b":"t"]=size*cosr/2+_3e0*sinr;_3df[_3e9?"t":"b"]=size*cosr/2;}else{if(_3e8<90||(180<_3e8&&_3e8<270)){_3df[side]=size*sinr+_3e0*cosr;_3df[_3e9?"t":"b"]=size*cosr+_3e0*sinr;}else{_3df[side]=size*sinr+_3e0*cosr;_3df[_3e9?"b":"t"]=size*cosr+_3e0*sinr;}}}break;}_3df[side]+=_3db+Math.max(_3e5.length,_3e6.length)+(o.title?(_3e7+_3e4):0);}else{var side=_3e9?"b":"t";switch(_3e8){case 0:case 180:_3df[side]=size;_3df.l=_3df.r=_3e0/2;break;case 90:case 270:_3df[side]=_3e0;_3df.l=_3df.r=size/2;break;default:if((90-_3dc)<=_3e8&&_3e8<=90||(270-_3dc)<=_3e8&&_3e8<=270){_3df[side]=size*sinr/2+_3e0*cosr;_3df[_3e9?"r":"l"]=size*cosr/2+_3e0*sinr;_3df[_3e9?"l":"r"]=size*cosr/2;}else{if(90<=_3e8&&_3e8<=(90+_3dc)||270<=_3e8&&_3e8<=(270+_3dc)){_3df[side]=size*sinr/2+_3e0*cosr;_3df[_3e9?"l":"r"]=size*cosr/2+_3e0*sinr;_3df[_3e9?"r":"l"]=size*cosr/2;}else{if(_3e8<_3dc||(180<_3e8&&_3e8<(180-_3dc))){_3df[side]=size*sinr+_3e0*cosr;_3df[_3e9?"r":"l"]=size*cosr+_3e0*sinr;}else{_3df[side]=size*sinr+_3e0*cosr;_3df[_3e9?"l":"r"]=size*cosr+_3e0*sinr;}}}break;}_3df[side]+=_3db+Math.max(_3e5.length,_3e6.length)+(o.title?(_3e7+_3e4):0);}}if(_3e0){this._cachedLabelWidth=_3e0;}return _3df;},render:function(dim,_3ea){if(!this.dirty){return this;}var o=this.opt,ta=this.chart.theme.axis,_3eb=o.leftBottom,_3ec=o.rotation%360,_3ed,stop,_3ee,_3ef=0,_3f0,_3f1,_3f2,_3f3,_3f4,_3f5,_3f6=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_3f7=o.titleFont||(ta.tick&&ta.tick.titleFont),_3f8=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_3f9=o.titleFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_3fa=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_3fb=o.titleOrientation||(ta.tick&&ta.tick.titleOrientation)||"axis",_3fc=this.chart.theme.getTick("major",o),_3fd=this.chart.theme.getTick("minor",o),_3fe=this.chart.theme.getTick("micro",o),_3ff=Math.max(_3fc.length,_3fd.length,_3fe.length),_400="stroke" in o?o.stroke:ta.stroke,size=_3f6?g.normalizedLength(g.splitFontString(_3f6).size):0,cosr=Math.abs(Math.cos(_3ec*Math.PI/180)),sinr=Math.abs(Math.sin(_3ec*Math.PI/180)),_401=_3f7?g.normalizedLength(g.splitFontString(_3f7).size):0;if(_3ec<0){_3ec+=360;}if(this.vertical){_3ed={y:dim.height-_3ea.b};stop={y:_3ea.t};_3ee={y:(dim.height-_3ea.b+_3ea.t)/2};_3f0=size*sinr+(this._cachedLabelWidth||0)*cosr+_3db+Math.max(_3fc.length,_3fd.length)+_401+_3fa;_3f1={x:0,y:-1};_3f4={x:0,y:0};_3f2={x:1,y:0};_3f3={x:_3db,y:0};switch(_3ec){case 0:_3f5="end";_3f4.y=size*0.4;break;case 90:_3f5="middle";_3f4.x=-size;break;case 180:_3f5="start";_3f4.y=-size*0.4;break;case 270:_3f5="middle";break;default:if(_3ec<_3dc){_3f5="end";_3f4.y=size*0.4;}else{if(_3ec<90){_3f5="end";_3f4.y=size*0.4;}else{if(_3ec<(180-_3dc)){_3f5="start";}else{if(_3ec<(180+_3dc)){_3f5="start";_3f4.y=-size*0.4;}else{if(_3ec<270){_3f5="start";_3f4.x=_3eb?0:size*0.4;}else{if(_3ec<(360-_3dc)){_3f5="end";_3f4.x=_3eb?0:size*0.4;}else{_3f5="end";_3f4.y=size*0.4;}}}}}}}if(_3eb){_3ed.x=stop.x=_3ea.l;_3ef=(_3fb&&_3fb=="away")?90:270;_3ee.x=_3ea.l-_3f0+(_3ef==270?_401:0);_3f2.x=-1;_3f3.x=-_3f3.x;}else{_3ed.x=stop.x=dim.width-_3ea.r;_3ef=(_3fb&&_3fb=="axis")?90:270;_3ee.x=dim.width-_3ea.r+_3f0-(_3ef==270?0:_401);switch(_3f5){case "start":_3f5="end";break;case "end":_3f5="start";break;case "middle":_3f4.x+=size;break;}}}else{_3ed={x:_3ea.l};stop={x:dim.width-_3ea.r};_3ee={x:(dim.width-_3ea.r+_3ea.l)/2};_3f0=size*cosr+(this._cachedLabelWidth||0)*sinr+_3db+Math.max(_3fc.length,_3fd.length)+_401+_3fa;_3f1={x:1,y:0};_3f4={x:0,y:0};_3f2={x:0,y:1};_3f3={x:0,y:_3db};switch(_3ec){case 0:_3f5="middle";_3f4.y=size;break;case 90:_3f5="start";_3f4.x=-size*0.4;break;case 180:_3f5="middle";break;case 270:_3f5="end";_3f4.x=size*0.4;break;default:if(_3ec<(90-_3dc)){_3f5="start";_3f4.y=_3eb?size:0;}else{if(_3ec<(90+_3dc)){_3f5="start";_3f4.x=-size*0.4;}else{if(_3ec<180){_3f5="start";_3f4.y=_3eb?0:-size;}else{if(_3ec<(270-_3dc)){_3f5="end";_3f4.y=_3eb?0:-size;}else{if(_3ec<(270+_3dc)){_3f5="end";_3f4.y=_3eb?size*0.4:0;}else{_3f5="end";_3f4.y=_3eb?size:0;}}}}}}if(_3eb){_3ed.y=stop.y=dim.height-_3ea.b;_3ef=(_3fb&&_3fb=="axis")?180:0;_3ee.y=dim.height-_3ea.b+_3f0-(_3ef?_401:0);}else{_3ed.y=stop.y=_3ea.t;_3ef=(_3fb&&_3fb=="away")?180:0;_3ee.y=_3ea.t-_3f0+(_3ef?0:_401);_3f2.y=-1;_3f3.y=-_3f3.y;switch(_3f5){case "start":_3f5="end";break;case "end":_3f5="start";break;case "middle":_3f4.y-=size;break;}}}this.cleanGroup();try{var s=this.group,c=this.scaler,t=this.ticks,_402,f=lin.getTransformerFromModel(this.scaler),_403=!_3ef&&!_3ec&&this.opt.htmlLabels&&!dojo.isIE&&!dojo.isOpera?"html":"gfx",dx=_3f2.x*_3fc.length,dy=_3f2.y*_3fc.length;s.createLine({x1:_3ed.x,y1:_3ed.y,x2:stop.x,y2:stop.y}).setStroke(_400);if(o.title){var _404=dc.axis2d.common.createText[_403](this.chart,s,_3ee.x,_3ee.y,"middle",o.title,_3f7,_3f9);if(_403=="html"){this.htmlElements.push(_404);}else{_404.setTransform(g.matrix.rotategAt(_3ef,_3ee.x,_3ee.y));}}dojo.forEach(t.major,function(tick){var _405=f(tick.value),elem,x=_3ed.x+_3f1.x*_405,y=_3ed.y+_3f1.y*_405;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3fc);if(tick.label){var _406=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_3f6,o.maxLabelCharCount):{text:tick.label,truncated:false};_406=o.maxLabelSize?this.getTextWithLimitLength(_406.text,_3f6,o.maxLabelSize,_406.truncated):_406;elem=dc.axis2d.common.createText[_403](this.chart,s,x+dx+_3f3.x+(_3ec?0:_3f4.x),y+dy+_3f3.y+(_3ec?0:_3f4.y),_3f5,_406.text,_3f6,_3f8);_406.truncated&&this.labelTooltip(elem,this.chart,tick.label,_406.text,_3f6,_403);if(_403=="html"){this.htmlElements.push(elem);}else{if(_3ec){elem.setTransform([{dx:_3f4.x,dy:_3f4.y},g.matrix.rotategAt(_3ec,x+dx+_3f3.x,y+dy+_3f3.y)]);}}}},this);dx=_3f2.x*_3fd.length;dy=_3f2.y*_3fd.length;_402=c.minMinorStep<=c.minor.tick*c.bounds.scale;dojo.forEach(t.minor,function(tick){var _407=f(tick.value),elem,x=_3ed.x+_3f1.x*_407,y=_3ed.y+_3f1.y*_407;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3fd);if(_402&&tick.label){var _408=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_3f6,o.maxLabelCharCount):{text:tick.label,truncated:false};_408=o.maxLabelSize?this.getTextWithLimitLength(_408.text,_3f6,o.maxLabelSize,_408.truncated):_408;elem=dc.axis2d.common.createText[_403](this.chart,s,x+dx+_3f3.x+(_3ec?0:_3f4.x),y+dy+_3f3.y+(_3ec?0:_3f4.y),_3f5,_408.text,_3f6,_3f8);_408.truncated&&this.labelTooltip(elem,this.chart,tick.label,_408.text,_3f6,_403);if(_403=="html"){this.htmlElements.push(elem);}else{if(_3ec){elem.setTransform([{dx:_3f4.x,dy:_3f4.y},g.matrix.rotategAt(_3ec,x+dx+_3f3.x,y+dy+_3f3.y)]);}}}},this);dx=_3f2.x*_3fe.length;dy=_3f2.y*_3fe.length;dojo.forEach(t.micro,function(tick){var _409=f(tick.value),elem,x=_3ed.x+_3f1.x*_409,y=_3ed.y+_3f1.y*_409;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3fe);},this);}catch(e){}this.dirty=false;return this;},labelTooltip:function(elem,_40a,_40b,_40c,font,_40d){if(!dijit||!dijit.Tooltip){return;}var _40e={type:"rect"},_40f=["above","below"],_410=dojox.gfx._base._getTextBox(_40c,{font:font}).w||0;fontHeight=font?g.normalizedLength(g.splitFontString(font).size):0;if(_40d=="html"){dojo.mixin(_40e,dojo.coords(elem.firstChild,true));_40e.width=Math.ceil(_410);_40e.height=Math.ceil(fontHeight);this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseover",this,function(e){dijit.showTooltip(_40b,_40e,_40f);})});this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseout",this,function(e){dijit.hideTooltip(_40e);})});}else{var shp=elem.getShape(),lt=dojo.coords(_40a.node,true);_40e=dojo.mixin(_40e,{x:shp.x-_410/2,y:shp.y});_40e.x+=lt.x;_40e.y+=lt.y;_40e.x=Math.round(_40e.x);_40e.y=Math.round(_40e.y);_40e.width=Math.ceil(_410);_40e.height=Math.ceil(fontHeight);this._events.push({shape:elem,handle:elem.connect("onmouseenter",this,function(e){dijit.showTooltip(_40b,_40e,_40f);})});this._events.push({shape:elem,handle:elem.connect("onmouseleave",this,function(e){dijit.hideTooltip(_40e);})});}}});})();}if(!dojo._hasResource["dojox.charting.plot2d.common"]){dojo._hasResource["dojox.charting.plot2d.common"]=true;dojo.provide("dojox.charting.plot2d.common");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common;dojo.mixin(dojox.charting.plot2d.common,{makeStroke:function(_411){if(!_411){return _411;}if(typeof _411=="string"||_411 instanceof dojo.Color){_411={color:_411};}return dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_411);},augmentColor:function(_412,_413){var t=new dojo.Color(_412),c=new dojo.Color(_413);c.a=t.a;return c;},augmentStroke:function(_414,_415){var s=dc.makeStroke(_414);if(s){s.color=dc.augmentColor(s.color,_415);}return s;},augmentFill:function(fill,_416){var fc,c=new dojo.Color(_416);if(typeof fill=="string"||fill instanceof dojo.Color){return dc.augmentColor(fill,_416);}return fill;},defaultStats:{vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY,hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(_417){var _418=dojo.delegate(dc.defaultStats);for(var i=0;i<_417.length;++i){var run=_417[i];for(var j=0;j<run.data.length;j++){if(run.data[j]!==null){if(typeof run.data[j]=="number"){var _419=_418.vmin,_41a=_418.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){if(val!==null){var x=i+1,y=val;if(isNaN(y)){y=0;}_418.hmin=Math.min(_418.hmin,x);_418.hmax=Math.max(_418.hmax,x);_418.vmin=Math.min(_418.vmin,y);_418.vmax=Math.max(_418.vmax,y);}});}if("ymin" in run){_418.vmin=Math.min(_419,run.ymin);}if("ymax" in run){_418.vmax=Math.max(_41a,run.ymax);}}else{var _41b=_418.hmin,_41c=_418.hmax,_419=_418.vmin,_41a=_418.vmax;if(!("xmin" in run)||!("xmax" in run)||!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){if(val!==null){var x="x" in val?val.x:i+1,y=val.y;if(isNaN(x)){x=0;}if(isNaN(y)){y=0;}_418.hmin=Math.min(_418.hmin,x);_418.hmax=Math.max(_418.hmax,x);_418.vmin=Math.min(_418.vmin,y);_418.vmax=Math.max(_418.vmax,y);}});}if("xmin" in run){_418.hmin=Math.min(_41b,run.xmin);}if("xmax" in run){_418.hmax=Math.max(_41c,run.xmax);}if("ymin" in run){_418.vmin=Math.min(_419,run.ymin);}if("ymax" in run){_418.vmax=Math.max(_41a,run.ymax);}}break;}}}return _418;},calculateBarSize:function(_41d,opt,_41e){if(!_41e){_41e=1;}var gap=opt.gap,size=(_41d-2*gap)/_41e;if("minBarSize" in opt){size=Math.max(size,opt.minBarSize);}if("maxBarSize" in opt){size=Math.min(size,opt.maxBarSize);}size=Math.max(size,1);gap=(_41d-size*_41e)/2;return {size:size,gap:gap};},collectStackedStats:function(_41f){var _420=dojo.clone(dc.defaultStats);if(_41f.length){_420.hmin=Math.min(_420.hmin,1);_420.hmax=df.foldl(_41f,"seed, run -> Math.max(seed, run.data.length)",_420.hmax);for(var i=0;i<_420.hmax;++i){var v=_41f[0].data[i];v=v&&(typeof v=="number"?v:v.y);if(isNaN(v)){v=0;}_420.vmin=Math.min(_420.vmin,v);for(var j=1;j<_41f.length;++j){var t=_41f[j].data[i];t=t&&(typeof t=="number"?t:t.y);if(isNaN(t)){t=0;}v+=t;}_420.vmax=Math.max(_420.vmax,v);}}return _420;},curve:function(a,_421){var arr=a.slice(0);if(_421=="x"){arr[arr.length]=arr[0];}var p=dojo.map(arr,function(item,i){if(i==0){return "M"+item.x+","+item.y;}if(!isNaN(_421)){var dx=item.x-arr[i-1].x,dy=arr[i-1].y;return "C"+(item.x-(_421-1)*(dx/_421))+","+dy+" "+(item.x-(dx/_421))+","+item.y+" "+item.x+","+item.y;}else{if(_421=="X"||_421=="x"||_421=="S"){var p0,p1=arr[i-1],p2=arr[i],p3;var bz1x,bz1y,bz2x,bz2y;var f=1/6;if(i==1){if(_421=="x"){p0=arr[arr.length-2];}else{p0=p1;}f=1/3;}else{p0=arr[i-2];}if(i==(arr.length-1)){if(_421=="x"){p3=arr[1];}else{p3=p2;}f=1/3;}else{p3=arr[i+1];}var p1p2=Math.sqrt((p2.x-p1.x)*(p2.x-p1.x)+(p2.y-p1.y)*(p2.y-p1.y));var p0p2=Math.sqrt((p2.x-p0.x)*(p2.x-p0.x)+(p2.y-p0.y)*(p2.y-p0.y));var p1p3=Math.sqrt((p3.x-p1.x)*(p3.x-p1.x)+(p3.y-p1.y)*(p3.y-p1.y));var _422=p0p2*f;var _423=p1p3*f;if(_422>p1p2/2&&_423>p1p2/2){_422=p1p2/2;_423=p1p2/2;}else{if(_422>p1p2/2){_422=p1p2/2;_423=p1p2/2*p1p3/p0p2;}else{if(_423>p1p2/2){_423=p1p2/2;_422=p1p2/2*p0p2/p1p3;}}}if(_421=="S"){if(p0==p1){_422=0;}if(p2==p3){_423=0;}}bz1x=p1.x+_422*(p2.x-p0.x)/p0p2;bz1y=p1.y+_422*(p2.y-p0.y)/p0p2;bz2x=p2.x-_423*(p3.x-p1.x)/p1p3;bz2y=p2.y-_423*(p3.y-p1.y)/p1p3;}}return "C"+(bz1x+","+bz1y+" "+bz2x+","+bz2y+" "+p2.x+","+p2.y);});return p.join(" ");},getLabel:function(_424,_425,_426){if(dojo.number){return (_425?dojo.number.format(_424,{places:_426}):dojo.number.format(_424))||"";}return _425?_424.toFixed(_426):_424.toString();}});})();}if(!dojo._hasResource["dojox.charting.scaler.primitive"]){dojo._hasResource["dojox.charting.scaler.primitive"]=true;dojo.provide("dojox.charting.scaler.primitive");dojox.charting.scaler.primitive={buildScaler:function(min,max,span,_427){if(min==max){min-=0.5;max+=0.5;}return {bounds:{lower:min,upper:max,from:min,to:max,scale:span/(max-min),span:span},scaler:dojox.charting.scaler.primitive};},buildTicks:function(_428,_429){return {major:[],minor:[],micro:[]};},getTransformerFromModel:function(_42a){var _42b=_42a.bounds.from,_42c=_42a.bounds.scale;return function(x){return (x-_42b)*_42c;};},getTransformerFromPlot:function(_42d){var _42e=_42d.bounds.from,_42f=_42d.bounds.scale;return function(x){return x/_42f+_42e;};}};}if(!dojo._hasResource["dojox.charting.plot2d._PlotEvents"]){dojo._hasResource["dojox.charting.plot2d._PlotEvents"]=true;dojo.provide("dojox.charting.plot2d._PlotEvents");dojo.declare("dojox.charting.plot2d._PlotEvents",null,{constructor:function(){this._shapeEvents=[];this._eventSeries={};},destroy:function(){this.resetEvents();this.inherited(arguments);},plotEvent:function(o){},raiseEvent:function(o){this.plotEvent(o);var t=dojo.delegate(o);t.originalEvent=o.type;t.originalPlot=o.plot;t.type="onindirect";dojo.forEach(this.chart.stack,function(plot){if(plot!==this&&plot.plotEvent){t.plot=plot;plot.plotEvent(t);}},this);},connect:function(_430,_431){this.dirty=true;return dojo.connect(this,"plotEvent",_430,_431);},events:function(){var ls=this.plotEvent._listeners;if(!ls||!ls.length){return false;}for(var i in ls){if(!(i in Array.prototype)){return true;}}return false;},resetEvents:function(){if(this._shapeEvents.length){dojo.forEach(this._shapeEvents,function(item){item.shape.disconnect(item.handle);});this._shapeEvents=[];}this.raiseEvent({type:"onplotreset",plot:this});},_connectSingleEvent:function(o,_432){this._shapeEvents.push({shape:o.eventMask,handle:o.eventMask.connect(_432,this,function(e){o.type=_432;o.event=e;this.raiseEvent(o);o.event=null;})});},_connectEvents:function(o){if(o){o.chart=this.chart;o.plot=this;o.hAxis=this.hAxis||null;o.vAxis=this.vAxis||null;o.eventMask=o.eventMask||o.shape;this._connectSingleEvent(o,"onmouseover");this._connectSingleEvent(o,"onmouseout");this._connectSingleEvent(o,"onclick");}},_reconnectEvents:function(_433){var a=this._eventSeries[_433];if(a){dojo.forEach(a,this._connectEvents,this);}},fireEvent:function(_434,_435,_436,_437){var s=this._eventSeries[_434];if(s&&s.length&&_436<s.length){var o=s[_436];o.type=_435;o.event=_437||null;this.raiseEvent(o);o.event=null;}}});}if(!dojo._hasResource["dojox.charting.plot2d.Base"]){dojo._hasResource["dojox.charting.plot2d.Base"]=true;dojo.provide("dojox.charting.plot2d.Base");dojo.declare("dojox.charting.plot2d.Base",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{constructor:function(_438,_439){this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};},clear:function(){this.series=[];this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},addSeries:function(run){this.series.push(run);return this;},getSeriesStats:function(){return dojox.charting.plot2d.common.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},isDataDirty:function(){return dojo.some(this.series,function(item){return item.dirty;});},performZoom:function(dim,_43a){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_43b=dim.height-_43a.b,_43c=this._hScaler.bounds,_43d=(_43c.from-_43c.lower)*_43c.scale,_43e=this._vScaler.bounds,_43f=(_43e.from-_43e.lower)*_43e.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_43d)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_43f-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_43a.l*(1-rHScale),_43b*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_43d,yoffset:_43f});this.zoomQueue.push(anim);dojo.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},render:function(dim,_440){return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_441){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_441.hmin,_441.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_441.hmin,_441.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_441.vmin,_441.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_441.vmin,_441.vmax,dim.height);}return this;}});}if(!dojo._hasResource["dojox.charting.plot2d.Default"]){dojo._hasResource["dojox.charting.plot2d.Default"]=true;dojo.provide("dojox.charting.plot2d.Default");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_442=df.lambda("item.purgeGroup()");var _443=1200;dojo.declare("dojox.charting.plot2d.Default",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",lines:true,areas:false,markers:false,tension:"",animate:false},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_444,_445){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_445);du.updateWithPattern(this.opt,_445,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_446){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_446);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_442);this._eventSeries={};this.cleanGroup();this.group.setTransform(null);var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_447,_448,_449,_44a=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}var _44b=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_44c=[],_44d=[],rseg=null,_44e,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_44f=this._eventSeries[run.name]=new Array(run.data.length);for(var j=0;j<run.data.length;j++){if(run.data[j]!=null){if(!rseg){rseg=[];_44d.push(j);_44c.push(rseg);}rseg.push(run.data[j]);}else{rseg=null;}}for(var seg=0;seg<_44c.length;seg++){if(typeof _44c[seg][0]=="number"){_44e=dojo.map(_44c[seg],function(v,i){return {x:ht(i+_44d[seg]+1)+_446.l,y:dim.height-_446.b-vt(v)};},this);}else{_44e=dojo.map(_44c[seg],function(v,i){return {x:ht(v.x)+_446.l,y:dim.height-_446.b-vt(v.y)};},this);}var _450=this.opt.tension?dc.curve(_44e,this.opt.tension):"";if(this.opt.areas&&_44e.length>1){var fill=_44b.series.fill;var _451=dojo.clone(_44e);if(this.opt.tension){var _452="L"+_451[_451.length-1].x+","+(dim.height-_446.b)+" L"+_451[0].x+","+(dim.height-_446.b)+" L"+_451[0].x+","+_451[0].y;run.dyn.fill=s.createPath(_450+" "+_452).setFill(fill).getFill();}else{_451.push({x:_44e[_44e.length-1].x,y:dim.height-_446.b});_451.push({x:_44e[0].x,y:dim.height-_446.b});_451.push(_44e[0]);run.dyn.fill=s.createPolyline(_451).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_447=_44b.series.stroke;if(_44b.series.outline){_448=run.dyn.outline=dc.makeStroke(_44b.series.outline);_448.width=2*_448.width+_447.width;}}if(this.opt.markers){run.dyn.marker=_44b.symbol;}var _453=null,_454=null,_455=null;if(_447&&_44b.series.shadow&&_44e.length>1){var _456=_44b.series.shadow,_457=dojo.map(_44e,function(c){return {x:c.x+_456.dx,y:c.y+_456.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_457,this.opt.tension)).setStroke(_456).getStroke();}else{run.dyn.shadow=s.createPolyline(_457).setStroke(_456).getStroke();}}if(this.opt.markers&&_44b.marker.shadow){_456=_44b.marker.shadow;_455=dojo.map(_457,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_44b.symbol).setStroke(_456).setFill(_456.color);},this);}}if(this.opt.lines&&_44e.length>1){if(_448){if(this.opt.tension){run.dyn.outline=s.createPath(_450).setStroke(_448).getStroke();}else{run.dyn.outline=s.createPolyline(_44e).setStroke(_448).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_450).setStroke(_447).getStroke();}else{run.dyn.stroke=s.createPolyline(_44e).setStroke(_447).getStroke();}}if(this.opt.markers){_453=new Array(_44e.length);_454=new Array(_44e.length);_448=null;if(_44b.marker.outline){_448=dc.makeStroke(_44b.marker.outline);_448.width=2*_448.width+(_44b.marker.stroke?_44b.marker.stroke.width:0);}dojo.forEach(_44e,function(c,i){var path="M"+c.x+" "+c.y+" "+_44b.symbol;if(_448){_454[i]=s.createPath(path).setStroke(_448);}_453[i]=s.createPath(path).setStroke(_44b.marker.stroke).setFill(_44b.marker.fill);},this);run.dyn.markerFill=_44b.marker.fill;run.dyn.markerStroke=_44b.marker.stroke;if(_44a){dojo.forEach(_453,function(s,i){var o={element:"marker",index:i+_44d[seg],run:run,shape:s,outline:_454[i]||null,shadow:_455&&_455[i]||null,cx:_44e[i].x,cy:_44e[i].y};if(typeof _44c[seg][0]=="number"){o.x=i+_44d[seg]+1;o.y=_44c[seg][i];}else{o.x=_44c[seg][i].x;o.y=_44c[seg][i].y;}this._connectEvents(o);_44f[i+_44d[seg]]=o;},this);}else{delete this._eventSeries[run.name];}}}run.dirty=false;}if(this.animate){var _458=this.group;dojox.gfx.fx.animateTransform(dojo.delegate({shape:_458,duration:_443,transform:[{name:"translate",start:[0,dim.height-_446.b],end:[0,0]},{name:"scale",start:[1,0],end:[1,1]},{name:"original"}]},this.animate)).play();}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Lines"]){dojo._hasResource["dojox.charting.plot2d.Lines"]=true;dojo.provide("dojox.charting.plot2d.Lines");dojo.declare("dojox.charting.plot2d.Lines",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Areas"]){dojo._hasResource["dojox.charting.plot2d.Areas"]=true;dojo.provide("dojox.charting.plot2d.Areas");dojo.declare("dojox.charting.plot2d.Areas",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Markers"]){dojo._hasResource["dojox.charting.plot2d.Markers"]=true;dojo.provide("dojox.charting.plot2d.Markers");dojo.declare("dojox.charting.plot2d.Markers",dojox.charting.plot2d.Default,{constructor:function(){this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]){dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]=true;dojo.provide("dojox.charting.plot2d.MarkersOnly");dojo.declare("dojox.charting.plot2d.MarkersOnly",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=false;this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Scatter"]){dojo._hasResource["dojox.charting.plot2d.Scatter"]=true;dojo.provide("dojox.charting.plot2d.Scatter");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_459=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Scatter",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",shadows:null,animate:null},optionalParams:{markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_45a,_45b){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_45b);du.updateWithPattern(this.opt,_45b,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_45c){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_45c);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_459);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_45d=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}var _45e=t.next("marker",[this.opt,run]),s=run.group,_45f,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(typeof run.data[0]=="number"){_45f=dojo.map(run.data,function(v,i){return {x:ht(i+1)+_45c.l,y:dim.height-_45c.b-vt(v)};},this);}else{_45f=dojo.map(run.data,function(v,i){return {x:ht(v.x)+_45c.l,y:dim.height-_45c.b-vt(v.y)};},this);}var _460=new Array(_45f.length),_461=new Array(_45f.length),_462=new Array(_45f.length);dojo.forEach(_45f,function(c,i){var _463=typeof run.data[i]=="number"?t.post(_45e,"marker"):t.addMixin(_45e,"marker",run.data[i],true),path="M"+c.x+" "+c.y+" "+_463.symbol;if(_463.marker.shadow){_460[i]=s.createPath("M"+(c.x+_463.marker.shadow.dx)+" "+(c.y+_463.marker.shadow.dy)+" "+_463.symbol).setStroke(_463.marker.shadow).setFill(_463.marker.shadow.color);if(this.animate){this._animateScatter(_460[i],dim.height-_45c.b);}}if(_463.marker.outline){var _464=dc.makeStroke(_463.marker.outline);_464.width=2*_464.width+_463.marker.stroke.width;_462[i]=s.createPath(path).setStroke(_464);if(this.animate){this._animateScatter(_462[i],dim.height-_45c.b);}}var _465=dc.makeStroke(_463.marker.stroke),fill=this._plotFill(_463.marker.fill,dim,_45c);if(fill&&(fill.type==="linear"||fill.type=="radial")){var _466=dojox.gfx.gradutils.getColor(fill,{x:c.x,y:c.y});if(_465){_465.color=_466;}_461[i]=s.createPath(path).setStroke(_465).setFill(_466);}else{_461[i]=s.createPath(path).setStroke(_465).setFill(fill);}if(this.animate){this._animateScatter(_461[i],dim.height-_45c.b);}},this);if(_461.length){run.dyn.stroke=_461[_461.length-1].getStroke();run.dyn.fill=_461[_461.length-1].getFill();}if(_45d){var _467=new Array(_461.length);dojo.forEach(_461,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_462&&_462[i]||null,shadow:_460&&_460[i]||null,cx:_45f[i].x,cy:_45f[i].y};if(typeof run.data[0]=="number"){o.x=i+1;o.y=run.data[i];}else{o.x=run.data[i].x;o.y=run.data[i].y;}this._connectEvents(o);_467[i]=o;},this);this._eventSeries[run.name]=_467;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateScatter:function(_468,_469){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_468,duration:1200,transform:[{name:"translate",start:[0,_469],end:[0,0]},{name:"scale",start:[0,0],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.lang.functional.sequence"]){dojo._hasResource["dojox.lang.functional.sequence"]=true;dojo.provide("dojox.lang.functional.sequence");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{repeat:function(n,f,z,o){o=o||d.global;f=df.lambda(f);var t=new Array(n),i=1;t[0]=z;for(;i<n;t[i]=z=f.call(o,z),++i){}return t;},until:function(pr,f,z,o){o=o||d.global;f=df.lambda(f);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(z),z=f.call(o,z)){}return t;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Stacked"]){dojo._hasResource["dojox.charting.plot2d.Stacked"]=true;dojo.provide("dojox.charting.plot2d.Stacked");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_46a=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Stacked",dojox.charting.plot2d.Default,{getSeriesStats:function(){var _46b=dc.collectStackedStats(this.series);this._maxRunLength=_46b.hmax;return _46b;},render:function(dim,_46c){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_46c);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_46a);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_46d=this.events(),ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _46e=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_46f,_470=dojo.map(acc,function(v,i){return {x:ht(i+1)+_46c.l,y:dim.height-_46c.b-vt(v)};},this);var _471=this.opt.tension?dc.curve(_470,this.opt.tension):"";if(this.opt.areas){var _472=dojo.clone(_470);if(this.opt.tension){var p=dc.curve(_472,this.opt.tension);p+=" L"+_470[_470.length-1].x+","+(dim.height-_46c.b)+" L"+_470[0].x+","+(dim.height-_46c.b)+" L"+_470[0].x+","+_470[0].y;run.dyn.fill=s.createPath(p).setFill(_46e.series.fill).getFill();}else{_472.push({x:_470[_470.length-1].x,y:dim.height-_46c.b});_472.push({x:_470[0].x,y:dim.height-_46c.b});_472.push(_470[0]);run.dyn.fill=s.createPolyline(_472).setFill(_46e.series.fill).getFill();}}if(this.opt.lines||this.opt.markers){if(_46e.series.outline){_46f=dc.makeStroke(_46e.series.outline);_46f.width=2*_46f.width+_46e.series.stroke.width;}}if(this.opt.markers){run.dyn.marker=_46e.symbol;}var _473,_474,_475;if(_46e.series.shadow&&_46e.series.stroke){var _476=_46e.series.shadow,_477=dojo.map(_470,function(c){return {x:c.x+_476.dx,y:c.y+_476.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_477,this.opt.tension)).setStroke(_476).getStroke();}else{run.dyn.shadow=s.createPolyline(_477).setStroke(_476).getStroke();}}if(this.opt.markers){_476=_46e.marker.shadow;_475=dojo.map(_477,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_46e.symbol).setStroke(_476).setFill(_476.color);},this);}}if(this.opt.lines){if(_46f){if(this.opt.tension){run.dyn.outline=s.createPath(_471).setStroke(_46f).getStroke();}else{run.dyn.outline=s.createPolyline(_470).setStroke(_46f).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_471).setStroke(_46e.series.stroke).getStroke();}else{run.dyn.stroke=s.createPolyline(_470).setStroke(_46e.series.stroke).getStroke();}}if(this.opt.markers){_473=new Array(_470.length);_474=new Array(_470.length);_46f=null;if(_46e.marker.outline){_46f=dc.makeStroke(_46e.marker.outline);_46f.width=2*_46f.width+(_46e.marker.stroke?_46e.marker.stroke.width:0);}dojo.forEach(_470,function(c,i){var path="M"+c.x+" "+c.y+" "+_46e.symbol;if(_46f){_474[i]=s.createPath(path).setStroke(_46f);}_473[i]=s.createPath(path).setStroke(_46e.marker.stroke).setFill(_46e.marker.fill);},this);if(_46d){var _478=new Array(_473.length);dojo.forEach(_473,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_474[i]||null,shadow:_475&&_475[i]||null,cx:_470[i].x,cy:_470[i].y,x:i+1,y:run.data[i]};this._connectEvents(o);_478[i]=o;},this);this._eventSeries[run.name]=_478;}else{delete this._eventSeries[run.name];}}run.dirty=false;for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedLines"]){dojo._hasResource["dojox.charting.plot2d.StackedLines"]=true;dojo.provide("dojox.charting.plot2d.StackedLines");dojo.declare("dojox.charting.plot2d.StackedLines",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.StackedAreas"]){dojo._hasResource["dojox.charting.plot2d.StackedAreas"]=true;dojo.provide("dojox.charting.plot2d.StackedAreas");dojo.declare("dojox.charting.plot2d.StackedAreas",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Columns"]){dojo._hasResource["dojox.charting.plot2d.Columns"]=true;dojo.provide("dojox.charting.plot2d.Columns");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_479=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Columns",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_47a,_47b){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_47b);du.updateWithPattern(this.opt,_47b,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _47c=dc.collectSimpleStats(this.series);_47c.hmin-=0.5;_47c.hmax+=0.5;return _47c;},render:function(dim,_47d){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_47d);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_479);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_47e,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_47f=Math.max(0,this._vScaler.bounds.lower),_480=vt(_47f),_481=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_47e=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _482=t.next("column",[this.opt,run]),s=run.group,_483=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _484=run.data[j];if(_484!==null){var v=typeof _484=="number"?_484:_484.y,vv=vt(v),_485=vv-_480,h=Math.abs(_485),_486=typeof _484!="number"?t.addMixin(_482,"column",_484,true):t.post(_482,"column");if(_47e>=1&&h>=1){var rect={x:_47d.l+ht(j+0.5)+gap,y:dim.height-_47d.b-(v>_47f?vv:_480),width:_47e,height:h};var _487=this._plotFill(_486.series.fill,dim,_47d);_487=this._shapeFill(_487,rect);var _488=s.createRect(rect).setFill(_487).setStroke(_486.series.stroke);run.dyn.fill=_488.getFill();run.dyn.stroke=_488.getStroke();if(_481){var o={element:"column",index:j,run:run,shape:_488,x:j+0.5,y:v};this._connectEvents(o);_483[j]=o;}if(this.animate){this._animateColumn(_488,dim.height-_47d.b-_480,h);}}}}this._eventSeries[run.name]=_483;run.dirty=false;}this.dirty=false;return this;},_animateColumn:function(_489,_48a,_48b){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_489,duration:1200,transform:[{name:"translate",start:[0,_48a-(_48a/_48b)],end:[0,0]},{name:"scale",start:[1,1/_48b],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedColumns"]){dojo._hasResource["dojox.charting.plot2d.StackedColumns"]=true;dojo.provide("dojox.charting.plot2d.StackedColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_48c=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedColumns",dojox.charting.plot2d.Columns,{getSeriesStats:function(){var _48d=dc.collectStackedStats(this.series);this._maxRunLength=_48d.hmax;_48d.hmin-=0.5;_48d.hmax+=0.5;return _48d;},render:function(dim,_48e){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _48f=run.data[j];if(_48f!==null){var v=typeof _48f=="number"?_48f:_48f.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_48e);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_48c);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_490,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_491=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_490=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _492=t.next("column",[this.opt,run]),s=run.group,_493=new Array(acc.length);for(var j=0;j<acc.length;++j){var _48f=run.data[j];if(_48f!==null){var v=acc[j],_494=vt(v),_495=typeof _48f!="number"?t.addMixin(_492,"column",_48f,true):t.post(_492,"column");if(_490>=1&&_494>=1){var rect={x:_48e.l+ht(j+0.5)+gap,y:dim.height-_48e.b-vt(v),width:_490,height:_494};var _496=this._plotFill(_495.series.fill,dim,_48e);_496=this._shapeFill(_496,rect);var _497=s.createRect(rect).setFill(_496).setStroke(_495.series.stroke);run.dyn.fill=_497.getFill();run.dyn.stroke=_497.getStroke();if(_491){var o={element:"column",index:j,run:run,shape:_497,x:j+0.5,y:v};this._connectEvents(o);_493[j]=o;}if(this.animate){this._animateColumn(_497,dim.height-_48e.b,_494);}}}}this._eventSeries[run.name]=_493;run.dirty=false;for(var j=0;j<run.data.length;++j){var _48f=run.data[j];if(_48f!==null){var v=typeof _48f=="number"?_48f:_48f.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]){dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]=true;dojo.provide("dojox.charting.plot2d.ClusteredColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_498=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredColumns",dojox.charting.plot2d.Columns,{render:function(dim,_499){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_499);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_498);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_49a,_49b,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_49c=Math.max(0,this._vScaler.bounds.lower),_49d=vt(_49c),_49e=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_49a=_49b=f.size;for(var i=0;i<this.series.length;++i){var run=this.series[i],_49f=_49b*i;if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4a0=t.next("column",[this.opt,run]),s=run.group,_4a1=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _4a2=run.data[j];if(_4a2!==null){var v=typeof _4a2=="number"?_4a2:_4a2.y,vv=vt(v),_4a3=vv-_49d,h=Math.abs(_4a3),_4a4=typeof _4a2!="number"?t.addMixin(_4a0,"column",_4a2,true):t.post(_4a0,"column");if(_49a>=1&&h>=1){var rect={x:_499.l+ht(j+0.5)+gap+_49f,y:dim.height-_499.b-(v>_49c?vv:_49d),width:_49a,height:h};var _4a5=this._plotFill(_4a4.series.fill,dim,_499);_4a5=this._shapeFill(_4a5,rect);var _4a6=s.createRect(rect).setFill(_4a5).setStroke(_4a4.series.stroke);run.dyn.fill=_4a6.getFill();run.dyn.stroke=_4a6.getStroke();if(_49e){var o={element:"column",index:j,run:run,shape:_4a6,x:j+0.5,y:v};this._connectEvents(o);_4a1[j]=o;}if(this.animate){this._animateColumn(_4a6,dim.height-_499.b-_49d,h);}}}}this._eventSeries[run.name]=_4a1;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bars"]){dojo._hasResource["dojox.charting.plot2d.Bars"]=true;dojo.provide("dojox.charting.plot2d.Bars");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_4a7=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bars",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_4a8,_4a9){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4a9);du.updateWithPattern(this.opt,_4a9,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _4aa=dc.collectSimpleStats(this.series),t;_4aa.hmin-=0.5;_4aa.hmax+=0.5;t=_4aa.hmin,_4aa.hmin=_4aa.vmin,_4aa.vmin=t;t=_4aa.hmax,_4aa.hmax=_4aa.vmax,_4aa.vmax=t;return _4aa;},render:function(dim,_4ab){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4ab);}this.dirty=this.isDirty();this.resetEvents();if(this.dirty){dojo.forEach(this.series,_4a7);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4ac,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4ad=Math.max(0,this._hScaler.bounds.lower),_4ae=ht(_4ad),_4af=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_4ac=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4b0=t.next("bar",[this.opt,run]),s=run.group,_4b1=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _4b2=run.data[j];if(_4b2!==null){var v=typeof _4b2=="number"?_4b2:_4b2.y,hv=ht(v),_4b3=hv-_4ae,w=Math.abs(_4b3),_4b4=typeof _4b2!="number"?t.addMixin(_4b0,"bar",_4b2,true):t.post(_4b0,"bar");if(w>=1&&_4ac>=1){var rect={x:_4ab.l+(v<_4ad?hv:_4ae),y:dim.height-_4ab.b-vt(j+1.5)+gap,width:w,height:_4ac};var _4b5=this._plotFill(_4b4.series.fill,dim,_4ab);_4b5=this._shapeFill(_4b5,rect);var _4b6=s.createRect(rect).setFill(_4b5).setStroke(_4b4.series.stroke);run.dyn.fill=_4b6.getFill();run.dyn.stroke=_4b6.getStroke();if(_4af){var o={element:"bar",index:j,run:run,shape:_4b6,x:v,y:j+1.5};this._connectEvents(o);_4b1[j]=o;}if(this.animate){this._animateBar(_4b6,_4ab.l+_4ae,-w);}}}}this._eventSeries[run.name]=_4b1;run.dirty=false;}this.dirty=false;return this;},_animateBar:function(_4b7,_4b8,_4b9){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_4b7,duration:1200,transform:[{name:"translate",start:[_4b8-(_4b8/_4b9),0],end:[0,0]},{name:"scale",start:[1/_4b9,1],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedBars"]){dojo._hasResource["dojox.charting.plot2d.StackedBars"]=true;dojo.provide("dojox.charting.plot2d.StackedBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_4ba=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedBars",dojox.charting.plot2d.Bars,{getSeriesStats:function(){var _4bb=dc.collectStackedStats(this.series),t;this._maxRunLength=_4bb.hmax;_4bb.hmin-=0.5;_4bb.hmax+=0.5;t=_4bb.hmin,_4bb.hmin=_4bb.vmin,_4bb.vmin=t;t=_4bb.hmax,_4bb.hmax=_4bb.vmax,_4bb.vmax=t;return _4bb;},render:function(dim,_4bc){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _4bd=run.data[j];if(_4bd!==null){var v=typeof _4bd=="number"?_4bd:_4bd.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4bc);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4ba);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4be,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4bf=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_4be=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4c0=t.next("bar",[this.opt,run]),s=run.group,_4c1=new Array(acc.length);for(var j=0;j<acc.length;++j){var _4bd=run.data[j];if(_4bd!==null){var v=acc[j],_4c2=ht(v),_4c3=typeof _4bd!="number"?t.addMixin(_4c0,"bar",_4bd,true):t.post(_4c0,"bar");if(_4c2>=1&&_4be>=1){var rect={x:_4bc.l,y:dim.height-_4bc.b-vt(j+1.5)+gap,width:_4c2,height:_4be};var _4c4=this._plotFill(_4c3.series.fill,dim,_4bc);_4c4=this._shapeFill(_4c4,rect);var _4c5=s.createRect(rect).setFill(_4c4).setStroke(_4c3.series.stroke);run.dyn.fill=_4c5.getFill();run.dyn.stroke=_4c5.getStroke();if(_4bf){var o={element:"bar",index:j,run:run,shape:_4c5,x:v,y:j+1.5};this._connectEvents(o);_4c1[j]=o;}if(this.animate){this._animateBar(_4c5,_4bc.l,-_4c2);}}}}this._eventSeries[run.name]=_4c1;run.dirty=false;for(var j=0;j<run.data.length;++j){var _4bd=run.data[j];if(_4bd!==null){var v=typeof _4bd=="number"?_4bd:_4bd.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]){dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]=true;dojo.provide("dojox.charting.plot2d.ClusteredBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_4c6=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredBars",dojox.charting.plot2d.Bars,{render:function(dim,_4c7){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4c7);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4c6);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4c8,_4c9,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4ca=Math.max(0,this._hScaler.bounds.lower),_4cb=ht(_4ca),_4cc=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_4c8=_4c9=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i],_4cd=_4c9*(this.series.length-i-1);if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4ce=t.next("bar",[this.opt,run]),s=run.group,_4cf=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _4d0=run.data[j];if(_4d0!==null){var v=typeof _4d0=="number"?_4d0:_4d0.y,hv=ht(v),_4d1=hv-_4cb,w=Math.abs(_4d1),_4d2=typeof _4d0!="number"?t.addMixin(_4ce,"bar",_4d0,true):t.post(_4ce,"bar");if(w>=1&&_4c8>=1){var rect={x:_4c7.l+(v<_4ca?hv:_4cb),y:dim.height-_4c7.b-vt(j+1.5)+gap+_4cd,width:w,height:_4c8};var _4d3=this._plotFill(_4d2.series.fill,dim,_4c7);_4d3=this._shapeFill(_4d3,rect);var _4d4=s.createRect(rect).setFill(_4d3).setStroke(_4d2.series.stroke);run.dyn.fill=_4d4.getFill();run.dyn.stroke=_4d4.getStroke();if(_4cc){var o={element:"bar",index:j,run:run,shape:_4d4,x:v,y:j+1.5};this._connectEvents(o);_4cf[j]=o;}if(this.animate){this._animateBar(_4d4,_4c7.l+_4cb,-_4d1);}}}}this._eventSeries[run.name]=_4cf;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Grid"]){dojo._hasResource["dojox.charting.plot2d.Grid"]=true;dojo.provide("dojox.charting.plot2d.Grid");(function(){var du=dojox.lang.utils,dc=dojox.charting.plot2d.common;dojo.declare("dojox.charting.plot2d.Grid",dojox.charting.Element,{defaultParams:{hAxis:"x",vAxis:"y",hMajorLines:true,hMinorLines:false,vMajorLines:true,vMinorLines:false,hStripes:"none",vStripes:"none",animate:null},optionalParams:{},constructor:function(_4d5,_4d6){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4d6);this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.dirty=true;this.animate=this.opt.animate;this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};},clear:function(){this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},addSeries:function(run){return this;},getSeriesStats:function(){return dojo.delegate(dc.defaultStats);},initializeScalers:function(){return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},performZoom:function(dim,_4d7){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_4d8=dim.height-_4d7.b,_4d9=this._hAxis.getScaler().bounds,_4da=(_4d9.from-_4d9.lower)*_4d9.scale,_4db=this._vAxis.getScaler().bounds,_4dc=(_4db.from-_4db.lower)*_4db.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_4da)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_4dc-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_4d7.l*(1-rHScale),_4d8*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_4da,yoffset:_4dc});this.zoomQueue.push(anim);dojo.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},getRequiredColors:function(){return 0;},render:function(dim,_4dd){if(this.zoom){return this.performZoom(dim,_4dd);}this.dirty=this.isDirty();if(!this.dirty){return this;}this.cleanGroup();var s=this.group,ta=this.chart.theme.axis;try{var _4de=this._vAxis.getScaler(),vt=_4de.scaler.getTransformerFromModel(_4de),_4df=this._vAxis.getTicks();if(this.opt.hMinorLines){dojo.forEach(_4df.minor,function(tick){var y=dim.height-_4dd.b-vt(tick.value);var _4e0=s.createLine({x1:_4dd.l,y1:y,x2:dim.width-_4dd.r,y2:y}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_4e0,"h",_4dd.l,_4dd.r+_4dd.l-dim.width);}},this);}if(this.opt.hMajorLines){dojo.forEach(_4df.major,function(tick){var y=dim.height-_4dd.b-vt(tick.value);var _4e1=s.createLine({x1:_4dd.l,y1:y,x2:dim.width-_4dd.r,y2:y}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_4e1,"h",_4dd.l,_4dd.r+_4dd.l-dim.width);}},this);}}catch(e){}try{var _4e2=this._hAxis.getScaler(),ht=_4e2.scaler.getTransformerFromModel(_4e2),_4df=this._hAxis.getTicks();if(_4df&&this.opt.vMinorLines){dojo.forEach(_4df.minor,function(tick){var x=_4dd.l+ht(tick.value);var _4e3=s.createLine({x1:x,y1:_4dd.t,x2:x,y2:dim.height-_4dd.b}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_4e3,"v",dim.height-_4dd.b,dim.height-_4dd.b-_4dd.t);}},this);}if(_4df&&this.opt.vMajorLines){dojo.forEach(_4df.major,function(tick){var x=_4dd.l+ht(tick.value);var _4e4=s.createLine({x1:x,y1:_4dd.t,x2:x,y2:dim.height-_4dd.b}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_4e4,"v",dim.height-_4dd.b,dim.height-_4dd.b-_4dd.t);}},this);}}catch(e){}this.dirty=false;return this;},_animateGrid:function(_4e5,type,_4e6,size){var _4e7=type=="h"?[_4e6,0]:[0,_4e6];var _4e8=type=="h"?[1/size,1]:[1,1/size];dojox.gfx.fx.animateTransform(dojo.delegate({shape:_4e5,duration:1200,transform:[{name:"translate",start:_4e7,end:[0,0]},{name:"scale",start:_4e8,end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Pie"]){dojo._hasResource["dojox.charting.plot2d.Pie"]=true;dojo.provide("dojox.charting.plot2d.Pie");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,da=dojox.charting.axis2d.common,g=dojox.gfx,m=g.matrix,_4e9=0.2;dojo.declare("dojox.charting.plot2d.Pie",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:20,labelStyle:"default",htmlLabels:true,radGrad:"native",fanSize:5,startAngle:0},optionalParams:{radius:0,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",labelWiring:{}},constructor:function(_4ea,_4eb){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4eb);du.updateWithPattern(this.opt,_4eb,this.optionalParams);this.run=null;this.dyn=[];},clear:function(){this.dirty=true;this.dyn=[];this.run=null;return this;},setAxis:function(axis){return this;},addSeries:function(run){this.run=run;return this;},getSeriesStats:function(){return dojo.delegate(dc.defaultStats);},initializeScalers:function(){return this;},getRequiredColors:function(){return this.run?this.run.data.length:0;},render:function(dim,_4ec){if(!this.dirty){return this;}this.resetEvents();this.dirty=false;this._eventSeries={};this.cleanGroup();var s=this.group,t=this.chart.theme;if(!this.run||!this.run.data.length){return this;}var rx=(dim.width-_4ec.l-_4ec.r)/2,ry=(dim.height-_4ec.t-_4ec.b)/2,r=Math.min(rx,ry),_4ed="font" in this.opt?this.opt.font:t.axis.font,size=_4ed?g.normalizedLength(g.splitFontString(_4ed).size):0,_4ee="fontColor" in this.opt?this.opt.fontColor:t.axis.fontColor,_4ef=m._degToRad(this.opt.startAngle),_4f0=_4ef,step,_4f1,_4f2,_4f3,_4f4,_4f5,run=this.run.data,_4f6=this.events();if(typeof run[0]=="number"){_4f1=df.map(run,"x ? Math.max(x, 0) : 0");if(df.every(_4f1,"<= 0")){return this;}_4f2=df.map(_4f1,"/this",df.foldl(_4f1,"+",0));if(this.opt.labels){_4f3=dojo.map(_4f2,function(x){return x>0?this._getLabel(x*100)+"%":"";},this);}}else{_4f1=df.map(run,"x ? Math.max(x.y, 0) : 0");if(df.every(_4f1,"<= 0")){return this;}_4f2=df.map(_4f1,"/this",df.foldl(_4f1,"+",0));if(this.opt.labels){_4f3=dojo.map(_4f2,function(x,i){if(x<=0){return "";}var v=run[i];return "text" in v?v.text:this._getLabel(x*100)+"%";},this);}}var _4f7=df.map(run,function(v,i){if(v===null||typeof v=="number"){return t.next("slice",[this.opt,this.run],true);}return t.next("slice",[this.opt,this.run,v],true);},this);if(this.opt.labels){_4f4=df.foldl1(df.map(_4f3,function(_4f8,i){var font=_4f7[i].series.font;return dojox.gfx._base._getTextBox(_4f8,{font:font}).w;},this),"Math.max(a, b)")/2;if(this.opt.labelOffset<0){r=Math.min(rx-2*_4f4,ry-size)+this.opt.labelOffset;}_4f5=r-this.opt.labelOffset;}if("radius" in this.opt){r=this.opt.radius;_4f5=r-this.opt.labelOffset;}var _4f9={cx:_4ec.l+rx,cy:_4ec.t+ry,r:r};this.dyn=[];var _4fa=new Array(_4f2.length);dojo.some(_4f2,function(_4fb,i){if(_4fb<=0){return false;}var v=run[i],_4fc=_4f7[i],_4fd;if(_4fb>=1){_4fd=this._plotFill(_4fc.series.fill,dim,_4ec);_4fd=this._shapeFill(_4fd,{x:_4f9.cx-_4f9.r,y:_4f9.cy-_4f9.r,width:2*_4f9.r,height:2*_4f9.r});_4fd=this._pseudoRadialFill(_4fd,{x:_4f9.cx,y:_4f9.cy},_4f9.r);var _4fe=s.createCircle(_4f9).setFill(_4fd).setStroke(_4fc.series.stroke);this.dyn.push({fill:_4fd,stroke:_4fc.series.stroke});if(_4f6){var o={element:"slice",index:i,run:this.run,shape:_4fe,x:i,y:typeof v=="number"?v:v.y,cx:_4f9.cx,cy:_4f9.cy,cr:r};this._connectEvents(o);_4fa[i]=o;}return true;}var end=_4f0+_4fb*2*Math.PI;if(i+1==_4f2.length){end=_4ef+2*Math.PI;}var step=end-_4f0,x1=_4f9.cx+r*Math.cos(_4f0),y1=_4f9.cy+r*Math.sin(_4f0),x2=_4f9.cx+r*Math.cos(end),y2=_4f9.cy+r*Math.sin(end);var _4ff=m._degToRad(this.opt.fanSize);if(_4fc.series.fill&&_4fc.series.fill.type==="radial"&&this.opt.radGrad==="fan"&&step>_4ff){var _500=s.createGroup(),_501=Math.ceil(step/_4ff),_502=step/_501;_4fd=this._shapeFill(_4fc.series.fill,{x:_4f9.cx-_4f9.r,y:_4f9.cy-_4f9.r,width:2*_4f9.r,height:2*_4f9.r});for(var j=0;j<_501;++j){var _503=j==0?x1:_4f9.cx+r*Math.cos(_4f0+(j-_4e9)*_502),_504=j==0?y1:_4f9.cy+r*Math.sin(_4f0+(j-_4e9)*_502),_505=j==_501-1?x2:_4f9.cx+r*Math.cos(_4f0+(j+1+_4e9)*_502),_506=j==_501-1?y2:_4f9.cy+r*Math.sin(_4f0+(j+1+_4e9)*_502),fan=_500.createPath({}).moveTo(_4f9.cx,_4f9.cy).lineTo(_503,_504).arcTo(r,r,0,_502>Math.PI,true,_505,_506).lineTo(_4f9.cx,_4f9.cy).closePath().setFill(this._pseudoRadialFill(_4fd,{x:_4f9.cx,y:_4f9.cy},r,_4f0+(j+0.5)*_502,_4f0+(j+0.5)*_502));}_500.createPath({}).moveTo(_4f9.cx,_4f9.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4f9.cx,_4f9.cy).closePath().setStroke(_4fc.series.stroke);_4fe=_500;}else{_4fe=s.createPath({}).moveTo(_4f9.cx,_4f9.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4f9.cx,_4f9.cy).closePath().setStroke(_4fc.series.stroke);var _4fd=_4fc.series.fill;if(_4fd&&_4fd.type==="radial"){_4fd=this._shapeFill(_4fd,{x:_4f9.cx-_4f9.r,y:_4f9.cy-_4f9.r,width:2*_4f9.r,height:2*_4f9.r});if(this.opt.radGrad==="linear"){_4fd=this._pseudoRadialFill(_4fd,{x:_4f9.cx,y:_4f9.cy},r,_4f0,end);}}else{if(_4fd&&_4fd.type==="linear"){_4fd=this._plotFill(_4fd,dim,_4ec);_4fd=this._shapeFill(_4fd,_4fe.getBoundingBox());}}_4fe.setFill(_4fd);}this.dyn.push({fill:_4fd,stroke:_4fc.series.stroke});if(_4f6){var o={element:"slice",index:i,run:this.run,shape:_4fe,x:i,y:typeof v=="number"?v:v.y,cx:_4f9.cx,cy:_4f9.cy,cr:r};this._connectEvents(o);_4fa[i]=o;}_4f0=end;return false;},this);if(this.opt.labels){if(this.opt.labelStyle=="default"){_4f0=_4ef;dojo.some(_4f2,function(_507,i){if(_507<=0){return false;}var _508=_4f7[i];if(_507>=1){var v=run[i],elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_4f9.cx,_4f9.cy+size/2,"middle",_4f3[i],_508.series.font,_508.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}return true;}var end=_4f0+_507*2*Math.PI,v=run[i];if(i+1==_4f2.length){end=_4ef+2*Math.PI;}var _509=(_4f0+end)/2,x=_4f9.cx+_4f5*Math.cos(_509),y=_4f9.cy+_4f5*Math.sin(_509)+size/2;var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,x,y,"middle",_4f3[i],_508.series.font,_508.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}_4f0=end;return false;},this);}else{if(this.opt.labelStyle=="columns"){_4f0=_4ef;var _50a=[];dojo.forEach(_4f2,function(_50b,i){var end=_4f0+_50b*2*Math.PI;if(i+1==_4f2.length){end=_4ef+2*Math.PI;}var _50c=(_4f0+end)/2;_50a.push({angle:_50c,left:Math.cos(_50c)<0,theme:_4f7[i],index:i,omit:end-_4f0<0.001});_4f0=end;});var _50d=dojox.gfx._base._getTextBox("a",{font:_4ed}).h;this._getProperLabelRadius(_50a,_50d,_4f9.r*1.1);dojo.forEach(_50a,function(_50e,i){if(!_50e.omit){var _50f=_4f9.cx-_4f9.r*2,_510=_4f9.cx+_4f9.r*2,_511=dojox.gfx._base._getTextBox(_4f3[i],{font:_4ed}).w,x=_4f9.cx+_50e.labelR*Math.cos(_50e.angle),y=_4f9.cy+_50e.labelR*Math.sin(_50e.angle),_512=(_50e.left)?(_50f+_511):(_510-_511),_513=(_50e.left)?_50f:_512;var _514=s.createPath().moveTo(_4f9.cx+_4f9.r*Math.cos(_50e.angle),_4f9.cy+_4f9.r*Math.sin(_50e.angle));if(Math.abs(_50e.labelR*Math.cos(_50e.angle))<_4f9.r*2-_511){_514.lineTo(x,y);}_514.lineTo(_512,y).setStroke(_50e.theme.series.labelWiring);var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_513,y,"left",_4f3[i],_50e.theme.series.font,_50e.theme.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}},this);}}}var esi=0;this._eventSeries[this.run.name]=df.map(run,function(v){return v<=0?null:_4fa[esi++];});return this;},_getProperLabelRadius:function(_515,_516,_517){var _518={},_519={},_51a=1,_51b=1;if(_515.length==1){_515[0].labelR=_517;return;}for(var i=0;i<_515.length;i++){var _51c=Math.abs(Math.sin(_515[i].angle));if(_515[i].left){if(_51a>_51c){_51a=_51c;_518=_515[i];}}else{if(_51b>_51c){_51b=_51c;_519=_515[i];}}}_518.labelR=_519.labelR=_517;this._caculateLabelR(_518,_515,_516);this._caculateLabelR(_519,_515,_516);},_caculateLabelR:function(_51d,_51e,_51f){var i=_51d.index,_520=_51e.length,_521=_51d.labelR;while(!(_51e[i%_520].left^_51e[(i+1)%_520].left)){if(!_51e[(i+1)%_520].omit){var _522=(Math.sin(_51e[i%_520].angle)*_521+((_51e[i%_520].left)?(-_51f):_51f))/Math.sin(_51e[(i+1)%_520].angle);_521=(_522<_51d.labelR)?_51d.labelR:_522;_51e[(i+1)%_520].labelR=_521;}i++;}i=_51d.index,j=(i==0)?_520-1:i-1;while(!(_51e[i].left^_51e[j].left)){if(!_51e[j].omit){var _522=(Math.sin(_51e[i].angle)*_521+((_51e[i].left)?_51f:(-_51f)))/Math.sin(_51e[j].angle);_521=(_522<_51d.labelR)?_51d.labelR:_522;_51e[j].labelR=_521;}i--;j--;i=(i<0)?i+_51e.length:i;j=(j<0)?j+_51e.length:j;}},_getLabel:function(_523){return dc.getLabel(_523,this.opt.fixed,this.opt.precision);}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bubble"]){dojo._hasResource["dojox.charting.plot2d.Bubble"]=true;dojo.provide("dojox.charting.plot2d.Bubble");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_524=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bubble",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",animate:null},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_525,_526){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_526);du.updateWithPattern(this.opt,_526,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_527){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_527);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_524);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_528=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}if(typeof run.data[0]=="number"){console.warn("dojox.charting.plot2d.Bubble: the data in the following series cannot be rendered as a bubble chart; ",run);continue;}var _529=t.next("circle",[this.opt,run]),s=run.group,_52a=dojo.map(run.data,function(v,i){return v?{x:ht(v.x)+_527.l,y:dim.height-_527.b-vt(v.y),radius:this._vScaler.bounds.scale*(v.size/2)}:null;},this);var _52b=null,_52c=null,_52d=null;if(_529.series.shadow){_52d=dojo.map(_52a,function(item){if(item!==null){var _52e=t.addMixin(_529,"circle",item,true),_52f=_52e.series.shadow;var _530=s.createCircle({cx:item.x+_52f.dx,cy:item.y+_52f.dy,r:item.radius}).setStroke(_52f).setFill(_52f.color);if(this.animate){this._animateBubble(_530,dim.height-_527.b,item.radius);}return _530;}return null;},this);if(_52d.length){run.dyn.shadow=_52d[_52d.length-1].getStroke();}}if(_529.series.outline){_52c=dojo.map(_52a,function(item){if(item!==null){var _531=t.addMixin(_529,"circle",item,true),_532=dc.makeStroke(_531.series.outline);_532.width=2*_532.width+_529.series.stroke.width;var _533=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_532);if(this.animate){this._animateBubble(_533,dim.height-_527.b,item.radius);}return _533;}return null;},this);if(_52c.length){run.dyn.outline=_52c[_52c.length-1].getStroke();}}_52b=dojo.map(_52a,function(item){if(item!==null){var _534=t.addMixin(_529,"circle",item,true),rect={x:item.x-item.radius,y:item.y-item.radius,width:2*item.radius,height:2*item.radius};var _535=this._plotFill(_534.series.fill,dim,_527);_535=this._shapeFill(_535,rect);var _536=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setFill(_535).setStroke(_534.series.stroke);if(this.animate){this._animateBubble(_536,dim.height-_527.b,item.radius);}return _536;}return null;},this);if(_52b.length){run.dyn.fill=_52b[_52b.length-1].getFill();run.dyn.stroke=_52b[_52b.length-1].getStroke();}if(_528){var _537=new Array(_52b.length);dojo.forEach(_52b,function(s,i){if(s!==null){var o={element:"circle",index:i,run:run,shape:s,outline:_52c&&_52c[i]||null,shadow:_52d&&_52d[i]||null,x:run.data[i].x,y:run.data[i].y,r:run.data[i].size/2,cx:_52a[i].x,cy:_52a[i].y,cr:_52a[i].radius};this._connectEvents(o);_537[i]=o;}},this);this._eventSeries[run.name]=_537;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateBubble:function(_538,_539,size){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_538,duration:1200,transform:[{name:"translate",start:[0,_539],end:[0,0]},{name:"scale",start:[0,1/size],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Candlesticks"]){dojo._hasResource["dojox.charting.plot2d.Candlesticks"]=true;dojo.provide("dojox.charting.plot2d.Candlesticks");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_53a=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Candlesticks",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_53b,_53c){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_53c);du.updateWithPattern(this.opt,_53c,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_53d){var _53e=dojo.delegate(dc.defaultStats);for(var i=0;i<_53d.length;i++){var run=_53d[i];if(!run.data.length){continue;}var _53f=_53e.vmin,_540=_53e.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_53e.hmin=Math.min(_53e.hmin,x);_53e.hmax=Math.max(_53e.hmax,x);_53e.vmin=Math.min(_53e.vmin,val.open,val.close,val.high,val.low);_53e.vmax=Math.max(_53e.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_53e.vmin=Math.min(_53f,run.ymin);}if("ymax" in run){_53e.vmax=Math.max(_540,run.ymax);}}return _53e;},getSeriesStats:function(){var _541=this.collectStats(this.series);_541.hmin-=0.5;_541.hmax+=0.5;return _541;},render:function(dim,_542){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_542);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_53a);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_543,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_544=Math.max(0,this._vScaler.bounds.lower),_545=vt(_544),_546=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_543=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _547=t.next("candlestick",[this.opt,run]),s=run.group,_548=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _549=t.addMixin(_547,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_542.l+gap,y=dim.height-_542.b,open=vt(v.open),_54a=vt(v.close),high=vt(v.high),low=vt(v.low);if("mid" in v){var mid=vt(v.mid);}if(low>high){var tmp=high;high=low;low=tmp;}if(_543>=1){var _54b=open>_54a;var line={x1:_543/2,x2:_543/2,y1:y-high,y2:y-low},rect={x:0,y:y-Math.max(open,_54a),width:_543,height:Math.max(_54b?open-_54a:_54a-open,1)};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _54c=shape.createGroup();_54c.createLine(line).setStroke(_549.series.stroke);_54c.createRect(rect).setStroke(_549.series.stroke).setFill(_54b?_549.series.fill:"white");if("mid" in v){_54c.createLine({x1:(_549.series.stroke.width||1),x2:_543-(_549.series.stroke.width||1),y1:y-mid,y2:y-mid}).setStroke(_54b?"white":_549.series.stroke);}run.dyn.fill=_549.series.fill;run.dyn.stroke=_549.series.stroke;if(_546){var o={element:"candlestick",index:j,run:run,shape:_54c,x:x,y:y-Math.max(open,_54a),cx:_543/2,cy:(y-Math.max(open,_54a))+(Math.max(_54b?open-_54a:_54a-open,1)/2),width:_543,height:Math.max(_54b?open-_54a:_54a-open,1),data:v};this._connectEvents(o);_548[j]=o;}}if(this.animate){this._animateCandlesticks(shape,y-low,high-low);}}}this._eventSeries[run.name]=_548;run.dirty=false;}this.dirty=false;return this;},_animateCandlesticks:function(_54d,_54e,_54f){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_54d,duration:1200,transform:[{name:"translate",start:[0,_54e-(_54e/_54f)],end:[0,0]},{name:"scale",start:[1,1/_54f],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.OHLC"]){dojo._hasResource["dojox.charting.plot2d.OHLC"]=true;dojo.provide("dojox.charting.plot2d.OHLC");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_550=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.OHLC",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_551,_552){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_552);du.updateWithPattern(this.opt,_552,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_553){var _554=dojo.delegate(dc.defaultStats);for(var i=0;i<_553.length;i++){var run=_553[i];if(!run.data.length){continue;}var _555=_554.vmin,_556=_554.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_554.hmin=Math.min(_554.hmin,x);_554.hmax=Math.max(_554.hmax,x);_554.vmin=Math.min(_554.vmin,val.open,val.close,val.high,val.low);_554.vmax=Math.max(_554.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_554.vmin=Math.min(_555,run.ymin);}if("ymax" in run){_554.vmax=Math.max(_556,run.ymax);}}return _554;},getSeriesStats:function(){var _557=this.collectStats(this.series);_557.hmin-=0.5;_557.hmax+=0.5;return _557;},render:function(dim,_558){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_558);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_550);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_559,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_55a=Math.max(0,this._vScaler.bounds.lower),_55b=vt(_55a),_55c=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_559=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _55d=t.next("candlestick",[this.opt,run]),s=run.group,_55e=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _55f=t.addMixin(_55d,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_558.l+gap,y=dim.height-_558.b,open=vt(v.open),_560=vt(v.close),high=vt(v.high),low=vt(v.low);if(low>high){var tmp=high;high=low;low=tmp;}if(_559>=1){var hl={x1:_559/2,x2:_559/2,y1:y-high,y2:y-low},op={x1:0,x2:((_559/2)+((_55f.series.stroke.width||1)/2)),y1:y-open,y2:y-open},cl={x1:((_559/2)-((_55f.series.stroke.width||1)/2)),x2:_559,y1:y-_560,y2:y-_560};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _561=shape.createGroup();_561.createLine(hl).setStroke(_55f.series.stroke);_561.createLine(op).setStroke(_55f.series.stroke);_561.createLine(cl).setStroke(_55f.series.stroke);run.dyn.stroke=_55f.series.stroke;if(_55c){var o={element:"candlestick",index:j,run:run,shape:_561,x:x,y:y-Math.max(open,_560),cx:_559/2,cy:(y-Math.max(open,_560))+(Math.max(open>_560?open-_560:_560-open,1)/2),width:_559,height:Math.max(open>_560?open-_560:_560-open,1),data:v};this._connectEvents(o);_55e[j]=o;}}if(this.animate){this._animateOHLC(shape,y-low,high-low);}}}this._eventSeries[run.name]=_55e;run.dirty=false;}this.dirty=false;return this;},_animateOHLC:function(_562,_563,_564){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_562,duration:1200,transform:[{name:"translate",start:[0,_563-(_563/_564)],end:[0,0]},{name:"scale",start:[1,1/_564],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Spider"]){dojo._hasResource["dojox.charting.plot2d.Spider"]=true;dojo.provide("dojox.charting.plot2d.Spider");dojo.experimental("dojox.charting.plot2d.Spider");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,da=dojox.charting.axis2d.common,g=dojox.gfx,m=g.matrix,_565=0.2;dojo.declare("dojox.charting.plot2d.Spider",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:-10,labelStyle:"default",htmlLabels:true,startAngle:-90,divisions:3,axisColor:"",axisWidth:0,spiderColor:"",spiderWidth:0,seriesWidth:0,seriesFillAlpha:0.2,spiderOrigin:0.16,markerSize:3,spiderType:"polygon",animationType:dojo.fx.easing.backOut,axisTickFont:"",axisTickFontColor:"",axisFont:"",axisFontColor:""},optionalParams:{radius:0,font:"",fontColor:""},constructor:function(_566,_567){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_567);du.updateWithPattern(this.opt,_567,this.optionalParams);this.series=[];this.dyn=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};},clear:function(){this.dirty=true;this.dyn=[];this.series=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};return this;},setAxis:function(axis){return this;},addSeries:function(run){var _568=false;this.series.push(run);for(var key in run.data){var val=run.data[key],data=this.datas[key];if(data){data.vlist.push(val);data.min=Math.min(data.min,val);data.max=Math.max(data.max,val);}else{this.datas[key]={min:val,max:val,vlist:[val]};}}if(this.labelKey.length<=0){for(var key in run.data){this.labelKey.push(key);}}return this;},getSeriesStats:function(){return dojox.charting.plot2d.common.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_569){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_569.hmin,_569.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_569.hmin,_569.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_569.vmin,_569.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_569.vmin,_569.vmax,dim.height);}return this;},render:function(dim,_56a){if(!this.dirty){return this;}this.dirty=false;this.cleanGroup();var s=this.group,t=this.chart.theme;this.resetEvents();if(!this.series||!this.series.length){return this;}var o=this.opt,ta=t.axis,rx=(dim.width-_56a.l-_56a.r)/2,ry=(dim.height-_56a.t-_56a.b)/2,r=Math.min(rx,ry),_56b=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font)||"normal normal normal 7pt Tahoma",_56c=o.axisFont||(ta.tick&&ta.tick.titleFont)||"normal normal normal 11pt Tahoma",_56d=o.axisTickFontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"silver",_56e=o.axisFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_56f=o.axisColor||(ta.tick&&ta.tick.axisColor)||"silver",_570=o.spiderColor||(ta.tick&&ta.tick.spiderColor)||"silver",_571=o.axisWidth||(ta.stroke&&ta.stroke.width)||2,_572=o.spiderWidth||(ta.stroke&&ta.stroke.width)||2,_573=o.seriesWidth||(ta.stroke&&ta.stroke.width)||2,_574=g.normalizedLength(g.splitFontString(_56c).size),_575=m._degToRad(o.startAngle),_576=_575,step,_577,_578,_579,_57a,_57b,_57c,_57d,_57e,_57f,_580,ro=o.spiderOrigin,dv=o.divisions>=3?o.divisions:3,ms=o.markerSize,spt=o.spiderType,at=o.animationType,_581=o.labelOffset<-10?o.labelOffset:-10,_582=0.2;if(o.labels){_579=dojo.map(this.series,function(s){return s.name;},this);_57a=df.foldl1(df.map(_579,function(_583,i){var font=t.series.font;return dojox.gfx._base._getTextBox(_583,{font:font}).w;},this),"Math.max(a, b)")/2;r=Math.min(rx-2*_57a,ry-_574)+_581;_57b=r-_581;}if("radius" in o){r=o.radius;_57b=r-_581;}r/=(1+_582);var _584={cx:_56a.l+rx,cy:_56a.t+ry,r:r};for(var i=this.series.length-1;i>=0;i--){var _585=this.series[i];if(!this.dirty&&!_585.dirty){t.skip();continue;}_585.cleanGroup();var run=_585.data;if(run!==null){var len=this._getObjectLength(run);if(!_57c||_57c.length<=0){_57c=[],_57d=[],_580=[];this._buildPoints(_57c,len,_584,r,_576,true);this._buildPoints(_57d,len,_584,r*ro,_576,true);this._buildPoints(_580,len,_584,_57b,_576);if(dv>2){_57e=[],_57f=[];for(var j=0;j<dv-2;j++){_57e[j]=[];this._buildPoints(_57e[j],len,_584,r*(ro+(1-ro)*(j+1)/(dv-1)),_576,true);_57f[j]=r*(ro+(1-ro)*(j+1)/(dv-1));}}}}}var _586=s.createGroup(),_587={color:_56f,width:_571},_588={color:_570,width:_572};for(var j=_57c.length-1;j>=0;--j){var _589=_57c[j],st={x:_589.x+(_589.x-_584.cx)*_582,y:_589.y+(_589.y-_584.cy)*_582},nd={x:_589.x+(_589.x-_584.cx)*_582/2,y:_589.y+(_589.y-_584.cy)*_582/2};_586.createLine({x1:_584.cx,y1:_584.cy,x2:st.x,y2:st.y}).setStroke(_587);this._drawArrow(_586,st,nd,_587);}var _58a=s.createGroup();for(var j=_580.length-1;j>=0;--j){var _589=_580[j],_58b=dojox.gfx._base._getTextBox(this.labelKey[j],{font:_56c}).w||0,_58c=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";elem=da.createText[_58c](this.chart,_58a,(!dojo._isBodyLtr()&&_58c=="html")?(_589.x+_58b-dim.width):_589.x,_589.y,"middle",this.labelKey[j],_56c,_56e);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}var _58d=s.createGroup();if(spt=="polygon"){_58d.createPolyline(_57c).setStroke(_588);_58d.createPolyline(_57d).setStroke(_588);if(_57e.length>0){for(var j=_57e.length-1;j>=0;--j){_58d.createPolyline(_57e[j]).setStroke(_588);}}}else{var _58e=this._getObjectLength(this.datas);_58d.createCircle({cx:_584.cx,cy:_584.cy,r:r}).setStroke(_588);_58d.createCircle({cx:_584.cx,cy:_584.cy,r:r*ro}).setStroke(_588);if(_57f.length>0){for(var j=_57f.length-1;j>=0;--j){_58d.createCircle({cx:_584.cx,cy:_584.cy,r:_57f[j]}).setStroke(_588);}}}var _58f=s.createGroup(),len=this._getObjectLength(this.datas),k=0;for(var key in this.datas){var data=this.datas[key],min=data.min,max=data.max,_590=max-min,end=_576+2*Math.PI*k/len;for(var i=0;i<dv;i++){var text=min+_590*i/(dv-1),_589=this._getCoordinate(_584,r*(ro+(1-ro)*i/(dv-1)),end);text=this._getLabel(text);var _58b=dojox.gfx._base._getTextBox(text,{font:_56b}).w||0,_58c=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";if(this.opt.htmlLabels){this.htmlElements.push(da.createText[_58c](this.chart,_58f,(!dojo._isBodyLtr()&&_58c=="html")?(_589.x+_58b-dim.width):_589.x,_589.y,"start",text,_56b,_56d));}}k++;}this.chart.seriesShapes={};var _591=[];for(var i=this.series.length-1;i>=0;i--){var _585=this.series[i],run=_585.data;if(run!==null){var _592=[],k=0,_593=[];for(var key in run){var data=this.datas[key],min=data.min,max=data.max,_590=max-min,_594=run[key],end=_576+2*Math.PI*k/len,_589=this._getCoordinate(_584,r*(ro+(1-ro)*(_594-min)/_590),end);_592.push(_589);_593.push({sname:_585.name,key:key,data:_594});k++;}_592[_592.length]=_592[0];_593[_593.length]=_593[0];var _595=this._getBoundary(_592),_596=t.next("spider",[o,_585]),ts=_585.group,f=g.normalizeColor(_596.series.fill),sk={color:_596.series.fill,width:_573};f.a=o.seriesFillAlpha;_585.dyn={fill:f,stroke:sk};var osps=this.oldSeriePoints[_585.name];var cs=this._createSeriesEntry(ts,(osps||_57d),_592,f,sk,r,ro,ms,at);this.chart.seriesShapes[_585.name]=cs;this.oldSeriePoints[_585.name]=_592;var po={element:"spider_poly",index:i,id:"spider_poly_"+_585.name,run:_585,plot:this,shape:cs.poly,parent:ts,brect:_595,cx:_584.cx,cy:_584.cy,cr:r,f:f,s:s};this._connectEvents(po);var so={element:"spider_plot",index:i,id:"spider_plot_"+_585.name,run:_585,plot:this,shape:_585.group};this._connectEvents(so);dojo.forEach(cs.circles,function(c,i){var _597=c.getShape(),co={element:"spider_circle",index:i,id:"spider_circle_"+_585.name+i,run:_585,plot:this,shape:c,parent:ts,tdata:_593[i],cx:_592[i].x,cy:_592[i].y,f:f,s:s};this._connectEvents(co);},this);}}return this;},_createSeriesEntry:function(ts,osps,sps,f,sk,r,ro,ms,at){var _598=ts.createPolyline(osps).setFill(f).setStroke(sk),_599=[];for(var j=0;j<osps.length;j++){var _59a=osps[j],cr=ms;var _59b=ts.createCircle({cx:_59a.x,cy:_59a.y,r:cr}).setFill(f).setStroke(sk);_599.push(_59b);}var _59c=dojo.map(sps,function(np,j){var sp=osps[j],anim=new dojo._Animation({duration:1000,easing:at,curve:[sp.y,np.y]});var spl=_598,sc=_599[j];dojo.connect(anim,"onAnimate",function(y){var _59d=spl.getShape();_59d.points[j].y=y;spl.setShape(_59d);var _59e=sc.getShape();_59e.cy=y;sc.setShape(_59e);});return anim;});var _59f=dojo.map(sps,function(np,j){var sp=osps[j],anim=new dojo._Animation({duration:1000,easing:at,curve:[sp.x,np.x]});var spl=_598,sc=_599[j];dojo.connect(anim,"onAnimate",function(x){var _5a0=spl.getShape();_5a0.points[j].x=x;spl.setShape(_5a0);var _5a1=sc.getShape();_5a1.cx=x;sc.setShape(_5a1);});return anim;});var _5a2=dojo.fx.combine(_59c.concat(_59f));_5a2.play();return {group:ts,poly:_598,circles:_599};},plotEvent:function(o){var _5a3=o.id?o.id:"default",a;if(_5a3 in this.animations){a=this.animations[_5a3];a.anim&&a.anim.stop(true);}else{a=this.animations[_5a3]={};}if(o.element=="spider_poly"){if(!a.color){var _5a4=o.shape.getFill();if(!_5a4||!(_5a4 instanceof dojo.Color)){return;}a.color={start:_5a4,end:_5a5(_5a4)};}var _5a6=a.color.start,end=a.color.end;if(o.type=="onmouseout"){var t=_5a6;_5a6=end;end=t;}a.anim=dojox.gfx.fx.animateFill({shape:o.shape,duration:800,easing:dojo.fx.easing.backOut,color:{start:_5a6,end:end}});a.anim.play();}else{if(o.element=="spider_circle"){var init,_5a7,_5a8=1.5;if(o.type=="onmouseover"){init=dojox.gfx.matrix.identity;_5a7=_5a8;var _5a9={type:"rect"};_5a9.x=o.cx;_5a9.y=o.cy;_5a9.width=_5a9.height=1;var lt=dojo.coords(this.chart.node,true);_5a9.x+=lt.x;_5a9.y+=lt.y;_5a9.x=Math.round(_5a9.x);_5a9.y=Math.round(_5a9.y);_5a9.width=Math.ceil(_5a9.width);_5a9.height=Math.ceil(_5a9.height);this.aroundRect=_5a9;var _5aa=["after","before"];if(dijit&&dijit.Tooltip){dijit.showTooltip(o.tdata.sname+"<br/>"+o.tdata.key+"<br/>"+o.tdata.data,this.aroundRect,_5aa);}}else{init=dojox.gfx.matrix.scaleAt(_5a8,o.cx,o.cy);_5a7=1/_5a8;if(dijit&&dijit.Tooltip){this.aroundRect&&dijit.hideTooltip(this.aroundRect);}}var cs=o.shape.getShape(),init=m.scaleAt(_5a8,cs.cx,cs.cy),_5ab={shape:o.shape,duration:200,easing:dojo.fx.easing.backOut,transform:[{name:"scaleAt",start:[1,cs.cx,cs.cy],end:[_5a7,cs.cx,cs.cy]},init]};a.anim=dojox.gfx.fx.animateTransform(_5ab);a.anim.play();}else{if(o.element=="spider_plot"){if(o.type=="onmouseover"&&!dojo.isIE){o.shape.moveToFront();}}}}},_getBoundary:function(_5ac){var xmax=_5ac[0].x,xmin=_5ac[0].x,ymax=_5ac[0].y,ymin=_5ac[0].y;for(var i=0;i<_5ac.length;i++){var _5ad=_5ac[i];xmax=Math.max(_5ad.x,xmax);ymax=Math.max(_5ad.y,ymax);xmin=Math.min(_5ad.x,xmin);ymin=Math.min(_5ad.y,ymin);}return {x:xmin,y:ymin,width:xmax-xmin,height:ymax-ymin};},_drawArrow:function(s,_5ae,end,_5af){var len=Math.sqrt(Math.pow(end.x-_5ae.x,2)+Math.pow(end.y-_5ae.y,2)),sin=(end.y-_5ae.y)/len,cos=(end.x-_5ae.x)/len,_5b0={x:end.x+(len/3)*(-sin),y:end.y+(len/3)*cos},_5b1={x:end.x+(len/3)*sin,y:end.y+(len/3)*(-cos)};s.createPolyline([_5ae,_5b0,_5b1]).setFill(_5af.color).setStroke(_5af);},_buildPoints:function(_5b2,_5b3,_5b4,_5b5,_5b6,_5b7){for(var i=0;i<_5b3;i++){var end=_5b6+2*Math.PI*i/_5b3;_5b2.push(this._getCoordinate(_5b4,_5b5,end));}if(_5b7){_5b2.push(this._getCoordinate(_5b4,_5b5,_5b6+2*Math.PI));}},_getCoordinate:function(_5b8,_5b9,_5ba){return {x:_5b8.cx+_5b9*Math.cos(_5ba),y:_5b8.cy+_5b9*Math.sin(_5ba)};},_getObjectLength:function(obj){var _5bb=0;if(dojo.isObject(obj)){for(var key in obj){_5bb++;}}return _5bb;},_getLabel:function(_5bc){return dc.getLabel(_5bc,this.opt.fixed,this.opt.precision);}});function _5a5(_5bd){var a=new dojox.color.Color(_5bd),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=100;if(x.l<50){x.l=75;}else{if(x.l>75){x.l=50;}else{x.l=x.l-50>75-x.l?50:75;}}}var _5bd=dojox.color.fromHsl(x);_5bd.a=0.7;return _5bd;};})();}if(!dojo._hasResource["dojox.charting.Chart2D"]){dojo._hasResource["dojox.charting.Chart2D"]=true;dojo.provide("dojox.charting.Chart2D");dojo.deprecated("dojox.charting.Chart2D","Use dojo.charting.Chart instead and require all other components explicitly","2.0");dojox.charting.Chart2D=dojox.charting.Chart;}if(!dojo._hasResource["dojox.charting.widget.Chart2D"]){dojo._hasResource["dojox.charting.widget.Chart2D"]=true;dojo.provide("dojox.charting.widget.Chart2D");dojo.deprecated("dojox.charting.widget.Chart2D","Use dojo.charting.widget.Chart instead and require all other components explicitly","2.0");dojox.charting.widget.Chart2D=dojox.charting.widget.Chart;}if(!dojo._hasResource["dojox.charting.themes.gradientGenerator"]){dojo._hasResource["dojox.charting.themes.gradientGenerator"]=true;dojo.provide("dojox.charting.themes.gradientGenerator");(function(){var gg=dojox.charting.themes.gradientGenerator;gg.generateFills=function(_5be,_5bf,_5c0,_5c1){var _5c2=dojox.charting.Theme;return dojo.map(_5be,function(c){return _5c2.generateHslGradient(c,_5bf,_5c0,_5c1);});};gg.updateFills=function(_5c3,_5c4,_5c5,_5c6){var _5c7=dojox.charting.Theme;dojo.forEach(_5c3,function(t){if(t.fill&&!t.fill.type){t.fill=_5c7.generateHslGradient(t.fill,_5c4,_5c5,_5c6);}});};gg.generateMiniTheme=function(_5c8,_5c9,_5ca,_5cb,_5cc){var _5cd=dojox.charting.Theme;return dojo.map(_5c8,function(c){c=new dojox.color.Color(c);return {fill:_5cd.generateHslGradient(c,_5c9,_5ca,_5cb),stroke:{color:_5cd.generateHslColor(c,_5cc)}};});};gg.generateGradientByIntensity=function(_5ce,_5cf){_5ce=new dojo.Color(_5ce);return dojo.map(_5cf,function(stop){var s=stop.i/255;return {offset:stop.o,color:new dojo.Color([_5ce.r*s,_5ce.g*s,_5ce.b*s,_5ce.a])};});};})();}if(!dojo._hasResource["dojox.charting.themes.PrimaryColors"]){dojo._hasResource["dojox.charting.themes.PrimaryColors"]=true;dojo.provide("dojox.charting.themes.PrimaryColors");(function(){var dc=dojox.charting,_5d0=dc.themes,_5d1=["#f00","#0f0","#00f","#ff0","#0ff","#f0f"],_5d2={type:"linear",space:"plot",x1:0,y1:0,x2:0,y2:100};_5d0.PrimaryColors=new dc.Theme({seriesThemes:_5d0.gradientGenerator.generateMiniTheme(_5d1,_5d2,90,40,25)});})();}if(!dojo._hasResource["dojox.charting.themes.ThreeD"]){dojo._hasResource["dojox.charting.themes.ThreeD"]=true;dojo.provide("dojox.charting.themes.ThreeD");(function(){var dc=dojox.charting,_5d3=dc.themes,_5d4=dc.Theme,gi=_5d3.gradientGenerator.generateGradientByIntensity,_5d5=["#f00","#0f0","#00f","#ff0","#0ff","#f0f"],_5d6={type:"linear",space:"shape",x1:0,y1:0,x2:100,y2:0},_5d7=[{o:0,i:174},{o:0.08,i:231},{o:0.18,i:237},{o:0.3,i:231},{o:0.39,i:221},{o:0.49,i:206},{o:0.58,i:187},{o:0.68,i:165},{o:0.8,i:128},{o:0.9,i:102},{o:1,i:174}],_5d8=2,_5d9=100,_5da=50,_5db=dojo.map(_5d5,function(c){var fill=dojo.delegate(_5d6),_5d5=fill.colors=_5d3.gradientGenerator.generateGradientByIntensity(c,_5d7),_5dc=_5d5[_5d8].color;_5dc.r+=_5d9;_5dc.g+=_5d9;_5dc.b+=_5d9;_5dc.sanitize();return fill;});_5d3.ThreeD=_5d3.PrimaryColors.clone();_5d3.ThreeD.series.shadow={dx:1,dy:1,width:3,color:[0,0,0,0.15]};_5d3.ThreeD.next=function(_5dd,_5de,_5df){if(_5dd=="bar"||_5dd=="column"){var _5e0=this._current%this.seriesThemes.length,s=this.seriesThemes[_5e0],old=s.fill;s.fill=_5db[_5e0];var _5e1=_5d4.prototype.next.apply(this,arguments);s.fill=old;return _5e1;}return _5d4.prototype.next.apply(this,arguments);};})();}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_5e2,_5e3){var _5e4=[];var _5e5,_5e6,_5e7=0;while(_5e5=re.exec(str)){_5e6=str.slice(_5e7,re.lastIndex-_5e5[0].length);if(_5e6.length){_5e4.push(_5e6);}if(_5e2){if(dojo.isOpera){var copy=_5e5.slice(0);while(copy.length<_5e5.length){copy.push(null);}_5e5=copy;}var _5e8=_5e2.apply(_5e3,_5e5.slice(1).concat(_5e4.length));if(typeof _5e8!="undefined"){_5e4.push(_5e8);}}_5e7=re.lastIndex;}_5e6=str.slice(_5e7);if(_5e6.length){_5e4.push(_5e6);}return _5e4;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_5e9,_5ea){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _5eb=new dojox.string.sprintf.Formatter(_5e9);return _5eb.format.apply(_5eb,args);};dojox.string.sprintf.Formatter=function(_5ec){var _5ed=[];this._mapped=false;this._format=_5ec;this._tokens=dojox.string.tokenize(_5ec,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_5ee,_5ef,_5f0,_5f1,_5f2,_5f3,_5f4){if(_5ee){this._mapped=true;}return {mapping:_5ee,intmapping:_5ef,flags:_5f0,_minWidth:_5f1,period:_5f2,_precision:_5f3,specifier:_5f4};},_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(_5f5){if(!isNaN(_5f5.arg)){var num=parseInt(_5f5.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_5f5.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_5f6){_5f6.maxWidth=(_5f6.period==".")?_5f6.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(_5f7){if(this._mapped&&typeof _5f7!="object"){throw new Error("format requires a mapping");}var str="";var _5f8=0;for(var i=0,_5f9;i<this._tokens.length;i++){_5f9=this._tokens[i];if(typeof _5f9=="string"){str+=_5f9;}else{if(this._mapped){if(typeof _5f7[_5f9.mapping]=="undefined"){throw new Error("missing key "+_5f9.mapping);}_5f9.arg=_5f7[_5f9.mapping];}else{if(_5f9.intmapping){var _5f8=parseInt(_5f9.intmapping)-1;}if(_5f8>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_5f9.arg=arguments[_5f8++];}if(!_5f9.compiled){_5f9.compiled=true;_5f9.sign="";_5f9.zeroPad=false;_5f9.rightJustify=false;_5f9.alternative=false;var _5fa={};for(var fi=_5f9.flags.length;fi--;){var flag=_5f9.flags.charAt(fi);_5fa[flag]=true;switch(flag){case " ":_5f9.sign=" ";break;case "+":_5f9.sign="+";break;case "0":_5f9.zeroPad=(_5fa["-"])?false:true;break;case "-":_5f9.rightJustify=true;_5f9.zeroPad=false;break;case "#":_5f9.alternative=true;break;default:throw Error("bad formatting flag '"+_5f9.flags.charAt(fi)+"'");}}_5f9.minWidth=(_5f9._minWidth)?parseInt(_5f9._minWidth):0;_5f9.maxWidth=-1;_5f9.toUpper=false;_5f9.isUnsigned=false;_5f9.isInt=false;_5f9.isDouble=false;_5f9.precision=1;if(_5f9.period=="."){if(_5f9._precision){_5f9.precision=parseInt(_5f9._precision);}else{_5f9.precision=0;}}var _5fb=this._specifiers[_5f9.specifier];if(typeof _5fb=="undefined"){throw new Error("unexpected specifier '"+_5f9.specifier+"'");}if(_5fb.extend){dojo.mixin(_5fb,this._specifiers[_5fb.extend]);delete _5fb.extend;}dojo.mixin(_5f9,_5fb);}if(typeof _5f9.setArg=="function"){_5f9.setArg(_5f9);}if(typeof _5f9.setMaxWidth=="function"){_5f9.setMaxWidth(_5f9);}if(_5f9._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_5f9.minWidth=parseInt(arguments[_5f8++]);if(isNaN(_5f9.minWidth)){throw new Error("the argument for * width at position "+_5f8+" is not a number in "+this._format);}if(_5f9.minWidth<0){_5f9.rightJustify=true;_5f9.minWidth=-_5f9.minWidth;}}if(_5f9._precision=="*"&&_5f9.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_5f9.precision=parseInt(arguments[_5f8++]);if(isNaN(_5f9.precision)){throw Error("the argument for * precision at position "+_5f8+" is not a number in "+this._format);}if(_5f9.precision<0){_5f9.precision=1;_5f9.period="";}}if(_5f9.isInt){if(_5f9.period=="."){_5f9.zeroPad=false;}this.formatInt(_5f9);}else{if(_5f9.isDouble){if(_5f9.period!="."){_5f9.precision=6;}this.formatDouble(_5f9);}}this.fitField(_5f9);str+=""+_5f9.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_5fc){var i=parseInt(_5fc.arg);if(!isFinite(i)){if(typeof _5fc.arg!="number"){throw new Error("format argument '"+_5fc.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_5fc.isUnsigned||_5fc.base!=10)){i=4294967295+i+1;}if(i<0){_5fc.arg=(-i).toString(_5fc.base);this.zeroPad(_5fc);_5fc.arg="-"+_5fc.arg;}else{_5fc.arg=i.toString(_5fc.base);if(!i&&!_5fc.precision){_5fc.arg="";}else{this.zeroPad(_5fc);}if(_5fc.sign){_5fc.arg=_5fc.sign+_5fc.arg;}}if(_5fc.base==16){if(_5fc.alternative){_5fc.arg="0x"+_5fc.arg;}_5fc.arg=_5fc.toUpper?_5fc.arg.toUpperCase():_5fc.arg.toLowerCase();}if(_5fc.base==8){if(_5fc.alternative&&_5fc.arg.charAt(0)!="0"){_5fc.arg="0"+_5fc.arg;}}},formatDouble:function(_5fd){var f=parseFloat(_5fd.arg);if(!isFinite(f)){if(typeof _5fd.arg!="number"){throw new Error("format argument '"+_5fd.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_5fd.doubleNotation){case "e":_5fd.arg=f.toExponential(_5fd.precision);break;case "f":_5fd.arg=f.toFixed(_5fd.precision);break;case "g":if(Math.abs(f)<0.0001){_5fd.arg=f.toExponential(_5fd.precision>0?_5fd.precision-1:_5fd.precision);}else{_5fd.arg=f.toPrecision(_5fd.precision);}if(!_5fd.alternative){_5fd.arg=_5fd.arg.replace(/(\..*[^0])0*/,"$1");_5fd.arg=_5fd.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_5fd.doubleNotation+"'");}_5fd.arg=_5fd.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_5fd.arg=_5fd.arg.replace(/^\./,"0.");}if(_5fd.alternative){_5fd.arg=_5fd.arg.replace(/^(\d+)$/,"$1.");_5fd.arg=_5fd.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_5fd.sign){_5fd.arg=_5fd.sign+_5fd.arg;}_5fd.arg=_5fd.toUpper?_5fd.arg.toUpperCase():_5fd.arg.toLowerCase();},zeroPad:function(_5fe,_5ff){_5ff=(arguments.length==2)?_5ff:_5fe.precision;if(typeof _5fe.arg!="string"){_5fe.arg=""+_5fe.arg;}var _600=_5ff-10;while(_5fe.arg.length<_600){_5fe.arg=(_5fe.rightJustify)?_5fe.arg+this._zeros10:this._zeros10+_5fe.arg;}var pad=_5ff-_5fe.arg.length;_5fe.arg=(_5fe.rightJustify)?_5fe.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_5fe.arg;},fitField:function(_601){if(_601.maxWidth>=0&&_601.arg.length>_601.maxWidth){return _601.arg.substring(0,_601.maxWidth);}if(_601.zeroPad){this.zeroPad(_601,_601.minWidth);return;}this.spacePad(_601);},spacePad:function(_602,_603){_603=(arguments.length==2)?_603:_602.minWidth;if(typeof _602.arg!="string"){_602.arg=""+_602.arg;}var _604=_603-10;while(_602.arg.length<_604){_602.arg=(_602.rightJustify)?_602.arg+this._spaces10:this._spaces10+_602.arg;}var pad=_603-_602.arg.length;_602.arg=(_602.rightJustify)?_602.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_602.arg;}});}
