(function(n){function c(n,t,i){for(var f=Number.MAX_VALUE,u,o,s,r=0,c=e.length;r<c;r++)u=Math.abs(i-e[r]),u<f&&(f=u,o=e[r],s=h[r]);return[o,s]}n.jqplot.DateAxisRenderer=function(){n.jqplot.LinearAxisRenderer.call(this);this.date=new n.jsDate};var t=1e3,r=60*t,u=60*r,i=24*u,o=7*i,f=30.4368499*i,s=365.242199*i,h=["%M:%S.%#N","%M:%S.%#N","%M:%S.%#N","%M:%S","%M:%S","%M:%S","%M:%S","%H:%M:%S","%H:%M:%S","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%H:%M","%a %H:%M","%a %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%b %e %H:%M","%v","%v","%v","%v","%v","%v","%v"],e=[.1*t,.2*t,.5*t,t,2*t,5*t,10*t,15*t,30*t,r,2*r,5*r,10*r,15*r,30*r,u,2*u,4*u,6*u,8*u,12*u,i,2*i,3*i,4*i,5*i,o,2*o];n.jqplot.DateAxisRenderer.prototype=new n.jqplot.LinearAxisRenderer;n.jqplot.DateAxisRenderer.prototype.constructor=n.jqplot.DateAxisRenderer;n.jqplot.DateTickFormatter=function(t,i){return t||(t="%Y/%m/%d"),n.jsDate.strftime(i,t)};n.jqplot.DateAxisRenderer.prototype.init=function(t){var u,e,h,s,r,c,l,o,a,f,i,v,p,w,y;for(this.tickOptions.formatter=n.jqplot.DateTickFormatter,this.tickInset=0,this.drawBaseline=!0,this.baselineWidth=null,this.baselineColor=null,this.daTickInterval=null,this._daTickInterval=null,n.extend(!0,this,t),u=this._dataBounds,a=0;a<this._series.length;a++){for(e={intervals:[],frequencies:{},sortedIntervals:[],min:null,max:null,mean:null},h=0,s=this._series[a],r=s.data,c=s._plotData,l=s._stackData,o=0,i=0;i<r.length;i++)this.name=="xaxis"||this.name=="x2axis"?(r[i][0]=new n.jsDate(r[i][0]).getTime(),c[i][0]=new n.jsDate(r[i][0]).getTime(),l[i][0]=new n.jsDate(r[i][0]).getTime(),(r[i][0]!=null&&r[i][0]<u.min||u.min==null)&&(u.min=r[i][0]),(r[i][0]!=null&&r[i][0]>u.max||u.max==null)&&(u.max=r[i][0]),i>0&&(o=Math.abs(r[i][0]-r[i-1][0]),e.intervals.push(o),e.frequencies.hasOwnProperty(o)?e.frequencies[o]+=1:e.frequencies[o]=1),h+=o):(r[i][1]=new n.jsDate(r[i][1]).getTime(),c[i][1]=new n.jsDate(r[i][1]).getTime(),l[i][1]=new n.jsDate(r[i][1]).getTime(),(r[i][1]!=null&&r[i][1]<u.min||u.min==null)&&(u.min=r[i][1]),(r[i][1]!=null&&r[i][1]>u.max||u.max==null)&&(u.max=r[i][1]),i>0&&(o=Math.abs(r[i][1]-r[i-1][1]),e.intervals.push(o),e.frequencies.hasOwnProperty(o)?e.frequencies[o]+=1:e.frequencies[o]=1)),h+=o;if(s.renderer.bands){if(s.renderer.bands.hiData.length)for(f=s.renderer.bands.hiData,i=0,v=f.length;i<v;i++)this.name==="xaxis"||this.name==="x2axis"?(f[i][0]=new n.jsDate(f[i][0]).getTime(),(f[i][0]!=null&&f[i][0]>u.max||u.max==null)&&(u.max=f[i][0])):(f[i][1]=new n.jsDate(f[i][1]).getTime(),(f[i][1]!=null&&f[i][1]>u.max||u.max==null)&&(u.max=f[i][1]));if(s.renderer.bands.lowData.length)for(f=s.renderer.bands.lowData,i=0,v=f.length;i<v;i++)this.name==="xaxis"||this.name==="x2axis"?(f[i][0]=new n.jsDate(f[i][0]).getTime(),(f[i][0]!=null&&f[i][0]<u.min||u.min==null)&&(u.min=f[i][0])):(f[i][1]=new n.jsDate(f[i][1]).getTime(),(f[i][1]!=null&&f[i][1]<u.min||u.min==null)&&(u.min=f[i][1]))}p=0;w=0;for(y in e.frequencies)e.sortedIntervals.push({interval:y,frequency:e.frequencies[y]});e.sortedIntervals.sort(function(n,t){return t.frequency-n.frequency});e.min=n.jqplot.arrayMin(e.intervals);e.max=n.jqplot.arrayMax(e.intervals);e.mean=h/r.length;this._intervalStats.push(e);e=h=s=r=c=l=null}u=null};n.jqplot.DateAxisRenderer.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="";this._overrideFormatString&&this.tickOptions&&this.tickOptions.formatString&&(this.tickOptions.formatString="");this.daTickInterval=this._daTickInterval};n.jqplot.DateAxisRenderer.prototype.createTicks=function(t){var kt=this._ticks,rt=this.ticks,ct=this.name,k=this._dataBounds,ii=this._intervalStats,nt=this.name.charAt(0)==="x"?this._plotDimensions.width:this._plotDimensions.height,l,lt,at=30,p=1,w=null,d,dt,ut,g,tt,et,ft,b,o,v,vt,ot,st,y,yt,h,ht,ti,pt,wt,bt,u,e,r;if(this.tickInterval!=null&&(Number(this.tickInterval)?w=[Number(this.tickInterval),"seconds"]:typeof this.tickInterval=="string"&&(d=this.tickInterval.split(" "),d.length==1?w=[1,d[0]]:d.length==2&&(w=[d[0],d[1]]))),dt=this.tickInterval,e=new n.jsDate(this.min!=null?this.min:k.min).getTime(),l=new n.jsDate(this.max!=null?this.max:k.max).getTime(),ut=t.plugins.cursor,ut&&ut._zoom&&ut._zoom.zooming&&(this.min=null,this.max=null),g=l-e,this.tickOptions!=null&&this.tickOptions.formatString||(this._overrideFormatString=!0),rt.length){for(u=0;u<rt.length;u++)tt=rt[u],r=new this.tickRenderer(this.tickOptions),tt.constructor==Array?(r.value=new n.jsDate(tt[0]).getTime(),r.label=tt[1],this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),r.setTick(r.value,this.name),this._ticks.push(r)):(r.value=new n.jsDate(tt).getTime(),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),r.setTick(r.value,this.name),this._ticks.push(r));this.numberTicks=rt.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.daTickInterval=[(this.max-this.min)/(this.numberTicks-1)/1e3,"seconds"]}else if(this.min==null&&this.max==null&&k.min==k.max){for(et=n.extend(!0,{},this.tickOptions,{name:this.name,value:null}),ft=3e5,this.min=k.min-ft,this.max=k.max+ft,this.numberTicks=3,u=this.min;u<=this.max;u+=ft)et.value=u,r=new this.tickRenderer(et),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),r.showLabel=!1,r.showMark=!1,this._ticks.push(r);this.showTicks&&(this._ticks[1].showLabel=!0);this.showTickMarks&&(this._ticks[1].showTickMarks=!0)}else if(this.min==null&&this.max==null)if(b=n.extend(!0,{},this.tickOptions,{name:this.name,value:null}),this.tickInterval||this.numberTicks?this.tickInterval?v=new n.jsDate(0).add(w[0],w[1]).getTime():this.numberTicks&&(o=this.numberTicks,v=(l-e)/(o-1)):(vt=Math.max(nt,at+1),ot=115,this.tickRenderer===n.jqplot.CanvasAxisTickRenderer&&this.tickOptions.angle&&(ot=115-40*Math.abs(Math.sin(this.tickOptions.angle/180*Math.PI))),o=Math.ceil((vt-at)/ot+1),v=(l-e)/(o-1)),v<=19*i){for(st=c(e,l,v),y=st[0],this._autoFormatString=st[1],e=new n.jsDate(e),e=Math.floor((e.getTime()-e.getUtcOffset())/y)*y+e.getUtcOffset(),o=Math.ceil((l-e)/y)+1,this.min=e,this.max=e+(o-1)*y,this.max<l&&(this.max+=y,o+=1),this.tickInterval=y,this.numberTicks=o,u=0;u<o;u++)b.value=this.min+u*y,r=new this.tickRenderer(b),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),this._ticks.push(r);p=this.tickInterval}else if(v<=9*f){this._autoFormatString="%v";h=Math.round(v/f);h<1?h=1:h>6&&(h=6);var a=new n.jsDate(e).setDate(1).setHours(0,0,0,0),gt=new n.jsDate(l),it=new n.jsDate(l).setDate(1).setHours(0,0,0,0);for(gt.getTime()!==it.getTime()&&(it=it.add(1,"month")),yt=it.diff(a,"month"),o=Math.ceil(yt/h)+1,this.min=a.getTime(),this.max=a.clone().add((o-1)*h,"month").getTime(),this.numberTicks=o,u=0;u<o;u++)b.value=u===0?a.getTime():a.add(h,"month").getTime(),r=new this.tickRenderer(b),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),this._ticks.push(r);p=h*f}else{this._autoFormatString="%v";h=Math.round(v/s);h<1&&(h=1);var a=new n.jsDate(e).setMonth(0,1).setHours(0,0,0,0),it=new n.jsDate(l).add(1,"year").setMonth(0,1).setHours(0,0,0,0),ni=it.diff(a,"year");for(o=Math.ceil(ni/h)+1,this.min=a.getTime(),this.max=a.clone().add((o-1)*h,"year").getTime(),this.numberTicks=o,u=0;u<o;u++)b.value=u===0?a.getTime():a.add(h,"year").getTime(),r=new this.tickRenderer(b),this._overrideFormatString&&this._autoFormatString!=""&&(r.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),this._ticks.push(r);p=h*s}else for(nt=ct=="xaxis"||ct=="x2axis"?this._plotDimensions.width:this._plotDimensions.height,this.min!=null&&this.max!=null&&this.numberTicks!=null&&(this.tickInterval=null),this.tickInterval!=null&&w!=null&&(this.daTickInterval=w),e==l&&(ht=432e5,e-=ht,l+=ht),g=l-e,ti=2+parseInt(Math.max(0,nt-100)/100,10),pt=this.min!=null?new n.jsDate(this.min).getTime():e-g/2*(this.padMin-1),wt=this.max!=null?new n.jsDate(this.max).getTime():l+g/2*(this.padMax-1),this.min=pt,this.max=wt,g=this.max-this.min,this.numberTicks==null&&(this.daTickInterval!=null?(bt=new n.jsDate(this.max).diff(this.min,this.daTickInterval[1],!0),this.numberTicks=Math.ceil(bt/this.daTickInterval[0])+1,this.max=new n.jsDate(this.min).add((this.numberTicks-1)*this.daTickInterval[0],this.daTickInterval[1]).getTime()):this.numberTicks=nt>200?parseInt(3+(nt-200)/100,10):2),p=g/(this.numberTicks-1)/1e3,this.daTickInterval==null&&(this.daTickInterval=[p,"seconds"]),u=0;u<this.numberTicks;u++)e=new n.jsDate(this.min),lt=e.add(u*this.daTickInterval[0],this.daTickInterval[1]).getTime(),r=new this.tickRenderer(this.tickOptions),this.showTicks?this.showTickMarks||(r.showMark=!1):(r.showLabel=!1,r.showMark=!1),r.setTick(lt,this.name),this._ticks.push(r);this.tickInset&&(this.min=this.min-this.tickInset*p,this.max=this.max+this.tickInset*p);this._daTickInterval==null&&(this._daTickInterval=this.daTickInterval);kt=null}})(jQuery),function(n){n.jqplot.LogAxisRenderer=function(){n.jqplot.LinearAxisRenderer.call(this);this.axisDefaults={base:10,tickDistribution:"power"}};n.jqplot.LogAxisRenderer.prototype=new n.jqplot.LinearAxisRenderer;n.jqplot.LogAxisRenderer.prototype.constructor=n.jqplot.LogAxisRenderer;n.jqplot.LogAxisRenderer.prototype.init=function(t){this.drawBaseline=!0;this.minorTicks="auto";this._scalefact=1;n.extend(!0,this,t);this._autoFormatString="%d";this._overrideFormatString=!1;for(var i in this.renderer.axisDefaults)this[i]==null&&(this[i]=this.renderer.axisDefaults[i]);this.resetDataBounds()};n.jqplot.LogAxisRenderer.prototype.createTicks=function(){var ht=this._ticks,a=this.ticks,ct=this.name,nt=this._dataBounds,v=this.name.charAt(0)==="x"?this._plotDimensions.width:this._plotDimensions.height,s,h,k,y=30,f,d,c,it,e,ft,r,u,o,t,rt,p,et,tt,w,l,b,ut,i;if(this._scalefact=(Math.max(v,y+1)-y)/300,a.length){for(i=0;i<a.length;i++)f=a[i],t=new this.tickRenderer(this.tickOptions),f.constructor==Array?(t.value=f[0],t.label=f[1],this.showTicks?this.showTickMarks||(t.showMark=!1):(t.showLabel=!1,t.showMark=!1),t.setTick(f[0],this.name),this._ticks.push(t)):n.isPlainObject(f)?(n.extend(!0,t,f),t.axis=this.name,this._ticks.push(t)):(t.value=f,this.showTicks?this.showTickMarks||(t.showMark=!1):(t.showLabel=!1,t.showMark=!1),t.setTick(f,this.name),this._ticks.push(t));this.numberTicks=a.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value}else if(this.min==null&&this.max==null){if(s=nt.min*(2-this.padMin),h=nt.max*this.padMax,s==h&&(d=.05,s=s*(1-d),h=h*(1+d)),this.min!=null&&this.min<=0)throw new Error("Log axis minimum must be greater than 0");if(this.max!=null&&this.max<=0)throw new Error("Log axis maximum must be greater than 0");function lt(n){var t=Math.pow(10,Math.floor(Math.log(n)/Math.LN10));return Math.ceil(n/t)*t}function at(n){var t=Math.pow(10,Math.floor(Math.log(n)/Math.LN10));return Math.floor(n/t)*t}for(c=Math.pow(this.base,Math.floor(Math.log(s)/Math.log(this.base))),it=Math.pow(this.base,Math.ceil(Math.log(h)/Math.log(this.base))),c===0&&(c=1),e=Math.round(Math.log(c)/Math.LN10),this.tickOptions!=null&&this.tickOptions.formatString||(this._overrideFormatString=!0),this.min=c,this.max=it,ft=this.max-this.min,r=this.minorTicks==="auto"?0:this.minorTicks,this.numberTicks==null?v>140?(u=Math.round(Math.log(this.max/this.min)/Math.log(this.base)+1),u<2&&(u=2),r===0&&(o=v/(u-1),r=o<100?0:o<190?1:o<250?3:o<600?4:9)):(u=2,r===0&&(r=1),r=0):u=this.numberTicks,e>=0&&r!==3?this._autoFormatString="%d":e<=0&&r===3?(o=-(e-1),this._autoFormatString="%."+Math.abs(e-1)+"f"):e<0?(o=-e,this._autoFormatString="%."+Math.abs(e)+"f"):this._autoFormatString="%d",i=0;i<u;i++)if(k=Math.pow(this.base,i-u+1)*this.max,t=new this.tickRenderer(this.tickOptions),this._overrideFormatString&&(t.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(t.showMark=!1):(t.showLabel=!1,t.showMark=!1),t.setTick(k,this.name),this._ticks.push(t),r&&i<u-1)for(p=Math.pow(this.base,i-u+2)*this.max,et=p-k,tt=p/(r+1),w=r-1;w>=0;w--)rt=p-tt*(w+1),t=new this.tickRenderer(this.tickOptions),this._overrideFormatString&&this._autoFormatString!=""&&(t.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(t.showMark=!1):(t.showLabel=!1,t.showMark=!1),t.setTick(rt,this.name),this._ticks.push(t)}else if(this.min!=null&&this.max!=null)if(l=n.extend(!0,{},this.tickOptions,{name:this.name,value:null}),this.numberTicks==null&&this.tickInterval==null){var ot=Math.max(v,y+1),st=Math.ceil((ot-y)/35+1),g=n.jqplot.LinearTickGenerator.bestConstrainedInterval(this.min,this.max,st);for(this._autoFormatString=g[3],b=g[2],ut=g[4],i=0;i<b;i++)l.value=this.min+i*ut,t=new this.tickRenderer(l),this._overrideFormatString&&this._autoFormatString!=""&&(t.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(t.showMark=!1):(t.showLabel=!1,t.showMark=!1),this._ticks.push(t)}else if(this.numberTicks!=null&&this.tickInterval!=null)for(b=this.numberTicks,i=0;i<b;i++)l.value=this.min+i*this.tickInterval,t=new this.tickRenderer(l),this._overrideFormatString&&this._autoFormatString!=""&&(t.formatString=this._autoFormatString),this.showTicks?this.showTickMarks||(t.showMark=!1):(t.showLabel=!1,t.showMark=!1),this._ticks.push(t)};n.jqplot.LogAxisRenderer.prototype.pack=function(t,i){var w=parseInt(this.base,10),c=this._ticks,s=function(n){return Math.log(n)/Math.log(w)},v=function(n){return Math.pow(Math.E,Math.log(w)*n)},y=s(this.max),h=s(this.min),b=i.max,l=i.min,k=this._label==null?!1:this._label.show,p,f,o,d,e,r,u,a,g;for(p in t)this._elem.css(p,t[p]);if(this._offsets=i,f=b-l,o=y-h,this.p2u=function(n){return v((n-l)*o/f+h)},this.u2p=function(n){return(s(n)-h)*f/o+l},this.name=="xaxis"||this.name=="x2axis"?(this.series_u2p=function(n){return(s(n)-h)*f/o},this.series_p2u=function(n){return v(n*o/f+h)}):(this.series_u2p=function(n){return(s(n)-y)*f/o},this.series_p2u=function(n){return v(n*o/f+y)}),this.show)if(this.name=="xaxis"||this.name=="x2axis"){for(e=0;e<c.length;e++)if(r=c[e],r.show&&r.showLabel){if(r.constructor==n.jqplot.CanvasAxisTickRenderer&&r.angle)switch(r.labelPosition){case"auto":u=r.angle<0?-r.getWidth()+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2:-r._textRenderer.height*Math.sin(r._textRenderer.angle)/2;break;case"end":u=-r.getWidth()+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2;break;case"start":u=-r._textRenderer.height*Math.sin(r._textRenderer.angle)/2;break;case"middle":u=-r.getWidth()/2+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2;break;default:u=-r.getWidth()/2+r._textRenderer.height*Math.sin(-r._textRenderer.angle)/2}else u=-r.getWidth()/2;a=this.u2p(r.value)+u+"px";r._elem.css("left",a);r.pack()}k&&(d=this._label._elem.outerWidth(!0),this._label._elem.css("left",l+f/2-d/2+"px"),this.name=="xaxis"?this._label._elem.css("bottom","0px"):this._label._elem.css("top","0px"),this._label.pack())}else{for(e=0;e<c.length;e++)if(r=c[e],r.show&&r.showLabel){if(r.constructor==n.jqplot.CanvasAxisTickRenderer&&r.angle)switch(r.labelPosition){case"auto":case"end":u=r.angle<0?-r._textRenderer.height*Math.cos(-r._textRenderer.angle)/2:-r.getHeight()+r._textRenderer.height*Math.cos(r._textRenderer.angle)/2;break;case"start":u=r.angle>0?-r._textRenderer.height*Math.cos(-r._textRenderer.angle)/2:-r.getHeight()+r._textRenderer.height*Math.cos(r._textRenderer.angle)/2;break;case"middle":u=-r.getHeight()/2;break;default:u=-r.getHeight()/2}else u=-r.getHeight()/2;a=this.u2p(r.value)+u+"px";r._elem.css("top",a);r.pack()}k&&(g=this._label._elem.outerHeight(!0),this._label._elem.css("top",b-f/2-g/2+"px"),this.name=="yaxis"?this._label._elem.css("left","0px"):this._label._elem.css("right","0px"),this._label.pack())}}}(jQuery),function(n){n.jqplot.CanvasTextRenderer=function(t){this.fontStyle="normal";this.fontVariant="normal";this.fontWeight="normal";this.fontSize="10px";this.fontFamily="sans-serif";this.fontStretch=1;this.fillStyle="#666666";this.angle=0;this.textAlign="start";this.textBaseline="alphabetic";this.text;this.width;this.height;this.pt2px=1.28;n.extend(!0,this,t);this.normalizedFontSize=this.normalizeFontSize(this.fontSize);this.setHeight()};n.jqplot.CanvasTextRenderer.prototype.init=function(t){n.extend(!0,this,t);this.normalizedFontSize=this.normalizeFontSize(this.fontSize);this.setHeight()};n.jqplot.CanvasTextRenderer.prototype.normalizeFontSize=function(n){n=String(n);var t=parseFloat(n);return n.indexOf("px")>-1?t/this.pt2px:n.indexOf("pt")>-1?t:n.indexOf("em")>-1?t*12:n.indexOf("%")>-1?t*12/100:t/this.pt2px};n.jqplot.CanvasTextRenderer.prototype.fontWeight2Float=function(n){if(Number(n))return n/400;switch(n){case"normal":return 1;case"bold":return 1.75;case"bolder":return 2.25;case"lighter":return.75;default:return 1}};n.jqplot.CanvasTextRenderer.prototype.getText=function(){return this.text};n.jqplot.CanvasTextRenderer.prototype.setText=function(n,t){return this.text=n,this.setWidth(t),this};n.jqplot.CanvasTextRenderer.prototype.getWidth=function(){return this.width};n.jqplot.CanvasTextRenderer.prototype.setWidth=function(n,t){return this.width=t?t:this.measure(n,this.text),this};n.jqplot.CanvasTextRenderer.prototype.getHeight=function(){return this.height};n.jqplot.CanvasTextRenderer.prototype.setHeight=function(n){return this.height=n?n:this.normalizedFontSize*this.pt2px,this};n.jqplot.CanvasTextRenderer.prototype.letter=function(n){return this.letters[n]};n.jqplot.CanvasTextRenderer.prototype.ascent=function(){return this.normalizedFontSize};n.jqplot.CanvasTextRenderer.prototype.descent=function(){return 7*this.normalizedFontSize/25};n.jqplot.CanvasTextRenderer.prototype.measure=function(n,t){for(var r,u=0,f=t.length,i=0;i<f;i++)r=this.letter(t.charAt(i)),r&&(u+=r.width*this.normalizedFontSize/25*this.fontStretch);return u};n.jqplot.CanvasTextRenderer.prototype.draw=function(n,t){var c=0,l=this.height*.72,v=t.length,r=this.normalizedFontSize/25,u,f,a,o,e,s,y,h,i;for(n.save(),-Math.PI/2<=this.angle&&this.angle<=0||Math.PI*3/2<=this.angle&&this.angle<=Math.PI*2?(u=0,f=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||-Math.PI*2<=this.angle&&this.angle<=-Math.PI*3/2?(u=Math.sin(this.angle)*this.height,f=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=Math.PI*3/2?(u=-Math.cos(this.angle)*this.width,f=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(-Math.PI*3/2<this.angle&&this.angle<Math.PI||Math.PI/2<this.angle&&this.angle<Math.PI)&&(u=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width,f=-Math.cos(this.angle)*this.height),n.strokeStyle=this.fillStyle,n.fillStyle=this.fillStyle,n.translate(u,f),n.rotate(this.angle),n.lineCap="round",a=this.normalizedFontSize>30?2:2+(30-this.normalizedFontSize)/20,n.lineWidth=a*r*this.fontWeight2Float(this.fontWeight),o=0;o<v;o++)if(e=this.letter(t.charAt(o)),e){for(n.beginPath(),s=1,y=0,h=0;h<e.points.length;h++){if(i=e.points[h],i[0]==-1&&i[1]==-1){s=1;continue}s?(n.moveTo(c+i[0]*r*this.fontStretch,l-i[1]*r),s=!1):n.lineTo(c+i[0]*r*this.fontStretch,l-i[1]*r)}n.stroke();c+=e.width*r*this.fontStretch}return n.restore(),0};n.jqplot.CanvasTextRenderer.prototype.letters={" ":{width:16,points:[]},"!":{width:10,points:[[5,21],[5,7],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},'"':{width:16,points:[[4,21],[4,14],[-1,-1],[12,21],[12,14]]},"#":{width:21,points:[[11,25],[4,-7],[-1,-1],[17,25],[10,-7],[-1,-1],[4,12],[18,12],[-1,-1],[3,6],[17,6]]},$:{width:20,points:[[8,25],[8,-4],[-1,-1],[12,25],[12,-4],[-1,-1],[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},"%":{width:24,points:[[21,21],[3,0],[-1,-1],[8,21],[10,19],[10,17],[9,15],[7,14],[5,14],[3,16],[3,18],[4,20],[6,21],[8,21],[10,20],[13,19],[16,19],[19,20],[21,21],[-1,-1],[17,7],[15,6],[14,4],[14,2],[16,0],[18,0],[20,1],[21,3],[21,5],[19,7],[17,7]]},"&":{width:26,points:[[23,12],[23,13],[22,14],[21,14],[20,13],[19,11],[17,6],[15,3],[13,1],[11,0],[7,0],[5,1],[4,2],[3,4],[3,6],[4,8],[5,9],[12,13],[13,14],[14,16],[14,18],[13,20],[11,21],[9,20],[8,18],[8,16],[9,13],[11,10],[16,3],[18,1],[20,0],[22,0],[23,1],[23,2]]},"'":{width:10,points:[[5,19],[4,20],[5,21],[6,20],[6,18],[5,16],[4,15]]},"(":{width:14,points:[[11,25],[9,23],[7,20],[5,16],[4,11],[4,7],[5,2],[7,-2],[9,-5],[11,-7]]},")":{width:14,points:[[3,25],[5,23],[7,20],[9,16],[10,11],[10,7],[9,2],[7,-2],[5,-5],[3,-7]]},"*":{width:16,points:[[8,21],[8,9],[-1,-1],[3,18],[13,12],[-1,-1],[13,18],[3,12]]},"+":{width:26,points:[[13,18],[13,0],[-1,-1],[4,9],[22,9]]},",":{width:10,points:[[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"-":{width:18,points:[[6,9],[12,9]]},".":{width:10,points:[[5,2],[4,1],[5,0],[6,1],[5,2]]},"/":{width:22,points:[[20,25],[2,-7]]},"0":{width:20,points:[[9,21],[6,20],[4,17],[3,12],[3,9],[4,4],[6,1],[9,0],[11,0],[14,1],[16,4],[17,9],[17,12],[16,17],[14,20],[11,21],[9,21]]},"1":{width:20,points:[[6,17],[8,18],[11,21],[11,0]]},"2":{width:20,points:[[4,16],[4,17],[5,19],[6,20],[8,21],[12,21],[14,20],[15,19],[16,17],[16,15],[15,13],[13,10],[3,0],[17,0]]},"3":{width:20,points:[[5,21],[16,21],[10,13],[13,13],[15,12],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},"4":{width:20,points:[[13,21],[3,7],[18,7],[-1,-1],[13,21],[13,0]]},"5":{width:20,points:[[15,21],[5,21],[4,12],[5,13],[8,14],[11,14],[14,13],[16,11],[17,8],[17,6],[16,3],[14,1],[11,0],[8,0],[5,1],[4,2],[3,4]]},"6":{width:20,points:[[16,18],[15,20],[12,21],[10,21],[7,20],[5,17],[4,12],[4,7],[5,3],[7,1],[10,0],[11,0],[14,1],[16,3],[17,6],[17,7],[16,10],[14,12],[11,13],[10,13],[7,12],[5,10],[4,7]]},"7":{width:20,points:[[17,21],[7,0],[-1,-1],[3,21],[17,21]]},"8":{width:20,points:[[8,21],[5,20],[4,18],[4,16],[5,14],[7,13],[11,12],[14,11],[16,9],[17,7],[17,4],[16,2],[15,1],[12,0],[8,0],[5,1],[4,2],[3,4],[3,7],[4,9],[6,11],[9,12],[13,13],[15,14],[16,16],[16,18],[15,20],[12,21],[8,21]]},"9":{width:20,points:[[16,14],[15,11],[13,9],[10,8],[9,8],[6,9],[4,11],[3,14],[3,15],[4,18],[6,20],[9,21],[10,21],[13,20],[15,18],[16,14],[16,9],[15,4],[13,1],[10,0],[8,0],[5,1],[4,3]]},":":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[5,2],[4,1],[5,0],[6,1],[5,2]]},";":{width:10,points:[[5,14],[4,13],[5,12],[6,13],[5,14],[-1,-1],[6,1],[5,0],[4,1],[5,2],[6,1],[6,-1],[5,-3],[4,-4]]},"<":{width:24,points:[[20,18],[4,9],[20,0]]},"=":{width:26,points:[[4,12],[22,12],[-1,-1],[4,6],[22,6]]},">":{width:24,points:[[4,18],[20,9],[4,0]]},"?":{width:18,points:[[3,16],[3,17],[4,19],[5,20],[7,21],[11,21],[13,20],[14,19],[15,17],[15,15],[14,13],[13,12],[9,10],[9,7],[-1,-1],[9,2],[8,1],[9,0],[10,1],[9,2]]},"@":{width:27,points:[[18,13],[17,15],[15,16],[12,16],[10,15],[9,14],[8,11],[8,8],[9,6],[11,5],[14,5],[16,6],[17,8],[-1,-1],[12,16],[10,14],[9,11],[9,8],[10,6],[11,5],[-1,-1],[18,16],[17,8],[17,6],[19,5],[21,5],[23,7],[24,10],[24,12],[23,15],[22,17],[20,19],[18,20],[15,21],[12,21],[9,20],[7,19],[5,17],[4,15],[3,12],[3,9],[4,6],[5,4],[7,2],[9,1],[12,0],[15,0],[18,1],[20,2],[21,3],[-1,-1],[19,16],[18,8],[18,6],[19,5]]},A:{width:18,points:[[9,21],[1,0],[-1,-1],[9,21],[17,0],[-1,-1],[4,7],[14,7]]},B:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[-1,-1],[4,11],[13,11],[16,10],[17,9],[18,7],[18,4],[17,2],[16,1],[13,0],[4,0]]},C:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5]]},D:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[11,21],[14,20],[16,18],[17,16],[18,13],[18,8],[17,5],[16,3],[14,1],[11,0],[4,0]]},E:{width:19,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11],[-1,-1],[4,0],[17,0]]},F:{width:18,points:[[4,21],[4,0],[-1,-1],[4,21],[17,21],[-1,-1],[4,11],[12,11]]},G:{width:21,points:[[18,16],[17,18],[15,20],[13,21],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[18,8],[-1,-1],[13,8],[18,8]]},H:{width:22,points:[[4,21],[4,0],[-1,-1],[18,21],[18,0],[-1,-1],[4,11],[18,11]]},I:{width:8,points:[[4,21],[4,0]]},J:{width:16,points:[[12,21],[12,5],[11,2],[10,1],[8,0],[6,0],[4,1],[3,2],[2,5],[2,7]]},K:{width:21,points:[[4,21],[4,0],[-1,-1],[18,21],[4,7],[-1,-1],[9,12],[18,0]]},L:{width:17,points:[[4,21],[4,0],[-1,-1],[4,0],[16,0]]},M:{width:24,points:[[4,21],[4,0],[-1,-1],[4,21],[12,0],[-1,-1],[20,21],[12,0],[-1,-1],[20,21],[20,0]]},N:{width:22,points:[[4,21],[4,0],[-1,-1],[4,21],[18,0],[-1,-1],[18,21],[18,0]]},O:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21]]},P:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,14],[17,12],[16,11],[13,10],[4,10]]},Q:{width:22,points:[[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21],[-1,-1],[12,4],[18,-2]]},R:{width:21,points:[[4,21],[4,0],[-1,-1],[4,21],[13,21],[16,20],[17,19],[18,17],[18,15],[17,13],[16,12],[13,11],[4,11],[-1,-1],[11,11],[18,0]]},S:{width:20,points:[[17,18],[15,20],[12,21],[8,21],[5,20],[3,18],[3,16],[4,14],[5,13],[7,12],[13,10],[15,9],[16,8],[17,6],[17,3],[15,1],[12,0],[8,0],[5,1],[3,3]]},T:{width:16,points:[[8,21],[8,0],[-1,-1],[1,21],[15,21]]},U:{width:22,points:[[4,21],[4,6],[5,3],[7,1],[10,0],[12,0],[15,1],[17,3],[18,6],[18,21]]},V:{width:18,points:[[1,21],[9,0],[-1,-1],[17,21],[9,0]]},W:{width:24,points:[[2,21],[7,0],[-1,-1],[12,21],[7,0],[-1,-1],[12,21],[17,0],[-1,-1],[22,21],[17,0]]},X:{width:20,points:[[3,21],[17,0],[-1,-1],[17,21],[3,0]]},Y:{width:18,points:[[1,21],[9,11],[9,0],[-1,-1],[17,21],[9,11]]},Z:{width:20,points:[[17,21],[3,0],[-1,-1],[3,21],[17,21],[-1,-1],[3,0],[17,0]]},"[":{width:14,points:[[4,25],[4,-7],[-1,-1],[5,25],[5,-7],[-1,-1],[4,25],[11,25],[-1,-1],[4,-7],[11,-7]]},"\\":{width:14,points:[[0,21],[14,-3]]},"]":{width:14,points:[[9,25],[9,-7],[-1,-1],[10,25],[10,-7],[-1,-1],[3,25],[10,25],[-1,-1],[3,-7],[10,-7]]},"^":{width:16,points:[[6,15],[8,18],[10,15],[-1,-1],[3,12],[8,17],[13,12],[-1,-1],[8,17],[8,0]]},_:{width:16,points:[[0,-2],[16,-2]]},"`":{width:10,points:[[6,21],[5,20],[4,18],[4,16],[5,15],[6,16],[5,17]]},a:{width:19,points:[[15,14],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},b:{width:19,points:[[4,21],[4,0],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},c:{width:18,points:[[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},d:{width:19,points:[[15,21],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},e:{width:18,points:[[3,8],[15,8],[15,10],[14,12],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},f:{width:12,points:[[10,21],[8,21],[6,20],[5,17],[5,0],[-1,-1],[2,14],[9,14]]},g:{width:19,points:[[15,14],[15,-2],[14,-5],[13,-6],[11,-7],[8,-7],[6,-6],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},h:{width:19,points:[[4,21],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},i:{width:8,points:[[3,21],[4,20],[5,21],[4,22],[3,21],[-1,-1],[4,14],[4,0]]},j:{width:10,points:[[5,21],[6,20],[7,21],[6,22],[5,21],[-1,-1],[6,14],[6,-3],[5,-6],[3,-7],[1,-7]]},k:{width:17,points:[[4,21],[4,0],[-1,-1],[14,14],[4,4],[-1,-1],[8,8],[15,0]]},l:{width:8,points:[[4,21],[4,0]]},m:{width:30,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0],[-1,-1],[15,10],[18,13],[20,14],[23,14],[25,13],[26,10],[26,0]]},n:{width:19,points:[[4,14],[4,0],[-1,-1],[4,10],[7,13],[9,14],[12,14],[14,13],[15,10],[15,0]]},o:{width:19,points:[[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3],[16,6],[16,8],[15,11],[13,13],[11,14],[8,14]]},p:{width:19,points:[[4,14],[4,-7],[-1,-1],[4,11],[6,13],[8,14],[11,14],[13,13],[15,11],[16,8],[16,6],[15,3],[13,1],[11,0],[8,0],[6,1],[4,3]]},q:{width:19,points:[[15,14],[15,-7],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3]]},r:{width:13,points:[[4,14],[4,0],[-1,-1],[4,8],[5,11],[7,13],[9,14],[12,14]]},s:{width:17,points:[[14,11],[13,13],[10,14],[7,14],[4,13],[3,11],[4,9],[6,8],[11,7],[13,6],[14,4],[14,3],[13,1],[10,0],[7,0],[4,1],[3,3]]},t:{width:12,points:[[5,21],[5,4],[6,1],[8,0],[10,0],[-1,-1],[2,14],[9,14]]},u:{width:19,points:[[4,14],[4,4],[5,1],[7,0],[10,0],[12,1],[15,4],[-1,-1],[15,14],[15,0]]},v:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0]]},w:{width:22,points:[[3,14],[7,0],[-1,-1],[11,14],[7,0],[-1,-1],[11,14],[15,0],[-1,-1],[19,14],[15,0]]},x:{width:17,points:[[3,14],[14,0],[-1,-1],[14,14],[3,0]]},y:{width:16,points:[[2,14],[8,0],[-1,-1],[14,14],[8,0],[6,-4],[4,-6],[2,-7],[1,-7]]},z:{width:17,points:[[14,14],[3,0],[-1,-1],[3,14],[14,14],[-1,-1],[3,0],[14,0]]},"{":{width:14,points:[[9,25],[7,24],[6,23],[5,21],[5,19],[6,17],[7,16],[8,14],[8,12],[6,10],[-1,-1],[7,24],[6,22],[6,20],[7,18],[8,17],[9,15],[9,13],[8,11],[4,9],[8,7],[9,5],[9,3],[8,1],[7,0],[6,-2],[6,-4],[7,-6],[-1,-1],[6,8],[8,6],[8,4],[7,2],[6,1],[5,-1],[5,-3],[6,-5],[7,-6],[9,-7]]},"|":{width:8,points:[[4,25],[4,-7]]},"}":{width:14,points:[[5,25],[7,24],[8,23],[9,21],[9,19],[8,17],[7,16],[6,14],[6,12],[8,10],[-1,-1],[7,24],[8,22],[8,20],[7,18],[6,17],[5,15],[5,13],[6,11],[10,9],[6,7],[5,5],[5,3],[6,1],[7,0],[8,-2],[8,-4],[7,-6],[-1,-1],[8,8],[6,6],[6,4],[7,2],[8,1],[9,-1],[9,-3],[8,-5],[7,-6],[5,-7]]},"~":{width:24,points:[[3,6],[3,8],[4,11],[6,12],[8,12],[10,11],[14,8],[16,7],[18,7],[20,8],[21,10],[-1,-1],[3,8],[4,10],[6,11],[8,11],[10,10],[14,7],[16,6],[18,6],[20,7],[21,10],[21,12]]}};n.jqplot.CanvasFontRenderer=function(t){t=t||{};t.pt2px||(t.pt2px=1.5);n.jqplot.CanvasTextRenderer.call(this,t)};n.jqplot.CanvasFontRenderer.prototype=new n.jqplot.CanvasTextRenderer({});n.jqplot.CanvasFontRenderer.prototype.constructor=n.jqplot.CanvasFontRenderer;n.jqplot.CanvasFontRenderer.prototype.measure=function(n,t){var r=this.fontSize+" "+this.fontFamily,i;return n.save(),n.font=r,i=n.measureText(t).width,n.restore(),i};n.jqplot.CanvasFontRenderer.prototype.draw=function(n,t){var f=this.height*.72,i,r,u;n.save();-Math.PI/2<=this.angle&&this.angle<=0||Math.PI*3/2<=this.angle&&this.angle<=Math.PI*2?(i=0,r=-Math.sin(this.angle)*this.width):0<this.angle&&this.angle<=Math.PI/2||-Math.PI*2<=this.angle&&this.angle<=-Math.PI*3/2?(i=Math.sin(this.angle)*this.height,r=0):-Math.PI<this.angle&&this.angle<-Math.PI/2||Math.PI<=this.angle&&this.angle<=Math.PI*3/2?(i=-Math.cos(this.angle)*this.width,r=-Math.sin(this.angle)*this.width-Math.cos(this.angle)*this.height):(-Math.PI*3/2<this.angle&&this.angle<Math.PI||Math.PI/2<this.angle&&this.angle<Math.PI)&&(i=Math.sin(this.angle)*this.height-Math.cos(this.angle)*this.width,r=-Math.cos(this.angle)*this.height);n.strokeStyle=this.fillStyle;n.fillStyle=this.fillStyle;u=this.fontSize+" "+this.fontFamily;n.font=u;n.translate(i,r);n.rotate(this.angle);n.fillText(t,0,f);n.restore()}}(jQuery),function(n){n.jqplot.CanvasAxisTickRenderer=function(t){this.mark="outside";this.showMark=!0;this.showGridline=!0;this.isMinorTick=!1;this.angle=0;this.markSize=4;this.show=!0;this.showLabel=!0;this.labelPosition="auto";this.label="";this.value=null;this._styles={};this.formatter=n.jqplot.DefaultTickFormatter;this.formatString="";this.prefix="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="10pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=!0;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};n.extend(!0,this,t);var i={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};this.pt2px&&(i.pt2px=this.pt2px);this._textRenderer=this.enableFontSupport?n.jqplot.support_canvas_text()?new n.jqplot.CanvasFontRenderer(i):new n.jqplot.CanvasTextRenderer(i):new n.jqplot.CanvasTextRenderer(i)};n.jqplot.CanvasAxisTickRenderer.prototype.init=function(t){n.extend(!0,this,t);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};n.jqplot.CanvasAxisTickRenderer.prototype.getWidth=function(n){if(this._elem)return this._elem.outerWidth(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.sin(t.angle)*r)+Math.abs(Math.cos(t.angle)*i)};n.jqplot.CanvasAxisTickRenderer.prototype.getHeight=function(n){if(this._elem)return this._elem.outerHeight(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.cos(t.angle)*r)+Math.abs(Math.sin(t.angle)*i)};n.jqplot.CanvasAxisTickRenderer.prototype.getTop=function(){return this._elem?this._elem.position().top:null};n.jqplot.CanvasAxisTickRenderer.prototype.getAngleRad=function(){return this.angle*Math.PI/180};n.jqplot.CanvasAxisTickRenderer.prototype.setTick=function(n,t,i){return this.value=n,i&&(this.isMinorTick=!0),this};n.jqplot.CanvasAxisTickRenderer.prototype.draw=function(t,i){var r,u,f;return this.label||(this.label=this.prefix+this.formatter(this.formatString,this.value)),this._elem&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce(),this._elem=null),r=i.canvasManager.getCanvas(),this._textRenderer.setText(this.label,t),u=this.getWidth(t),f=this.getHeight(t),r.width=u,r.height=f,r.style.width=u,r.style.height=f,r.style.textAlign="left",r.style.position="absolute",r=i.canvasManager.initCanvas(r),this._elem=n(r),this._elem.css(this._styles),this._elem.addClass("jqplot-"+this.axis+"-tick"),r=null,this._elem};n.jqplot.CanvasAxisTickRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}}(jQuery),function(n){function t(t,i){var f=t.plugins.highlighter,o=t.series[i.seriesIndex],e=o.markerRenderer,u=f.markerRenderer;u.style=e.style;u.lineWidth=e.lineWidth+f.lineWidthAdjust;u.size=e.size+f.sizeAdjust;var r=n.jqplot.getColorComponents(e.color),s=[r[0],r[1],r[2]],h=r[3]>=.6?r[3]*.6:r[3]*(2-r[3]);u.color="rgba("+s[0]+","+s[1]+","+s[2]+","+h+")";u.init();u.draw(o.gridData[i.pointIndex][0],o.gridData[i.pointIndex][1],f.highlightCanvas._ctx)}function i(t,i,e){var d=t.plugins.highlighter,c=d._tooltipElem,g=i.highlighter||{},o=n.extend(!0,{},d,g),a,s,k,p,w;if(o.useAxesFormatters){var nt=i._xaxis._ticks[0].formatter,tt=i._yaxis._ticks[0].formatter,it=i._xaxis._ticks[0].formatString,rt=i._yaxis._ticks[0].formatString,s,b=nt(it,e.data[0]),h=[];for(a=1;a<o.yvalues+1;a++)h.push(tt(rt,e.data[a]));if(typeof o.formatString=="string")switch(o.tooltipAxes){case"both":case"xy":h.unshift(b);h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h);break;case"yx":h.push(b);h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h);break;case"x":s=n.jqplot.sprintf.apply(n.jqplot.sprintf,[o.formatString,b]);break;case"y":h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h);break;default:h.unshift(b);h.unshift(o.formatString);s=n.jqplot.sprintf.apply(n.jqplot.sprintf,h)}else switch(o.tooltipAxes){case"both":case"xy":for(s=b,a=0;a<h.length;a++)s+=o.tooltipSeparator+h[a];break;case"yx":for(s="",a=0;a<h.length;a++)s+=h[a]+o.tooltipSeparator;s+=b;break;case"x":s=b;break;case"y":s=h.join(o.tooltipSeparator);break;default:for(s=b,a=0;a<h.length;a++)s+=o.tooltipSeparator+h[a]}}else typeof o.formatString=="string"?s=n.jqplot.sprintf.apply(n.jqplot.sprintf,[o.formatString].concat(e.data)):o.tooltipAxes=="both"||o.tooltipAxes=="xy"?s=n.jqplot.sprintf(o.tooltipFormatString,e.data[0])+o.tooltipSeparator+n.jqplot.sprintf(o.tooltipFormatString,e.data[1]):o.tooltipAxes=="yx"?s=n.jqplot.sprintf(o.tooltipFormatString,e.data[1])+o.tooltipSeparator+n.jqplot.sprintf(o.tooltipFormatString,e.data[0]):o.tooltipAxes=="x"?s=n.jqplot.sprintf(o.tooltipFormatString,e.data[0]):o.tooltipAxes=="y"&&(s=n.jqplot.sprintf(o.tooltipFormatString,e.data[1]));n.isFunction(o.tooltipContentEditor)&&(s=o.tooltipContentEditor(s,e.seriesIndex,e.pointIndex,t));c.html(s);var l={x:e.gridData[0],y:e.gridData[1]},v=0,y=.707;i.markerRenderer.show==!0&&(v=(i.markerRenderer.size+o.sizeAdjust)/2);k=r;i.fillToZero&&i.fill&&e.data[1]<0&&(k=f);switch(k[u[o.tooltipLocation]]){case"nw":p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-y*v;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-y*v;break;case"n":p=l.x+t._gridPadding.left-c.outerWidth(!0)/2;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-v;break;case"ne":p=l.x+t._gridPadding.left+o.tooltipOffset+y*v;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-y*v;break;case"e":p=l.x+t._gridPadding.left+o.tooltipOffset+v;w=l.y+t._gridPadding.top-c.outerHeight(!0)/2;break;case"se":p=l.x+t._gridPadding.left+o.tooltipOffset+y*v;w=l.y+t._gridPadding.top+o.tooltipOffset+y*v;break;case"s":p=l.x+t._gridPadding.left-c.outerWidth(!0)/2;w=l.y+t._gridPadding.top+o.tooltipOffset+v;break;case"sw":p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-y*v;w=l.y+t._gridPadding.top+o.tooltipOffset+y*v;break;case"w":p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-v;w=l.y+t._gridPadding.top-c.outerHeight(!0)/2;break;default:p=l.x+t._gridPadding.left-c.outerWidth(!0)-o.tooltipOffset-y*v;w=l.y+t._gridPadding.top-o.tooltipOffset-c.outerHeight(!0)-y*v}c.css("left",p);c.css("top",w);o.fadeTooltip?c.stop(!0,!0).fadeIn(o.tooltipFadeSpeed):c.show();c=null}function e(n,r,u,f,e){var o=e.plugins.highlighter,c=e.plugins.cursor,h,l,s;o.show&&(f==null&&o.isHighlighting?(h=jQuery.Event("jqplotHighlighterUnhighlight"),e.target.trigger(h),s=o.highlightCanvas._ctx,s.clearRect(0,0,s.canvas.width,s.canvas.height),o.fadeTooltip?o._tooltipElem.fadeOut(o.tooltipFadeSpeed):o._tooltipElem.hide(),o.bringSeriesToFront&&e.restorePreviousSeriesOrder(),o.isHighlighting=!1,o.currentNeighbor=null,s=null):f!=null&&e.series[f.seriesIndex].showHighlight&&!o.isHighlighting?(h=jQuery.Event("jqplotHighlighterHighlight"),h.which=n.which,h.pageX=n.pageX,h.pageY=n.pageY,l=[f.seriesIndex,f.pointIndex,f.data,e],e.target.trigger(h,l),o.isHighlighting=!0,o.currentNeighbor=f,o.showMarker&&t(e,f),e.series[f.seriesIndex].show&&o.showTooltip&&(!c||!c._zoom.started)&&i(e,e.series[f.seriesIndex],f),o.bringSeriesToFront&&e.moveSeriesToFront(f.seriesIndex)):f!=null&&o.isHighlighting&&o.currentNeighbor!=f&&e.series[f.seriesIndex].showHighlight&&(s=o.highlightCanvas._ctx,s.clearRect(0,0,s.canvas.width,s.canvas.height),o.isHighlighting=!0,o.currentNeighbor=f,o.showMarker&&t(e,f),e.series[f.seriesIndex].show&&o.showTooltip&&(!c||!c._zoom.started)&&i(e,e.series[f.seriesIndex],f),o.bringSeriesToFront&&e.moveSeriesToFront(f.seriesIndex)))}n.jqplot.eventListenerHooks.push(["jqplotMouseMove",e]);n.jqplot.Highlighter=function(t){this.show=n.jqplot.config.enablePlugins;this.markerRenderer=new n.jqplot.MarkerRenderer({shadow:!1});this.showMarker=!0;this.lineWidthAdjust=2.5;this.sizeAdjust=5;this.showTooltip=!0;this.tooltipLocation="nw";this.fadeTooltip=!0;this.tooltipFadeSpeed="fast";this.tooltipOffset=2;this.tooltipAxes="both";this.tooltipSeparator=", ";this.tooltipContentEditor=null;this.useAxesFormatters=!0;this.tooltipFormatString="%.5P";this.formatString=null;this.yvalues=1;this.bringSeriesToFront=!1;this._tooltipElem;this.isHighlighting=!1;this.currentNeighbor=null;n.extend(!0,this,t)};var r=["nw","n","ne","e","se","s","sw","w"],u={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7},f=["se","s","sw","w","nw","n","ne","e"];n.jqplot.Highlighter.init=function(t,i,r){var u=r||{};this.plugins.highlighter=new n.jqplot.Highlighter(u.highlighter)};n.jqplot.Highlighter.parseOptions=function(){this.showHighlight=!0};n.jqplot.Highlighter.postPlotDraw=function(){this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas&&(this.plugins.highlighter.highlightCanvas.resetCanvas(),this.plugins.highlighter.highlightCanvas=null);this.plugins.highlighter&&this.plugins.highlighter._tooltipElem&&(this.plugins.highlighter._tooltipElem.emptyForce(),this.plugins.highlighter._tooltipElem=null);this.plugins.highlighter.highlightCanvas=new n.jqplot.GenericCanvas;this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this));this.plugins.highlighter.highlightCanvas.setContext();var t=document.createElement("div");this.plugins.highlighter._tooltipElem=n(t);t=null;this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip");this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"});this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)};n.jqplot.preInitHooks.push(n.jqplot.Highlighter.init);n.jqplot.preParseSeriesOptionsHooks.push(n.jqplot.Highlighter.parseOptions);n.jqplot.postDrawHooks.push(n.jqplot.Highlighter.postPlotDraw)}(jQuery),function(n){function t(){this.uid=null;this.type=null;this.gridStart=null;this.gridStop=null;this.tooltipWidthFactor=0;this.options={name:null,show:!0,lineWidth:2,lineCap:"round",color:"#666666",shadow:!0,shadowAngle:45,shadowOffset:1,shadowDepth:3,shadowAlpha:"0.07",xaxis:"xaxis",yaxis:"yaxis",showTooltip:!1,showTooltipPrecision:.6,tooltipLocation:"nw",fadeTooltip:!0,tooltipFadeSpeed:"fast",tooltipOffset:4,tooltipFormatString:"%d, %d"}}function u(i){t.call(this);this.type="rectangle";n.extend(!0,this.options,{xmin:null,xmax:null,xOffset:"6px",xminOffset:null,xmaxOffset:null,ymin:null,ymax:null,yOffset:"6px",yminOffset:null,ymaxOffset:null},i);this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function f(i){t.call(this);this.type="line";n.extend(!0,this.options,{start:[],stop:[]},i);this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function e(i){t.call(this);this.type="horizontalLine";n.extend(!0,this.options,{y:null,xmin:null,xmax:null,xOffset:"6px",xminOffset:null,xmaxOffset:null},i);this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function o(i){t.call(this);this.type="dashedHorizontalLine";n.extend(!0,this.options,{y:null,xmin:null,xmax:null,xOffset:"6px",xminOffset:null,xmaxOffset:null,dashPattern:[8,8]},i);this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function s(i){t.call(this);this.type="verticalLine";n.extend(!0,this.options,{x:null,ymin:null,ymax:null,yOffset:"6px",yminOffset:null,ymaxOffset:null},i);this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function h(i){t.call(this);this.type="dashedVerticalLine";this.start=null;this.stop=null;n.extend(!0,this.options,{x:null,ymin:null,ymax:null,yOffset:"6px",yminOffset:null,ymaxOffset:null,dashPattern:[8,8]},i);this.options.showTooltipPrecision<.01&&(this.options.showTooltipPrecision=.01)}function i(t,i,r,u){var h=t.plugins.canvasOverlay,f=h._tooltipElem,e=i.options,o,s;f.html(n.jqplot.sprintf(e.tooltipFormatString,u[0],u[1]));switch(e.tooltipLocation){case"nw":o=r[0]+t._gridPadding.left-f.outerWidth(!0)-e.tooltipOffset;s=r[1]+t._gridPadding.top-e.tooltipOffset-f.outerHeight(!0);break;case"n":o=r[0]+t._gridPadding.left-f.outerWidth(!0)/2;s=r[1]+t._gridPadding.top-e.tooltipOffset-f.outerHeight(!0);break;case"ne":o=r[0]+t._gridPadding.left+e.tooltipOffset;s=r[1]+t._gridPadding.top-e.tooltipOffset-f.outerHeight(!0);break;case"e":o=r[0]+t._gridPadding.left+e.tooltipOffset;s=r[1]+t._gridPadding.top-f.outerHeight(!0)/2;break;case"se":o=r[0]+t._gridPadding.left+e.tooltipOffset;s=r[1]+t._gridPadding.top+e.tooltipOffset;break;case"s":o=r[0]+t._gridPadding.left-f.outerWidth(!0)/2;s=r[1]+t._gridPadding.top+e.tooltipOffset;break;case"sw":o=r[0]+t._gridPadding.left-f.outerWidth(!0)-e.tooltipOffset;s=r[1]+t._gridPadding.top+e.tooltipOffset;break;case"w":o=r[0]+t._gridPadding.left-f.outerWidth(!0)-e.tooltipOffset;s=r[1]+t._gridPadding.top-f.outerHeight(!0)/2;break;default:o=r[0]+t._gridPadding.left-f.outerWidth(!0)-e.tooltipOffset;s=r[1]+t._gridPadding.top-e.tooltipOffset-f.outerHeight(!0)}f.css("left",o);f.css("top",s);e.fadeTooltip?f.stop(!0,!0).fadeIn(e.tooltipFadeSpeed):f.show();f=null}function c(n,t,i,r){var s=n[0],h=n[1],u=Math.round(i[0]),f=Math.round(i[1]),e=Math.round(t[0]),o=Math.round(t[1]),c=Math.sqrt(Math.pow(u-e,2)+Math.pow(f-o,2)),l=r*c,a=Math.abs((e-u)*(h-f)-(o-f)*(s-u));return a<l?!0:!1}function l(n,t,i){var s=n[0],h=n[1],r=Math.round(i[0]),u=Math.round(i[1]),f=Math.round(t[0]),e=Math.round(t[1]),o;return r>f&&(o=r,r=f,f=o),u>e&&(o=u,u=e,e=o),s>=r&&s<=f&&h>=u&&h<=e}function a(n,t,r,u,f){for(var v,o=f.plugins.canvasOverlay,y=o.objects,p=y.length,e,a=!1,s,h=0;h<p;h++)if(e=y[h],e.options.showTooltip)if(v=e.type==="rectangle"?l([t.x,t.y],e.gridStart,e.gridStop,e.tooltipWidthFactor):c([t.x,t.y],e.gridStart,e.gridStop,e.tooltipWidthFactor),r=[f.axes[e.options.xaxis].series_p2u(t.x),f.axes[e.options.yaxis].series_p2u(t.y)],v&&o.highlightObjectIndex==null){switch(e.type){case"line":i(f,e,[t.x,t.y],r);break;case"horizontalLine":case"dashedHorizontalLine":i(f,e,[t.x,e.gridStart[1]],[r[0],e.options.y]);break;case"verticalLine":case"dashedVerticalLine":i(f,e,[e.gridStart[0],t.y],[e.options.x,r[1]]);break;case"rectangle":i(f,e,[e.gridStart[0],t.y],[e.options.x,r[1]])}o.highlightObjectIndex=h;a=!0;break}else if(v&&o.highlightObjectIndex!==h){s=o._tooltipElem;e.fadeTooltip?s.fadeOut(e.tooltipFadeSpeed):s.hide();switch(e.type){case"line":i(f,e,[t.x,t.y],r);break;case"horizontalLine":case"dashedHorizontalLine":i(f,e,[t.x,e.gridStart[1]],[r[0],e.options.y]);break;case"verticalLine":case"dashedVerticalLine":i(f,e,[e.gridStart[0],t.y],[e.options.x,r[1]]);break;case"rectangle":i(f,e,[e.gridStart[0],t.y],[e.options.x,r[1]])}o.highlightObjectIndex=h;a=!0;break}else if(v){switch(e.type){case"line":i(f,e,[t.x,t.y],r);break;case"horizontalLine":case"dashedHorizontalLine":i(f,e,[t.x,e.gridStart[1]],[r[0],e.options.y]);break;case"verticalLine":case"dashedVerticalLine":i(f,e,[e.gridStart[0],t.y],[e.options.x,r[1]]);break;case"rectangle":i(f,e,[e.gridStart[0],t.y],[e.options.x,r[1]])}a=!0;break}a||o.highlightObjectIndex===null||(s=o._tooltipElem,e=o.getObject(o.highlightObjectIndex),e.fadeTooltip?s.fadeOut(e.tooltipFadeSpeed):s.hide(),o.highlightObjectIndex=null)}var r=0;n.jqplot.CanvasOverlay=function(t){var f=t||{},e,i,u,r;if(this.options={show:n.jqplot.config.enablePlugins,deferDraw:!1},this.objects=[],this.objectNames=[],this.canvas=null,this.markerRenderer=new n.jqplot.MarkerRenderer({style:"line"}),this.markerRenderer.init(),this.highlightObjectIndex=null,f.objects)for(e=f.objects,u=0;u<e.length;u++){i=e[u];for(r in i)switch(r){case"line":this.addLine(i[r]);break;case"horizontalLine":this.addHorizontalLine(i[r]);break;case"dashedHorizontalLine":this.addDashedHorizontalLine(i[r]);break;case"verticalLine":this.addVerticalLine(i[r]);break;case"dashedVerticalLine":this.addDashedVerticalLine(i[r]);break;case"rectangle":this.addRectangle(i[r])}}n.extend(!0,this.options,f)};n.jqplot.CanvasOverlay.postPlotInit=function(t,i,r){var u=r||{};this.plugins.canvasOverlay=new n.jqplot.CanvasOverlay(u.canvasOverlay)};u.prototype=new t;u.prototype.constructor=u;f.prototype=new t;f.prototype.constructor=f;e.prototype=new t;e.prototype.constructor=e;o.prototype=new t;o.prototype.constructor=o;s.prototype=new t;s.prototype.constructor=s;h.prototype=new t;h.prototype.constructor=h;n.jqplot.CanvasOverlay.prototype.addLine=function(n){var t=new f(n);t.uid=r++;this.objects.push(t);this.objectNames.push(t.options.name)};n.jqplot.CanvasOverlay.prototype.addHorizontalLine=function(n){var t=new e(n);t.uid=r++;this.objects.push(t);this.objectNames.push(t.options.name)};n.jqplot.CanvasOverlay.prototype.addDashedHorizontalLine=function(n){var t=new o(n);t.uid=r++;this.objects.push(t);this.objectNames.push(t.options.name)};n.jqplot.CanvasOverlay.prototype.addVerticalLine=function(n){var t=new s(n);t.uid=r++;this.objects.push(t);this.objectNames.push(t.options.name)};n.jqplot.CanvasOverlay.prototype.addDashedVerticalLine=function(n){var t=new h(n);t.uid=r++;this.objects.push(t);this.objectNames.push(t.options.name)};n.jqplot.CanvasOverlay.prototype.addRectangle=function(n){var t=new u(n);t.uid=r++;this.objects.push(t);this.objectNames.push(t.options.name)};n.jqplot.CanvasOverlay.prototype.removeObject=function(t){if(n.type(t)=="number")this.objects.splice(t,1),this.objectNames.splice(t,1);else{var i=n.inArray(t,this.objectNames);i!=-1&&(this.objects.splice(i,1),this.objectNames.splice(i,1))}};n.jqplot.CanvasOverlay.prototype.getObject=function(t){if(n.type(t)=="number")return this.objects[t];var i=n.inArray(t,this.objectNames);if(i!=-1)return this.objects[i]};n.jqplot.CanvasOverlay.prototype.get=n.jqplot.CanvasOverlay.prototype.getObject;n.jqplot.CanvasOverlay.prototype.clear=function(){this.canvas._ctx.clearRect(0,0,this.canvas.getWidth(),this.canvas.getHeight())};n.jqplot.CanvasOverlay.prototype.draw=function(t){var i,et=this.objects,w=this.markerRenderer,ut,ft,it,b,rt,k,tt,h,nt,y,p;if(this.options.show)for(this.canvas._ctx.clearRect(0,0,this.canvas.getWidth(),this.canvas.getHeight()),it=0;it<et.length;it++)if(i=et[it],b=n.extend(!0,{},i.options),i.options.show){w.shadow=i.options.shadow;i.tooltipWidthFactor=i.options.lineWidth/i.options.showTooltipPrecision;switch(i.type){case"line":w.style="line";b.closePath=!1;ut=[t.axes[i.options.xaxis].series_u2p(i.options.start[0]),t.axes[i.options.yaxis].series_u2p(i.options.start[1])];ft=[t.axes[i.options.xaxis].series_u2p(i.options.stop[0]),t.axes[i.options.yaxis].series_u2p(i.options.stop[1])];i.gridStart=ut;i.gridStop=ft;w.draw(ut,ft,this.canvas._ctx,b);break;case"horizontalLine":if(i.options.y!=null){w.style="line";b.closePath=!1;var r=t.axes[i.options.xaxis],o,s,d=t.axes[i.options.yaxis].series_u2p(i.options.y),c=i.options.xminOffset||i.options.xOffset,l=i.options.xmaxOffset||i.options.xOffset;i.options.xmin!=null?o=r.series_u2p(i.options.xmin):c!=null&&(n.type(c)=="number"?o=r.series_u2p(r.min+c):n.type(c)=="string"&&(o=r.series_u2p(r.min)+parseFloat(c)));i.options.xmax!=null?s=r.series_u2p(i.options.xmax):l!=null&&(n.type(l)=="number"?s=r.series_u2p(r.max-l):n.type(l)=="string"&&(s=r.series_u2p(r.max)-parseFloat(l)));s!=null&&o!=null&&(i.gridStart=[o,d],i.gridStop=[s,d],w.draw([o,d],[s,d],this.canvas._ctx,b))}break;case"dashedHorizontalLine":for(h=i.options.dashPattern,nt=0,y=0;y<h.length;y++)nt+=h[y];if(i.options.y!=null){w.style="line";b.closePath=!1;var r=t.axes[i.options.xaxis],o,s,d=t.axes[i.options.yaxis].series_u2p(i.options.y),c=i.options.xminOffset||i.options.xOffset,l=i.options.xmaxOffset||i.options.xOffset;if(i.options.xmin!=null?o=r.series_u2p(i.options.xmin):c!=null&&(n.type(c)=="number"?o=r.series_u2p(r.min+c):n.type(c)=="string"&&(o=r.series_u2p(r.min)+parseFloat(c))),i.options.xmax!=null?s=r.series_u2p(i.options.xmax):l!=null&&(n.type(l)=="number"?s=r.series_u2p(r.max-l):n.type(l)=="string"&&(s=r.series_u2p(r.max)-parseFloat(l))),s!=null&&o!=null)for(i.gridStart=[o,d],i.gridStop=[s,d],rt=Math.ceil((s-o)/nt),k=o,y=0;y<rt;y++)for(p=0;p<h.length;p+=2)tt=k+h[p],w.draw([k,d],[tt,d],this.canvas._ctx,b),k+=h[p],p<h.length-1&&(k+=h[p+1])}break;case"verticalLine":if(i.options.x!=null){w.style="line";b.closePath=!1;var u=t.axes[i.options.yaxis],e,f,g=t.axes[i.options.xaxis].series_u2p(i.options.x),a=i.options.yminOffset||i.options.yOffset,v=i.options.ymaxOffset||i.options.yOffset;i.options.ymin!=null?e=u.series_u2p(i.options.ymin):a!=null&&(n.type(a)=="number"?e=u.series_u2p(u.min-a):n.type(a)=="string"&&(e=u.series_u2p(u.min)-parseFloat(a)));i.options.ymax!=null?f=u.series_u2p(i.options.ymax):v!=null&&(n.type(v)=="number"?f=u.series_u2p(u.max+v):n.type(v)=="string"&&(f=u.series_u2p(u.max)+parseFloat(v)));f!=null&&e!=null&&(i.gridStart=[g,e],i.gridStop=[g,f],w.draw([g,e],[g,f],this.canvas._ctx,b))}break;case"dashedVerticalLine":for(h=i.options.dashPattern,nt=0,y=0;y<h.length;y++)nt+=h[y];if(i.options.x!=null){w.style="line";b.closePath=!1;var u=t.axes[i.options.yaxis],e,f,g=t.axes[i.options.xaxis].series_u2p(i.options.x),a=i.options.yminOffset||i.options.yOffset,v=i.options.ymaxOffset||i.options.yOffset;if(i.options.ymin!=null?e=u.series_u2p(i.options.ymin):a!=null&&(n.type(a)=="number"?e=u.series_u2p(u.min-a):n.type(a)=="string"&&(e=u.series_u2p(u.min)-parseFloat(a))),i.options.ymax!=null?f=u.series_u2p(i.options.ymax):v!=null&&(n.type(v)=="number"?f=u.series_u2p(u.max+v):n.type(v)=="string"&&(f=u.series_u2p(u.max)+parseFloat(v))),f!=null&&e!=null){i.gridStart=[g,e];i.gridStop=[g,f];var rt=Math.ceil((e-f)/nt),ot=(rt*nt-(e-f))/2,k=e,tt;for(y=0;y<rt;y++)for(p=0;p<h.length;p+=2)tt=k-h[p],tt<f&&(tt=f),k<f&&(k=f),w.draw([g,k],[g,tt],this.canvas._ctx,b),k-=h[p],p<h.length-1&&(k-=h[p+1])}}break;case"rectangle":w.style="line";b.closePath=!0;var r=t.axes[i.options.xaxis],o,s,d=t.axes[i.options.yaxis].series_u2p(i.options.y),c=i.options.xminOffset||i.options.xOffset,l=i.options.xmaxOffset||i.options.xOffset;i.options.xmin!=null?o=r.series_u2p(i.options.xmin):c!=null&&(n.type(c)=="number"?o=r.series_u2p(r.min+c):n.type(c)=="string"&&(o=r.series_u2p(r.min)+parseFloat(c)));i.options.xmax!=null?s=r.series_u2p(i.options.xmax):l!=null&&(n.type(l)=="number"?s=r.series_u2p(r.max-l):n.type(l)=="string"&&(s=r.series_u2p(r.max)-parseFloat(l)));var u=t.axes[i.options.yaxis],e,f,g=t.axes[i.options.xaxis].series_u2p(i.options.x),a=i.options.yminOffset||i.options.yOffset,v=i.options.ymaxOffset||i.options.yOffset;i.options.ymin!=null?e=u.series_u2p(i.options.ymin):a!=null&&(n.type(a)=="number"?e=u.series_u2p(u.min-a):n.type(a)=="string"&&(e=u.series_u2p(u.min)-parseFloat(a)));i.options.ymax!=null?f=u.series_u2p(i.options.ymax):v!=null&&(n.type(v)=="number"?f=u.series_u2p(u.max+v):n.type(v)=="string"&&(f=u.series_u2p(u.max)+parseFloat(v)));s!=null&&o!=null&&f!=null&&e!=null&&(i.gridStart=[o,e],i.gridStop=[s,f],this.canvas._ctx.fillStyle=i.options.color,this.canvas._ctx.fillRect(o,e,s-o,f-e))}}};n.jqplot.CanvasOverlay.postPlotDraw=function(){var t=this.plugins.canvasOverlay,i;t&&t.highlightCanvas&&(t.highlightCanvas.resetCanvas(),t.highlightCanvas=null);t.canvas=new n.jqplot.GenericCanvas;this.eventCanvas._elem.before(t.canvas.createElement(this._gridPadding,"jqplot-overlayCanvas-canvas",this._plotDimensions,this));t.canvas.setContext();t.deferDraw||t.draw(this);i=document.createElement("div");t._tooltipElem=n(i);i=null;t._tooltipElem.addClass("jqplot-canvasOverlay-tooltip");t._tooltipElem.css({position:"absolute",display:"none"});this.eventCanvas._elem.before(t._tooltipElem);this.eventCanvas._elem.bind("mouseleave",{elem:t._tooltipElem},function(n){n.data.elem.hide()});t=null};n.jqplot.postInitHooks.push(n.jqplot.CanvasOverlay.postPlotInit);n.jqplot.postDrawHooks.push(n.jqplot.CanvasOverlay.postPlotDraw);n.jqplot.eventListenerHooks.push(["jqplotMouseMove",a])}(jQuery),function(n){n.jqplot.CanvasAxisLabelRenderer=function(t){this.angle=0;this.axis;this.show=!0;this.showLabel=!0;this.label="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="11pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=!0;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};n.extend(!0,this,t);t.angle==null&&this.axis!="xaxis"&&this.axis!="x2axis"&&(this.angle=-90);var i={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};this.pt2px&&(i.pt2px=this.pt2px);this._textRenderer=this.enableFontSupport?n.jqplot.support_canvas_text()?new n.jqplot.CanvasFontRenderer(i):new n.jqplot.CanvasTextRenderer(i):new n.jqplot.CanvasTextRenderer(i)};n.jqplot.CanvasAxisLabelRenderer.prototype.init=function(t){n.extend(!0,this,t);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};n.jqplot.CanvasAxisLabelRenderer.prototype.getWidth=function(n){if(this._elem)return this._elem.outerWidth(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.sin(t.angle)*r)+Math.abs(Math.cos(t.angle)*i)};n.jqplot.CanvasAxisLabelRenderer.prototype.getHeight=function(n){if(this._elem)return this._elem.outerHeight(!0);var t=this._textRenderer,i=t.getWidth(n),r=t.getHeight(n);return Math.abs(Math.cos(t.angle)*r)+Math.abs(Math.sin(t.angle)*i)};n.jqplot.CanvasAxisLabelRenderer.prototype.getAngleRad=function(){return this.angle*Math.PI/180};n.jqplot.CanvasAxisLabelRenderer.prototype.draw=function(t,i){var r,u,f;return this._elem&&(n.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined&&window.G_vmlCanvasManager.uninitElement(this._elem.get(0)),this._elem.emptyForce(),this._elem=null),r=i.canvasManager.getCanvas(),this._textRenderer.setText(this.label,t),u=this.getWidth(t),f=this.getHeight(t),r.width=u,r.height=f,r.style.width=u,r.style.height=f,r=i.canvasManager.initCanvas(r),this._elem=n(r),this._elem.css({position:"absolute"}),this._elem.addClass("jqplot-"+this.axis+"-label"),r=null,this._elem};n.jqplot.CanvasAxisLabelRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}}(jQuery),function(n){function t(t,i,r){var e=r.plugins.cursor,o="",l=!1,h,c,p,w,u,a;if(e.showTooltipGridPosition&&(o=t.x+", "+t.y,l=!0),e.showTooltipUnitPosition)for(u=0;u<e.tooltipAxisGroups.length;u++){if(h=e.tooltipAxisGroups[u],l&&(o+="<br />"),e.useAxesFormatters)for(c=0;c<h.length;c++)c&&(o+=", "),p=r.axes[h[c]]._ticks[0].formatter,w=r.axes[h[c]]._ticks[0].formatString,o+=p(w,i[h[c]]);else o+=n.jqplot.sprintf(e.tooltipFormatString,i[h[0]],i[h[1]]);l=!0}if(e.showTooltipDataPosition){var s=r.series,b=f(r,t.x,t.y),l=!1;for(u=0;u<s.length;u++)if(s[u].show){var d=s[u].index,g=s[u].label.toString(),k=n.inArray(d,b.indices),v=undefined,y=undefined;if(k!=-1){if(a=b.data[k].data,e.useAxesFormatters){var nt=s[u]._xaxis._ticks[0].formatter,tt=s[u]._yaxis._ticks[0].formatter,it=s[u]._xaxis._ticks[0].formatString,rt=s[u]._yaxis._ticks[0].formatString;v=nt(it,a[0]);y=tt(rt,a[1])}else v=a[0],y=a[1];l&&(o+="<br />");o+=n.jqplot.sprintf(e.tooltipFormatString,g,v,y);l=!0}}}e._tooltipElem.html(o)}function u(t,i){var r=i.plugins.cursor,u=r.cursorCanvas._ctx,a,o,e,h;if(u.clearRect(0,0,u.canvas.width,u.canvas.height),r.showVerticalLine&&r.shapeRenderer.draw(u,[[t.x,0],[t.x,u.canvas.height]]),r.showHorizontalLine&&r.shapeRenderer.draw(u,[[0,t.y],[u.canvas.width,t.y]]),a=f(i,t.x,t.y),r.showCursorLegend)for(o=n(i.targetId+" td.jqplot-cursor-legend-label"),e=0;e<o.length;e++){var v=n(o[e]).data("seriesIndex"),s=i.series[v],y=s.label.toString(),p=n.inArray(v,a.indices),c=undefined,l=undefined;if(p!=-1)if(h=a.data[p].data,r.useAxesFormatters){var w=s._xaxis._ticks[0].formatter,b=s._yaxis._ticks[0].formatter,k=s._xaxis._ticks[0].formatString,d=s._yaxis._ticks[0].formatString;c=w(k,h[0]);l=b(d,h[1])}else c=h[0],l=h[1];i.legend.escapeHtml?n(o[e]).text(n.jqplot.sprintf(r.cursorLegendFormatString,y,c,l)):n(o[e]).html(n.jqplot.sprintf(r.cursorLegendFormatString,y,c,l))}u=null}function f(n,t){for(var r,f={indices:[],data:[]},i,h,e,o,s=n.plugins.cursor,u=0;u<n.series.length;u++)if(i=n.series[u],h=i.renderer,i.show)for(o=s.intersectionThreshold,i.showMarker&&(o+=i.markerRenderer.size/2),r=0;r<i.gridData.length;r++)e=i.gridData[r],s.showVerticalLine&&Math.abs(t-e[0])<=o&&(f.indices.push(u),f.data.push({seriesIndex:u,pointIndex:r,gridData:e,data:i.data[r]}));return f}function i(n,t){var i=t.plugins.cursor,r=i._tooltipElem,u,f;switch(i.tooltipLocation){case"nw":u=n.x+t._gridPadding.left-r.outerWidth(!0)-i.tooltipOffset;f=n.y+t._gridPadding.top-i.tooltipOffset-r.outerHeight(!0);break;case"n":u=n.x+t._gridPadding.left-r.outerWidth(!0)/2;f=n.y+t._gridPadding.top-i.tooltipOffset-r.outerHeight(!0);break;case"ne":u=n.x+t._gridPadding.left+i.tooltipOffset;f=n.y+t._gridPadding.top-i.tooltipOffset-r.outerHeight(!0);break;case"e":u=n.x+t._gridPadding.left+i.tooltipOffset;f=n.y+t._gridPadding.top-r.outerHeight(!0)/2;break;case"se":u=n.x+t._gridPadding.left+i.tooltipOffset;f=n.y+t._gridPadding.top+i.tooltipOffset;break;case"s":u=n.x+t._gridPadding.left-r.outerWidth(!0)/2;f=n.y+t._gridPadding.top+i.tooltipOffset;break;case"sw":u=n.x+t._gridPadding.left-r.outerWidth(!0)-i.tooltipOffset;f=n.y+t._gridPadding.top+i.tooltipOffset;break;case"w":u=n.x+t._gridPadding.left-r.outerWidth(!0)-i.tooltipOffset;f=n.y+t._gridPadding.top-r.outerHeight(!0)/2;break;default:u=n.x+t._gridPadding.left+i.tooltipOffset;f=n.y+t._gridPadding.top+i.tooltipOffset}r.css("left",u);r.css("top",f);r=null}function o(n){var t=n._gridPadding,u=n.plugins.cursor,f=u._tooltipElem,i,r;switch(u.tooltipLocation){case"nw":i=t.left+u.tooltipOffset;r=t.top+u.tooltipOffset;f.css("left",i);f.css("top",r);break;case"n":i=(t.left+(n._plotDimensions.width-t.right))/2-f.outerWidth(!0)/2;r=t.top+u.tooltipOffset;f.css("left",i);f.css("top",r);break;case"ne":i=t.right+u.tooltipOffset;r=t.top+u.tooltipOffset;f.css({right:i,top:r});break;case"e":i=t.right+u.tooltipOffset;r=(t.top+(n._plotDimensions.height-t.bottom))/2-f.outerHeight(!0)/2;f.css({right:i,top:r});break;case"se":i=t.right+u.tooltipOffset;r=t.bottom+u.tooltipOffset;f.css({right:i,bottom:r});break;case"s":i=(t.left+(n._plotDimensions.width-t.right))/2-f.outerWidth(!0)/2;r=t.bottom+u.tooltipOffset;f.css({left:i,bottom:r});break;case"sw":i=t.left+u.tooltipOffset;r=t.bottom+u.tooltipOffset;f.css({left:i,bottom:r});break;case"w":i=t.left+u.tooltipOffset;r=(t.top+(n._plotDimensions.height-t.bottom))/2-f.outerHeight(!0)/2;f.css({left:i,top:r});break;default:i=t.right-u.tooltipOffset;r=t.bottom+u.tooltipOffset;f.css({right:i,bottom:r})}f=null}function s(n,t,i,r,u){var f,e;return n.preventDefault(),n.stopImmediatePropagation(),f=u.plugins.cursor,f.clickReset&&f.resetZoom(u,f),e=window.getSelection,document.selection&&document.selection.empty?document.selection.empty():e&&!e().isCollapsed&&e().collapse(),!1}function h(n,t,i,r,u){var f,e;return n.preventDefault(),n.stopImmediatePropagation(),f=u.plugins.cursor,f.dblClickReset&&f.resetZoom(u,f),e=window.getSelection,document.selection&&document.selection.empty?document.selection.empty():e&&!e().isCollapsed&&e().collapse(),!1}function c(t,i,r,u,f){var e=f.plugins.cursor,s,h,o;if(e.onGrid=!1,e.show&&(n(t.target).css("cursor",e.previousCursor),!e.showTooltip||e._zoom.zooming&&e.showTooltipOutsideZoom&&!e.constrainOutsideZoom||(e._tooltipElem.empty(),e._tooltipElem.hide()),e.zoom&&(e._zoom.gridpos=i,e._zoom.datapos=r),(e.showVerticalLine||e.showHorizontalLine)&&(s=e.cursorCanvas._ctx,s.clearRect(0,0,s.canvas.width,s.canvas.height),s=null),e.showCursorLegend))for(h=n(f.targetId+" td.jqplot-cursor-legend-label"),o=0;o<h.length;o++){var l=n(h[o]).data("seriesIndex"),a=f.series[l],c=a.label.toString();f.legend.escapeHtml?n(h[o]).text(n.jqplot.sprintf(e.cursorLegendFormatString,c,undefined,undefined)):n(h[o]).html(n.jqplot.sprintf(e.cursorLegendFormatString,c,undefined,undefined))}}function l(n,r,f,e,s){var h=s.plugins.cursor;h.onGrid=!0;h.show&&(h.previousCursor=n.target.style.cursor,n.target.style.cursor=h.style,h.showTooltip&&(t(r,f,s),h.followMouse?i(r,s):o(s),h._tooltipElem.show()),(h.showVerticalLine||h.showHorizontalLine)&&u(r,s))}function a(n,r,f,e,o){var s=o.plugins.cursor;s.show&&(s.showTooltip&&(t(r,f,o),s.followMouse&&i(r,o)),(s.showVerticalLine||s.showHorizontalLine)&&u(r,o))}function v(n){for(var u=n.data.plot,r=u.eventCanvas._elem.offset(),f={x:n.pageX-r.left,y:n.pageY-r.top},e={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},s=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],o=u.axes,t,i=11;i>0;i--)t=s[i-1],o[t].show&&(e[t]=o[t].series_p2u(f[t.charAt(0)]));return{offsets:r,gridPos:f,dataPos:e}}function r(n){var e=n.data.plot,r=e.plugins.cursor,f;if(r.show&&r.zoom&&r._zoom.started&&!r.zoomTarget){n.preventDefault();var o=r.zoomCanvas._ctx,s=v(n),u=s.gridPos,h=s.dataPos;r._zoom.gridpos=u;r._zoom.datapos=h;r._zoom.zooming=!0;var c=u.x,l=u.y,a=o.canvas.height,y=o.canvas.width;r.showTooltip&&!r.onGrid&&r.showTooltipOutsideZoom&&(t(u,h,e),r.followMouse&&i(u,e));r._zoom.end=r.constrainZoomTo=="x"?[c,a]:r.constrainZoomTo=="y"?[y,l]:[c,l];f=window.getSelection;document.selection&&document.selection.empty?document.selection.empty():f&&!f().isCollapsed&&f().collapse();p.call(r);o=null}}function y(t,i,u,f,o){var s=o.plugins.cursor,l,h,c;if(o.plugins.mobile)n(document).one("vmouseup.jqplot_cursor",{plot:o},e);else n(document).one("mouseup.jqplot_cursor",{plot:o},e);if(l=o.axes,document.onselectstart!=undefined&&(s._oldHandlers.onselectstart=document.onselectstart,document.onselectstart=function(){return!1}),document.ondrag!=undefined&&(s._oldHandlers.ondrag=document.ondrag,document.ondrag=function(){return!1}),document.onmousedown!=undefined&&(s._oldHandlers.onmousedown=document.onmousedown,document.onmousedown=function(){return!1}),s.zoom){s.zoomProxy||(h=s.zoomCanvas._ctx,h.clearRect(0,0,h.canvas.width,h.canvas.height),h=null);s._zoom.start=s.constrainZoomTo=="x"?[i.x,0]:s.constrainZoomTo=="y"?[0,i.y]:[i.x,i.y];s._zoom.started=!0;for(c in u)s._zoom.axes.start[c]=u[c];o.plugins.mobile?n(document).bind("vmousemove.jqplotCursor",{plot:o},r):n(document).bind("mousemove.jqplotCursor",{plot:o},r)}}function e(t){var s=t.data.plot,i=s.plugins.cursor,e;if(i.zoom&&i._zoom.zooming&&!i.zoomTarget){var u=i._zoom.gridpos.x,f=i._zoom.gridpos.y,o=i._zoom.datapos,h=i.zoomCanvas._ctx.canvas.height,c=i.zoomCanvas._ctx.canvas.width,l=s.axes;if(i.constrainOutsideZoom&&!i.onGrid){u<0?u=0:u>c&&(u=c);f<0?f=0:f>h&&(f=h);for(e in o)o[e]&&(o[e]=e.charAt(0)=="x"?l[e].series_p2u(u):l[e].series_p2u(f))}i.constrainZoomTo=="x"?f=h:i.constrainZoomTo=="y"&&(u=c);i._zoom.end=[u,f];i._zoom.gridpos={x:u,y:f};i.doZoom(i._zoom.gridpos,o,s,i)}i._zoom.started=!1;i._zoom.zooming=!1;n(document).unbind("mousemove.jqplotCursor",r);document.onselectstart!=undefined&&i._oldHandlers.onselectstart!=null&&(document.onselectstart=i._oldHandlers.onselectstart,i._oldHandlers.onselectstart=null);document.ondrag!=undefined&&i._oldHandlers.ondrag!=null&&(document.ondrag=i._oldHandlers.ondrag,i._oldHandlers.ondrag=null);document.onmousedown!=undefined&&i._oldHandlers.onmousedown!=null&&(document.onmousedown=i._oldHandlers.onmousedown,i._oldHandlers.onmousedown=null)}function p(){var t=this._zoom.start,i=this._zoom.end,n=this.zoomCanvas._ctx,r,u,f,e;i[0]>t[0]?(r=t[0],e=i[0]-t[0]):(r=i[0],e=t[0]-i[0]);i[1]>t[1]?(u=t[1],f=i[1]-t[1]):(u=i[1],f=t[1]-i[1]);n.fillStyle="rgba(0,0,0,0.2)";n.strokeStyle="#999999";n.lineWidth=1;n.clearRect(0,0,n.canvas.width,n.canvas.height);n.fillRect(0,0,n.canvas.width,n.canvas.height);n.clearRect(r,u,e,f);n.strokeRect(r,u,e,f);n=null}n.jqplot.Cursor=function(t){this.style="crosshair";this.previousCursor="auto";this.show=n.jqplot.config.enablePlugins;this.showTooltip=!0;this.followMouse=!1;this.tooltipLocation="se";this.tooltipOffset=6;this.showTooltipGridPosition=!1;this.showTooltipUnitPosition=!0;this.showTooltipDataPosition=!1;this.tooltipFormatString="%.4P, %.4P";this.useAxesFormatters=!0;this.tooltipAxisGroups=[];this.zoom=!1;this.zoomProxy=!1;this.zoomTarget=!1;this.looseZoom=!0;this.clickReset=!1;this.dblClickReset=!0;this.showVerticalLine=!1;this.showHorizontalLine=!1;this.constrainZoomTo="none";this.shapeRenderer=new n.jqplot.ShapeRenderer;this._zoom={start:[],end:[],started:!1,zooming:!1,isZoomed:!1,axes:{start:{},end:{}},gridpos:{},datapos:{}};this._tooltipElem;this.zoomCanvas;this.cursorCanvas;this.intersectionThreshold=2;this.showCursorLegend=!1;this.cursorLegendFormatString=n.jqplot.Cursor.cursorLegendFormatString;this._oldHandlers={onselectstart:null,ondrag:null,onmousedown:null};this.constrainOutsideZoom=!0;this.showTooltipOutsideZoom=!1;this.onGrid=!1;n.extend(!0,this,t)};n.jqplot.Cursor.cursorLegendFormatString="%s x:%s, y:%s";n.jqplot.Cursor.init=function(t,i,r){var f=r||{},u;this.plugins.cursor=new n.jqplot.Cursor(f.cursor);u=this.plugins.cursor;u.show&&(n.jqplot.eventListenerHooks.push(["jqplotMouseEnter",l]),n.jqplot.eventListenerHooks.push(["jqplotMouseLeave",c]),n.jqplot.eventListenerHooks.push(["jqplotMouseMove",a]),u.showCursorLegend&&(r.legend=r.legend||{},r.legend.renderer=n.jqplot.CursorLegendRenderer,r.legend.formatString=this.plugins.cursor.cursorLegendFormatString,r.legend.show=!0),u.zoom&&(n.jqplot.eventListenerHooks.push(["jqplotMouseDown",y]),u.clickReset&&n.jqplot.eventListenerHooks.push(["jqplotClick",s]),u.dblClickReset&&n.jqplot.eventListenerHooks.push(["jqplotDblClick",h])),this.resetZoom=function(){var i=this.axes,n,t;if(u.zoomProxy)t=this.plugins.cursor.zoomCanvas._ctx,t.clearRect(0,0,t.canvas.width,t.canvas.height),t=null;else{for(n in i)i[n].reset(),i[n]._ticks=[],u._zoom.axes[n]!==undefined&&(i[n]._autoFormatString=u._zoom.axes[n].tickFormatString);this.redraw()}this.plugins.cursor._zoom.isZoomed=!1;this.target.trigger("jqplotResetZoom",[this,this.plugins.cursor])},u.showTooltipDataPosition&&(u.showTooltipUnitPosition=!1,u.showTooltipGridPosition=!1,f.cursor.tooltipFormatString==undefined&&(u.tooltipFormatString=n.jqplot.Cursor.cursorLegendFormatString)))};n.jqplot.Cursor.postDraw=function(){var t=this.plugins.cursor,u,f,e,r,o,i;if(t.zoomCanvas&&(t.zoomCanvas.resetCanvas(),t.zoomCanvas=null),t.cursorCanvas&&(t.cursorCanvas.resetCanvas(),t.cursorCanvas=null),t._tooltipElem&&(t._tooltipElem.emptyForce(),t._tooltipElem=null),t.zoom&&(t.zoomCanvas=new n.jqplot.GenericCanvas,this.eventCanvas._elem.before(t.zoomCanvas.createElement(this._gridPadding,"jqplot-zoom-canvas",this._plotDimensions,this)),t.zoomCanvas.setContext()),u=document.createElement("div"),t._tooltipElem=n(u),u=null,t._tooltipElem.addClass("jqplot-cursor-tooltip"),t._tooltipElem.css({position:"absolute",display:"none"}),t.zoomCanvas?t.zoomCanvas._elem.before(t._tooltipElem):this.eventCanvas._elem.before(t._tooltipElem),(t.showVerticalLine||t.showHorizontalLine)&&(t.cursorCanvas=new n.jqplot.GenericCanvas,this.eventCanvas._elem.before(t.cursorCanvas.createElement(this._gridPadding,"jqplot-cursor-canvas",this._plotDimensions,this)),t.cursorCanvas.setContext()),t.showTooltipUnitPosition&&t.tooltipAxisGroups.length===0){for(f=this.series,r=[],i=0;i<f.length;i++)e=f[i],o=e.xaxis+","+e.yaxis,n.inArray(o,r)==-1&&r.push(o);for(i=0;i<r.length;i++)t.tooltipAxisGroups.push(r[i].split(","))}};n.jqplot.Cursor.zoomProxy=function(n,t){function u(t,r,u,f,e){i.doZoom(r,u,n,e)}function f(){n.resetZoom()}var i=n.plugins.cursor,r=t.plugins.cursor;i.zoomTarget=!0;i.zoom=!0;i.style="auto";i.dblClickReset=!1;r.zoom=!0;r.zoomProxy=!0;t.target.bind("jqplotZoom",u);t.target.bind("jqplotResetZoom",f)};n.jqplot.Cursor.prototype.resetZoom=function(n,t){var u=n.axes,f=t._zoom.axes,i,r;if(!n.plugins.cursor.zoomProxy&&t._zoom.isZoomed){for(i in u)u[i].reset(),u[i]._ticks=[],u[i]._autoFormatString=f[i].tickFormatString;n.redraw();t._zoom.isZoomed=!1}else r=t.zoomCanvas._ctx,r.clearRect(0,0,r.canvas.width,r.canvas.height),r=null;n.target.trigger("jqplotResetZoom",[n,t])};n.jqplot.Cursor.resetZoom=function(n){n.resetZoom()};n.jqplot.Cursor.prototype.doZoom=function(t,i,r,u){var o=u,e=r.axes,w=o._zoom.axes,l=w.start,k=w.end,c,b,a,v,h,y,s,p=r.plugins.cursor.zoomCanvas._ctx,f;if(o.constrainZoomTo=="none"&&Math.abs(t.x-o._zoom.start[0])>6&&Math.abs(t.y-o._zoom.start[1])>6||o.constrainZoomTo=="x"&&Math.abs(t.x-o._zoom.start[0])>6||o.constrainZoomTo=="y"&&Math.abs(t.y-o._zoom.start[1])>6){if(!r.plugins.cursor.zoomProxy){for(f in i)o._zoom.axes[f]==undefined&&(o._zoom.axes[f]={},o._zoom.axes[f].numberTicks=e[f].numberTicks,o._zoom.axes[f].tickInterval=e[f].tickInterval,o._zoom.axes[f].daTickInterval=e[f].daTickInterval,o._zoom.axes[f].min=e[f].min,o._zoom.axes[f].max=e[f].max,o._zoom.axes[f].tickFormatString=e[f].tickOptions!=null?e[f].tickOptions.formatString:""),(o.constrainZoomTo=="none"||o.constrainZoomTo=="x"&&f.charAt(0)=="x"||o.constrainZoomTo=="y"&&f.charAt(0)=="y")&&(c=i[f],c!=null&&(c>l[f]?(a=l[f],v=c):(b=l[f]-c,a=c,v=l[f]),h=e[f],y=null,h.alignTicks&&(h.name==="x2axis"&&r.axes.xaxis.show?y=r.axes.xaxis.numberTicks:h.name.charAt(0)==="y"&&h.name!=="yaxis"&&h.name!=="yMidAxis"&&r.axes.yaxis.show&&(y=r.axes.yaxis.numberTicks)),this.looseZoom&&(e[f].renderer.constructor===n.jqplot.LinearAxisRenderer||e[f].renderer.constructor===n.jqplot.LogAxisRenderer)?(s=n.jqplot.LinearTickGenerator(a,v,h._scalefact,y),e[f].tickInset&&s[0]<e[f].min+e[f].tickInset*e[f].tickInterval&&(s[0]+=s[4],s[2]-=1),e[f].tickInset&&s[1]>e[f].max-e[f].tickInset*e[f].tickInterval&&(s[1]-=s[4],s[2]-=1),e[f].renderer.constructor===n.jqplot.LogAxisRenderer&&s[0]<e[f].min&&(s[0]+=s[4],s[2]-=1),e[f].min=s[0],e[f].max=s[1],e[f]._autoFormatString=s[3],e[f].numberTicks=s[2],e[f].tickInterval=s[4],e[f].daTickInterval=[s[4]/1e3,"seconds"]):(e[f].min=a,e[f].max=v,e[f].tickInterval=null,e[f].numberTicks=null,e[f].daTickInterval=null),e[f]._ticks=[]));p.clearRect(0,0,p.canvas.width,p.canvas.height);r.redraw();o._zoom.isZoomed=!0;p=null}r.target.trigger("jqplotZoom",[t,i,r,u])}};n.jqplot.preInitHooks.push(n.jqplot.Cursor.init);n.jqplot.postDrawHooks.push(n.jqplot.Cursor.postDraw);n.jqplot.CursorLegendRenderer=function(t){n.jqplot.TableLegendRenderer.call(this,t);this.formatString="%s"};n.jqplot.CursorLegendRenderer.prototype=new n.jqplot.TableLegendRenderer;n.jqplot.CursorLegendRenderer.prototype.constructor=n.jqplot.CursorLegendRenderer;n.jqplot.CursorLegendRenderer.prototype.draw=function(){function c(t,i,r,u){var o=r?this.rowSpacing:"0",e=n('<tr class="jqplot-legend jqplot-cursor-legend"><\/tr>').appendTo(this._elem),f;e.data("seriesIndex",u);n('<td class="jqplot-legend jqplot-cursor-legend-swatch" style="padding-top:'+o+';"><div style="border:1px solid #cccccc;padding:0.2em;"><div class="jqplot-cursor-legend-swatch" style="background-color:'+i+';"><\/div><\/div><\/td>').appendTo(e);f=n('<td class="jqplot-legend jqplot-cursor-legend-label" style="vertical-align:middle;padding-top:'+o+';"><\/td>');f.appendTo(e);f.data("seriesIndex",u);this.escapeHtml?f.text(t):f.html(t);e=null;f=null}var i,t,o,r,u,s,h,f,e;if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){for(i=this._series,o=document.createElement("table"),this._elem=n(o),o=null,this._elem.addClass("jqplot-legend jqplot-cursor-legend"),this._elem.css("position","absolute"),r=!1,u=0;u<i.length;u++)if(t=i[u],t.show&&t.showLabel)for(s=n.jqplot.sprintf(this.formatString,t.label.toString()),s&&(h=t.color,t._stack&&!t.fill&&(h=""),c.call(this,s,h,r,u),r=!0),f=0;f<n.jqplot.addLegendRowHooks.length;f++)e=n.jqplot.addLegendRowHooks[f].call(this,t),e&&(c.call(this,e.label,e.color,r),r=!0);i=t=null;delete i;delete t}return this._elem}}(jQuery)