/*
 Highcharts JS v2.2.0 (2012-02-16)

 (c) 2009-2011 Torstein H?nsi

 License: www.highcharts.com/license
 Highcharts JS v2.2.0 (2012-02-16)
 Exporting module

 (c) 2010-2011 Torstein H?nsi

 License: www.highcharts.com/license
*/
(function(){function C(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function L(){for(var a=0,b=arguments,c=b.length,d={};a<c;a++)d[b[a++]]=b[a];return d}function F(a,b){return parseInt(a,b||10)}function Sa(a){return"string"===typeof a}function fa(a){return"object"===typeof a}function ua(a){return"[object Array]"===Object.prototype.toString.call(a)}function wa(a){return"number"===typeof a}function cb(a){return xa.log(a)/xa.LN10}function ya(a){return xa.pow(10,a)}function Ya(a,b){for(var c=a.length;c--;)if(a[c]===
b){a.splice(c,1);break}}function p(a){return a!==ga&&null!==a}function r(a,b,c){var d,e;if(Sa(b))p(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(p(b)&&fa(b))for(d in b)a.setAttribute(d,b[d]);return e}function aa(a){return ua(a)?a:[a]}function l(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],"undefined"!==typeof c&&null!==c)return c}function R(a,b){if(bc&&b&&b.opacity!==ga)b.filter="alpha(opacity="+100*b.opacity+")";C(a.style,b)}function U(a,b,c,d,e){a=W.createElement(a);
b&&C(a,b);e&&R(a,{padding:0,border:Oa,margin:0});c&&R(a,c);d&&d.appendChild(a);return a}function i(a,b){var c=function(){};c.prototype=new a;C(c.prototype,b);return c}function I(a,b,c,d){var e=Ma.lang,f=isNaN(b=Ga(b))?2:b,b=void 0===c?e.decimalPoint:c,d=void 0===d?e.thousandsSep:d,e=0>a?"-":"",c=""+F(a=Ga(+a||0).toFixed(f)),g=3<c.length?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+Ga(a-c).toFixed(f).slice(2):"")}function w(a,b,c,d){var e,c=l(c,1);
e=a/c;b||(b=[1,2,2.5,5,10],d&&!1===d.allowDecimals&&(1===c?b=[1,2,5,10]:0.1>=c&&(b=[1/c])));for(d=0;d<b.length&&!(a=b[d],e<=(b[d]+(b[d+1]||b[d]))/2);d++);return a*c}function A(a,b){var c=b||[[mc,[1,2,5,10,20,25,50,100,200,500]],[Cb,[1,2,5,10,15,30]],[pb,[1,2,5,10,15,30]],[Db,[1,2,3,4,6,8,12]],[Ha,[1,2]],[Eb,[1,2]],[Ia,[1,2,3,4,6]],[Ja,null]],d=c[c.length-1],e=S[d[0]],f=d[1],g;for(g=0;g<c.length&&!(d=c[g],e=S[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+S[c[g+1][0]])/2);g++);e===S[Ja]&&a<5*e&&(f=[1,2,
5]);e===S[Ja]&&a<5*e&&(f=[1,2,5]);c=w(a/e,f);return{unitRange:e,count:c,unitName:d[0]}}function qb(a,b,c,d){var e=[],f={},g=Ma.global.useUTC,h,k=new Date(b),b=a.unitRange,q=a.count;k.setMilliseconds(0);b>=S[Cb]&&k.setSeconds(b>=S[pb]?0:q*Za(k.getSeconds()/q));if(b>=S[pb])k[wc](b>=S[Db]?0:q*Za(k[nc]()/q));if(b>=S[Db])k[xc](b>=S[Ha]?0:q*Za(k[oc]()/q));if(b>=S[Ha])k[pc](b>=S[Ia]?1:q*Za(k[rb]()/q));b>=S[Ia]&&(k[yc](b>=S[Ja]?0:q*Za(k[Fb]()/q)),h=k[Gb]());if(b>=S[Ja])k[zc](h-h%q);if(b===S[Eb])k[pc](k[rb]()-
k[qc]()+l(d,1));d=1;h=k[Gb]();for(var j=k.getTime(),t=k[Fb](),k=k[rb]();j<c;)e.push(j),b===S[Ja]?j=Hb(h+d*q,0):b===S[Ia]?j=Hb(h,t+d*q):!g&&(b===S[Ha]||b===S[Eb])?j=Hb(h,t,k+d*q*(b===S[Ha]?1:7)):(j+=b*q,b<=S[Db]&&0===j%S[Ha]&&(f[j]=Ha)),d++;e.push(j);e.info=C(a,{higherRanks:f,totalRange:b*q});return e}function $a(){this.symbol=this.color=0}function X(a,b,c,d,e,f,g,h,k){var q=g.x,g=g.y,k=q+c+(k?h:-a-h),j=g-b+d+15,t;7>k&&(k=c+q+h);k+a>c+e&&(k-=k+a-(c+e),j=g-b+d-h,t=!0);j<d+5?(j=d+5,t&&g>=j&&g<=j+b&&
(j=g+d+h)):j+b>d+f&&(j=d+f-b-h);return{x:k,y:j}}function hc(a,b){var c=a.length,d,e;for(e=0;e<c;e++)a[e].ss_i=e;a.sort(function(a,c){d=b(a,c);return 0===d?a.ss_i-c.ss_i:d});for(e=0;e<c;e++)delete a[e].ss_i}function cc(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function Sb(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function Tb(a){for(var b in a)a[b]&&a[b].destroy&&a[b].destroy(),delete a[b]}function sb(a){Pb||(Pb=U(tb));a&&Pb.appendChild(a);Pb.innerHTML=""}function db(a,
b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;la.console&&console.log(c)}function eb(a){return parseFloat(a.toPrecision(14))}function ha(a,b){dc=l(a,b.animation)}function Ub(){var a=Ma.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";Hb=a?Date.UTC:function(a,b,c,g,h,k){return(new Date(a,b,l(c,1),l(g,0),l(h,0),l(k,0))).getTime()};nc=b+"Minutes";oc=b+"Hours";qc=b+"Day";rb=b+"Date";Fb=b+"Month";Gb=b+"FullYear";wc=c+"Minutes";xc=c+"Hours";pc=c+"Date";yc=c+"Month";zc=
c+"FullYear"}function Ta(){}function Pa(a,b){function c(a){function b(a,c){this.pos=a;this.type=c||"";this.isNew=!0;c||this.addLabel()}function c(a){if(a)this.options=a,this.id=a.id;return this}function d(a,b,c,e){this.isNegative=b;this.options=a;this.x=c;this.stack=e;this.alignOptions={align:a.align||($?b?"left":"right":"center"),verticalAlign:a.verticalAlign||($?"middle":b?"bottom":"top"),y:l(a.y,$?4:b?14:-6),x:l(a.x,$?b?-6:6:0)};this.textAlign=a.textAlign||($?b?"right":"left":"center")}function e(){var a=
[],b=[],c;bb=T=null;o(x.series,function(e){if(e.visible||!s.ignoreHiddenSeries){var f=e.options,g,h,k,j,q,m,t,G,n,hb=f.threshold,x,o=[],u=0;if(M&&0>=hb)hb=f.threshold=null;if(i)f=e.xData,f.length&&(bb=fb(l(bb,f[0]),cc(f)),T=ea(l(T,f[0]),Sb(f)));else{var K,D,Vb,z=e.cropped,Q=e.xAxis.getExtremes(),ia=!!e.modifyValue;g=f.stacking;Fa="percent"===g;if(g)q=f.stack,j=e.type+l(q,""),m="-"+j,e.stackKey=j,h=a[j]||[],a[j]=h,k=b[m]||[],b[m]=k;Fa&&(bb=0,T=99);f=e.processedXData;t=e.processedYData;x=t.length;for(c=
0;c<x;c++)if(G=f[c],n=t[c],null!==n&&n!==ga&&(g?(D=(K=n<hb)?k:h,Vb=K?m:j,n=D[G]=p(D[G])?D[G]+n:n,Ua[Vb]||(Ua[Vb]={}),Ua[Vb][G]||(Ua[Vb][G]=new d(v.stackLabels,K,G,q)),Ua[Vb][G].setTotal(n)):ia&&(n=e.modifyValue(n)),z||(f[c+1]||G)>=Q.min&&(f[c-1]||G)<=Q.max))if(G=n.length)for(;G--;)null!==n[G]&&(o[u++]=n[G]);else o[u++]=n;!Fa&&o.length&&(bb=fb(l(bb,o[0]),cc(o)),T=ea(l(T,o[0]),Sb(o)));null!==hb&&(bb>=hb?(bb=hb,Ma=!0):T<hb&&(T=hb,Na=!0))}}})}function f(a,b,c){for(var d,b=eb(Za(b/a)*a),c=eb(ic(c/a)*a),
e=[];b<=c;){e.push(b);b=eb(b+a);if(b===d)break;d=b}return e}function g(a,b,c,d){var e=[];if(!d)x._minorAutoInterval=null;if(0.5<=a)a=B(a),e=f(a,b,c);else if(0.08<=a){var h=Za(b),k,j,q,m,t,G;for(k=0.3<a?[1,2,4]:0.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<c+1&&!G;h++){q=k.length;for(j=0;j<q&&!G;j++)m=cb(ya(h)*k[j]),m>b&&e.push(t),t>c&&(G=!0),t=m}}else if(b=ya(b),c=ya(c),a=v[d?"minorTickInterval":"tickInterval"],a=l("auto"===a?null:a,x._minorAutoInterval,(c-b)*(v.tickPixelInterval/(d?5:1))/((d?ka/Y.length:
ka)||1)),a=w(a,null,xa.pow(10,Za(xa.log(a)/xa.LN10))),e=ec(f(a,b,c),cb),!d)x._minorAutoInterval=a/5;d||(Qa=a);return e}function h(){var a=[],b,c;if(M){c=Y.length;for(b=1;b<c;b++)a=a.concat(g(Aa,Y[b-1],Y[b],!0))}else for(b=H+(Y[0]-H)%Aa;b<=J;b+=Aa)a.push(b);return a}function k(){var a,b=T-bb>=$a,c,d,e,f,g,h;i&&$a===ga&&!M&&(p(v.min)||p(v.max)?$a=null:(o(x.series,function(a){f=a.xData;for(d=g=a.xIncrement?1:f.length-1;0<d;d--)if(e=f[d]-f[d-1],c===ga||e<c)c=e}),$a=fb(5*c,T-bb)));J-H<$a&&(a=($a-J+H)/
2,a=[H-a,l(v.min,H-a)],b&&(a[2]=bb),H=Sb(a),h=[H+$a,l(v.max,H+$a)],b&&(h[2]=T),J=cc(h),J-H<$a&&(a[0]=J-$a,a[1]=l(v.min,J-$a),H=Sb(a)))}function j(a){var b,c=v.tickInterval,d=v.tickPixelInterval;ha?(aa=m[i?"xAxis":"yAxis"][v.linkedTo],b=aa.getExtremes(),H=l(b.min,b.dataMin),J=l(b.max,b.dataMax),v.type!==aa.options.type&&db(11,1)):(H=l(da,v.min,bb),J=l(U,v.max,T));M&&(!a&&0>=H&&db(10),H=cb(H),J=cb(J));ma&&(da=H=ea(H,J-ma),U=J,a&&(ma=null));k();if(!ab&&!Fa&&!ha&&p(H)&&p(J)){b=J-H||1;if(!p(v.min)&&!p(da)&&
ua&&(0>bb||!Ma))H-=b*ua;if(!p(v.max)&&!p(U)&&Ha&&(0<T||!Na))J+=b*Ha}Qa=H===J||void 0===H||void 0===J?1:ha&&!c&&d===aa.options.tickPixelInterval?aa.tickInterval:l(c,ab?1:(J-H)*d/(ka||1));i&&!a&&o(x.series,function(a){a.processData(H!==la||J!==sb)});R();x.beforeSetTickPositions&&x.beforeSetTickPositions();x.postProcessTickInterval&&(Qa=x.postProcessTickInterval(Qa));!ia&&!M&&(Oa=xa.pow(10,Za(xa.log(Qa)/xa.LN10)),p(v.tickInterval)||(Qa=w(Qa,null,Oa,v)));x.tickInterval=Qa;Aa="auto"===v.minorTickInterval&&
Qa?Qa/5:v.minorTickInterval;(Y=v.tickPositions||Wa&&Wa.apply(x,[H,J]))||(Y=ia?(x.getNonLinearTimeTicks||qb)(A(Qa,v.units),H,J,v.startOfWeek,x.ordinalPositions,x.closestPointRange,!0):M?g(Qa,H,J):f(Qa,H,J));ca(x,"afterSetTickPositions",{tickPositions:Y});if(!ha&&(a=Y[0],c=Y[Y.length-1],v.startOnTick?H=a:H>a&&Y.shift(),v.endOnTick?J=c:J<c&&Y.pop(),lb||(lb={x:0,y:0}),!ia&&Y.length>lb[ja]&&!1!==v.alignTicks))lb[ja]=Y.length}function q(a){a=(new c(a)).render();qa.push(a);return a}function t(){var a=v.title,
d=v.stackLabels,e=v.alternateGridColor,f=v.lineWidth,g,k,j=m.hasRendered&&p(la)&&!isNaN(la),G=(g=x.series.length&&p(H)&&p(J))||l(v.showEmpty,!0),n,i;if(g||ha)if(Aa&&!ab&&o(h(),function(a){va[a]||(va[a]=new b(a,"minor"));j&&va[a].isNew&&va[a].render(null,!0);va[a].isActive=!0;va[a].render()}),o(Y,function(a,c){if(!ha||a>=H&&a<=J)Va[a]||(Va[a]=new b(a)),j&&Va[a].isNew&&Va[a].render(c,!0),Va[a].isActive=!0,Va[a].render(c)}),e&&o(Y,function(a,b){if(0===b%2&&a<J)Pa[a]||(Pa[a]=new c),n=a,i=Y[b+1]!==ga?
Y[b+1]:J,Pa[a].options={from:M?ya(n):n,to:M?ya(i):i,color:e},Pa[a].render(),Pa[a].isActive=!0}),!x._addedPlotLB)o((v.plotLines||[]).concat(v.plotBands||[]),function(a){q(a)}),x._addedPlotLB=!0;o([Va,va,Pa],function(a){for(var b in a)a[b].isActive?a[b].isActive=!1:(a[b].destroy(),delete a[b])});f&&(g=r+(K?Ib:0)+y,k=Ba-Wb-(K?mb:0)+y,g=N.crispLine([Ca,Q?r:g,Q?k:ub,na,Q?za-W:g,Q?k:Ba-Wb],f),ba?ba.animate({d:g}):ba=N.path(g).attr({stroke:v.lineColor,"stroke-width":f,zIndex:7}).add(),ba[G?"show":"hide"]());
if(u&&G)G=Q?r:ub,f=F(a.style.fontSize||12),G={low:G+(Q?0:ka),middle:G+ka/2,high:G+(Q?ka:0)}[a.align],f=(Q?ub+mb:r)+(Q?1:-1)*(K?-1:1)*Xa+(2===D?f:0),u[u.isNew?"attr":"animate"]({x:Q?G:f+(K?Ib:0)+y+(a.x||0),y:Q?f-(K?mb:0)+y:G+(a.y||0)}),u.isNew=!1;if(d&&d.enabled){var s,z,d=x.stackTotalGroup;if(!d)x.stackTotalGroup=d=N.g("stack-labels").attr({visibility:kb,zIndex:6}).translate(V,O).add();for(s in Ua)for(z in a=Ua[s],a)a[z].render(d)}x.isDirty=!1}function n(a){for(var b=qa.length;b--;)qa[b].id===a&&
qa[b].destroy()}var i=a.isX,K=a.opposite,Q=$?!i:i,D=Q?K?0:2:K?1:3,Ua={},v=P(i?jc:rc,[Nc,Oc,Ac,Pc][D],a),x=this,u,z=v.type,ia="datetime"===z,M="logarithmic"===z,y=v.offset||0,ja=i?"x":"y",ka=0,Mb,E,X,L,r,ub,Ib,mb,Wb,W,S,R,Z,jb,xb,ba,bb,T,$a=v.minRange||v.maxZoom,ma=v.range,da,U,ta,hc,J=null,H=null,la,sb,ua=v.minPadding,Ha=v.maxPadding,Ja=0,ha=p(v.linkedTo),aa,Ma,Na,Fa,z=v.events,La,qa=[],Qa,Aa,Oa,Y,Wa=v.tickPositioner,Va={},va={},Pa={},Ka,Ea,Xa,ab=v.categories,gb=v.labels.formatter||function(){var a=
this.value,b=this.dateTimeLabelFormat;return b?kc(b,a):0===Qa%1E6?a/1E6+"M":0===Qa%1E3?a/1E3+"k":!ab&&1E3<=a?I(a,0):a},Sa=Q&&v.labels.staggerLines,fa=v.reversed,Ia=ab&&"between"===v.tickmarkPlacement?0.5:0;b.prototype={addLabel:function(){var a=this.pos,b=v.labels,c=ab&&Q&&ab.length&&!b.step&&!b.staggerLines&&!b.rotation&&ra/ab.length||!Q&&ra/2,d=a===Y[0],e=a===Y[Y.length-1],f=ab&&p(ab[a])?ab[a]:a,g=this.label,h=Y.info,k;ia&&h&&(k=v.dateTimeLabelFormats[h.higherRanks[a]||h.unitName]);this.isFirst=
d;this.isLast=e;a=gb.call({axis:x,chart:m,isFirst:d,isLast:e,dateTimeLabelFormat:k,value:M?eb(ya(f)):f});c=c&&{width:ea(1,B(c-2*(b.padding||10)))+oa};c=C(c,b.style);p(g)?g&&g.attr({text:a}).css(c):this.label=p(a)&&b.enabled?N.text(a,0,0,b.useHTML).attr({align:b.align,rotation:b.rotation}).css(c).add(jb):null},getLabelSize:function(){var a=this.label;return a?(this.labelBBox=a.getBBox())[Q?"height":"width"]:0},render:function(a,b){var c=this.type,d=this.label,e=this.pos,f=v.labels,g=this.gridLine,
h=c?c+"Grid":"grid",k=c?c+"Tick":"tick",j=v[h+"LineWidth"],q=v[h+"LineColor"],m=v[h+"LineDashStyle"],G=v[k+"Length"],h=v[k+"Width"]||0,t=v[k+"Color"],n=v[k+"Position"],k=this.mark,hb=f.step,i=b&&wa||Ba,x;x=Q?S(e+Ia,null,null,b)+X:r+y+(K?(b&&Ub||za)-W-r:0);i=Q?i-Wb+y-(K?mb:0):i-S(e+Ia,null,null,b)-X;if(j){e=Z(e+Ia,j,b);if(g===ga){g={stroke:q,"stroke-width":j};if(m)g.dashstyle=m;if(!c)g.zIndex=1;this.gridLine=g=j?N.path(e).attr(g).add(xb):null}!b&&g&&e&&g.animate({d:e})}if(h)"inside"===n&&(G=-G),K&&
(G=-G),c=N.crispLine([Ca,x,i,na,x+(Q?0:-G),i+(Q?G:0)],h),k?k.animate({d:c}):this.mark=N.path(c).attr({stroke:t,"stroke-width":h}).add(jb);d&&!isNaN(x)&&(x=x+f.x-(Ia&&Q?Ia*E*(fa?-1:1):0),i=i+f.y-(Ia&&!Q?Ia*E*(fa?1:-1):0),p(f.y)||(i+=0.9*F(d.styles.lineHeight)-d.getBBox().height/2),Sa&&(i+=16*(a/(hb||1)%Sa)),this.isFirst&&!l(v.showFirstLabel,1)||this.isLast&&!l(v.showLastLabel,1)?d.hide():d.show(),hb&&a%hb&&d.hide(),d[this.isNew?"attr":"animate"]({x:x,y:i}));this.isNew=!1},destroy:function(){Tb(this)}};
c.prototype={render:function(){var a=this,b=(x.pointRange||0)/2,c=a.options,d=c.label,e=a.label,f=c.width,g=c.to,h=c.from,k=c.value,j,q=c.dashStyle,G=a.svgElem,m=[],t,v,n=c.color;v=c.zIndex;var i=c.events;M&&(h=cb(h),g=cb(g),k=cb(k));if(f){if(m=Z(k,f),b={stroke:n,"stroke-width":f},q)b.dashstyle=q}else if(p(h)&&p(g))h=ea(h,H-b),g=fb(g,J+b),j=Z(g),(m=Z(h))&&j?m.push(j[4],j[5],j[1],j[2]):m=null,b={fill:n};else return;if(p(v))b.zIndex=v;if(G)m?G.animate({d:m},null,G.onGetPath):(G.hide(),G.onGetPath=function(){G.show()});
else if(m&&m.length&&(a.svgElem=G=N.path(m).attr(b).add(),i))for(t in q=function(b){G.on(b,function(c){i[b].apply(a,[c])})},i)q(t);if(d&&p(d.text)&&m&&m.length&&0<Ib&&0<mb){d=P({align:Q&&j&&"center",x:Q?!j&&4:10,verticalAlign:!Q&&j&&"middle",y:Q?j?16:10:j?6:-4,rotation:Q&&!j&&90},d);if(!e)a.label=e=N.text(d.text,0,0).attr({align:d.textAlign||d.align,rotation:d.rotation,zIndex:v}).css(d.style).add();j=[m[1],m[4],l(m[6],m[1])];m=[m[2],m[5],l(m[7],m[2])];t=cc(j);v=cc(m);e.align(d,!1,{x:t,y:v,width:Sb(j)-
t,height:Sb(m)-v});e.show()}else e&&e.hide();return a},destroy:function(){Tb(this);Ya(qa,this)}};d.prototype={destroy:function(){Tb(this)},setTotal:function(a){this.cum=this.total=a},render:function(a){var b=this.options.formatter.call(this);this.label?this.label.attr({text:b,visibility:ib}):this.label=m.renderer.text(b,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:ib}).add(a)},setOffset:function(a,b){var c=this.isNegative,d=x.translate(this.total,
0,0,0,1),e=x.translate(0),e=Ga(d-e),f=m.xAxis[0].translate(this.x)+a,g=m.plotHeight,c={x:$?c?d:d-e:f,y:$?g-f-b:c?g-d-e:g-d,width:$?e:b,height:$?b:e};this.label&&this.label.align(this.alignOptions,null,c).attr({visibility:kb})}};S=function(a,b,c,d,e){var f=1,g=0,h=d?L:E,d=d?la:H,e=v.ordinal||M&&e;h||(h=E);c&&(f*=-1,g=ka);fa&&(f*=-1,g-=f*ka);b?(fa&&(a=ka-a),a=a/h+d,e&&(a=x.lin2val(a))):(e&&(a=x.val2lin(a)),a=f*(a-d)*h+g+f*Ja);return a};Z=function(a,b,c){var d,e,f,a=S(a,null,null,c),g=c&&wa||Ba,h=c&&
Ub||za,k,c=e=B(a+X);d=f=B(g-a-X);if(isNaN(a))k=!0;else if(Q){if(d=ub,f=g-Wb,c<r||c>r+Ib)k=!0}else if(c=r,e=h-W,d<ub||d>ub+mb)k=!0;return k?null:N.crispLine([Ca,c,d,na,e,f],b||0)};R=function(){var a=J-H,b=0,c,d;if(i)ha?b=aa.pointRange:o(x.series,function(a){b=ea(b,a.pointRange);d=a.closestPointRange;!a.noSharedTooltip&&p(d)&&(c=p(c)?fb(c,d):d)}),x.pointRange=b,x.closestPointRange=c;L=E;x.translationSlope=E=ka/(a+b||1);X=Q?r:Wb;Ja=E*(b/2)};Da.push(x);m[i?"xAxis":"yAxis"].push(x);$&&i&&fa===ga&&(fa=
!0);C(x,{addPlotBand:q,addPlotLine:q,adjustTickAmount:function(){if(lb&&lb[ja]&&!ia&&!ab&&!ha&&!1!==v.alignTicks){var a=Ka,b=Y.length;Ka=lb[ja];if(b<Ka){for(;Y.length<Ka;)Y.push(eb(Y[Y.length-1]+Qa));E*=(b-1)/(Ka-1);J=Y[Y.length-1]}if(p(a)&&Ka!==a)x.isDirty=!0}},categories:ab,getExtremes:function(){return{min:M?eb(ya(H)):H,max:M?eb(ya(J)):J,dataMin:bb,dataMax:T,userMin:da,userMax:U}},getPlotLinePath:Z,getThreshold:function(a){var b=M?ya(H):H,c=M?ya(J):J;b>a||null===a?a=b:c<a&&(a=c);return S(a,0,1,
0,1)},isXAxis:i,options:v,plotLinesAndBands:qa,getOffset:function(){var a=x.series.length&&p(H)&&p(J),c=a||l(v.showEmpty,!0),d=0,e=0,f=v.title,g=v.labels,h=[-1,1,1,-1][D],k;jb||(jb=N.g("axis").attr({zIndex:7}).add(),xb=N.g("grid").attr({zIndex:v.gridZIndex||1}).add());Ea=0;if(a||ha)o(Y,function(a){Va[a]?Va[a].addLabel():Va[a]=new b(a)}),o(Y,function(a){if(0===D||2===D||{1:"left",3:"right"}[D]===g.align)Ea=ea(Va[a].getLabelSize(),Ea)}),Sa&&(Ea+=16*(Sa-1));else for(k in Va)Va[k].destroy(),delete Va[k];
if(f&&f.text){if(!u)u=x.axisTitle=N.text(f.text,0,0,f.useHTML).attr({zIndex:7,rotation:f.rotation||0,align:f.textAlign||{low:"left",middle:"center",high:"right"}[f.align]}).css(f.style).add(),u.isNew=!0;c&&(d=u.getBBox()[Q?"height":"width"],e=l(f.margin,Q?5:10));u[c?"show":"hide"]()}y=h*l(v.offset,Ta[D]);Xa=l(f.offset,Ea+e+(2!==D&&Ea&&h*v.labels[Q?"y":"x"]));Ta[D]=ea(Ta[D],Xa+d+h*y)},render:t,setAxisSize:function(){var a=v.offsetLeft||0,b=v.offsetRight||0;r=l(v.left,V+a);ub=l(v.top,O);Ib=l(v.width,
ra-a+b);mb=l(v.height,sa);Wb=Ba-mb-ub;W=za-Ib-r;ka=Q?Ib:mb;x.left=r;x.top=ub;x.len=ka},setAxisTranslation:R,setCategories:function(b,c){x.categories=a.categories=ab=b;o(x.series,function(a){a.translate();a.setTooltipPoints(!0)});x.isDirty=!0;l(c,!0)&&m.redraw()},setExtremes:function(a,b,c,d){c=l(c,!0);ca(x,"setExtremes",{min:a,max:b},function(){da=a;U=b;c&&m.redraw(d)})},setScale:function(){var a,b,c;la=H;sb=J;Mb=ka;ka=Q?Ib:mb;o(x.series,function(a){if(a.isDirtyData||a.isDirty||a.xAxis.isDirty)c=
!0});if(ka!==Mb||c||ha||da!==ta||U!==hc){e();j();ta=da;hc=U;if(!i)for(a in Ua)for(b in Ua[a])Ua[a][b].cum=Ua[a][b].total;if(!x.isDirty)x.isDirty=m.isDirtyBox||H!==la||J!==sb}},setTickPositions:j,translate:S,redraw:function(){Jb.resetTracker&&Jb.resetTracker();t();o(qa,function(a){a.render()});o(x.series,function(a){a.isDirty=!0})},removePlotBand:n,removePlotLine:n,reversed:fa,setTitle:function(a,b){v.title=P(v.title,a);u=u.destroy();x.isDirty=!0;l(b,!0)&&m.redraw()},series:[],stacks:Ua,destroy:function(){var a;
Ra(x);for(a in Ua)Tb(Ua[a]),Ua[a]=null;if(x.stackTotalGroup)x.stackTotalGroup=x.stackTotalGroup.destroy();o([Va,va,Pa,qa],function(a){Tb(a)});o([ba,jb,xb,u],function(a){a&&a.destroy()});ba=jb=xb=u=null}});for(La in z)pa(x,La,z[La]);if(M)x.val2lin=cb,x.lin2val=ya}function d(a){function b(){var c=this.points||aa(this),d=c[0].series,e;e=[d.tooltipHeaderFormatter(c[0].key)];o(c,function(a){d=a.series;e.push(d.tooltipFormatter&&d.tooltipFormatter(a)||a.point.tooltipFormatter(d.tooltipOptions.pointFormat))});
e.push(a.footerFormat||"");return e.join("")}function c(a,b){n=t?a:(2*n+a)/3;i=t?b:(i+b)/2;s.attr({x:n,y:i});zb=1<Ga(a-n)||1<Ga(b-i)?function(){c(a,b)}:null}function d(){if(!t){var a=m.hoverPoints;s.hide();a&&o(a,function(a){a.setState()});m.hoverPoints=null;t=!0}}var e,f=a.borderWidth,g=a.crosshairs,h=[],k=a.style,j=a.shared,q=F(k.padding),t=!0,n=0,i=0;k.padding=0;var s=N.label("",0,0,null,null,null,a.useHTML).attr({padding:q,fill:a.backgroundColor,"stroke-width":f,r:a.borderRadius,zIndex:8}).css(k).hide().add();
nb||s.shadow(a.shadow);return{shared:j,refresh:function(f){var k,q,n,i,K={},u=[];n=f.tooltipPos;k=a.formatter||b;var K=m.hoverPoints,D;j&&(!f.series||!f.series.noSharedTooltip)?(i=0,K&&o(K,function(a){a.setState()}),m.hoverPoints=f,o(f,function(a){a.setState(Ka);i+=a.plotY;u.push(a.getLabelConfig())}),q=f[0].plotX,i=B(i)/f.length,K={x:f[0].category},K.points=u,f=f[0]):K=f.getLabelConfig();K=k.call(K);e=f.series;q=l(q,f.plotX);i=l(i,f.plotY);k=B(n?n[0]:$?ra-i:q);q=B(n?n[1]:$?sa-q:i);n=j||!e.isCartesian||
e.tooltipOutsidePlot||Qb(k,q);!1===K||!n?d():(t&&(s.show(),t=!1),s.attr({text:K}),D=a.borderColor||f.color||e.color||"#606060",s.attr({stroke:D}),n=X(s.width,s.height,V,O,ra,sa,{x:k,y:q},l(a.distance,12),$),c(B(n.x),B(n.y)));if(g){g=aa(g);var z;n=g.length;for(var M;n--;)if(z=f.series[n?"yAxis":"xAxis"],g[n]&&z)if(z=z.getPlotLinePath(f[n?"y":"x"],1),h[n])h[n].attr({d:z,visibility:kb});else{M={"stroke-width":g[n].width||1,stroke:g[n].color||"#C0C0C0",zIndex:g[n].zIndex||2};if(g[n].dashStyle)M.dashstyle=
g[n].dashStyle;h[n]=N.path(z).attr(M).add()}}ca(m,"tooltipRefresh",{text:K,x:k+V,y:q+O,borderColor:D})},hide:d,hideCrosshairs:function(){o(h,function(a){a&&a.hide()})},destroy:function(){o(h,function(a){a&&a.destroy()});s&&(s=s.destroy())}}}function e(a){function b(a){var c,d,e,a=a||la.event;if(!a.target)a.target=a.srcElement;if(a.originalEvent)a=a.originalEvent;if(a.event)a=a.event;c=a.touches?a.touches.item(0):a;vb=Bc(E);d=vb.left;e=vb.top;bc?(d=a.x,c=a.y):(d=c.pageX-d,c=c.pageY-e);return C(a,{chartX:B(d),
chartY:B(c)})}function c(a){var b={xAxis:[],yAxis:[]};o(Da,function(c){var d=c.translate,e=c.isXAxis;b[e?"xAxis":"yAxis"].push({axis:c,value:d(($?!e:e)?a.chartX-V:sa-a.chartY+O,!0)})});return b}function e(){var a=m.hoverSeries,b=m.hoverPoint;if(b)b.onMouseOut();if(a)a.onMouseOut();Kb&&(Kb.hide(),Kb.hideCrosshairs());Ab=null}function f(){if(n){var a={xAxis:[],yAxis:[]},b=n.getBBox(),c=b.x-V,d=b.y-O;q&&(o(Da,function(e){if(!1!==e.options.zoomEnabled){var f=e.translate,g=e.isXAxis,h=$?!g:g,k=f(h?c:sa-
d-b.height,!0,0,0,1),f=f(h?c+b.width:sa-d,!0,0,0,1);a[g?"xAxis":"yAxis"].push({axis:e,min:fb(k,f),max:ea(k,f)})}}),ca(m,"selection",a,Hb));n=n.destroy()}R(E,{cursor:"auto"});m.mouseIsDown=pb=q=!1;Ra(W,Ea?"touchend":"mouseup",f)}function g(a){var b=p(a.pageX)?a.pageX:a.page.x,a=p(a.pageX)?a.pageY:a.page.y;vb&&!Qb(b-vb.left-V,a-vb.top-O)&&e()}function h(){e();vb=null}var k,j,q,n,t=nb?"":s.zoomType,i=/x/.test(t),K=/y/.test(t),D=i&&!$||K&&$,u=K&&!$||i&&$;ob=function(){Pa?(Pa.translate(V,O),$&&Pa.attr({width:m.plotWidth,
height:m.plotHeight}).invert()):m.trackerGroup=Pa=N.g("tracker").attr({zIndex:9}).add()};ob();if(a.enabled)m.tooltip=Kb=d(a),Ob=setInterval(function(){zb&&zb()},32);(function(){E.onmousedown=function(a){a=b(a);!Ea&&a.preventDefault&&a.preventDefault();m.mouseIsDown=pb=!0;m.mouseDownX=k=a.chartX;j=a.chartY;pa(W,Ea?"touchend":"mouseup",f)};var d=function(c){if(!c||!(c.touches&&1<c.touches.length)){c=b(c);if(!Ea)c.returnValue=!1;var d=c.chartX,e=c.chartY,f=!Qb(d-V,e-O);Ea&&"touchstart"===c.type&&(r(c.target,
"isTracker")?m.runTrackerClick||c.preventDefault():!Db&&!f&&c.preventDefault());f&&(d<V?d=V:d>V+ra&&(d=V+ra),e<O?e=O:e>O+sa&&(e=O+sa));if(pb&&"touchstart"!==c.type){if(q=Math.sqrt(Math.pow(k-d,2)+Math.pow(j-e,2)),10<q){var g=Qb(k-V,j-O);if(Xb&&(i||K)&&g)n||(n=N.rect(V,O,D?1:ra,u?1:sa,0).attr({fill:s.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add());n&&D&&(c=d-k,n.attr({width:Ga(c),x:(0<c?0:c)+k}));n&&u&&(e-=j,n.attr({height:Ga(e),y:(0<e?0:e)+j}));g&&!n&&s.panning&&m.pan(d)}}else if(!f){var h,
d=m.hoverPoint,e=m.hoverSeries,t,o,g=za,z=$?c.chartY:c.chartX-V;if(Kb&&a.shared&&(!e||!e.noSharedTooltip)){h=[];t=Z.length;for(o=0;o<t;o++)if(Z[o].visible&&!1!==Z[o].options.enableMouseTracking&&!Z[o].noSharedTooltip&&Z[o].tooltipPoints.length)c=Z[o].tooltipPoints[z],c._dist=Ga(z-c.plotX),g=fb(g,c._dist),h.push(c);for(t=h.length;t--;)h[t]._dist>g&&h.splice(t,1);if(h.length&&h[0].plotX!==Ab)Kb.refresh(h),Ab=h[0].plotX}if(e&&e.tracker&&(c=e.tooltipPoints[z])&&c!==d)c.onMouseOver()}return f||!Xb}};E.onmousemove=
d;pa(E,"mouseleave",h);pa(W,"mousemove",g);E.ontouchstart=function(a){if(i||K)E.onmousedown(a);d(a)};E.ontouchmove=d;E.ontouchend=function(){q&&e()};E.onclick=function(a){var d=m.hoverPoint,a=b(a);a.cancelBubble=!0;if(!q)if(d&&r(a.target,"isTracker")){var e=d.plotX,f=d.plotY;C(d,{pageX:vb.left+V+($?ra-f:e),pageY:vb.top+O+($?sa-e:f)});ca(d.series,"click",C(a,{point:d}));d.firePointEvent("click",a)}else C(a,c(a)),Qb(a.chartX-V,a.chartY-O)&&ca(m,"click",a);q=!1}})();C(this,{zoomX:i,zoomY:K,resetTracker:e,
normalizeMouseEvent:b,destroy:function(){if(m.trackerGroup)m.trackerGroup=Pa=m.trackerGroup.destroy();Ra(E,"mouseleave",h);Ra(W,"mousemove",g);E.onclick=E.onmousedown=E.onmousemove=E.ontouchstart=E.ontouchend=E.ontouchmove=null}})}function f(a){var b=a.type||s.type||s.defaultSeriesType,c=Wa[b],d=m.hasRendered;if(d)if($&&"column"===b)c=Wa.bar;else if(!$&&"bar"===b)c=Wa.column;b=new c;b.init(m,a);!d&&b.inverted&&($=!0);if(b.isCartesian)Xb=b.isCartesian;Z.push(b);return b}function g(){!1!==s.alignTicks&&
o(Da,function(a){a.adjustTickAmount()});lb=null}function h(a){var b=m.isDirtyLegend,c,d=m.isDirtyBox,e=Z.length,f=e,h=m.clipRect;for(ha(a,m);f--;)if(a=Z[f],a.isDirty&&a.options.stacking){c=!0;break}if(c)for(f=e;f--;)if(a=Z[f],a.options.stacking)a.isDirty=!0;o(Z,function(a){a.isDirty&&"point"===a.options.legendType&&(b=!0)});if(b&&gb.renderLegend)gb.renderLegend(),m.isDirtyLegend=!1;Xb&&(Yb||(lb=null,o(Da,function(a){a.setScale()})),g(),fc(),o(Da,function(a){ca(a,"afterSetExtremes",a.getExtremes());
a.isDirty&&a.redraw()}));d&&(Bb(),ob(),h&&(Zb(h),h.animate({width:m.plotSizeX,height:m.plotSizeY+1})));o(Z,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});Jb&&Jb.resetTracker&&Jb.resetTracker();N.draw();ca(m,"redraw")}function k(){var b=a.xAxis||{},d=a.yAxis||{},b=aa(b);o(b,function(a,b){a.index=b;a.isX=!0});d=aa(d);o(d,function(a,b){a.index=b});b=b.concat(d);o(b,function(a){new c(a)});g()}function q(){var a=Ma.lang,b=s.resetZoomButton,c=b.theme,d=c.states,e="chart"===b.relativeTo?
null:{x:V,y:O,width:ra,height:sa};m.resetZoomButton=N.button(a.resetZoom,null,null,Pb,c,d&&d.hover).attr({align:b.position.align,title:a.resetZoomTitle}).add().align(b.position,!1,e)}function j(b,c){T=P(a.title,b);ta=P(a.subtitle,c);o([["title",b,T],["subtitle",c,ta]],function(a){var b=a[0],c=m[b],d=a[1],a=a[2];c&&d&&(c=c.destroy());a&&a.text&&!c&&(m[b]=N.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":wb+b,zIndex:1}).css(a.style).add().align(a,!1,L))})}function t(){Na=s.renderTo;qa=wb+sc++;
Sa(Na)&&(Na=W.getElementById(Na));Na||db(13,!0);Na.innerHTML="";Na.offsetWidth||(ma=Na.cloneNode(0),R(ma,{position:Lb,top:"-9999px",display:""}),W.body.appendChild(ma));ua=(ma||Na).offsetWidth;Ha=(ma||Na).offsetHeight;m.chartWidth=za=s.width||ua||600;m.chartHeight=Ba=s.height||(19<Ha?Ha:400);m.container=E=U(tb,{className:wb+"container"+(s.className?" "+s.className:""),id:qa},C({position:Cc,overflow:ib,width:za+oa,height:Ba+oa,textAlign:"left",lineHeight:"normal"},s.style),ma||Na);m.renderer=N=s.forExport?
new Rb(E,za,Ba,!0):new gc(E,za,Ba);nb&&N.create(m,E,za,Ba);var a,b;Dc&&E.getBoundingClientRect&&(a=function(){R(E,{left:0,top:0});b=E.getBoundingClientRect();R(E,{left:-(b.left-F(b.left))+oa,top:-(b.top-F(b.top))+oa})},a(),pa(la,"resize",a),pa(m,"destroy",function(){Ra(la,"resize",a)}))}function n(){function a(c){var d=s.width||Na.offsetWidth,e=s.height||Na.offsetHeight,c=c.target;if(d&&e&&(c===la||c===W)){if(d!==ua||e!==Ha)clearTimeout(b),b=setTimeout(function(){Gb(d,e,!1)},100);ua=d;Ha=e}}var b;
pa(la,"resize",a);pa(m,"destroy",function(){Ra(la,"resize",a)})}function i(){m&&ca(m,"endResize",null,function(){Yb-=1})}function u(){for(var b=$||s.inverted||"bar"===s.type||"bar"===s.defaultSeriesType,c=a.series,d=c&&c.length;!b&&d--;)"bar"===c[d].type&&(b=!0);m.inverted=$=b}function M(){var b=a.labels,c=a.credits,d;j();gb=m.legend=new ac;o(Da,function(a){a.setScale()});fc();o(Da,function(a){a.setTickPositions(!0)});g();fc();Bb();Xb&&o(Da,function(a){a.render()});if(!m.seriesGroup)m.seriesGroup=
N.g("series-group").attr({zIndex:3}).add();o(Z,function(a){a.translate();a.setTooltipPoints();a.render()});b.items&&o(b.items,function(){var a=C(b.style,this.style),c=F(a.left)+V,d=F(a.top)+O+12;delete a.left;delete a.top;N.text(this.html,c,d).attr({zIndex:2}).css(a).add()});if(c.enabled&&!m.credits)d=c.href,m.credits=N.text(c.text,0,0).on("click",function(){if(d)location.href=d}).attr({align:c.position.align,zIndex:8}).css(c.style).add().align(c.position);ob();m.hasRendered=!0;ma&&(Na.appendChild(E),
sb(ma))}function ia(){if(!$b&&la==la.top&&"complete"!==W.readyState||nb&&!la.canvg)nb?Ec.push(ia,a.global.canvasToolsURL):W.attachEvent("onreadystatechange",function(){W.detachEvent("onreadystatechange",ia);"complete"===W.readyState&&ia()});else{t();ca(m,"init");if(Highcharts.RangeSelector&&a.rangeSelector.enabled)m.rangeSelector=new Highcharts.RangeSelector(m);Cb();Fb();u();k();o(a.series||[],function(a){f(a)});if(Highcharts.Scroller&&(a.navigator.enabled||a.scrollbar.enabled))m.scroller=new Highcharts.Scroller(m);
m.render=M;m.tracker=Jb=new e(a.tooltip);M();N.draw();b&&b.apply(m,[m]);o(m.callbacks,function(a){a.apply(m,[m])});ca(m,"load")}}var ja=a.series;a.series=null;a=P(Ma,a);a.series=ja;var s=a.chart,ja=s.margin,ja=fa(ja)?ja:[ja,ja,ja,ja],y=l(s.marginTop,ja[0]),z=l(s.marginRight,ja[1]),ka=l(s.marginBottom,ja[2]),S=l(s.marginLeft,ja[3]),jb=s.spacingTop,D=s.spacingRight,Mb=s.spacingBottom,xb=s.spacingLeft,L,T,ta,O,da,ba,V,Ta,Na,ma,E,qa,ua,Ha,za,Ba,Ub,wa,Ja,Aa,Xa,La,m=this,Db=(ja=s.events)&&!!ja.click,Ia,
Qb,Kb,pb,Nb,Eb,rb,sa,ra,Jb,Pa,ob,gb,va,yb,vb,Xb=s.showAxes,Yb=0,Da=[],lb,Z=[],$,N,zb,Ob,Ab,Bb,fc,Cb,Fb,Gb,Hb,Pb,ac=function(){function a(b,c){var d=b.legendItem,e=b.legendLine,g=b.legendSymbol,h=i.color,k=c?f.itemStyle.color:h,h=c?b.color:h;d&&d.css({fill:k});e&&e.attr({stroke:h});g&&g.attr({stroke:h,fill:h})}function b(a){var c=a.legendItem,d=a.legendLine,e=a._legendItemPos,f=e[0],e=e[1],g=a.legendSymbol,a=a.checkbox;c&&c.attr({x:K?f:va-f,y:e});d&&d.translate(K?f:va-f,e-4);g&&(c=f+g.xOff,g.attr({x:K?
c:va-c,y:e+g.yOff}));if(a)a.x=f,a.y=e}function c(){o(j,function(a){var b=a.checkbox,c=w.alignAttr;b&&R(b,{left:c.translateX+a.legendItemWidth+b.x-40+oa,top:c.translateY+b.y-11+oa})})}function d(b){var c,e,j,q,m=b.legendItem;q=b.series||b;var o=q.options,D=o&&o.borderWidth||0;if(!m){q=/^(bar|pie|area|column)$/.test(q.type);b.legendItem=m=N.text(f.labelFormatter.call(b),0,0,f.useHTML).css(b.visible?n:i).on("mouseover",function(){b.setState(Ka);m.css(t)}).on("mouseout",function(){m.css(b.visible?n:i);
b.setState()}).on("click",function(){var a=function(){b.setVisible()};b.firePointEvent?b.firePointEvent("legendItemClick",null,a):ca(b,"legendItemClick",null,a)}).attr({align:K?"left":"right",zIndex:2}).add(w);if(!q&&o&&o.lineWidth){var p={"stroke-width":o.lineWidth,zIndex:2};if(o.dashStyle)p.dashstyle=o.dashStyle;b.legendLine=N.path([Ca,(-h-k)*(K?1:-1),0,na,-k*(K?1:-1),0]).attr(p).add(w)}if(q)j=N.rect(c=-h-k,e=-11,h,12,2).attr({zIndex:3}).add(w),K||(c+=h);else if(o&&o.marker&&o.marker.enabled)j=
o.marker.radius,j=N.symbol(b.symbol,c=-h/2-k-j,e=-4-j,2*j,2*j).attr(b.pointAttr[Fa]).attr({zIndex:3}).add(w),K||(c+=h/2);if(j)j.xOff=c+D%2/2,j.yOff=e+D%2/2;b.legendSymbol=j;a(b,b.visible);if(o&&o.showCheckbox)b.checkbox=U("input",{type:"checkbox",checked:b.selected,defaultChecked:b.selected},f.itemCheckboxStyle,E),pa(b.checkbox,"click",function(a){ca(b,"checkboxClick",{checked:a.target.checked},function(){b.select()})})}c=m.getBBox();e=b.legendItemWidth=f.itemWidth||h+k+c.width+s;ia=c.height;if(g&&
z-u+e>(B||za-2*s-u))z=u,l+=y+ia+ka;M=l+ka;b._legendItemPos=[z,l];g?z+=e:l+=y+ia+ka;A=B||ea(g?z-u:e,A)}function e(){z=u;l=s+y+D-5;M=A=0;w||(w=N.g("legend").attr({zIndex:10}).add());j=[];o(Mb,function(a){var b=a.options;b.showInLegend&&(j=j.concat(a.legendItems||("point"===b.legendType?a.data:a)))});hc(j,function(a,b){return(a.options.legendIndex||0)-(b.options.legendIndex||0)});r&&j.reverse();o(j,d);va=B||A;yb=M-D+ia;if(I||ja){va+=2*s;yb+=2*s;if(p){if(0<va&&0<yb)p[p.isNew?"attr":"animate"](p.crisp(null,
null,null,va,yb)),p.isNew=!1}else p=N.rect(0,0,va,yb,f.borderRadius,I||0).attr({stroke:f.borderColor,"stroke-width":I||0,fill:ja||Oa}).add(w).shadow(f.shadow),p.isNew=!0;p[j.length?"show":"hide"]()}o(j,b);for(var a=["left","right","top","bottom"],g,h=4;h--;)g=a[h],q[g]&&"auto"!==q[g]&&(f[2>h?"align":"verticalAlign"]=g,f[2>h?"x":"y"]=F(q[g])*(h%2?-1:1));j.length&&w.align(C(f,{width:va,height:yb}),!0,L);Yb||c()}var f=m.options.legend;if(f.enabled){var g="horizontal"===f.layout,h=f.symbolWidth,k=f.symbolPadding,
j,q=f.style,n=f.itemStyle,t=f.itemHoverStyle,i=P(n,f.itemHiddenStyle),s=f.padding||F(q.padding),K=!f.rtl,D=18,u=4+s+h+k,z,l,M,ia=0,y=f.itemMarginTop||0,ka=f.itemMarginBottom||0,p,I=f.borderWidth,ja=f.backgroundColor,w,A,B=f.width,Mb=m.series,r=f.reversed;e();pa(m,"endResize",c);return{colorizeItem:a,destroyItem:function(a){var b=a.checkbox;o(["legendItem","legendLine","legendSymbol"],function(b){a[b]&&a[b].destroy()});b&&sb(a.checkbox)},renderLegend:e,destroy:function(){p&&(p=p.destroy());w&&(w=w.destroy())}}}};
Qb=function(a,b){return 0<=a&&a<=ra&&0<=b&&b<=sa};Pb=function(){var a=m.resetZoomButton;ca(m,"selection",{resetSelection:!0},Hb);if(a)m.resetZoomButton=a.destroy()};Hb=function(a){var b=100>m.pointCount,c;!1!==m.resetZoomEnabled&&!m.resetZoomButton&&q();!a||a.resetSelection?o(Da,function(a){!1!==a.options.zoomEnabled&&(a.setExtremes(null,null,!1),c=!0)}):o(a.xAxis.concat(a.yAxis),function(a){var b=a.axis;if(m.tracker[b.isXAxis?"zoomX":"zoomY"])b.setExtremes(a.min,a.max,!1),c=!0});c&&h(!0,b)};m.pan=
function(a){var b=m.xAxis[0],c=m.mouseDownX,d=b.pointRange/2,e=b.getExtremes(),f=b.translate(c-a,!0)+d,c=b.translate(c+ra-a,!0)-d;(d=m.hoverPoints)&&o(d,function(a){a.setState()});f>fb(e.dataMin,e.min)&&c<ea(e.dataMax,e.max)&&b.setExtremes(f,c,!0,!1);m.mouseDownX=a;R(E,{cursor:"move"})};fc=function(){var b=a.legend,c=l(b.margin,10),d=b.x,e=b.y,f=b.align,g=b.verticalAlign,h;Cb();if((m.title||m.subtitle)&&!p(y))(h=ea(m.title&&!T.floating&&!T.verticalAlign&&T.y||0,m.subtitle&&!ta.floating&&!ta.verticalAlign&&
ta.y||0))&&(O=ea(O,h+l(T.margin,15)+jb));b.enabled&&!b.floating&&("right"===f?p(z)||(da=ea(da,va-d+c+D)):"left"===f?p(S)||(V=ea(V,va+d+c+xb)):"top"===g?p(y)||(O=ea(O,yb+e+c+jb)):"bottom"===g&&(p(ka)||(ba=ea(ba,yb-e+c+Mb))));m.extraBottomMargin&&(ba+=m.extraBottomMargin);m.extraTopMargin&&(O+=m.extraTopMargin);Xb&&o(Da,function(a){a.getOffset()});p(S)||(V+=Ta[3]);p(y)||(O+=Ta[0]);p(ka)||(ba+=Ta[2]);p(z)||(da+=Ta[1]);Fb()};Gb=function(a,b,c){var d=m.title,e=m.subtitle;Yb+=1;ha(c,m);wa=Ba;Ub=za;if(p(a))m.chartWidth=
za=B(a);if(p(b))m.chartHeight=Ba=B(b);R(E,{width:za+oa,height:Ba+oa});N.setSize(za,Ba,c);ra=za-V-da;sa=Ba-O-ba;lb=null;o(Da,function(a){a.isDirty=!0;a.setScale()});o(Z,function(a){a.isDirty=!0});m.isDirtyLegend=!0;m.isDirtyBox=!0;fc();d&&d.align(null,null,L);e&&e.align(null,null,L);h(c);wa=null;ca(m,"resize");!1===dc?i():setTimeout(i,dc&&dc.duration||500)};Fb=function(){m.plotLeft=V=B(V);m.plotTop=O=B(O);m.plotWidth=ra=B(za-V-da);m.plotHeight=sa=B(Ba-O-ba);m.plotSizeX=$?sa:ra;m.plotSizeY=$?ra:sa;
L={x:xb,y:jb,width:za-xb-D,height:Ba-jb-Mb};o(Da,function(a){a.setAxisSize();a.setAxisTranslation()})};Cb=function(){O=l(y,jb);da=l(z,D);ba=l(ka,Mb);V=l(S,xb);Ta=[0,0,0,0]};Bb=function(){var a=s.borderWidth||0,b=s.backgroundColor,c=s.plotBackgroundColor,d=s.plotBackgroundImage,e,f={x:V,y:O,width:ra,height:sa};e=a+(s.shadow?8:0);if(a||b)Ja?Ja.animate(Ja.crisp(null,null,null,za-e,Ba-e)):Ja=N.rect(e/2,e/2,za-e,Ba-e,s.borderRadius,a).attr({stroke:s.borderColor,"stroke-width":a,fill:b||Oa}).add().shadow(s.shadow);
c&&(Aa?Aa.animate(f):Aa=N.rect(V,O,ra,sa,0).attr({fill:c}).add().shadow(s.plotShadow));d&&(Xa?Xa.animate(f):Xa=N.image(d,V,O,ra,sa).add());s.plotBorderWidth&&(La?La.animate(La.crisp(null,V,O,ra,sa)):La=N.rect(V,O,ra,sa,0,s.plotBorderWidth).attr({stroke:s.plotBorderColor,"stroke-width":s.plotBorderWidth,zIndex:4}).add());m.isDirtyBox=!1};!1!==s.reflow&&pa(m,"load",n);if(ja)for(Ia in ja)pa(m,Ia,ja[Ia]);m.options=a;m.series=Z;m.xAxis=[];m.yAxis=[];m.addSeries=function(a,b,c){var d;a&&(ha(c,m),b=l(b,
!0),ca(m,"addSeries",{options:a},function(){d=f(a);d.isDirty=!0;m.isDirtyLegend=!0;b&&m.redraw()}));return d};m.animation=nb?!1:l(s.animation,!0);m.Axis=c;m.destroy=function(){var b,c=E&&E.parentNode;if(null!==m){ca(m,"destroy");Ra(m);for(b=Da.length;b--;)Da[b]=Da[b].destroy();for(b=Z.length;b--;)Z[b]=Z[b].destroy();o("title,subtitle,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector".split(","),function(a){var b=m[a];b&&(m[a]=b.destroy())});o([Ja,La,Aa,gb,Kb,N,Jb],function(a){a&&a.destroy&&
a.destroy()});Ja=La=Aa=gb=Kb=N=Jb=null;if(E)E.innerHTML="",Ra(E),c&&sb(E),E=null;clearInterval(Ob);for(b in m)delete m[b];a=m=null}};m.get=function(a){var b,c,d;for(b=0;b<Da.length;b++)if(Da[b].options.id===a)return Da[b];for(b=0;b<Z.length;b++)if(Z[b].options.id===a)return Z[b];for(b=0;b<Z.length;b++){d=Z[b].points||[];for(c=0;c<d.length;c++)if(d[c].id===a)return d[c]}return null};m.getSelectedPoints=function(){var a=[];o(Z,function(b){a=a.concat(tc(b.points,function(a){return a.selected}))});return a};
m.getSelectedSeries=function(){return tc(Z,function(a){return a.selected})};m.hideLoading=function(){Nb&&lc(Nb,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){R(Nb,{display:Oa})}});rb=!1};m.initSeries=f;m.isInsidePlot=Qb;m.redraw=h;m.setSize=Gb;m.setTitle=j;m.showLoading=function(b){var c=a.loading;Nb||(Nb=U(tb,{className:wb+"loading"},C(c.style,{left:V+oa,top:O+oa,width:ra+oa,height:sa+oa,zIndex:10,display:Oa}),E),Eb=U("span",null,c.labelStyle,Nb));Eb.innerHTML=b||a.lang.loading;
rb||(R(Nb,{opacity:0,display:""}),lc(Nb,{opacity:c.style.opacity},{duration:c.showDuration||0}),rb=!0)};m.pointCount=0;m.counters=new $a;ia()}var ga,W=document,la=window,xa=Math,B=xa.round,Za=xa.floor,ic=xa.ceil,ea=xa.max,fb=xa.min,Ga=xa.abs,ta=xa.cos,ma=xa.sin,Xa=xa.PI,Fc=2*Xa/360,La=navigator.userAgent,bc=/msie/i.test(La)&&!la.opera,ob=8===W.documentMode,Gc=/AppleWebKit/.test(La),Dc=/Firefox/.test(La),$b=!!W.createElementNS&&!!W.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,
Qc=Dc&&4>parseInt(La.split("Firefox/")[1],10),nb=!$b&&!bc&&!!W.createElement("canvas").getContext,gc,Ea=W.documentElement.ontouchstart!==ga,Hc={},sc=0,Pb,Ma,kc,dc,gb,S,tb="div",Lb="absolute",Cc="relative",ib="hidden",wb="highcharts-",kb="visible",oa="px",Oa="none",Ca="M",na="L",Ic="rgba(192,192,192,"+($b?1.0E-6:0.002)+")",Fa="",Ka="hover",mc="millisecond",Cb="second",pb="minute",Db="hour",Ha="day",Eb="week",Ia="month",Ja="year",Hb,nc,oc,qc,rb,Fb,Gb,wc,xc,pc,yc,zc,zb=la.HighchartsAdapter,qa=zb||{},
Jc=qa.getScript,o=qa.each,tc=qa.grep,Bc=qa.offset,ec=qa.map,P=qa.merge,pa=qa.addEvent,Ra=qa.removeEvent,ca=qa.fireEvent,lc=qa.animate,Zb=qa.stop,Wa={};la.Highcharts={};kc=function(a,b,c){function d(a,b){a=a.toString().replace(/^([0-9])$/,"0$1");3===b&&(a=a.toString().replace(/^([0-9]{2})$/,"0$1"));return a}if(!p(b)||isNaN(b))return"Invalid date";var a=l(a,"%Y-%m-%d %H:%M:%S"),e=new Date(b),f,g=e[oc](),h=e[qc](),k=e[rb](),q=e[Fb](),j=e[Gb](),t=Ma.lang,n=t.weekdays,b={a:n[h].substr(0,3),A:n[h],d:d(k),
e:k,b:t.shortMonths[q],B:t.months[q],m:d(q+1),y:j.toString().substr(2,2),Y:j,H:d(g),I:d(g%12||12),l:g%12||12,M:d(e[nc]()),p:12>g?"AM":"PM",P:12>g?"am":"pm",S:d(e.getSeconds()),L:d(b%1E3,3)};for(f in b)a=a.replace("%"+f,b[f]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};$a.prototype={wrapColor:function(a){if(this.color>=a)this.color=0},wrapSymbol:function(a){if(this.symbol>=a)this.symbol=0}};S=L(mc,1,Cb,1E3,pb,6E4,Db,36E5,Ha,864E5,Eb,6048E5,Ia,2592E6,Ja,31556952E3);gb={init:function(a,b,c){var b=
b||"",d=a.shift,e=-1<b.indexOf("C"),f=e?7:3,g,b=b.split(" "),c=[].concat(c),h,k,q=function(a){for(g=a.length;g--;)a[g]===Ca&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(q(b),q(c));a.isArea&&(h=b.splice(b.length-6,6),k=c.splice(c.length-6,6));1===d&&(c=[].concat(c).splice(0,f).concat(c));a.shift=0;if(b.length)for(a=c.length;b.length<a;)d=[].concat(b).splice(b.length-f,f),e&&(d[f-6]=d[f-2],d[f-5]=d[f-1]),b=b.concat(d);h&&(b=b.concat(h),c=c.concat(k));return[b,c]},step:function(a,b,c,d){var e=[],
f=a.length;if(1===c)e=d;else if(f===b.length&&1>c)for(;f--;)d=parseFloat(a[f]),e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d;else e=b;return e}};zb&&zb.init&&zb.init(gb);if(!zb&&la.jQuery){var da=jQuery,Jc=da.getScript,o=function(a,b){for(var c=0,d=a.length;c<d;c++)if(!1===b.call(a[c],a[c],c,a))return c},tc=da.grep,ec=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c},P=function(){var a=arguments;return da.extend(!0,null,a[0],a[1],a[2],a[3])},Bc=function(a){return da(a).offset()},
pa=function(a,b,c){da(a).bind(b,c)},Ra=function(a,b,c){var d=W.removeEventListener?"removeEventListener":"detachEvent";W[d]&&!a[d]&&(a[d]=function(){});da(a).unbind(b,c)},ca=function(a,b,c,d){var e=da.Event(b),f="detached"+b,g;C(e,c);a[b]&&(a[f]=a[b],a[b]=null);o(["preventDefault","stopPropagation"],function(a){var b=e[a];e[a]=function(){try{b.call(e)}catch(c){"preventDefault"===a&&(g=!0)}}});da(a).trigger(e);a[f]&&(a[b]=a[f],a[f]=null);d&&!e.isDefaultPrevented()&&!g&&d(e)},lc=function(a,b,c){var d=
da(a);if(b.d)a.toD=b.d,b.d=1;d.stop();d.animate(b,c)},Zb=function(a){da(a).stop()};da.extend(da.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}});var Kc=jQuery.fx,Lc=Kc.step;o(["cur","_default","width","height"],function(a,b){var c=b?Lc:Kc.prototype,d=c[a],e;d&&(c[a]=function(a){a=b?a:this;e=a.elem;return e.attr?e.attr(a.prop,a.now):d.apply(this,arguments)})});Lc.d=function(a){var b=a.elem;if(!a.started){var c=gb.init(b,b.d,b.toD);a.start=c[0];a.end=c[1];a.started=!0}b.attr("d",gb.step(a.start,
a.end,a.pos,b.toD))}}var uc={enabled:!0,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};Ma={colors:"#4572A7,#AA4643,#89A54E,#80699B,#3D96AE,#DB843D,#92A8CD,#A47D7C,#B5CA92".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/2.2.0/modules/canvas-tools.js"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",
resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},lineWidth:2,shadow:!0,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:P(uc,
{enabled:!1,y:-6,formatter:function(){return this.y}}),cropThreshold:300,pointRange:0,showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:Lb,color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:!1,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},
itemCheckboxStyle:{position:Lb,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{labelStyle:{fontWeight:"bold",position:Cc,top:"1em"},style:{position:Lb,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',
shadow:!0,shared:nb,snap:Ea?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var jc={dateTimeLabelFormats:L(mc,"%H:%M:%S.%L",Cb,"%H:%M:%S",pb,"%H:%M",Db,"%H:%M",Ha,"%e. %b",Eb,"%e. %b",Ia,"%b '%y",Ja,"%Y"),endOnTick:!1,gridLineColor:"#C0C0C0",labels:uc,lineColor:"#C0D0E0",lineWidth:1,
max:null,min:null,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},rc=P(jc,{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,
y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:uc.style}}),Pc={labels:{align:"right",x:-8,y:null},title:{rotation:270}},Oc={labels:{align:"left",x:8,y:null},title:{rotation:90}},Ac={labels:{align:"center",x:0,y:14},title:{rotation:0}},Nc=P(Ac,{labels:{y:-5}}),ba=Ma.plotOptions,Ob=ba.line;ba.spline=P(Ob);ba.scatter=P(Ob,{lineWidth:0,states:{hover:{lineWidth:0}},tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',
pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});ba.area=P(Ob,{threshold:0});ba.areaspline=P(ba.area);ba.column=P(Ob,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{y:null,verticalAlign:null},threshold:0});ba.bar=P(ba.column,{dataLabels:{align:"left",x:5,y:0}});ba.pie=P(Ob,
{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}}});Ub();var Aa=function(a){var b=[],c;(function(a){(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))?b=[F(c[1]),F(c[2]),F(c[3]),parseFloat(c[4],10)]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&
(b=[F(c[1],16),F(c[2],16),F(c[3],16),1])})(a);return{get:function(c){return b&&!isNaN(b[0])?"rgb"===c?"rgb("+b[0]+","+b[1]+","+b[2]+")":"a"===c?b[3]:"rgba("+b.join(",")+")":a},brighten:function(a){if(wa(a)&&0!==a){var c;for(c=0;3>c;c++)b[c]+=F(255*a),0>b[c]&&(b[c]=0),255<b[c]&&(b[c]=255)}return this},setOpacity:function(a){b[3]=a;return this}}};Ta.prototype={init:function(a,b){this.element="span"===b?U(b):W.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a;this.attrSetters={}},animate:function(a,
b,c){b=l(b,dc,!0);Zb(this);if(b){b=P(b);if(c)b.complete=c;lc(this,a,b)}else this.attr(a),c&&c()},attr:function(a,b){var c,d,e,f,g=this.element,h=g.nodeName,k=this.renderer,q,j=this.attrSetters,t=this.shadows,n,i=this;Sa(a)&&p(b)&&(c=a,a={},a[c]=b);if(Sa(a))c=a,"circle"===h?c={x:"cx",y:"cy"}[c]||c:"strokeWidth"===c&&(c="stroke-width"),i=r(g,c)||this[c]||0,"d"!==c&&"visibility"!==c&&(i=parseFloat(i));else for(c in a)if(q=!1,d=a[c],e=j[c]&&j[c](d,c),!1!==e){e!==ga&&(d=e);if("d"===c)d&&d.join&&(d=d.join(" ")),
/(NaN| {2}|^$)/.test(d)&&(d="M 0 0"),this.d=d;else if("x"===c&&"text"===h){for(e=0;e<g.childNodes.length;e++)f=g.childNodes[e],r(f,"x")===r(g,"x")&&r(f,"x",d);this.rotation&&r(g,"transform","rotate("+this.rotation+" "+d+" "+F(a.y||r(g,"y"))+")")}else if("fill"===c)d=k.color(d,g,c);else if("circle"===h&&("x"===c||"y"===c))c={x:"cx",y:"cy"}[c]||c;else if("rect"===h&&"r"===c)r(g,{rx:d,ry:d}),q=!0;else if("translateX"===c||"translateY"===c||"rotation"===c||"verticalAlign"===c)this[c]=d,this.updateTransform(),
q=!0;else if("stroke"===c)d=k.color(d,g,c);else if("dashstyle"===c)if(c="stroke-dasharray",d=d&&d.toLowerCase(),"solid"===d)d=Oa;else{if(d){d=d.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=d.length;e--;)d[e]=F(d[e])*a["stroke-width"];d=d.join(",")}}else"isTracker"===c?this[c]=d:"width"===c?d=F(d):"align"===
c?(c="text-anchor",d={left:"start",center:"middle",right:"end"}[d]):"title"===c&&(e=W.createElementNS("http://www.w3.org/2000/svg","title"),e.appendChild(W.createTextNode(d)),g.appendChild(e));"strokeWidth"===c&&(c="stroke-width");Gc&&"stroke-width"===c&&0===d&&(d=1.0E-6);this.symbolName&&/^(x|y|r|start|end|innerR|anchorX|anchorY)/.test(c)&&(n||(this.symbolAttr(a),n=!0),q=!0);if(t&&/^(width|height|visibility|x|y|d|transform)$/.test(c))for(e=t.length;e--;)r(t[e],c,d);if(("width"===c||"height"===c)&&
"rect"===h&&0>d)d=0;"text"===c?(this.textStr=d,this.added&&k.buildText(this)):q||r(g,c,d)}if(Gc&&/Chrome\/(18|19)/.test(La)&&"text"===h&&(a.x!==ga||a.y!==ga))c=g.parentNode,d=g.nextSibling,c&&(c.removeChild(g),d?c.insertBefore(g,d):c.appendChild(g));return i},symbolAttr:function(a){var b=this;o("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(c){b[c]=l(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",
"url("+this.renderer.url+"#"+a.id+")")},crisp:function(a,b,c,d,e){var f,g={},h={},k,a=a||this.strokeWidth||this.attr&&this.attr("stroke-width")||0;k=B(a)%2/2;h.x=Za(b||this.x||0)+k;h.y=Za(c||this.y||0)+k;h.width=Za((d||this.width||0)-2*k);h.height=Za((e||this.height||0)-2*k);h.strokeWidth=a;for(f in h)this[f]!==h[f]&&(this[f]=g[f]=h[f]);return g},css:function(a){var b=this.element,b=a&&a.width&&"text"===b.nodeName,c,d="",e=function(a,b){return"-"+b.toLowerCase()};if(a&&a.color)a.fill=a.color;this.styles=
a=C(this.styles,a);if(bc&&!$b)b&&delete a.width,R(this.element,a);else{for(c in a)d+=c.replace(/([A-Z])/g,e)+":"+a[c]+";";this.attr({style:d})}b&&this.added&&this.renderer.buildText(this);return this},on:function(a,b){var c=b;Ea&&"click"===a&&(a="touchstart",c=function(a){a.preventDefault();b()});this.element["on"+a]=c;return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=!0;this.updateTransform();return this},htmlCss:function(a){var b=
this.element;if(b=a&&"SPAN"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.updateTransform();this.styles=C(this.styles,a);R(this.element,a);return this},htmlGetBBox:function(a){var b=this.element,c=this.bBox;if(!c||a){if("text"===b.nodeName)b.style.position=Lb;c=this.bBox={x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}}return c},htmlUpdateTransform:function(){if(this.added){var a=this,b=a.element,c=a.translateX||0,d=a.translateY||0,e=a.x||0,f=a.y||0,g=a.textAlign||
"left",h={left:0,center:0.5,right:1}[g],k=g&&"left"!==g,q=a.shadows;if(c||d)R(b,{marginLeft:c,marginTop:d}),q&&o(q,function(a){R(a,{marginLeft:c+1,marginTop:d+1})});a.inverted&&o(b.childNodes,function(c){a.renderer.invertChild(c,b)});if("SPAN"===b.tagName){var j,t,q=a.rotation,n;j=0;var i=1,u=0,M;n=F(a.textWidth);var ia=a.xCorr||0;M=a.yCorr||0;var I=[q,g,b.innerHTML,a.textWidth].join();if(I!==a.cTT)p(q)&&(j=q*Fc,i=ta(j),u=ma(j),R(b,{filter:q?["progid:DXImageTransform.Microsoft.Matrix(M11=",i,", M12=",
-u,", M21=",u,", M22=",i,", sizingMethod='auto expand')"].join(""):Oa})),j=l(a.elemWidth,b.offsetWidth),t=l(a.elemHeight,b.offsetHeight),j>n&&(R(b,{width:n+oa,display:"block",whiteSpace:"normal"}),j=n),n=B(1.2*(F(b.style.fontSize)||12)),M=0>i*u,ia=(0>i&&-j)+u*n*(M?1-h:h),M=(0>u&&-t)-i*n*(q?M?h:1-h:1),k&&(ia-=j*h*(0>i?-1:1),q&&(M-=t*h*(0>u?-1:1)),R(b,{textAlign:g})),a.xCorr=ia,a.yCorr=M;R(b,{left:e+ia+oa,top:f+M+oa});a.cTT=I}}else this.alignOnAdd=!0},updateTransform:function(){var a=this.translateX||
0,b=this.translateY||0,c=this.inverted,d=this.rotation,e=[];c&&(a+=this.attr("width"),b+=this.attr("height"));(a||b)&&e.push("translate("+a+","+b+")");c?e.push("rotate(90) scale(-1,1)"):d&&e.push("rotate("+d+" "+this.x+" "+this.y+")");e.length&&r(this.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){a?(this.alignOptions=a,this.alignByTranslate=b,c||this.renderer.alignedObjects.push(this)):(a=this.alignOptions,b=
this.alignByTranslate);var c=l(c,this.renderer),d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),h={};/^(right|center)$/.test(d)&&(f+=(c.width-(a.width||0))/{right:1,center:2}[d]);h[b?"translateX":"x"]=B(f);/^(bottom|middle)$/.test(e)&&(g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1));h[b?"translateY":"y"]=B(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a){var b,c,d=this.rotation;c=this.element;var e=d*Fc;if("http://www.w3.org/2000/svg"===
c.namespaceURI){try{b=c.getBBox?C({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight}}catch(f){}if(!b||0>b.width)b={width:0,height:0};a=b.width;c=b.height;if(d)b.width=Ga(c*ma(e))+Ga(a*ta(e)),b.height=Ga(c*ta(e))+Ga(a*ma(e))}else b=this.htmlGetBBox(a);return b},show:function(){return this.attr({visibility:kb})},hide:function(){return this.attr({visibility:ib})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=r(f,"zIndex"),h;this.parentInverted=
a&&a.inverted;void 0!==this.textStr&&b.buildText(this);if(g)c.handleZ=!0,g=F(g);if(c.handleZ)for(c=0;c<e.length;c++)if(a=e[c],b=r(a,"zIndex"),a!==f&&(F(b)>g||!p(g)&&p(b))){d.insertBefore(f,a);h=!0;break}h||d.appendChild(f);this.added=!0;ca(this,"add");return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=a.box,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=null;Zb(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();
if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f]=a.stops[f].destroy();a.stops=null}a.safeRemoveChild(b);c&&o(c,function(b){a.safeRemoveChild(b)});d&&d.destroy();Ya(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},empty:function(){for(var a=this.element,b=a.childNodes,c=b.length;c--;)a.removeChild(b[c])},shadow:function(a,b){var c=[],d,e,f=this.element,g=this.parentInverted?"(-1,-1)":"(1,1)";if(a){for(d=1;3>=d;d++)e=f.cloneNode(0),r(e,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*
d,"stroke-width":7-2*d,transform:"translate"+g,fill:Oa}),b?b.element.appendChild(e):f.parentNode.insertBefore(e,f),c.push(e);this.shadows=c}return this}};var Rb=function(){this.init.apply(this,arguments)};Rb.prototype={Element:Ta,init:function(a,b,c,d){var e=location,f;f=this.createElement("svg").attr({xmlns:"http://www.w3.org/2000/svg",version:"1.1"});a.appendChild(f.element);this.isSVG=!0;this.box=f.element;this.boxWrapper=f;this.alignedObjects=[];this.url=bc?"":e.href.replace(/#.*?$/,"").replace(/\(/g,
"\\(").replace(/\)/g,"\\)");this.defs=this.createElement("defs").add();this.forExport=d;this.gradients={};this.setSize(b,c,!1)},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();Tb(this.gradients||{});this.gradients=null;if(a)this.defs=a.destroy();return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:function(){},buildText:function(a){for(var b=a.element,c=l(a.textStr,"").toString().replace(/<(b|strong)>/g,
'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),d=b.childNodes,e=/style="([^"]+)"/,f=/href="([^"]+)"/,g=r(b,"x"),h=a.styles,k=h&&F(h.width),q=h&&h.lineHeight,j,h=d.length;h--;)b.removeChild(d[h]);k&&!a.added&&this.box.appendChild(b);""===c[c.length-1]&&c.pop();o(c,function(c,d){var h,i=0,l,c=c.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");h=c.split("|||");
o(h,function(c){if(""!==c||1===h.length){var t={},o=W.createElementNS("http://www.w3.org/2000/svg","tspan");e.test(c)&&r(o,"style",c.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));f.test(c)&&(r(o,"onclick",'location.href="'+c.match(f)[1]+'"'),R(o,{cursor:"pointer"}));c=(c.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");o.appendChild(W.createTextNode(c));i?t.dx=3:t.x=g;if(!i){if(d){!$b&&a.renderer.forExport&&R(o,{display:"block"});l=la.getComputedStyle&&F(la.getComputedStyle(j,
null).getPropertyValue("line-height"));if(!l||isNaN(l))l=q||j.offsetHeight||18;r(o,"dy",l)}j=o}r(o,t);b.appendChild(o);i++;if(k)for(var c=c.replace(/-/g,"- ").split(" "),p,z=[];c.length||z.length;)p=a.getBBox().width,t=p>k,!t||1===c.length?(c=z,z=[],c.length&&(o=W.createElementNS("http://www.w3.org/2000/svg","tspan"),r(o,{dy:q||16,x:g}),b.appendChild(o),p>k&&(k=p))):(o.removeChild(o.firstChild),z.unshift(c.pop())),c.length&&o.appendChild(W.createTextNode(c.join(" ").replace(/- /g,"-")))}})})},button:function(a,
b,c,d,e,f,g){var h=this.label(a,b,c),k=0,q,j,t,n,i,a={x1:0,y1:0,x2:0,y2:1},e=P(L("stroke-width",1,"stroke","#999","fill",L("linearGradient",a,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",L("color","black")),e);t=e.style;delete e.style;f=P(e,L("stroke","#68A","fill",L("linearGradient",a,"stops",[[0,"#FFF"],[1,"#ACF"]])),f);n=f.style;delete f.style;g=P(e,L("stroke","#68A","fill",L("linearGradient",a,"stops",[[0,"#9BD"],[1,"#CDF"]])),g);i=g.style;delete g.style;pa(h.element,"mouseenter",
function(){h.attr(f).css(n)});pa(h.element,"mouseleave",function(){q=[e,f,g][k];j=[t,n,i][k];h.attr(q).css(j)});h.setState=function(a){(k=a)?2===a&&h.attr(g).css(i):h.attr(e).css(t)};return h.on("click",function(){d.call(h)}).attr(e).css(C({cursor:"default"},t))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=B(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=B(a[2])+b%2/2);return a},path:function(a){return this.createElement("path").attr({d:a,fill:Oa})},circle:function(a,b,c){a=fa(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},
arc:function(a,b,c,d,e,f){if(fa(a))b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x;return this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0})},rect:function(a,b,c,d,e,f){if(fa(a))b=a.y,c=a.width,d=a.height,e=a.r,f=a.strokeWidth,a=a.x;e=this.createElement("rect").attr({rx:e,ry:e,fill:Oa});return e.attr(e.crisp(f,a,b,ea(c,0),ea(d,0)))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[l(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},
g:function(a){var b=this.createElement("g");return p(a)?b.attr({"class":wb+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:Oa};1<arguments.length&&C(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(B(b),B(c),d,e,f),k=/^url\((.*?)\)$/,q;if(h)g=this.path(h),C(g,{symbolName:a,
x:b,y:c,width:d,height:e}),f&&C(g,f);else if(k.test(a)){var j=function(a,b){a.attr({width:b[0],height:b[1]}).translate(-B(b[0]/2),-B(b[1]/2))};q=a.match(k)[1];a=Hc[q];g=this.image(q).attr({x:b,y:c});a?j(g,a):(g.attr({width:0,height:0}),U("img",{onload:function(){j(g,Hc[q]=[this.width,this.height])},src:q}))}return g},symbols:{circle:function(a,b,c,d){var e=0.166*c;return[Ca,a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return[Ca,a,b,na,a+c,b,a+c,
b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return[Ca,a+c/2,b,na,a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return[Ca,a,b,na,a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return[Ca,a+c/2,b,na,a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-1.0E-6,d=e.innerR,h=ta(f),k=ma(f),q=ta(g),g=ma(g),e=e.end-f<Xa?0:1;return[Ca,a+c*h,b+c*k,"A",c,c,0,e,1,a+c*q,b+c*g,na,a+d*q,b+d*g,"A",d,d,0,e,0,a+d*h,b+d*k,"Z"]}},clipRect:function(a,b,c,d){var e=wb+sc++,f=
this.createElement("clipPath").attr({id:e}).add(this.defs),a=this.rect(a,b,c,d,0).add(f);a.id=e;a.clipPath=f;return a},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f=this,g=a.linearGradient,b=!ua(g),c=f.gradients,h,k=g.x1||g[0]||0,q=g.y1||g[1]||0,j=g.x2||g[2]||0,t=g.y2||g[3]||0,n,i,l=[b,k,q,j,t,a.stops.join(",")].join();c[l]?g=r(c[l].element,"id"):(g=wb+sc++,h=f.createElement("linearGradient").attr(C({id:g,x1:k,y1:q,x2:j,y2:t},b?null:{gradientUnits:"userSpaceOnUse"})).add(f.defs),
h.stops=[],o(a.stops,function(a){e.test(a[1])?(d=Aa(a[1]),n=d.get("rgb"),i=d.get("a")):(n=a[1],i=1);a=f.createElement("stop").attr({offset:a[0],"stop-color":n,"stop-opacity":i}).add(h);h.stops.push(a)}),c[l]=h);return"url("+this.url+"#"+g+")"}if(e.test(a))return d=Aa(a),r(b,c+"-opacity",d.get("a")),d.get("rgb");b.removeAttribute(c+"-opacity");return a},text:function(a,b,c,d){var e=Ma.chart.style;if(d&&!this.forExport)return this.html(a,b,c);b=B(l(b,0));c=B(l(c,0));a=this.createElement("text").attr({x:b,
y:c,text:a}).css({fontFamily:e.fontFamily,fontSize:e.fontSize});a.x=b;a.y=c;return a},html:function(a,b,c){var d=Ma.chart.style,e=this.createElement("span"),f=e.attrSetters,g=e.element,h=e.renderer;f.text=function(a){g.innerHTML=a;return!1};f.x=f.y=f.align=function(a,b){"align"===b&&(b="textAlign");e[b]=a;e.htmlUpdateTransform();return!1};e.attr({text:a,x:B(b),y:B(c)}).css({position:Lb,whiteSpace:"nowrap",fontFamily:d.fontFamily,fontSize:d.fontSize});e.css=e.htmlCss;if(h.isSVG)e.add=function(a){var b,
c,d=h.box.parentNode;if(a){if(b=a.div,!b)b=a.div=U(tb,{className:r(a.element,"class")},{position:Lb,left:a.attr("translateX")+oa,top:a.attr("translateY")+oa},d),c=b.style,C(a.attrSetters,{translateX:function(a){c.left=a+oa},translateY:function(a){c.top=a+oa},visibility:function(a,b){c[b]=a}})}else b=d;b.appendChild(g);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e};return e},label:function(a,b,c,d,e,f,g){function h(){var a=i.styles,a=a&&a.textAlign,b=I,c=i.element.style,c=I+B(1.2*F(c&&
c.fontSize||11));if(p(w)&&("center"===a||"right"===a))b+={center:0.5,right:1}[a]*(w-u.width);(b!==n.x||c!==n.y)&&n.attr({x:b,y:c});n.x=b;n.y=c}function k(a,b){l?l.attr(a,b):A[a]=b}function q(){i.attr({text:a,x:b,y:c,anchorX:e,anchorY:f})}var j=this,i=j.g(),n=j.text("",0,0,g).attr({zIndex:1}).add(i),l,u,M="left",I=3,w,s,y,z,ka=0,A={},g=i.attrSetters;pa(i,"add",q);g.width=function(a){w=a;return!1};g.height=function(a){s=a;return!1};g.padding=function(a){I=a;h();return!1};g.align=function(a){M=a;return!1};
g.text=function(a,b){n.attr(b,a);u=(void 0===w||void 0===s||i.styles.textAlign)&&n.getBBox(!0);i.width=(w||u.width)+2*I;i.height=(s||u.height)+2*I;if(!l)i.box=l=d?j.symbol(d,0,0,i.width,i.height):j.rect(0,0,i.width,i.height,0,A["stroke-width"]),l.add(i);l.attr(P({width:i.width,height:i.height},A));A=null;h();return!1};g["stroke-width"]=function(a,b){ka=a%2/2;k(b,a);return!1};g.stroke=g.fill=g.r=function(a,b){k(b,a);return!1};g.anchorX=function(a,b){e=a;k(b,a+ka-y);return!1};g.anchorY=function(a,b){f=
a;k(b,a-z);return!1};g.x=function(a){y=a;y-={left:0,center:0.5,right:1}[M]*((w||u.width)+I);i.attr("translateX",B(y));return!1};g.y=function(a){z=a;i.attr("translateY",B(a));return!1};var r=i.css;return C(i,{css:function(a){if(a){var b={},a=P({},a);o("fontSize,fontWeight,fontFamily,color,lineHeight,width".split(","),function(c){a[c]!==ga&&(b[c]=a[c],delete a[c])});n.css(b)}return r.call(i,a)},getBBox:function(){return l.getBBox()},shadow:function(a){l.shadow(a);return i},destroy:function(){Ra(i,"add",
q);Ra(i.element,"mouseenter");Ra(i.element,"mouseleave");n&&(n=n.destroy());Ta.prototype.destroy.call(i)}})}};gc=Rb;var Ab;if(!$b&&!nb){var Rc={Element:i(Ta,{init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ",Lb,";"];("shape"===b||b===tb)&&d.push("left:0;top:0;width:10px;height:10px;");ob&&d.push("visibility: ",b===tb?ib:kb);c.push(' style="',d.join(""),'"/>');if(b)c=b===tb||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=U(c);this.renderer=a;this.attrSetters={}},
add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);ob&&d.gVis===ib&&R(c,{visibility:ib});d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.htmlUpdateTransform();ca(this,"add");return this},toggleChildren:function(a,b){for(var c=a.childNodes,d=c.length;d--;)R(c[d],{visibility:b}),"DIV"===c[d].nodeName&&this.toggleChildren(c[d],b)},attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,h=f.nodeName,k=this.renderer,
q=this.symbolName,j,i=this.shadows,n,o=this.attrSetters,l=this;Sa(a)&&p(b)&&(c=a,a={},a[c]=b);if(Sa(a))c=a,l="strokeWidth"===c||"stroke-width"===c?this.strokeweight:this[c];else for(c in a)if(d=a[c],n=!1,e=o[c]&&o[c](d,c),!1!==e&&null!==d){e!==ga&&(d=e);if(q&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(c))j||(this.symbolAttr(a),j=!0),n=!0;else if("d"===c){d=d||[];this.d=d.join(" ");e=d.length;for(n=[];e--;)n[e]=wa(d[e])?B(10*d[e])-5:"Z"===d[e]?"x":d[e];d=n.join(" ")||"x";f.path=
d;if(i)for(e=i.length;e--;)i[e].path=d;n=!0}else if("zIndex"===c||"visibility"===c){if(ob&&"visibility"===c&&"DIV"===h)f.gVis=d,this.toggleChildren(f,d),d===kb&&(d=null);d&&(g[c]=d);n=!0}else if("width"===c||"height"===c)d=ea(0,d),this[c]=d,this.updateClipping?(this[c]=d,this.updateClipping()):g[c]=d,n=!0;else if("x"===c||"y"===c)this[c]=d,g[{x:"left",y:"top"}[c]]=d;else if("class"===c)f.className=d;else if("stroke"===c)d=k.color(d,f,c),c="strokecolor";else if("stroke-width"===c||"strokeWidth"===
c)f.stroked=d?!0:!1,c="strokeweight",this[c]=d,wa(d)&&(d+=oa);else if("dashstyle"===c)(f.getElementsByTagName("stroke")[0]||U(k.prepVML(["<stroke/>"]),null,null,f))[c]=d||"solid",this.dashstyle=d,n=!0;else if("fill"===c)"SPAN"===h?g.color=d:(f.filled=d!==Oa?!0:!1,d=k.color(d,f,c),c="fillcolor");else if("translateX"===c||"translateY"===c||"rotation"===c)this[c]=d,this.htmlUpdateTransform(),n=!0;else if("text"===c)this.bBox=null,f.innerHTML=d,n=!0;if(i&&"visibility"===c)for(e=i.length;e--;)i[e].style[c]=
d;n||(ob?f[c]=d:r(f,c,d))}return l},clip:function(a){var b=this,c=a.members;c.push(b);b.destroyClip=function(){Ya(c,b)};return b.css(a.getCSS(b.inverted))},css:Ta.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&sb(a)},destroy:function(){this.destroyClip&&this.destroyClip();return Ta.prototype.destroy.apply(this)},empty:function(){for(var a=this.element.childNodes,b=a.length,c;b--;)c=a[b],c.parentNode.removeChild(c)},on:function(a,b){this.element["on"+a]=function(){var a=la.event;a.target=
a.srcElement;b(a)};return this},shadow:function(a,b){var c=[],d,e=this.element,f=this.renderer,g,h=e.style,k,q=e.path;q&&"string"!==typeof q.value&&(q="x");if(a){for(d=1;3>=d;d++)k=['<shape isShadow="true" strokeweight="',7-2*d,'" filled="false" path="',q,'" coordsize="100,100" style="',e.style.cssText,'" />'],g=U(f.prepVML(k),null,{left:F(h.left)+1,top:F(h.top)+1}),k=['<stroke color="black" opacity="',0.05*d,'"/>'],U(f.prepVML(k),null,null,g),b?b.element.appendChild(g):e.parentNode.insertBefore(g,
e),c.push(g);this.shadows=c}return this}}),isIE8:-1<La.indexOf("MSIE 8.0"),init:function(a,b,c){var d;this.alignedObjects=[];d=this.createElement(tb);a.appendChild(d.element);this.box=d.element;this.boxWrapper=d;this.setSize(b,c,!1);if(!W.namespaces.hcv)W.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),W.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "},clipRect:function(a,b,c,d){var e=this.createElement();
return C(e,{members:[],left:a,top:b,width:c,height:d,getCSS:function(a){var b=this.top,c=this.left,d=c+this.width,e=b+this.height,b={clip:"rect("+B(a?c:b)+"px,"+B(a?e:d)+"px,"+B(a?d:e)+"px,"+B(a?b:c)+"px)"};!a&&ob&&C(b,{width:d+oa,height:e+oa});return b},updateClipping:function(){o(e.members,function(a){a.css(e.getCSS(a.inverted))})}})},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f,g,h=a.linearGradient,k=h.x1||h[0]||0,q=h.y1||h[1]||0,j=h.x2||h[2]||0,h=h.y2||h[3]||0,i,n,l,u;o(a.stops,
function(a,b){e.test(a[1])?(d=Aa(a[1]),f=d.get("rgb"),g=d.get("a")):(f=a[1],g=1);b?(l=f,u=g):(i=f,n=g)});if("fill"===c)a=90-180*xa.atan((h-q)/(j-k))/Xa,a=['<fill colors="0% ',i,",100% ",l,'" angle="',a,'" opacity="',u,'" o:opacity2="',n,'" type="gradient" focus="100%" method="any" />'],U(this.prepVML(a),null,null,b);else return f}else{if(e.test(a)&&"IMG"!==b.tagName)return d=Aa(a),a=["<",c,' opacity="',d.get("a"),'"/>'],U(this.prepVML(a),null,null,b),d.get("rgb");b=b.getElementsByTagName(c);if(b.length)b[0].opacity=
1;return a}},prepVML:function(a){var b=this.isIE8,a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=-1===a.indexOf('style="')?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","<hcv:");return a},text:Rb.prototype.html,path:function(a){return this.createElement("shape").attr({coordsize:"100 100",d:a})},circle:function(a,b,c){return this.symbol("circle").attr({x:a-
c,y:b-c,width:2*c,height:2*c})},g:function(a){var b;a&&(b={className:wb+a,"class":wb+a});return this.createElement(tb).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});1<arguments.length&&f.css({left:b,top:c,width:d,height:e});return f},rect:function(a,b,c,d,e,f){if(fa(a))b=a.y,c=a.width,d=a.height,f=a.strokeWidth,a=a.x;var g=this.symbol("rect");g.r=e;return g.attr(g.crisp(f,a,b,ea(c,0),ea(d,0)))},invertChild:function(a,b){var c=b.style;R(a,{flip:"x",left:F(c.width)-
10,top:F(c.height)-10,rotation:-90})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,c=e.r||c||d,d=ta(f),h=ma(f),k=ta(g),i=ma(g),e=e.innerR,j=0.07/c,o=e&&0.1/e||0;if(0===g-f)return["x"];2*Xa-g+f<j?k=-j:g-f<o&&(k=ta(f+o));return["wa",a-c,b-c,a+c,b+c,a+c*d,b+c*h,a+c*k,b+c*i,"at",a-e,b-e,a+e,b+e,a+e*k,b+e*i,a+e*d,b+e*h,"x","e"]},circle:function(a,b,c,d){return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){if(!p(e))return[];var f=a+c,g=b+d,c=fb(e.r||0,c,d);return[Ca,a+c,
b,na,f-c,b,"wa",f-2*c,b,f,b+2*c,f-c,b,f,b+c,na,f,g-c,"wa",f-2*c,g-2*c,f,g,f,g-c,f-c,g,na,a+c,g,"wa",a,g-2*c,a+2*c,g,a+c,g,a,g-c,na,a,b+c,"wa",a,b,a+2*c,b+2*c,a,b+c,a+c,b,"x","e"]}}};Ab=function(){this.init.apply(this,arguments)};Ab.prototype=P(Rb.prototype,Rc);gc=Ab}var vc,Ec;nb&&(vc=function(){},Ec=function(){function a(){var a=b.length,d;for(d=0;d<a;d++)b[d]();b=[]}var b=[];return{push:function(c,d){0===b.length&&Jc(d,a);b.push(c)}}}());gc=Ab||vc||Rb;Pa.prototype.callbacks=[];var Bb=function(){};
Bb.prototype={init:function(a,b,c){var d=a.chart.counters;this.series=a;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint){b=a.chart.options.colors;if(!this.options)this.options={};this.color=this.options.color=this.color||b[d.color++];d.wrapColor(b.length)}a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=typeof a;this.config=a;if("number"===d||null===a)this.y=a;else if("number"===typeof a[0])this.x=a[0],this.y=a[1];else if("object"===d&&"number"!==
typeof a.length){if(C(this,a),this.options=a,a.dataLabels)c._hasPointLabels=!0}else if("string"===typeof a[0])this.name=a[0],this.y=a[1];if(this.x===ga)this.x=b===ga?c.autoIncrement():b},destroy:function(){var a=this.series,b=a.chart.hoverPoints,c;a.chart.pointCount--;b&&(this.setState(),Ya(b,this));if(this===a.chart.hoverPoint)this.onMouseOut();a.chart.hoverPoints=null;if(this.graphic||this.dataLabel)Ra(this),this.destroyElements();this.legendItem&&this.series.chart.legend.destroyItem(this);for(c in this)this[c]=
null},destroyElements:function(){for(var a="graphic,tracker,dataLabel,group,connector,shadowGroup".split(","),b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(a,b){var c=this,d=c.series.chart,a=l(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=a;c.setState(a&&
"select");b||o(d.getSelectedPoints(),function(a){if(a.selected&&a!==c)a.selected=!1,a.setState(Fa),a.firePointEvent("unselect")})})},onMouseOver:function(){var a=this.series,b=a.chart,c=b.tooltip,d=b.hoverPoint;if(d&&d!==this)d.onMouseOut();this.firePointEvent("mouseOver");c&&(!c.shared||a.noSharedTooltip)&&c.refresh(this);this.setState(Ka);b.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut");this.setState();this.series.chart.hoverPoint=null},tooltipFormatter:function(a){var b=
this.series,c=b.tooltipOptions,d=(""+this.y).split("."),d=d[1]?d[1].length:0,e=a.match(/\{(series|point)\.[a-zA-Z]+\}/g),f=/[\.}]/,g,h,k;for(k in e)h=e[k],Sa(h)&&h!==a&&(g=1===h.indexOf("point")?this:b,g="{point.y}"===h?(c.valuePrefix||c.yPrefix||"")+I(this.y,l(c.valueDecimals,c.yDecimals,d))+(c.valueSuffix||c.ySuffix||""):g[e[k].split(f)[1]],a=a.replace(e[k],g));return a},update:function(a,b,c){var d=this,e=d.series,f=d.graphic,g,h=e.data,k=h.length,i=e.chart,b=l(b,!0);d.firePointEvent("update",
{options:a},function(){d.applyOptions(a);fa(a)&&(e.getAttribs(),f&&f.attr(d.pointAttr[e.state]));for(g=0;g<k;g++)if(h[g]===d){e.xData[g]=d.x;e.yData[g]=d.y;e.options.data[g]=a;break}e.isDirty=!0;e.isDirtyData=!0;b&&i.redraw(c)})},remove:function(a,b){var c=this,d=c.series,e=d.chart,f,g=d.data,h=g.length;ha(b,e);a=l(a,!0);c.firePointEvent("remove",null,function(){for(f=0;f<h;f++)if(g[f]===c){g.splice(f,1);d.options.data.splice(f,1);d.xData.splice(f,1);d.yData.splice(f,1);break}c.destroy();d.isDirty=
!0;d.isDirtyData=!0;a&&e.redraw()})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents();"click"===a&&e.allowPointSelect&&(c=function(a){d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});ca(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=P(this.series.options.point,this.options).events,b;this.events=a;for(b in a)pa(this,b,a[b]);this.hasImportedEvents=!0}},setState:function(a){var b=
this.plotX,c=this.plotY,d=this.series,e=d.options.states,f=ba[d.type].marker&&d.options.marker,g=f&&!f.enabled,h=f&&f.states[a],k=h&&!1===h.enabled,i=d.stateMarkerGraphic,j=d.chart,o=this.pointAttr,a=a||Fa;if(!(a===this.state||this.selected&&"select"!==a||e[a]&&!1===e[a].enabled||a&&(k||g&&!h.enabled))){if(this.graphic)e=this.graphic.symbolName&&o[a].r,this.graphic.attr(P(o[a],e?{x:b-e,y:c-e,width:2*e,height:2*e}:{}));else{if(a){if(!i)e=f.radius,d.stateMarkerGraphic=i=j.renderer.symbol(d.symbol,-e,
-e,2*e,2*e).attr(o[a]).add(d.group);i.translate(b,c)}if(i)i[a?"show":"hide"]()}this.state=a}}};var T=function(){};T.prototype={isCartesian:!0,type:"line",pointClass:Bb,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(a,b){var c,d;d=a.series.length;this.chart=a;this.options=b=this.setOptions(b);this.bindAxes();C(this,{index:d,name:b.name||"Series "+(d+1),state:Fa,pointAttr:{},visible:!1!==b.visible,selected:!0===b.selected});if(nb)b.animation=
!1;d=b.events;for(c in d)pa(this,c,d[c]);if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;this.getColor();this.getSymbol();this.setData(b.data,!1)},bindAxes:function(){var a=this,b=a.options,c=a.chart,d;a.isCartesian&&o(["xAxis","yAxis"],function(e){o(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]===ga&&0===d.index)c.series.push(a),a[e]=c,c.isDirty=!0})})},autoIncrement:function(){var a=this.options,b=this.xIncrement,b=l(b,a.pointStart,0);
this.pointInterval=l(this.pointInterval,a.pointInterval,1);this.xIncrement=b+this.pointInterval;return b},getSegments:function(){var a=-1,b=[],c,d=this.points,e=d.length;if(e)if(this.options.connectNulls){for(c=e;c--;)null===d[c].y&&d.splice(c,1);b=[d]}else o(d,function(c,g){null===c.y?(g>a+1&&b.push(d.slice(a+1,g)),a=g):g===e-1&&b.push(d.slice(a+1,g+1))});this.segments=b},setOptions:function(a){var b=this.chart.options,c=b.plotOptions,d=a.data;a.data=null;c=P(c[this.type],c.series,a);c.data=a.data=
d;this.tooltipOptions=P(b.tooltip,c.tooltip);return c},getColor:function(){var a=this.chart.options.colors,b=this.chart.counters;this.color=this.options.color||a[b.color++]||"#0000ff";b.wrapColor(a.length)},getSymbol:function(){var a=this.options.marker,b=this.chart,c=b.options.symbols,b=b.counters;this.symbol=a.symbol||c[b.symbol++];if(/^url/.test(this.symbol))a.radius=0;b.wrapSymbol(c.length)},addPoint:function(a,b,c,d){var e=this.data,f=this.graph,g=this.area,h=this.chart,k=this.xData,i=this.yData,
j=f&&f.shift||0,o=this.options.data;ha(d,h);if(f&&c)f.shift=j+1;if(g)g.shift=j+1,g.isArea=!0;b=l(b,!0);d={series:this};this.pointClass.prototype.applyOptions.apply(d,[a]);k.push(d.x);i.push(4===this.valueCount?[d.open,d.high,d.low,d.close]:d.y);o.push(a);c&&(e[0]?e[0].remove(!1):(e.shift(),k.shift(),i.shift(),o.shift()));this.getAttribs();this.isDirtyData=this.isDirty=!0;b&&h.redraw()},setData:function(a,b){var c=this.points,d=this.options,e=this.initialColor,f=this.chart,g=null;this.xIncrement=null;
this.pointRange=this.xAxis&&this.xAxis.categories&&1||d.pointRange;if(p(e))f.counters.color=e;var h=[],k=[],i=a?a.length:[],j=4===this.valueCount;if(i>(d.turboThreshold||1E3)){for(e=0;null===g&&e<i;)g=a[e],e++;if(wa(g)){g=l(d.pointStart,0);d=l(d.pointInterval,1);for(e=0;e<i;e++)h[e]=g,k[e]=a[e],g+=d;this.xIncrement=g}else if(ua(g))if(j)for(e=0;e<i;e++)d=a[e],h[e]=d[0],k[e]=d.slice(1,5);else for(e=0;e<i;e++)d=a[e],h[e]=d[0],k[e]=d[1]}else for(e=0;e<i;e++)d={series:this},this.pointClass.prototype.applyOptions.apply(d,
[a[e]]),h[e]=d.x,k[e]=j?[d.open,d.high,d.low,d.close]:d.y;this.data=[];this.options.data=a;this.xData=h;this.yData=k;for(e=c&&c.length||0;e--;)c[e]&&c[e].destroy&&c[e].destroy();this.isDirty=this.isDirtyData=f.isDirtyBox=!0;l(b,!0)&&f.redraw(!1)},remove:function(a,b){var c=this,d=c.chart,a=l(a,!0);if(!c.isRemoving)c.isRemoving=!0,ca(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=!0;a&&d.redraw(b)});c.isRemoving=!1},processData:function(a){var b=this.xData,c=this.yData,d=b.length,
e=0,f=d,g,h,k=this.xAxis,i=this.options,j=i.cropThreshold;if(this.isCartesian&&!this.isDirty&&!k.isDirty&&!this.yAxis.isDirty&&!a)return!1;if(!j||d>j||this.forceCrop)if(a=k.getExtremes(),k=a.min,j=a.max,b[d-1]<k||b[0]>j)b=[],c=[];else if(b[0]<k||b[d-1]>j){for(a=0;a<d;a++)if(b[a]>=k){e=ea(0,a-1);break}for(;a<d;a++)if(b[a]>j){f=a+1;break}b=b.slice(e,f);c=c.slice(e,f);g=!0}for(a=b.length-1;0<a;a--)if(d=b[a]-b[a-1],h===ga||d<h)h=d;this.cropped=g;this.cropStart=e;this.processedXData=b;this.processedYData=
c;if(null===i.pointRange)this.pointRange=h||1;this.closestPointRange=h},generatePoints:function(){var a=this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length,h=this.cropStart||0,k,i=this.hasGroupedData,j,o=[],n;if(!b&&!i)b=[],b.length=a.length,b=this.data=b;for(n=0;n<g;n++)k=h+n,i?o[n]=(new f).init(this,[d[n]].concat(aa(e[n]))):(b[k]?j=b[k]:b[k]=j=(new f).init(this,a[k],d[n]),o[n]=j);if(b&&(g!==(c=b.length)||i))for(n=0;n<c;n++)n===h&&!i&&(n+=g),b[n]&&
b[n].destroyElements();this.data=b;this.points=o},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.chart,b=this.options,c=b.stacking,d=this.xAxis,e=d.categories,f=this.yAxis,g=this.points,h=g.length,k=!!this.modifyValue,i,j=f.series,o=j.length;o--;)if(j[o].visible){o===this.index&&(i=!0);break}for(o=0;o<h;o++){var j=g[o],n=j.x,l=j.y,u=j.low,I=f.stacks[(l<b.threshold?"-":"")+this.stackKey];j.plotX=B(10*d.translate(n,0,0,0,1))/10;if(c&&this.visible&&
I&&I[n]){u=I[n];n=u.total;u.cum=u=u.cum-l;l=u+l;if(i)u=b.threshold;"percent"===c&&(u=n?100*u/n:0,l=n?100*l/n:0);j.percentage=n?100*j.y/n:0;j.stackTotal=n}j.yBottom=p(u)?f.translate(u,0,1,0,1):null;k&&(l=this.modifyValue(l,j));if(null!==l)j.plotY=B(10*f.translate(l,0,1,0,1))/10;j.clientX=a.inverted?a.plotHeight-j.plotX:j.plotX;j.category=e&&e[j.x]!==ga?e[j.x]:j.x}this.getSegments()},setTooltipPoints:function(a){var b=this.chart,c=b.inverted,d=[],b=B((c?b.plotTop:b.plotLeft)+b.plotSizeX),e,f;e=this.xAxis;
var g,h,k=[];if(!1!==this.options.enableMouseTracking){if(a)this.tooltipPoints=null;o(this.segments||this.points,function(a){d=d.concat(a)});e&&e.reversed&&(d=d.reverse());a=d.length;for(h=0;h<a;h++){g=d[h];e=d[h-1]?d[h-1]._high+1:0;for(f=g._high=d[h+1]?Za((g.plotX+(d[h+1]?d[h+1].plotX:b))/2):b;e<=f;)k[c?b-e++:e++]=g}this.tooltipPoints=k}},tooltipHeaderFormatter:function(a){var b=this.tooltipOptions,c=b.xDateFormat||"%A, %b %e, %Y",d=this.xAxis;return b.headerFormat.replace("{point.key}",d&&"datetime"===
d.options.type?kc(c,a):a).replace("{series.name}",this.name).replace("{series.color}",this.color)},onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(Ea||!a.mouseIsDown){if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&ca(this,"mouseOver");this.setState(Ka);a.hoverSeries=this}},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;if(d)d.onMouseOut();this&&a.events.mouseOut&&ca(this,"mouseOut");c&&!a.stickyTracking&&!c.shared&&c.hide();this.setState();
b.hoverSeries=null},animate:function(a){var b=this.chart,c=this.clipRect,d=this.options.animation;d&&!fa(d)&&(d={});if(a){if(!c.isAnimating)c.attr("width",0),c.isAnimating=!0}else c.animate({width:b.plotSizeX},d),this.animate=null},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,k,i,j;if(this.options.marker.enabled)for(f=b.length;f--;)if(g=b[f],d=g.plotX,e=g.plotY,j=g.graphic,e!==ga&&!isNaN(e))if(a=g.pointAttr[g.selected?"select":Fa],h=a.r,k=l(g.marker&&g.marker.symbol,this.symbol),
i=0===k.indexOf("url"),j)j.animate(C({x:d-h,y:e-h},j.symbolName?{width:2*h,height:2*h}:{}));else if(0<h||i)g.graphic=c.renderer.symbol(k,d-h,e-h,2*h,2*h).attr(a).add(this.group)},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=l(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=ba[a.type].marker?a.options.marker:a.options,c=b.states,d=c[Ka],e,f=a.color,g={stroke:f,fill:f},h=a.points,k=[],i,j=a.pointAttrToOptions,
l;a.options.marker?(d.radius=d.radius||b.radius+2,d.lineWidth=d.lineWidth||b.lineWidth+1):d.color=d.color||Aa(d.color||f).brighten(d.brightness).get();k[Fa]=a.convertAttribs(b,g);o([Ka,"select"],function(b){k[b]=a.convertAttribs(c[b],k[Fa])});a.pointAttr=k;for(f=h.length;f--;){g=h[f];if((b=g.options&&g.options.marker||g.options)&&!1===b.enabled)b.radius=0;e=!1;if(g.options)for(l in j)p(b[j[l]])&&(e=!0);if(e){i=[];c=b.states||{};e=c[Ka]=c[Ka]||{};if(!a.options.marker)e.color=Aa(e.color||g.options.color).brighten(e.brightness||
d.brightness).get();i[Fa]=a.convertAttribs(b,k[Fa]);i[Ka]=a.convertAttribs(c[Ka],k[Ka],i[Fa]);i.select=a.convertAttribs(c.select,k.select,i[Fa])}else i=k;g.pointAttr=i}},destroy:function(){var a=this,b=a.chart,c=a.clipRect,d=/AppleWebKit\/533/.test(La),e,f,g=a.data||[],h,k,i;ca(a,"destroy");Ra(a);o(["xAxis","yAxis"],function(b){if(i=a[b])Ya(i.series,a),i.isDirty=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(f=g.length;f--;)(h=g[f])&&h.destroy&&h.destroy();a.points=null;if(c&&c!==b.clipRect)a.clipRect=
c.destroy();o(["area","graph","dataLabelsGroup","group","tracker"],function(b){a[b]&&(e=d&&"group"===b?"hide":"destroy",a[b][e]())});if(b.hoverSeries===a)b.hoverSeries=null;Ya(b.series,a);for(k in a)delete a[k]},drawDataLabels:function(){var a=this,b=a.options,c=b.dataLabels;if(c.enabled||a._hasPointLabels){var d,e,f=a.points,g,h,k,i=a.dataLabelsGroup,j=a.chart,t=a.xAxis,t=t?t.left:j.plotLeft,n=a.yAxis,n=n?n.top:j.plotTop,I=j.renderer,u=j.inverted,w=a.type,ia=b.stacking,A="column"===w||"bar"===w,
s=null===c.verticalAlign,y=null===c.y,z;A&&(ia?(s&&(c=P(c,{verticalAlign:"middle"})),y&&(c=P(c,{y:{top:14,middle:4,bottom:-6}[c.verticalAlign]}))):s&&(c=P(c,{verticalAlign:"top"})));i?i.translate(t,n):i=a.dataLabelsGroup=I.g("data-labels").attr({visibility:a.visible?kb:ib,zIndex:6}).translate(t,n).add();h=c;o(f,function(f){z=f.dataLabel;c=h;(g=f.options)&&g.dataLabels&&(c=P(c,g.dataLabels));if(z&&a.isCartesian&&!j.isInsidePlot(f.plotX,f.plotY))f.dataLabel=z.destroy();else if(c.enabled){k=c.formatter.call(f.getLabelConfig(),
c);var n=f.barX,o=n&&n+f.barW/2||f.plotX||-999,t=l(f.plotY,-999),s=c.align,B=y?0<=f.y?-6:12:c.y;d=(u?j.plotWidth-t:o)+c.x;e=(u?j.plotHeight-o:t)+B;"column"===w&&(d+={left:-1,right:1}[s]*f.barW/2||0);!ia&&u&&0>f.y&&(s="right",d-=10);c.style.color=l(c.color,c.style.color,a.color,"black");if(z)u&&!c.y&&(e=e+0.9*F(z.styles.lineHeight)-z.getBBox().height/2),z.attr({text:k}).animate({x:d,y:e});else if(p(k))z=f.dataLabel=I.text(k,d,e,c.useHTML).attr({align:s,rotation:c.rotation,zIndex:1}).css(c.style).add(i),
u&&!c.y&&z.attr({y:e+0.9*F(z.styles.lineHeight)-z.getBBox().height/2});if(A&&b.stacking&&z)o=f.barY,t=f.barW,f=f.barH,z.align(c,null,{x:u?j.plotWidth-o-f:n,y:u?j.plotHeight-n-t:o,width:u?f:t,height:u?t:f})}})}},drawGraph:function(){var a=this,b=a.options,c=a.graph,d=[],e,f=a.area,g=a.group,h=b.lineColor||a.color,k=b.lineWidth,i=b.dashStyle,j,t=a.chart.renderer,n=a.yAxis.getThreshold(b.threshold),I=/^area/.test(a.type),u=[],p=[];o(a.segments,function(c){j=[];o(c,function(d,e){a.getPointSpline?j.push.apply(j,
a.getPointSpline(c,d,e)):(j.push(e?na:Ca),e&&b.step&&j.push(d.plotX,c[e-1].plotY),j.push(d.plotX,d.plotY))});1<c.length?d=d.concat(j):u.push(c[0]);if(I){var e=[],f,g=j.length;for(f=0;f<g;f++)e.push(j[f]);3===g&&e.push(na,j[1],j[2]);if(b.stacking&&"areaspline"!==a.type)for(f=c.length-1;0<=f;f--)f<c.length-1&&b.step&&e.push(c[f+1].plotX,c[f].yBottom),e.push(c[f].plotX,c[f].yBottom);else e.push(na,c[c.length-1].plotX,n,na,c[0].plotX,n);p=p.concat(e)}});a.graphPath=d;a.singlePoints=u;if(I)e=l(b.fillColor,
Aa(a.color).setOpacity(b.fillOpacity||0.75).get()),f?f.animate({d:p}):a.area=a.chart.renderer.path(p).attr({fill:e}).add(g);if(c)Zb(c),c.animate({d:d});else if(k){c={stroke:h,"stroke-width":k};if(i)c.dashstyle=i;a.graph=t.path(d).attr(c).add(g).shadow(b.shadow)}},render:function(){var a=this,b=a.chart,c,d,e=a.options,f=!1!==e.clip,g=e.animation,h=g&&a.animate,g=h?g&&g.duration||500:0,k=a.clipRect,i=b.renderer;if(!k&&(k=a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:i.clipRect(0,0,b.plotSizeX,b.plotSizeY+
1),!b.clipRect))b.clipRect=k;if(!a.group)c=a.group=i.g("series"),b.inverted&&(d=function(){c.attr({width:b.plotWidth,height:b.plotHeight}).invert()},d(),pa(b,"resize",d),pa(a,"destroy",function(){Ra(b,"resize",d)})),f&&c.clip(k),c.attr({visibility:a.visible?kb:ib,zIndex:e.zIndex}).translate(a.xAxis.left,a.yAxis.top).add(b.seriesGroup);a.drawDataLabels();h&&a.animate(!0);a.getAttribs();a.drawGraph&&a.drawGraph();a.drawPoints();!1!==a.options.enableMouseTracking&&a.drawTracker();h&&a.animate();setTimeout(function(){k.isAnimating=
!1;if((c=a.group)&&k!==b.clipRect&&k.renderer){if(f)c.clip(a.clipRect=b.clipRect);k.destroy()}},g);a.isDirty=a.isDirtyData=!1},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.group;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:this.xAxis.left,translateY:this.yAxis.top}));this.translate();this.setTooltipPoints(!0);this.render();b&&ca(this,"updatedData")},setState:function(a){var b=this.options,c=this.graph,d=b.states,b=b.lineWidth,a=a||Fa;if(this.state!==
a)this.state=a,d[a]&&!1===d[a].enabled||(a&&(b=d[a].lineWidth||b+1),c&&!c.dashstyle&&c.attr({"stroke-width":b},a?0:500))},setVisible:function(a,b){var c=this.chart,d=this.legendItem,e=this.group,f=this.tracker,g=this.dataLabelsGroup,h,k=this.points,i=c.options.chart.ignoreHiddenSeries;h=this.visible;h=(this.visible=a=a===ga?!h:a)?"show":"hide";if(e)e[h]();if(f)f[h]();else if(k)for(e=k.length;e--;)if(f=k[e],f.tracker)f.tracker[h]();if(g)g[h]();d&&c.legend.colorizeItem(this,a);this.isDirty=!0;this.options.stacking&&
o(c.series,function(a){if(a.options.stacking&&a.visible)a.isDirty=!0});if(i)c.isDirtyBox=!0;!1!==b&&c.redraw();ca(this,h)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===ga?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;ca(this,a?"select":"unselect")},drawTracker:function(){var a=this,b=a.options,c=[].concat(a.graphPath),d=c.length,e=a.chart,f=e.renderer,g=e.options.tooltip.snap,h=a.tracker,k=b.cursor,k=k&&{cursor:k},i=a.singlePoints,
j;if(d)for(j=d+1;j--;)c[j]===Ca&&c.splice(j+1,0,c[j+1]-g,c[j+2],na),(j&&c[j]===Ca||j===d)&&c.splice(j,0,na,c[j-2]+g,c[j-1]);for(j=0;j<i.length;j++)d=i[j],c.push(Ca,d.plotX-g,d.plotY,na,d.plotX+g,d.plotY);h?h.attr({d:c}):(h=f.g().clip(e.clipRect).add(e.trackerGroup),a.tracker=f.path(c).attr({isTracker:!0,stroke:Ic,fill:Oa,"stroke-linejoin":"bevel","stroke-width":b.lineWidth+2*g,visibility:a.visible?kb:ib,zIndex:b.zIndex||1}).on(Ea?"touchstart":"mouseover",function(){if(e.hoverSeries!==a)a.onMouseOver()}).on("mouseout",
function(){if(!b.stickyTracking)a.onMouseOut()}).css(k).add(h))}};var Sc=i(T);Wa.line=Sc;var Tc=i(T,{type:"area"});Wa.area=Tc;var Mc=i(T,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],h,k,i,j;if(c&&c<a.length-1){a=f.plotY;i=g.plotX;var g=g.plotY,o;h=(1.5*d+f.plotX)/2.5;k=(1.5*e+a)/2.5;i=(1.5*d+i)/2.5;j=(1.5*e+g)/2.5;o=(j-k)*(i-d)/(i-h)+e-j;k+=o;j+=o;k>a&&k>e?(k=ea(a,e),j=2*e-k):k<a&&k<e&&(k=fb(a,e),j=2*e-k);j>g&&j>e?(j=ea(g,e),k=2*e-j):j<g&&j<e&&(j=fb(g,e),
k=2*e-j);b.rightContX=i;b.rightContY=j}c?(b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,h||d,k||e,d,e],f.rightContX=f.rightContY=null):b=[Ca,d,e];return b}});Wa.spline=Mc;var Uc=i(Mc,{type:"areaspline"});Wa.areaspline=Uc;var ac=i(T,{type:"column",tooltipOutsidePlot:!0,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){T.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&o(b.series,function(b){if(b.type===
a.type)b.isDirty=!0})},translate:function(){var a=this,b=a.chart,c=a.options,d=c.stacking,e=c.borderWidth,f=0,g=a.xAxis,h=g.reversed,i={},q,j;T.prototype.translate.apply(a);o(b.series,function(b){if(b.type===a.type&&b.visible&&a.options.group===b.options.group)b.options.stacking?(q=b.stackKey,i[q]===ga&&(i[q]=f++),j=i[q]):j=f++,b.columnIndex=j});var t=a.points,g=Ga(g.translationSlope)*(g.ordinalSlope||g.closestPointRange||1),n=g*c.groupPadding,I=(g-2*n)/f,u=c.pointWidth,w=p(u)?(I-u)/2:I*c.pointPadding,
A=ic(ea(l(u,I-2*w),1)),B=w+(n+((h?f-a.columnIndex:a.columnIndex)||0)*I-g/2)*(h?-1:1),s=a.yAxis.getThreshold(c.threshold),y=l(c.minPointLength,5);o(t,function(f){var g=f.plotY,h=f.yBottom||s,i=f.plotX+B,k=ic(fb(g,h)),j=ic(ea(g,h)-k),n=a.yAxis.stacks[(0>f.y?"-":"")+a.stackKey];d&&a.visible&&n&&n[f.x]&&n[f.x].setOffset(B,A);Ga(j)<y&&y&&(j=y,k=Ga(k-s)>y?h-y:s-(g<=s?y:0));C(f,{barX:i,barY:k,barW:A,barH:j});f.shapeType="rect";g=C(b.renderer.Element.prototype.crisp.apply({},[e,i,k,A,j]),{r:c.borderRadius});
e%2&&(g.y-=1,g.height+=1);f.shapeArgs=g;f.trackerArgs=3>Ga(j)&&P(f.shapeArgs,{height:6,y:k-3})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d,e;o(a.points,function(f){var g=f.plotY;if(g!==ga&&!isNaN(g)&&null!==f.y)d=f.graphic,e=f.shapeArgs,d?(Zb(d),d.animate(e)):f.graphic=d=c[f.shapeType](e).attr(f.pointAttr[f.selected?"select":Fa]).add(a.group).shadow(b.shadow)})},drawTracker:function(){var a=this,b=a.chart,c=b.renderer,d,e,f=+new Date,
g=a.options,h=g.cursor,i=h&&{cursor:h},q,j;a.isCartesian&&(q=c.g().clip(b.clipRect).add(b.trackerGroup));o(a.points,function(h){e=h.tracker;d=h.trackerArgs||h.shapeArgs;delete d.strokeWidth;if(null!==h.y)e?e.attr(d):h.tracker=c[h.shapeType](d).attr({isTracker:f,fill:Ic,visibility:a.visible?kb:ib,zIndex:g.zIndex||1}).on(Ea?"touchstart":"mouseover",function(c){j=c.relatedTarget||c.fromElement;if(b.hoverSeries!==a&&r(j,"isTracker")!==f)a.onMouseOver();h.onMouseOver()}).on("mouseout",function(b){if(!g.stickyTracking&&
(j=b.relatedTarget||b.toElement,r(j,"isTracker")!==f))a.onMouseOut()}).css(i).add(h.group||q)})},animate:function(a){var b=this,c=b.points,d=b.options;if(!a)o(c,function(a){var c=a.graphic,a=a.shapeArgs,g=b.yAxis,h=d.threshold;c&&(c.attr({height:0,y:p(h)?g.getThreshold(h):g.translate(g.getExtremes().min,0,1,0,1)}),c.animate({height:a.height,y:a.y},d.animation))}),b.animate=null},remove:function(){var a=this,b=a.chart;b.hasRendered&&o(b.series,function(b){if(b.type===a.type)b.isDirty=!0});T.prototype.remove.apply(a,
arguments)}});Wa.column=ac;var Vc=i(ac,{type:"bar",init:function(){this.inverted=!0;ac.prototype.init.apply(this,arguments)}});Wa.bar=Vc;var Wc=i(T,{type:"scatter",translate:function(){var a=this;T.prototype.translate.apply(a);o(a.points,function(b){b.shapeType="circle";b.shapeArgs={x:b.plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})},drawTracker:function(){for(var a=this,b=a.options.cursor,b=b&&{cursor:b},c=a.points,d=c.length,e;d--;)if(e=c[d].graphic)e.element._index=d;a._hasTracking?a._hasTracking=
!0:a.group.on(Ea?"touchstart":"mouseover",function(b){a.onMouseOver();c[b.target._index].onMouseOver()}).on("mouseout",function(){if(!a.options.stickyTracking)a.onMouseOut()}).css(b)}});Wa.scatter=Wc;var Xc=i(Bb,{init:function(){Bb.prototype.init.apply(this,arguments);var a=this,b;C(a,{visible:!1!==a.visible,name:l(a.name,"Slice")});b=function(){a.slice()};pa(a,"select",b);pa(a,"unselect",b);return a},setVisible:function(a){var b=this.series.chart,c=this.tracker,d=this.dataLabel,e=this.connector,
f=this.shadowGroup,g;g=(this.visible=a=a===ga?!this.visible:a)?"show":"hide";this.group[g]();if(c)c[g]();if(d)d[g]();if(e)e[g]();if(f)f[g]();this.legendItem&&b.legend.colorizeItem(this,a)},slice:function(a,b,c){var d=this.series.chart,e=this.slicedTranslation;ha(c,d);l(b,!0);a=this.sliced=p(a)?a:!this.sliced;a={translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop};this.group.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)}}),Yc=i(T,{type:"pie",isCartesian:!1,pointClass:Xc,pointAttrToOptions:{stroke:"borderColor",
"stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var a=this;o(a.points,function(b){var c=b.graphic,b=b.shapeArgs,d=-Xa/2;c&&(c.attr({r:0,start:d,end:d}),c.animate({r:b.r,start:b.start,end:b.end},a.options.animation))});a.animate=null},setData:function(){T.prototype.setData.apply(this,arguments);this.processData();this.generatePoints()},translate:function(){this.generatePoints();var a=0,b=-0.25,c=this.options,d=c.slicedOffset,
e=d+c.borderWidth,f=c.center.concat([c.size,c.innerSize||0]),g=this.chart,h=g.plotWidth,i=g.plotHeight,q,j,l,n=this.points,I=2*Xa,p,w=fb(h,i),A,r,s,y=c.dataLabels.distance,f=ec(f,function(a,b){return(A=/%$/.test(a))?[h,i,w,w][b]*F(a)/100:a});this.getX=function(a,b){l=xa.asin((a-f[1])/(f[2]/2+y));return f[0]+(b?-1:1)*ta(l)*(f[2]/2+y)};this.center=f;o(n,function(b){a+=b.y});o(n,function(c){p=a?c.y/a:0;q=B(1E3*b*I)/1E3;b+=p;j=B(1E3*b*I)/1E3;c.shapeType="arc";c.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/
2,start:q,end:j};l=(j+q)/2;c.slicedTranslation=ec([ta(l)*d+g.plotLeft,ma(l)*d+g.plotTop],B);r=ta(l)*f[2]/2;s=ma(l)*f[2]/2;c.tooltipPos=[f[0]+0.7*r,f[1]+0.7*s];c.labelPos=[f[0]+r+ta(l)*y,f[1]+s+ma(l)*y,f[0]+r+ta(l)*e,f[1]+s+ma(l)*e,f[0]+r,f[1]+s,0>y?"center":l<I/4?"left":"right",l];c.percentage=100*p;c.total=a});this.setTooltipPoints()},render:function(){this.getAttribs();this.drawPoints();!1!==this.options.enableMouseTracking&&this.drawTracker();this.drawDataLabels();this.options.animation&&this.animate&&
this.animate();this.isDirty=!1},drawPoints:function(){var a=this.chart,b=a.renderer,c,d,e,f=this.options.shadow,g,h;o(this.points,function(i){d=i.graphic;h=i.shapeArgs;e=i.group;g=i.shadowGroup;if(f&&!g)g=i.shadowGroup=b.g("shadow").attr({zIndex:4}).add();if(!e)e=i.group=b.g("point").attr({zIndex:5}).add();c=i.sliced?i.slicedTranslation:[a.plotLeft,a.plotTop];e.translate(c[0],c[1]);g&&g.translate(c[0],c[1]);d?d.animate(h):i.graphic=b.arc(h).attr(C(i.pointAttr[Fa],{"stroke-linejoin":"round"})).add(i.group).shadow(f,
g);!1===i.visible&&i.setVisible(!1)})},drawDataLabels:function(){var a=this.data,b,c=this.chart,d=this.options.dataLabels,e=l(d.connectorPadding,10),f=l(d.connectorWidth,1),g,h,i=l(d.softConnector,!0),q=d.distance,j=this.center,I=j[2]/2,j=j[1],n=0<q,p=[[],[]],u,w,A,B,s=2,y;if(d.enabled){T.prototype.drawDataLabels.apply(this);o(a,function(a){a.dataLabel&&p[a.labelPos[7]<Xa/2?0:1].push(a)});p[1].reverse();B=function(a,b){return b.y-a.y};for(a=p[0][0]&&p[0][0].dataLabel&&F(p[0][0].dataLabel.styles.lineHeight);s--;){var z=
[],r=[],qb=p[s],X=qb.length,D;for(y=j-I-q;y<=j+I+q;y+=a)z.push(y);A=z.length;if(X>A){h=[].concat(qb);h.sort(B);for(y=X;y--;)h[y].rank=y;for(y=X;y--;)qb[y].rank>=A&&qb.splice(y,1);X=qb.length}for(y=0;y<X;y++){b=qb[y];h=b.labelPos;b=9999;for(w=0;w<A;w++)g=Ga(z[w]-h[1]),g<b&&(b=g,D=w);if(D<y&&null!==z[y])D=y;else for(A<X-y+D&&null!==z[y]&&(D=A-X+y);null===z[D];)D++;r.push({i:D,y:z[D]});z[D]=null}r.sort(B);for(y=0;y<X;y++){b=qb[y];h=b.labelPos;g=b.dataLabel;w=r.pop();u=h[1];A=!1===b.visible?ib:kb;D=w.i;
w=w.y;if(u>w&&null!==z[D+1]||u<w&&null!==z[D-1])w=u;u=this.getX(0===D||D===z.length-1?u:w,s);g.attr({visibility:A,align:h[6]})[g.moved?"animate":"attr"]({x:u+d.x+({left:e,right:-e}[h[6]]||0),y:w+d.y});g.moved=!0;if(n&&f)g=b.connector,h=i?[Ca,u+("left"===h[6]?5:-5),w,"C",u,w,2*h[2]-h[4],2*h[3]-h[5],h[2],h[3],na,h[4],h[5]]:[Ca,u+("left"===h[6]?5:-5),w,na,h[2],h[3],na,h[4],h[5]],g?(g.animate({d:h}),g.attr("visibility",A)):b.connector=g=this.chart.renderer.path(h).attr({"stroke-width":f,stroke:d.connectorColor||
b.color||"#606060",visibility:A,zIndex:3}).translate(c.plotLeft,c.plotTop).add()}}}},drawTracker:ac.prototype.drawTracker,getSymbol:function(){}});Wa.pie=Yc;C(Highcharts,{Chart:Pa,dateFormat:kc,pathAnim:gb,getOptions:function(){return Ma},hasBidiBug:Qc,numberFormat:I,Point:Bb,Color:Aa,Renderer:gc,SVGRenderer:Rb,VMLRenderer:Ab,CanVGRenderer:vc,seriesTypes:Wa,setOptions:function(a){jc=P(jc,a.xAxis);rc=P(rc,a.yAxis);a.xAxis=a.yAxis=ga;Ma=P(Ma,a);Ub();return Ma},Series:T,addEvent:pa,removeEvent:Ra,createElement:U,
discardElement:sb,css:R,each:o,extend:C,map:ec,merge:P,pick:l,splat:aa,extendClass:i,placeBox:X,product:"Highcharts",version:"2.2.0"})})();
(function(){function C(i){for(var l=i.length;l--;)"number"===typeof i[l]&&(i[l]=Math.round(i[l])-0.5);return i}var L=Highcharts,F=L.Chart,Sa=L.addEvent,fa=L.removeEvent,ua=L.createElement,wa=L.discardElement,cb=L.css,ya=L.merge,Ya=L.each,p=L.extend,r=Math.max,aa=document,l=window,R=void 0!==aa.documentElement.ontouchstart,U=L.getOptions();p(U.lang,{downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",exportButtonTitle:"Export to raster or vector image",
printButtonTitle:"Print the chart"});U.navigation={menuStyle:{border:"1px solid #A0A0A0",background:"#FFFFFF"},menuItemStyle:{padding:"0 5px",background:"none",color:"#303030",fontSize:R?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{align:"right",backgroundColor:{linearGradient:[0,0,0,20],stops:[[0.4,"#F7F7F7"],[0.6,"#E3E3E3"]]},borderColor:"#B0B0B0",borderRadius:3,borderWidth:1,height:20,hoverBorderColor:"#909090",hoverSymbolFill:"#81A7CF",hoverSymbolStroke:"#4572A5",
symbolFill:"#E0E0E0",symbolStroke:"#A0A0A0",symbolX:11.5,symbolY:10.5,verticalAlign:"top",width:24,y:10}};U.exporting={type:"image/png",url:"http://export.highcharts.com/",width:800,buttons:{exportButton:{symbol:"exportIcon",x:-10,symbolFill:"#A8BF77",hoverSymbolFill:"#768F3E",_id:"exportButton",_titleKey:"exportButtonTitle",menuItems:[{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",
onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]},printButton:{symbol:"printIcon",x:-36,symbolFill:"#B5C9DF",hoverSymbolFill:"#779ABF",_id:"printButton",_titleKey:"printButtonTitle",onclick:function(){this.print()}}}};p(F.prototype,{getSVG:function(i){var l=this,w,A,r,C=ya(l.options,i);if(!aa.createElementNS)aa.createElementNS=function(i,l){var p=aa.createElement(l);p.getBBox=function(){return L.Renderer.prototype.Element.prototype.getBBox.apply({element:p})};
return p};i=ua("div",null,{position:"absolute",top:"-9999em",width:l.chartWidth+"px",height:l.chartHeight+"px"},aa.body);p(C.chart,{renderTo:i,forExport:!0});C.exporting.enabled=!1;C.chart.plotBackgroundImage=null;C.series=[];Ya(l.series,function(i){r=ya(i.options,{animation:!1,showCheckbox:!1,visible:i.visible});if(!r.isInternal){if(r&&r.marker&&/^url\(/.test(r.marker.symbol))r.marker.symbol="circle";C.series.push(r)}});w=new Highcharts.Chart(C);Ya(["xAxis","yAxis"],function(i){Ya(l[i],function(l,
p){var I=w[i][p],A=l.getExtremes(),r=A.userMin,A=A.userMax;(void 0!==r||void 0!==A)&&I.setExtremes(r,A,!0,!1)})});A=w.container.innerHTML;C=null;w.destroy();wa(i);A=A.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/isTracker="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/&nbsp;/g,"\u00a0").replace(/&shy;/g,"\u00ad").replace(/id=([^" >]+)/g,'id="$1"').replace(/class=([^" ]+)/g,'class="$1"').replace(/ transform /g,
" ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(i){return i.toLowerCase()});A=A.replace(/(url\(#highcharts-[0-9]+)&quot;/g,"$1").replace(/&quot;/g,"'");2===A.match(/ xmlns="/g).length&&(A=A.replace(/xmlns="[^"]+"/,""));return A},exportChart:function(i,l){var p,A=this.getSVG(ya(this.options.exporting.chartOptions,l)),i=ya(this.options.exporting,i);p=ua("form",{method:"post",action:i.url},{display:"none"},aa.body);Ya(["filename","type","width","svg"],function(l){ua("input",{type:"hidden",
name:l,value:{filename:i.filename||"chart",type:i.type,width:i.width,svg:A}[l]},null,p)});p.submit();wa(p)},print:function(){var i=this,p=i.container,w=[],A=p.parentNode,r=aa.body,C=r.childNodes;if(!i.isPrinting)i.isPrinting=!0,Ya(C,function(i,l){if(1===i.nodeType)w[l]=i.style.display,i.style.display="none"}),r.appendChild(p),l.print(),setTimeout(function(){A.appendChild(p);Ya(C,function(i,l){if(1===i.nodeType)i.style.display=w[l]});i.isPrinting=!1},1E3)},contextMenu:function(i,l,w,A,C,F){var X=this,
L=X.options.navigation,U=L.menuItemStyle,aa=X.chartWidth,fa=X.chartHeight,ya="cache-"+i,db=X[ya],eb=r(C,F),ha,wa;if(!db)X[ya]=db=ua("div",{className:"highcharts-"+i},{position:"absolute",zIndex:1E3,padding:eb+"px"},X.container),ha=ua("div",null,p({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},L.menuStyle),db),wa=function(){cb(db,{display:"none"})},Sa(db,"mouseleave",wa),Ya(l,function(i){if(i){var l=ua("div",{onmouseover:function(){cb(this,L.menuItemHoverStyle)},
onmouseout:function(){cb(this,U)},innerHTML:i.text||X.options.lang[i.textKey]},p({cursor:"pointer"},U),ha);l[R?"ontouchstart":"onclick"]=function(){wa();i.onclick.apply(X,arguments)};X.exportDivElements.push(l)}}),X.exportDivElements.push(ha,db),X.exportMenuWidth=db.offsetWidth,X.exportMenuHeight=db.offsetHeight;i={display:"block"};w+X.exportMenuWidth>aa?i.right=aa-w-C-eb+"px":i.left=w-eb+"px";A+F+X.exportMenuHeight>fa?i.bottom=fa-A-eb+"px":i.top=A+F-eb+"px";cb(db,i)},addButton:function(i){function l(){aa.attr(wa);
U.attr(ua)}var w=this,A=w.renderer,r=ya(w.options.navigation.buttonOptions,i),C=r.onclick,F=r.menuItems,L=r.width,R=r.height,U,aa,fa,i=r.borderWidth,ua={stroke:r.borderColor},wa={stroke:r.symbolStroke,fill:r.symbolFill},ha=r.symbolSize||12;if(!w.exportDivElements)w.exportDivElements=[],w.exportSVGElements=[];!1!==r.enabled&&(U=A.rect(0,0,L,R,r.borderRadius,i).align(r,!0).attr(p({fill:r.backgroundColor,"stroke-width":i,zIndex:19},ua)).add(),fa=A.rect(0,0,L,R,0).align(r).attr({id:r._id,fill:"rgba(255, 255, 255, 0.001)",
title:w.options.lang[r._titleKey],zIndex:21}).css({cursor:"pointer"}).on("mouseover",function(){aa.attr({stroke:r.hoverSymbolStroke,fill:r.hoverSymbolFill});U.attr({stroke:r.hoverBorderColor})}).on("mouseout",l).on("click",l).add(),F&&(C=function(){l();var i=fa.getBBox();w.contextMenu("export-menu",F,i.x,i.y,L,R)}),fa.on("click",function(){C.apply(w,arguments)}),aa=A.symbol(r.symbol,r.symbolX-ha/2,r.symbolY-ha/2,ha,ha).align(r,!0).attr(p(wa,{"stroke-width":r.symbolStrokeWidth||1,zIndex:20})).add(),
w.exportSVGElements.push(U,fa,aa))},destroyExport:function(){var i,l;for(i=0;i<this.exportSVGElements.length;i++)l=this.exportSVGElements[i],l.onclick=l.ontouchstart=null,this.exportSVGElements[i]=l.destroy();for(i=0;i<this.exportDivElements.length;i++)l=this.exportDivElements[i],fa(l,"mouseleave"),this.exportDivElements[i]=l.onmouseout=l.onmouseover=l.ontouchstart=l.onclick=null,wa(l)}});L.Renderer.prototype.symbols.exportIcon=function(i,l,p,r){return C(["M",i,l+p,"L",i+p,l+r,i+p,l+0.8*r,i,l+0.8*
r,"Z","M",i+0.5*p,l+0.8*r,"L",i+0.8*p,l+0.4*r,i+0.4*p,l+0.4*r,i+0.4*p,l,i+0.6*p,l,i+0.6*p,l+0.4*r,i+0.2*p,l+0.4*r,"Z"])};L.Renderer.prototype.symbols.printIcon=function(i,l,p,r){return C(["M",i,l+0.7*r,"L",i+p,l+0.7*r,i+p,l+0.4*r,i,l+0.4*r,"Z","M",i+0.2*p,l+0.4*r,"L",i+0.2*p,l,i+0.8*p,l,i+0.8*p,l+0.4*r,"Z","M",i+0.2*p,l+0.7*r,"L",i,l+r,i+p,l+r,i+0.8*p,l+0.7*r,"Z"])};F.prototype.callbacks.push(function(i){var l,p=i.options.exporting,r=p.buttons;if(!1!==p.enabled){for(l in r)i.addButton(r[l]);Sa(i,
"destroy",i.destroyExport)}})})();
