(function(f){function s(a){f.jqplot.ElemContainer.call(this);this.name=a;this._series=[];this.show=false;this.tickRenderer=f.jqplot.AxisTickRenderer;this.tickOptions={};this.labelRenderer=f.jqplot.AxisLabelRenderer;this.labelOptions={};this.label=null;this.showLabel=true;this.max=this.min=null;this.autoscale=false;this.pad=1.2;this.padMin=this.padMax=null;this.ticks=[];this.renderer=f.jqplot.LinearAxisRenderer;this.rendererOptions={};this.drawMajorGridlines=this.showMinorTicks=this.showTickMarks=
this.showTicks=true;this.drawMinorGridlines=false;this.drawMinorTickMarks=this.drawMajorTickMarks=true;this.useSeriesColor=false;this.borderColor=this.borderWidth=null;this._dataBounds={min:null,max:null};this._intervalStats=[];this._offsets={min:null,max:null};this._ticks=[];this.syncTicks=this._label=null;this.tickSpacing=75;this.__ticks=this._numberTicks=this._tickInterval=this._max=this._min=null;this._options={}}function u(a){f.jqplot.ElemContainer.call(this);this.show=false;this.location="ne";
this.labels=[];this.showSwatches=this.showLabels=true;this.placement="insideGrid";this.yoffset=this.xoffset=0;this.rowSpacing="0.5em";this.renderer=f.jqplot.TableLegendRenderer;this.rendererOptions={};this.preDraw=false;this.marginLeft=this.marginBottom=this.marginRight=this.marginTop=null;this.escapeHtml=false;this._series=[];f.extend(true,this,a)}function A(a){f.jqplot.ElemContainer.call(this);this.text=a;this.show=true;this.renderer=f.jqplot.DivTitleRenderer;this.rendererOptions={};this.escapeHtml=
false}function B(){f.jqplot.ElemContainer.call(this);this.show=true;this.xaxis="xaxis";this.yaxis="yaxis";this.gridBorderWidth=2;this.renderer=f.jqplot.LineRenderer;this.rendererOptions={};this.data=[];this.gridData=[];this.label="";this.showLabel=true;this.lineWidth=2.5;this.lineCap=this.lineJoin="round";this.linePattern="solid";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.25;this.shadowDepth=3;this.shadowAlpha="0.1";this.breakOnNull=false;this.markerRenderer=f.jqplot.MarkerRenderer;
this.markerOptions={};this.showMarker=this.showLine=true;this._stack=this.disableStack=this.fillAndStroke=this.fill=false;this.neighborThreshold=4;this.fillToZero=false;this.fillToValue=0;this.fillAxis="y";this.useNegativeColors=true;this._stackData=[];this._plotData=[];this._plotValues={x:[],y:[]};this._intervals={x:{},y:{}};this._prevPlotData=[];this._prevGridData=[];this._stackAxis="y";this._primaryAxis="_xaxis";this.canvas=new f.jqplot.GenericCanvas;this.shadowCanvas=new f.jqplot.GenericCanvas;
this.plugins={};this._sumx=this._sumy=0;this._type=""}function E(){f.jqplot.ElemContainer.call(this);this.drawGridlines=true;this.gridLineColor="#cccccc";this.gridLineWidth=1;this.background="#fffdf6";this.borderColor="#999999";this.borderWidth=2;this.shadow=this.drawBorder=true;this.shadowAngle=45;this.shadowOffset=1.5;this.shadowDepth=this.shadowWidth=3;this.shadowColor=null;this.shadowAlpha="0.07";this._axes=[];this.renderer=f.jqplot.CanvasGridRenderer;this.rendererOptions={};this._offsets={top:null,
bottom:null,left:null,right:null}}function F(){function a(b){for(var e,i=0;i<b.length;i++)for(var g,h=[b[i].data,b[i]._stackData,b[i]._plotData,b[i]._prevPlotData],k=0;k<4;k++){g=true;e=h[k];if(b[i]._stackAxis=="x"){for(var j=0;j<e.length;j++)if(typeof e[j][1]!="number"){g=false;break}g&&e.sort(function(n,l){return n[1]-l[1]})}else{for(j=0;j<e.length;j++)if(typeof e[j][0]!="number"){g=false;break}g&&e.sort(function(n,l){return n[0]-l[0]})}}}function c(b){var e=b.data.plot,i=e.eventCanvas._elem.offset();
b={x:b.pageX-i.left,y:b.pageY-i.top};var g={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},h=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];e=e.axes;var k,j;for(k=11;k>0;k--){j=h[k-1];if(e[j].show)g[j]=e[j].series_p2u(b[j.charAt(0)])}return{offsets:i,gridPos:b,dataPos:g}}function d(b,e){var i=e.series,g,h,k,j,n,l,m,o,t,r,p,w;for(k=e.seriesStack.length-
1;k>=0;k--){g=e.seriesStack[k];j=i[g];switch(j.renderer.constructor){case f.jqplot.BarRenderer:case f.jqplot.PyramidRenderer:l=b.x;m=b.y;for(h=0;h<j._barPoints.length;h++){g=j._barPoints[h];p=j.gridData[h];if(l>g[0][0]&&l<g[2][0]&&m>g[2][1]&&m<g[0][1])return{seriesIndex:j.index,pointIndex:h,gridData:p,data:j.data[h],points:j._barPoints[h]}}break;case f.jqplot.DonutRenderer:h=j.startAngle/180*Math.PI;l=b.x-j._center[0];m=b.y-j._center[1];n=Math.sqrt(Math.pow(l,2)+Math.pow(m,2));if(l>0&&-m>=0)o=2*Math.PI-
Math.atan(-m/l);else if(l>0&&-m<0)o=-Math.atan(-m/l);else if(l<0)o=Math.PI-Math.atan(-m/l);else if(l==0&&-m>0)o=3*Math.PI/2;else if(l==0&&-m<0)o=Math.PI/2;else if(l==0&&m==0)o=0;if(h){o-=h;if(o<0)o+=2*Math.PI;else if(o>2*Math.PI)o-=2*Math.PI}l=j.sliceMargin/180*Math.PI;if(n<j._radius&&n>j._innerRadius)for(h=0;h<j.gridData.length;h++){m=h>0?j.gridData[h-1][1]+l:l;g=j.gridData[h][1];if(o>m&&o<g)return{seriesIndex:j.index,pointIndex:h,gridData:j.gridData[h],data:j.data[h]}}break;case f.jqplot.PieRenderer:h=
j.startAngle/180*Math.PI;l=b.x-j._center[0];m=b.y-j._center[1];n=Math.sqrt(Math.pow(l,2)+Math.pow(m,2));if(l>0&&-m>=0)o=2*Math.PI-Math.atan(-m/l);else if(l>0&&-m<0)o=-Math.atan(-m/l);else if(l<0)o=Math.PI-Math.atan(-m/l);else if(l==0&&-m>0)o=3*Math.PI/2;else if(l==0&&-m<0)o=Math.PI/2;else if(l==0&&m==0)o=0;if(h){o-=h;if(o<0)o+=2*Math.PI;else if(o>2*Math.PI)o-=2*Math.PI}l=j.sliceMargin/180*Math.PI;if(n<j._radius)for(h=0;h<j.gridData.length;h++){m=h>0?j.gridData[h-1][1]+l:l;g=j.gridData[h][1];if(o>
m&&o<g)return{seriesIndex:j.index,pointIndex:h,gridData:j.gridData[h],data:j.data[h]}}break;case f.jqplot.BubbleRenderer:l=b.x;m=b.y;n=null;if(j.show){for(h=0;h<j.gridData.length;h++){p=j.gridData[h];r=Math.sqrt((l-p[0])*(l-p[0])+(m-p[1])*(m-p[1]));if(r<=p[2]&&(r<=t||t==null)){t=r;n={seriesIndex:g,pointIndex:h,gridData:p,data:j.data[h]}}}if(n!=null)return n}break;case f.jqplot.FunnelRenderer:l=b.x;m=b.y;g=j._vertices;h=g[0];p=g[g.length-1];r=function(v,x,z){z=(x[1]-z[1])/(x[0]-z[0]);v=v+x[1];return[(v-
(x[1]-z*x[0]))/z,v]};n=r(m,h[0],p[3]);p=r(m,h[1],p[2]);for(h=0;h<g.length;h++){r=g[h];if(m>=r[0][1]&&m<=r[3][1]&&l>=n[0]&&l<=p[0])return{seriesIndex:j.index,pointIndex:h,gridData:null,data:j.data[h]}}break;case f.jqplot.LineRenderer:l=b.x;m=b.y;n=j.renderer;if(j.show)if((j.fill||j.renderer.bands.show&&j.renderer.bands.fill)&&(!e.plugins.highlighter||!e.plugins.highlighter.show)){n=false;if(l>j._boundingBox[0][0]&&l<j._boundingBox[1][0]&&m>j._boundingBox[1][1]&&m<j._boundingBox[0][1]){p=j._areaPoints.length;
h=p-1;for(r=0;r<p;r++){w=[j._areaPoints[r][0],j._areaPoints[r][1]];h=[j._areaPoints[h][0],j._areaPoints[h][1]];if(w[1]<m&&h[1]>=m||h[1]<m&&w[1]>=m)if(w[0]+(m-w[1])/(h[1]-w[1])*(h[0]-w[0])<l)n=!n;h=r}}if(n)return{seriesIndex:g,pointIndex:null,gridData:j.gridData,data:j.data,points:j._areaPoints};break}else{h=j.markerRenderer.size/2+j.neighborThreshold;w=h>0?h:0;for(h=0;h<j.gridData.length;h++){p=j.gridData[h];if(n.constructor==f.jqplot.OHLCRenderer)if(n.candleStick){r=j._yaxis.series_u2p;if(l>=p[0]-
n._bodyWidth/2&&l<=p[0]+n._bodyWidth/2&&m>=r(j.data[h][2])&&m<=r(j.data[h][3]))return{seriesIndex:g,pointIndex:h,gridData:p,data:j.data[h]}}else if(n.hlc){r=j._yaxis.series_u2p;if(l>=p[0]-n._tickLength&&l<=p[0]+n._tickLength&&m>=r(j.data[h][1])&&m<=r(j.data[h][2]))return{seriesIndex:g,pointIndex:h,gridData:p,data:j.data[h]}}else{r=j._yaxis.series_u2p;if(l>=p[0]-n._tickLength&&l<=p[0]+n._tickLength&&m>=r(j.data[h][2])&&m<=r(j.data[h][3]))return{seriesIndex:g,pointIndex:h,gridData:p,data:j.data[h]}}else if(p[0]!=
null&&p[1]!=null){r=Math.sqrt((l-p[0])*(l-p[0])+(m-p[1])*(m-p[1]));if(r<=w&&(r<=t||t==null)){t=r;return{seriesIndex:g,pointIndex:h,gridData:p,data:j.data[h]}}}}}break;default:l=b.x;m=b.y;n=j.renderer;if(j.show){h=j.markerRenderer.size/2+j.neighborThreshold;w=h>0?h:0;for(h=0;h<j.gridData.length;h++){p=j.gridData[h];if(n.constructor==f.jqplot.OHLCRenderer)if(n.candleStick){r=j._yaxis.series_u2p;if(l>=p[0]-n._bodyWidth/2&&l<=p[0]+n._bodyWidth/2&&m>=r(j.data[h][2])&&m<=r(j.data[h][3]))return{seriesIndex:g,
pointIndex:h,gridData:p,data:j.data[h]}}else if(n.hlc){r=j._yaxis.series_u2p;if(l>=p[0]-n._tickLength&&l<=p[0]+n._tickLength&&m>=r(j.data[h][1])&&m<=r(j.data[h][2]))return{seriesIndex:g,pointIndex:h,gridData:p,data:j.data[h]}}else{r=j._yaxis.series_u2p;if(l>=p[0]-n._tickLength&&l<=p[0]+n._tickLength&&m>=r(j.data[h][2])&&m<=r(j.data[h][3]))return{seriesIndex:g,pointIndex:h,gridData:p,data:j.data[h]}}else{r=Math.sqrt((l-p[0])*(l-p[0])+(m-p[1])*(m-p[1]));if(r<=w&&(r<=t||t==null)){t=r;return{seriesIndex:g,
pointIndex:h,gridData:p,data:j.data[h]}}}}}}}return null}this.animateReplot=this.animate=false;this.axes={xaxis:new s("xaxis"),yaxis:new s("yaxis"),x2axis:new s("x2axis"),y2axis:new s("y2axis"),y3axis:new s("y3axis"),y4axis:new s("y4axis"),y5axis:new s("y5axis"),y6axis:new s("y6axis"),y7axis:new s("y7axis"),y8axis:new s("y8axis"),y9axis:new s("y9axis"),yMidAxis:new s("yMidAxis")};this.baseCanvas=new f.jqplot.GenericCanvas;this.captureRightClick=false;this.data=[];this.defaults={axesDefaults:{},axes:{xaxis:{},
yaxis:{},x2axis:{},y2axis:{},y3axis:{},y4axis:{},y5axis:{},y6axis:{},y7axis:{},y8axis:{},y9axis:{},yMidAxis:{}},seriesDefaults:{},series:[]};this.defaultAxisStart=1;this.drawIfHidden=false;this.eventCanvas=new f.jqplot.GenericCanvas;this.fillBetween={series1:null,series2:null,color:null,baseSeries:0,fill:true};this.grid=new E;this.legend=new u;this.negativeSeriesColors=f.jqplot.config.defaultNegativeColors;this.noDataIndicator={show:false,indicator:"Loading Data...",axes:{xaxis:{min:0,max:10,tickInterval:2,
show:true},yaxis:{min:0,max:12,tickInterval:3,show:true}}};this.options={};this.previousSeriesStack=[];this.plugins={};this.series=[];this.seriesStack=[];this.seriesColors=f.jqplot.config.defaultColors;this.sortData=true;this.stackSeries=false;this.syncYTicks=this.syncXTicks=true;this.targetId=this.target=null;this.title=new A;this._sumx=this._sumy=this._drawCount=0;this._stackData=[];this._plotData=[];this._height=this._width=null;this._plotDimensions={height:null,width:null};this._gridPadding={top:null,
right:null,bottom:null,left:null};this._defaultGridPadding={top:10,right:10,bottom:23,left:10};this._addDomReference=f.jqplot.config.addDomReference;this.preInitHooks=new f.jqplot.HooksManager;this.postInitHooks=new f.jqplot.HooksManager;this.preParseOptionsHooks=new f.jqplot.HooksManager;this.postParseOptionsHooks=new f.jqplot.HooksManager;this.preDrawHooks=new f.jqplot.HooksManager;this.postDrawHooks=new f.jqplot.HooksManager;this.preDrawSeriesHooks=new f.jqplot.HooksManager;this.postDrawSeriesHooks=
new f.jqplot.HooksManager;this.preDrawLegendHooks=new f.jqplot.HooksManager;this.addLegendRowHooks=new f.jqplot.HooksManager;this.preSeriesInitHooks=new f.jqplot.HooksManager;this.postSeriesInitHooks=new f.jqplot.HooksManager;this.preParseSeriesOptionsHooks=new f.jqplot.HooksManager;this.postParseSeriesOptionsHooks=new f.jqplot.HooksManager;this.eventListenerHooks=new f.jqplot.EventListenerManager;this.preDrawSeriesShadowHooks=new f.jqplot.HooksManager;this.postDrawSeriesShadowHooks=new f.jqplot.HooksManager;
this.colorGenerator=new f.jqplot.ColorGenerator;this.negativeColorGenerator=new f.jqplot.ColorGenerator;this.canvasManager=new f.jqplot.CanvasManager;this.themeEngine=new f.jqplot.ThemeEngine;this.init=function(b,e,i){i=i||{};for(var g=0;g<f.jqplot.preInitHooks.length;g++)f.jqplot.preInitHooks[g].call(this,b,e,i);for(g=0;g<this.preInitHooks.hooks.length;g++)this.preInitHooks.hooks[g].call(this,b,e,i);this.targetId="#"+b;this.target=f("#"+b);this._addDomReference&&this.target.data("jqplot_plot",this);
this.target.removeClass("jqplot-error");if(!this.target.get(0))throw"No plot target specified";this.target.css("position")=="static"&&this.target.css("position","relative");this.target.hasClass("jqplot-target")||this.target.addClass("jqplot-target");if(this.target.height())this._height=g=this.target.height();else{this._height=g=i&&i.height?parseInt(i.height,10):this.target.attr("data-height")?parseInt(this.target.attr("data-height"),10):parseInt(f.jqplot.config.defaultHeight,10);this.target.css("height",
g+"px")}if(this.target.width())this._width=g=this.target.width();else{this._width=g=i&&i.width?parseInt(i.width,10):this.target.attr("data-width")?parseInt(this.target.attr("data-width"),10):parseInt(f.jqplot.config.defaultWidth,10);this.target.css("width",g+"px")}this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=
this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;if(this._height<=0||this._width<=0||!this._height||!this._width)throw"Canvas dimension not set";if(i.dataRenderer&&jQuery.isFunction(i.dataRenderer)){if(i.dataRendererOptions)this.dataRendererOptions=i.dataRendererOptions;this.dataRenderer=i.dataRenderer;e=this.dataRenderer(e,this,this.dataRendererOptions)}i.noDataIndicator&&jQuery.isPlainObject(i.noDataIndicator)&&f.extend(true,this.noDataIndicator,i.noDataIndicator);if(e==null||
jQuery.isArray(e)==false||e.length==0||jQuery.isArray(e[0])==false||e[0].length==0)if(this.noDataIndicator.show==false)throw{name:"DataError",message:"No data to plot."};else{for(var h in this.noDataIndicator.axes)for(var k in this.noDataIndicator.axes[h])this.axes[h][k]=this.noDataIndicator.axes[h][k];this.postDrawHooks.add(function(){var j=this.eventCanvas.getHeight(),n=this.eventCanvas.getWidth(),l=f('<div class="jqplot-noData-container" style="position:absolute;"></div>');this.target.append(l);
l.height(j);l.width(n);l.css("top",this.eventCanvas._offsets.top);l.css("left",this.eventCanvas._offsets.left);n=f('<div class="jqplot-noData-contents" style="text-align:center; position:relative; margin-left:auto; margin-right:auto;"></div>');l.append(n);n.html(this.noDataIndicator.indicator);l=n.height();var m=n.width();n.height(l);n.width(m);n.css("top",(j-l)/2+"px")})}this.data=e;this.parseOptions(i);this.textColor&&this.target.css("color",this.textColor);this.fontFamily&&this.target.css("font-family",
this.fontFamily);this.fontSize&&this.target.css("font-size",this.fontSize);this.title.init();this.legend.init();for(g=this._sumx=this._sumy=0;g<this.series.length;g++){this.seriesStack.push(g);this.previousSeriesStack.push(g);this.series[g].shadowCanvas._plotDimensions=this._plotDimensions;this.series[g].canvas._plotDimensions=this._plotDimensions;for(h=0;h<f.jqplot.preSeriesInitHooks.length;h++)f.jqplot.preSeriesInitHooks[h].call(this.series[g],b,e,this.options.seriesDefaults,this.options.series[g],
this);for(h=0;h<this.preSeriesInitHooks.hooks.length;h++)this.preSeriesInitHooks.hooks[h].call(this.series[g],b,e,this.options.seriesDefaults,this.options.series[g],this);this.populatePlotData(this.series[g],g);this.series[g]._plotDimensions=this._plotDimensions;this.series[g].init(g,this.grid.borderWidth,this);for(h=0;h<f.jqplot.postSeriesInitHooks.length;h++)f.jqplot.postSeriesInitHooks[h].call(this.series[g],b,e,this.options.seriesDefaults,this.options.series[g],this);for(h=0;h<this.postSeriesInitHooks.hooks.length;h++)this.postSeriesInitHooks.hooks[h].call(this.series[g],
b,e,this.options.seriesDefaults,this.options.series[g],this);this._sumy+=this.series[g]._sumy;this._sumx+=this.series[g]._sumx}for(g=0;g<12;g++){h=Y[g];this.axes[h]._plotDimensions=this._plotDimensions;this.axes[h].init();if(this.axes[h].borderColor==null)this.axes[h].borderColor=h.charAt(0)!=="x"&&this.axes[h].useSeriesColor===true&&this.axes[h].show?this.axes[h]._series[0].color:this.grid.borderColor}this.sortData&&a(this.series);this.grid.init();this.grid._axes=this.axes;this.legend._series=this.series;
for(g=0;g<f.jqplot.postInitHooks.length;g++)f.jqplot.postInitHooks[g].call(this,b,e,i);for(g=0;g<this.postInitHooks.hooks.length;g++)this.postInitHooks.hooks[g].call(this,b,e,i)};this.resetAxesScale=function(b,e){var i=e||{},g=b||this.axes;if(g===true)g=this.axes;if(jQuery.isArray(g))for(var h=0;h<g.length;h++)this.axes[g[h]].resetScale(i[g[h]]);else if(typeof g==="object")for(h in g)this.axes[h].resetScale(i[h])};this.reInitialize=function(){this._height=this.target.height();this._width=this.target.width();
if(this._height<=0||this._width<=0||!this._height||!this._width)throw"Target dimension not set";this._plotDimensions.height=this._height;this._plotDimensions.width=this._width;this.grid._plotDimensions=this._plotDimensions;this.title._plotDimensions=this._plotDimensions;this.baseCanvas._plotDimensions=this._plotDimensions;this.eventCanvas._plotDimensions=this._plotDimensions;this.legend._plotDimensions=this._plotDimensions;for(var b in this.axes){this.axes[b]._plotWidth=this._width;this.axes[b]._plotHeight=
this._height}this.title._plotWidth=this._width;this.textColor&&this.target.css("color",this.textColor);this.fontFamily&&this.target.css("font-family",this.fontFamily);this.fontSize&&this.target.css("font-size",this.fontSize);for(b=this._sumx=this._sumy=0;b<this.series.length;b++){this.populatePlotData(this.series[b],b);this.series[b]._type==="line"&&this.series[b].renderer.bands.show&&this.series[b].renderer.initBands.call(this.series[b],this.series[b].renderer.options,this);this.series[b]._plotDimensions=
this._plotDimensions;this.series[b].canvas._plotDimensions=this._plotDimensions;this._sumy+=this.series[b]._sumy;this._sumx+=this.series[b]._sumx}for(var e,i=0;i<12;i++){e=Y[i];var g=this.axes[e]._ticks;for(b=0;b<g.length;b++){var h=g[b]._elem;if(h){f.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==D&&window.G_vmlCanvasManager.uninitElement(h.get(0));h.emptyForce();g._elem=null}}this.axes[e]._plotDimensions=this._plotDimensions;this.axes[e]._ticks=[]}this.sortData&&a(this.series);this.grid._axes=
this.axes;this.legend._series=this.series};this.populatePlotData=function(b,e){this._plotData=[];this._stackData=[];b._stackData=[];b._plotData=[];var i={x:[],y:[]};if(this.stackSeries&&!b.disableStack){b._stack=true;for(var g=b._stackAxis=="x"?0:1,h=f.extend(true,[],b.data),k=f.extend(true,[],b.data),j=0;j<e;j++)for(var n=this.series[j].data,l=0;l<n.length;l++){h[l][0]+=n[l][0];h[l][1]+=n[l][1];k[l][g]+=n[l][g]}for(g=0;g<k.length;g++){i.x.push(k[g][0]);i.y.push(k[g][1])}this._plotData.push(k);this._stackData.push(h);
b._stackData=h;b._plotData=k}else{for(g=0;g<b.data.length;g++){i.x.push(b.data[g][0]);i.y.push(b.data[g][1])}this._stackData.push(b.data);this.series[e]._stackData=b.data;this._plotData.push(b.data);b._plotData=b.data}b._plotValues=i;if(e>0)b._prevPlotData=this.series[e-1]._plotData;b._sumy=0;b._sumx=0;for(g=b.data.length-1;g>-1;g--){b._sumy+=b.data[g][1];b._sumx+=b.data[g][0]}};this.getNextSeriesColor=function(b){var e=0,i=b.seriesColors;return function(){e<i.length||(e=0);return i[e++]}}(this);
this.parseOptions=function(b){for(var e=0;e<this.preParseOptionsHooks.hooks.length;e++)this.preParseOptionsHooks.hooks[e].call(this,b);for(e=0;e<f.jqplot.preParseOptionsHooks.length;e++)f.jqplot.preParseOptionsHooks[e].call(this,b);var i=this.options=f.extend(true,{},this.defaults,b);this.animate=i.animate;this.animateReplot=i.animateReplot;this.stackSeries=i.stackSeries;if(f.isPlainObject(i.fillBetween)){var g=["series1","series2","color","baseSeries","fill"],h;e=0;for(var k=g.length;e<k;e++){h=
g[e];if(i.fillBetween[h]!=null)this.fillBetween[h]=i.fillBetween[h]}}if(i.seriesColors)this.seriesColors=i.seriesColors;if(i.negativeSeriesColors)this.negativeSeriesColors=i.negativeSeriesColors;if(i.captureRightClick)this.captureRightClick=i.captureRightClick;this.defaultAxisStart=b&&b.defaultAxisStart!=null?b.defaultAxisStart:this.defaultAxisStart;this.colorGenerator.setColors(this.seriesColors);this.negativeColorGenerator.setColors(this.negativeSeriesColors);f.extend(true,this._gridPadding,i.gridPadding);
this.sortData=i.sortData!=null?i.sortData:this.sortData;for(e=0;e<12;e++){g=Y[e];h=this.axes[g];h._options=f.extend(true,{},i.axesDefaults,i.axes[g]);f.extend(true,h,i.axesDefaults,i.axes[g]);h._plotWidth=this._width;h._plotHeight=this._height}i=function(j,n,l){var m=[],o;n=n||"vertical";if(jQuery.isArray(j[0]))f.extend(true,m,j);else for(o=0;o<j.length;o++)n=="vertical"?m.push([l+o,j[o]]):m.push([j[o],l+o]);return m};for(e=0;e<this.data.length;e++){g=new B;for(h=0;h<f.jqplot.preParseSeriesOptionsHooks.length;h++)f.jqplot.preParseSeriesOptionsHooks[h].call(g,
this.options.seriesDefaults,this.options.series[e]);for(h=0;h<this.preParseSeriesOptionsHooks.hooks.length;h++)this.preParseSeriesOptionsHooks.hooks[h].call(g,this.options.seriesDefaults,this.options.series[e]);f.extend(true,g,{seriesColors:this.seriesColors,negativeSeriesColors:this.negativeSeriesColors},this.options.seriesDefaults,this.options.series[e],{rendererOptions:{animation:{show:this.animate}}});h="vertical";if(g.renderer===f.jqplot.BarRenderer&&g.rendererOptions&&g.rendererOptions.barDirection==
"horizontal"&&g.transposeData===true)h="horizontal";g.data=i(this.data[e],h,this.defaultAxisStart);switch(g.xaxis){case "xaxis":g._xaxis=this.axes.xaxis;break;case "x2axis":g._xaxis=this.axes.x2axis}g._yaxis=this.axes[g.yaxis];g._xaxis._series.push(g);g._yaxis._series.push(g);if(g.show){g._xaxis.show=true;g._yaxis.show=true}if(!g.label)g.label="Series "+(e+1).toString();this.series.push(g);for(h=0;h<f.jqplot.postParseSeriesOptionsHooks.length;h++)f.jqplot.postParseSeriesOptionsHooks[h].call(this.series[e],
this.options.seriesDefaults,this.options.series[e]);for(h=0;h<this.postParseSeriesOptionsHooks.hooks.length;h++)this.postParseSeriesOptionsHooks.hooks[h].call(this.series[e],this.options.seriesDefaults,this.options.series[e])}f.extend(true,this.grid,this.options.grid);for(e=0;e<12;e++){g=Y[e];h=this.axes[g];if(h.borderWidth==null)h.borderWidth=this.grid.borderWidth}if(typeof this.options.title=="string")this.title.text=this.options.title;else typeof this.options.title=="object"&&f.extend(true,this.title,
this.options.title);this.title._plotWidth=this._width;this.legend.setOptions(this.options.legend);for(e=0;e<f.jqplot.postParseOptionsHooks.length;e++)f.jqplot.postParseOptionsHooks[e].call(this,b);for(e=0;e<this.postParseOptionsHooks.hooks.length;e++)this.postParseOptionsHooks.hooks[e].call(this,b)};this.destroy=function(){this.canvasManager.freeAllCanvases();this.eventCanvas&&this.eventCanvas._elem&&this.eventCanvas._elem.unbind();this.target.empty();this.target[0].innerHTML=""};this.replot=function(b){b=
b||{};var e=b.clear===false?false:true,i=b.resetAxes||false;this.target.trigger("jqplotPreReplot");e&&this.destroy();this.reInitialize();i&&this.resetAxesScale(i,b.axes);this.draw();this.target.trigger("jqplotPostReplot")};this.redraw=function(b){b=b!=null?b:true;this.target.trigger("jqplotPreRedraw");if(b){this.canvasManager.freeAllCanvases();this.eventCanvas._elem.unbind();this.target.empty()}for(var e in this.axes)this.axes[e]._ticks=[];for(b=0;b<this.series.length;b++)this.populatePlotData(this.series[b],
b);for(b=this._sumx=this._sumy=0;b<this.series.length;b++){this._sumy+=this.series[b]._sumy;this._sumx+=this.series[b]._sumx}this.draw();this.target.trigger("jqplotPostRedraw")};this.draw=function(){if(this.drawIfHidden||this.target.is(":visible")){this.target.trigger("jqplotPreDraw");var b,e,i;b=0;for(i=f.jqplot.preDrawHooks.length;b<i;b++)f.jqplot.preDrawHooks[b].call(this);b=0;for(i=this.preDrawHooks.length;b<i;b++)this.preDrawHooks.hooks[b].apply(this,this.preDrawSeriesHooks.args[b]);this.target.append(this.baseCanvas.createElement({left:0,
right:0,top:0,bottom:0},"jqplot-base-canvas",null,this));this.baseCanvas.setContext();this.target.append(this.title.draw());this.title.pack({top:0,left:0});var g=this.legend.draw();i={top:0,left:0,bottom:0,right:0};if(this.legend.placement=="outsideGrid"){this.target.append(g);switch(this.legend.location){case "n":i.top+=this.legend.getHeight();break;case "s":i.bottom+=this.legend.getHeight();break;case "ne":case "e":case "se":i.right+=this.legend.getWidth();break;case "nw":case "w":case "sw":i.left+=
this.legend.getWidth();break;default:i.right+=this.legend.getWidth()}g=g.detach()}var h=this.axes,k;for(b=0;b<12;b++){k=Y[b];this.target.append(h[k].draw(this.baseCanvas._ctx,this));h[k].set()}if(h.yaxis.show)i.left+=h.yaxis.getWidth();k=["y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];e=[0,0,0,0,0,0,0,0];var j=0;for(b=0;b<8;b++)if(h[k[b]].show){j+=h[k[b]].getWidth();e[b]=j}i.right+=j;if(h.x2axis.show)i.top+=h.x2axis.getHeight();if(this.title.show)i.top+=this.title.getHeight();
if(h.xaxis.show)i.bottom+=h.xaxis.getHeight();if(this.options.gridDimensions&&f.isPlainObject(this.options.gridDimensions)){var n=parseInt(this.options.gridDimensions.width,10)||0;j=parseInt(this.options.gridDimensions.height,10)||0;n=(this._width-i.left-i.right-n)/2;j=(this._height-i.top-i.bottom-j)/2;if(j>=0&&n>=0){i.top+=j;i.bottom+=j;i.left+=n;i.right+=n}}j=["top","bottom","left","right"];for(b in j)if(this._gridPadding[j[b]]==null&&i[j[b]]>0)this._gridPadding[j[b]]=i[j[b]];else if(this._gridPadding[j[b]]==
null)this._gridPadding[j[b]]=this._defaultGridPadding[j[b]];j=this.legend.placement=="outsideGrid"?{top:this.title.getHeight(),left:0,right:0,bottom:0}:this._gridPadding;h.xaxis.pack({position:"absolute",bottom:this._gridPadding.bottom-h.xaxis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});h.yaxis.pack({position:"absolute",top:0,left:this._gridPadding.left-h.yaxis.getWidth(),height:this._height},{min:this._height-this._gridPadding.bottom,
max:this._gridPadding.top});h.x2axis.pack({position:"absolute",top:this._gridPadding.top-h.x2axis.getHeight(),left:0,width:this._width},{min:this._gridPadding.left,max:this._width-this._gridPadding.right});for(b=8;b>0;b--)h[k[b-1]].pack({position:"absolute",top:0,right:this._gridPadding.right-e[b-1]},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});b=(this._width-this._gridPadding.left-this._gridPadding.right)/2+this._gridPadding.left-h.yMidAxis.getWidth()/2;h.yMidAxis.pack({position:"absolute",
top:0,left:b,zIndex:9,textAlign:"center"},{min:this._height-this._gridPadding.bottom,max:this._gridPadding.top});this.target.append(this.grid.createElement(this._gridPadding,this));this.grid.draw();h=this.series;k=h.length;b=0;for(i=k;b<i;b++){e=this.seriesStack[b];this.target.append(h[e].shadowCanvas.createElement(this._gridPadding,"jqplot-series-shadowCanvas",null,this));h[e].shadowCanvas.setContext();h[e].shadowCanvas._elem.data("seriesIndex",e)}b=0;for(i=k;b<i;b++){e=this.seriesStack[b];this.target.append(h[e].canvas.createElement(this._gridPadding,
"jqplot-series-canvas",null,this));h[e].canvas.setContext();h[e].canvas._elem.data("seriesIndex",e)}this.target.append(this.eventCanvas.createElement(this._gridPadding,"jqplot-event-canvas",null,this));this.eventCanvas.setContext();this.eventCanvas._ctx.fillStyle="rgba(0,0,0,0)";this.eventCanvas._ctx.fillRect(0,0,this.eventCanvas._ctx.canvas.width,this.eventCanvas._ctx.canvas.height);this.bindCustomEvents();if(this.legend.preDraw){this.eventCanvas._elem.before(g);this.legend.pack(j);this.legend._elem?
this.drawSeries({legendInfo:{location:this.legend.location,placement:this.legend.placement,width:this.legend.getWidth(),height:this.legend.getHeight(),xoffset:this.legend.xoffset,yoffset:this.legend.yoffset}}):this.drawSeries()}else{this.drawSeries();k&&f(h[k-1].canvas._elem).after(g);this.legend.pack(j)}b=0;for(i=f.jqplot.eventListenerHooks.length;b<i;b++)this.eventCanvas._elem.bind(f.jqplot.eventListenerHooks[b][0],{plot:this},f.jqplot.eventListenerHooks[b][1]);b=0;for(i=this.eventListenerHooks.hooks.length;b<
i;b++)this.eventCanvas._elem.bind(this.eventListenerHooks.hooks[b][0],{plot:this},this.eventListenerHooks.hooks[b][1]);g=this.fillBetween;g.fill&&g.series1!==g.series2&&g.series1<k&&g.series2<k&&h[g.series1]._type==="line"&&h[g.series2]._type==="line"&&this.doFillBetweenLines();b=0;for(i=f.jqplot.postDrawHooks.length;b<i;b++)f.jqplot.postDrawHooks[b].call(this);b=0;for(i=this.postDrawHooks.hooks.length;b<i;b++)this.postDrawHooks.hooks[b].apply(this,this.postDrawHooks.args[b]);if(this.target.is(":visible"))this._drawCount+=
1;b=0;for(i=k;b<i;b++){g=h[b];k=g.renderer;e=".jqplot-point-label.jqplot-series-"+b;if(k.animation&&k.animation._supported&&k.animation.show&&(this._drawCount<2||this.animateReplot)){e=this.target.find(e);e.stop(true,true).hide();g.canvas._elem.stop(true,true).hide();g.shadowCanvas._elem.stop(true,true).hide();g.canvas._elem.jqplotEffect("blind",{mode:"show",direction:k.animation.direction},k.animation.speed);g.shadowCanvas._elem.jqplotEffect("blind",{mode:"show",direction:k.animation.direction},
k.animation.speed);e.fadeIn(k.animation.speed*0.8)}}this.target.trigger("jqplotPostDraw",[this])}};F.prototype.doFillBetweenLines=function(){var b=this.fillBetween,e=b.series1,i=b.series2,g=e<i?e:i,h=this.series[g];i=this.series[i>e?i:e];i=i.renderer.smooth?i.renderer._smoothedData.slice(0).reverse():i.gridData.slice(0).reverse();i=h.renderer.smooth?h.renderer._smoothedData.concat(i):h.gridData.concat(i);this.series[b.baseSeries!==null?b.baseSeries:g].renderer.shapeRenderer.draw(h.shadowCanvas._ctx,
i,{fillStyle:b.color!==null?b.color:this.series[e].fillColor,fill:true,closePath:true})};this.bindCustomEvents=function(){this.eventCanvas._elem.bind("click",{plot:this},this.onClick);this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("mousedown",{plot:this},this.onMouseDown);this.eventCanvas._elem.bind("mousemove",{plot:this},this.onMouseMove);this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter);this.eventCanvas._elem.bind("mouseleave",
{plot:this},this.onMouseLeave);if(this.captureRightClick){this.eventCanvas._elem.bind("mouseup",{plot:this},this.onRightClick);this.eventCanvas._elem.get(0).oncontextmenu=function(){return false}}else this.eventCanvas._elem.bind("mouseup",{plot:this},this.onMouseUp)};this.onClick=function(b){var e=c(b),i=b.data.plot,g=d(e.gridPos,i),h=jQuery.Event("jqplotClick");h.pageX=b.pageX;h.pageY=b.pageY;f(this).trigger(h,[e.gridPos,e.dataPos,g,i])};this.onDblClick=function(b){var e=c(b),i=b.data.plot,g=d(e.gridPos,
i),h=jQuery.Event("jqplotDblClick");h.pageX=b.pageX;h.pageY=b.pageY;f(this).trigger(h,[e.gridPos,e.dataPos,g,i])};this.onMouseDown=function(b){var e=c(b),i=b.data.plot,g=d(e.gridPos,i),h=jQuery.Event("jqplotMouseDown");h.pageX=b.pageX;h.pageY=b.pageY;f(this).trigger(h,[e.gridPos,e.dataPos,g,i])};this.onMouseUp=function(b){var e=c(b),i=jQuery.Event("jqplotMouseUp");i.pageX=b.pageX;i.pageY=b.pageY;f(this).trigger(i,[e.gridPos,e.dataPos,null,b.data.plot])};this.onRightClick=function(b){var e=c(b),i=
b.data.plot,g=d(e.gridPos,i);if(i.captureRightClick){var h=b.which==3?jQuery.Event("jqplotRightClick"):jQuery.Event("jqplotMouseUp");h.pageX=b.pageX;h.pageY=b.pageY;f(this).trigger(h,[e.gridPos,e.dataPos,g,i])}};this.onMouseMove=function(b){var e=c(b),i=b.data.plot,g=d(e.gridPos,i),h=jQuery.Event("jqplotMouseMove");h.pageX=b.pageX;h.pageY=b.pageY;f(this).trigger(h,[e.gridPos,e.dataPos,g,i])};this.onMouseEnter=function(b){var e=c(b),i=b.data.plot,g=jQuery.Event("jqplotMouseEnter");g.pageX=b.pageX;
g.pageY=b.pageY;g.relatedTarget=b.relatedTarget;f(this).trigger(g,[e.gridPos,e.dataPos,null,i])};this.onMouseLeave=function(b){var e=c(b),i=b.data.plot,g=jQuery.Event("jqplotMouseLeave");g.pageX=b.pageX;g.pageY=b.pageY;g.relatedTarget=b.relatedTarget;f(this).trigger(g,[e.gridPos,e.dataPos,null,i])};this.drawSeries=function(b,e){var i,g,h;e=typeof b==="number"&&e==null?b:e;b=typeof b==="object"?b:{};if(e!=D){g=this.series[e];h=g.shadowCanvas._ctx;h.clearRect(0,0,h.canvas.width,h.canvas.height);g.drawShadow(h,
b,this);h=g.canvas._ctx;h.clearRect(0,0,h.canvas.width,h.canvas.height);g.draw(h,b,this);g.renderer.constructor==f.jqplot.BezierCurveRenderer&&e<this.series.length-1&&this.drawSeries(e+1)}else for(i=0;i<this.series.length;i++){g=this.series[i];h=g.shadowCanvas._ctx;h.clearRect(0,0,h.canvas.width,h.canvas.height);g.drawShadow(h,b,this);h=g.canvas._ctx;h.clearRect(0,0,h.canvas.width,h.canvas.height);g.draw(h,b,this)}};this.moveSeriesToFront=function(b){b=parseInt(b,10);var e=f.inArray(b,this.seriesStack);
if(e!=-1)if(e==this.seriesStack.length-1)this.previousSeriesStack=this.seriesStack.slice(0);else{var i=this.seriesStack[this.seriesStack.length-1],g=this.series[b].canvas._elem.detach(),h=this.series[b].shadowCanvas._elem.detach();this.series[i].shadowCanvas._elem.after(h);this.series[i].canvas._elem.after(g);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(e,1);this.seriesStack.push(b)}};this.moveSeriesToBack=function(b){b=parseInt(b,10);var e=f.inArray(b,this.seriesStack);
if(!(e==0||e==-1)){var i=this.seriesStack[0],g=this.series[b].canvas._elem.detach(),h=this.series[b].shadowCanvas._elem.detach();this.series[i].shadowCanvas._elem.before(h);this.series[i].canvas._elem.before(g);this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack.splice(e,1);this.seriesStack.unshift(b)}};this.restorePreviousSeriesOrder=function(){var b,e,i,g;if(this.seriesStack!=this.previousSeriesStack){for(b=1;b<this.previousSeriesStack.length;b++){i=this.previousSeriesStack[b];g=
this.previousSeriesStack[b-1];e=this.series[i].canvas._elem.detach();i=this.series[i].shadowCanvas._elem.detach();this.series[g].shadowCanvas._elem.after(i);this.series[g].canvas._elem.after(e)}b=this.seriesStack.slice(0);this.seriesStack=this.previousSeriesStack.slice(0);this.previousSeriesStack=b}};this.restoreOriginalSeriesOrder=function(){var b,e=[],i;for(b=0;b<this.series.length;b++)e.push(b);if(this.seriesStack!=e){this.previousSeriesStack=this.seriesStack.slice(0);this.seriesStack=e;for(b=
1;b<this.seriesStack.length;b++){e=this.series[b].canvas._elem.detach();i=this.series[b].shadowCanvas._elem.detach();this.series[b-1].shadowCanvas._elem.after(i);this.series[b-1].canvas._elem.after(e)}}};this.activateTheme=function(b){this.themeEngine.activate(this,b)}}function K(a){return(Math.exp(2*a)-1)/(Math.exp(2*a)+1)}function I(a){function c(G,S){return G-S==0?Math.pow(10,10):G-S}var d=this.renderer.smooth,b=this.canvas.getWidth(),e=this._xaxis.series_p2u,i=this._yaxis.series_p2u,g=null;g=
a.length/b;b=[];var h=[];g=isNaN(parseFloat(d))?3.9182054*Math.pow(g,-0.3534992):parseFloat(d);d=[];for(var k=[],j=0,n=a.length;j<n;j++){d.push(a[j][1]);k.push(a[j][0])}for(var l,m,o,t,r=a.length-1,p=1,w=a.length;p<w;p++){t=[];n=[];for(var v=0;v<2;v++){j=p-1+v;t[v]=j==0||j==r?Math.pow(10,10):d[j+1]-d[j]==0||d[j]-d[j-1]==0?0:(k[j+1]-k[j])/(d[j+1]-d[j])+(k[j]-k[j-1])/(d[j]-d[j-1])==0?0:(d[j+1]-d[j])*(d[j]-d[j-1])<0?0:2/(c(k[j+1],k[j])/(d[j+1]-d[j])+c(k[j],k[j-1])/(d[j]-d[j-1]))}if(p==1)t[0]=1.5*(d[1]-
d[0])/c(k[1],k[0])-t[1]/2;else if(p==r)t[1]=1.5*(d[r]-d[r-1])/c(k[r],k[r-1])-t[0]/2;n[0]=-2*(t[1]+2*t[0])/c(k[p],k[p-1])+6*(d[p]-d[p-1])/Math.pow(c(k[p],k[p-1]),2);n[1]=2*(2*t[1]+t[0])/c(k[p],k[p-1])-6*(d[p]-d[p-1])/Math.pow(c(k[p],k[p-1]),2);t=1/6*(n[1]-n[0])/c(k[p],k[p-1]);o=0.5*(k[p]*n[0]-k[p-1]*n[1])/c(k[p],k[p-1]);m=(d[p]-d[p-1]-o*(Math.pow(k[p],2)-Math.pow(k[p-1],2))-t*(Math.pow(k[p],3)-Math.pow(k[p-1],3)))/c(k[p],k[p-1]);l=d[p-1]-m*k[p-1]-o*Math.pow(k[p-1],2)-t*Math.pow(k[p-1],3);var x=(k[p]-
k[p-1])/g,z,L;v=0;for(n=g;v<n;v++){z=[];L=k[p-1]+v*x;z.push(L);z.push(l+m*L+o*Math.pow(L,2)+t*Math.pow(L,3));b.push(z);h.push([e(z[0]),i(z[1])])}}b.push(a[j]);h.push([e(a[j][0]),i(a[j][1])]);return[b,h]}function J(a){var c=this.renderer.smooth,d=this.renderer.tension,b=this.canvas.getWidth(),e=this._xaxis.series_p2u,i=this._yaxis.series_p2u,g=null,h=null,k=h=null,j=h=null;k=null;var n,l,m,o,t,r,p,w;g=a.length/b;b=[];var v=[];g=isNaN(parseFloat(c))?3.9182054*Math.pow(g,-0.3534992):parseFloat(c);isNaN(parseFloat(d))||
(d=parseFloat(d));c=0;for(var x=a.length-1;c<x;c++){if(d===null){h=Math.abs((a[c+1][1]-a[c][1])/(a[c+1][0]-a[c][0]));k=h/2.5+-1.4;h=0.15*K(k)-0.15*K(-1.4)+0.3;if(c>0)j=Math.abs((a[c][1]-a[c-1][1])/(a[c][0]-a[c-1][0]));k=j/2.5+-1.4;k=0.15*K(k)-0.15*K(-1.4)+0.3;h=(h+k)/2}else h=d;for(k=0;k<g;k++){n=k/g;l=(1+2*n)*Math.pow(1-n,2);m=n*Math.pow(1-n,2);o=Math.pow(n,2)*(3-2*n);n=Math.pow(n,2)*(n-1);if(a[c-1]){t=h*(a[c+1][0]-a[c-1][0]);r=h*(a[c+1][1]-a[c-1][1])}else{t=h*(a[c+1][0]-a[c][0]);r=h*(a[c+1][1]-
a[c][1])}if(a[c+2]){p=h*(a[c+2][0]-a[c][0]);w=h*(a[c+2][1]-a[c][1])}else{p=h*(a[c+1][0]-a[c][0]);w=h*(a[c+1][1]-a[c][1])}t=l*a[c][0]+o*a[c+1][0]+m*t+n*p;l=l*a[c][1]+o*a[c+1][1]+m*r+n*w;m=[t,l];b.push(m);v.push([e(t),i(l)])}}b.push(a[x]);v.push([e(a[x][0]),i(a[x][1])]);return[b,v]}function T(){for(var a=0;a<this.series.length;a++)if(this.series[a].renderer.constructor==f.jqplot.LineRenderer)if(this.series[a].highlightMouseOver)this.series[a].highlightMouseDown=false}function U(){if(this.plugins.lineRenderer&&
this.plugins.lineRenderer.highlightCanvas){this.plugins.lineRenderer.highlightCanvas.resetCanvas();this.plugins.lineRenderer.highlightCanvas=null}this.plugins.lineRenderer.highlightedSeriesIndex=null;this.plugins.lineRenderer.highlightCanvas=new f.jqplot.GenericCanvas;this.eventCanvas._elem.before(this.plugins.lineRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-lineRenderer-highlight-canvas",this._plotDimensions,this));this.plugins.lineRenderer.highlightCanvas.setContext();this.eventCanvas._elem.bind("mouseleave",
{plot:this},function(a){Z(a.data.plot)})}function O(a,c,d,b){var e=a.series[c],i=a.plugins.lineRenderer.highlightCanvas;i._ctx.clearRect(0,0,i._ctx.canvas.width,i._ctx.canvas.height);e._highlightedPoint=d;a.plugins.lineRenderer.highlightedSeriesIndex=c;a={fillStyle:e.highlightColor};if(e.type==="line"&&e.renderer.bands.show){a.fill=true;a.closePath=true}e.renderer.shapeRenderer.draw(i._ctx,b,a)}function Z(a){var c=a.plugins.lineRenderer.highlightCanvas;c._ctx.clearRect(0,0,c._ctx.canvas.width,c._ctx.canvas.height);
for(c=0;c<a.series.length;c++)a.series[c]._highlightedPoint=null;a.plugins.lineRenderer.highlightedSeriesIndex=null;a.target.trigger("jqplotDataUnhighlight")}function ka(a,c,d,b,e){if(b){c=[b.seriesIndex,b.pointIndex,b.data];d=jQuery.Event("jqplotDataMouseOver");d.pageX=a.pageX;d.pageY=a.pageY;e.target.trigger(d,c);if(e.series[c[0]].highlightMouseOver&&c[0]!=e.plugins.lineRenderer.highlightedSeriesIndex){d=jQuery.Event("jqplotDataHighlight");d.pageX=a.pageX;d.pageY=a.pageY;e.target.trigger(d,c);O(e,
b.seriesIndex,b.pointIndex,b.points)}}else b==null&&Z(e)}function la(a,c,d,b,e){if(b){c=[b.seriesIndex,b.pointIndex,b.data];if(e.series[c[0]].highlightMouseDown&&c[0]!=e.plugins.lineRenderer.highlightedSeriesIndex){d=jQuery.Event("jqplotDataHighlight");d.pageX=a.pageX;d.pageY=a.pageY;e.target.trigger(d,c);O(e,b.seriesIndex,b.pointIndex,b.points)}}else b==null&&Z(e)}function ma(a,c,d,b,e){a=e.plugins.lineRenderer.highlightedSeriesIndex;a!=null&&e.series[a].highlightMouseDown&&Z(e)}function na(a,c,
d,b,e){if(b){c=[b.seriesIndex,b.pointIndex,b.data];d=jQuery.Event("jqplotDataClick");d.pageX=a.pageX;d.pageY=a.pageY;e.target.trigger(d,c)}}function oa(a,c,d,b,e){if(b){c=[b.seriesIndex,b.pointIndex,b.data];d=e.plugins.lineRenderer.highlightedSeriesIndex;d!=null&&e.series[d].highlightMouseDown&&Z(e);d=jQuery.Event("jqplotDataRightClick");d.pageX=a.pageX;d.pageY=a.pageY;e.target.trigger(d,c)}}function da(a){a=Math.abs(a);return a>=10?"%d":a>1?a===parseInt(a,10)?"%d":"%.1f":"%."+-Math.floor(Math.log(a)/
Math.LN10)+"f"}function ga(a,c){c=c||7;var d=a/(c-1),b=Math.pow(10,Math.floor(Math.log(d)/Math.LN10));d=d/b;return b<1?d>5?10*b:d>2?5*b:d>1?2*b:b:d>5?10*b:d>4?5*b:d>3?4*b:d>2?3*b:d>1?2*b:b}function ha(a,c){c=c||1;var d=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),b=a/d;b/=c;return(b<=0.38?0.1:b<=1.6?0.2:b<=4?0.5:b<=8?1:b<=16?2:5)*d}function ia(a,c){return a-c}function ba(a){if(a==null||typeof a!="object")return a;var c=new a.constructor,d;for(d in a)c[d]=ba(a[d]);return c}function ca(a,c){if(!(c==
null||typeof c!="object"))for(var d in c){if(d=="highlightColors")a[d]=ba(c[d]);if(c[d]!=null&&typeof c[d]=="object"){a.hasOwnProperty(d)||(a[d]={});ca(a[d],c[d])}else a[d]=c[d]}}function ja(a,c){if(c.indexOf)return c.indexOf(a);for(var d=0,b=c.length;d<b;d++)if(c[d]===a)return d;return-1}function ea(a){if(a===null)return"[object Null]";return Object.prototype.toString.call(a)}var D;f.fn.emptyForce=function(){for(var a=0,c;(c=f(this)[a])!=null;a++){c.nodeType===1&&jQuery.cleanData(c.getElementsByTagName("*"));
if(f.jqplot_use_excanvas)c.outerHTML="";else for(;c.firstChild;)c.removeChild(c.firstChild)}return f(this)};f.fn.removeChildForce=function(a){for(;a.firstChild;){this.removeChildForce(a.firstChild);a.removeChild(a.firstChild)}};f.jqplot=function(a,c,d){var b,e;if(d==null)if(jQuery.isArray(c)){b=c;e=null}else{if(typeof c==="object"){b=null;e=c}}else{b=c;e=d}c=new F;f("#"+a).removeClass("jqplot-error");if(f.jqplot.config.catchErrors)try{c.init(a,b,e);c.draw();c.themeEngine.init.call(c);return c}catch(i){b=
f.jqplot.config.errorMessage||i.message;f("#"+a).append('<div class="jqplot-error-message">'+b+"</div>");f("#"+a).addClass("jqplot-error");document.getElementById(a).style.background=f.jqplot.config.errorBackground;document.getElementById(a).style.border=f.jqplot.config.errorBorder;document.getElementById(a).style.fontFamily=f.jqplot.config.errorFontFamily;document.getElementById(a).style.fontSize=f.jqplot.config.errorFontSize;document.getElementById(a).style.fontStyle=f.jqplot.config.errorFontStyle;
document.getElementById(a).style.fontWeight=f.jqplot.config.errorFontWeight}else{c.init(a,b,e);c.draw();c.themeEngine.init.call(c);return c}};f.jqplot.version="1.0.0b2_r1012";f.jqplot.CanvasManager=function(){if(typeof f.jqplot.CanvasManager.canvases=="undefined"){f.jqplot.CanvasManager.canvases=[];f.jqplot.CanvasManager.free=[]}var a=[];this.getCanvas=function(){var c,d=true;if(!f.jqplot.use_excanvas)for(var b=0,e=f.jqplot.CanvasManager.canvases.length;b<e;b++)if(f.jqplot.CanvasManager.free[b]===
true){d=false;c=f.jqplot.CanvasManager.canvases[b];f.jqplot.CanvasManager.free[b]=false;a.push(b);break}if(d){c=document.createElement("canvas");a.push(f.jqplot.CanvasManager.canvases.length);f.jqplot.CanvasManager.canvases.push(c);f.jqplot.CanvasManager.free.push(false)}return c};this.initCanvas=function(c){if(f.jqplot.use_excanvas)return window.G_vmlCanvasManager.initElement(c);return c};this.freeAllCanvases=function(){for(var c=0,d=a.length;c<d;c++)this.freeCanvas(a[c]);a=[]};this.freeCanvas=function(c){if(f.jqplot.use_excanvas&&
window.G_vmlCanvasManager.uninitElement!==D){window.G_vmlCanvasManager.uninitElement(f.jqplot.CanvasManager.canvases[c]);f.jqplot.CanvasManager.canvases[c]=null}else{var d=f.jqplot.CanvasManager.canvases[c];d.getContext("2d").clearRect(0,0,d.width,d.height);f(d).unbind().removeAttr("class").removeAttr("style");f(d).css({left:"",top:"",position:""});d.width=0;d.height=0;f.jqplot.CanvasManager.free[c]=true}}};f.jqplot.log=function(){window.console&&window.console.log.apply(window.console,arguments)};
f.jqplot.config={addDomReference:false,enablePlugins:false,defaultHeight:300,defaultWidth:400,UTCAdjust:false,timezoneOffset:new Date((new Date).getTimezoneOffset()*6E4),errorMessage:"",errorBackground:"",errorBorder:"",errorFontFamily:"",errorFontSize:"",errorFontStyle:"",errorFontWeight:"",catchErrors:false,defaultTickFormatString:"%.1f",defaultColors:["#4bb2c5","#EAA228","#c5b47f","#579575","#839557","#958c12","#953579","#4b5de4","#d8b83f","#ff5800","#0085cc","#c747a3","#cddf54","#FBD178","#26B4E3",
"#bd70c7"],defaultNegativeColors:["#498991","#C08840","#9F9274","#546D61","#646C4A","#6F6621","#6E3F5F","#4F64B0","#A89050","#C45923","#187399","#945381","#959E5C","#C7AF7B","#478396","#907294"],dashLength:4,gapLength:4,dotGapLength:2.5,srcLocation:"jqplot/src/",pluginLocation:"jqplot/src/plugins/"};f.jqplot.arrayMax=function(a){return Math.max.apply(Math,a)};f.jqplot.arrayMin=function(a){return Math.min.apply(Math,a)};f.jqplot.enablePlugins=f.jqplot.config.enablePlugins;f.jqplot.support_canvas=function(){if(typeof f.jqplot.support_canvas.result==
"undefined")f.jqplot.support_canvas.result=!!document.createElement("canvas").getContext;return f.jqplot.support_canvas.result};f.jqplot.support_canvas_text=function(){if(typeof f.jqplot.support_canvas_text.result=="undefined")f.jqplot.support_canvas_text.result=window.G_vmlCanvasManager!==D&&window.G_vmlCanvasManager._version>887?true:!!(document.createElement("canvas").getContext&&typeof document.createElement("canvas").getContext("2d").fillText=="function");return f.jqplot.support_canvas_text.result};
f.jqplot.use_excanvas=f.browser.msie&&!f.jqplot.support_canvas()?true:false;f.jqplot.preInitHooks=[];f.jqplot.postInitHooks=[];f.jqplot.preParseOptionsHooks=[];f.jqplot.postParseOptionsHooks=[];f.jqplot.preDrawHooks=[];f.jqplot.postDrawHooks=[];f.jqplot.preDrawSeriesHooks=[];f.jqplot.postDrawSeriesHooks=[];f.jqplot.preDrawLegendHooks=[];f.jqplot.addLegendRowHooks=[];f.jqplot.preSeriesInitHooks=[];f.jqplot.postSeriesInitHooks=[];f.jqplot.preParseSeriesOptionsHooks=[];f.jqplot.postParseSeriesOptionsHooks=
[];f.jqplot.eventListenerHooks=[];f.jqplot.preDrawSeriesShadowHooks=[];f.jqplot.postDrawSeriesShadowHooks=[];f.jqplot.ElemContainer=function(){this._plotDimensions={height:null,width:null}};f.jqplot.ElemContainer.prototype.createElement=function(a,c,d,b,e){this._offsets=c;c=d||"jqplot";a=document.createElement(a);this._elem=f(a);this._elem.addClass(c);this._elem.css(b);this._elem.attr(e);return this._elem};f.jqplot.ElemContainer.prototype.getWidth=function(){return this._elem?this._elem.outerWidth(true):
null};f.jqplot.ElemContainer.prototype.getHeight=function(){return this._elem?this._elem.outerHeight(true):null};f.jqplot.ElemContainer.prototype.getPosition=function(){return this._elem?this._elem.position():{top:null,left:null,bottom:null,right:null}};f.jqplot.ElemContainer.prototype.getTop=function(){return this.getPosition().top};f.jqplot.ElemContainer.prototype.getLeft=function(){return this.getPosition().left};f.jqplot.ElemContainer.prototype.getBottom=function(){return this._elem.css("bottom")};
f.jqplot.ElemContainer.prototype.getRight=function(){return this._elem.css("right")};s.prototype=new f.jqplot.ElemContainer;s.prototype.constructor=s;s.prototype.init=function(){this.renderer=new this.renderer;this.tickOptions.axis=this.name;if(this.tickOptions.showMark==null)this.tickOptions.showMark=this.showTicks;if(this.tickOptions.showMark==null)this.tickOptions.showMark=this.showTickMarks;if(this.tickOptions.showLabel==null)this.tickOptions.showLabel=this.showTicks;if(this.label==null||this.label==
"")this.showLabel=false;else this.labelOptions.label=this.label;if(this.showLabel==false)this.labelOptions.show=false;if(this.pad==0)this.pad=1;if(this.padMax==0)this.padMax=1;if(this.padMin==0)this.padMin=1;if(this.padMax==null)this.padMax=(this.pad-1)/2+1;if(this.padMin==null)this.padMin=(this.pad-1)/2+1;this.pad=this.padMax+this.padMin-1;if(this.min!=null||this.max!=null)this.autoscale=false;if(this.syncTicks==null&&this.name.indexOf("y")>-1)this.syncTicks=true;else if(this.syncTicks==null)this.syncTicks=
false;this.renderer.init.call(this,this.rendererOptions)};s.prototype.draw=function(a,c){if(this.__ticks)this.__ticks=null;return this.renderer.draw.call(this,a,c)};s.prototype.set=function(){this.renderer.set.call(this)};s.prototype.pack=function(a,c){this.show&&this.renderer.pack.call(this,a,c);if(this._min==null){this._min=this.min;this._max=this.max;this._tickInterval=this.tickInterval;this._numberTicks=this.numberTicks;this.__ticks=this._ticks}};s.prototype.reset=function(){this.renderer.reset.call(this)};
s.prototype.resetScale=function(a){f.extend(true,this,{min:null,max:null,numberTicks:null,tickInterval:null,_ticks:[],ticks:[]},a);this.resetDataBounds()};s.prototype.resetDataBounds=function(){var a=this._dataBounds;a.min=null;a.max=null;for(var c,d,b,e=this.show?true:false,i=0;i<this._series.length;i++){d=this._series[i];if(d.show){b=d._plotData;if(d._type==="line"&&d.renderer.bands.show&&this.name.charAt(0)!=="x")b=[[0,d.renderer.bands._min],[1,d.renderer.bands._max]];var g=1,h=1;if(d._type!=null&&
d._type=="ohlc"){g=3;h=2}var k=0;for(c=b.length;k<c;k++)if(this.name=="xaxis"||this.name=="x2axis"){if(b[k][0]!=null&&b[k][0]<a.min||a.min==null)a.min=b[k][0];if(b[k][0]!=null&&b[k][0]>a.max||a.max==null)a.max=b[k][0]}else{if(b[k][g]!=null&&b[k][g]<a.min||a.min==null)a.min=b[k][g];if(b[k][h]!=null&&b[k][h]>a.max||a.max==null)a.max=b[k][h]}if(e&&d.renderer.constructor!==f.jqplot.BarRenderer)e=false;else if(e&&this._options.hasOwnProperty("forceTickAt0")&&this._options.forceTickAt0==false)e=false;else if(e&&
d.renderer.constructor===f.jqplot.BarRenderer)if(d.barDirection=="vertical"&&this.name!="xaxis"&&this.name!="x2axis"){if(this._options.pad!=null||this._options.padMin!=null)e=false}else if(d.barDirection=="horizontal"&&(this.name=="xaxis"||this.name=="x2axis"))if(this._options.pad!=null||this._options.padMin!=null)e=false}}if(e&&this.renderer.constructor===f.jqplot.LinearAxisRenderer&&a.min>=0){this.padMin=1;this.forceTickAt0=true}};u.prototype=new f.jqplot.ElemContainer;u.prototype.constructor=u;
u.prototype.setOptions=function(a){f.extend(true,this,a);if(this.placement=="inside")this.placement="insideGrid";if(this.xoffset>0){if(this.placement=="insideGrid")switch(this.location){case "nw":case "w":case "sw":if(this.marginLeft==null)this.marginLeft=this.xoffset+"px";this.marginRight="0px";break;default:if(this.marginRight==null)this.marginRight=this.xoffset+"px";this.marginLeft="0px"}else if(this.placement=="outside")switch(this.location){case "nw":case "w":case "sw":if(this.marginRight==null)this.marginRight=
this.xoffset+"px";this.marginLeft="0px";break;default:if(this.marginLeft==null)this.marginLeft=this.xoffset+"px";this.marginRight="0px"}this.xoffset=0}if(this.yoffset>0){if(this.placement=="outside")switch(this.location){case "sw":case "s":case "se":if(this.marginTop==null)this.marginTop=this.yoffset+"px";this.marginBottom="0px";break;default:if(this.marginBottom==null)this.marginBottom=this.yoffset+"px";this.marginTop="0px"}else if(this.placement=="insideGrid")switch(this.location){case "sw":case "s":case "se":if(this.marginBottom==
null)this.marginBottom=this.yoffset+"px";this.marginTop="0px";break;default:if(this.marginTop==null)this.marginTop=this.yoffset+"px";this.marginBottom="0px"}this.yoffset=0}};u.prototype.init=function(){this.renderer=new this.renderer;this.renderer.init.call(this,this.rendererOptions)};u.prototype.draw=function(a){for(var c=0;c<f.jqplot.preDrawLegendHooks.length;c++)f.jqplot.preDrawLegendHooks[c].call(this,a);return this.renderer.draw.call(this,a)};u.prototype.pack=function(a){this.renderer.pack.call(this,
a)};A.prototype=new f.jqplot.ElemContainer;A.prototype.constructor=A;A.prototype.init=function(){this.renderer=new this.renderer;this.renderer.init.call(this,this.rendererOptions)};A.prototype.draw=function(a){return this.renderer.draw.call(this,a)};A.prototype.pack=function(){this.renderer.pack.call(this)};B.prototype=new f.jqplot.ElemContainer;B.prototype.constructor=B;B.prototype.init=function(a,c,d){this.index=a;this.gridBorderWidth=c;a=this.data;c=[];var b;for(b=0;b<a.length;b++)if(this.breakOnNull)c.push(a[b]);
else a[b]==null||a[b][0]==null||a[b][1]==null||c.push(a[b]);this.data=c;if(!this.color&&this.show)this.color=d.colorGenerator.get(this.index);if(!this.negativeColor&&this.show)this.negativeColor=d.negativeColorGenerator.get(this.index);if(!this.fillColor)this.fillColor=this.color;if(this.fillAlpha){a=f.jqplot.normalize2rgb(this.fillColor);a=f.jqplot.getColorComponents(a);this.fillColor="rgba("+a[0]+","+a[1]+","+a[2]+","+this.fillAlpha+")"}this.renderer=new this.renderer;this.renderer.init.call(this,
this.rendererOptions,d);this.markerRenderer=new this.markerRenderer;if(!this.markerOptions.color)this.markerOptions.color=this.color;if(this.markerOptions.show==null)this.markerOptions.show=this.showMarker;this.showMarker=this.markerOptions.show;this.markerRenderer.init(this.markerOptions)};B.prototype.draw=function(a,c,d){c=c==D?{}:c;a=a==D?this.canvas._ctx:a;var b;for(b=0;b<f.jqplot.preDrawSeriesHooks.length;b++)f.jqplot.preDrawSeriesHooks[b].call(this,a,c);if(this.show){this.renderer.setGridData.call(this,
d);c.preventJqPlotSeriesDrawTrigger||f(a.canvas).trigger("jqplotSeriesDraw",[this.data,this.gridData]);b=c.data?c.data:this._stack?this._plotData:this.data;b=c.gridData||this.renderer.makeGridData.call(this,b,d);if(this._type==="line"&&this.renderer.smooth&&this.renderer._smoothedData.length)b=this.renderer._smoothedData;this.renderer.draw.call(this,a,b,c,d)}for(b=0;b<f.jqplot.postDrawSeriesHooks.length;b++)f.jqplot.postDrawSeriesHooks[b].call(this,a,c,d)};B.prototype.drawShadow=function(a,c,d){c=
c==D?{}:c;a=a==D?this.shadowCanvas._ctx:a;var b;for(b=0;b<f.jqplot.preDrawSeriesShadowHooks.length;b++)f.jqplot.preDrawSeriesShadowHooks[b].call(this,a,c);if(this.shadow){this.renderer.setGridData.call(this,d);b=c.data?c.data:this._stack?this._plotData:this.data;d=c.gridData||this.renderer.makeGridData.call(this,b,d);this.renderer.drawShadow.call(this,a,d,c)}for(b=0;b<f.jqplot.postDrawSeriesShadowHooks.length;b++)f.jqplot.postDrawSeriesShadowHooks[b].call(this,a,c)};B.prototype.toggleDisplay=function(a){var c,
d;c=a.data.series?a.data.series:this;if(a.data.speed)d=a.data.speed;if(d)if(c.canvas._elem.is(":hidden")){c.canvas._elem.removeClass("jqplot-series-hidden");c.shadowCanvas._elem&&c.shadowCanvas._elem.fadeIn(d);c.canvas._elem.fadeIn(d);c.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+c.index).fadeIn(d)}else{c.canvas._elem.addClass("jqplot-series-hidden");c.shadowCanvas._elem&&c.shadowCanvas._elem.fadeOut(d);c.canvas._elem.fadeOut(d);c.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+
c.index).fadeOut(d)}else if(c.canvas._elem.is(":hidden")){c.canvas._elem.removeClass("jqplot-series-hidden");c.shadowCanvas._elem&&c.shadowCanvas._elem.show();c.canvas._elem.show();c.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+c.index).show()}else{c.canvas._elem.addClass("jqplot-series-hidden");c.shadowCanvas._elem&&c.shadowCanvas._elem.hide();c.canvas._elem.hide();c.canvas._elem.nextAll(".jqplot-point-label.jqplot-series-"+c.index).hide()}};E.prototype=new f.jqplot.ElemContainer;E.prototype.constructor=
E;E.prototype.init=function(){this.renderer=new this.renderer;this.renderer.init.call(this,this.rendererOptions)};E.prototype.createElement=function(a,c){this._offsets=a;return this.renderer.createElement.call(this,c)};E.prototype.draw=function(){this.renderer.draw.call(this)};f.jqplot.GenericCanvas=function(){f.jqplot.ElemContainer.call(this)};f.jqplot.GenericCanvas.prototype=new f.jqplot.ElemContainer;f.jqplot.GenericCanvas.prototype.constructor=f.jqplot.GenericCanvas;f.jqplot.GenericCanvas.prototype.createElement=
function(a,c,d,b){this._offsets=a;a="jqplot";if(c!=D)a=c;c=b.canvasManager.getCanvas();if(d!=null)this._plotDimensions=d;c.width=this._plotDimensions.width-this._offsets.left-this._offsets.right;c.height=this._plotDimensions.height-this._offsets.top-this._offsets.bottom;this._elem=f(c);this._elem.css({position:"absolute",left:this._offsets.left,top:this._offsets.top});this._elem.addClass(a);b.canvasManager.initCanvas(c);return this._elem};f.jqplot.GenericCanvas.prototype.setContext=function(){return this._ctx=
this._elem.get(0).getContext("2d")};f.jqplot.GenericCanvas.prototype.resetCanvas=function(){if(this._elem){f.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==D&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0));this._elem.emptyForce()}this._ctx=null};f.jqplot.HooksManager=function(){this.hooks=[];this.args=[]};f.jqplot.HooksManager.prototype.addOnce=function(a,c){c=c||[];for(var d=false,b=0,e=this.hooks.length;b<e;b++)if(this.hooks[b][0]==a)d=true;if(!d){this.hooks.push(a);
this.args.push(c)}};f.jqplot.HooksManager.prototype.add=function(a,c){c=c||[];this.hooks.push(a);this.args.push(c)};f.jqplot.EventListenerManager=function(){this.hooks=[]};f.jqplot.EventListenerManager.prototype.addOnce=function(a,c){var d=false,b,e;e=0;for(var i=this.hooks.length;e<i;e++){b=this.hooks[e];if(b[0]==a&&b[1]==c)d=true}d||this.hooks.push([a,c])};f.jqplot.EventListenerManager.prototype.add=function(a,c){this.hooks.push([a,c])};var Y=["yMidAxis","xaxis","yaxis","x2axis","y2axis","y3axis",
"y4axis","y5axis","y6axis","y7axis","y8axis","y9axis"];f.jqplot.computeHighlightColors=function(a){var c;if(jQuery.isArray(a)){c=[];for(var d=0;d<a.length;d++){for(var b=f.jqplot.getColorComponents(a[d]),e=[b[0],b[1],b[2]],i=e[0]+e[1]+e[2],g=0;g<3;g++){e[g]=i>660?e[g]*0.85:0.73*e[g]+90;e[g]=parseInt(e[g],10)}e[3]=0.3+0.35*b[3];c.push("rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")")}}else{b=f.jqplot.getColorComponents(a);e=[b[0],b[1],b[2]];i=e[0]+e[1]+e[2];for(g=0;g<3;g++){e[g]=i>660?e[g]*0.85:0.73*e[g]+
90;e[g]=parseInt(e[g],10)}e[3]=0.3+0.35*b[3];c="rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"}return c};f.jqplot.ColorGenerator=function(a){a=a||f.jqplot.config.defaultColors;var c=0;this.next=function(){c<a.length||(c=0);return a[c++]};this.previous=function(){if(c>0)return a[c--];else{c=a.length-1;return a[c]}};this.get=function(d){return a[d-a.length*Math.floor(d/a.length)]};this.setColors=function(d){a=d};this.reset=function(){c=0};this.getIndex=function(){return c};this.setIndex=function(d){c=d}};
f.jqplot.hex2rgb=function(a,c){a=a.replace("#","");if(a.length==3)a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2);var d;d="rgba("+parseInt(a.slice(0,2),16)+", "+parseInt(a.slice(2,4),16)+", "+parseInt(a.slice(4,6),16);if(c)d+=", "+c;d+=")";return d};f.jqplot.rgb2hex=function(a){a=a.match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *(?:, *[0-9.]*)?\)/);for(var c="#",d=1;d<4;d++){var b;b=a[d].search(/%/)!=-1?parseInt(255*a[d]/100,
10).toString(16):parseInt(a[d],10).toString(16);if(b.length==1)b="0"+b;c+=b}return c};f.jqplot.normalize2rgb=function(a,c){if(a.search(/^ *rgba?\(/)!=-1)return a;else if(a.search(/^ *#?[0-9a-fA-F]?[0-9a-fA-F]/)!=-1)return f.jqplot.hex2rgb(a,c);else throw"invalid color spec";};f.jqplot.getColorComponents=function(a){a=f.jqplot.colorKeywordMap[a]||a;a=f.jqplot.normalize2rgb(a).match(/rgba?\( *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *, *([0-9]{1,3}\.?[0-9]*%?) *,? *([0-9.]* *)?\)/);for(var c=
[],d=1;d<4;d++)c[d-1]=a[d].search(/%/)!=-1?parseInt(255*a[d]/100,10):parseInt(a[d],10);c[3]=parseFloat(a[4])?parseFloat(a[4]):1;return c};f.jqplot.colorKeywordMap={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb( 0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb( 0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb( 0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",
burlywood:"rgb(222, 184, 135)",cadetblue:"rgb( 95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(220, 20, 60)",cyan:"rgb( 0, 255, 255)",darkblue:"rgb( 0, 0, 139)",darkcyan:"rgb( 0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgreen:"rgb( 0, 100, 0)",darkgrey:"rgb(169, 169, 169)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",
darkolivegreen:"rgb( 85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb( 72, 61, 139)",darkslategray:"rgb( 47, 79, 79)",darkslategrey:"rgb( 47, 79, 79)",darkturquoise:"rgb( 0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb( 0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb( 30, 144, 255)",
firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb( 34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb( 0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb( 75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",
lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgray:"rgb(211, 211, 211)",lightgreen:"rgb(144, 238, 144)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb( 32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",
lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb( 0, 255, 0)",limegreen:"rgb( 50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb( 0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb( 60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb( 0, 250, 154)",mediumturquoise:"rgb( 72, 209, 204)",
mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb( 25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb( 0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",
papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb( 65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb( 46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",
slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb( 0, 255, 127)",steelblue:"rgb( 70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb( 0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb( 64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)"};f.jqplot.AxisLabelRenderer=
function(a){f.jqplot.ElemContainer.call(this);this.show=true;this.label="";this.textColor=this.fontSize=this.fontFamily=null;this.escapeHTML=false;f.extend(true,this,a)};f.jqplot.AxisLabelRenderer.prototype=new f.jqplot.ElemContainer;f.jqplot.AxisLabelRenderer.prototype.constructor=f.jqplot.AxisLabelRenderer;f.jqplot.AxisLabelRenderer.prototype.init=function(a){f.extend(true,this,a)};f.jqplot.AxisLabelRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=
f('<div style="position:absolute;" class="jqplot-'+this.axis+'-label"></div>');Number(this.label)&&this._elem.css("white-space","nowrap");this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label);this.fontFamily&&this._elem.css("font-family",this.fontFamily);this.fontSize&&this._elem.css("font-size",this.fontSize);this.textColor&&this._elem.css("color",this.textColor);return this._elem};f.jqplot.AxisLabelRenderer.prototype.pack=function(){};f.jqplot.AxisTickRenderer=function(a){f.jqplot.ElemContainer.call(this);
this.mark="outside";this.showGridline=this.showMark=true;this.isMinorTick=false;this.size=4;this.markSize=6;this.showLabel=this.show=true;this.value=this.label=null;this._styles={};this.formatter=f.jqplot.DefaultTickFormatter;this.formatString=this.prefix="";this._breakTick=this.escapeHTML=false;f.extend(true,this,a)};f.jqplot.AxisTickRenderer.prototype.init=function(a){f.extend(true,this,a)};f.jqplot.AxisTickRenderer.prototype=new f.jqplot.ElemContainer;f.jqplot.AxisTickRenderer.prototype.constructor=
f.jqplot.AxisTickRenderer;f.jqplot.AxisTickRenderer.prototype.setTick=function(a,c,d){this.value=a;this.axis=c;if(d)this.isMinorTick=true;return this};f.jqplot.AxisTickRenderer.prototype.draw=function(){if(this.label===null)this.label=this.prefix+this.formatter(this.formatString,this.value);var a={position:"absolute"};if(Number(this.label))a.whitSpace="nowrap";if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=f(document.createElement("div"));this._elem.addClass("jqplot-"+this.axis+
"-tick");this.escapeHTML?this._elem.text(this.label):this._elem.html(this.label);this._elem.css(a);for(var c in this._styles)this._elem.css(c,this._styles[c]);this.fontFamily&&this._elem.css("font-family",this.fontFamily);this.fontSize&&this._elem.css("font-size",this.fontSize);this.textColor&&this._elem.css("color",this.textColor);this._breakTick&&this._elem.addClass("jqplot-breakTick");return this._elem};f.jqplot.DefaultTickFormatter=function(a,c){if(typeof c=="number"){if(!a)a=f.jqplot.config.defaultTickFormatString;
return f.jqplot.sprintf(a,c)}else return String(c)};f.jqplot.AxisTickRenderer.prototype.pack=function(){};f.jqplot.CanvasGridRenderer=function(){this.shadowRenderer=new f.jqplot.ShadowRenderer};f.jqplot.CanvasGridRenderer.prototype.init=function(a){f.extend(true,this,a);this.renderer.shadowRenderer.init({lineJoin:"miter",lineCap:"round",fill:false,isarc:false,angle:this.shadowAngle,offset:this.shadowOffset,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.shadowWidth,closePath:false,strokeStyle:this.shadowColor})};
f.jqplot.CanvasGridRenderer.prototype.createElement=function(a){var c;if(this._elem){if(f.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==D){c=this._elem.get(0);window.G_vmlCanvasManager.uninitElement(c)}this._elem.emptyForce();this._elem=null}c=a.canvasManager.getCanvas();var d=this._plotDimensions.width,b=this._plotDimensions.height;c.width=d;c.height=b;this._elem=f(c);this._elem.addClass("jqplot-grid-canvas");this._elem.css({position:"absolute",left:0,top:0});a.canvasManager.initCanvas(c);
this._top=this._offsets.top;this._bottom=b-this._offsets.bottom;this._left=this._offsets.left;this._right=d-this._offsets.right;this._width=this._right-this._left;this._height=this._bottom-this._top;return this._elem};f.jqplot.CanvasGridRenderer.prototype.draw=function(){function a(o,t,r,p,w){c.save();w=w||{};if(w.lineWidth==null||w.lineWidth!=0){f.extend(true,c,w);c.beginPath();c.moveTo(o,t);c.lineTo(r,p);c.stroke();c.restore()}}var c=this._ctx=this._elem.get(0).getContext("2d"),d=this._axes;c.save();
c.clearRect(0,0,this._plotDimensions.width,this._plotDimensions.height);c.fillStyle=this.backgroundColor||this.background;c.fillRect(this._left,this._top,this._width,this._height);c.save();c.lineJoin="miter";c.lineCap="butt";c.lineWidth=this.gridLineWidth;c.strokeStyle=this.gridLineColor;for(var b,e,i=["xaxis","yaxis","x2axis","y2axis"],g=4;g>0;g--){var h=i[g-1],k=d[h],j=k._ticks,n=j.length;if(k.show){if(k.drawBaseline){var l={};if(k.baselineWidth!==null)l.lineWidth=k.baselineWidth;if(k.baselineColor!==
null)l.strokeStyle=k.baselineColor;switch(h){case "xaxis":a(this._left,this._bottom,this._right,this._bottom,l);break;case "yaxis":a(this._left,this._bottom,this._left,this._top,l);break;case "x2axis":a(this._left,this._bottom,this._right,this._bottom,l);break;case "y2axis":a(this._right,this._bottom,this._right,this._top,l)}}for(n=n;n>0;n--){var m=j[n-1];if(m.show){l=Math.round(k.u2p(m.value))+0.5;switch(h){case "xaxis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||
m.isMinorTick&&k.drawMinorGridlines))a(l,this._top,l,this._bottom);if(m.showMark&&m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){e=m.markSize;b=m.mark;l=Math.round(k.u2p(m.value))+0.5;switch(b){case "outside":b=this._bottom;e=this._bottom+e;break;case "inside":b=this._bottom-e;e=this._bottom;break;case "cross":b=this._bottom-e;e=this._bottom+e;break;default:b=this._bottom;e=this._bottom+e}this.shadow&&this.renderer.shadowRenderer.draw(c,[[l,b],[l,e]],{lineCap:"butt",
lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false});a(l,b,l,e)}break;case "yaxis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||m.isMinorTick&&k.drawMinorGridlines))a(this._right,l,this._left,l);if(m.showMark&&m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){e=m.markSize;b=m.mark;l=Math.round(k.u2p(m.value))+0.5;switch(b){case "outside":b=this._left-e;e=this._left;break;case "inside":b=
this._left;e=this._left+e;break;case "cross":b=this._left-e;e=this._left+e;break;default:b=this._left-e;e=this._left}this.shadow&&this.renderer.shadowRenderer.draw(c,[[b,l],[e,l]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false});a(b,l,e,l,{strokeStyle:k.borderColor})}break;case "x2axis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||m.isMinorTick&&k.drawMinorGridlines))a(l,this._bottom,l,this._top);if(m.showMark&&
m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){e=m.markSize;b=m.mark;l=Math.round(k.u2p(m.value))+0.5;switch(b){case "outside":b=this._top-e;e=this._top;break;case "inside":b=this._top;e=this._top+e;break;case "cross":b=this._top-e;e=this._top+e;break;default:b=this._top-e;e=this._top}this.shadow&&this.renderer.shadowRenderer.draw(c,[[l,b],[l,e]],{lineCap:"butt",lineWidth:this.gridLineWidth,offset:this.gridLineWidth*0.75,depth:2,fill:false,closePath:false});a(l,
b,l,e)}break;case "y2axis":if(m.showGridline&&this.drawGridlines&&(!m.isMinorTick&&k.drawMajorGridlines||m.isMinorTick&&k.drawMinorGridlines))a(this._left,l,this._right,l);if(m.showMark&&m.mark&&(!m.isMinorTick&&k.drawMajorTickMarks||m.isMinorTick&&k.drawMinorTickMarks)){e=m.markSize;b=m.mark;l=Math.round(k.u2p(m.value))+0.5;switch(b){case "outside":b=this._right;e=this._right+e;break;case "inside":b=this._right-e;e=this._right;break;case "cross":b=this._right-e;e=this._right+e;break;default:b=this._right;
e=this._right+e}this.shadow&&this.renderer.shadowRenderer.draw(c,[[b,l],[e,l]],{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*0.75,fill:false,closePath:false});a(b,l,e,l,{strokeStyle:k.borderColor})}}}}m=null}j=k=null}i=["y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"];for(g=7;g>0;g--){k=d[i[g-1]];j=k._ticks;if(k.show){n=j[k.numberTicks-1];l=j[0];h=k.getLeft();m=[[h,n.getTop()+n.getHeight()/2],[h,l.getTop()+l.getHeight()/2+1]];this.shadow&&this.renderer.shadowRenderer.draw(c,
m,{lineCap:"butt",fill:false,closePath:false});a(m[0][0],m[0][1],m[1][0],m[1][1],{lineCap:"butt",strokeStyle:k.borderColor,lineWidth:k.borderWidth});for(n=j.length;n>0;n--){m=j[n-1];e=m.markSize;b=m.mark;l=Math.round(k.u2p(m.value))+0.5;if(m.showMark&&m.mark){switch(b){case "outside":b=h;e=h+e;break;case "inside":b=h-e;e=h;break;case "cross":b=h-e;e=h+e;break;default:b=h;e=h+e}m=[[b,l],[e,l]];this.shadow&&this.renderer.shadowRenderer.draw(c,m,{lineCap:"butt",lineWidth:this.gridLineWidth*1.5,offset:this.gridLineWidth*
0.75,fill:false,closePath:false});a(b,l,e,l,{strokeStyle:k.borderColor})}m=null}l=null}j=k=null}c.restore();if(this.shadow){m=[[this._left,this._bottom],[this._right,this._bottom],[this._right,this._top]];this.renderer.shadowRenderer.draw(c,m)}if(this.borderWidth!=0&&this.drawBorder){a(this._left,this._top,this._right,this._top,{lineCap:"round",strokeStyle:d.x2axis.borderColor,lineWidth:d.x2axis.borderWidth});a(this._right,this._top,this._right,this._bottom,{lineCap:"round",strokeStyle:d.y2axis.borderColor,
lineWidth:d.y2axis.borderWidth});a(this._right,this._bottom,this._left,this._bottom,{lineCap:"round",strokeStyle:d.xaxis.borderColor,lineWidth:d.xaxis.borderWidth});a(this._left,this._bottom,this._left,this._top,{lineCap:"round",strokeStyle:d.yaxis.borderColor,lineWidth:d.yaxis.borderWidth})}c.restore();d=c=null};f.jqplot.DivTitleRenderer=function(){};f.jqplot.DivTitleRenderer.prototype.init=function(a){f.extend(true,this,a)};f.jqplot.DivTitleRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();
this._elem=null}var a=document.createElement("div");this._elem=f(a);this._elem.addClass("jqplot-title");if(this.text){if(this.text){var c;if(this.color)c=this.color;else if(this.textColor)c=this.textColor;a={position:"absolute",top:"0px",left:"0px"};if(this._plotWidth)a.width=this._plotWidth+"px";if(this.fontSize)a.fontSize=this.fontSize;a.textAlign=typeof this.textAlign==="string"?this.textAlign:"center";if(c)a.color=c;if(this.paddingBottom)a.paddingBottom=this.paddingBottom;if(this.fontFamily)a.fontFamily=
this.fontFamily;this._elem.css(a);this.escapeHtml?this._elem.text(this.text):this._elem.html(this.text)}}else{this.show=false;this._elem.height(0);this._elem.width(0)}return this._elem};f.jqplot.DivTitleRenderer.prototype.pack=function(){};f.jqplot.LinePattern=function(a,c){var d={dotted:[0.1,f.jqplot.config.dotGapLength],dashed:[f.jqplot.config.dashLength,f.jqplot.config.gapLength],solid:null};if(typeof c==="string")if(c[0]==="."||c[0]==="-"){d=c;c=[];for(var b=0,e=d.length;b<e;b++){if(d[b]===".")c.push(0.1);
else if(d[b]==="-")c.push(f.jqplot.config.dashLength);else continue;c.push(f.jqplot.config.gapLength)}}else c=d[c];if(!(c&&c.length))return a;var i=0,g=c[0],h=0,k=0,j=0,n=0,l=function(m,o){var t=a.lineWidth,r=m-h,p=o-k,w=Math.sqrt(r*r+p*p);if(w>0&&t>0){r/=w;for(p/=w;;){var v=t*g;if(v<w){h+=v*r;k+=v*p;(i&1)==0?a.lineTo(h,k):a.moveTo(h,k);w-=v;i++;if(i>=c.length)i=0;g=c[i]}else{h=m;k=o;(i&1)==0?a.lineTo(h,k):a.moveTo(h,k);g-=w/t;break}}}};return{moveTo:function(m,o){a.moveTo(m,o);h=m;k=o;j=m;n=o},lineTo:l,
beginPath:function(){a.beginPath()},closePath:function(){l(j,n)}}};f.jqplot.LineRenderer=function(){this.shapeRenderer=new f.jqplot.ShapeRenderer;this.shadowRenderer=new f.jqplot.ShadowRenderer};f.jqplot.LineRenderer.prototype.init=function(a,c){a=a||{};this._type="line";this.renderer.animation={show:false,direction:"left",speed:2500,_supported:true};this.renderer.smooth=false;this.renderer.tension=null;this.renderer.constrainSmoothing=true;this.renderer._smoothedData=[];this.renderer._smoothedPlotData=
[];this.renderer._hiBandGridData=[];this.renderer._lowBandGridData=[];this.renderer._hiBandSmoothedData=[];this.renderer._lowBandSmoothedData=[];this.renderer.bandData=[];this.renderer.bands={show:false,hiData:[],lowData:[],color:this.color,showLines:false,fill:true,fillColor:null,_min:null,_max:null,interval:"3%"};var d={highlightMouseOver:a.highlightMouseOver,highlightMouseDown:a.highlightMouseDown,highlightColor:a.highlightColor};delete a.highlightMouseOver;delete a.highlightMouseDown;delete a.highlightColor;
f.extend(true,this.renderer,a);this.renderer.options=a;if(this.renderer.bandData.length>1&&(!a.bands||a.bands.show==null))this.renderer.bands.show=true;else if(a.bands&&a.bands.show==null&&a.bands.interval!=null)this.renderer.bands.show=true;if(this.fill)this.renderer.bands.show=false;this.renderer.bands.show&&this.renderer.initBands.call(this,this.renderer.options,c);if(this._stack)this.renderer.smooth=false;this.renderer.shapeRenderer.init({lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,
isarc:false,strokeStyle:this.color,fillStyle:this.fillColor,lineWidth:this.lineWidth,linePattern:this.linePattern,closePath:this.fill});var b=a.shadowOffset;if(b==null)b=this.lineWidth>2.5?1.25*(1+(Math.atan(this.lineWidth/2.5)/0.785398163-1)*0.6):1.25*Math.atan(this.lineWidth/2.5)/0.785398163;this.renderer.shadowRenderer.init({lineJoin:this.lineJoin,lineCap:this.lineCap,fill:this.fill,isarc:false,angle:this.shadowAngle,offset:b,alpha:this.shadowAlpha,depth:this.shadowDepth,lineWidth:this.lineWidth,
linePattern:this.linePattern,closePath:this.fill});this._areaPoints=[];this._boundingBox=[[],[]];if(!this.isTrendline&&this.fill||this.renderer.bands.show){this.highlightMouseOver=true;this.highlightMouseDown=false;this.highlightColor=null;if(d.highlightMouseDown&&d.highlightMouseOver==null)d.highlightMouseOver=false;f.extend(true,this,{highlightMouseOver:d.highlightMouseOver,highlightMouseDown:d.highlightMouseDown,highlightColor:d.highlightColor});if(!this.highlightColor)this.highlightColor=f.jqplot.computeHighlightColors(this.renderer.bands.show?
this.renderer.bands.fillColor:this.fillColor);if(this.highlighter)this.highlighter.show=false}if(!this.isTrendline&&c){c.plugins.lineRenderer={};c.postInitHooks.addOnce(T);c.postDrawHooks.addOnce(U);c.eventListenerHooks.addOnce("jqplotMouseMove",ka);c.eventListenerHooks.addOnce("jqplotMouseDown",la);c.eventListenerHooks.addOnce("jqplotMouseUp",ma);c.eventListenerHooks.addOnce("jqplotClick",na);c.eventListenerHooks.addOnce("jqplotRightClick",oa)}};f.jqplot.LineRenderer.prototype.initBands=function(a){var c=
a.bandData||[];a=this.renderer.bands;a.hiData=[];a.lowData=[];var d=this.data;a._max=null;a._min=null;if(c.length==2)if(f.isArray(c[0][0])){for(var b=0,e=0,i=0,g=c[0].length;i<g;i++){d=c[0][i];if(d[1]!=null&&d[1]>a._max||a._max==null)a._max=d[1];if(d[1]!=null&&d[1]<a._min||a._min==null)a._min=d[1]}i=0;for(g=c[1].length;i<g;i++){d=c[1][i];if(d[1]!=null&&d[1]>a._max||a._max==null){a._max=d[1];e=1}if(d[1]!=null&&d[1]<a._min||a._min==null){a._min=d[1];b=1}}if(e===b)a.show=false;a.hiData=c[e];a.lowData=
c[b]}else if(c[0].length===d.length&&c[1].length===d.length){e=(b=c[0][0]>c[1][0]?0:1)?0:1;i=0;for(g=d.length;i<g;i++){a.hiData.push([d[i][0],c[b][i]]);a.lowData.push([d[i][0],c[e][i]])}}else a.show=false;else if(c.length>2&&!f.isArray(c[0][0])){e=(b=c[0][0]>c[0][1]?0:1)?0:1;i=0;for(g=c.length;i<g;i++){a.hiData.push([d[i][0],c[i][b]]);a.lowData.push([d[i][0],c[i][e]])}}else{i=a.interval;var h=e=b=c=null;if(f.isArray(i)){c=i[0];b=i[1]}else c=i;if(isNaN(c)){if(c.charAt(c.length-1)==="%"){e="multiply";
c=parseFloat(c)/100+1}}else{c=parseFloat(c);e="add"}if(b!==null&&isNaN(b)){if(b.charAt(b.length-1)==="%"){h="multiply";b=parseFloat(b)/100+1}}else if(b!==null){b=parseFloat(b);h="add"}if(c!==null){if(b===null){b=-c;h=e;if(h==="multiply")b+=2}if(c<b){i=c;c=b;b=i;i=e;e=h;h=i}i=0;for(g=d.length;i<g;i++){switch(e){case "add":a.hiData.push([d[i][0],d[i][1]+c]);break;case "multiply":a.hiData.push([d[i][0],d[i][1]*c])}switch(h){case "add":a.lowData.push([d[i][0],d[i][1]+b]);break;case "multiply":a.lowData.push([d[i][0],
d[i][1]*b])}}}else a.show=false}d=a.hiData;c=a.lowData;i=0;for(g=d.length;i<g;i++)if(d[i][1]!=null&&d[i][1]>a._max||a._max==null)a._max=d[i][1];i=0;for(g=c.length;i<g;i++)if(c[i][1]!=null&&c[i][1]<a._min||a._min==null)a._min=c[i][1];if(a.fillColor===null){i=f.jqplot.getColorComponents(a.color);i[3]*=0.5;a.fillColor="rgba("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+")"}};f.jqplot.LineRenderer.prototype.setGridData=function(){var a=this._xaxis.series_u2p,c=this._yaxis.series_u2p,d=this._plotData,b=this._prevPlotData;
this.gridData=[];this._prevGridData=[];this.renderer._smoothedData=[];this.renderer._smoothedPlotData=[];this.renderer._hiBandGridData=[];this.renderer._lowBandGridData=[];this.renderer._hiBandSmoothedData=[];this.renderer._lowBandSmoothedData=[];for(var e=this.renderer.bands,i=false,g=0,h=this.data.length;g<h;g++){if(d[g][0]!=null&&d[g][1]!=null)this.gridData.push([a.call(this._xaxis,d[g][0]),c.call(this._yaxis,d[g][1])]);else if(d[g][0]==null){i=true;this.gridData.push([null,c.call(this._yaxis,
d[g][1])])}else if(d[g][1]==null){i=true;this.gridData.push([a.call(this._xaxis,d[g][0]),null])}if(b[g]!=null&&b[g][0]!=null&&b[g][1]!=null)this._prevGridData.push([a.call(this._xaxis,b[g][0]),c.call(this._yaxis,b[g][1])]);else if(b[g]!=null&&b[g][0]==null)this._prevGridData.push([null,c.call(this._yaxis,b[g][1])]);else b[g]!=null&&b[g][0]!=null&&b[g][1]==null&&this._prevGridData.push([a.call(this._xaxis,b[g][0]),null])}if(i){this.renderer.smooth=false;if(this._type==="line")e.show=false}if(this._type===
"line"&&e.show){g=0;for(h=e.hiData.length;g<h;g++)this.renderer._hiBandGridData.push([a.call(this._xaxis,e.hiData[g][0]),c.call(this._yaxis,e.hiData[g][1])]);g=0;for(h=e.lowData.length;g<h;g++)this.renderer._lowBandGridData.push([a.call(this._xaxis,e.lowData[g][0]),c.call(this._yaxis,e.lowData[g][1])])}if(this._type==="line"&&this.renderer.smooth&&this.gridData.length>2)if(this.renderer.constrainSmoothing){a=I.call(this,this.gridData);this.renderer._smoothedData=a[0];this.renderer._smoothedPlotData=
a[1];if(e.show){a=I.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=a[0];a=I.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=a[0]}}else{a=J.call(this,this.gridData);this.renderer._smoothedData=a[0];this.renderer._smoothedPlotData=a[1];if(e.show){a=J.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=a[0];a=J.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=a[0]}}};f.jqplot.LineRenderer.prototype.makeGridData=
function(a){var c=this._xaxis.series_u2p,d=this._yaxis.series_u2p,b=[];this.renderer._smoothedData=[];this.renderer._smoothedPlotData=[];this.renderer._hiBandGridData=[];this.renderer._lowBandGridData=[];this.renderer._hiBandSmoothedData=[];this.renderer._lowBandSmoothedData=[];for(var e=this.renderer.bands,i=false,g=0;g<a.length;g++)if(a[g][0]!=null&&a[g][1]!=null)b.push([c.call(this._xaxis,a[g][0]),d.call(this._yaxis,a[g][1])]);else if(a[g][0]==null){i=true;b.push([null,d.call(this._yaxis,a[g][1])])}else if(a[g][1]==
null){i=true;b.push([c.call(this._xaxis,a[g][0]),null])}if(i){this.renderer.smooth=false;if(this._type==="line")e.show=false}if(this._type==="line"&&e.show){g=0;for(a=e.hiData.length;g<a;g++)this.renderer._hiBandGridData.push([c.call(this._xaxis,e.hiData[g][0]),d.call(this._yaxis,e.hiData[g][1])]);g=0;for(a=e.lowData.length;g<a;g++)this.renderer._lowBandGridData.push([c.call(this._xaxis,e.lowData[g][0]),d.call(this._yaxis,e.lowData[g][1])])}if(this._type==="line"&&this.renderer.smooth&&b.length>2)if(this.renderer.constrainSmoothing){c=
I.call(this,b);this.renderer._smoothedData=c[0];this.renderer._smoothedPlotData=c[1];if(e.show){c=I.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=c[0];c=I.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=c[0]}}else{c=J.call(this,b);this.renderer._smoothedData=c[0];this.renderer._smoothedPlotData=c[1];if(e.show){c=J.call(this,this.renderer._hiBandGridData);this.renderer._hiBandSmoothedData=c[0];c=J.call(this,this.renderer._lowBandGridData);this.renderer._lowBandSmoothedData=
c[0]}}return b};f.jqplot.LineRenderer.prototype.draw=function(a,c,d){var b;d=f.extend(true,{},d);var e=d.shadow!=D?d.shadow:this.shadow;b=d.showLine!=D?d.showLine:this.showLine;var i=d.fill!=D?d.fill:this.fill,g=d.fillAndStroke!=D?d.fillAndStroke:this.fillAndStroke,h,k;a.save();if(c.length){if(b)if(i){if(this.fillToZero){k=this.negativeColor;if(!this.useNegativeColors)k=d.fillStyle;var j=d.fillStyle;if(g)h=c.slice(0);if(this.index==0||!this._stack){var n=[],l=this.renderer.smooth?this.renderer._smoothedPlotData:
this._plotData;this._areaPoints=[];var m=this._yaxis.series_u2p(this.fillToValue);this._xaxis.series_u2p(this.fillToValue);d.closePath=true;if(this.fillAxis=="y"){n.push([c[0][0],m]);this._areaPoints.push([c[0][0],m]);for(b=0;b<c.length-1;b++){n.push(c[b]);this._areaPoints.push(c[b]);if(l[b][1]*l[b+1][1]<0){d.fillStyle=l[b][1]<0?k:j;var o=c[b][0]+(c[b+1][0]-c[b][0])*(m-c[b][1])/(c[b+1][1]-c[b][1]);n.push([o,m]);this._areaPoints.push([o,m]);e&&this.renderer.shadowRenderer.draw(a,n,d);this.renderer.shapeRenderer.draw(a,
n,d);n=[[o,m]]}}d.fillStyle=l[c.length-1][1]<0?k:j;n.push(c[c.length-1]);this._areaPoints.push(c[c.length-1]);n.push([c[c.length-1][0],m]);this._areaPoints.push([c[c.length-1][0],m])}e&&this.renderer.shadowRenderer.draw(a,n,d);this.renderer.shapeRenderer.draw(a,n,d)}else{k=this._prevGridData;for(b=k.length;b>0;b--)c.push(k[b-1]);e&&this.renderer.shadowRenderer.draw(a,c,d);this._areaPoints=c;this.renderer.shapeRenderer.draw(a,c,d)}}else{if(g)h=c.slice(0);if(this.index==0||!this._stack){b=a.canvas.height;
c.unshift([c[0][0],b]);c.push([c[c.length-1][0],b])}else{k=this._prevGridData;for(b=k.length;b>0;b--)c.push(k[b-1])}this._areaPoints=c;e&&this.renderer.shadowRenderer.draw(a,c,d);this.renderer.shapeRenderer.draw(a,c,d)}if(g){b=f.extend(true,{},d,{fill:false,closePath:false});this.renderer.shapeRenderer.draw(a,h,b);if(this.markerRenderer.show){if(this.renderer.smooth)h=this.gridData;for(b=0;b<h.length;b++)this.markerRenderer.draw(h[b][0],h[b][1],a,d.markerOptions)}}}else{if(this.renderer.bands.show){h=
f.extend(true,{},d);if(this.renderer.bands.showLines){b=this.renderer.smooth?this.renderer._hiBandSmoothedData:this.renderer._hiBandGridData;this.renderer.shapeRenderer.draw(a,b,d);b=this.renderer.smooth?this.renderer._lowBandSmoothedData:this.renderer._lowBandGridData;this.renderer.shapeRenderer.draw(a,b,h)}if(this.renderer.bands.fill){this._areaPoints=b=this.renderer.smooth?this.renderer._hiBandSmoothedData.concat(this.renderer._lowBandSmoothedData.reverse()):this.renderer._hiBandGridData.concat(this.renderer._lowBandGridData.reverse());
h.closePath=true;h.fill=true;h.fillStyle=this.renderer.bands.fillColor;this.renderer.shapeRenderer.draw(a,b,h)}}e&&this.renderer.shadowRenderer.draw(a,c,d);this.renderer.shapeRenderer.draw(a,c,d)}e=g=h=k=null;for(b=0;b<this._areaPoints.length;b++){j=this._areaPoints[b];if(e>j[0]||e==null)e=j[0];if(k<j[1]||k==null)k=j[1];if(g<j[0]||g==null)g=j[0];if(h>j[1]||h==null)h=j[1]}if(this.type==="line"&&this.renderer.bands.show){k=this._yaxis.series_u2p(this.renderer.bands._min);h=this._yaxis.series_u2p(this.renderer.bands._max)}this._boundingBox=
[[e,k],[g,h]];if(this.markerRenderer.show&&!i){if(this.renderer.smooth)c=this.gridData;for(b=0;b<c.length;b++)c[b][0]!=null&&c[b][1]!=null&&this.markerRenderer.draw(c[b][0],c[b][1],a,d.markerOptions)}}a.restore()};f.jqplot.LineRenderer.prototype.drawShadow=function(){};f.jqplot.LinearAxisRenderer=function(){};f.jqplot.LinearAxisRenderer.prototype.init=function(a){this.breakPoints=null;this.breakTickLabel="&asymp;";this.drawBaseline=true;this.baselineColor=this.baselineWidth=null;this.forceTickAt100=
this.forceTickAt0=false;this.minorTicks=this.tickInset=0;this.alignTicks=false;this._autoFormatString="";this._overrideFormatString=false;this._scalefact=1;f.extend(true,this,a);if(this.breakPoints)if(f.isArray(this.breakPoints)){if(this.breakPoints.length<2||this.breakPoints[1]<=this.breakPoints[0])this.breakPoints=null}else this.breakPoints=null;if(this.numberTicks!=null&&this.numberTicks<2)this.numberTicks=2;this.resetDataBounds()};f.jqplot.LinearAxisRenderer.prototype.draw=function(a,c){if(this.show){this.renderer.createTicks.call(this,
c);if(this._elem){this._elem.emptyForce();this._elem=null}this._elem=f(document.createElement("div"));this._elem.addClass("jqplot-axis jqplot-"+this.name);this._elem.css("position","absolute");this.name=="xaxis"||this.name=="x2axis"?this._elem.width(this._plotDimensions.width):this._elem.height(this._plotDimensions.height);this.labelOptions.axis=this.name;this._label=new this.labelRenderer(this.labelOptions);this._label.show&&this._label.draw(a,c).appendTo(this._elem);for(var d=this._ticks,b,e=0;e<
d.length;e++){b=d[e];if(b.show&&b.showLabel&&(!b.isMinorTick||this.showMinorTicks))this._elem.append(b.draw(a,c))}}return this._elem};f.jqplot.LinearAxisRenderer.prototype.reset=function(){this.min=this._options.min;this.max=this._options.max;this.tickInterval=this._options.tickInterval;this.numberTicks=this._options.numberTicks;this._autoFormatString="";if(this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString)this.tickOptions.formatString=""};f.jqplot.LinearAxisRenderer.prototype.set=
function(){var a=0,c,d=0,b=0,e=this._label==null?false:this._label.show;if(this.show){for(var i=this._ticks,g=0;g<i.length;g++){c=i[g];if(!c._breakTick&&c.show&&c.showLabel&&(!c.isMinorTick||this.showMinorTicks)){c=this.name=="xaxis"||this.name=="x2axis"?c._elem.outerHeight(true):c._elem.outerWidth(true);if(c>a)a=c}}if(e){d=this._label._elem.outerWidth(true);b=this._label._elem.outerHeight(true)}if(this.name=="xaxis"){a+=b;this._elem.css({height:a+"px",left:"0px",bottom:"0px"})}else if(this.name==
"x2axis"){a+=b;this._elem.css({height:a+"px",left:"0px",top:"0px"})}else{if(this.name=="yaxis"){a+=d;this._elem.css({width:a+"px",left:"0px",top:"0px"})}else{a+=d;this._elem.css({width:a+"px",right:"0px",top:"0px"})}e&&this._label.constructor==f.jqplot.AxisLabelRenderer&&this._label._elem.css("width",d+"px")}}};f.jqplot.LinearAxisRenderer.prototype.createTicks=function(a){var c=this.ticks,d=this.name,b=this._dataBounds,e=this.name.charAt(0)==="x"?this._plotDimensions.width:this._plotDimensions.height,
i,g=this.min;i=this.max;var h=this.numberTicks,k=this.tickInterval;this._scalefact=(Math.max(e,31)-30)/300;if(c.length){for(d=0;d<c.length;d++){i=c[d];g=new this.tickRenderer(this.tickOptions);if(f.isArray(i)){g.value=i[0];if(this.breakPoints)if(i[0]==this.breakPoints[0]){g.label=this.breakTickLabel;g._breakTick=true;g.showGridline=false;g.showMark=false}else{if(i[0]>this.breakPoints[0]&&i[0]<=this.breakPoints[1]){g.show=false;g.showGridline=false}g.label=i[1]}else g.label=i[1];g.setTick(i[0],this.name)}else if(f.isPlainObject(i)){f.extend(true,
g,i);g.axis=this.name}else{g.value=i;if(this.breakPoints)if(i==this.breakPoints[0]){g.label=this.breakTickLabel;g._breakTick=true;g.showGridline=false;g.showMark=false}else if(i>this.breakPoints[0]&&i<=this.breakPoints[1]){g.show=false;g.showGridline=false}g.setTick(i,this.name)}this._ticks.push(g)}this.numberTicks=c.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{e=d=="xaxis"||d=="x2axis"?this._plotDimensions.width:
this._plotDimensions.height;d=this.numberTicks;if(this.alignTicks)if(this.name==="x2axis"&&a.axes.xaxis.show)d=a.axes.xaxis.numberTicks;else if(this.name.charAt(0)==="y"&&this.name!=="yaxis"&&this.name!=="yMidAxis"&&a.axes.yaxis.show)d=a.axes.yaxis.numberTicks;c=this.min!=null?this.min:b.min;a=this.max!=null?this.max:b.max;b=a-c;if(this.tickOptions==null||!this.tickOptions.formatString)this._overrideFormatString=true;if(this.min==null&&this.max==null&&this.tickInterval==null&&!this.autoscale){if(this.forceTickAt0){if(c>
0)c=0;if(a<0)a=0}if(this.forceTickAt100){if(c>100)c=100;if(a<100)a=100}g=f.jqplot.LinearTickGenerator(c,a,this._scalefact,d);i=c+b*(this.padMin-1);h=a-b*(this.padMax-1);if(c<i||a>h){i=c-b*(this.padMin-1);h=a+b*(this.padMax-1);g=f.jqplot.LinearTickGenerator(i,h,this._scalefact,d)}this.min=g[0];this.max=g[1];this.numberTicks=g[2];this._autoFormatString=g[3];this.tickInterval=g[4]}else{if(c==a){d=0.05;if(c>0)d=Math.max(Math.log(c)/Math.LN10,0.05);c-=d;a+=d}if(this.autoscale&&this.min==null&&this.max==
null){var j=false,n=false;for(d=0;d<this._series.length;d++){var l=this._series[d];if(this.name==(l.fillAxis=="x"?l._xaxis.name:l._yaxis.name)){for(var m=l._plotValues[l.fillAxis],o=m[0],t=m[0],r=1;r<m.length;r++)if(m[r]<o)o=m[r];else if(m[r]>t)t=m[r];r=(t-o)/t;if(l.renderer.constructor==f.jqplot.BarRenderer)if(o>=0&&(l.fillToZero||r>0.1))j=true;else{j=false;n=l.fill&&l.fillToZero&&o<0&&t>0?true:false}else if(l.fill)if(o>=0&&(l.fillToZero||r>0.1))j=true;else if(o<0&&t>0&&l.fillToZero){j=false;n=true}else n=
j=false;else if(o<0)j=false}}if(j){this.numberTicks=2+Math.ceil((e-(this.tickSpacing-1))/this.tickSpacing);g=this.min=0;a=a/(this.numberTicks-1);e=Math.pow(10,Math.abs(Math.floor(Math.log(a)/Math.LN10)));if(a/e==parseInt(a/e,10))a+=e;this.tickInterval=Math.ceil(a/e)*e;this.max=this.tickInterval*(this.numberTicks-1)}else if(n){this.numberTicks=2+Math.ceil((e-(this.tickSpacing-1))/this.tickSpacing);b=Math.ceil(Math.abs(c)/b*(this.numberTicks-1));d=this.numberTicks-1-b;a=Math.max(Math.abs(c/b),Math.abs(a/
d));e=Math.pow(10,Math.abs(Math.floor(Math.log(a)/Math.LN10)));this.tickInterval=Math.ceil(a/e)*e;this.max=this.tickInterval*d;this.min=-this.tickInterval*b}else{if(this.numberTicks==null)this.numberTicks=this.tickInterval?3+Math.ceil(b/this.tickInterval):2+Math.ceil((e-(this.tickSpacing-1))/this.tickSpacing);if(this.tickInterval==null){a=b/(this.numberTicks-1);e=a<1?Math.pow(10,Math.abs(Math.floor(Math.log(a)/Math.LN10))):1;this.tickInterval=Math.ceil(a*e*this.pad)/e}else e=1/this.tickInterval;a=
this.tickInterval*(this.numberTicks-1);b=(a-b)/2;if(this.min==null)this.min=Math.floor(e*(c-b))/e;if(this.max==null)this.max=this.min+a}b=f.jqplot.getSignificantFigures(this.tickInterval);if(b.digitsLeft>=b.significantDigits)b="%d";else{e=Math.max(0,5-b.digitsLeft);e=Math.min(e,b.digitsRight);b="%."+e+"f"}this._autoFormatString=b}else{c=this.min!=null?this.min:c-b*(this.padMin-1);a=this.max!=null?this.max:a+b*(this.padMax-1);b=a-c;if(this.numberTicks==null)this.numberTicks=this.tickInterval!=null?
Math.ceil((a-c)/this.tickInterval)+1:e>100?parseInt(3+(e-100)/75,10):2;if(this.tickInterval==null)this.tickInterval=b/(this.numberTicks-1);if(this.max==null)a=c+this.tickInterval*(this.numberTicks-1);if(this.min==null)c=a-this.tickInterval*(this.numberTicks-1);b=f.jqplot.getSignificantFigures(this.tickInterval);if(b.digitsLeft>=b.significantDigits)b="%d";else{e=Math.max(0,5-b.digitsLeft);e=Math.min(e,b.digitsRight);b="%."+e+"f"}this._autoFormatString=b;this.min=c;this.max=a}if(this.renderer.constructor==
f.jqplot.LinearAxisRenderer&&this._autoFormatString==""){b=(new this.tickRenderer(this.tickOptions)).formatString||f.jqplot.config.defaultTickFormatString;b=b.match(f.jqplot.sprintf.regex)[0];c=0;if(b){if(b.search(/[fFeEgGpP]/)>-1)c=(c=b.match(/\%\.(\d{0,})?[eEfFgGpP]/))?parseInt(c[1],10):6;else if(b.search(/[di]/)>-1)c=0;b=Math.pow(10,-c);if(this.tickInterval<b)if(h==null&&k==null){this.tickInterval=b;if(i==null&&g==null){this.min=Math.floor(this._dataBounds.min/b)*b;if(this.min==this._dataBounds.min)this.min=
this._dataBounds.min-this.tickInterval;this.max=Math.ceil(this._dataBounds.max/b)*b;if(this.max==this._dataBounds.max)this.max=this._dataBounds.max+this.tickInterval;g=(this.max-this.min)/this.tickInterval;g=g.toFixed(11);g=Math.ceil(g);this.numberTicks=g+1}else if(i==null){g=(this._dataBounds.max-this.min)/this.tickInterval;g=g.toFixed(11);this.numberTicks=Math.ceil(g)+2;this.max=this.min+this.tickInterval*(this.numberTicks-1)}else if(g==null){g=(this.max-this._dataBounds.min)/this.tickInterval;
g=g.toFixed(11);this.numberTicks=Math.ceil(g)+2;this.min=this.max-this.tickInterval*(this.numberTicks-1)}else{this.numberTicks=Math.ceil((i-g)/this.tickInterval)+1;this.min=Math.floor(g*Math.pow(10,c))/Math.pow(10,c);this.max=Math.ceil(i*Math.pow(10,c))/Math.pow(10,c);this.numberTicks=Math.ceil((this.max-this.min)/this.tickInterval)+1}}}}}if(this._overrideFormatString&&this._autoFormatString!=""){this.tickOptions=this.tickOptions||{};this.tickOptions.formatString=this._autoFormatString}for(d=0;d<
this.numberTicks;d++){i=this.min+d*this.tickInterval;g=new this.tickRenderer(this.tickOptions);g.setTick(i,this.name);this._ticks.push(g);if(d<this.numberTicks-1)for(r=0;r<this.minorTicks;r++){i+=this.tickInterval/(this.minorTicks+1);g=f.extend(true,{},this.tickOptions,{name:this.name,value:i,label:"",isMinorTick:true});g=new this.tickRenderer(g);this._ticks.push(g)}}}if(this.tickInset){this.min-=this.tickInset*this.tickInterval;this.max+=this.tickInset*this.tickInterval}};f.jqplot.LinearAxisRenderer.prototype.resetTickValues=
function(a){if(f.isArray(a)&&a.length==this._ticks.length){for(var c,d=0;d<a.length;d++){c=this._ticks[d];c.value=a[d];c.label=c.formatter(c.formatString,a[d]);c.label=c.prefix+c.label;c._elem.html(c.label)}this.min=f.jqplot.arrayMin(a);this.max=f.jqplot.arrayMax(a);this.pack()}};f.jqplot.LinearAxisRenderer.prototype.pack=function(a,c){a=a||{};c=c||this._offsets;var d=this._ticks,b=this.max,e=this.min,i=c.max,g=c.min,h=this._label==null?false:this._label.show,k;for(k in a)this._elem.css(k,a[k]);this._offsets=
c;var j=i-g,n=b-e;if(this.breakPoints){n=n-this.breakPoints[1]+this.breakPoints[0];this.p2u=function(o){return(o-g)*n/j+e};this.u2p=function(o){if(o>this.breakPoints[0]&&o<this.breakPoints[1])o=this.breakPoints[0];return o<=this.breakPoints[0]?(o-e)*j/n+g:(o-this.breakPoints[1]+this.breakPoints[0]-e)*j/n+g};if(this.name.charAt(0)=="x"){this.series_u2p=function(o){if(o>this.breakPoints[0]&&o<this.breakPoints[1])o=this.breakPoints[0];return o<=this.breakPoints[0]?(o-e)*j/n:(o-this.breakPoints[1]+this.breakPoints[0]-
e)*j/n};this.series_p2u=function(o){return o*n/j+e}}else{this.series_u2p=function(o){if(o>this.breakPoints[0]&&o<this.breakPoints[1])o=this.breakPoints[0];return o>=this.breakPoints[1]?(o-b)*j/n:(o+this.breakPoints[1]-this.breakPoints[0]-b)*j/n};this.series_p2u=function(o){return o*n/j+b}}}else{this.p2u=function(o){return(o-g)*n/j+e};this.u2p=function(o){return(o-e)*j/n+g};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(o){return(o-e)*j/n};this.series_p2u=function(o){return o*
n/j+e}}else{this.series_u2p=function(o){return(o-b)*j/n};this.series_p2u=function(o){return o*n/j+b}}}if(this.show)if(this.name=="xaxis"||this.name=="x2axis"){for(k=0;k<d.length;k++){var l=d[k];if(l.show&&l.showLabel){var m;if(l.constructor==f.jqplot.CanvasAxisTickRenderer&&l.angle){m=this.name=="xaxis"?1:-1;switch(l.labelPosition){case "auto":m=m*l.angle<0?-l.getWidth()+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2:-l._textRenderer.height*Math.sin(l._textRenderer.angle)/2;break;case "end":m=
-l.getWidth()+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2;break;case "start":m=-l._textRenderer.height*Math.sin(l._textRenderer.angle)/2;break;case "middle":m=-l.getWidth()/2+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2;break;default:m=-l.getWidth()/2+l._textRenderer.height*Math.sin(-l._textRenderer.angle)/2}}else m=-l.getWidth()/2;m=this.u2p(l.value)+m+"px";l._elem.css("left",m);l.pack()}}if(h){i=this._label._elem.outerWidth(true);this._label._elem.css("left",g+j/2-i/2+
"px");this.name=="xaxis"?this._label._elem.css("bottom","0px"):this._label._elem.css("top","0px");this._label.pack()}}else{for(k=0;k<d.length;k++){l=d[k];if(l.show&&l.showLabel){if(l.constructor==f.jqplot.CanvasAxisTickRenderer&&l.angle){m=this.name=="yaxis"?1:-1;switch(l.labelPosition){case "auto":case "end":m=m*l.angle<0?-l._textRenderer.height*Math.cos(-l._textRenderer.angle)/2:-l.getHeight()+l._textRenderer.height*Math.cos(l._textRenderer.angle)/2;break;case "start":m=l.angle>0?-l._textRenderer.height*
Math.cos(-l._textRenderer.angle)/2:-l.getHeight()+l._textRenderer.height*Math.cos(l._textRenderer.angle)/2;break;case "middle":m=-l.getHeight()/2;break;default:m=-l.getHeight()/2}}else m=-l.getHeight()/2;m=this.u2p(l.value)+m+"px";l._elem.css("top",m);l.pack()}}if(h){d=this._label._elem.outerHeight(true);this._label._elem.css("top",i-j/2-d/2+"px");this.name=="yaxis"?this._label._elem.css("left","0px"):this._label._elem.css("right","0px");this._label.pack()}}d=null};f.jqplot.LinearTickGenerator=function(a,
c,d,b){if(a===c)c=c?0:1;d=d||1;if(c<a){var e=c;c=a;a=e}e=[];var i=ha(c-a,d);if(b==null){e[0]=Math.floor(a/i)*i;e[1]=Math.ceil(c/i)*i;e[2]=Math.round((e[1]-e[0])/i+1);e[3]=da(i);e[4]=i}else{d=[];d[0]=Math.floor(a/i)*i;d[1]=Math.ceil(c/i)*i;d[2]=Math.round((d[1]-d[0])/i+1);d[3]=da(i);d[4]=i;if(d[2]===b)e=d;else{a=ga(d[1]-d[0],b);e[0]=d[0];e[2]=b;e[4]=a;e[3]=da(a);e[1]=e[0]+(e[2]-1)*e[4]}}return e};f.jqplot.LinearTickGenerator.bestLinearInterval=ha;f.jqplot.LinearTickGenerator.bestInterval=ga;f.jqplot.LinearTickGenerator.bestLinearComponents=
function(a,c){var d=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),b=a/d;b/=c;b=b<=0.38?0.1:b<=1.6?0.2:b<=4?0.5:b<=8?1:b<=16?2:5;return[b*d,b,d]};f.jqplot.LinearTickGenerator.bestConstrainedInterval=function(a,c,d){for(var b=Math.floor(d/2),e=Number.MAX_VALUE,i=c-a,g,h,k,j=f.jqplot.getSignificantFigures,n,l,m=0,o=Math.ceil(d*1.5)-b+1;m<o;m++){n=b+m;g=i/(n-1);h=j(g);g=Math.abs(d-n)+h.digitsRight;if(g<e){e=g;k=n;l=h.digitsRight}else if(g===e)if(h.digitsRight<l){k=n;l=h.digitsRight}}g=Math.max(l,Math.max(j(a).digitsRight,
j(c).digitsRight));d=g===0?"%d":"%."+g+"f";g=i/(k-1);return[a,c,k,d,g]};f.jqplot.MarkerRenderer=function(a){this.show=true;this.style="filledCircle";this.lineWidth=2;this.size=9;this.color="#666666";this.shadow=true;this.shadowAngle=45;this.shadowOffset=1;this.shadowDepth=3;this.shadowAlpha="0.07";this.shadowRenderer=new f.jqplot.ShadowRenderer;this.shapeRenderer=new f.jqplot.ShapeRenderer;f.extend(true,this,a)};f.jqplot.MarkerRenderer.prototype.init=function(a){f.extend(true,this,a);a={angle:this.shadowAngle,
offset:this.shadowOffset,alpha:this.shadowAlpha,lineWidth:this.lineWidth,depth:this.shadowDepth,closePath:true};if(this.style.indexOf("filled")!=-1)a.fill=true;if(this.style.indexOf("ircle")!=-1){a.isarc=true;a.closePath=false}this.shadowRenderer.init(a);a={fill:false,isarc:false,strokeStyle:this.color,fillStyle:this.color,lineWidth:this.lineWidth,closePath:true};if(this.style.indexOf("filled")!=-1)a.fill=true;if(this.style.indexOf("ircle")!=-1){a.isarc=true;a.closePath=false}this.shapeRenderer.init(a)};
f.jqplot.MarkerRenderer.prototype.drawDiamond=function(a,c,d,b,e){b=this.size/2/1.2;var i=this.size/2*1.2;a=[[a-b,c],[a,c+i],[a+b,c],[a,c-i]];this.shadow&&this.shadowRenderer.draw(d,a);this.shapeRenderer.draw(d,a,e)};f.jqplot.MarkerRenderer.prototype.drawPlus=function(a,c,d){var b=this.size/2*1,e=this.size/2*1;e=[[a,c-e],[a,c+e]];a=[[a+b,c],[a-b,c]];c=f.extend(true,{},this.options,{closePath:false});if(this.shadow){this.shadowRenderer.draw(d,e,{closePath:false});this.shadowRenderer.draw(d,a,{closePath:false})}this.shapeRenderer.draw(d,
e,c);this.shapeRenderer.draw(d,a,c)};f.jqplot.MarkerRenderer.prototype.drawX=function(a,c,d){var b=this.size/2*1,e=this.size/2*1,i=f.extend(true,{},this.options,{closePath:false}),g=[[a-b,c-e],[a+b,c+e]];a=[[a-b,c+e],[a+b,c-e]];if(this.shadow){this.shadowRenderer.draw(d,g,{closePath:false});this.shadowRenderer.draw(d,a,{closePath:false})}this.shapeRenderer.draw(d,g,i);this.shapeRenderer.draw(d,a,i)};f.jqplot.MarkerRenderer.prototype.drawDash=function(a,c,d,b,e){b=this.size/2*1;a=[[a-b,c],[a+b,c]];
this.shadow&&this.shadowRenderer.draw(d,a);this.shapeRenderer.draw(d,a,e)};f.jqplot.MarkerRenderer.prototype.drawLine=function(a,c,d,b,e){a=[a,c];this.shadow&&this.shadowRenderer.draw(d,a);this.shapeRenderer.draw(d,a,e)};f.jqplot.MarkerRenderer.prototype.drawSquare=function(a,c,d,b,e){b=this.size/2/1;var i=this.size/2*1;a=[[a-b,c-i],[a-b,c+i],[a+b,c+i],[a+b,c-i]];this.shadow&&this.shadowRenderer.draw(d,a);this.shapeRenderer.draw(d,a,e)};f.jqplot.MarkerRenderer.prototype.drawCircle=function(a,c,d,
b,e){a=[a,c,this.size/2,0,2*Math.PI,true];this.shadow&&this.shadowRenderer.draw(d,a);this.shapeRenderer.draw(d,a,e)};f.jqplot.MarkerRenderer.prototype.draw=function(a,c,d,b){b=b||{};if(b.show==null||b.show!=false){if(b.color&&!b.fillStyle)b.fillStyle=b.color;if(b.color&&!b.strokeStyle)b.strokeStyle=b.color;switch(this.style){case "diamond":this.drawDiamond(a,c,d,false,b);break;case "filledDiamond":this.drawDiamond(a,c,d,true,b);break;case "circle":this.drawCircle(a,c,d,false,b);break;case "filledCircle":this.drawCircle(a,
c,d,true,b);break;case "square":this.drawSquare(a,c,d,false,b);break;case "filledSquare":this.drawSquare(a,c,d,true,b);break;case "x":this.drawX(a,c,d,true,b);break;case "plus":this.drawPlus(a,c,d,true,b);break;case "dash":this.drawDash(a,c,d,true,b);break;case "line":this.drawLine(a,c,d,false,b);break;default:this.drawDiamond(a,c,d,false,b)}}};f.jqplot.ShadowRenderer=function(a){this.angle=45;this.offset=1;this.alpha=0.07;this.lineWidth=1.5;this.lineJoin="miter";this.lineCap="round";this.fill=this.closePath=
false;this.depth=3;this.strokeStyle="rgba(0,0,0,0.1)";this.isarc=false;f.extend(true,this,a)};f.jqplot.ShadowRenderer.prototype.init=function(a){f.extend(true,this,a)};f.jqplot.ShadowRenderer.prototype.draw=function(a,c,d){a.save();var b=d!=null?d:{};d=b.fill!=null?b.fill:this.fill;var e=b.fillRect!=null?b.fillRect:this.fillRect,i=b.closePath!=null?b.closePath:this.closePath,g=b.offset!=null?b.offset:this.offset,h=b.alpha!=null?b.alpha:this.alpha,k=b.depth!=null?b.depth:this.depth,j=b.isarc!=null?
b.isarc:this.isarc,n=b.linePattern!=null?b.linePattern:this.linePattern;a.lineWidth=b.lineWidth!=null?b.lineWidth:this.lineWidth;a.lineJoin=b.lineJoin!=null?b.lineJoin:this.lineJoin;a.lineCap=b.lineCap!=null?b.lineCap:this.lineCap;a.strokeStyle=b.strokeStyle||this.strokeStyle||"rgba(0,0,0,"+h+")";a.fillStyle=b.fillStyle||this.fillStyle||"rgba(0,0,0,"+h+")";for(b=0;b<k;b++){h=f.jqplot.LinePattern(a,n);a.translate(Math.cos(this.angle*Math.PI/180)*g,Math.sin(this.angle*Math.PI/180)*g);h.beginPath();
if(j)a.arc(c[0],c[1],c[2],c[3],c[4],true);else if(e)e&&a.fillRect(c[0],c[1],c[2],c[3]);else if(c&&c.length)for(var l=true,m=0;m<c.length;m++)if(c[m][0]!=null&&c[m][1]!=null)if(l){h.moveTo(c[m][0],c[m][1]);l=false}else h.lineTo(c[m][0],c[m][1]);else l=true;i&&h.closePath();d?a.fill():a.stroke()}a.restore()};f.jqplot.ShapeRenderer=function(a){this.lineWidth=1.5;this.linePattern="solid";this.lineJoin="miter";this.lineCap="round";this.clearRect=this.strokeRect=this.fillRect=this.isarc=this.fill=this.closePath=
false;this.fillStyle=this.strokeStyle="#999999";f.extend(true,this,a)};f.jqplot.ShapeRenderer.prototype.init=function(a){f.extend(true,this,a)};f.jqplot.ShapeRenderer.prototype.draw=function(a,c,d){a.save();var b=d!=null?d:{};d=b.fill!=null?b.fill:this.fill;var e=b.closePath!=null?b.closePath:this.closePath,i=b.fillRect!=null?b.fillRect:this.fillRect,g=b.strokeRect!=null?b.strokeRect:this.strokeRect,h=b.clearRect!=null?b.clearRect:this.clearRect,k=b.isarc!=null?b.isarc:this.isarc,j=f.jqplot.LinePattern(a,
b.linePattern!=null?b.linePattern:this.linePattern);a.lineWidth=b.lineWidth||this.lineWidth;a.lineJoin=b.lineJoin||this.lineJoin;a.lineCap=b.lineCap||this.lineCap;a.strokeStyle=b.strokeStyle||b.color||this.strokeStyle;a.fillStyle=b.fillStyle||this.fillStyle;a.beginPath();if(k){a.arc(c[0],c[1],c[2],c[3],c[4],true);e&&a.closePath();d?a.fill():a.stroke()}else if(h)a.clearRect(c[0],c[1],c[2],c[3]);else if(i||g){i&&a.fillRect(c[0],c[1],c[2],c[3]);if(g){a.strokeRect(c[0],c[1],c[2],c[3]);a.restore();return}}else if(c&&
c.length){b=true;for(i=0;i<c.length;i++)if(c[i][0]!=null&&c[i][1]!=null)if(b){j.moveTo(c[i][0],c[i][1]);b=false}else j.lineTo(c[i][0],c[i][1]);else b=true;e&&j.closePath();d?a.fill():a.stroke()}a.restore()};f.jqplot.TableLegendRenderer=function(){};f.jqplot.TableLegendRenderer.prototype.init=function(a){f.extend(true,this,a)};f.jqplot.TableLegendRenderer.prototype.addrow=function(a,c,d,b){d=d?this.rowSpacing+"px":"0px";var e,i,g;e=document.createElement("tr");e=f(e);e.addClass("jqplot-table-legend");
b?e.prependTo(this._elem):e.appendTo(this._elem);if(this.showSwatches){b=f(document.createElement("td"));b.addClass("jqplot-table-legend jqplot-table-legend-swatch");b.css({textAlign:"center",paddingTop:d});i=f(document.createElement("div"));i.addClass("jqplot-table-legend-swatch-outline");g=f(document.createElement("div"));g.addClass("jqplot-table-legend-swatch");g.css({backgroundColor:c,borderColor:c});e.append(b.append(i.append(g)))}if(this.showLabels){b=f(document.createElement("td"));b.addClass("jqplot-table-legend jqplot-table-legend-label");
b.css("paddingTop",d);e.append(b);this.escapeHtml?b.text(a):b.html(a)}};f.jqplot.TableLegendRenderer.prototype.draw=function(){if(this._elem){this._elem.emptyForce();this._elem=null}if(this.show){var a=this._series,c=document.createElement("table");this._elem=f(c);this._elem.addClass("jqplot-table-legend");for(var d=c=false,b,e=0;e<a.length;e++){b=a[e];if(b._stack||b.renderer.constructor==f.jqplot.BezierCurveRenderer)d=true;if(b.show&&b.showLabel){var i=this.labels[e]||b.label.toString();if(i){var g=
b.color;if(d&&e<a.length-1)c=true;else if(d&&e==a.length-1)c=false;this.renderer.addrow.call(this,i,g,c,d);c=true}for(i=0;i<f.jqplot.addLegendRowHooks.length;i++)if(g=f.jqplot.addLegendRowHooks[i].call(this,b)){this.renderer.addrow.call(this,g.label,g.color,c);c=true}}}}return this._elem};f.jqplot.TableLegendRenderer.prototype.pack=function(a){if(this.show)if(this.placement=="insideGrid")switch(this.location){case "nw":var c=a.left,d=a.top;this._elem.css("left",c);this._elem.css("top",d);break;case "n":c=
(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2;d=a.top;this._elem.css("left",c);this._elem.css("top",d);break;case "ne":c=a.right;d=a.top;this._elem.css({right:c,top:d});break;case "e":c=a.right;d=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2;this._elem.css({right:c,top:d});break;case "se":c=a.right;d=a.bottom;this._elem.css({right:c,bottom:d});break;case "s":c=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2;d=a.bottom;this._elem.css({left:c,
bottom:d});break;case "sw":c=a.left;d=a.bottom;this._elem.css({left:c,bottom:d});break;case "w":c=a.left;d=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2;this._elem.css({left:c,top:d});break;default:c=a.right;d=a.bottom;this._elem.css({right:c,bottom:d})}else if(this.placement=="outside")switch(this.location){case "nw":c=this._plotDimensions.width-a.left;d=a.top;this._elem.css("right",c);this._elem.css("top",d);break;case "n":c=(a.left+(this._plotDimensions.width-a.right))/2-
this.getWidth()/2;d=this._plotDimensions.height-a.top;this._elem.css("left",c);this._elem.css("bottom",d);break;case "ne":c=this._plotDimensions.width-a.right;d=a.top;this._elem.css({left:c,top:d});break;case "e":c=this._plotDimensions.width-a.right;d=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2;this._elem.css({left:c,top:d});break;case "se":c=this._plotDimensions.width-a.right;d=a.bottom;this._elem.css({left:c,bottom:d});break;case "s":c=(a.left+(this._plotDimensions.width-
a.right))/2-this.getWidth()/2;d=this._plotDimensions.height-a.bottom;this._elem.css({left:c,top:d});break;case "sw":c=this._plotDimensions.width-a.left;d=a.bottom;this._elem.css({right:c,bottom:d});break;case "w":c=this._plotDimensions.width-a.left;d=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2;this._elem.css({right:c,top:d});break;default:c=a.right;d=a.bottom;this._elem.css({right:c,bottom:d})}else switch(this.location){case "nw":this._elem.css({left:0,top:a.top});break;case "n":c=
(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2;this._elem.css({left:c,top:a.top});break;case "ne":this._elem.css({right:0,top:a.top});break;case "e":d=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2;this._elem.css({right:a.right,top:d});break;case "se":this._elem.css({right:a.right,bottom:a.bottom});break;case "s":c=(a.left+(this._plotDimensions.width-a.right))/2-this.getWidth()/2;this._elem.css({left:c,bottom:a.bottom});break;case "sw":this._elem.css({left:a.left,
bottom:a.bottom});break;case "w":d=(a.top+(this._plotDimensions.height-a.bottom))/2-this.getHeight()/2;this._elem.css({left:a.left,top:d});break;default:this._elem.css({right:a.right,bottom:a.bottom})}};f.jqplot.ThemeEngine=function(){this.themes={};this.activeTheme=null};f.jqplot.ThemeEngine.prototype.init=function(){var a=new f.jqplot.Theme({_name:"Default"}),c,d,b;for(c in a.target)a.target[c]=c=="textColor"?this.target.css("color"):this.target.css(c);if(this.title.show&&this.title._elem)for(c in a.title)a.title[c]=
c=="textColor"?this.title._elem.css("color"):this.title._elem.css(c);for(c in a.grid)a.grid[c]=this.grid[c];if(a.grid.backgroundColor==null&&this.grid.background!=null)a.grid.backgroundColor=this.grid.background;if(this.legend.show&&this.legend._elem)for(c in a.legend)a.legend[c]=c=="textColor"?this.legend._elem.css("color"):this.legend._elem.css(c);var e;for(d=0;d<this.series.length;d++){e=this.series[d];if(e.renderer.constructor==f.jqplot.LineRenderer)a.series.push(new pa);else if(e.renderer.constructor==
f.jqplot.BarRenderer)a.series.push(new qa);else if(e.renderer.constructor==f.jqplot.PieRenderer)a.series.push(new ra);else if(e.renderer.constructor==f.jqplot.DonutRenderer)a.series.push(new sa);else if(e.renderer.constructor==f.jqplot.FunnelRenderer)a.series.push(new ta);else e.renderer.constructor==f.jqplot.MeterGaugeRenderer?a.series.push(new ua):a.series.push({});for(c in a.series[d])a.series[d][c]=e[c]}for(c in this.axes){e=this.axes[c];d=a.axes[c]=new va;d.borderColor=e.borderColor;d.borderWidth=
e.borderWidth;if(e._ticks&&e._ticks[0])for(b in d.ticks)if(e._ticks[0].hasOwnProperty(b))d.ticks[b]=e._ticks[0][b];else if(e._ticks[0]._elem)d.ticks[b]=e._ticks[0]._elem.css(b);if(e._label&&e._label.show)for(b in d.label)if(e._label[b])d.label[b]=e._label[b];else if(e._label._elem)d.label[b]=b=="textColor"?e._label._elem.css("color"):e._label._elem.css(b)}this.themeEngine._add(a);this.themeEngine.activeTheme=this.themeEngine.themes[a._name]};f.jqplot.ThemeEngine.prototype.get=function(a){return a?
this.themes[a]:this.activeTheme};f.jqplot.ThemeEngine.prototype.getThemeNames=function(){var a=[],c;for(c in this.themes)a.push(c);return a.sort(ia)};f.jqplot.ThemeEngine.prototype.getThemes=function(){var a=[],c=[],d;for(d in this.themes)a.push(d);a.sort(ia);for(d=0;d<a.length;d++)c.push(this.themes[a[d]]);return c};f.jqplot.ThemeEngine.prototype.activate=function(a,c){var d=false;if(!c&&this.activeTheme&&this.activeTheme._name)c=this.activeTheme._name;if(this.themes.hasOwnProperty(c)){var b=this.themes[c];
this.activeTheme=b;var e;e=["xaxis","x2axis","yaxis","y2axis"];for(j=0;j<e.length;j++){var i=e[j];if(b.axesStyles.borderColor!=null)a.axes[i].borderColor=b.axesStyles.borderColor;if(b.axesStyles.borderWidth!=null)a.axes[i].borderWidth=b.axesStyles.borderWidth}for(var g in a.axes){j=a.axes[g];if(j.show){i=f.jqplot.extend(true,{},b.axes[g]||{},b.axesStyles);if(i.borderColor!=null){j.borderColor=i.borderColor;d=true}if(i.borderWidth!=null){j.borderWidth=i.borderWidth;d=true}if(j._ticks&&j._ticks[0])for(var h in i.ticks){e=
i.ticks[h];if(e!=null){j.tickOptions[h]=e;j._ticks=[];d=true}}if(j._label&&j._label.show)for(h in i.label){e=i.label[h];if(e!=null){j.labelOptions[h]=e;d=true}}}}for(var k in b.grid)if(b.grid[k]!=null)a.grid[k]=b.grid[k];d||a.grid.draw();if(a.legend.show)for(k in b.legend)if(b.legend[k]!=null)a.legend[k]=b.legend[k];if(a.title.show)for(k in b.title)if(b.title[k]!=null)a.title[k]=b.title[k];var j;for(j=0;j<b.series.length;j++)for(k in b.series[j]){e=b.seriesStyles[k]!=null?b.seriesStyles[k]:b.series[j][k];
if(e!=null){if(k=="color"){a.series[j].renderer.shapeRenderer.fillStyle=e;a.series[j].renderer.shapeRenderer.strokeStyle=e;a.series[j][k]=e}else if(k=="lineWidth"||k=="linePattern"){a.series[j].renderer.shapeRenderer[k]=e;a.series[j][k]=e}else if(k=="markerOptions"){ca(a.series[j].markerOptions,e);ca(a.series[j].markerRenderer,e)}else a.series[j][k]=e;d=true}}if(d){a.target.empty();a.draw()}for(k in b.target)b.target[k]!=null&&a.target.css(k,b.target[k])}else throw Error("No theme of that name");
};f.jqplot.ThemeEngine.prototype._add=function(a,c){if(c)a._name=c;if(!a._name)a._name=Date.parse(new Date);if(this.themes.hasOwnProperty(a._name))throw Error("jqplot.ThemeEngine Error: Theme already in use");else this.themes[a._name]=a};f.jqplot.ThemeEngine.prototype.remove=function(a){if(a=="Default")return false;return delete this.themes[a]};f.jqplot.ThemeEngine.prototype.newTheme=function(a,c){if(typeof a=="object"){c=c||a;a=null}a=c&&c._name?c._name:a||Date.parse(new Date);var d=this.copy(this.themes.Default._name,
a);f.jqplot.extend(d,c);return d};f.jqplot.clone=ba;f.jqplot.merge=ca;f.jqplot.extend=function(){var a=arguments[0]||{},c=1,d=arguments.length,b=false,e;if(typeof a==="boolean"){b=a;a=arguments[1]||{};c=2}if(typeof a!=="object"&&!toString.call(a)==="[object Function]")a={};for(;c<d;c++)if((e=arguments[c])!=null)for(var i in e){var g=a[i],h=e[i];if(a!==h)if(b&&h&&typeof h==="object"&&!h.nodeType)a[i]=f.jqplot.extend(b,g||(h.length!=null?[]:{}),h);else if(h!==D)a[i]=h}return a};f.jqplot.ThemeEngine.prototype.rename=
function(a,c){if(a=="Default"||c=="Default")throw Error("jqplot.ThemeEngine Error: Cannot rename from/to Default");if(this.themes.hasOwnProperty(c))throw Error("jqplot.ThemeEngine Error: New name already in use.");else if(this.themes.hasOwnProperty(a)){var d=this.copy(a,c);this.remove(a);return d}throw Error("jqplot.ThemeEngine Error: Old name or new name invalid");};f.jqplot.ThemeEngine.prototype.copy=function(a,c,d){if(c=="Default")throw Error("jqplot.ThemeEngine Error: Cannot copy over Default theme");
if(!this.themes.hasOwnProperty(a)){c="jqplot.ThemeEngine Error: Source name invalid";throw Error(c);}if(this.themes.hasOwnProperty(c)){c="jqplot.ThemeEngine Error: Target name invalid";throw Error(c);}else{a=ba(this.themes[a]);a._name=c;f.jqplot.extend(true,a,d);this._add(a);return a}};f.jqplot.Theme=function(a,c){if(typeof a=="object"){c=c||a;a=null}this._name=a=a||Date.parse(new Date);this.target={backgroundColor:null};this.legend={textColor:null,fontFamily:null,fontSize:null,border:null,background:null};
this.title={textColor:null,fontFamily:null,fontSize:null,textAlign:null};this.seriesStyles={};this.series=[];this.grid={drawGridlines:null,gridLineColor:null,gridLineWidth:null,backgroundColor:null,borderColor:null,borderWidth:null,shadow:null};this.axesStyles={label:{},ticks:{}};this.axes={};if(typeof c=="string")this._name=c;else typeof c=="object"&&f.jqplot.extend(true,this,c)};var va=function(){this.borderWidth=this.borderColor=null;this.ticks=new wa;this.label=new xa},wa=function(){this.fontFamily=
this.fontSize=this.whiteSpace=this.textColor=this.size=this.showMark=this.showLabel=this.showGridline=this.show=null},xa=function(){this.fontWeight=this.fontFamily=this.fontSize=this.whiteSpace=this.textColor=null},pa=function(){this.showMarker=this.fillColor=this.shadow=this.linePattern=this.lineWidth=this.color=null;this.markerOptions=new ya},ya=function(){this.shadow=this.color=this.size=this.lineWidth=this.style=this.show=null},qa=function(){this.highlightColors=this.barWidth=this.barMargin=this.barPadding=
this.shadow=this.lineWidth=this.seriesColors=this.color=null},ra=function(){this.highlightColors=this.lineWidth=this.startAngle=this.shadow=this.fill=this.sliceMargin=this.padding=this.seriesColors=null},sa=function(){this.highlightColors=this.ringMargin=this.thickness=this.innerDiameter=this.lineWidth=this.startAngle=this.shadow=this.fill=this.sliceMargin=this.padding=this.seriesColors=null},ta=function(){this.highlightColors=this.seriesColors=this.sectionMargin=this.padding=this.shadow=this.lineWidth=
this.color=null},ua=function(){this.needlePad=this.needleThickness=this.hubRadius=this.intervalOuterRadius=this.intervalInnerRadius=this.intervalColors=this.ringWidth=this.tickColor=this.ringColor=this.backgroundColor=this.padding=null};f.fn.jqplotChildText=function(){return f(this).contents().filter(function(){return this.nodeType==3}).text()};f.fn.jqplotGetComputedFontStyle=function(){for(var a=window.getComputedStyle?window.getComputedStyle(this[0]):this[0].currentStyle,c=a["font-style"]?["font-style",
"font-weight","font-size","font-family"]:["fontStyle","fontWeight","fontSize","fontFamily"],d=[],b=0;b<c.length;++b){var e=String(a[c[b]]);e&&e!="normal"&&d.push(e)}return d.join(" ")};f.fn.jqplotToImageCanvas=function(a){function c(x,z,L,G,S,M){var H;H=parseInt(f(x).css("line-height"),10);if(isNaN(H))H=parseInt(f(x).css("font-size"),10)*1.2;H=H;var P=f(x).innerWidth();f(x).innerHeight();for(var y=L.split(/\s+/),W=y.length,C="",Q=[],X=S,V=G,N=0;N<W;N++){C+=y[N];if(z.measureText(C).width>P){Q.push(N);
C=""}}if(Q.length===0){if(f(x).css("textAlign")==="center")V=G+(M-z.measureText(C).width)/2-l;z.fillText(L,V,S)}else{C=y.slice(0,Q[0]).join(" ");if(f(x).css("textAlign")==="center")V=G+(M-z.measureText(C).width)/2-l;z.fillText(C,V,X);X+=H;N=1;for(L=Q.length;N<L;N++){C=y.slice(Q[N-1],Q[N]).join(" ");if(f(x).css("textAlign")==="center")V=G+(M-z.measureText(C).width)/2-l;z.fillText(C,V,X);X+=H}C=y.slice(Q[N-1],y.length).join(" ");if(f(x).css("textAlign")==="center")V=G+(M-z.measureText(C).width)/2-l;
z.fillText(C,V,X)}}function d(x,z,L){var G=x.tagName.toLowerCase(),S=f(x).position(),M=window.getComputedStyle?window.getComputedStyle(x):x.currentStyle,H=z+S.left+parseInt(M.marginLeft,10)+parseInt(M.borderLeftWidth,10)+parseInt(M.paddingLeft,10),P=L+S.top+parseInt(M.marginTop,10)+parseInt(M.borderTopWidth,10)+parseInt(M.paddingTop,10);z=i.width;if((G=="div"||G=="span")&&!f(x).hasClass("jqplot-highlighter-tooltip")){f(x).children().each(function(){d(this,H,P)});if(G=f(x).jqplotChildText()){v.font=
f(x).jqplotGetComputedFontStyle();v.fillStyle=f(x).css("color");c(x,v,G,H,P,z)}}else if(G==="table"&&f(x).hasClass("jqplot-table-legend")){v.strokeStyle=f(x).css("border-top-color");v.fillStyle=f(x).css("background-color");v.fillRect(H,P,f(x).innerWidth(),f(x).innerHeight());parseInt(f(x).css("border-top-width"),10)>0&&v.strokeRect(H,P,f(x).innerWidth(),f(x).innerHeight());f(x).find("div.jqplot-table-legend-swatch-outline").each(function(){var y=f(this);v.strokeStyle=y.css("border-top-color");var W=
H+y.position().left,C=P+y.position().top;v.strokeRect(W,C,y.innerWidth(),y.innerHeight());W+=parseInt(y.css("padding-left"),10);C+=parseInt(y.css("padding-top"),10);var Q=y.innerHeight()-2*parseInt(y.css("padding-top"),10),X=y.innerWidth()-2*parseInt(y.css("padding-left"),10);y=y.children("div.jqplot-table-legend-swatch");v.fillStyle=y.css("background-color");v.fillRect(W,C,X,Q)});f(x).find("td.jqplot-table-legend-label").each(function(){var y=f(this),W=H+y.position().left,C=P+y.position().top+parseInt(y.css("padding-top"),
10);v.font=y.jqplotGetComputedFontStyle();v.fillStyle=y.css("color");v.fillText(y.text(),W,C)})}else G=="canvas"&&v.drawImage(x,H,P)}a=a||{};var b=a.x_offset==null?0:a.x_offset,e=a.y_offset==null?0:a.y_offset;a=a.backgroundColor==null?"rgb(255,255,255)":a.backgroundColor;if(f(this).width()==0||f(this).height()==0)return null;if(!f.jqplot.support_canvas)return null;var i=document.createElement("canvas"),g=f(this).outerHeight(true),h=f(this).outerWidth(true),k=f(this).offset(),j=k.left,n=k.top,l=0,
m=0;k=["jqplot-table-legend","jqplot-xaxis-tick","jqplot-x2axis-tick","jqplot-yaxis-tick","jqplot-y2axis-tick","jqplot-y3axis-tick","jqplot-y4axis-tick","jqplot-y5axis-tick","jqplot-y6axis-tick","jqplot-y7axis-tick","jqplot-y8axis-tick","jqplot-y9axis-tick","jqplot-xaxis-label","jqplot-x2axis-label","jqplot-yaxis-label","jqplot-y2axis-label","jqplot-y3axis-label","jqplot-y4axis-label","jqplot-y5axis-label","jqplot-y6axis-label","jqplot-y7axis-label","jqplot-y8axis-label","jqplot-y9axis-label"];var o,
t,r,p,w;for(w in k)f(this).find("."+k[w]).each(function(){o=f(this).offset().top-n;t=f(this).offset().left-j;p=t+f(this).outerWidth(true)+l;r=o+f(this).outerHeight(true)+m;if(t<-l){h=h-l-t;l=-t}if(o<-m){g=g-m-o;m=-o}if(p>h)h=p;if(r>g)g=r});i.width=h+Number(b);i.height=g+Number(e);var v=i.getContext("2d");v.save();v.fillStyle=a;v.fillRect(0,0,i.width,i.height);v.restore();v.translate(l,m);v.textAlign="left";v.textBaseline="top";f(this).children().each(function(){d(this,b,e)});return i};f.fn.jqplotToImageStr=
function(a){return(a=f(this).jqplotToImageCanvas(a))?a.toDataURL("image/png"):null};f.fn.jqplotToImageElem=function(a){var c=document.createElement("img");a=f(this).jqplotToImageStr(a);c.src=a;return c};f.fn.jqplotToImageElemStr=function(a){return"<img src="+f(this).jqplotToImageStr(a)+" />"};f.fn.jqplotSaveImage=function(){var a=f(this).jqplotToImageStr({});if(a)window.location.href=a.replace("image/png","image/octet-stream")};f.fn.jqplotViewImage=function(){var a=f(this).jqplotToImageElemStr({});
f(this).jqplotToImageStr({});if(a){var c=window.open("");c.document.open("image/png");c.document.write(a);c.document.close()}};var q=function(){this.syntax=q.config.syntax;this._type="jsDate";this.proxy=new Date;this.options={};this.locale=q.regional.getLocale();this.formatString="";this.defaultCentury=q.config.defaultCentury;switch(arguments.length){case 0:break;case 1:if(ea(arguments[0])=="[object Object]"&&arguments[0]._type!="jsDate"){var a=this.options=arguments[0];this.syntax=a.syntax||this.syntax;
this.defaultCentury=a.defaultCentury||this.defaultCentury;this.proxy=q.createDate(a.date)}else this.proxy=q.createDate(arguments[0]);break;default:a=[];for(var c=0;c<arguments.length;c++)a.push(arguments[c]);this.proxy=new Date;this.proxy.setFullYear.apply(this.proxy,a.slice(0,3));a.slice(3).length&&this.proxy.setHours.apply(this.proxy,a.slice(3))}};q.config={defaultLocale:"en",syntax:"perl",defaultCentury:1900};q.prototype.add=function(a,c){var d=R[c]||R.day;typeof d=="number"?this.proxy.setTime(this.proxy.getTime()+
d*a):d.add(this,a);return this};q.prototype.clone=function(){return new q(this.proxy.getTime())};q.prototype.getUtcOffset=function(){return this.proxy.getTimezoneOffset()*6E4};q.prototype.diff=function(a,c,d){a=new q(a);if(a===null)return null;c=R[c]||R.day;a=typeof c=="number"?(this.proxy.getTime()-a.proxy.getTime())/c:c.diff(this.proxy,a.proxy);return d?a:Math[a>0?"floor":"ceil"](a)};q.prototype.getAbbrDayName=function(){return q.regional[this.locale].dayNamesShort[this.proxy.getDay()]};q.prototype.getAbbrMonthName=
function(){return q.regional[this.locale].monthNamesShort[this.proxy.getMonth()]};q.prototype.getAMPM=function(){return this.proxy.getHours()>=12?"PM":"AM"};q.prototype.getAmPm=function(){return this.proxy.getHours()>=12?"pm":"am"};q.prototype.getCentury=function(){return parseInt(this.proxy.getFullYear()/100,10)};q.prototype.getDate=function(){return this.proxy.getDate()};q.prototype.getDay=function(){return this.proxy.getDay()};q.prototype.getDayOfWeek=function(){var a=this.proxy.getDay();return a===
0?7:a};q.prototype.getDayOfYear=function(){var a=this.proxy,c=a-new Date(""+a.getFullYear()+"/1/1 GMT");c+=a.getTimezoneOffset()*6E4;return parseInt(c/6E4/60/24,10)+1};q.prototype.getDayName=function(){return q.regional[this.locale].dayNames[this.proxy.getDay()]};q.prototype.getFullWeekOfYear=function(){var a=this.proxy,c=this.getDayOfYear();a=6-a.getDay();return parseInt((c+a)/7,10)};q.prototype.getFullYear=function(){return this.proxy.getFullYear()};q.prototype.getGmtOffset=function(){var a=this.proxy.getTimezoneOffset()/
60,c=a<0?"+":"-";a=Math.abs(a);return c+fa(Math.floor(a),2)+":"+fa(a%1*60,2)};q.prototype.getHours=function(){return this.proxy.getHours()};q.prototype.getHours12=function(){var a=this.proxy.getHours();return a>12?a-12:a==0?12:a};q.prototype.getIsoWeek=function(){var a=this.proxy,c=a.getWeekOfYear(),d=(new Date(""+a.getFullYear()+"/1/1")).getDay();c=c+(d>4||d<=1?0:1);if(c==53&&(new Date(""+a.getFullYear()+"/12/31")).getDay()<4)c=1;else if(c===0){a=new q(new Date(""+(a.getFullYear()-1)+"/12/31"));
c=a.getIsoWeek()}return c};q.prototype.getMilliseconds=function(){return this.proxy.getMilliseconds()};q.prototype.getMinutes=function(){return this.proxy.getMinutes()};q.prototype.getMonth=function(){return this.proxy.getMonth()};q.prototype.getMonthName=function(){return q.regional[this.locale].monthNames[this.proxy.getMonth()]};q.prototype.getMonthNumber=function(){return this.proxy.getMonth()+1};q.prototype.getSeconds=function(){return this.proxy.getSeconds()};q.prototype.getShortYear=function(){return this.proxy.getYear()%
100};q.prototype.getTime=function(){return this.proxy.getTime()};q.prototype.getTimezoneAbbr=function(){return this.proxy.toString().replace(/^.*\(([^)]+)\)$/,"$1")};q.prototype.getTimezoneName=function(){var a=/(?:\((.+)\)$| ([A-Z]{3}) )/.exec(this.toString());return a[1]||a[2]||"GMT"+this.getGmtOffset()};q.prototype.getTimezoneOffset=function(){return this.proxy.getTimezoneOffset()};q.prototype.getWeekOfYear=function(){var a=this.getDayOfYear(),c=7-this.getDayOfWeek();return parseInt((a+c)/7,10)};
q.prototype.getUnix=function(){return Math.round(this.proxy.getTime()/1E3,0)};q.prototype.getYear=function(){return this.proxy.getYear()};q.prototype.next=function(a){a=a||"day";return this.clone().add(1,a)};q.prototype.set=function(){switch(arguments.length){case 0:this.proxy=new Date;break;case 1:if(ea(arguments[0])=="[object Object]"&&arguments[0]._type!="jsDate"){var a=this.options=arguments[0];this.syntax=a.syntax||this.syntax;this.defaultCentury=a.defaultCentury||this.defaultCentury;this.proxy=
q.createDate(a.date)}else this.proxy=q.createDate(arguments[0]);break;default:a=[];for(var c=0;c<arguments.length;c++)a.push(arguments[c]);this.proxy=new Date;this.proxy.setFullYear.apply(this.proxy,a.slice(0,3));a.slice(3).length&&this.proxy.setHours.apply(this.proxy,a.slice(3))}return this};q.prototype.setDate=function(a){this.proxy.setDate(a);return this};q.prototype.setFullYear=function(){this.proxy.setFullYear.apply(this.proxy,arguments);return this};q.prototype.setHours=function(){this.proxy.setHours.apply(this.proxy,
arguments);return this};q.prototype.setMilliseconds=function(a){this.proxy.setMilliseconds(a);return this};q.prototype.setMinutes=function(){this.proxy.setMinutes.apply(this.proxy,arguments);return this};q.prototype.setMonth=function(){this.proxy.setMonth.apply(this.proxy,arguments);return this};q.prototype.setSeconds=function(){this.proxy.setSeconds.apply(this.proxy,arguments);return this};q.prototype.setTime=function(a){this.proxy.setTime(a);return this};q.prototype.setYear=function(){this.proxy.setYear.apply(this.proxy,
arguments);return this};q.prototype.strftime=function(a){a=a||this.formatString||q.regional[this.locale].formatString;return q.strftime(this,a,this.syntax)};q.prototype.toString=function(){return this.proxy.toString()};q.prototype.toYmdInt=function(){return this.proxy.getFullYear()*1E4+this.getMonthNumber()*100+this.proxy.getDate()};q.regional={en:{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],formatString:"%Y-%m-%d %H:%M:%S"},fr:{monthNames:["Janvier","F\u00e9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\u00fbt","Septembre","Octobre","Novembre","D\u00e9cembre"],monthNamesShort:["Jan","F\u00e9v","Mar","Avr","Mai","Jun","Jul","Ao\u00fb","Sep","Oct","Nov","D\u00e9c"],dayNames:["Dimanche",
"Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],formatString:"%Y-%m-%d %H:%M:%S"},de:{monthNames:["Januar","Februar","M\u00e4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M\u00e4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr",
"Sa"],formatString:"%Y-%m-%d %H:%M:%S"},es:{monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado"],dayNamesShort:["Dom","Lun","Mar","Mi&eacute;","Juv","Vie","S&aacute;b"],formatString:"%Y-%m-%d %H:%M:%S"},ru:{monthNames:["\u042f\u043d\u0432\u0430\u0440\u044c",
"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],monthNamesShort:["\u042f\u043d\u0432","\u0424\u0435\u0432","\u041c\u0430\u0440","\u0410\u043f\u0440",
"\u041c\u0430\u0439","\u0418\u044e\u043d","\u0418\u044e\u043b","\u0410\u0432\u0433","\u0421\u0435\u043d","\u041e\u043a\u0442","\u041d\u043e\u044f","\u0414\u0435\u043a"],dayNames:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"],
dayNamesShort:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0431\u0442"],formatString:"%Y-%m-%d %H:%M:%S"},ar:{monthNames:["\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0634\u0628\u0627\u0637","\u0622\u0630\u0627\u0631","\u0646\u064a\u0633\u0627\u0646","\u0622\u0630\u0627\u0631","\u062d\u0632\u064a\u0631\u0627\u0646","\u062a\u0645\u0648\u0632","\u0622\u0628","\u0623\u064a\u0644\u0648\u0644",
"\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644","\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["\u0627\u0644\u0633\u0628\u062a","\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633",
"\u0627\u0644\u062c\u0645\u0639\u0629"],dayNamesShort:["\u0633\u0628\u062a","\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629"],formatString:"%Y-%m-%d %H:%M:%S"},pt:{monthNames:["Janeiro","Fevereiro","Mar&ccedil;o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set",
"Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Ter&ccedil;a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S&aacute;bado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","S&aacute;b"],formatString:"%Y-%m-%d %H:%M:%S"},"pt-BR":{monthNames:["Janeiro","Fevereiro","Mar&ccedil;o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira",
"Ter&ccedil;a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S&aacute;bado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","S&aacute;b"],formatString:"%Y-%m-%d %H:%M:%S"}};q.regional["en-US"]=q.regional["en-GB"]=q.regional.en;q.regional.getLocale=function(){var a=q.config.defaultLocale;if(document&&document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang){a=document.getElementsByTagName("html")[0].lang;if(!q.regional.hasOwnProperty(a))a=q.config.defaultLocale}return a};
var fa=function(a,c){a=String(a);return String(Math.pow(10,c-a.length)).slice(1).concat(a)},R={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:{add:function(a,c){R.year.add(a,Math[c>0?"floor":"ceil"](c/12));var d=a.getMonth()+c%12;if(d==12){d=0;a.setYear(a.getFullYear()+1)}else if(d==-1){d=11;a.setYear(a.getFullYear()-1)}a.setMonth(d)},diff:function(a,c){var d=a.getFullYear()-c.getFullYear();d=a.getMonth()-c.getMonth()+d*12;var b=a.getDate()-c.getDate();return d+b/30}},year:{add:function(a,
c){a.setYear(a.getFullYear()+Math[c>0?"floor":"ceil"](c))},diff:function(a,c){return R.month.diff(a,c)/12}}},aa;for(aa in R)if(aa.substring(aa.length-1)!="s")R[aa+"s"]=R[aa];q.strftime=function(a,c,d,b){var e="perl",i=q.regional.getLocale();if(d&&q.formats.hasOwnProperty(d))e=d;else if(d&&q.regional.hasOwnProperty(d))i=d;if(b&&q.formats.hasOwnProperty(b))e=b;else if(b&&q.regional.hasOwnProperty(b))i=b;if(ea(a)!="[object Object]"||a._type!="jsDate"){a=new q(a);a.locale=i}c||(c=a.formatString||q.regional[i].formatString);
c=c||"%Y-%m-%d";for(b="";c.length>0;)if(d=c.match(q.formats[e].codes.matcher)){b+=c.slice(0,d.index);b=b;i=d[1]||"";var g;g=a;var h=d[2],k=e;if(q.formats[k].shortcuts[h])g=q.strftime(g,q.formats[k].shortcuts[h],k);else{h=(q.formats[k].codes[h]||"").split(".");g=g["get"+h[0]]?g["get"+h[0]]():"";if(h[1])g=fa(g,h[1]);g=g}b=b+(i+g);c=c.slice(d.index+d[0].length)}else{b+=c;c=""}return b};q.formats={ISO:"%Y-%m-%dT%H:%M:%S.%N%G",SQL:"%Y-%m-%d %H:%M:%S"};q.formats.perl={codes:{matcher:/()%(#?(%|[a-z]))/i,
Y:"FullYear",y:"ShortYear.2",m:"MonthNumber.2","#m":"MonthNumber",B:"MonthName",b:"AbbrMonthName",d:"Date.2","#d":"Date",e:"Date",A:"DayName",a:"AbbrDayName",w:"Day",H:"Hours.2","#H":"Hours",I:"Hours12.2","#I":"Hours12",p:"AMPM",M:"Minutes.2","#M":"Minutes",S:"Seconds.2","#S":"Seconds",s:"Unix",N:"Milliseconds.3","#N":"Milliseconds",O:"TimezoneOffset",Z:"TimezoneName",G:"GmtOffset"},shortcuts:{F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",D:"%m/%d/%y","#c":"%a %b %e %H:%M:%S %Y",v:"%e-%b-%Y",
R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}};q.formats.php={codes:{matcher:/()%((%|[a-z]))/i,a:"AbbrDayName",A:"DayName",d:"Date.2",e:"Date",j:"DayOfYear.3",u:"DayOfWeek",w:"Day",U:"FullWeekOfYear.2",V:"IsoWeek.2",W:"WeekOfYear.2",b:"AbbrMonthName",B:"MonthName",m:"MonthNumber.2",h:"AbbrMonthName",C:"Century.2",y:"ShortYear.2",Y:"FullYear",H:"Hours.2",I:"Hours12.2",l:"Hours12",p:"AMPM",P:"AmPm",M:"Minutes.2",S:"Seconds.2",s:"Unix",O:"TimezoneOffset",z:"GmtOffset",Z:"TimezoneAbbr"},shortcuts:{D:"%m/%d/%y",
F:"%Y-%m-%d",T:"%H:%M:%S",X:"%H:%M:%S",x:"%m/%d/%y",R:"%H:%M",r:"%I:%M:%S %p",t:"\t",n:"\n","%":"%"}};q.createDate=function(a){function c(g,h){var k=parseFloat(h[1]),j=parseFloat(h[2]),n=parseFloat(h[3]),l=q.config.defaultCentury,m;if(k>31){m=n;j=j;k=l+k}else{m=j;j=k;k=l+n}return g.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,j+"/"+m+"/"+k)}if(a==null)return new Date;if(a instanceof Date)return a;if(typeof a=="number")return new Date(a);a=String(a).replace(/^\s*(.+)\s*$/g,"$1");a=a.replace(/^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,4})/,
"$1/$2/$3");a=a.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{4})/i,"$1 $2 $3");var d=a.match(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i);if(d&&d.length>3){var b=parseFloat(d[3]);b=q.config.defaultCentury+b;b=String(b);a=a.replace(/^(3[01]|[0-2]?\d)[-\/]([a-z]{3,})[-\/](\d{2})\D*/i,d[1]+" "+d[2]+" "+b)}if((d=a.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})[^0-9]/))&&d.length>3)a=c(a,d);if((d=a.match(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})$/))&&d.length>3)a=c(a,d);d=
0;b=q.matchers.length;for(var e,i=a;d<b;){e=Date.parse(i);if(!isNaN(e))return new Date(e);e=q.matchers[d];if(typeof e=="function"){e=e.call(q,i);if(e instanceof Date)return e}else i=a.replace(e[0],e[1]);d++}return NaN};q.daysInMonth=function(a,c){if(c==2)return(new Date(a,1,29)).getDate()==29?29:28;return[D,31,D,31,30,31,30,31,31,30,31,30,31][c]};q.matchers=[[/(3[01]|[0-2]\d)\s*\.\s*(1[0-2]|0\d)\s*\.\s*([1-9]\d{3})/,"$2/$1/$3"],[/([1-9]\d{3})\s*-\s*(1[0-2]|0\d)\s*-\s*(3[01]|[0-2]\d)/,"$2/$3/$1"],
function(a){var c=a.match(/^(?:(.+)\s+)?([012]?\d)(?:\s*\:\s*(\d\d))?(?:\s*\:\s*(\d\d(\.\d*)?))?\s*(am|pm)?\s*$/i);if(c){if(c[1]){a=this.createDate(c[1]);if(isNaN(a))return}else{a=new Date;a.setMilliseconds(0)}var d=parseFloat(c[2]);if(c[6])d=c[6].toLowerCase()=="am"?d==12?0:d:d==12?12:d+12;a.setHours(d,parseInt(c[3]||0,10),parseInt(c[4]||0,10),(parseFloat(c[5]||0)||0)*1E3);return a}else return a},function(a){var c=a.match(/^(?:(.+))[T|\s+]([012]\d)(?:\:(\d\d))(?:\:(\d\d))(?:\.\d+)([\+\-]\d\d\:\d\d)$/i);
if(c){if(c[1]){a=this.createDate(c[1]);if(isNaN(a))return}else{a=new Date;a.setMilliseconds(0)}var d=parseFloat(c[2]);a.setHours(d,parseInt(c[3],10),parseInt(c[4],10),parseFloat(c[5])*1E3);return a}else return a},function(a){var c=a.match(/^([0-3]?\d)\s*[-\/.\s]{1}\s*([a-zA-Z]{3,9})\s*[-\/.\s]{1}\s*([0-3]?\d)$/);if(c){a=new Date;var d=q.config.defaultCentury,b=parseFloat(c[1]),e=parseFloat(c[3]),i;if(b>31){i=e;d=d+b}else{i=b;d=d+e}b=ja(c[2],q.regional[q.regional.getLocale()].monthNamesShort);if(b==
-1)b=ja(c[2],q.regional[q.regional.getLocale()].monthNames);a.setFullYear(d,b,i);a.setHours(0,0,0,0);return a}else return a}];f.jsDate=q;f.jqplot.sprintf=function(){function a(g,h,k,j){h=g.length>=h?"":Array(1+h-g.length>>>0).join(k);return j?g+h:h+g}function c(g){g=new String(g);for(var h=10;h>0;h--)if(g==(g=g.replace(/^(\d+)(\d{3})/,"$1"+f.jqplot.sprintf.thousandsSeparator+"$2")))break;return g}function d(g,h,k,j,n,l){var m=j-g.length;if(m>0){var o=" ";if(l)o="&nbsp;";g=k||!n?a(g,j,o,k):g.slice(0,
h.length)+a("",m,"0",true)+g.slice(h.length)}return g}function b(g,h,k,j,n,l,m,o){g=g>>>0;k=k&&g&&{"2":"0b","8":"0","16":"0x"}[h]||"";g=k+a(g.toString(h),l||0,"0",false);return d(g,k,j,n,m,o)}var e=arguments,i=0;return e[i++].replace(f.jqplot.sprintf.regex,function(g,h,k,j,n,l,m){if(g=="%%")return"%";for(var o=false,t="",r=false,p=false,w=n=false,v=0;k&&v<k.length;v++)switch(k.charAt(v)){case " ":t=" ";break;case "+":t="+";break;case "-":o=true;break;case "0":r=true;break;case "#":p=true;break;case "&":n=
true;break;case "'":w=true}j=j?j=="*"?+e[i++]:j.charAt(0)=="*"?+e[j.slice(1,-1)]:+j:0;if(j<0){j=-j;o=true}if(!isFinite(j))throw Error("$.jqplot.sprintf: (minimum-)width must be finite");l=l?l=="*"?+e[i++]:l.charAt(0)=="*"?+e[l.slice(1,-1)]:+l:"fFeE".indexOf(m)>-1?6:m=="d"?0:void 0;h=h?e[h.slice(0,-1)]:e[i++];switch(m){case "s":if(h==null)return"";m=String(h);o=o;j=j;r=r;n=n;if(l!=null)m=m.slice(0,l);return d(m,"",o,j,r,n);case "c":m=String.fromCharCode(+h);o=o;j=j;r=r;n=n;if(l!=null)m=m.slice(0,l);
return d(m,"",o,j,r,n);case "b":return b(h,2,p,o,j,l,r,n);case "o":return b(h,8,p,o,j,l,r,n);case "x":return b(h,16,p,o,j,l,r,n);case "X":return b(h,16,p,o,j,l,r,n).toUpperCase();case "u":return b(h,10,p,o,j,l,r,n);case "i":h=parseInt(+h,10);if(isNaN(h))return"";g=h<0?"-":t;t=w?c(String(Math.abs(h))):String(Math.abs(h));h=g+a(t,l,"0",false);return d(h,g,o,j,r,n);case "d":h=Math.round(+h);if(isNaN(h))return"";g=h<0?"-":t;t=w?c(String(Math.abs(h))):String(Math.abs(h));h=g+a(t,l,"0",false);return d(h,
g,o,j,r,n);case "e":case "E":case "f":case "F":case "g":case "G":h=+h;if(isNaN(h))return"";g=h<0?"-":t;t=["toExponential","toFixed","toPrecision"]["efg".indexOf(m.toLowerCase())];m=["toString","toUpperCase"]["eEfFgG".indexOf(m)%2];t=Math.abs(h)[t](l);t=w?c(t):t;h=g+t;return d(h,g,o,j,r,n)[m]();case "p":case "P":h=+h;if(isNaN(h))return"";g=h<0?"-":t;t=String(Number(Math.abs(h)).toExponential()).split(/e|E/);w=t[0].indexOf(".")!=-1?t[0].length-1:t[0].length;t=t[1]<0?-t[1]-1:0;h=Math.abs(h)<1?w+t<=l?
g+Math.abs(h).toPrecision(w):w<=l-1?g+Math.abs(h).toExponential(w-1):g+Math.abs(h).toExponential(l-1):g+Math.abs(h).toPrecision(w<=l?w:l);m=["toString","toUpperCase"]["pP".indexOf(m)%2];return d(h,g,o,j,r,n)[m]();case "n":return"";default:return g}})};f.jqplot.sprintf.thousandsSeparator=",";f.jqplot.sprintf.regex=/%%|%(\d+\$)?([-+#0&\' ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([nAscboxXuidfegpEGP])/g;f.jqplot.getSignificantFigures=function(a){var c=String(Number(Math.abs(a)).toExponential()).split(/e|E/);
a=c[0].indexOf(".")!=-1?c[0].length-1:c[0].length;var d=c[1]<0?-c[1]-1:0;c=parseInt(c[1],10);var b=c+1>0?c+1:0;return{significantDigits:a,digitsLeft:b,digitsRight:a<=b?0:a-c-1,zeros:d,exponent:c}};f.jqplot.getPrecision=function(a){return f.jqplot.getSignificantFigures(a).digitsRight}})(jQuery);var backCompat=$.uiBackCompat!==false;$.jqplot.effects={effect:{}};var dataSpace="jqplot.storage.";
$.extend($.jqplot.effects,{version:"1.9pre",save:function(f,s){for(var u=0;u<s.length;u++)s[u]!==null&&f.data(dataSpace+s[u],f[0].style[s[u]])},restore:function(f,s){for(var u=0;u<s.length;u++)s[u]!==null&&f.css(s[u],f.data(dataSpace+s[u]))},setMode:function(f,s){if(s==="toggle")s=f.is(":hidden")?"show":"hide";return s},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper"))return f.parent();var s={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")},u=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",
background:"transparent",border:"none",margin:0,padding:0}),A={width:f.width(),height:f.height()},B=document.activeElement;f.wrap(u);if(f[0]===B||$.contains(f[0],B))$(B).focus();u=f.parent();if(f.css("position")==="static"){u.css({position:"relative"});f.css({position:"relative"})}else{$.extend(s,{position:f.css("position"),zIndex:f.css("z-index")});$.each(["top","left","bottom","right"],function(E,F){s[F]=f.css(F);if(isNaN(parseInt(s[F],10)))s[F]="auto"});f.css({position:"relative",top:0,left:0,
right:"auto",bottom:"auto"})}f.css(A);return u.css(s).show()},removeWrapper:function(f){var s=document.activeElement;if(f.parent().is(".ui-effects-wrapper")){f.parent().replaceWith(f);if(f[0]===s||$.contains(f[0],s))$(s).focus()}return f}});
function _normalizeArguments(f,s,u,A){if($.isPlainObject(f))return f;f={effect:f};if(s===undefined)s={};if($.isFunction(s)){A=s;u=null;s={}}if($.type(s)==="number"||$.fx.speeds[s]){A=u;u=s;s={}}if($.isFunction(u)){A=u;u=null}s&&$.extend(f,s);u=u||s.duration;f.duration=$.fx.off?0:typeof u==="number"?u:u in $.fx.speeds?$.fx.speeds[u]:$.fx.speeds._default;f.complete=A||s.complete;return f}
function standardSpeed(f){if(!f||typeof f==="number"||$.fx.speeds[f])return true;if(typeof f==="string"&&!$.jqplot.effects.effect[f]){if(backCompat&&$.jqplot.effects[f])return false;return true}return false}
$.fn.extend({jqplotEffect:function(){function f(F){function K(){$.isFunction(J)&&J.call(I[0]);$.isFunction(F)&&F()}var I=$(this),J=s.complete,T=s.mode;(I.is(":hidden")?T==="hide":T==="show")?K():B.call(I[0],s,K)}var s=_normalizeArguments.apply(this,arguments),u=s.mode,A=s.queue,B=$.jqplot.effects.effect[s.effect],E=!B&&backCompat&&$.jqplot.effects[s.effect];if($.fx.off||!(B||E))return u?this[u](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)});return B?A===false?this.each(f):
this.queue(A||"fx",f):E.call(this,{options:s,duration:s.duration,callback:s.complete,mode:s.mode})}});var rvertical=/up|down|vertical/,rpositivemotion=/up|left|vertical|horizontal/;
$.jqplot.effects.effect.blind=function(f,s){var u=$(this),A=["position","top","bottom","left","right","height","width"],B=$.jqplot.effects.setMode(u,f.mode||"hide"),E=f.direction||"up",F=rvertical.test(E),K=F?"height":"width",I=F?"top":"left";E=rpositivemotion.test(E);var J={},T=B==="show",U,O;u.parent().is(".ui-effects-wrapper")?$.jqplot.effects.save(u.parent(),A):$.jqplot.effects.save(u,A);u.show();O=parseInt(u.css("top"),10);U=$.jqplot.effects.createWrapper(u).css({overflow:"hidden"});O=F?U[K]()+
O:U[K]();J[K]=T?String(O):"0";if(!E){u.css(F?"bottom":"right",0).css(F?"top":"left","").css({position:"absolute"});J[I]=T?"0":String(O)}if(T){U.css(K,0);E||U.css(I,O)}U.animate(J,{duration:f.duration,easing:f.easing,queue:false,complete:function(){B==="hide"&&u.hide();$.jqplot.effects.restore(u,A);$.jqplot.effects.removeWrapper(u);s()}})};
