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

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

		http://dojotoolkit.org
*/

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(_1){if(this._hash[_1.id]){throw new Error("Tried to register widget with id=="+_1.id+" but that id is already registered");}this._hash[_1.id]=_1;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_2,_3){_3=_3||dojo.global;var i=0,id;for(id in this._hash){_2.call(_3,this._hash[id],i++,this._hash);}return this;},filter:function(_4,_5){_5=_5||dojo.global;var _6=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_4.call(_5,w,i++,this._hash)){_6.add(w);}}return _6;},byId:function(id){return this._hash[id];},byClass:function(_7){var _8=new dijit.WidgetSet(),id,_9;for(id in this._hash){_9=this._hash[id];if(_9.declaredClass==_7){_8.add(_9);}}return _8;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_a,_b){return dojo.map(this.toArray(),_a,_b);},every:function(_c,_d){_d=_d||dojo.global;var x=0,i;for(i in this._hash){if(!_c.call(_d,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_e,_f){_f=_f||dojo.global;var x=0,i;for(i in this._hash){if(_e.call(_f,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _10=dijit.registry._hash,_11=dojo.attr,_12=dojo.hasAttr,_13=dojo.style;dijit.byId=function(id){return typeof id=="string"?_10[id]:id;};var _14={};dijit.getUniqueId=function(_15){var id;do{id=_15+"_"+(_15 in _14?++_14[_15]:_14[_15]=0);}while(_10[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_16){var _17=[];function _18(_19){for(var _1a=_19.firstChild;_1a;_1a=_1a.nextSibling){if(_1a.nodeType==1){var _1b=_1a.getAttribute("widgetId");if(_1b){var _1c=_10[_1b];if(_1c){_17.push(_1c);}}else{_18(_1a);}}}};_18(_16);return _17;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_1d){if(!_1d._destroyed){if(_1d.destroyRecursive){_1d.destroyRecursive();}else{if(_1d.destroy){_1d.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_1e){return _10[_1e.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_1f){while(_1f){var id=_1f.getAttribute&&_1f.getAttribute("widgetId");if(id){return _10[id];}_1f=_1f.parentNode;}return null;};var _20=(dijit._isElementShown=function(_21){var s=_13(_21);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_11(_21,"type")!="hidden");});dijit.hasDefaultTabStop=function(_22){switch(_22.nodeName.toLowerCase()){case "a":return _12(_22,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _23;try{var _24=_22.contentDocument;if("designMode" in _24&&_24.designMode=="on"){return true;}_23=_24.body;}catch(e1){try{_23=_22.contentWindow.document.body;}catch(e2){return false;}}return _23.contentEditable=="true"||(_23.firstChild&&_23.firstChild.contentEditable=="true");default:return _22.contentEditable=="true";}};var _25=(dijit.isTabNavigable=function(_26){if(_11(_26,"disabled")){return false;}else{if(_12(_26,"tabIndex")){return _11(_26,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_26);}}});dijit._getTabNavigable=function(_27){var _28,_29,_2a,_2b,_2c,_2d,_2e={};function _2f(_30){return _30&&_30.tagName.toLowerCase()=="input"&&_30.type&&_30.type.toLowerCase()=="radio"&&_30.name&&_30.name.toLowerCase();};var _31=function(_32){dojo.query("> *",_32).forEach(function(_33){if((dojo.isIE&&_33.scopeName!=="HTML")||!_20(_33)){return;}if(_25(_33)){var _34=_11(_33,"tabIndex");if(!_12(_33,"tabIndex")||_34==0){if(!_28){_28=_33;}_29=_33;}else{if(_34>0){if(!_2a||_34<_2b){_2b=_34;_2a=_33;}if(!_2c||_34>=_2d){_2d=_34;_2c=_33;}}}var rn=_2f(_33);if(dojo.attr(_33,"checked")&&rn){_2e[rn]=_33;}}if(_33.nodeName.toUpperCase()!="SELECT"){_31(_33);}});};if(_20(_27)){_31(_27);}function rs(_35){return _2e[_2f(_35)]||_35;};return {first:rs(_28),last:rs(_29),lowest:rs(_2a),highest:rs(_2c)};};dijit.getFirstInTabbingOrder=function(_36){var _37=dijit._getTabNavigable(dojo.byId(_36));return _37.lowest?_37.lowest:_37.first;};dijit.getLastInTabbingOrder=function(_38){var _39=dijit._getTabNavigable(dojo.byId(_38));return _39.last?_39.last:_39.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(_3a){if(_3a){dojo.mixin(this,_3a);}},get:function(_3b){return this[_3b];},set:function(_3c,_3d){if(typeof _3c==="object"){for(var x in _3c){this.set(x,_3c[x]);}return this;}var _3e=this[_3c];this[_3c]=_3d;if(this._watchCallbacks){this._watchCallbacks(_3c,_3e,_3d);}return this;},watch:function(_3f,_40){var _41=this._watchCallbacks;if(!_41){var _42=this;_41=this._watchCallbacks=function(_43,_44,_45,_46){var _47=function(_48){if(_48){_48=_48.slice();for(var i=0,l=_48.length;i<l;i++){try{_48[i].call(_42,_43,_44,_45);}catch(e){console.error(e);}}}};_47(_41["_"+_43]);if(!_46){_47(_41["*"]);}};}if(!_40&&typeof _3f==="function"){_40=_3f;_3f="*";}else{_3f="_"+_3f;}var _49=_41[_3f];if(typeof _49!=="object"){_49=_41[_3f]=[];}_49.push(_40);return {unwatch:function(){_49.splice(dojo.indexOf(_49,_40),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_4a,_4b){this.create(_4a,_4b);},create:function(_4c,_4d){this.srcNodeRef=dojo.byId(_4d);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_4c){this.params=_4c;dojo._mixin(this,_4c);}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 _4e=this.srcNodeRef;if(_4e&&_4e.parentNode&&this.domNode!==_4e){_4e.parentNode.replaceChild(this.domNode,_4e);}}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 _4f=function(_50,_51){if((_51.params&&_50 in _51.params)||_51[_50]){_51.set(_50,_51[_50]);}};for(var _52 in this.attributeMap){_4f(_52,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_4f(a,this);}},this);},_getSetterAttributes:function(){var _53=this.constructor;if(!_53._setterAttrs){var r=(_53._setterAttrs=[]),_54,_55=_53.prototype;for(var _56 in _55){if(dojo.isFunction(_55[_56])&&(_54=_56.match(/^_set([a-zA-Z]*)Attr$/))&&_54[1]){r.push(_54[1].charAt(0).toLowerCase()+_54[1].substr(1));}}}return _53._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _57=this.baseClass.split(" ");if(!this.isLeftToRight()){_57=_57.concat(dojo.map(_57,function(_58){return _58+"Rtl";}));}dojo.addClass(this.domNode,_57);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_59){this._beingDestroyed=true;this.destroyDescendants(_59);this.destroy(_59);},destroy:function(_5a){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_5b){dfe(_5b,d.disconnect);});dfe(this._subscribes,function(_5c){dun(_5c);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_5a);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_5d){if(this.bgIframe){this.bgIframe.destroy(_5d);delete this.bgIframe;}if(this.domNode){if(_5d){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_5d){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_5e){dojo.forEach(this.getChildren(),function(_5f){if(_5f.destroyRecursive){_5f.destroyRecursive(_5e);}});},uninitialize:function(){return false;},_setClassAttr:function(_60){var _61=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_61,_60,this["class"]);this._set("class",_60);},_setStyleAttr:function(_62){var _63=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_62)){dojo.style(_63,_62);}else{if(_63.style.cssText){_63.style.cssText+="; "+_62;}else{_63.style.cssText=_62;}}this._set("style",_62);},_attrToDom:function(_64,_65){var _66=this.attributeMap[_64];dojo.forEach(dojo.isArray(_66)?_66:[_66],function(_67){var _68=this[_67.node||_67||"domNode"];var _69=_67.type||"attribute";switch(_69){case "attribute":if(dojo.isFunction(_65)){_65=dojo.hitch(this,_65);}var _6a=_67.attribute?_67.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_64)?_64.toLowerCase():_64);dojo.attr(_68,_6a,_65);break;case "innerText":_68.innerHTML="";_68.appendChild(dojo.doc.createTextNode(_65));break;case "innerHTML":_68.innerHTML=_65;break;case "class":dojo.replaceClass(_68,_65,this[_64]);break;}},this);},get:function(_6b){var _6c=this._getAttrNames(_6b);return this[_6c.g]?this[_6c.g]():this[_6b];},set:function(_6d,_6e){if(typeof _6d==="object"){for(var x in _6d){this.set(x,_6d[x]);}return this;}var _6f=this._getAttrNames(_6d);if(this[_6f.s]){var _70=this[_6f.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(_6d in this.attributeMap){this._attrToDom(_6d,_6e);}this._set(_6d,_6e);}return _70||this;},_attrPairNames:{},_getAttrNames:function(_71){var apn=this._attrPairNames;if(apn[_71]){return apn[_71];}var uc=_71.charAt(0).toUpperCase()+_71.substr(1);return (apn[_71]={n:_71+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_72,_73){var _74=this[_72];this[_72]=_73;if(this._watchCallbacks&&this._created&&_73!==_74){this._watchCallbacks(_72,_74,_73);}},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,_75,_76){var _77=[dojo._connect(obj,_75,this,_76)];this._connects.push(_77);return _77;},disconnect:function(_78){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_78){dojo.forEach(_78,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_79,_7a){var _7b=dojo.subscribe(_79,this,_7a);this._subscribes.push(_7b);return _7b;},unsubscribe:function(_7c){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_7c){dojo.unsubscribe(_7c);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_7d,_7e){if(_7d.declaredClass&&_7d.addChild){_7d.addChild(this,_7e);}else{dojo.place(this.domNode,_7d,_7e);}return this;}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _7f=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _80=dojo._docScroll();return {w:_7f.clientWidth,h:_7f.clientHeight,l:_80.x,t:_80.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(_81,pos){try{_81=dojo.byId(_81);var doc=_81.ownerDocument||dojo.doc,_82=doc.body||dojo.body(),_83=doc.documentElement||_82.parentNode,_84=dojo.isIE,_85=dojo.isWebKit;if((!(dojo.isMoz||_84||_85||dojo.isOpera)||_81==_82||_81==_83)&&(typeof _81.scrollIntoView!="undefined")){_81.scrollIntoView(false);return;}var _86=doc.compatMode=="BackCompat",_87=_86?_82:_83,_88=_85?_82:_87,_89=_87.clientWidth,_8a=_87.clientHeight,rtl=!dojo._isBodyLtr(),_8b=pos||dojo.position(_81),el=_81.parentNode,_8c=function(el){return ((_84<=6||(_84&&_86))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_8c(_81)){return;}while(el){if(el==_82){el=_88;}var _8d=dojo.position(el),_8e=_8c(el);if(el==_88){_8d.w=_89;_8d.h=_8a;if(_88==_83&&_84&&rtl){_8d.x+=_88.offsetWidth-_8d.w;}if(_8d.x<0||!_84){_8d.x=0;}if(_8d.y<0||!_84){_8d.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_8d.w-=pb.w;_8d.h-=pb.h;_8d.x+=pb.l;_8d.y+=pb.t;}if(el!=_88){var _8f=el.clientWidth,_90=_8d.w-_8f;if(_8f>0&&_90>0){_8d.w=_8f;if(_84&&rtl){_8d.x+=_90;}}_8f=el.clientHeight;_90=_8d.h-_8f;if(_8f>0&&_90>0){_8d.h=_8f;}}if(_8e){if(_8d.y<0){_8d.h+=_8d.y;_8d.y=0;}if(_8d.x<0){_8d.w+=_8d.x;_8d.x=0;}if(_8d.y+_8d.h>_8a){_8d.h=_8a-_8d.y;}if(_8d.x+_8d.w>_89){_8d.w=_89-_8d.x;}}var l=_8b.x-_8d.x,t=_8b.y-Math.max(_8d.y,0),r=l+_8b.w-_8d.w,bot=t+_8b.h-_8d.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_8b.x+=el.scrollLeft;el.scrollLeft+=(_84>=8&&!_86&&rtl)?-s:s;_8b.x-=el.scrollLeft;}if(bot*t>0){_8b.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_8b.y-=el.scrollTop;}el=(el!=_88)&&!_8e&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_81.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};}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(_91){var _92=dojo.doc,_93=_91.mark;if(_93){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_93.pRange){var r=_93;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_93);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_92.selection&&_93){var rg;if(_93.pRange){rg=_93.range;}else{if(dojo.isArray(_93)){rg=_92.body.createControlRange();dojo.forEach(_93,function(n){rg.addElement(n);});}else{rg=_92.body.createTextRange();rg.moveToBookmark(_93);}}rg.select();}}}},getFocus:function(_94,_95){var _96=!dijit._curFocus||(_94&&dojo.isDescendant(dijit._curFocus,_94.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_96,bookmark:(_96==dijit._curFocus)&&dojo.withGlobal(_95||dojo.global,dijit.getBookmark),openedForWindow:_95};},focus:function(_97){if(!_97){return;}var _98="node" in _97?_97.node:_97,_99=_97.bookmark,_9a=_97.openedForWindow,_9b=_99?_99.isCollapsed:false;if(_98){var _9c=(_98.tagName.toLowerCase()=="iframe")?_98.contentWindow:_98;if(_9c&&_9c.focus){try{_9c.focus();}catch(e){}}dijit._onFocusNode(_98);}if(_99&&dojo.withGlobal(_9a||dojo.global,dijit.isCollapsed)&&!_9b){if(_9a){_9a.focus();}try{dojo.withGlobal(_9a||dojo.global,dijit.moveToBookmark,null,[_99]);}catch(e2){}}},_activeStack:[],registerIframe:function(_9d){return dijit.registerWin(_9d.contentWindow,_9d);},unregisterIframe:function(_9e){dijit.unregisterWin(_9e);},registerWin:function(_9f,_a0){var _a1=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_a0||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_9f.document.documentElement:_9f.document;if(doc){if(dojo.isIE){_9f.document.body.attachEvent("onmousedown",_a1);var _a2=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_a0||evt.srcElement);}else{dijit._onTouchNode(_a0||evt.srcElement);}};doc.attachEvent("onactivate",_a2);var _a3=function(evt){dijit._onBlurNode(_a0||evt.srcElement);};doc.attachEvent("ondeactivate",_a3);return function(){_9f.document.detachEvent("onmousedown",_a1);doc.detachEvent("onactivate",_a2);doc.detachEvent("ondeactivate",_a3);doc=null;};}else{doc.body.addEventListener("mousedown",_a1,true);var _a4=function(evt){dijit._onFocusNode(_a0||evt.target);};doc.addEventListener("focus",_a4,true);var _a5=function(evt){dijit._onBlurNode(_a0||evt.target);};doc.addEventListener("blur",_a5,true);return function(){doc.body.removeEventListener("mousedown",_a1,true);doc.removeEventListener("focus",_a4,true);doc.removeEventListener("blur",_a5,true);doc=null;};}}},unregisterWin:function(_a6){_a6&&_a6();},_onBlurNode:function(_a7){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(_a8,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _a9=[];try{while(_a8){var _aa=dojo.attr(_a8,"dijitPopupParent");if(_aa){_a8=dijit.byId(_aa).domNode;}else{if(_a8.tagName&&_a8.tagName.toLowerCase()=="body"){if(_a8===dojo.body()){break;}_a8=dojo.window.get(_a8.ownerDocument).frameElement;}else{var id=_a8.getAttribute&&_a8.getAttribute("widgetId"),_ab=id&&dijit.byId(id);if(_ab&&!(by=="mouse"&&_ab.get("disabled"))){_a9.unshift(id);}_a8=_a8.parentNode;}}}}catch(e){}dijit._setStack(_a9,by);},_onFocusNode:function(_ac){if(!_ac){return;}if(_ac.nodeType==9){return;}dijit._onTouchNode(_ac);if(_ac==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_ac;dojo.publish("focusNode",[_ac]);},_setStack:function(_ad,by){var _ae=dijit._activeStack;dijit._activeStack=_ad;for(var _af=0;_af<Math.min(_ae.length,_ad.length);_af++){if(_ae[_af]!=_ad[_af]){break;}}var _b0;for(var i=_ae.length-1;i>=_af;i--){_b0=dijit.byId(_ae[i]);if(_b0){_b0._focused=false;_b0.set("focused",false);_b0._hasBeenBlurred=true;if(_b0._onBlur){_b0._onBlur(by);}dojo.publish("widgetBlur",[_b0,by]);}}for(i=_af;i<_ad.length;i++){_b0=dijit.byId(_ad[i]);if(_b0){_b0._focused=true;_b0.set("focused",true);if(_b0._onFocus){_b0._onFocus(by);}dojo.publish("widgetFocus",[_b0,by]);}}}});dojo.addOnLoad(function(){var _b1=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_b1);_b1=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_b2){this.pairs=[];this.returnWrappers=_b2||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_b3,_b4,_b5,_b6,_b7){this.pairs[((_b7)?"unshift":"push")]([_b3,_b4,_b5,_b6]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _b8=this.pairs[i];if(_b8[1].apply(this,arguments)){if((_b8[3])||(this.returnWrappers)){return _b8[2];}else{return _b8[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_b9){for(var i=0;i<this.pairs.length;i++){var _ba=this.pairs[i];if(_ba[0]==_b9){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(_bb,pos,_bc,_bd){var _be=dojo.map(_bc,function(_bf){var c={corner:_bf,pos:{x:pos.x,y:pos.y}};if(_bd){c.pos.x+=_bf.charAt(1)=="L"?_bd.x:-_bd.x;c.pos.y+=_bf.charAt(0)=="T"?_bd.y:-_bd.y;}return c;});return dijit._place(_bb,_be);};dijit._place=function(_c0,_c1,_c2,_c3){var _c4=dojo.window.getBox();if(!_c0.parentNode||String(_c0.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_c0);}var _c5=null;dojo.some(_c1,function(_c6){var _c7=_c6.corner;var pos=_c6.pos;var _c8=0;var _c9={w:_c7.charAt(1)=="L"?(_c4.l+_c4.w)-pos.x:pos.x-_c4.l,h:_c7.charAt(1)=="T"?(_c4.t+_c4.h)-pos.y:pos.y-_c4.t};if(_c2){var res=_c2(_c0,_c6.aroundCorner,_c7,_c9,_c3);_c8=typeof res=="undefined"?0:res;}var _ca=_c0.style;var _cb=_ca.display;var _cc=_ca.visibility;_ca.visibility="hidden";_ca.display="";var mb=dojo.marginBox(_c0);_ca.display=_cb;_ca.visibility=_cc;var _cd=Math.max(_c4.l,_c7.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_ce=Math.max(_c4.t,_c7.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_cf=Math.min(_c4.l+_c4.w,_c7.charAt(1)=="L"?(_cd+mb.w):pos.x),_d0=Math.min(_c4.t+_c4.h,_c7.charAt(0)=="T"?(_ce+mb.h):pos.y),_d1=_cf-_cd,_d2=_d0-_ce;_c8+=(mb.w-_d1)+(mb.h-_d2);if(_c5==null||_c8<_c5.overflow){_c5={corner:_c7,aroundCorner:_c6.aroundCorner,x:_cd,y:_ce,w:_d1,h:_d2,overflow:_c8,spaceAvailable:_c9};}return !_c8;});if(_c5.overflow&&_c2){_c2(_c0,_c5.aroundCorner,_c5.corner,_c5.spaceAvailable,_c3);}var l=dojo._isBodyLtr(),s=_c0.style;s.top=_c5.y+"px";s[l?"left":"right"]=(l?_c5.x:_c4.w-_c5.x-_c5.w)+"px";return _c5;};dijit.placeOnScreenAroundNode=function(_d3,_d4,_d5,_d6){_d4=dojo.byId(_d4);var _d7=dojo.position(_d4,true);return dijit._placeOnScreenAroundRect(_d3,_d7.x,_d7.y,_d7.w,_d7.h,_d5,_d6);};dijit.placeOnScreenAroundRectangle=function(_d8,_d9,_da,_db){return dijit._placeOnScreenAroundRect(_d8,_d9.x,_d9.y,_d9.width,_d9.height,_da,_db);};dijit._placeOnScreenAroundRect=function(_dc,x,y,_dd,_de,_df,_e0){var _e1=[];for(var _e2 in _df){_e1.push({aroundCorner:_e2,corner:_df[_e2],pos:{x:x+(_e2.charAt(1)=="L"?0:_dd),y:y+(_e2.charAt(0)=="T"?0:_de)}});}return dijit._place(_dc,_e1,_e0,{w:_dd,h:_de});};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(_e3,_e4,_e5,_e6){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_e7,_e8){var _e9={};dojo.forEach(_e7,function(pos){switch(pos){case "after":_e9[_e8?"BR":"BL"]=_e8?"BL":"BR";break;case "before":_e9[_e8?"BL":"BR"]=_e8?"BR":"BL";break;case "below-alt":_e8=!_e8;case "below":_e9[_e8?"BL":"BR"]=_e8?"TL":"TR";_e9[_e8?"BR":"BL"]=_e8?"TR":"TL";break;case "above-alt":_e8=!_e8;case "above":default:_e9[_e8?"TL":"TR"]=_e8?"BL":"BR";_e9[_e8?"TR":"TL"]=_e8?"BR":"BL";break;}});return _e9;};}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(_ea){var _eb=_ea.declaredClass?_ea._popupWrapper:(dojo.hasClass(_ea.parentNode,"dijitPopup")&&_ea.parentNode),_ec=_ea.domNode||_ea;if(!_eb){_eb=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_eb.appendChild(_ec);var s=_ec.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_ea.declaredClass){_ea._popupWrapper=_eb;dojo.connect(_ea,"destroy",function(){dojo.destroy(_eb);delete _ea._popupWrapper;});}}return _eb;},moveOffScreen:function(_ed){var _ee=this._createWrapper(_ed);dojo.style(_ee,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_ef){var _f0=this._createWrapper(_ef);dojo.style(_f0,"display","none");},getTopPopup:function(){var _f1=this._stack;for(var pi=_f1.length-1;pi>0&&_f1[pi].parent===_f1[pi-1].widget;pi--){}return _f1[pi];},open:function(_f2){var _f3=this._stack,_f4=_f2.popup,_f5=_f2.orient||((_f2.parent?_f2.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_f6=_f2.around,id=(_f2.around&&_f2.around.id)?(_f2.around.id+"_dropdown"):("popup_"+this._idGen++);while(_f3.length&&(!_f2.parent||!dojo.isDescendant(_f2.parent.domNode,_f3[_f3.length-1].widget.domNode))){dijit.popup.close(_f3[_f3.length-1].widget);}var _f7=this._createWrapper(_f4);dojo.attr(_f7,{id:id,style:{zIndex:this._beginZIndex+_f3.length},"class":"dijitPopup "+(_f4.baseClass||_f4["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_f2.parent?_f2.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_f4.bgIframe){_f4.bgIframe=new dijit.BackgroundIframe(_f7);}}var _f8=_f6?dijit.placeOnScreenAroundElement(_f7,_f6,_f5,_f4.orient?dojo.hitch(_f4,"orient"):null):dijit.placeOnScreen(_f7,_f2,_f5=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_f2.padding);_f7.style.display="";_f7.style.visibility="visible";_f4.domNode.style.visibility="visible";var _f9=[];_f9.push(dojo.connect(_f7,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_f2.onCancel){dojo.stopEvent(evt);_f2.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _fa=this.getTopPopup();if(_fa&&_fa.onCancel){_fa.onCancel();}}}}));if(_f4.onCancel){_f9.push(dojo.connect(_f4,"onCancel",_f2.onCancel));}_f9.push(dojo.connect(_f4,_f4.onExecute?"onExecute":"onChange",this,function(){var _fb=this.getTopPopup();if(_fb&&_fb.onExecute){_fb.onExecute();}}));_f3.push({widget:_f4,parent:_f2.parent,onExecute:_f2.onExecute,onCancel:_f2.onCancel,onClose:_f2.onClose,handlers:_f9});if(_f4.onOpen){_f4.onOpen(_f8);}return _f8;},close:function(_fc){var _fd=this._stack;while((_fc&&dojo.some(_fd,function(_fe){return _fe.widget==_fc;}))||(!_fc&&_fd.length)){var top=_fd.pop(),_ff=top.widget,_100=top.onClose;if(_ff.onClose){_ff.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_ff&&_ff.domNode){this.hide(_ff);}if(_100){_100();}}}};dijit._frames=new function(){var _101=[];this.pop=function(){var _102;if(_101.length){_102=_101.pop();_102.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\");'>";_102=dojo.doc.createElement(html);}else{_102=dojo.create("iframe");_102.src="javascript:\"\"";_102.className="dijitBackgroundIframe";dojo.style(_102,"opacity",0.1);}_102.tabIndex=-1;dijit.setWaiRole(_102,"presentation");}return _102;};this.push=function(_103){_103.style.display="none";_101.push(_103);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _104=(this.iframe=dijit._frames.pop());node.appendChild(_104);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_104,{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,_105=d.isOpera,maj=Math.floor,ff=d.isFF,_106=d.boxModel.replace(/-/,""),_107={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_105,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_107["dj_"+_106]=true;var _108="";for(var clz in _107){if(_107[clz]){_108+=clz+" ";}}html.className=d.trim(html.className+" "+_108);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _109="dj_rtl dijitRtl "+_108.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_109);}});})();}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,_10a,node,_10b,obj,_10c,_10d,_10e){if(obj!=this._obj){this.stop();this._initialDelay=_10d||500;this._subsequentDelay=_10c||0.9;this._minDelay=_10e||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_10a,_10b);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,_10f,_110,_111,_112,_113,_114){if(_10f.keyCode){_10f.charOrCode=_10f.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_10f.charCode){_10f.charOrCode=String.fromCharCode(_10f.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==_10f.charOrCode&&(_10f.ctrlKey===undefined||_10f.ctrlKey==evt.ctrlKey)&&(_10f.altKey===undefined||_10f.altKey==evt.altKey)&&(_10f.metaKey===undefined||_10f.metaKey==(evt.metaKey||false))&&(_10f.shiftKey===undefined||_10f.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_110,node,_111,_10f,_112,_113,_114);}else{if(dijit.typematic._obj==_10f){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_10f){dijit.typematic.stop();}})];},addMouseListener:function(node,_115,_116,_117,_118,_119){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_115,node,_116,node,_117,_118,_119);}),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){dijit.typematic.trigger(evt,_115,node,_116,node,_117,_118,_119);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_11a,_11b,_11c,_11d,_11e,_11f,_120,_121){return this.addKeyListener(_11b,_11c,_11d,_11e,_11f,_120,_121).concat(this.addMouseListener(_11a,_11d,_11e,_11f,_120,_121));}};}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 _122=cs.backgroundImage;var _123=(cs.borderTopColor==cs.borderRightColor)||(_122!=null&&(_122=="none"||_122=="url(invalid-url:)"));dojo[_123?"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 _124=this.getWaiRole(elem);return role?(_124.indexOf(role)>-1):(_124.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 _125=dojo.attr(elem,"role");if(!_125){return;}if(role){var t=dojo.trim((" "+_125+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_126){return elem.hasAttribute?elem.hasAttribute("aria-"+_126):!!elem.getAttribute("aria-"+_126);},getWaiState:function(elem,_127){return elem.getAttribute("aria-"+_127)||"";},setWaiState:function(elem,_128,_129){elem.setAttribute("aria-"+_128,_129);},removeWaiState:function(elem,_12a){elem.removeAttribute("aria-"+_12a);}});}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(_12b,_12c){if(_12b&&dojo.isFunction(_12b._onConnect)){_12b._onConnect(_12c);}});dijit._connectOnUseEventHandler=function(_12d){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _12e=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_12e);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_12e);});})();}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(_12f,_130){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(_131){if(_131 in this._deferredConnects){var _132=this[this._deferredConnects[_131]||"domNode"];this.connect(_132,_131.toLowerCase(),_131);delete this._deferredConnects[_131];}},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,_133){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_133);},attr:function(name,_134){if(dojo.config.isDebug){var _135=arguments.callee._ach||(arguments.callee._ach={}),_136=(arguments.callee.caller||"unknown caller").toString();if(!_135[_136]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_136,"","2.0");_135[_136]=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,_137,_138){var d=dojo,dc=d._connect,_139=this.inherited(arguments,[obj,_137=="ondijitclick"?"onclick":_137,_138]);if(_137=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_138);_139.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 _139;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojox.gfx.matrix"]){dojo._hasResource["dojox.gfx.matrix"]=true;dojo.provide("dojox.gfx.matrix");(function(){var m=dojox.gfx.matrix;var _13a={};m._degToRad=function(_13b){return _13a[_13b]||(_13a[_13b]=(Math.PI*_13b/180));};m._radToDeg=function(_13c){return _13c/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 _13d=m.normalize(arg[0]);for(var i=1;i<arg.length;++i){var l=_13d,r=dojox.gfx.matrix.normalize(arg[i]);_13d=new m.Matrix2D();_13d.xx=l.xx*r.xx+l.xy*r.yx;_13d.xy=l.xx*r.xy+l.xy*r.yy;_13d.yx=l.yx*r.xx+l.yy*r.yx;_13d.yy=l.yx*r.xy+l.yy*r.yy;_13d.dx=l.xx*r.dx+l.xy*r.dy+l.dx;_13d.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}dojo.mixin(this,_13d);}}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(_13e){var c=Math.cos(_13e);var s=Math.sin(_13e);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_13f){return m.rotate(m._degToRad(_13f));},skewX:function(_140){return new m.Matrix2D({xy:Math.tan(_140)});},skewXg:function(_141){return m.skewX(m._degToRad(_141));},skewY:function(_142){return new m.Matrix2D({yx:Math.tan(_142)});},skewYg:function(_143){return m.skewY(m._degToRad(_143));},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(_144){return (_144 instanceof m.Matrix2D)?_144:new m.Matrix2D(_144);},clone:function(_145){var obj=new m.Matrix2D();for(var i in _145){if(typeof (_145[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_145[i]){obj[i]=_145[i];}}return obj;},invert:function(_146){var M=m.normalize(_146),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(_147,x,y){return {x:_147.xx*x+_147.xy*y+_147.dx,y:_147.yx*x+_147.yy*y+_147.dy};},multiplyPoint:function(_148,a,b){var M=m.normalize(_148);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_149){var M=m.normalize(_149);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(_14a,x,y){return m.multiply(m.translate(x,y),_14a,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(_14b,a,b){if(arguments.length>2){return m._sandwich(m.rotate(_14b),a,b);}return m._sandwich(m.rotate(_14b),a.x,a.y);},rotategAt:function(_14c,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_14c),a,b);}return m._sandwich(m.rotateg(_14c),a.x,a.y);},skewXAt:function(_14d,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_14d),a,b);}return m._sandwich(m.skewX(_14d),a.x,a.y);},skewXgAt:function(_14e,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_14e),a,b);}return m._sandwich(m.skewXg(_14e),a.x,a.y);},skewYAt:function(_14f,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_14f),a,b);}return m._sandwich(m.skewY(_14f),a.x,a.y);},skewYgAt:function(_150,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_150),a,b);}return m._sandwich(m.skewYg(_150),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,_151){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_151+" ")>=0;};g._addClass=function(node,_152){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_152+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_152);}};g._removeClass=function(node,_153){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_153+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _154={"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 _154){div.style.fontSize=p;_154[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);return _154;};var _155=null;b._getCachedFontMeasurements=function(_156){if(_156||!_155){_155=b._getFontMeasurements();}return _155;};var _157=null,_158={};b._getTextBox=function(text,_159,_15a){var m,s,al=arguments.length;if(!_157){_157=dojo.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},dojo.body());}m=_157;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_159){for(var i in _159){if(i in _158){continue;}s[i]=_159[i];}}if(al>2&&_15a){m.className=_15a;}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 _15b=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++_15b);}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 _15c={};return function(type){var t=_15c[type];if(t){return new t();}t=_15c[type]=new Function;t.prototype=dojox.gfx["default"+type];return new t();};})(),normalizeColor:function(_15d){return (_15d instanceof dojo.Color)?_15d:new dojo.Color(_15d);},normalizeParameters:function(_15e,_15f){if(_15f){var _160={};for(var x in _15e){if(x in _15f&&!(x in _160)){_15e[x]=_15f[x];}}}return _15e;},makeParameters:function(_161,_162){if(!_162){return dojo.delegate(_161);}var _163={};for(var i in _161){if(!(i in _163)){_163[i]=dojo.clone((i in _162)?_162[i]:_161[i]);}}return _163;},formatNumber:function(x,_164){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _165=val.indexOf(".");if(_165>=0&&val.length-_165>5){val=x.toFixed(4);}}if(x<0){return val;}return _164?" "+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 _166=dojox.gfx.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_166;case "in":return val*72*_166;case "pc":return val*12*_166;case "mm":return val*dojox.gfx.mm_in_pt*_166;case "cm":return val*dojox.gfx.cm_in_pt*_166;}}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(_167){var ns=dojox.gfx[_167];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,_168;while(!gfx.renderer){if(dojo.config.forceGfxRenderer){dojox.gfx.renderer=dojo.config.forceGfxRenderer;break;}var _169=(typeof dojo.config.gfxRenderer=="string"?dojo.config.gfxRenderer:"svg,vml,canvas,silverlight").split(",");for(var i=0;i<_169.length;++i){switch(_169[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,_16a={};var _16b="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 _16c=function(s){var args=[],_16d=_16b.call(s,/\s*->\s*/m);if(_16d.length>1){while(_16d.length){s=_16d.pop();args=_16d.pop().split(/\s*,\s*|\s+/m);if(_16d.length){_16d.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 _16e=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 _16c(s);},buildLambda:function(s){s=_16c(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _16e(s);}if(s in _16a){return _16a[s];}s=_16c(s);return _16a[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_16a={};}});})();}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,_16f={};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 _16f)){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 _16f)){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 _16f)){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 _16f)){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 _16f)){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,_170={};d.mixin(df,{keys:function(obj){var t=[];for(var i in obj){if(!(i in _170)){t.push(i);}}return t;},values:function(obj){var t=[];for(var i in obj){if(!(i in _170)){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 _170)){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 _170)){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 _170)){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,_171={};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 _171)){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 _172=true;for(i in a){if(!(i in _171)){if(_172){z=a[i];_172=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(_173){this.chart=_173;this.group=null;this.htmlElements=[];this.dirty=true;this.trailingSymbol="...";this._events=[];},createGroup:function(_174){if(!_174){_174=this.chart.surface;}if(!this.group){this.group=_174.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(_175){this.destroyHtmlElements();if(!_175){_175=this.chart.surface;}if(this.group){this.group.clear();}else{this.group=_175.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,_176,_177){if(!s||s.length<=0){return {text:"",truncated:_177||false};}if(!_176||_176<=0){return {text:s,truncated:_177||false};}var _178=2,_179=0.618,_17a=s.substring(0,1)+this.trailingSymbol,_17b=this.getTextWidth(_17a,font);if(_176<=_17b){return {text:_17a,truncated:true};}var _17c=this.getTextWidth(s,font);if(_17c<=_176){return {text:s,truncated:_177||false};}else{var _17d=0,end=s.length;while(_17d<end){if(end-_17d<=_178){while(this.getTextWidth(s.substring(0,_17d)+this.trailingSymbol,font)>_176){_17d-=1;}return {text:(s.substring(0,_17d)+this.trailingSymbol),truncated:true};}var _17e=_17d+Math.round((end-_17d)*_179),_17f=this.getTextWidth(s.substring(0,_17e),font);if(_17f<_176){_17d=_17e;end=end;}else{_17d=_17d;end=_17e;}}}},getTextWithLimitCharCount:function(s,font,_180,_181){if(!s||s.length<=0){return {text:"",truncated:_181||false};}if(!_180||_180<=0||s.length<=_180){return {text:s,truncated:_181||false};}return {text:s.substring(0,_180)+this.trailingSymbol,truncated:true};},_plotFill:function(fill,dim,_182){if(!fill||!fill.type||!fill.space){return fill;}var _183=fill.space;switch(fill.type){case "linear":if(_183==="plot"||_183==="shapeX"||_183==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_183;if(_183==="plot"||_183==="shapeX"){var span=dim.height-_182.t-_182.b;fill.y1=_182.t+span*fill.y1/100;fill.y2=_182.t+span*fill.y2/100;}if(_183==="plot"||_183==="shapeY"){var span=dim.width-_182.l-_182.r;fill.x1=_182.l+span*fill.x1/100;fill.x2=_182.l+span*fill.x2/100;}}break;case "radial":if(_183==="plot"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_183;var _184=dim.width-_182.l-_182.r,_185=dim.height-_182.t-_182.b;fill.cx=_182.l+_184*fill.cx/100;fill.cy=_182.t+_185*fill.cy/100;fill.r=fill.r*Math.sqrt(_184*_184+_185*_185)/200;}break;case "pattern":if(_183==="plot"||_183==="shapeX"||_183==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_183;if(_183==="plot"||_183==="shapeX"){var span=dim.height-_182.t-_182.b;fill.y=_182.t+span*fill.y/100;fill.height=span*fill.height/100;}if(_183==="plot"||_183==="shapeY"){var span=dim.width-_182.l-_182.r;fill.x=_182.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 _186=fill.space;switch(fill.type){case "linear":if(_186==="shape"||_186==="shapeX"||_186==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_186;if(_186==="shape"||_186==="shapeX"){var span=bbox.width;fill.x1=bbox.x+span*fill.x1/100;fill.x2=bbox.x+span*fill.x2/100;}if(_186==="shape"||_186==="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(_186==="shape"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_186;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(_186==="shape"||_186==="shapeX"||_186==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_186;if(_186==="shape"||_186==="shapeX"){var span=bbox.width;fill.x=bbox.x+span*fill.x/100;fill.width=span*fill.width/100;}if(_186==="shape"||_186==="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,_187,_188,_189,end){if(!fill||fill.type!=="radial"||fill.space!=="shape"){return fill;}var _18a=fill.space;fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_18a;if(arguments.length<4){fill.cx=_187.x;fill.cy=_187.y;fill.r=fill.r*_188/100;return fill;}var _18b=arguments.length<5?_189:(end+_189)/2;return {type:"linear",x1:_187.x,y1:_187.y,x2:_187.x+fill.r*_188*Math.cos(_18b)/100,y2:_187.y+fill.r*_188*Math.sin(_18b)/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 _18c=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(_18d,obj){var m=_18d.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=[_18c(m1,m2,H+1/3)*256,_18c(m1,m2,H)*256,_18c(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _18e=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(_18e(t.r,0,255));t.g=Math.round(_18e(t.g,0,255));t.b=Math.round(_18e(t.b,0,255));t.a=_18e(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,_18f,_190){if(dojo.isArray(cyan)){_18f=cyan[1],_190=cyan[2],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_18f=cyan.m,_190=cyan.y,cyan=cyan.c;}}cyan/=100,_18f/=100,_190/=100;var r=1-cyan,g=1-_18f,b=1-_190;return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_191,_192,_193){if(dojo.isArray(cyan)){_191=cyan[1],_192=cyan[2],_193=cyan[3],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_191=cyan.m,_192=cyan.y,_193=cyan.b,cyan=cyan.c;}}cyan/=100,_191/=100,_192/=100,_193/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_193)+_193);g=1-Math.min(1,_191*(1-_193)+_193);b=1-Math.min(1,_192*(1-_193)+_193);return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_194,_195){if(dojo.isArray(hue)){_194=hue[1],_195=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_194=hue.s,_195=hue.l,hue=hue.h;}}_194/=100;_195/=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*_194*Math.min(r,1)+(1-_194);g=2*_194*Math.min(g,1)+(1-_194);b=2*_194*Math.min(b,1)+(1-_194);if(_195<0.5){r*=_195,g*=_195,b*=_195;}else{r=(1-_195)*r+2*_195-1;g=(1-_195)*g+2*_195-1;b=(1-_195)*b+2*_195-1;}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsv:function(hue,_196,_197){if(dojo.isArray(hue)){_196=hue[1],_197=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_196=hue.s,_197=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_196/=100;_197/=100;var r,g,b;if(_196==0){r=_197,b=_197,g=_197;}else{var _198=hue/60,i=Math.floor(_198),f=_198-i;var p=_197*(1-_196);var q=_197*(1-(_196*f));var t=_197*(1-(_196*(1-f)));switch(i){case 0:r=_197,g=t,b=p;break;case 1:r=q,g=_197,b=p;break;case 2:r=p,g=_197,b=t;break;case 3:r=p,g=q,b=_197;break;case 4:r=t,g=p,b=_197;break;case 5:r=_197,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),_199=1-(this.g/255),_19a=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_199*100),y:Math.round(_19a*100)};},toCmyk:function(){var cyan,_19b,_19c,_19d;var r=this.r/255,g=this.g/255,b=this.b/255;_19d=Math.min(1-r,1-g,1-b);cyan=(1-r-_19d)/(1-_19d);_19b=(1-g-_19d)/(1-_19d);_19c=(1-b-_19d)/(1-_19d);return {c:Math.round(cyan*100),m:Math.round(_19b*100),y:Math.round(_19c*100),b:Math.round(_19d*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 _19e=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_19e/((l<0.5)?(2*l):(2-2*l));}if(_19e>0){if(max==r&&max!=g){h+=(g-b)/_19e;}if(max==g&&max!=b){h+=(2+(b-r)/_19e);}if(max==b&&max!=r){h+=(4+(r-g)/_19e);}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 _19f=max-min;var h=null,s=(max==0)?0:(_19f/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_19f;}else{if(g==max){h=120+60*(b-r)/_19f;}else{h=240+60*(r-g)/_19f;}}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 _1a0(p,_1a1,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var r=(_1a1=="dr")?item.r+val:item.r,g=(_1a1=="dg")?item.g+val:item.g,b=(_1a1=="db")?item.b+val:item.b,a=(_1a1=="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,_1a2,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmy(),c=(_1a2=="dc")?o.c+val:o.c,m=(_1a2=="dm")?o.m+val:o.m,y=(_1a2=="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 _1a3(p,_1a4,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmyk(),c=(_1a4=="dc")?o.c+val:o.c,m=(_1a4=="dm")?o.m+val:o.m,y=(_1a4=="dy")?o.y+val:o.y,k=(_1a4=="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,_1a5,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsl(),h=(_1a5=="dh")?o.h+val:o.h,s=(_1a5=="ds")?o.s+val:o.s,l=(_1a5=="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,_1a6,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsv(),h=(_1a6=="dh")?o.h+val:o.h,s=(_1a6=="ds")?o.s+val:o.s,v=(_1a6=="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 _1a7(val,low,high){return high-((high-val)*((high-low)/high));};dojo.extend(dxc.Palette,{transform:function(_1a8){var fn=_1a0;if(_1a8.use){var use=_1a8.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=_1a3;}else{fn=tCMY;}}}}else{if("dc" in _1a8||"dm" in _1a8||"dy" in _1a8){if("dk" in _1a8){fn=_1a3;}else{fn=tCMY;}}else{if("dh" in _1a8||"ds" in _1a8){if("dv" in _1a8){fn=tHSV;}else{fn=tHSL;}}}}var _1a9=this;for(var p in _1a8){if(p=="use"){continue;}_1a9=fn(_1a9,p,_1a8[p]);}return _1a9;},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=_1a7(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=_1a7(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,_1aa=args.da||30,hsv=base.toHsv();var _1ab=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_1ab-_1aa+360)%360,h2=(_1ab+_1aa)%360,s1=Math.max(hsv.s-10,0),s2=_1a7(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 _1ac={},du=dojox.lang.utils,opts=Object.prototype.toString;var _1ad=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(_1ae,_1af){switch(typeof _1ae){case "number":return Number(eval("("+_1af+")"));case "string":return String(_1af);case "boolean":return Boolean(eval("("+_1af+")"));}return eval("("+_1af+")");},updateWithObject:function(_1b0,_1b1,conv){if(!_1b1){return _1b0;}for(var x in _1b0){if(x in _1b1&&!(x in _1ac)){var t=_1b0[x];if(t&&typeof t=="object"){du.updateWithObject(t,_1b1[x],conv);}else{_1b0[x]=conv?du.coerceType(t,_1b1[x]):_1ad(_1b1[x]);}}}return _1b0;},updateWithPattern:function(_1b2,_1b3,_1b4,conv){if(!_1b3||!_1b4){return _1b2;}for(var x in _1b4){if(x in _1b3&&!(x in _1ac)){_1b2[x]=conv?du.coerceType(_1b4[x],_1b3[x]):_1ad(_1b3[x]);}}return _1b2;},merge:function(_1b5,_1b6){if(_1b6){var _1b7=opts.call(_1b5),_1b8=opts.call(_1b6),t,i,l,m;switch(_1b8){case "[object Array]":if(_1b8==_1b7){t=new Array(Math.max(_1b5.length,_1b6.length));for(i=0,l=t.length;i<l;++i){t[i]=du.merge(_1b5[i],_1b6[i]);}return t;}return _1b6.slice(0);case "[object Object]":if(_1b8==_1b7&&_1b5){t=dojo.delegate(_1b5);for(i in _1b6){if(i in _1b5){l=_1b5[i];m=_1b6[i];if(m!==l){t[i]=du.merge(l,m);}}else{t[i]=dojo.clone(_1b6[i]);}}return t;}return dojo.clone(_1b6);}}return _1b6;}});})();}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 _1b9(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 _1ba=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_1bb=m.rotate(-_1ba),_1bc=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_1bc,pt),pf1=m.multiplyPoint(_1bc,fill.x1,fill.y1),pf2=m.multiplyPoint(_1bc,fill.x2,fill.y2),_1bd=m.multiplyPoint(_1bb,pf2.x-pf1.x,pf2.y-pf1.y).x,o=m.multiplyPoint(_1bb,p.x-pf1.x,p.y-pf1.y).x/_1bd;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 _1b9(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(_1be){_1be=_1be||{};var def=dojox.charting.Theme.defaultTheme;dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){this[name]=dojo.delegate(def[name],_1be[name]);},this);if(_1be.seriesThemes&&_1be.seriesThemes.length){this.colors=null;this.seriesThemes=_1be.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_1be.colors||dojox.charting.Theme.defaultColors).slice(0);}this.markerThemes=null;if(_1be.markerThemes&&_1be.markerThemes.length){this.markerThemes=_1be.markerThemes.slice(0);}this.markers=_1be.markers?dojo.clone(_1be.markers):dojo.delegate(dojox.charting.Theme.defaultMarkers);this.noGradConv=_1be.noGradConv;this.noRadialConv=_1be.noRadialConv;if(_1be.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _1bf=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)){_1bf[name]=this[name];}},this);return _1bf;},clear:function(){this._current=0;},next:function(_1c0,_1c1,_1c2){var _1c3=dojox.lang.utils.merge,_1c4,_1c5;if(this.colors){_1c4=dojo.delegate(this.series);_1c5=dojo.delegate(this.marker);var _1c6=new dojo.Color(this.colors[this._current%this.colors.length]),old;if(_1c4.stroke&&_1c4.stroke.color){_1c4.stroke=dojo.delegate(_1c4.stroke);old=new dojo.Color(_1c4.stroke.color);_1c4.stroke.color=new dojo.Color(_1c6);_1c4.stroke.color.a=old.a;}else{_1c4.stroke={color:_1c6};}if(_1c5.stroke&&_1c5.stroke.color){_1c5.stroke=dojo.delegate(_1c5.stroke);old=new dojo.Color(_1c5.stroke.color);_1c5.stroke.color=new dojo.Color(_1c6);_1c5.stroke.color.a=old.a;}else{_1c5.stroke={color:_1c6};}if(!_1c4.fill||_1c4.fill.type){_1c4.fill=_1c6;}else{old=new dojo.Color(_1c4.fill);_1c4.fill=new dojo.Color(_1c6);_1c4.fill.a=old.a;}if(!_1c5.fill||_1c5.fill.type){_1c5.fill=_1c6;}else{old=new dojo.Color(_1c5.fill);_1c5.fill=new dojo.Color(_1c6);_1c5.fill.a=old.a;}}else{_1c4=this.seriesThemes?_1c3(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_1c5=this.markerThemes?_1c3(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_1c4;}var _1c7=_1c5&&_1c5.symbol||this._markers[this._current%this._markers.length];var _1c8={series:_1c4,marker:_1c5,symbol:_1c7};++this._current;if(_1c1){_1c8=this.addMixin(_1c8,_1c0,_1c1);}if(_1c2){_1c8=this.post(_1c8,_1c0);}return _1c8;},skip:function(){++this._current;},addMixin:function(_1c9,_1ca,_1cb,_1cc){if(dojo.isArray(_1cb)){dojo.forEach(_1cb,function(m){_1c9=this.addMixin(_1c9,_1ca,m);},this);}else{var t={};if("color" in _1cb){if(_1ca=="line"||_1ca=="area"){dojo.setObject("series.stroke.color",_1cb.color,t);dojo.setObject("marker.stroke.color",_1cb.color,t);}else{dojo.setObject("series.fill",_1cb.color,t);}}dojo.forEach(["stroke","outline","shadow","fill","font","fontColor","labelWiring"],function(name){var _1cd="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_1cd in _1cb;if(name in _1cb){dojo.setObject("series."+name,_1cb[name],t);if(!b){dojo.setObject("marker."+name,_1cb[name],t);}}if(b){dojo.setObject("marker."+name,_1cb[_1cd],t);}});if("marker" in _1cb){t.symbol=_1cb.marker;}_1c9=dojox.lang.utils.merge(_1c9,t);}if(_1cc){_1c9=this.post(_1c9,_1ca);}return _1c9;},post:function(_1ce,_1cf){var fill=_1ce.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_1cf=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_1cf=="slice"||_1cf=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dojox.lang.utils.merge(_1ce,{series:{fill:t}});}}return _1ce;},getTick:function(name,_1d0){var tick=this.axis.tick,_1d1=name+"Tick";merge=dojox.lang.utils.merge;if(tick){if(this.axis[_1d1]){tick=merge(tick,this.axis[_1d1]);}}else{tick=this.axis[_1d1];}if(_1d0){if(tick){if(_1d0[_1d1]){tick=merge(tick,_1d0[_1d1]);}}else{tick=_1d0[_1d1];}}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,_1d2){this.markers[name]=_1d2;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(_1d3){_1d3=_1d3||{};var c=[],n=_1d3.num||5;if(_1d3.colors){var l=_1d3.colors.length;for(var i=0;i<n;i++){c.push(_1d3.colors[i%l]);}return c;}if(_1d3.hue){var s=_1d3.saturation||100;var st=_1d3.low||30;var end=_1d3.high||90;var l=(end+st)/2;return dojox.color.Palette.generate(dojox.color.fromHsv(_1d3.hue,s,l),"monochromatic").colors;}if(_1d3.generator){return dojox.color.Palette.generate(_1d3.base,_1d3.generator).colors;}return c;},generateGradient:function(_1d4,_1d5,_1d6){var fill=dojo.delegate(_1d4);fill.colors=[{offset:0,color:_1d5},{offset:1,color:_1d6}];return fill;},generateHslColor:function(_1d7,_1d8){_1d7=new dojox.color.Color(_1d7);var hsl=_1d7.toHsl(),_1d9=dojox.color.fromHsl(hsl.h,hsl.s,_1d8);_1d9.a=_1d7.a;return _1d9;},generateHslGradient:function(_1da,_1db,_1dc,_1dd){_1da=new dojox.color.Color(_1da);var hsl=_1da.toHsl(),_1de=dojox.color.fromHsl(hsl.h,hsl.s,_1dc),_1df=dojox.color.fromHsl(hsl.h,hsl.s,_1dd);_1de.a=_1df.a=_1da.a;return dojox.charting.Theme.generateGradient(_1db,_1de,_1df);}});}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(_1e0,data,_1e1){dojo.mixin(this,_1e1);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 _1e2=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 _1e3=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(_1e4,_1e5,x,y,_1e6,text,font,_1e7){return _1e5.createText({x:x,y:y,text:text,align:_1e6}).setFont(font).setFill(_1e7);},html:function(_1e8,_1e9,x,y,_1ea,text,font,_1eb,_1ec){var p=dojo.doc.createElement("div"),s=p.style,_1ed;_1e2(s);s.font=font;p.innerHTML=String(text).replace(/\s/g,"&nbsp;");s.color=_1eb;s.position="absolute";s.left="-10000px";dojo.body().appendChild(p);var size=g.normalizedLength(g.splitFontString(font).size);if(!_1ec){_1ed=_1e3(p);}dojo.body().removeChild(p);s.position="relative";if(_1ec){s.width=_1ec+"px";switch(_1ea){case "middle":s.textAlign="center";s.left=(x-_1ec/2)+"px";break;case "end":s.textAlign="right";s.left=(x-_1ec)+"px";break;default:s.left=x+"px";s.textAlign="left";break;}}else{switch(_1ea){case "middle":s.left=Math.floor(x-_1ed/2)+"px";break;case "end":s.left=Math.floor(x-_1ed)+"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;_1e2(w);w.width="0px";w.height="0px";wrap.appendChild(p);_1e8.node.insertBefore(wrap,_1e8.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,_1ee=df.lambda("item.clear()"),_1ef=df.lambda("item.purgeGroup()"),_1f0=df.lambda("item.destroy()"),_1f1=df.lambda("item.dirty = false"),_1f2=df.lambda("item.dirty = true"),_1f3=df.lambda("item.name");dojo.declare("dojox.charting.Chart",null,{constructor:function(node,_1f4){if(!_1f4){_1f4={};}this.margins=_1f4.margins?_1f4.margins:{l:10,t:10,r:10,b:10};this.stroke=_1f4.stroke;this.fill=_1f4.fill;this.delayInMs=_1f4.delayInMs||200;this.title=_1f4.title;this.titleGap=_1f4.titleGap;this.titlePos=_1f4.titlePos;this.titleFont=_1f4.titleFont;this.titleFontColor=_1f4.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,_1f0);dojo.forEach(this.stack,_1f0);df.forIn(this.axes,_1f0);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(_1f5){this.theme=_1f5.clone();this.dirty=true;return this;},addAxis:function(name,_1f6){var axis,_1f7=_1f6&&_1f6.type||"Default";if(typeof _1f7=="string"){if(!dc.axis2d||!dc.axis2d[_1f7]){throw Error("Can't find axis: "+_1f7+" - didn't you forget to dojo"+".require() it?");}axis=new dc.axis2d[_1f7](this,_1f6);}else{axis=new _1f7(this,_1f6);}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,_1f8){var plot,_1f9=_1f8&&_1f8.type||"Default";if(typeof _1f9=="string"){if(!dc.plot2d||!dc.plot2d[_1f9]){throw Error("Can't find plot: "+_1f9+" - didn't you forget to dojo"+".require() it?");}plot=new dc.plot2d[_1f9](this,_1f8);}else{plot=new _1f9(this,_1f8);}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 _1fa=this.plots[name];delete this.plots[name];this.stack[_1fa].destroy();this.stack.splice(_1fa,1);df.forIn(this.plots,function(idx,name,_1fb){if(idx>_1fa){_1fb[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,_1fc){this.runs[run.plot]=_1fc;},this);this.series=ns;}this.dirty=true;}return this;},getPlotOrder:function(){return df.map(this.stack,_1f3);},setPlotOrder:function(_1fd){var _1fe={},_1ff=df.filter(_1fd,function(name){if(!(name in this.plots)||(name in _1fe)){return false;}_1fe[name]=1;return true;},this);if(_1ff.length<this.stack.length){df.forEach(this.stack,function(plot){var name=plot.name;if(!(name in _1fe)){_1ff.push(name);}});}var _200=df.map(_1ff,function(name){return this.stack[this.plots[name]];},this);df.forEach(_200,function(plot,i){this.plots[plot.name]=i;},this);this.stack=_200;this.dirty=true;return this;},movePlotToFront:function(name){if(name in this.plots){var _201=this.plots[name];if(_201){var _202=this.getPlotOrder();_202.splice(_201,1);_202.unshift(name);return this.setPlotOrder(_202);}}return this;},movePlotToBack:function(name){if(name in this.plots){var _203=this.plots[name];if(_203<this.stack.length-1){var _204=this.getPlotOrder();_204.splice(_203,1);_204.push(name);return this.setPlotOrder(_204);}}return this;},addSeries:function(name,data,_205){var run=new dc.Series(this,data,_205);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 _206=this.runs[name];delete this.runs[name];this.series[_206].destroy();this.series.splice(_206,1);df.forIn(this.runs,function(idx,name,runs){if(idx>_206){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(_207){return df.map(df.filter(this.series,function(run){return run.plot==_207;}),_1f3);},setSeriesOrder:function(_208){var _209,_20a={},_20b=df.filter(_208,function(name){if(!(name in this.runs)||(name in _20a)){return false;}var run=this.series[this.runs[name]];if(_209){if(run.plot!=_209){return false;}}else{_209=run.plot;}_20a[name]=1;return true;},this);df.forEach(this.series,function(run){var name=run.name;if(!(name in _20a)&&run.plot==_209){_20b.push(name);}});var _20c=df.map(_20b,function(name){return this.series[this.runs[name]];},this);this.series=_20c.concat(df.filter(this.series,function(run){return run.plot!=_209;}));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 _20d=this.runs[name],_20e=this.getSeriesOrder(this.series[_20d].plot);if(name!=_20e[0]){_20e.splice(_20d,1);_20e.unshift(name);return this.setSeriesOrder(_20e);}}return this;},moveSeriesToBack:function(name){if(name in this.runs){var _20f=this.runs[name],_210=this.getSeriesOrder(this.series[_20f].plot);if(name!=_210[_210.length-1]){_210.splice(_20f,1);_210.push(name);return this.setSeriesOrder(_210);}}return this;},resize:function(_211,_212){var box;switch(arguments.length){case 1:box=dojo.mixin({},_211);dojo.marginBox(this.node,box);break;case 2:box={w:_211,h:_212};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,_213,_214,zoom){var axis=this.axes[name];if(axis){axis.setWindow(_213,_214);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 _215,_216,_217=axis.getScaler().bounds,s=_217.span/(_217.upper-_217.lower);if(axis.vertical){_215=sy;_216=dy/s/_215;}else{_215=sx;_216=dx/s/_215;}axis.setWindow(_215,_216);});dojo.forEach(this.stack,function(plot){plot.zoom=zoom;});return this;},zoomIn:function(name,_218){var axis=this.axes[name];if(axis){var _219,_21a,_21b=axis.getScaler().bounds;var _21c=Math.min(_218[0],_218[1]);var _21d=Math.max(_218[0],_218[1]);_21c=_218[0]<_21b.lower?_21b.lower:_21c;_21d=_218[1]>_21b.upper?_21b.upper:_21d;_219=(_21b.upper-_21b.lower)/(_21d-_21c);_21a=_21c-_21b.lower;this.setAxisWindow(name,_219,_21a);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _21e=dojo.filter(this.stack,function(plot){return plot.dirty||(plot.hAxis&&this.axes[plot.hAxis].dirty)||(plot.vAxis&&this.axes[plot.vAxis].dirty);},this);_21f(_21e,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();dojo.forEach(this.stack,_1ee);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,_1ee);_21f(this.stack,dim);var _220=this.offsets={l:0,r:0,t:0,b:0};df.forIn(this.axes,function(axis){df.forIn(axis.getOffsets(),function(o,i){_220[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 _221=g.normalizedLength(g.splitFontString(this.titleFont).size);_220[this.titlePos=="top"?"t":"b"]+=(_221+this.titleGap);}df.forIn(this.margins,function(o,i){_220[i]+=o;});this.plotArea={width:dim.width-_220.l-_220.r,height:dim.height-_220.t-_220.b};df.forIn(this.axes,_1ee);_21f(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 _222=this.offsets,dim=this.dim,rect;dojo.forEach(this.series,_1ef);df.forIn(this.axes,_1ef);dojo.forEach(this.stack,_1ef);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,_223=t.plotarea&&t.plotarea.stroke,rect={x:_222.l-1,y:_222.t-1,width:dim.width-_222.l-_222.r+2,height:dim.height-_222.t-_222.b+2};if(fill){fill=dc.Element.prototype._shapeFill(dc.Element.prototype._plotFill(fill,dim,_222),rect);this.surface.createRect(rect).setFill(fill);}if(_223){this.surface.createRect({x:_222.l,y:_222.t,width:dim.width-_222.l-_222.r+1,height:dim.height-_222.t-_222.b+1}).setStroke(_223);}df.foldr(this.stack,function(z,plot){return plot.render(dim,_222),0;},0);fill=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_223=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,_222);if(_222.l){rect={width:_222.l,height:dim.height+1};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_222.r){rect={x:dim.width-_222.r,width:_222.r+1,height:dim.height+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_222.t){rect={width:dim.width+1,height:_222.t};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_222.b){rect={y:dim.height-_222.b,width:dim.width+1,height:_222.b+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}}if(_223){this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_223);}if(this.title){var _224=(g.renderer=="canvas"),_225=_224||!dojo.isIE&&!dojo.isOpera?"html":"gfx",_226=g.normalizedLength(g.splitFontString(this.titleFont).size);this.chartTitle=dc.axis2d.common.createText[_225](this,this.surface,dim.width/2,this.titlePos=="top"?_226+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);}df.forIn(this.axes,function(axis){axis.render(dim,_222);});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,_227,_228){return name in this.plots?this.stack[this.plots[name]].connect(_227,_228):null;},fireEvent:function(_229,_22a,_22b){if(_229 in this.runs){var _22c=this.series[this.runs[_229]].plot;if(_22c in this.plots){var plot=this.stack[this.plots[_22c]];if(plot){plot.fireEvent(_229,_22a,_22b);}}}return this;},_makeClean:function(){dojo.forEach(this.axes,_1f1);dojo.forEach(this.stack,_1f1);dojo.forEach(this.series,_1f1);this.dirty=false;},_makeDirty:function(){dojo.forEach(this.axes,_1f2);dojo.forEach(this.stack,_1f2);dojo.forEach(this.series,_1f2);this.dirty=true;},_invalidateDependentPlots:function(_22d,_22e){if(_22d in this.plots){var plot=this.stack[this.plots[_22d]],axis,_22f=_22e?"vAxis":"hAxis";if(plot[_22f]){axis=this.axes[plot[_22f]];if(axis&&axis.dependOnData()){axis.dirty=true;dojo.forEach(this.stack,function(p){if(p[_22f]&&p[_22f]==plot[_22f]){p.dirty=true;}});}}else{plot.dirty=true;}}}});function _230(_231){return {min:_231.hmin,max:_231.hmax};};function _232(_233){return {min:_233.vmin,max:_233.vmax};};function _234(_235,h){_235.hmin=h.min;_235.hmax=h.max;};function _236(_237,v){_237.vmin=v.min;_237.vmax=v.max;};function _238(_239,_23a){if(_239&&_23a){_239.min=Math.min(_239.min,_23a.min);_239.max=Math.max(_239.max,_23a.max);}return _239||_23a;};function _21f(_23b,_23c){var _23d={},axes={};dojo.forEach(_23b,function(plot){var _23e=_23d[plot.name]=plot.getSeriesStats();if(plot.hAxis){axes[plot.hAxis]=_238(axes[plot.hAxis],_230(_23e));}if(plot.vAxis){axes[plot.vAxis]=_238(axes[plot.vAxis],_232(_23e));}});dojo.forEach(_23b,function(plot){var _23f=_23d[plot.name];if(plot.hAxis){_234(_23f,axes[plot.hAxis]);}if(plot.vAxis){_236(_23f,axes[plot.vAxis]);}plot.initializeScalers(_23c,_23f);});};})();}if(!dojo._hasResource["dojox.charting.widget.Chart"]){dojo._hasResource["dojox.charting.widget.Chart"]=true;dojo.provide("dojox.charting.widget.Chart");(function(){var _240,_241,_242,_243,_244,_245=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(_241).filter(_245),_246=d.query("> .plot",n).map(_242).filter(_245),_247=d.query("> .action",n).map(_243).filter(_245),_248=d.query("> .series",n).map(_244).filter(_245);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);});_246.forEach(function(plot){c.addPlot(plot.name,plot.kwArgs);});this.actions=_247.map(function(_249){return new _249.action(c,_249.plot,_249.kwArgs);});var _24a=df.foldl(_248,function(_24b,_24c){if(_24c.type=="data"){c.addSeries(_24c.name,_24c.data,_24c.kwArgs);_24b=true;}else{c.addSeries(_24c.name,[0],_24c.kwArgs);var kw={};du.updateWithPattern(kw,_24c.kwArgs,{"query":"","queryOptions":null,"start":0,"count":1},true);if(_24c.kwArgs.sort){kw.sort=dojo.clone(_24c.kwArgs.sort);}d.mixin(kw,{onComplete:function(data){var _24d;if("valueFn" in _24c.kwArgs){var fn=_24c.kwArgs.valueFn;_24d=d.map(data,function(x){return fn(_24c.data.getValue(x,_24c.field,0));});}else{_24d=d.map(data,function(x){return _24c.data.getValue(x,_24c.field,0);});}c.addSeries(_24c.name,_24d,_24c.kwArgs).render();}});_24c.data.fetch(kw);}return _24b;},false);if(_24a){c.render();}},destroy:function(){this.chart.destroy();this.inherited(arguments);},resize:function(box){this.chart.resize(box);}});_240=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);}}};_241=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";}_240(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;};_242=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";}_240(node,type,kw);return o;};_243=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 _24e=eval("("+type+")");if(!_24e){return null;}o.action=_24e;}else{return null;}_240(node,type,kw);return o;};_244=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 _24f(_250,end){this.start=_250,this.end=end;};_24f.prototype.getValue=function(r){return (this.end-this.start)*r+this.start;};function _251(_252,end,_253){this.start=_252,this.end=end;this.units=_253;};_251.prototype.getValue=function(r){return (this.end-this.start)*r+this.start+this.units;};function _254(_255,end){this.start=_255,this.end=end;this.temp=new dojo.Color();};_254.prototype.getValue=function(r){return d.blendColors(this.start,this.end,r,this.temp);};function _256(_257){this.values=_257;this.length=_257.length;};_256.prototype.getValue=function(r){return this.values[Math.min(Math.floor(r*this.length),this.length-1)];};function _258(_259,def){this.values=_259;this.def=def?def:{};};_258.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 _25a(_25b,_25c){this.stack=_25b;this.original=_25c;};_25a.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;}),_25d=f.apply(m,val);if(_25d instanceof m.Matrix2D){ret.push(_25d);}},this);return ret;};var _25e=new d.Color(0,0,0,0);function _25f(prop,obj,name,def){if(prop.values){return new _256(prop.values);}var _260,_261,end;if(prop.start){_261=g.normalizeColor(prop.start);}else{_261=_260=obj?(name?obj[name]:obj):def;}if(prop.end){end=g.normalizeColor(prop.end);}else{if(!_260){_260=obj?(name?obj[name]:obj):def;}end=_260;}return new _254(_261,end);};function _262(prop,obj,name,def){if(prop.values){return new _256(prop.values);}var _263,_264,end;if(prop.start){_264=prop.start;}else{_264=_263=obj?obj[name]:def;}if(prop.end){end=prop.end;}else{if(typeof _263!="number"){_263=obj?obj[name]:def;}end=_263;}return new _24f(_264,end);};g.fx.animateStroke=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_265=args.shape,_266;d.connect(anim,"beforeBegin",anim,function(){_266=_265.getStroke();var prop=args.color,_267={},_268,_269,end;if(prop){_267.color=_25f(prop,_266,"color",_25e);}prop=args.style;if(prop&&prop.values){_267.style=new _256(prop.values);}prop=args.width;if(prop){_267.width=_262(prop,_266,"width",1);}prop=args.cap;if(prop&&prop.values){_267.cap=new _256(prop.values);}prop=args.join;if(prop){if(prop.values){_267.join=new _256(prop.values);}else{_269=prop.start?prop.start:(_266&&_266.join||0);end=prop.end?prop.end:(_266&&_266.join||0);if(typeof _269=="number"&&typeof end=="number"){_267.join=new _24f(_269,end);}}}this.curve=new _258(_267,_266);});d.connect(anim,"onAnimate",_265,"setStroke");return anim;};g.fx.animateFill=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_26a=args.shape,fill;d.connect(anim,"beforeBegin",anim,function(){fill=_26a.getFill();var prop=args.color,_26b={};if(prop){this.curve=_25f(prop,fill,"",_25e);}});d.connect(anim,"onAnimate",_26a,"setFill");return anim;};g.fx.animateFont=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_26c=args.shape,font;d.connect(anim,"beforeBegin",anim,function(){font=_26c.getFont();var prop=args.style,_26d={},_26e,_26f,end;if(prop&&prop.values){_26d.style=new _256(prop.values);}prop=args.variant;if(prop&&prop.values){_26d.variant=new _256(prop.values);}prop=args.weight;if(prop&&prop.values){_26d.weight=new _256(prop.values);}prop=args.family;if(prop&&prop.values){_26d.family=new _256(prop.values);}prop=args.size;if(prop&&prop.units){_26f=parseFloat(prop.start?prop.start:(_26c.font&&_26c.font.size||"0"));end=parseFloat(prop.end?prop.end:(_26c.font&&_26c.font.size||"0"));_26d.size=new _251(_26f,end,prop.units);}this.curve=new _258(_26d,font);});d.connect(anim,"onAnimate",_26c,"setFont");return anim;};g.fx.animateTransform=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_270=args.shape,_271;d.connect(anim,"beforeBegin",anim,function(){_271=_270.getTransform();this.curve=new _25a(args.transform,_271);});d.connect(anim,"onAnimate",_270,"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 _272=400,_273=dojo.fx.easing.backOut,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.Base",null,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_274,plot,_275){this.chart=_274;this.plot=plot||"default";this.anim={};if(!_275){_275={};}this.duration=_275.duration?_275.duration:_272;this.easing=_275.easing?_275.easing:_273;},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 _276=100,_277=75,_278=50,c=dojox.color,cc=function(_279){return function(){return _279;};},hl=function(_27a){var a=new c.Color(_27a),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=_276;if(x.l<_278){x.l=_277;}else{if(x.l>_277){x.l=_278;}else{x.l=x.l-_278>_277-x.l?_278:_277;}}}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(_27b,plot,_27c){var a=_27c&&_27c.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 _27d=o.run.name,_27e=o.index,anim,_27f,_280;if(_27d in this.anim){anim=this.anim[_27d][_27e];}else{this.anim[_27d]={};}if(anim){anim.action.stop(true);}else{var _281=o.shape.getFill();if(!_281||!(_281 instanceof dojo.Color)){return;}this.anim[_27d][_27e]=anim={start:_281,end:this.colorFun(_281)};}var _282=anim.start,end=anim.end;if(o.type=="onmouseout"){var t=_282;_282=end;end=t;}anim.action=dojox.gfx.fx.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_282,end:end}});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_27d]){delete this.anim[_27d][_27e];}});}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 _283=this;dojo.mixin(_283,args);_283.node=args.node;_283._showArgs=dojo.mixin({},args);_283._showArgs.node=_283.node;_283._showArgs.duration=_283.showDuration;_283.showAnim=_283.showFunc(_283._showArgs);_283._hideArgs=dojo.mixin({},args);_283._hideArgs.node=_283.node;_283._hideArgs.duration=_283.hideDuration;_283.hideAnim=_283.hideFunc(_283._hideArgs);dojo.connect(_283.showAnim,"beforeBegin",dojo.hitch(_283.hideAnim,"stop",true));dojo.connect(_283.hideAnim,"beforeBegin",dojo.hitch(_283.showAnim,"stop",true));},show:function(_284){return this.showAnim.play(_284||0);},hide:function(_285){return this.hideAnim.play(_285||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_286={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _287=function(_288){this._index=-1;this._animations=_288||[];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(_287,{_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(_289,_28a){if(!this._current){this._current=this._animations[this._index=0];}if(!_28a&&this._current.status()=="playing"){return this;}var _28b=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_28c=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_28d=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_28b);d.disconnect(_28c);d.disconnect(_28d);});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(_28e,_28f){this.pause();var _290=this.duration*_28e;this._current=null;d.some(this._animations,function(a){if(a.duration<=_290){this._current=a;return true;}_290-=a.duration;return false;});if(this._current){this._current.gotoPercent(_290/this._current.duration,_28f);}return this;},stop:function(_291){if(this._current){if(_291){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(_287,_286);dojo.fx.chain=function(_292){return new _287(_292);};var _293=function(_294){this._animations=_294||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_294,function(a){var _295=a.duration;if(a.delay){_295+=a.delay;}if(this.duration<_295){this.duration=_295;}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(_293,{_doAction:function(_296,args){d.forEach(this._animations,function(a){a[_296].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_297,args){var t=this._pseudoAnimation;t[_297].apply(t,args);},play:function(_298,_299){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(_29a,_29b){var ms=this.duration*_29a;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_29b);});this._call("gotoPercent",arguments);return this;},stop:function(_29c){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(_293,_286);dojo.fx.combine=function(_29d){return new _293(_29d);};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 _29e=d.style(node,"height");return Math.max(_29e,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 _29f=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:_29f},optionalParams:{},constructor:function(_2a0,plot,_2a1){this.scale=_2a1&&typeof _2a1.scale=="number"?_2a1.scale:_29f;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){return;}var _2a2=o.run.name,_2a3=o.index,_2a4=[],anim,init,_2a5;if(_2a2 in this.anim){anim=this.anim[_2a2][_2a3];}else{this.anim[_2a2]={};}if(anim){anim.action.stop(true);}else{this.anim[_2a2][_2a3]=anim={};}if(o.type=="onmouseover"){init=m.identity;_2a5=this.scale;}else{init=m.scaleAt(this.scale,o.cx,o.cy);_2a5=1/this.scale;}var _2a6={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_2a5,o.cx,o.cy]},init]};if(o.shape){_2a4.push(gf.animateTransform(_2a6));}if(o.oultine){_2a6.shape=o.outline;_2a4.push(gf.animateTransform(_2a6));}if(o.shadow){_2a6.shape=o.shadow;_2a4.push(gf.animateTransform(_2a6));}if(!_2a4.length){delete this.anim[_2a2][_2a3];return;}anim.action=dojo.fx.combine(_2a4);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_2a2]){delete this.anim[_2a2][_2a3];}});}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,_2a7={};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 _2a7)){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,_2a8=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 _2a7)){if(_2a8){t=[z=a[i]];_2a8=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 _2a9=1.05,_2aa=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:_2a9,shift:_2aa},optionalParams:{},constructor:function(_2ab,plot,_2ac){if(!_2ac){_2ac={};}this.scale=typeof _2ac.scale=="number"?_2ac.scale:_2a9;this.shift=typeof _2ac.shift=="number"?_2ac.shift:_2aa;this.connect();},process:function(o){if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){return;}if(!this.angles){var _2ad=m._degToRad(o.plot.opt.startAngle);if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",_2ad),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",_2ad),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _2ae=o.index,anim,_2af,_2b0,_2b1,_2b2,_2b3=(this.angles[_2ae]+this.angles[_2ae+1])/2,_2b4=m.rotateAt(-_2b3,o.cx,o.cy),_2b5=m.rotateAt(_2b3,o.cx,o.cy);anim=this.anim[_2ae];if(anim){anim.action.stop(true);}else{this.anim[_2ae]=anim={};}if(o.type=="onmouseover"){_2b1=0;_2b2=this.shift;_2af=1;_2b0=this.scale;}else{_2b1=this.shift;_2b2=0;_2af=this.scale;_2b0=1;}anim.action=dojox.gfx.fx.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_2b5,{name:"translate",start:[_2b1,0],end:[_2b2,0]},{name:"scaleAt",start:[_2af,o.cx,o.cy],end:[_2b0,o.cx,o.cy]},_2b4]});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){delete this.anim[_2ae];});}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 _2b6=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:_2b6,shiftY:_2b6},optionalParams:{},constructor:function(_2b7,plot,_2b8){if(!_2b8){_2b8={};}this.shiftX=typeof _2b8.shiftX=="number"?_2b8.shiftX:_2b6;this.shiftY=typeof _2b8.shiftY=="number"?_2b8.shiftY:_2b6;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _2b9=o.run.name,_2ba=o.index,_2bb=[],anim,_2bc=o.type=="onmouseover"?this.shiftX:-this.shiftX,_2bd=o.type=="onmouseover"?this.shiftY:-this.shiftY;if(_2b9 in this.anim){anim=this.anim[_2b9][_2ba];}else{this.anim[_2b9]={};}if(anim){anim.action.stop(true);}else{this.anim[_2b9][_2ba]=anim={};}var _2be={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){_2bb.push(gf.animateTransform(_2be));}if(o.oultine){_2be.shape=o.outline;_2bb.push(gf.animateTransform(_2be));}if(o.shadow){_2be.shape=o.shadow;_2bb.push(gf.animateTransform(_2be));}if(!_2bb.length){delete this.anim[_2b9][_2ba];return;}anim.action=dojo.fx.combine(_2bb);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_2b9]){delete this.anim[_2b9][_2ba];}});}anim.action.play();}});})();}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(_2bf,map,_2c0,_2c1){_2c1=_2c1||dojo.global;_2c0=_2c0?dojo.hitch(_2c1,_2c0):function(v){return v;};return _2bf.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_2c2,key,_2c3){var _2c4=dojo.getObject(key,false,map);if(_2c3){_2c4=dojo.getObject(_2c3,false,_2c1).call(_2c1,_2c4,key);}return _2c0(_2c4,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.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_2c5,_2c6){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 _2c7=dojo.date.stamp._isoRegExp.exec(_2c5),_2c8=null;if(_2c7){_2c7.shift();if(_2c7[1]){_2c7[1]--;}if(_2c7[6]){_2c7[6]*=1000;}if(_2c6){_2c6=new Date(_2c6);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _2c6["get"+prop]();}),function(_2c9,_2ca){_2c7[_2ca]=_2c7[_2ca]||_2c9;});}_2c8=new Date(_2c7[0]||1970,_2c7[1]||0,_2c7[2]||1,_2c7[3]||0,_2c7[4]||0,_2c7[5]||0,_2c7[6]||0);if(_2c7[0]<100){_2c8.setFullYear(_2c7[0]||1970);}var _2cb=0,_2cc=_2c7[7]&&_2c7[7].charAt(0);if(_2cc!="Z"){_2cb=((_2c7[8]||0)*60)+(Number(_2c7[9])||0);if(_2cc!="-"){_2cb*=-1;}}if(_2cc){_2cb-=_2c8.getTimezoneOffset();}if(_2cb){_2c8.setTime(_2c8.getTime()+_2cb*60000);}}return _2c8;};dojo.date.stamp.toISOString=function(_2cd,_2ce){var _2cf=function(n){return (n<10)?"0"+n:n;};_2ce=_2ce||{};var _2d0=[],_2d1=_2ce.zulu?"getUTC":"get",date="";if(_2ce.selector!="time"){var year=_2cd[_2d1+"FullYear"]();date=["0000".substr((year+"").length)+year,_2cf(_2cd[_2d1+"Month"]()+1),_2cf(_2cd[_2d1+"Date"]())].join("-");}_2d0.push(date);if(_2ce.selector!="date"){var time=[_2cf(_2cd[_2d1+"Hours"]()),_2cf(_2cd[_2d1+"Minutes"]()),_2cf(_2cd[_2d1+"Seconds"]())].join(":");var _2d2=_2cd[_2d1+"Milliseconds"]();if(_2ce.milliseconds){time+="."+(_2d2<100?"0":"")+_2cf(_2d2);}if(_2ce.zulu){time+="Z";}else{if(_2ce.selector!="time"){var _2d3=_2cd.getTimezoneOffset();var _2d4=Math.abs(_2d3);time+=(_2d3>0?"-":"+")+_2cf(Math.floor(_2d4/60))+":"+_2cf(_2d4%60);}}_2d0.push(time);}return _2d0.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 _2d5(_2d6){if(d.isString(_2d6)){return "string";}if(typeof _2d6=="number"){return "number";}if(typeof _2d6=="boolean"){return "boolean";}if(d.isFunction(_2d6)){return "function";}if(d.isArray(_2d6)){return "array";}if(_2d6 instanceof Date){return "date";}if(_2d6 instanceof d._Url){return "url";}return "object";};function _2d7(_2d8,type){switch(type){case "string":return _2d8;case "number":return _2d8.length?Number(_2d8):NaN;case "boolean":return typeof _2d8=="boolean"?_2d8:!(_2d8.toLowerCase()=="false");case "function":if(d.isFunction(_2d8)){_2d8=_2d8.toString();_2d8=d.trim(_2d8.substring(_2d8.indexOf("{")+1,_2d8.length-1));}try{if(_2d8===""||_2d8.search(/[^\w\.]+/i)!=-1){return new Function(_2d8);}else{return d.getObject(_2d8,false)||new Function(_2d8);}}catch(e){return new Function();}case "array":return _2d8?_2d8.split(/\s*,\s*/):[];case "date":switch(_2d8){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_2d8);}case "url":return d.baseUrl+_2d8;default:return d.fromJson(_2d8);}};var _2d9={},_2da={};d.connect(d,"extend",function(){_2da={};});function _2db(cls,_2dc){for(var name in cls){if(name.charAt(0)=="_"){continue;}if(name in _2d9){continue;}_2dc[name]=_2d5(cls[name]);}return _2dc;};function _2dd(_2de,_2df){var c=_2da[_2de];if(!c){var cls=d.getObject(_2de),_2e0=null;if(!cls){return null;}if(!_2df){_2e0=_2db(cls.prototype,{});}c={cls:cls,params:_2e0};}else{if(!_2df&&!c.params){c.params=_2db(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_2e1,_2e2){var _2e3="";var _2e4="";var _2e5=(_2e1.getAttribute(_2e2+"args")||_2e1.getAttribute("args"));if(_2e5){d.forEach(_2e5.split(/\s*,\s*/),function(part,idx){_2e3+="var "+part+" = arguments["+idx+"]; ";});}var _2e6=_2e1.getAttribute("with");if(_2e6&&_2e6.length){d.forEach(_2e6.split(/\s*,\s*/),function(part){_2e3+="with("+part+"){";_2e4+="}";});}return new Function(_2e3+_2e1.innerHTML+_2e4);};this.instantiate=function(_2e7,_2e8,args){var _2e9=[],_2e8=_2e8||{};args=args||{};var _2ea=(args.scope||d._scopeName)+"Type",_2eb="data-"+(args.scope||d._scopeName)+"-";d.forEach(_2e7,function(obj){if(!obj){return;}var node,type,_2ec,_2ed,_2ee,_2ef;if(obj.node){node=obj.node;type=obj.type;_2ef=obj.fastpath;_2ec=obj.clsInfo||(type&&_2dd(type,_2ef));_2ed=_2ec&&_2ec.cls;_2ee=obj.scripts;}else{node=obj;type=_2ea in _2e8?_2e8[_2ea]:node.getAttribute(_2ea);_2ec=type&&_2dd(type);_2ed=_2ec&&_2ec.cls;_2ee=(_2ed&&(_2ed._noScript||_2ed.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_2ec){throw new Error("Could not load class '"+type);}var _2f0={};if(args.defaults){d._mixin(_2f0,args.defaults);}if(obj.inherited){d._mixin(_2f0,obj.inherited);}if(_2ef){var _2f1=node.getAttribute(_2eb+"props");if(_2f1&&_2f1.length){try{_2f1=d.fromJson.call(args.propsThis,"{"+_2f1+"}");d._mixin(_2f0,_2f1);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_2f1+"'");}}var _2f2=node.getAttribute(_2eb+"attach-point");if(_2f2){_2f0.dojoAttachPoint=_2f2;}var _2f3=node.getAttribute(_2eb+"attach-event");if(_2f3){_2f0.dojoAttachEvent=_2f3;}dojo.mixin(_2f0,_2e8);}else{var _2f4=node.attributes;for(var name in _2ec.params){var item=name in _2e8?{value:_2e8[name],specified:true}:_2f4.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _2f5=item.value;switch(name){case "class":_2f5="className" in _2e8?_2e8.className:node.className;break;case "style":_2f5="style" in _2e8?_2e8.style:(node.style&&node.style.cssText);}var _2f6=_2ec.params[name];if(typeof _2f5=="string"){_2f0[name]=_2d7(_2f5,_2f6);}else{_2f0[name]=_2f5;}}}var _2f7=[],_2f8=[];d.forEach(_2ee,function(_2f9){node.removeChild(_2f9);var _2fa=(_2f9.getAttribute(_2eb+"event")||_2f9.getAttribute("event")),type=_2f9.getAttribute("type"),nf=d.parser._functionFromScript(_2f9,_2eb);if(_2fa){if(type=="dojo/connect"){_2f7.push({event:_2fa,func:nf});}else{_2f0[_2fa]=nf;}}else{_2f8.push(nf);}});var _2fb=_2ed.markupFactory||_2ed.prototype&&_2ed.prototype.markupFactory;var _2fc=_2fb?_2fb(_2f0,node,_2ed):new _2ed(_2f0,node);_2e9.push(_2fc);var _2fd=(node.getAttribute(_2eb+"id")||node.getAttribute("jsId"));if(_2fd){d.setObject(_2fd,_2fc);}d.forEach(_2f7,function(_2fe){d.connect(_2fc,_2fe.event,null,_2fe.func);});d.forEach(_2f8,function(func){func.call(_2fc);});});if(!_2e8._started){d.forEach(_2e9,function(_2ff){if(!args.noStart&&_2ff&&dojo.isFunction(_2ff.startup)&&!_2ff._started&&(!_2ff.getParent||!_2ff.getParent())){_2ff.startup();}});}return _2e9;};this.parse=function(_300,args){var root;if(!args&&_300&&_300.rootNode){args=_300;root=args.rootNode;}else{root=_300;}args=args||{};var _301=(args.scope||d._scopeName)+"Type",_302="data-"+(args.scope||d._scopeName)+"-";function scan(_303,list){var _304=dojo.clone(_303.inherited);dojo.forEach(["dir","lang"],function(name){var val=_303.node.getAttribute(name);if(val){_304[name]=val;}});var _305=_303.clsInfo&&!_303.clsInfo.cls.prototype._noScript?_303.scripts:null;var _306=(!_303.clsInfo||!_303.clsInfo.cls.prototype.stopParser)||(args&&args.template);for(var _307=_303.node.firstChild;_307;_307=_307.nextSibling){if(_307.nodeType==1){var type,_308=_306&&_307.getAttribute(_302+"type");if(_308){type=_308;}else{type=_306&&_307.getAttribute(_301);}var _309=_308==type;if(type){var _30a={"type":type,fastpath:_309,clsInfo:_2dd(type,_309),node:_307,scripts:[],inherited:_304};list.push(_30a);scan(_30a,list);}else{if(_305&&_307.nodeName.toLowerCase()=="script"){type=_307.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_305.push(_307);}}else{if(_306){scan({node:_307,inherited:_304},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);var _30b=args&&args.template?{template:true}:null;return this.instantiate(list,_30b,args);};}();(function(){var _30c=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_30c);}else{dojo._loaders.unshift(_30c);}})();}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_30d,url,_30e){if(typeof _30d=="string"){var _30f=dojo.moduleUrl(_30d,url);}else{_30f=_30d;_30e=url;}var key=_30f.toString();var val=_30e;if(_30e!=undefined&&!dojo.isString(_30e)){val=("value" in _30e?_30e.value:undefined);}var _310=_30e&&_30e.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_310?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_310?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 _311=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_311){val=_311[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 _312=this.declaredClass,_313=this;return dojo.string.substitute(tmpl,this,function(_314,key){if(key.charAt(0)=="!"){_314=dojo.getObject(key.substr(1),false,_313);}if(typeof _314=="undefined"){throw new Error(_312+" template:"+key);}if(_314==null){return "";}return key.charAt(0)=="!"?_314:_314.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _315=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_315)){node=dojo._toDom(this._stringRepl(_315));if(node.nodeType!=1){throw new Error("Invalid template: "+_315);}}else{node=_315.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(_316){var dest=this.containerNode;if(_316&&dest){while(_316.hasChildNodes()){dest.appendChild(_316.firstChild);}}},_attachTemplateNodes:function(_317,_318){_318=_318||function(n,p){return n.getAttribute(p);};var _319=dojo.isArray(_317)?_317:(_317.all||_317.getElementsByTagName("*"));var x=dojo.isArray(_317)?0:-1;for(;x<_319.length;x++){var _31a=(x==-1)?_317:_319[x];if(this.widgetsInTemplate&&(_318(_31a,"dojoType")||_318(_31a,"data-dojo-type"))){continue;}var _31b=_318(_31a,"dojoAttachPoint")||_318(_31a,"data-dojo-attach-point");if(_31b){var _31c,_31d=_31b.split(/\s*,\s*/);while((_31c=_31d.shift())){if(dojo.isArray(this[_31c])){this[_31c].push(_31a);}else{this[_31c]=_31a;}this._attachPoints.push(_31c);}}var _31e=_318(_31a,"dojoAttachEvent")||_318(_31a,"data-dojo-attach-event");if(_31e){var _31f,_320=_31e.split(/\s*,\s*/);var trim=dojo.trim;while((_31f=_320.shift())){if(_31f){var _321=null;if(_31f.indexOf(":")!=-1){var _322=_31f.split(":");_31f=trim(_322[0]);_321=trim(_322[1]);}else{_31f=trim(_31f);}if(!_321){_321=_31f;}this._attachEvents.push(this.connect(_31a,_31f,_321));}}}var role=_318(_31a,"waiRole");if(role){dijit.setWaiRole(_31a,role);}var _323=_318(_31a,"waiState");if(_323){dojo.forEach(_323.split(/\s*,\s*/),function(_324){if(_324.indexOf("-")!=-1){var pair=_324.split("-");dijit.setWaiState(_31a,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(_325){delete this[_325];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_326,_327,_328){var _329=dijit._Templated._templateCache;var key=_327||_326;var _32a=_329[key];if(_32a){try{if(!_32a.ownerDocument||_32a.ownerDocument==dojo.doc){return _32a;}}catch(e){}dojo.destroy(_32a);}if(!_327){_327=dojo.cache(_326,{sanitize:true});}_327=dojo.string.trim(_327);if(_328||_327.match(/\$\{([^\}]+)\}/g)){return (_329[key]=_327);}else{var node=dojo._toDom(_327);if(node.nodeType!=1){throw new Error("Invalid template: "+_327);}return (_329[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _32b=dijit._Templated._templateCache;for(var key in _32b){var _32c=_32b[key];if(typeof _32c=="object"){dojo.destroy(_32c);}delete _32b[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(_32d,_32e,_32f,rtl){if(this.aroundNode&&this.aroundNode===_32e){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_32d;var pos=dijit.placeOnScreenAroundElement(this.domNode,_32e,dijit.getPopupAroundAlignment((_32f&&_32f.length)?_32f:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_32e;},orient:function(node,_330,_331,_332,_333){this.connectorNode.style.top="";var _334=_332.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"}[_330+"-"+_331];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _335=Math.min((Math.max(_334,1)),size.w);var _336=_335<size.w;this.domNode.style.width=_335+"px";if(_336){this.containerNode.style.overflow="auto";var _337=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_337>_335){_337=_337+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_337+"px";}}if(_331.charAt(0)=="B"&&_330.charAt(0)=="B"){var mb=dojo.marginBox(node);var _338=this.connectorNode.offsetHeight;if(mb.h>_332.h){var _339=_332.h-(_333.h/2)-(_338/2);this.connectorNode.style.top=_339+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_333.h/2-_338/2,0),mb.h-_338)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_334);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_33a){if(this._onDeck&&this._onDeck[1]==_33a){this._onDeck=null;}else{if(this.aroundNode===_33a){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(_33b,_33c,_33d,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_33b,_33c,_33d,rtl);};dijit.hideTooltip=function(_33e){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_33e);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_33f){dojo.forEach(this._connections||[],function(_340){dojo.forEach(_340,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_33f)?_33f:(_33f?[_33f]:[]);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",_33f);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 _341=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_341);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_342){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_342,this.position,!this.isLeftToRight());this._connectNode=_342;this.onShow(_342,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(_343,_344){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojox.charting.action2d.Tooltip"]){dojo._hasResource["dojox.charting.action2d.Tooltip"]=true;dojo.provide("dojox.charting.action2d.Tooltip");(function(){var _345=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:_345},optionalParams:{},constructor:function(_346,plot,_347){this.text=_347&&_347.text?_347.text:_345;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 _348={type:"rect"},_349=["after","before"];switch(o.element){case "marker":_348.x=o.cx;_348.y=o.cy;_348.width=_348.height=1;break;case "circle":_348.x=o.cx-o.cr;_348.y=o.cy-o.cr;_348.width=_348.height=2*o.cr;break;case "column":_349=["above","below"];case "bar":_348=dojo.clone(o.shape.getShape());break;case "candlestick":_348.x=o.x;_348.y=o.y;_348.width=o.width;_348.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 _34a=m._degToRad(o.plot.opt.startAngle),_34b=(this.angles[o.index]+this.angles[o.index+1])/2+_34a;_348.x=o.cx+o.cr*Math.cos(_34b);_348.y=o.cy+o.cr*Math.sin(_34b);_348.width=_348.height=1;if(_34b<pi4){}else{if(_34b<pi2+pi4){_349=["below","above"];}else{if(_34b<Math.PI+pi4){_349=["before","after"];}else{if(_34b<2*Math.PI-pi4){_349=["above","below"];}}}}break;}var lt=dojo.coords(this.chart.node,true);_348.x+=lt.x;_348.y+=lt.y;_348.x=Math.round(_348.x);_348.y=Math.round(_348.y);_348.width=Math.ceil(_348.width);_348.height=Math.ceil(_348.height);this.aroundRect=_348;var _34c=this.text(o);if(_34c){dijit.showTooltip(_34c,this.aroundRect,_349);}}});})();}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(_34d,_34e,_34f){var def="";if(dojo.number){def=(_34f.fixed?dojo.number.format(_34d,{places:_34e<0?-_34e:0}):dojo.number.format(_34d))||"";}else{def=_34f.fixed?_34d.toFixed(_34e<0?-_34e:0):_34d.toString();}if(_34f.labelFunc){var r=_34f.labelFunc(def,_34d,_34e);if(r){return r;}}if(_34f.labels){var l=_34f.labels,lo=0,hi=l.length;while(lo<hi){var mid=Math.floor((lo+hi)/2),val=l[mid].value;if(val<_34d){lo=mid+1;}else{hi=mid;}}if(lo<l.length&&eq(l[lo].value,_34d)){return l[lo].text;}--lo;if(lo>=0&&lo<l.length&&eq(l[lo].value,_34d)){return l[lo].text;}lo+=2;if(lo<l.length&&eq(l[lo].value,_34d)){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 _350=3,dc=dojox.charting,dcs=dc.scaler,dcsc=dcs.common,_351=dcsc.findString,_352=dcsc.getNumericLabel;var _353=function(min,max,_354,_355,_356,_357,span){_354=dojo.delegate(_354);if(!_355){if(_354.fixUpper=="major"){_354.fixUpper="minor";}if(_354.fixLower=="major"){_354.fixLower="minor";}}if(!_356){if(_354.fixUpper=="minor"){_354.fixUpper="micro";}if(_354.fixLower=="minor"){_354.fixLower="micro";}}if(!_357){if(_354.fixUpper=="micro"){_354.fixUpper="none";}if(_354.fixLower=="micro"){_354.fixLower="none";}}var _358=_351(_354.fixLower,["major"])?Math.floor(_354.min/_355)*_355:_351(_354.fixLower,["minor"])?Math.floor(_354.min/_356)*_356:_351(_354.fixLower,["micro"])?Math.floor(_354.min/_357)*_357:_354.min,_359=_351(_354.fixUpper,["major"])?Math.ceil(_354.max/_355)*_355:_351(_354.fixUpper,["minor"])?Math.ceil(_354.max/_356)*_356:_351(_354.fixUpper,["micro"])?Math.ceil(_354.max/_357)*_357:_354.max;if(_354.useMin){min=_358;}if(_354.useMax){max=_359;}var _35a=(!_355||_354.useMin&&_351(_354.fixLower,["major"]))?min:Math.ceil(min/_355)*_355,_35b=(!_356||_354.useMin&&_351(_354.fixLower,["major","minor"]))?min:Math.ceil(min/_356)*_356,_35c=(!_357||_354.useMin&&_351(_354.fixLower,["major","minor","micro"]))?min:Math.ceil(min/_357)*_357,_35d=!_355?0:(_354.useMax&&_351(_354.fixUpper,["major"])?Math.round((max-_35a)/_355):Math.floor((max-_35a)/_355))+1,_35e=!_356?0:(_354.useMax&&_351(_354.fixUpper,["major","minor"])?Math.round((max-_35b)/_356):Math.floor((max-_35b)/_356))+1,_35f=!_357?0:(_354.useMax&&_351(_354.fixUpper,["major","minor","micro"])?Math.round((max-_35c)/_357):Math.floor((max-_35c)/_357))+1,_360=_356?Math.round(_355/_356):0,_361=_357?Math.round(_356/_357):0,_362=_355?Math.floor(Math.log(_355)/Math.LN10):0,_363=_356?Math.floor(Math.log(_356)/Math.LN10):0,_364=span/(max-min);if(!isFinite(_364)){_364=1;}return {bounds:{lower:_358,upper:_359,from:min,to:max,scale:_364,span:span},major:{tick:_355,start:_35a,count:_35d,prec:_362},minor:{tick:_356,start:_35b,count:_35e,prec:_363},micro:{tick:_357,start:_35c,count:_35f,prec:0},minorPerMajor:_360,microPerMinor:_361,scaler:dcs.linear};};dojo.mixin(dojox.charting.scaler.linear,{buildScaler:function(min,max,span,_365){var h={fixUpper:"none",fixLower:"none",natural:false};if(_365){if("fixUpper" in _365){h.fixUpper=String(_365.fixUpper);}if("fixLower" in _365){h.fixLower=String(_365.fixLower);}if("natural" in _365){h.natural=Boolean(_365.natural);}}if("min" in _365){min=_365.min;}if("max" in _365){max=_365.max;}if(_365.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 _365){min=_365.from;h.useMin=false;}if("to" in _365){max=_365.to;h.useMax=false;}if(max<=min){return _353(min,max,h,0,0,0,span);}var mag=Math.floor(Math.log(max-min)/Math.LN10),_366=_365&&("majorTickStep" in _365)?_365.majorTickStep:Math.pow(10,mag),_367=0,_368=0,_369;if(_365&&("minorTickStep" in _365)){_367=_365.minorTickStep;}else{do{_367=_366/10;if(!h.natural||_367>0.9){_369=_353(min,max,h,_366,_367,0,span);if(_369.bounds.scale*_369.minor.tick>_350){break;}}_367=_366/5;if(!h.natural||_367>0.9){_369=_353(min,max,h,_366,_367,0,span);if(_369.bounds.scale*_369.minor.tick>_350){break;}}_367=_366/2;if(!h.natural||_367>0.9){_369=_353(min,max,h,_366,_367,0,span);if(_369.bounds.scale*_369.minor.tick>_350){break;}}return _353(min,max,h,_366,0,0,span);}while(false);}if(_365&&("microTickStep" in _365)){_368=_365.microTickStep;_369=_353(min,max,h,_366,_367,_368,span);}else{do{_368=_367/10;if(!h.natural||_368>0.9){_369=_353(min,max,h,_366,_367,_368,span);if(_369.bounds.scale*_369.micro.tick>_350){break;}}_368=_367/5;if(!h.natural||_368>0.9){_369=_353(min,max,h,_366,_367,_368,span);if(_369.bounds.scale*_369.micro.tick>_350){break;}}_368=_367/2;if(!h.natural||_368>0.9){_369=_353(min,max,h,_366,_367,_368,span);if(_369.bounds.scale*_369.micro.tick>_350){break;}}_368=0;}while(false);}return _368?_369:_353(min,max,h,_366,_367,0,span);},buildTicks:function(_36a,_36b){var step,next,tick,_36c=_36a.major.start,_36d=_36a.minor.start,_36e=_36a.micro.start;if(_36b.microTicks&&_36a.micro.tick){step=_36a.micro.tick,next=_36e;}else{if(_36b.minorTicks&&_36a.minor.tick){step=_36a.minor.tick,next=_36d;}else{if(_36a.major.tick){step=_36a.major.tick,next=_36c;}else{return null;}}}var _36f=1/_36a.bounds.scale;if(_36a.bounds.to<=_36a.bounds.from||isNaN(_36f)||!isFinite(_36f)||step<=0||isNaN(step)||!isFinite(step)){return null;}var _370=[],_371=[],_372=[];while(next<=_36a.bounds.to+_36f){if(Math.abs(_36c-next)<step/2){tick={value:_36c};if(_36b.majorLabels){tick.label=_352(_36c,_36a.major.prec,_36b);}_370.push(tick);_36c+=_36a.major.tick;_36d+=_36a.minor.tick;_36e+=_36a.micro.tick;}else{if(Math.abs(_36d-next)<step/2){if(_36b.minorTicks){tick={value:_36d};if(_36b.minorLabels&&(_36a.minMinorStep<=_36a.minor.tick*_36a.bounds.scale)){tick.label=_352(_36d,_36a.minor.prec,_36b);}_371.push(tick);}_36d+=_36a.minor.tick;_36e+=_36a.micro.tick;}else{if(_36b.microTicks){_372.push({value:_36e});}_36e+=_36a.micro.tick;}}next+=step;}return {major:_370,minor:_371,micro:_372};},getTransformerFromModel:function(_373){var _374=_373.bounds.from,_375=_373.bounds.scale;return function(x){return (x-_374)*_375;};},getTransformerFromPlot:function(_376){var _377=_376.bounds.from,_378=_376.bounds.scale;return function(x){return x/_378+_377;};}});})();}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(_379,_37a){this.vertical=_37a&&_37a.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,_37b){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,_37c=du.merge,_37d=4,_37e=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(_37f,_380){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_380);du.updateWithPattern(this.opt,_380,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(_381,_382){this.scale=_381;this.offset=_382;return this.clear();},getWindowScale:function(){return "scale" in this?this.scale:1;},getWindowOffset:function(){return "offset" in this?this.offset:0;},_groupLabelWidth:function(_383,font,_384){if(!_383.length){return 0;}if(dojo.isObject(_383[0])){_383=df.map(_383,function(_385){return _385.text;});}if(_384){_383=df.map(_383,function(_386){return dojo.trim(_386).length==0?"":_386.substring(0,_384)+this.trailingSymbol;},this);}var s=_383.join("<br>");return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},calculate:function(min,max,span,_387){if(this.initialized()){return this;}var o=this.opt;this.labels="labels" in o?o.labels:_387;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,_388=0,_389=o.rotation%360,_38a=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),size=_38a?g.normalizedLength(g.splitFontString(_38a).size):0,cosr=Math.abs(Math.cos(_389*Math.PI/180)),sinr=Math.abs(Math.sin(_389*Math.PI/180));if(_389<0){_389+=360;}if(size){if(this.vertical?_389!=0&&_389!=180:_389!=90&&_389!=270){if(this.labels){_388=this._groupLabelWidth(this.labels,_38a,o.maxLabelCharCount);}else{var _38b=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",_38b));var _38c=Math.floor(Math.log(tsb.to-tsb.from)/Math.LN10);if(_38c>0){t.push(".");t.push(dojo.string.rep("9",_38c));}_388=dojox.gfx._base._getTextBox(t.join(""),{font:_38a}).w;}_388=o.maxLabelSize?Math.min(o.maxLabelSize,_388):_388;}else{_388=size;}switch(_389){case 0:case 90:case 180:case 270:break;default:var gap1=Math.sqrt(_388*_388+size*size),gap2=this.vertical?size*cosr+_388*sinr:_388*cosr+size*sinr;_388=Math.min(gap1,gap2);break;}}this.scaler.minMinorStep=_388+_37d;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,_38d=4,_38e=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(_38f,_390){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_390);du.updateWithPattern(this.opt,_390,this.optionalParams);},getOffsets:function(){var s=this.scaler,_391={l:0,r:0,t:0,b:0};if(!s){return _391;}var o=this.opt,_392=0,a,b,c,d,gl=dc.scaler.common.getNumericLabel,_393=0,ma=s.major,mi=s.minor,ta=this.chart.theme.axis,_394=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_395=o.titleFont||(ta.tick&&ta.tick.titleFont),_396=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_397=this.chart.theme.getTick("major",o),_398=this.chart.theme.getTick("minor",o),size=_394?g.normalizedLength(g.splitFontString(_394).size):0,_399=_395?g.normalizedLength(g.splitFontString(_395).size):0,_39a=o.rotation%360,_39b=o.leftBottom,cosr=Math.abs(Math.cos(_39a*Math.PI/180)),sinr=Math.abs(Math.sin(_39a*Math.PI/180));this.trailingSymbol=(o.trailingSymbol===undefined||o.trailingSymbol===null)?this.trailingSymbol:o.trailingSymbol;if(_39a<0){_39a+=360;}if(size){if(this.labels){_392=this._groupLabelWidth(this.labels,_394,o.maxLabelCharCount);}else{_392=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)],_394,o.maxLabelCharCount);}_392=o.maxLabelSize?Math.min(o.maxLabelSize,_392):_392;if(this.vertical){var side=_39b?"l":"r";switch(_39a){case 0:case 180:_391[side]=_392;_391.t=_391.b=size/2;break;case 90:case 270:_391[side]=size;_391.t=_391.b=_392/2;break;default:if(_39a<=_38e||(180<_39a&&_39a<=(180+_38e))){_391[side]=size*sinr/2+_392*cosr;_391[_39b?"t":"b"]=size*cosr/2+_392*sinr;_391[_39b?"b":"t"]=size*cosr/2;}else{if(_39a>(360-_38e)||(180>_39a&&_39a>(180-_38e))){_391[side]=size*sinr/2+_392*cosr;_391[_39b?"b":"t"]=size*cosr/2+_392*sinr;_391[_39b?"t":"b"]=size*cosr/2;}else{if(_39a<90||(180<_39a&&_39a<270)){_391[side]=size*sinr+_392*cosr;_391[_39b?"t":"b"]=size*cosr+_392*sinr;}else{_391[side]=size*sinr+_392*cosr;_391[_39b?"b":"t"]=size*cosr+_392*sinr;}}}break;}_391[side]+=_38d+Math.max(_397.length,_398.length)+(o.title?(_399+_396):0);}else{var side=_39b?"b":"t";switch(_39a){case 0:case 180:_391[side]=size;_391.l=_391.r=_392/2;break;case 90:case 270:_391[side]=_392;_391.l=_391.r=size/2;break;default:if((90-_38e)<=_39a&&_39a<=90||(270-_38e)<=_39a&&_39a<=270){_391[side]=size*sinr/2+_392*cosr;_391[_39b?"r":"l"]=size*cosr/2+_392*sinr;_391[_39b?"l":"r"]=size*cosr/2;}else{if(90<=_39a&&_39a<=(90+_38e)||270<=_39a&&_39a<=(270+_38e)){_391[side]=size*sinr/2+_392*cosr;_391[_39b?"l":"r"]=size*cosr/2+_392*sinr;_391[_39b?"r":"l"]=size*cosr/2;}else{if(_39a<_38e||(180<_39a&&_39a<(180-_38e))){_391[side]=size*sinr+_392*cosr;_391[_39b?"r":"l"]=size*cosr+_392*sinr;}else{_391[side]=size*sinr+_392*cosr;_391[_39b?"l":"r"]=size*cosr+_392*sinr;}}}break;}_391[side]+=_38d+Math.max(_397.length,_398.length)+(o.title?(_399+_396):0);}}if(_392){this._cachedLabelWidth=_392;}return _391;},render:function(dim,_39c){if(!this.dirty){return this;}var o=this.opt,ta=this.chart.theme.axis,_39d=o.leftBottom,_39e=o.rotation%360,_39f,stop,_3a0,_3a1=0,_3a2,_3a3,_3a4,_3a5,_3a6,_3a7,_3a8=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_3a9=o.titleFont||(ta.tick&&ta.tick.titleFont),_3aa=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_3ab=o.titleFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_3ac=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_3ad=o.titleOrientation||(ta.tick&&ta.tick.titleOrientation)||"axis",_3ae=this.chart.theme.getTick("major",o),_3af=this.chart.theme.getTick("minor",o),_3b0=this.chart.theme.getTick("micro",o),_3b1=Math.max(_3ae.length,_3af.length,_3b0.length),_3b2="stroke" in o?o.stroke:ta.stroke,size=_3a8?g.normalizedLength(g.splitFontString(_3a8).size):0,cosr=Math.abs(Math.cos(_39e*Math.PI/180)),sinr=Math.abs(Math.sin(_39e*Math.PI/180)),_3b3=_3a9?g.normalizedLength(g.splitFontString(_3a9).size):0;if(_39e<0){_39e+=360;}if(this.vertical){_39f={y:dim.height-_39c.b};stop={y:_39c.t};_3a0={y:(dim.height-_39c.b+_39c.t)/2};_3a2=size*sinr+(this._cachedLabelWidth||0)*cosr+_38d+Math.max(_3ae.length,_3af.length)+_3b3+_3ac;_3a3={x:0,y:-1};_3a6={x:0,y:0};_3a4={x:1,y:0};_3a5={x:_38d,y:0};switch(_39e){case 0:_3a7="end";_3a6.y=size*0.4;break;case 90:_3a7="middle";_3a6.x=-size;break;case 180:_3a7="start";_3a6.y=-size*0.4;break;case 270:_3a7="middle";break;default:if(_39e<_38e){_3a7="end";_3a6.y=size*0.4;}else{if(_39e<90){_3a7="end";_3a6.y=size*0.4;}else{if(_39e<(180-_38e)){_3a7="start";}else{if(_39e<(180+_38e)){_3a7="start";_3a6.y=-size*0.4;}else{if(_39e<270){_3a7="start";_3a6.x=_39d?0:size*0.4;}else{if(_39e<(360-_38e)){_3a7="end";_3a6.x=_39d?0:size*0.4;}else{_3a7="end";_3a6.y=size*0.4;}}}}}}}if(_39d){_39f.x=stop.x=_39c.l;_3a1=(_3ad&&_3ad=="away")?90:270;_3a0.x=_39c.l-_3a2+(_3a1==270?_3b3:0);_3a4.x=-1;_3a5.x=-_3a5.x;}else{_39f.x=stop.x=dim.width-_39c.r;_3a1=(_3ad&&_3ad=="axis")?90:270;_3a0.x=dim.width-_39c.r+_3a2-(_3a1==270?0:_3b3);switch(_3a7){case "start":_3a7="end";break;case "end":_3a7="start";break;case "middle":_3a6.x+=size;break;}}}else{_39f={x:_39c.l};stop={x:dim.width-_39c.r};_3a0={x:(dim.width-_39c.r+_39c.l)/2};_3a2=size*cosr+(this._cachedLabelWidth||0)*sinr+_38d+Math.max(_3ae.length,_3af.length)+_3b3+_3ac;_3a3={x:1,y:0};_3a6={x:0,y:0};_3a4={x:0,y:1};_3a5={x:0,y:_38d};switch(_39e){case 0:_3a7="middle";_3a6.y=size;break;case 90:_3a7="start";_3a6.x=-size*0.4;break;case 180:_3a7="middle";break;case 270:_3a7="end";_3a6.x=size*0.4;break;default:if(_39e<(90-_38e)){_3a7="start";_3a6.y=_39d?size:0;}else{if(_39e<(90+_38e)){_3a7="start";_3a6.x=-size*0.4;}else{if(_39e<180){_3a7="start";_3a6.y=_39d?0:-size;}else{if(_39e<(270-_38e)){_3a7="end";_3a6.y=_39d?0:-size;}else{if(_39e<(270+_38e)){_3a7="end";_3a6.y=_39d?size*0.4:0;}else{_3a7="end";_3a6.y=_39d?size:0;}}}}}}if(_39d){_39f.y=stop.y=dim.height-_39c.b;_3a1=(_3ad&&_3ad=="axis")?180:0;_3a0.y=dim.height-_39c.b+_3a2-(_3a1?_3b3:0);}else{_39f.y=stop.y=_39c.t;_3a1=(_3ad&&_3ad=="away")?180:0;_3a0.y=_39c.t-_3a2+(_3a1?0:_3b3);_3a4.y=-1;_3a5.y=-_3a5.y;switch(_3a7){case "start":_3a7="end";break;case "end":_3a7="start";break;case "middle":_3a6.y-=size;break;}}}this.cleanGroup();try{var s=this.group,c=this.scaler,t=this.ticks,_3b4,f=lin.getTransformerFromModel(this.scaler),_3b5=!_3a1&&!_39e&&this.opt.htmlLabels&&!dojo.isIE&&!dojo.isOpera?"html":"gfx",dx=_3a4.x*_3ae.length,dy=_3a4.y*_3ae.length;s.createLine({x1:_39f.x,y1:_39f.y,x2:stop.x,y2:stop.y}).setStroke(_3b2);if(o.title){var _3b6=dc.axis2d.common.createText[_3b5](this.chart,s,_3a0.x,_3a0.y,"middle",o.title,_3a9,_3ab);if(_3b5=="html"){this.htmlElements.push(_3b6);}else{_3b6.setTransform(g.matrix.rotategAt(_3a1,_3a0.x,_3a0.y));}}dojo.forEach(t.major,function(tick){var _3b7=f(tick.value),elem,x=_39f.x+_3a3.x*_3b7,y=_39f.y+_3a3.y*_3b7;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3ae);if(tick.label){var _3b8=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_3a8,o.maxLabelCharCount):{text:tick.label,truncated:false};_3b8=o.maxLabelSize?this.getTextWithLimitLength(_3b8.text,_3a8,o.maxLabelSize,_3b8.truncated):_3b8;elem=dc.axis2d.common.createText[_3b5](this.chart,s,x+dx+_3a5.x+(_39e?0:_3a6.x),y+dy+_3a5.y+(_39e?0:_3a6.y),_3a7,_3b8.text,_3a8,_3aa);_3b8.truncated&&this.labelTooltip(elem,this.chart,tick.label,_3b8.text,_3a8,_3b5);if(_3b5=="html"){this.htmlElements.push(elem);}else{if(_39e){elem.setTransform([{dx:_3a6.x,dy:_3a6.y},g.matrix.rotategAt(_39e,x+dx+_3a5.x,y+dy+_3a5.y)]);}}}},this);dx=_3a4.x*_3af.length;dy=_3a4.y*_3af.length;_3b4=c.minMinorStep<=c.minor.tick*c.bounds.scale;dojo.forEach(t.minor,function(tick){var _3b9=f(tick.value),elem,x=_39f.x+_3a3.x*_3b9,y=_39f.y+_3a3.y*_3b9;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3af);if(_3b4&&tick.label){var _3ba=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_3a8,o.maxLabelCharCount):{text:tick.label,truncated:false};_3ba=o.maxLabelSize?this.getTextWithLimitLength(_3ba.text,_3a8,o.maxLabelSize,_3ba.truncated):_3ba;elem=dc.axis2d.common.createText[_3b5](this.chart,s,x+dx+_3a5.x+(_39e?0:_3a6.x),y+dy+_3a5.y+(_39e?0:_3a6.y),_3a7,_3ba.text,_3a8,_3aa);_3ba.truncated&&this.labelTooltip(elem,this.chart,tick.label,_3ba.text,_3a8,_3b5);if(_3b5=="html"){this.htmlElements.push(elem);}else{if(_39e){elem.setTransform([{dx:_3a6.x,dy:_3a6.y},g.matrix.rotategAt(_39e,x+dx+_3a5.x,y+dy+_3a5.y)]);}}}},this);dx=_3a4.x*_3b0.length;dy=_3a4.y*_3b0.length;dojo.forEach(t.micro,function(tick){var _3bb=f(tick.value),elem,x=_39f.x+_3a3.x*_3bb,y=_39f.y+_3a3.y*_3bb;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3b0);},this);}catch(e){}this.dirty=false;return this;},labelTooltip:function(elem,_3bc,_3bd,_3be,font,_3bf){if(!dijit||!dijit.Tooltip){return;}var _3c0={type:"rect"},_3c1=["above","below"],_3c2=dojox.gfx._base._getTextBox(_3be,{font:font}).w||0;fontHeight=font?g.normalizedLength(g.splitFontString(font).size):0;if(_3bf=="html"){dojo.mixin(_3c0,dojo.coords(elem.firstChild,true));_3c0.width=Math.ceil(_3c2);_3c0.height=Math.ceil(fontHeight);this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseover",this,function(e){dijit.showTooltip(_3bd,_3c0,_3c1);})});this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseout",this,function(e){dijit.hideTooltip(_3c0);})});}else{var shp=elem.getShape(),lt=dojo.coords(_3bc.node,true);_3c0=dojo.mixin(_3c0,{x:shp.x-_3c2/2,y:shp.y});_3c0.x+=lt.x;_3c0.y+=lt.y;_3c0.x=Math.round(_3c0.x);_3c0.y=Math.round(_3c0.y);_3c0.width=Math.ceil(_3c2);_3c0.height=Math.ceil(fontHeight);this._events.push({shape:elem,handle:elem.connect("onmouseenter",this,function(e){dijit.showTooltip(_3bd,_3c0,_3c1);})});this._events.push({shape:elem,handle:elem.connect("onmouseleave",this,function(e){dijit.hideTooltip(_3c0);})});}}});})();}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(_3c3){if(!_3c3){return _3c3;}if(typeof _3c3=="string"||_3c3 instanceof dojo.Color){_3c3={color:_3c3};}return dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_3c3);},augmentColor:function(_3c4,_3c5){var t=new dojo.Color(_3c4),c=new dojo.Color(_3c5);c.a=t.a;return c;},augmentStroke:function(_3c6,_3c7){var s=dc.makeStroke(_3c6);if(s){s.color=dc.augmentColor(s.color,_3c7);}return s;},augmentFill:function(fill,_3c8){var fc,c=new dojo.Color(_3c8);if(typeof fill=="string"||fill instanceof dojo.Color){return dc.augmentColor(fill,_3c8);}return fill;},defaultStats:{vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY,hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(_3c9){var _3ca=dojo.delegate(dc.defaultStats);for(var i=0;i<_3c9.length;++i){var run=_3c9[i];for(var j=0;j<run.data.length;j++){if(run.data[j]!==null){if(typeof run.data[j]=="number"){var _3cb=_3ca.vmin,_3cc=_3ca.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;}_3ca.hmin=Math.min(_3ca.hmin,x);_3ca.hmax=Math.max(_3ca.hmax,x);_3ca.vmin=Math.min(_3ca.vmin,y);_3ca.vmax=Math.max(_3ca.vmax,y);}});}if("ymin" in run){_3ca.vmin=Math.min(_3cb,run.ymin);}if("ymax" in run){_3ca.vmax=Math.max(_3cc,run.ymax);}}else{var _3cd=_3ca.hmin,_3ce=_3ca.hmax,_3cb=_3ca.vmin,_3cc=_3ca.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;}_3ca.hmin=Math.min(_3ca.hmin,x);_3ca.hmax=Math.max(_3ca.hmax,x);_3ca.vmin=Math.min(_3ca.vmin,y);_3ca.vmax=Math.max(_3ca.vmax,y);}});}if("xmin" in run){_3ca.hmin=Math.min(_3cd,run.xmin);}if("xmax" in run){_3ca.hmax=Math.max(_3ce,run.xmax);}if("ymin" in run){_3ca.vmin=Math.min(_3cb,run.ymin);}if("ymax" in run){_3ca.vmax=Math.max(_3cc,run.ymax);}}break;}}}return _3ca;},calculateBarSize:function(_3cf,opt,_3d0){if(!_3d0){_3d0=1;}var gap=opt.gap,size=(_3cf-2*gap)/_3d0;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=(_3cf-size*_3d0)/2;return {size:size,gap:gap};},collectStackedStats:function(_3d1){var _3d2=dojo.clone(dc.defaultStats);if(_3d1.length){_3d2.hmin=Math.min(_3d2.hmin,1);_3d2.hmax=df.foldl(_3d1,"seed, run -> Math.max(seed, run.data.length)",_3d2.hmax);for(var i=0;i<_3d2.hmax;++i){var v=_3d1[0].data[i];v=v&&(typeof v=="number"?v:v.y);if(isNaN(v)){v=0;}_3d2.vmin=Math.min(_3d2.vmin,v);for(var j=1;j<_3d1.length;++j){var t=_3d1[j].data[i];t=t&&(typeof t=="number"?t:t.y);if(isNaN(t)){t=0;}v+=t;}_3d2.vmax=Math.max(_3d2.vmax,v);}}return _3d2;},curve:function(a,_3d3){var arr=a.slice(0);if(_3d3=="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(_3d3)){var dx=item.x-arr[i-1].x,dy=arr[i-1].y;return "C"+(item.x-(_3d3-1)*(dx/_3d3))+","+dy+" "+(item.x-(dx/_3d3))+","+item.y+" "+item.x+","+item.y;}else{if(_3d3=="X"||_3d3=="x"||_3d3=="S"){var p0,p1=arr[i-1],p2=arr[i],p3;var bz1x,bz1y,bz2x,bz2y;var f=1/6;if(i==1){if(_3d3=="x"){p0=arr[arr.length-2];}else{p0=p1;}f=1/3;}else{p0=arr[i-2];}if(i==(arr.length-1)){if(_3d3=="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 _3d4=p0p2*f;var _3d5=p1p3*f;if(_3d4>p1p2/2&&_3d5>p1p2/2){_3d4=p1p2/2;_3d5=p1p2/2;}else{if(_3d4>p1p2/2){_3d4=p1p2/2;_3d5=p1p2/2*p1p3/p0p2;}else{if(_3d5>p1p2/2){_3d5=p1p2/2;_3d4=p1p2/2*p0p2/p1p3;}}}if(_3d3=="S"){if(p0==p1){_3d4=0;}if(p2==p3){_3d5=0;}}bz1x=p1.x+_3d4*(p2.x-p0.x)/p0p2;bz1y=p1.y+_3d4*(p2.y-p0.y)/p0p2;bz2x=p2.x-_3d5*(p3.x-p1.x)/p1p3;bz2y=p2.y-_3d5*(p3.y-p1.y)/p1p3;}}return "C"+(bz1x+","+bz1y+" "+bz2x+","+bz2y+" "+p2.x+","+p2.y);});return p.join(" ");},getLabel:function(_3d6,_3d7,_3d8){if(dojo.number){return (_3d7?dojo.number.format(_3d6,{places:_3d8}):dojo.number.format(_3d6))||"";}return _3d7?_3d6.toFixed(_3d8):_3d6.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,_3d9){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(_3da,_3db){return {major:[],minor:[],micro:[]};},getTransformerFromModel:function(_3dc){var _3dd=_3dc.bounds.from,_3de=_3dc.bounds.scale;return function(x){return (x-_3dd)*_3de;};},getTransformerFromPlot:function(_3df){var _3e0=_3df.bounds.from,_3e1=_3df.bounds.scale;return function(x){return x/_3e1+_3e0;};}};}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(_3e2,_3e3){this.dirty=true;return dojo.connect(this,"plotEvent",_3e2,_3e3);},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,_3e4){this._shapeEvents.push({shape:o.eventMask,handle:o.eventMask.connect(_3e4,this,function(e){o.type=_3e4;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(_3e5){var a=this._eventSeries[_3e5];if(a){dojo.forEach(a,this._connectEvents,this);}},fireEvent:function(_3e6,_3e7,_3e8,_3e9){var s=this._eventSeries[_3e6];if(s&&s.length&&_3e8<s.length){var o=s[_3e8];o.type=_3e7;o.event=_3e9||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(_3ea,_3eb){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,_3ec){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_3ed=dim.height-_3ec.b,_3ee=this._hScaler.bounds,_3ef=(_3ee.from-_3ee.lower)*_3ee.scale,_3f0=this._vScaler.bounds,_3f1=(_3f0.from-_3f0.lower)*_3f0.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_3ef)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_3f1-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:[_3ec.l*(1-rHScale),_3ed*(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:_3ef,yoffset:_3f1});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,_3f2){return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_3f3){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_3f3.hmin,_3f3.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_3f3.hmin,_3f3.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_3f3.vmin,_3f3.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_3f3.vmin,_3f3.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,_3f4=df.lambda("item.purgeGroup()");var _3f5=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(_3f6,_3f7){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3f7);du.updateWithPattern(this.opt,_3f7,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_3f8){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_3f8);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_3f4);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,_3f9,_3fa,_3fb,_3fc=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 _3fd=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_3fe=[],_3ff=[],rseg=null,_400,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_401=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=[];_3ff.push(j);_3fe.push(rseg);}rseg.push(run.data[j]);}else{rseg=null;}}for(var seg=0;seg<_3fe.length;seg++){if(typeof _3fe[seg][0]=="number"){_400=dojo.map(_3fe[seg],function(v,i){return {x:ht(i+_3ff[seg]+1)+_3f8.l,y:dim.height-_3f8.b-vt(v)};},this);}else{_400=dojo.map(_3fe[seg],function(v,i){return {x:ht(v.x)+_3f8.l,y:dim.height-_3f8.b-vt(v.y)};},this);}var _402=this.opt.tension?dc.curve(_400,this.opt.tension):"";if(this.opt.areas&&_400.length>1){var fill=_3fd.series.fill;var _403=dojo.clone(_400);if(this.opt.tension){var _404="L"+_403[_403.length-1].x+","+(dim.height-_3f8.b)+" L"+_403[0].x+","+(dim.height-_3f8.b)+" L"+_403[0].x+","+_403[0].y;run.dyn.fill=s.createPath(_402+" "+_404).setFill(fill).getFill();}else{_403.push({x:_400[_400.length-1].x,y:dim.height-_3f8.b});_403.push({x:_400[0].x,y:dim.height-_3f8.b});_403.push(_400[0]);run.dyn.fill=s.createPolyline(_403).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_3f9=_3fd.series.stroke;if(_3fd.series.outline){_3fa=run.dyn.outline=dc.makeStroke(_3fd.series.outline);_3fa.width=2*_3fa.width+_3f9.width;}}if(this.opt.markers){run.dyn.marker=_3fd.symbol;}var _405=null,_406=null,_407=null;if(_3f9&&_3fd.series.shadow&&_400.length>1){var _408=_3fd.series.shadow,_409=dojo.map(_400,function(c){return {x:c.x+_408.dx,y:c.y+_408.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_409,this.opt.tension)).setStroke(_408).getStroke();}else{run.dyn.shadow=s.createPolyline(_409).setStroke(_408).getStroke();}}if(this.opt.markers&&_3fd.marker.shadow){_408=_3fd.marker.shadow;_407=dojo.map(_409,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_3fd.symbol).setStroke(_408).setFill(_408.color);},this);}}if(this.opt.lines&&_400.length>1){if(_3fa){if(this.opt.tension){run.dyn.outline=s.createPath(_402).setStroke(_3fa).getStroke();}else{run.dyn.outline=s.createPolyline(_400).setStroke(_3fa).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_402).setStroke(_3f9).getStroke();}else{run.dyn.stroke=s.createPolyline(_400).setStroke(_3f9).getStroke();}}if(this.opt.markers){_405=new Array(_400.length);_406=new Array(_400.length);_3fa=null;if(_3fd.marker.outline){_3fa=dc.makeStroke(_3fd.marker.outline);_3fa.width=2*_3fa.width+(_3fd.marker.stroke?_3fd.marker.stroke.width:0);}dojo.forEach(_400,function(c,i){var path="M"+c.x+" "+c.y+" "+_3fd.symbol;if(_3fa){_406[i]=s.createPath(path).setStroke(_3fa);}_405[i]=s.createPath(path).setStroke(_3fd.marker.stroke).setFill(_3fd.marker.fill);},this);run.dyn.markerFill=_3fd.marker.fill;run.dyn.markerStroke=_3fd.marker.stroke;if(_3fc){dojo.forEach(_405,function(s,i){var o={element:"marker",index:i+_3ff[seg],run:run,shape:s,outline:_406[i]||null,shadow:_407&&_407[i]||null,cx:_400[i].x,cy:_400[i].y};if(typeof _3fe[seg][0]=="number"){o.x=i+_3ff[seg]+1;o.y=_3fe[seg][i];}else{o.x=_3fe[seg][i].x;o.y=_3fe[seg][i].y;}this._connectEvents(o);_401[i+_3ff[seg]]=o;},this);}else{delete this._eventSeries[run.name];}}}run.dirty=false;}if(this.animate){var _40a=this.group;dojox.gfx.fx.animateTransform(dojo.delegate({shape:_40a,duration:_3f5,transform:[{name:"translate",start:[0,dim.height-_3f8.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,_40b=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(_40c,_40d){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_40d);du.updateWithPattern(this.opt,_40d,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_40e){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_40e);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_40b);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_40f=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 _410=t.next("marker",[this.opt,run]),s=run.group,_411,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(typeof run.data[0]=="number"){_411=dojo.map(run.data,function(v,i){return {x:ht(i+1)+_40e.l,y:dim.height-_40e.b-vt(v)};},this);}else{_411=dojo.map(run.data,function(v,i){return {x:ht(v.x)+_40e.l,y:dim.height-_40e.b-vt(v.y)};},this);}var _412=new Array(_411.length),_413=new Array(_411.length),_414=new Array(_411.length);dojo.forEach(_411,function(c,i){var _415=typeof run.data[i]=="number"?t.post(_410,"marker"):t.addMixin(_410,"marker",run.data[i],true),path="M"+c.x+" "+c.y+" "+_415.symbol;if(_415.marker.shadow){_412[i]=s.createPath("M"+(c.x+_415.marker.shadow.dx)+" "+(c.y+_415.marker.shadow.dy)+" "+_415.symbol).setStroke(_415.marker.shadow).setFill(_415.marker.shadow.color);if(this.animate){this._animateScatter(_412[i],dim.height-_40e.b);}}if(_415.marker.outline){var _416=dc.makeStroke(_415.marker.outline);_416.width=2*_416.width+_415.marker.stroke.width;_414[i]=s.createPath(path).setStroke(_416);if(this.animate){this._animateScatter(_414[i],dim.height-_40e.b);}}var _417=dc.makeStroke(_415.marker.stroke),fill=this._plotFill(_415.marker.fill,dim,_40e);if(fill&&(fill.type==="linear"||fill.type=="radial")){var _418=dojox.gfx.gradutils.getColor(fill,{x:c.x,y:c.y});if(_417){_417.color=_418;}_413[i]=s.createPath(path).setStroke(_417).setFill(_418);}else{_413[i]=s.createPath(path).setStroke(_417).setFill(fill);}if(this.animate){this._animateScatter(_413[i],dim.height-_40e.b);}},this);if(_413.length){run.dyn.stroke=_413[_413.length-1].getStroke();run.dyn.fill=_413[_413.length-1].getFill();}if(_40f){var _419=new Array(_413.length);dojo.forEach(_413,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_414&&_414[i]||null,shadow:_412&&_412[i]||null,cx:_411[i].x,cy:_411[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);_419[i]=o;},this);this._eventSeries[run.name]=_419;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateScatter:function(_41a,_41b){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_41a,duration:1200,transform:[{name:"translate",start:[0,_41b],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,_41c=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Stacked",dojox.charting.plot2d.Default,{getSeriesStats:function(){var _41d=dc.collectStackedStats(this.series);this._maxRunLength=_41d.hmax;return _41d;},render:function(dim,_41e){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,_41e);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_41c);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_41f=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 _420=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_421,_422=dojo.map(acc,function(v,i){return {x:ht(i+1)+_41e.l,y:dim.height-_41e.b-vt(v)};},this);var _423=this.opt.tension?dc.curve(_422,this.opt.tension):"";if(this.opt.areas){var _424=dojo.clone(_422);if(this.opt.tension){var p=dc.curve(_424,this.opt.tension);p+=" L"+_422[_422.length-1].x+","+(dim.height-_41e.b)+" L"+_422[0].x+","+(dim.height-_41e.b)+" L"+_422[0].x+","+_422[0].y;run.dyn.fill=s.createPath(p).setFill(_420.series.fill).getFill();}else{_424.push({x:_422[_422.length-1].x,y:dim.height-_41e.b});_424.push({x:_422[0].x,y:dim.height-_41e.b});_424.push(_422[0]);run.dyn.fill=s.createPolyline(_424).setFill(_420.series.fill).getFill();}}if(this.opt.lines||this.opt.markers){if(_420.series.outline){_421=dc.makeStroke(_420.series.outline);_421.width=2*_421.width+_420.series.stroke.width;}}if(this.opt.markers){run.dyn.marker=_420.symbol;}var _425,_426,_427;if(_420.series.shadow&&_420.series.stroke){var _428=_420.series.shadow,_429=dojo.map(_422,function(c){return {x:c.x+_428.dx,y:c.y+_428.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_429,this.opt.tension)).setStroke(_428).getStroke();}else{run.dyn.shadow=s.createPolyline(_429).setStroke(_428).getStroke();}}if(this.opt.markers){_428=_420.marker.shadow;_427=dojo.map(_429,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_420.symbol).setStroke(_428).setFill(_428.color);},this);}}if(this.opt.lines){if(_421){if(this.opt.tension){run.dyn.outline=s.createPath(_423).setStroke(_421).getStroke();}else{run.dyn.outline=s.createPolyline(_422).setStroke(_421).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_423).setStroke(_420.series.stroke).getStroke();}else{run.dyn.stroke=s.createPolyline(_422).setStroke(_420.series.stroke).getStroke();}}if(this.opt.markers){_425=new Array(_422.length);_426=new Array(_422.length);_421=null;if(_420.marker.outline){_421=dc.makeStroke(_420.marker.outline);_421.width=2*_421.width+(_420.marker.stroke?_420.marker.stroke.width:0);}dojo.forEach(_422,function(c,i){var path="M"+c.x+" "+c.y+" "+_420.symbol;if(_421){_426[i]=s.createPath(path).setStroke(_421);}_425[i]=s.createPath(path).setStroke(_420.marker.stroke).setFill(_420.marker.fill);},this);if(_41f){var _42a=new Array(_425.length);dojo.forEach(_425,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_426[i]||null,shadow:_427&&_427[i]||null,cx:_422[i].x,cy:_422[i].y,x:i+1,y:run.data[i]};this._connectEvents(o);_42a[i]=o;},this);this._eventSeries[run.name]=_42a;}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,_42b=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(_42c,_42d){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_42d);du.updateWithPattern(this.opt,_42d,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _42e=dc.collectSimpleStats(this.series);_42e.hmin-=0.5;_42e.hmax+=0.5;return _42e;},render:function(dim,_42f){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_42f);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_42b);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_430,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_431=Math.max(0,this._vScaler.bounds.lower),_432=vt(_431),_433=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_430=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 _434=t.next("column",[this.opt,run]),s=run.group,_435=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _436=run.data[j];if(_436!==null){var v=typeof _436=="number"?_436:_436.y,vv=vt(v),_437=vv-_432,h=Math.abs(_437),_438=typeof _436!="number"?t.addMixin(_434,"column",_436,true):t.post(_434,"column");if(_430>=1&&h>=1){var rect={x:_42f.l+ht(j+0.5)+gap,y:dim.height-_42f.b-(v>_431?vv:_432),width:_430,height:h};var _439=this._plotFill(_438.series.fill,dim,_42f);_439=this._shapeFill(_439,rect);var _43a=s.createRect(rect).setFill(_439).setStroke(_438.series.stroke);run.dyn.fill=_43a.getFill();run.dyn.stroke=_43a.getStroke();if(_433){var o={element:"column",index:j,run:run,shape:_43a,x:j+0.5,y:v};this._connectEvents(o);_435[j]=o;}if(this.animate){this._animateColumn(_43a,dim.height-_42f.b-_432,h);}}}}this._eventSeries[run.name]=_435;run.dirty=false;}this.dirty=false;return this;},_animateColumn:function(_43b,_43c,_43d){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_43b,duration:1200,transform:[{name:"translate",start:[0,_43c-(_43c/_43d)],end:[0,0]},{name:"scale",start:[1,1/_43d],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,_43e=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedColumns",dojox.charting.plot2d.Columns,{getSeriesStats:function(){var _43f=dc.collectStackedStats(this.series);this._maxRunLength=_43f.hmax;_43f.hmin-=0.5;_43f.hmax+=0.5;return _43f;},render:function(dim,_440){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 _441=run.data[j];if(_441!==null){var v=typeof _441=="number"?_441:_441.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_440);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_43e);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_442,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_443=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_442=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 _444=t.next("column",[this.opt,run]),s=run.group,_445=new Array(acc.length);for(var j=0;j<acc.length;++j){var _441=run.data[j];if(_441!==null){var v=acc[j],_446=vt(v),_447=typeof _441!="number"?t.addMixin(_444,"column",_441,true):t.post(_444,"column");if(_442>=1&&_446>=1){var rect={x:_440.l+ht(j+0.5)+gap,y:dim.height-_440.b-vt(v),width:_442,height:_446};var _448=this._plotFill(_447.series.fill,dim,_440);_448=this._shapeFill(_448,rect);var _449=s.createRect(rect).setFill(_448).setStroke(_447.series.stroke);run.dyn.fill=_449.getFill();run.dyn.stroke=_449.getStroke();if(_443){var o={element:"column",index:j,run:run,shape:_449,x:j+0.5,y:v};this._connectEvents(o);_445[j]=o;}if(this.animate){this._animateColumn(_449,dim.height-_440.b,_446);}}}}this._eventSeries[run.name]=_445;run.dirty=false;for(var j=0;j<run.data.length;++j){var _441=run.data[j];if(_441!==null){var v=typeof _441=="number"?_441:_441.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,_44a=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredColumns",dojox.charting.plot2d.Columns,{render:function(dim,_44b){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_44b);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_44a);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_44c,_44d,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_44e=Math.max(0,this._vScaler.bounds.lower),_44f=vt(_44e),_450=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_44c=_44d=f.size;for(var i=0;i<this.series.length;++i){var run=this.series[i],_451=_44d*i;if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _452=t.next("column",[this.opt,run]),s=run.group,_453=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _454=run.data[j];if(_454!==null){var v=typeof _454=="number"?_454:_454.y,vv=vt(v),_455=vv-_44f,h=Math.abs(_455),_456=typeof _454!="number"?t.addMixin(_452,"column",_454,true):t.post(_452,"column");if(_44c>=1&&h>=1){var rect={x:_44b.l+ht(j+0.5)+gap+_451,y:dim.height-_44b.b-(v>_44e?vv:_44f),width:_44c,height:h};var _457=this._plotFill(_456.series.fill,dim,_44b);_457=this._shapeFill(_457,rect);var _458=s.createRect(rect).setFill(_457).setStroke(_456.series.stroke);run.dyn.fill=_458.getFill();run.dyn.stroke=_458.getStroke();if(_450){var o={element:"column",index:j,run:run,shape:_458,x:j+0.5,y:v};this._connectEvents(o);_453[j]=o;}if(this.animate){this._animateColumn(_458,dim.height-_44b.b-_44f,h);}}}}this._eventSeries[run.name]=_453;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,_459=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(_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;},getSeriesStats:function(){var _45c=dc.collectSimpleStats(this.series),t;_45c.hmin-=0.5;_45c.hmax+=0.5;t=_45c.hmin,_45c.hmin=_45c.vmin,_45c.vmin=t;t=_45c.hmax,_45c.hmax=_45c.vmax,_45c.vmax=t;return _45c;},render:function(dim,_45d){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_45d);}this.dirty=this.isDirty();this.resetEvents();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,f,gap,_45e,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_45f=Math.max(0,this._hScaler.bounds.lower),_460=ht(_45f),_461=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_45e=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 _462=t.next("bar",[this.opt,run]),s=run.group,_463=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _464=run.data[j];if(_464!==null){var v=typeof _464=="number"?_464:_464.y,hv=ht(v),_465=hv-_460,w=Math.abs(_465),_466=typeof _464!="number"?t.addMixin(_462,"bar",_464,true):t.post(_462,"bar");if(w>=1&&_45e>=1){var rect={x:_45d.l+(v<_45f?hv:_460),y:dim.height-_45d.b-vt(j+1.5)+gap,width:w,height:_45e};var _467=this._plotFill(_466.series.fill,dim,_45d);_467=this._shapeFill(_467,rect);var _468=s.createRect(rect).setFill(_467).setStroke(_466.series.stroke);run.dyn.fill=_468.getFill();run.dyn.stroke=_468.getStroke();if(_461){var o={element:"bar",index:j,run:run,shape:_468,x:v,y:j+1.5};this._connectEvents(o);_463[j]=o;}if(this.animate){this._animateBar(_468,_45d.l+_460,-w);}}}}this._eventSeries[run.name]=_463;run.dirty=false;}this.dirty=false;return this;},_animateBar:function(_469,_46a,_46b){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_469,duration:1200,transform:[{name:"translate",start:[_46a-(_46a/_46b),0],end:[0,0]},{name:"scale",start:[1/_46b,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,_46c=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedBars",dojox.charting.plot2d.Bars,{getSeriesStats:function(){var _46d=dc.collectStackedStats(this.series),t;this._maxRunLength=_46d.hmax;_46d.hmin-=0.5;_46d.hmax+=0.5;t=_46d.hmin,_46d.hmin=_46d.vmin,_46d.vmin=t;t=_46d.hmax,_46d.hmax=_46d.vmax,_46d.vmax=t;return _46d;},render:function(dim,_46e){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 _46f=run.data[j];if(_46f!==null){var v=typeof _46f=="number"?_46f:_46f.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_46e);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_46c);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_470,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_471=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_470=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 _472=t.next("bar",[this.opt,run]),s=run.group,_473=new Array(acc.length);for(var j=0;j<acc.length;++j){var _46f=run.data[j];if(_46f!==null){var v=acc[j],_474=ht(v),_475=typeof _46f!="number"?t.addMixin(_472,"bar",_46f,true):t.post(_472,"bar");if(_474>=1&&_470>=1){var rect={x:_46e.l,y:dim.height-_46e.b-vt(j+1.5)+gap,width:_474,height:_470};var _476=this._plotFill(_475.series.fill,dim,_46e);_476=this._shapeFill(_476,rect);var _477=s.createRect(rect).setFill(_476).setStroke(_475.series.stroke);run.dyn.fill=_477.getFill();run.dyn.stroke=_477.getStroke();if(_471){var o={element:"bar",index:j,run:run,shape:_477,x:v,y:j+1.5};this._connectEvents(o);_473[j]=o;}if(this.animate){this._animateBar(_477,_46e.l,-_474);}}}}this._eventSeries[run.name]=_473;run.dirty=false;for(var j=0;j<run.data.length;++j){var _46f=run.data[j];if(_46f!==null){var v=typeof _46f=="number"?_46f:_46f.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,_478=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredBars",dojox.charting.plot2d.Bars,{render:function(dim,_479){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_479);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_478);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_47a,_47b,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_47c=Math.max(0,this._hScaler.bounds.lower),_47d=ht(_47c),_47e=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_47a=_47b=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i],_47f=_47b*(this.series.length-i-1);if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _480=t.next("bar",[this.opt,run]),s=run.group,_481=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _482=run.data[j];if(_482!==null){var v=typeof _482=="number"?_482:_482.y,hv=ht(v),_483=hv-_47d,w=Math.abs(_483),_484=typeof _482!="number"?t.addMixin(_480,"bar",_482,true):t.post(_480,"bar");if(w>=1&&_47a>=1){var rect={x:_479.l+(v<_47c?hv:_47d),y:dim.height-_479.b-vt(j+1.5)+gap+_47f,width:w,height:_47a};var _485=this._plotFill(_484.series.fill,dim,_479);_485=this._shapeFill(_485,rect);var _486=s.createRect(rect).setFill(_485).setStroke(_484.series.stroke);run.dyn.fill=_486.getFill();run.dyn.stroke=_486.getStroke();if(_47e){var o={element:"bar",index:j,run:run,shape:_486,x:v,y:j+1.5};this._connectEvents(o);_481[j]=o;}if(this.animate){this._animateBar(_486,_479.l+_47d,-_483);}}}}this._eventSeries[run.name]=_481;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(_487,_488){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_488);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,_489){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_48a=dim.height-_489.b,_48b=this._hAxis.getScaler().bounds,_48c=(_48b.from-_48b.lower)*_48b.scale,_48d=this._vAxis.getScaler().bounds,_48e=(_48d.from-_48d.lower)*_48d.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_48c)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_48e-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:[_489.l*(1-rHScale),_48a*(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:_48c,yoffset:_48e});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,_48f){if(this.zoom){return this.performZoom(dim,_48f);}this.dirty=this.isDirty();if(!this.dirty){return this;}this.cleanGroup();var s=this.group,ta=this.chart.theme.axis;try{var _490=this._vAxis.getScaler(),vt=_490.scaler.getTransformerFromModel(_490),_491=this._vAxis.getTicks();if(this.opt.hMinorLines){dojo.forEach(_491.minor,function(tick){var y=dim.height-_48f.b-vt(tick.value);var _492=s.createLine({x1:_48f.l,y1:y,x2:dim.width-_48f.r,y2:y}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_492,"h",_48f.l,_48f.r+_48f.l-dim.width);}},this);}if(this.opt.hMajorLines){dojo.forEach(_491.major,function(tick){var y=dim.height-_48f.b-vt(tick.value);var _493=s.createLine({x1:_48f.l,y1:y,x2:dim.width-_48f.r,y2:y}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_493,"h",_48f.l,_48f.r+_48f.l-dim.width);}},this);}}catch(e){}try{var _494=this._hAxis.getScaler(),ht=_494.scaler.getTransformerFromModel(_494),_491=this._hAxis.getTicks();if(_491&&this.opt.vMinorLines){dojo.forEach(_491.minor,function(tick){var x=_48f.l+ht(tick.value);var _495=s.createLine({x1:x,y1:_48f.t,x2:x,y2:dim.height-_48f.b}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_495,"v",dim.height-_48f.b,dim.height-_48f.b-_48f.t);}},this);}if(_491&&this.opt.vMajorLines){dojo.forEach(_491.major,function(tick){var x=_48f.l+ht(tick.value);var _496=s.createLine({x1:x,y1:_48f.t,x2:x,y2:dim.height-_48f.b}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_496,"v",dim.height-_48f.b,dim.height-_48f.b-_48f.t);}},this);}}catch(e){}this.dirty=false;return this;},_animateGrid:function(_497,type,_498,size){var _499=type=="h"?[_498,0]:[0,_498];var _49a=type=="h"?[1/size,1]:[1,1/size];dojox.gfx.fx.animateTransform(dojo.delegate({shape:_497,duration:1200,transform:[{name:"translate",start:_499,end:[0,0]},{name:"scale",start:_49a,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,_49b=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(_49c,_49d){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_49d);du.updateWithPattern(this.opt,_49d,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,_49e){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-_49e.l-_49e.r)/2,ry=(dim.height-_49e.t-_49e.b)/2,r=Math.min(rx,ry),_49f="font" in this.opt?this.opt.font:t.axis.font,size=_49f?g.normalizedLength(g.splitFontString(_49f).size):0,_4a0="fontColor" in this.opt?this.opt.fontColor:t.axis.fontColor,_4a1=m._degToRad(this.opt.startAngle),_4a2=_4a1,step,_4a3,_4a4,_4a5,_4a6,_4a7,run=this.run.data,_4a8=this.events();if(typeof run[0]=="number"){_4a3=df.map(run,"x ? Math.max(x, 0) : 0");if(df.every(_4a3,"<= 0")){return this;}_4a4=df.map(_4a3,"/this",df.foldl(_4a3,"+",0));if(this.opt.labels){_4a5=dojo.map(_4a4,function(x){return x>0?this._getLabel(x*100)+"%":"";},this);}}else{_4a3=df.map(run,"x ? Math.max(x.y, 0) : 0");if(df.every(_4a3,"<= 0")){return this;}_4a4=df.map(_4a3,"/this",df.foldl(_4a3,"+",0));if(this.opt.labels){_4a5=dojo.map(_4a4,function(x,i){if(x<=0){return "";}var v=run[i];return "text" in v?v.text:this._getLabel(x*100)+"%";},this);}}var _4a9=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){_4a6=df.foldl1(df.map(_4a5,function(_4aa,i){var font=_4a9[i].series.font;return dojox.gfx._base._getTextBox(_4aa,{font:font}).w;},this),"Math.max(a, b)")/2;if(this.opt.labelOffset<0){r=Math.min(rx-2*_4a6,ry-size)+this.opt.labelOffset;}_4a7=r-this.opt.labelOffset;}if("radius" in this.opt){r=this.opt.radius;_4a7=r-this.opt.labelOffset;}var _4ab={cx:_49e.l+rx,cy:_49e.t+ry,r:r};this.dyn=[];var _4ac=new Array(_4a4.length);dojo.some(_4a4,function(_4ad,i){if(_4ad<=0){return false;}var v=run[i],_4ae=_4a9[i],_4af;if(_4ad>=1){_4af=this._plotFill(_4ae.series.fill,dim,_49e);_4af=this._shapeFill(_4af,{x:_4ab.cx-_4ab.r,y:_4ab.cy-_4ab.r,width:2*_4ab.r,height:2*_4ab.r});_4af=this._pseudoRadialFill(_4af,{x:_4ab.cx,y:_4ab.cy},_4ab.r);var _4b0=s.createCircle(_4ab).setFill(_4af).setStroke(_4ae.series.stroke);this.dyn.push({fill:_4af,stroke:_4ae.series.stroke});if(_4a8){var o={element:"slice",index:i,run:this.run,shape:_4b0,x:i,y:typeof v=="number"?v:v.y,cx:_4ab.cx,cy:_4ab.cy,cr:r};this._connectEvents(o);_4ac[i]=o;}return true;}var end=_4a2+_4ad*2*Math.PI;if(i+1==_4a4.length){end=_4a1+2*Math.PI;}var step=end-_4a2,x1=_4ab.cx+r*Math.cos(_4a2),y1=_4ab.cy+r*Math.sin(_4a2),x2=_4ab.cx+r*Math.cos(end),y2=_4ab.cy+r*Math.sin(end);var _4b1=m._degToRad(this.opt.fanSize);if(_4ae.series.fill&&_4ae.series.fill.type==="radial"&&this.opt.radGrad==="fan"&&step>_4b1){var _4b2=s.createGroup(),_4b3=Math.ceil(step/_4b1),_4b4=step/_4b3;_4af=this._shapeFill(_4ae.series.fill,{x:_4ab.cx-_4ab.r,y:_4ab.cy-_4ab.r,width:2*_4ab.r,height:2*_4ab.r});for(var j=0;j<_4b3;++j){var _4b5=j==0?x1:_4ab.cx+r*Math.cos(_4a2+(j-_49b)*_4b4),_4b6=j==0?y1:_4ab.cy+r*Math.sin(_4a2+(j-_49b)*_4b4),_4b7=j==_4b3-1?x2:_4ab.cx+r*Math.cos(_4a2+(j+1+_49b)*_4b4),_4b8=j==_4b3-1?y2:_4ab.cy+r*Math.sin(_4a2+(j+1+_49b)*_4b4),fan=_4b2.createPath({}).moveTo(_4ab.cx,_4ab.cy).lineTo(_4b5,_4b6).arcTo(r,r,0,_4b4>Math.PI,true,_4b7,_4b8).lineTo(_4ab.cx,_4ab.cy).closePath().setFill(this._pseudoRadialFill(_4af,{x:_4ab.cx,y:_4ab.cy},r,_4a2+(j+0.5)*_4b4,_4a2+(j+0.5)*_4b4));}_4b2.createPath({}).moveTo(_4ab.cx,_4ab.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4ab.cx,_4ab.cy).closePath().setStroke(_4ae.series.stroke);_4b0=_4b2;}else{_4b0=s.createPath({}).moveTo(_4ab.cx,_4ab.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4ab.cx,_4ab.cy).closePath().setStroke(_4ae.series.stroke);var _4af=_4ae.series.fill;if(_4af&&_4af.type==="radial"){_4af=this._shapeFill(_4af,{x:_4ab.cx-_4ab.r,y:_4ab.cy-_4ab.r,width:2*_4ab.r,height:2*_4ab.r});if(this.opt.radGrad==="linear"){_4af=this._pseudoRadialFill(_4af,{x:_4ab.cx,y:_4ab.cy},r,_4a2,end);}}else{if(_4af&&_4af.type==="linear"){_4af=this._plotFill(_4af,dim,_49e);_4af=this._shapeFill(_4af,_4b0.getBoundingBox());}}_4b0.setFill(_4af);}this.dyn.push({fill:_4af,stroke:_4ae.series.stroke});if(_4a8){var o={element:"slice",index:i,run:this.run,shape:_4b0,x:i,y:typeof v=="number"?v:v.y,cx:_4ab.cx,cy:_4ab.cy,cr:r};this._connectEvents(o);_4ac[i]=o;}_4a2=end;return false;},this);if(this.opt.labels){if(this.opt.labelStyle=="default"){_4a2=_4a1;dojo.some(_4a4,function(_4b9,i){if(_4b9<=0){return false;}var _4ba=_4a9[i];if(_4b9>=1){var v=run[i],elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_4ab.cx,_4ab.cy+size/2,"middle",_4a5[i],_4ba.series.font,_4ba.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}return true;}var end=_4a2+_4b9*2*Math.PI,v=run[i];if(i+1==_4a4.length){end=_4a1+2*Math.PI;}var _4bb=(_4a2+end)/2,x=_4ab.cx+_4a7*Math.cos(_4bb),y=_4ab.cy+_4a7*Math.sin(_4bb)+size/2;var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,x,y,"middle",_4a5[i],_4ba.series.font,_4ba.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}_4a2=end;return false;},this);}else{if(this.opt.labelStyle=="columns"){_4a2=_4a1;var _4bc=[];dojo.forEach(_4a4,function(_4bd,i){var end=_4a2+_4bd*2*Math.PI;if(i+1==_4a4.length){end=_4a1+2*Math.PI;}var _4be=(_4a2+end)/2;_4bc.push({angle:_4be,left:Math.cos(_4be)<0,theme:_4a9[i],index:i,omit:end-_4a2<0.001});_4a2=end;});var _4bf=dojox.gfx._base._getTextBox("a",{font:_49f}).h;this._getProperLabelRadius(_4bc,_4bf,_4ab.r*1.1);dojo.forEach(_4bc,function(_4c0,i){if(!_4c0.omit){var _4c1=_4ab.cx-_4ab.r*2,_4c2=_4ab.cx+_4ab.r*2,_4c3=dojox.gfx._base._getTextBox(_4a5[i],{font:_49f}).w,x=_4ab.cx+_4c0.labelR*Math.cos(_4c0.angle),y=_4ab.cy+_4c0.labelR*Math.sin(_4c0.angle),_4c4=(_4c0.left)?(_4c1+_4c3):(_4c2-_4c3),_4c5=(_4c0.left)?_4c1:_4c4;var _4c6=s.createPath().moveTo(_4ab.cx+_4ab.r*Math.cos(_4c0.angle),_4ab.cy+_4ab.r*Math.sin(_4c0.angle));if(Math.abs(_4c0.labelR*Math.cos(_4c0.angle))<_4ab.r*2-_4c3){_4c6.lineTo(x,y);}_4c6.lineTo(_4c4,y).setStroke(_4c0.theme.series.labelWiring);var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_4c5,y,"left",_4a5[i],_4c0.theme.series.font,_4c0.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:_4ac[esi++];});return this;},_getProperLabelRadius:function(_4c7,_4c8,_4c9){var _4ca={},_4cb={},_4cc=1,_4cd=1;if(_4c7.length==1){_4c7[0].labelR=_4c9;return;}for(var i=0;i<_4c7.length;i++){var _4ce=Math.abs(Math.sin(_4c7[i].angle));if(_4c7[i].left){if(_4cc>_4ce){_4cc=_4ce;_4ca=_4c7[i];}}else{if(_4cd>_4ce){_4cd=_4ce;_4cb=_4c7[i];}}}_4ca.labelR=_4cb.labelR=_4c9;this._caculateLabelR(_4ca,_4c7,_4c8);this._caculateLabelR(_4cb,_4c7,_4c8);},_caculateLabelR:function(_4cf,_4d0,_4d1){var i=_4cf.index,_4d2=_4d0.length,_4d3=_4cf.labelR;while(!(_4d0[i%_4d2].left^_4d0[(i+1)%_4d2].left)){if(!_4d0[(i+1)%_4d2].omit){var _4d4=(Math.sin(_4d0[i%_4d2].angle)*_4d3+((_4d0[i%_4d2].left)?(-_4d1):_4d1))/Math.sin(_4d0[(i+1)%_4d2].angle);_4d3=(_4d4<_4cf.labelR)?_4cf.labelR:_4d4;_4d0[(i+1)%_4d2].labelR=_4d3;}i++;}i=_4cf.index,j=(i==0)?_4d2-1:i-1;while(!(_4d0[i].left^_4d0[j].left)){if(!_4d0[j].omit){var _4d4=(Math.sin(_4d0[i].angle)*_4d3+((_4d0[i].left)?_4d1:(-_4d1)))/Math.sin(_4d0[j].angle);_4d3=(_4d4<_4cf.labelR)?_4cf.labelR:_4d4;_4d0[j].labelR=_4d3;}i--;j--;i=(i<0)?i+_4d0.length:i;j=(j<0)?j+_4d0.length:j;}},_getLabel:function(_4d5){return dc.getLabel(_4d5,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,_4d6=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(_4d7,_4d8){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4d8);du.updateWithPattern(this.opt,_4d8,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_4d9){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4d9);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4d6);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),_4da=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 _4db=t.next("circle",[this.opt,run]),s=run.group,_4dc=dojo.map(run.data,function(v,i){return v?{x:ht(v.x)+_4d9.l,y:dim.height-_4d9.b-vt(v.y),radius:this._vScaler.bounds.scale*(v.size/2)}:null;},this);var _4dd=null,_4de=null,_4df=null;if(_4db.series.shadow){_4df=dojo.map(_4dc,function(item){if(item!==null){var _4e0=t.addMixin(_4db,"circle",item,true),_4e1=_4e0.series.shadow;var _4e2=s.createCircle({cx:item.x+_4e1.dx,cy:item.y+_4e1.dy,r:item.radius}).setStroke(_4e1).setFill(_4e1.color);if(this.animate){this._animateBubble(_4e2,dim.height-_4d9.b,item.radius);}return _4e2;}return null;},this);if(_4df.length){run.dyn.shadow=_4df[_4df.length-1].getStroke();}}if(_4db.series.outline){_4de=dojo.map(_4dc,function(item){if(item!==null){var _4e3=t.addMixin(_4db,"circle",item,true),_4e4=dc.makeStroke(_4e3.series.outline);_4e4.width=2*_4e4.width+_4db.series.stroke.width;var _4e5=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_4e4);if(this.animate){this._animateBubble(_4e5,dim.height-_4d9.b,item.radius);}return _4e5;}return null;},this);if(_4de.length){run.dyn.outline=_4de[_4de.length-1].getStroke();}}_4dd=dojo.map(_4dc,function(item){if(item!==null){var _4e6=t.addMixin(_4db,"circle",item,true),rect={x:item.x-item.radius,y:item.y-item.radius,width:2*item.radius,height:2*item.radius};var _4e7=this._plotFill(_4e6.series.fill,dim,_4d9);_4e7=this._shapeFill(_4e7,rect);var _4e8=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setFill(_4e7).setStroke(_4e6.series.stroke);if(this.animate){this._animateBubble(_4e8,dim.height-_4d9.b,item.radius);}return _4e8;}return null;},this);if(_4dd.length){run.dyn.fill=_4dd[_4dd.length-1].getFill();run.dyn.stroke=_4dd[_4dd.length-1].getStroke();}if(_4da){var _4e9=new Array(_4dd.length);dojo.forEach(_4dd,function(s,i){if(s!==null){var o={element:"circle",index:i,run:run,shape:s,outline:_4de&&_4de[i]||null,shadow:_4df&&_4df[i]||null,x:run.data[i].x,y:run.data[i].y,r:run.data[i].size/2,cx:_4dc[i].x,cy:_4dc[i].y,cr:_4dc[i].radius};this._connectEvents(o);_4e9[i]=o;}},this);this._eventSeries[run.name]=_4e9;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateBubble:function(_4ea,_4eb,size){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_4ea,duration:1200,transform:[{name:"translate",start:[0,_4eb],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,_4ec=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(_4ed,_4ee){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4ee);du.updateWithPattern(this.opt,_4ee,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_4ef){var _4f0=dojo.delegate(dc.defaultStats);for(var i=0;i<_4ef.length;i++){var run=_4ef[i];if(!run.data.length){continue;}var _4f1=_4f0.vmin,_4f2=_4f0.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_4f0.hmin=Math.min(_4f0.hmin,x);_4f0.hmax=Math.max(_4f0.hmax,x);_4f0.vmin=Math.min(_4f0.vmin,val.open,val.close,val.high,val.low);_4f0.vmax=Math.max(_4f0.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_4f0.vmin=Math.min(_4f1,run.ymin);}if("ymax" in run){_4f0.vmax=Math.max(_4f2,run.ymax);}}return _4f0;},getSeriesStats:function(){var _4f3=this.collectStats(this.series);_4f3.hmin-=0.5;_4f3.hmax+=0.5;return _4f3;},render:function(dim,_4f4){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4f4);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4ec);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4f5,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4f6=Math.max(0,this._vScaler.bounds.lower),_4f7=vt(_4f6),_4f8=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_4f5=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 _4f9=t.next("candlestick",[this.opt,run]),s=run.group,_4fa=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _4fb=t.addMixin(_4f9,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_4f4.l+gap,y=dim.height-_4f4.b,open=vt(v.open),_4fc=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(_4f5>=1){var _4fd=open>_4fc;var line={x1:_4f5/2,x2:_4f5/2,y1:y-high,y2:y-low},rect={x:0,y:y-Math.max(open,_4fc),width:_4f5,height:Math.max(_4fd?open-_4fc:_4fc-open,1)};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _4fe=shape.createGroup();_4fe.createLine(line).setStroke(_4fb.series.stroke);_4fe.createRect(rect).setStroke(_4fb.series.stroke).setFill(_4fd?_4fb.series.fill:"white");if("mid" in v){_4fe.createLine({x1:(_4fb.series.stroke.width||1),x2:_4f5-(_4fb.series.stroke.width||1),y1:y-mid,y2:y-mid}).setStroke(_4fd?"white":_4fb.series.stroke);}run.dyn.fill=_4fb.series.fill;run.dyn.stroke=_4fb.series.stroke;if(_4f8){var o={element:"candlestick",index:j,run:run,shape:_4fe,x:x,y:y-Math.max(open,_4fc),cx:_4f5/2,cy:(y-Math.max(open,_4fc))+(Math.max(_4fd?open-_4fc:_4fc-open,1)/2),width:_4f5,height:Math.max(_4fd?open-_4fc:_4fc-open,1),data:v};this._connectEvents(o);_4fa[j]=o;}}if(this.animate){this._animateCandlesticks(shape,y-low,high-low);}}}this._eventSeries[run.name]=_4fa;run.dirty=false;}this.dirty=false;return this;},_animateCandlesticks:function(_4ff,_500,_501){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_4ff,duration:1200,transform:[{name:"translate",start:[0,_500-(_500/_501)],end:[0,0]},{name:"scale",start:[1,1/_501],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,_502=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(_503,_504){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_504);du.updateWithPattern(this.opt,_504,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_505){var _506=dojo.delegate(dc.defaultStats);for(var i=0;i<_505.length;i++){var run=_505[i];if(!run.data.length){continue;}var _507=_506.vmin,_508=_506.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_506.hmin=Math.min(_506.hmin,x);_506.hmax=Math.max(_506.hmax,x);_506.vmin=Math.min(_506.vmin,val.open,val.close,val.high,val.low);_506.vmax=Math.max(_506.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_506.vmin=Math.min(_507,run.ymin);}if("ymax" in run){_506.vmax=Math.max(_508,run.ymax);}}return _506;},getSeriesStats:function(){var _509=this.collectStats(this.series);_509.hmin-=0.5;_509.hmax+=0.5;return _509;},render:function(dim,_50a){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_50a);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_502);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_50b,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_50c=Math.max(0,this._vScaler.bounds.lower),_50d=vt(_50c),_50e=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_50b=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 _50f=t.next("candlestick",[this.opt,run]),s=run.group,_510=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _511=t.addMixin(_50f,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_50a.l+gap,y=dim.height-_50a.b,open=vt(v.open),_512=vt(v.close),high=vt(v.high),low=vt(v.low);if(low>high){var tmp=high;high=low;low=tmp;}if(_50b>=1){var hl={x1:_50b/2,x2:_50b/2,y1:y-high,y2:y-low},op={x1:0,x2:((_50b/2)+((_511.series.stroke.width||1)/2)),y1:y-open,y2:y-open},cl={x1:((_50b/2)-((_511.series.stroke.width||1)/2)),x2:_50b,y1:y-_512,y2:y-_512};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _513=shape.createGroup();_513.createLine(hl).setStroke(_511.series.stroke);_513.createLine(op).setStroke(_511.series.stroke);_513.createLine(cl).setStroke(_511.series.stroke);run.dyn.stroke=_511.series.stroke;if(_50e){var o={element:"candlestick",index:j,run:run,shape:_513,x:x,y:y-Math.max(open,_512),cx:_50b/2,cy:(y-Math.max(open,_512))+(Math.max(open>_512?open-_512:_512-open,1)/2),width:_50b,height:Math.max(open>_512?open-_512:_512-open,1),data:v};this._connectEvents(o);_510[j]=o;}}if(this.animate){this._animateOHLC(shape,y-low,high-low);}}}this._eventSeries[run.name]=_510;run.dirty=false;}this.dirty=false;return this;},_animateOHLC:function(_514,_515,_516){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_514,duration:1200,transform:[{name:"translate",start:[0,_515-(_515/_516)],end:[0,0]},{name:"scale",start:[1,1/_516],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,_517=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(_518,_519){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_519);du.updateWithPattern(this.opt,_519,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 _51a=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,_51b){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_51b.hmin,_51b.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_51b.hmin,_51b.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_51b.vmin,_51b.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_51b.vmin,_51b.vmax,dim.height);}return this;},render:function(dim,_51c){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-_51c.l-_51c.r)/2,ry=(dim.height-_51c.t-_51c.b)/2,r=Math.min(rx,ry),_51d=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font)||"normal normal normal 7pt Tahoma",_51e=o.axisFont||(ta.tick&&ta.tick.titleFont)||"normal normal normal 11pt Tahoma",_51f=o.axisTickFontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"silver",_520=o.axisFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_521=o.axisColor||(ta.tick&&ta.tick.axisColor)||"silver",_522=o.spiderColor||(ta.tick&&ta.tick.spiderColor)||"silver",_523=o.axisWidth||(ta.stroke&&ta.stroke.width)||2,_524=o.spiderWidth||(ta.stroke&&ta.stroke.width)||2,_525=o.seriesWidth||(ta.stroke&&ta.stroke.width)||2,_526=g.normalizedLength(g.splitFontString(_51e).size),_527=m._degToRad(o.startAngle),_528=_527,step,_529,_52a,_52b,_52c,_52d,_52e,_52f,_530,_531,_532,ro=o.spiderOrigin,dv=o.divisions>=3?o.divisions:3,ms=o.markerSize,spt=o.spiderType,at=o.animationType,_533=o.labelOffset<-10?o.labelOffset:-10,_534=0.2;if(o.labels){_52b=dojo.map(this.series,function(s){return s.name;},this);_52c=df.foldl1(df.map(_52b,function(_535,i){var font=t.series.font;return dojox.gfx._base._getTextBox(_535,{font:font}).w;},this),"Math.max(a, b)")/2;r=Math.min(rx-2*_52c,ry-_526)+_533;_52d=r-_533;}if("radius" in o){r=o.radius;_52d=r-_533;}r/=(1+_534);var _536={cx:_51c.l+rx,cy:_51c.t+ry,r:r};for(var i=this.series.length-1;i>=0;i--){var _537=this.series[i];if(!this.dirty&&!_537.dirty){t.skip();continue;}_537.cleanGroup();var run=_537.data;if(run!==null){var len=this._getObjectLength(run);if(!_52e||_52e.length<=0){_52e=[],_52f=[],_532=[];this._buildPoints(_52e,len,_536,r,_528,true);this._buildPoints(_52f,len,_536,r*ro,_528,true);this._buildPoints(_532,len,_536,_52d,_528);if(dv>2){_530=[],_531=[];for(var j=0;j<dv-2;j++){_530[j]=[];this._buildPoints(_530[j],len,_536,r*(ro+(1-ro)*(j+1)/(dv-1)),_528,true);_531[j]=r*(ro+(1-ro)*(j+1)/(dv-1));}}}}}var _538=s.createGroup(),_539={color:_521,width:_523},_53a={color:_522,width:_524};for(var j=_52e.length-1;j>=0;--j){var _53b=_52e[j],st={x:_53b.x+(_53b.x-_536.cx)*_534,y:_53b.y+(_53b.y-_536.cy)*_534},nd={x:_53b.x+(_53b.x-_536.cx)*_534/2,y:_53b.y+(_53b.y-_536.cy)*_534/2};_538.createLine({x1:_536.cx,y1:_536.cy,x2:st.x,y2:st.y}).setStroke(_539);this._drawArrow(_538,st,nd,_539);}var _53c=s.createGroup();for(var j=_532.length-1;j>=0;--j){var _53b=_532[j],_53d=dojox.gfx._base._getTextBox(this.labelKey[j],{font:_51e}).w||0,_53e=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";elem=da.createText[_53e](this.chart,_53c,(!dojo._isBodyLtr()&&_53e=="html")?(_53b.x+_53d-dim.width):_53b.x,_53b.y,"middle",this.labelKey[j],_51e,_520);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}var _53f=s.createGroup();if(spt=="polygon"){_53f.createPolyline(_52e).setStroke(_53a);_53f.createPolyline(_52f).setStroke(_53a);if(_530.length>0){for(var j=_530.length-1;j>=0;--j){_53f.createPolyline(_530[j]).setStroke(_53a);}}}else{var _540=this._getObjectLength(this.datas);_53f.createCircle({cx:_536.cx,cy:_536.cy,r:r}).setStroke(_53a);_53f.createCircle({cx:_536.cx,cy:_536.cy,r:r*ro}).setStroke(_53a);if(_531.length>0){for(var j=_531.length-1;j>=0;--j){_53f.createCircle({cx:_536.cx,cy:_536.cy,r:_531[j]}).setStroke(_53a);}}}var _541=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,_542=max-min,end=_528+2*Math.PI*k/len;for(var i=0;i<dv;i++){var text=min+_542*i/(dv-1),_53b=this._getCoordinate(_536,r*(ro+(1-ro)*i/(dv-1)),end);text=this._getLabel(text);var _53d=dojox.gfx._base._getTextBox(text,{font:_51d}).w||0,_53e=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";if(this.opt.htmlLabels){this.htmlElements.push(da.createText[_53e](this.chart,_541,(!dojo._isBodyLtr()&&_53e=="html")?(_53b.x+_53d-dim.width):_53b.x,_53b.y,"start",text,_51d,_51f));}}k++;}this.chart.seriesShapes={};var _543=[];for(var i=this.series.length-1;i>=0;i--){var _537=this.series[i],run=_537.data;if(run!==null){var _544=[],k=0,_545=[];for(var key in run){var data=this.datas[key],min=data.min,max=data.max,_542=max-min,_546=run[key],end=_528+2*Math.PI*k/len,_53b=this._getCoordinate(_536,r*(ro+(1-ro)*(_546-min)/_542),end);_544.push(_53b);_545.push({sname:_537.name,key:key,data:_546});k++;}_544[_544.length]=_544[0];_545[_545.length]=_545[0];var _547=this._getBoundary(_544),_548=t.next("spider",[o,_537]),ts=_537.group,f=g.normalizeColor(_548.series.fill),sk={color:_548.series.fill,width:_525};f.a=o.seriesFillAlpha;_537.dyn={fill:f,stroke:sk};var osps=this.oldSeriePoints[_537.name];var cs=this._createSeriesEntry(ts,(osps||_52f),_544,f,sk,r,ro,ms,at);this.chart.seriesShapes[_537.name]=cs;this.oldSeriePoints[_537.name]=_544;var po={element:"spider_poly",index:i,id:"spider_poly_"+_537.name,run:_537,plot:this,shape:cs.poly,parent:ts,brect:_547,cx:_536.cx,cy:_536.cy,cr:r,f:f,s:s};this._connectEvents(po);var so={element:"spider_plot",index:i,id:"spider_plot_"+_537.name,run:_537,plot:this,shape:_537.group};this._connectEvents(so);dojo.forEach(cs.circles,function(c,i){var _549=c.getShape(),co={element:"spider_circle",index:i,id:"spider_circle_"+_537.name+i,run:_537,plot:this,shape:c,parent:ts,tdata:_545[i],cx:_544[i].x,cy:_544[i].y,f:f,s:s};this._connectEvents(co);},this);}}return this;},_createSeriesEntry:function(ts,osps,sps,f,sk,r,ro,ms,at){var _54a=ts.createPolyline(osps).setFill(f).setStroke(sk),_54b=[];for(var j=0;j<osps.length;j++){var _54c=osps[j],cr=ms;var _54d=ts.createCircle({cx:_54c.x,cy:_54c.y,r:cr}).setFill(f).setStroke(sk);_54b.push(_54d);}var _54e=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=_54a,sc=_54b[j];dojo.connect(anim,"onAnimate",function(y){var _54f=spl.getShape();_54f.points[j].y=y;spl.setShape(_54f);var _550=sc.getShape();_550.cy=y;sc.setShape(_550);});return anim;});var _551=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=_54a,sc=_54b[j];dojo.connect(anim,"onAnimate",function(x){var _552=spl.getShape();_552.points[j].x=x;spl.setShape(_552);var _553=sc.getShape();_553.cx=x;sc.setShape(_553);});return anim;});var _554=dojo.fx.combine(_54e.concat(_551));_554.play();return {group:ts,poly:_54a,circles:_54b};},plotEvent:function(o){var _555=o.id?o.id:"default",a;if(_555 in this.animations){a=this.animations[_555];a.anim&&a.anim.stop(true);}else{a=this.animations[_555]={};}if(o.element=="spider_poly"){if(!a.color){var _556=o.shape.getFill();if(!_556||!(_556 instanceof dojo.Color)){return;}a.color={start:_556,end:_557(_556)};}var _558=a.color.start,end=a.color.end;if(o.type=="onmouseout"){var t=_558;_558=end;end=t;}a.anim=dojox.gfx.fx.animateFill({shape:o.shape,duration:800,easing:dojo.fx.easing.backOut,color:{start:_558,end:end}});a.anim.play();}else{if(o.element=="spider_circle"){var init,_559,_55a=1.5;if(o.type=="onmouseover"){init=dojox.gfx.matrix.identity;_559=_55a;var _55b={type:"rect"};_55b.x=o.cx;_55b.y=o.cy;_55b.width=_55b.height=1;var lt=dojo.coords(this.chart.node,true);_55b.x+=lt.x;_55b.y+=lt.y;_55b.x=Math.round(_55b.x);_55b.y=Math.round(_55b.y);_55b.width=Math.ceil(_55b.width);_55b.height=Math.ceil(_55b.height);this.aroundRect=_55b;var _55c=["after","before"];if(dijit&&dijit.Tooltip){dijit.showTooltip(o.tdata.sname+"<br/>"+o.tdata.key+"<br/>"+o.tdata.data,this.aroundRect,_55c);}}else{init=dojox.gfx.matrix.scaleAt(_55a,o.cx,o.cy);_559=1/_55a;if(dijit&&dijit.Tooltip){this.aroundRect&&dijit.hideTooltip(this.aroundRect);}}var cs=o.shape.getShape(),init=m.scaleAt(_55a,cs.cx,cs.cy),_55d={shape:o.shape,duration:200,easing:dojo.fx.easing.backOut,transform:[{name:"scaleAt",start:[1,cs.cx,cs.cy],end:[_559,cs.cx,cs.cy]},init]};a.anim=dojox.gfx.fx.animateTransform(_55d);a.anim.play();}else{if(o.element=="spider_plot"){if(o.type=="onmouseover"&&!dojo.isIE){o.shape.moveToFront();}}}}},_getBoundary:function(_55e){var xmax=_55e[0].x,xmin=_55e[0].x,ymax=_55e[0].y,ymin=_55e[0].y;for(var i=0;i<_55e.length;i++){var _55f=_55e[i];xmax=Math.max(_55f.x,xmax);ymax=Math.max(_55f.y,ymax);xmin=Math.min(_55f.x,xmin);ymin=Math.min(_55f.y,ymin);}return {x:xmin,y:ymin,width:xmax-xmin,height:ymax-ymin};},_drawArrow:function(s,_560,end,_561){var len=Math.sqrt(Math.pow(end.x-_560.x,2)+Math.pow(end.y-_560.y,2)),sin=(end.y-_560.y)/len,cos=(end.x-_560.x)/len,_562={x:end.x+(len/3)*(-sin),y:end.y+(len/3)*cos},_563={x:end.x+(len/3)*sin,y:end.y+(len/3)*(-cos)};s.createPolyline([_560,_562,_563]).setFill(_561.color).setStroke(_561);},_buildPoints:function(_564,_565,_566,_567,_568,_569){for(var i=0;i<_565;i++){var end=_568+2*Math.PI*i/_565;_564.push(this._getCoordinate(_566,_567,end));}if(_569){_564.push(this._getCoordinate(_566,_567,_568+2*Math.PI));}},_getCoordinate:function(_56a,_56b,_56c){return {x:_56a.cx+_56b*Math.cos(_56c),y:_56a.cy+_56b*Math.sin(_56c)};},_getObjectLength:function(obj){var _56d=0;if(dojo.isObject(obj)){for(var key in obj){_56d++;}}return _56d;},_getLabel:function(_56e){return dc.getLabel(_56e,this.opt.fixed,this.opt.precision);}});function _557(_56f){var a=new dojox.color.Color(_56f),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 _56f=dojox.color.fromHsl(x);_56f.a=0.7;return _56f;};})();}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.GreySkies"]){dojo._hasResource["dojox.charting.themes.GreySkies"]=true;dojo.provide("dojox.charting.themes.GreySkies");(function(){var dxc=dojox.charting;dxc.themes.GreySkies=new dxc.Theme(dxc.Theme._def);})();}if(!dojo._hasResource["dojox.charting.widget.Sparkline"]){dojo._hasResource["dojox.charting.widget.Sparkline"]=true;dojo.provide("dojox.charting.widget.Sparkline");(function(){var d=dojo;dojo.declare("dojox.charting.widget.Sparkline",dojox.charting.widget.Chart2D,{theme:dojox.charting.themes.GreySkies,margins:{l:0,r:0,t:0,b:0},type:"Lines",valueFn:"Number(x)",store:"",field:"",query:"",queryOptions:"",start:"0",count:"Infinity",sort:"",data:"",name:"default",buildRendering:function(){var n=this.srcNodeRef;if(!n.childNodes.length||!d.query("> .axis, > .plot, > .action, > .series",n).length){var plot=document.createElement("div");d.attr(plot,{"class":"plot","name":"default","type":this.type});n.appendChild(plot);var _570=document.createElement("div");d.attr(_570,{"class":"series",plot:"default",name:this.name,start:this.start,count:this.count,valueFn:this.valueFn});d.forEach(["store","field","query","queryOptions","sort","data"],function(i){if(this[i].length){d.attr(_570,i,this[i]);}},this);n.appendChild(_570);}this.inherited(arguments);}});})();}if(!dojo._hasResource["dojox.charting.widget.Legend"]){dojo._hasResource["dojox.charting.widget.Legend"]=true;dojo.provide("dojox.charting.widget.Legend");dojo.declare("dojox.charting.widget.Legend",[dijit._Widget,dijit._Templated],{chartRef:"",horizontal:true,swatchSize:18,templateString:"<table dojoAttachPoint='legendNode' class='dojoxLegendNode' role='group' aria-label='chart legend'><tbody dojoAttachPoint='legendBody'></tbody></table>",legendNode:null,legendBody:null,postCreate:function(){if(!this.chart){if(!this.chartRef){return;}this.chart=dijit.byId(this.chartRef);if(!this.chart){var node=dojo.byId(this.chartRef);if(node){this.chart=dijit.byNode(node);}else{return;}}this.series=this.chart.chart.series;}else{this.series=this.chart.series;}this.refresh();},refresh:function(){var df=dojox.lang.functional;if(this._surfaces){dojo.forEach(this._surfaces,function(_571){_571.destroy();});}this._surfaces=[];while(this.legendBody.lastChild){dojo.destroy(this.legendBody.lastChild);}if(this.horizontal){dojo.addClass(this.legendNode,"dojoxLegendHorizontal");this._tr=dojo.create("tr",null,this.legendBody);this._inrow=0;}var s=this.series;if(s.length==0){return;}if(s[0].chart.stack[0].declaredClass=="dojox.charting.plot2d.Pie"){var t=s[0].chart.stack[0];if(typeof t.run.data[0]=="number"){var _572=df.map(t.run.data,"Math.max(x, 0)");if(df.every(_572,"<= 0")){return;}var _573=df.map(_572,"/this",df.foldl(_572,"+",0));dojo.forEach(_573,function(x,i){this._addLabel(t.dyn[i],t._getLabel(x*100)+"%");},this);}else{dojo.forEach(t.run.data,function(x,i){this._addLabel(t.dyn[i],x.legend||x.text||x.y);},this);}}else{dojo.forEach(s,function(x){this._addLabel(x.dyn,x.legend||x.name);},this);}},_addLabel:function(dyn,_574){var _575=dojo.create("td"),icon=dojo.create("div",null,_575),text=dojo.create("label",null,_575),div=dojo.create("div",{style:{"width":this.swatchSize+"px","height":this.swatchSize+"px","float":"left"}},icon);dojo.addClass(icon,"dojoxLegendIcon dijitInline");dojo.addClass(text,"dojoxLegendText");if(this._tr){this._tr.appendChild(_575);if(++this._inrow===this.horizontal){this._tr=dojo.create("tr",null,this.legendBody);this._inrow=0;}}else{var tr=dojo.create("tr",null,this.legendBody);tr.appendChild(_575);}this._makeIcon(div,dyn);text.innerHTML=String(_574);},_makeIcon:function(div,dyn){var mb={h:this.swatchSize,w:this.swatchSize};var _576=dojox.gfx.createSurface(div,mb.w,mb.h);this._surfaces.push(_576);if(dyn.fill){_576.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setFill(dyn.fill).setStroke(dyn.stroke);}else{if(dyn.stroke||dyn.marker){var line={x1:0,y1:mb.h/2,x2:mb.w,y2:mb.h/2};if(dyn.stroke){_576.createLine(line).setStroke(dyn.stroke);}if(dyn.marker){var c={x:mb.w/2,y:mb.h/2};if(dyn.stroke){_576.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.stroke.color).setStroke(dyn.stroke);}else{_576.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.color).setStroke(dyn.color);}}}else{_576.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setStroke("black");_576.createLine({x1:2,y1:2,x2:mb.w-2,y2:mb.h-2}).setStroke("black");_576.createLine({x1:2,y1:mb.h-2,x2:mb.w-2,y2:2}).setStroke("black");}}}});}
