//>>built
define("dojox/charting/SimpleTheme","dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/_base/Color dojox/lang/utils dojox/gfx/gradutils".split(" "),function(g,l,q,k,n,r){var m=q("dojox.charting.SimpleTheme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(a){a=a||{};var e=m.defaultTheme;l.forEach("chart plotarea axis grid series marker indicator".split(" "),function(b){this[b]=g.delegate(e[b],a[b])},this);a.seriesThemes&&a.seriesThemes.length?(this.colors=null,this.seriesThemes=
a.seriesThemes.slice(0)):(this.seriesThemes=null,this.colors=(a.colors||m.defaultColors).slice(0));this.markerThemes=null;a.markerThemes&&a.markerThemes.length&&(this.markerThemes=a.markerThemes.slice(0));this.markers=a.markers?g.clone(a.markers):g.delegate(m.defaultMarkers);this.noGradConv=a.noGradConv;this.noRadialConv=a.noRadialConv;a.reverseFills&&this.reverseFills();this._current=0;this._buildMarkerArray()},clone:function(){var a=new this.constructor({chart:this.chart,plotarea:this.plotarea,
axis:this.axis,grid:this.grid,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,indicator:this.indicator,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv,pieInnerRadius:this.pieInnerRadius});l.forEach("clone clear next skip addMixin post getTick".split(" "),function(e){this.hasOwnProperty(e)&&(a[e]=this[e])},this);return a},clear:function(){this._current=0},next:function(a,e,b){var d=n.merge;if(this.colors){var c=
g.delegate(this.series);d=g.delegate(this.marker);var f=new k(this.colors[this._current%this.colors.length]);if(c.stroke&&c.stroke.color){c.stroke=g.delegate(c.stroke);var h=new k(c.stroke.color);c.stroke.color=new k(f);c.stroke.color.a=h.a}else c.stroke={color:f};d.stroke&&d.stroke.color?(d.stroke=g.delegate(d.stroke),h=new k(d.stroke.color),d.stroke.color=new k(f),d.stroke.color.a=h.a):d.stroke={color:f};!c.fill||c.fill.type?c.fill=f:(h=new k(c.fill),c.fill=new k(f),c.fill.a=h.a);!d.fill||d.fill.type?
d.fill=f:(h=new k(d.fill),d.fill=new k(f),d.fill.a=h.a)}else c=this.seriesThemes?d(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series,d=this.markerThemes?d(this.marker,this.markerThemes[this._current%this.markerThemes.length]):c;c={series:c,marker:d,symbol:d&&d.symbol||this._markers[this._current%this._markers.length]};++this._current;e&&(c=this.addMixin(c,a,e));b&&(c=this.post(c,a));return c},skip:function(){++this._current},addMixin:function(a,e,b,d){if(g.isArray(b))l.forEach(b,
function(f){a=this.addMixin(a,e,f)},this);else{var c={};"color"in b&&("line"==e||"area"==e?(g.setObject("series.stroke.color",b.color,c),g.setObject("marker.stroke.color",b.color,c)):g.setObject("series.fill",b.color,c));l.forEach("stroke outline shadow fill filter font fontColor labelWiring".split(" "),function(f){var h="marker"+f.charAt(0).toUpperCase()+f.substr(1),p=h in b;f in b&&(g.setObject("series."+f,b[f],c),p||g.setObject("marker."+f,b[f],c));p&&g.setObject("marker."+f,b[h],c)});"marker"in
b&&(c.symbol=b.marker,c.symbol=b.marker);a=n.merge(a,c)}d&&(a=this.post(a,e));return a},post:function(a,e){var b=a.series.fill,d;return!this.noGradConv&&this.shapeSpaces[b.space]&&"linear"==b.type&&("bar"==e?d={x1:b.y1,y1:b.x1,x2:b.y2,y2:b.x2}:this.noRadialConv||"shape"!=b.space||"slice"!=e&&"circle"!=e||(d={type:"radial",cx:0,cy:0,r:100}),d)?n.merge(a,{series:{fill:d}}):a},getTick:function(a,e){var b=this.axis.tick,d=a+"Tick",c=n.merge;b?this.axis[d]&&(b=c(b,this.axis[d])):b=this.axis[d];e&&(b?e[d]&&
(b=c(b,e[d])):b=e[d]);return b},inspectObjects:function(a){l.forEach("chart plotarea axis grid series marker indicator".split(" "),function(e){a(this[e])},this);this.seriesThemes&&l.forEach(this.seriesThemes,a);this.markerThemes&&l.forEach(this.markerThemes,a)},reverseFills:function(){this.inspectObjects(function(a){a&&a.fill&&(a.fill=r.reverse(a.fill))})},addMarker:function(a,e){this.markers[a]=e;this._buildMarkerArray()},setMarkers:function(a){this.markers=a;this._buildMarkerArray()},_buildMarkerArray:function(){this._markers=
[];for(var a in this.markers)this._markers.push(this.markers[a])}});g.mixin(m,{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",titleAlign:"middle"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333",labelGap:4},majorTick:{width:1,length:6},minorTick:{width:.8,length:3},microTick:{width:.5,length:1},title:{gap:15,font:"normal normal normal 11pt Tahoma",fontColor:"#333",orientation:"axis"}},series:{stroke:{width:1.5,color:"#333"},outline:{width:.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:.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000"},indicator:{lineStroke:{width:1.5,color:"#333"},lineOutline:{width:.1,color:"#ccc"},lineShadow:null,lineFill:null,stroke:{width:1.5,color:"#333"},outline:{width:.1,color:"#ccc"},shadow:null,fill:"#ccc",radius:3,font:"normal normal normal 10pt Tahoma",fontColor:"#000",markerFill:"#ccc",markerSymbol:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",
markerStroke:{width:1.5,color:"#333"},markerOutline:{width:.1,color:"#ccc"},markerShadow:null}}});return m});