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

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

		http://dojotoolkit.org
*/

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