(function(){function e(e,t){var n;e||(e={});for(n in t)e[n]=t[n];return e}function t(e,t){return parseInt(e,t||10)}function n(e){return"string"==typeof e}function i(e){return"object"==typeof e}function r(e){return"number"==typeof e}function o(e,t){for(var n=e.length;n--;)if(e[n]===t){e.splice(n,1);break}}function a(e){return e!==E&&null!==e}function s(e,t,r){var o,s;if(n(t))a(r)?e.setAttribute(t,r):e&&e.getAttribute&&(s=e.getAttribute(t));else if(a(t)&&i(t))for(o in t)e.setAttribute(o,t[o]);return s}function l(e){return e&&e.constructor===Array||(e=[e]),e}function c(){var e,t,n=arguments,i=n.length;for(e=0;i>e;e++)if(t=n[e],t!==void 0&&null!==t)return t}function u(t,n){Q&&n&&n.opacity!==E&&(n.filter="alpha(opacity="+100*n.opacity+")"),e(t.style,n)}function d(t,n,i,r,o){return t=j.createElement(t),n&&e(t,n),o&&u(t,{padding:0,border:gt,margin:0}),i&&u(t,i),r&&r.appendChild(t),t}function p(t,n){var i=function(){};return i.prototype=new t,e(i.prototype,n),i}function h(e,n,i,r){var o=k.lang;e=e;var a=isNaN(n=V(n))?2:n;n=void 0===i?o.decimalPoint:i,r=void 0===r?o.thousandsSep:r,o=0>e?"-":"",i=t(e=V(+e||0).toFixed(a))+"";var s=i.length>3?i.length%3:0;return o+(s?i.substr(0,s)+r:"")+i.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+r)+(a?n+V(e-i).toFixed(a).slice(2):"")}function f(){this.symbol=this.color=0}function g(e,t){C=c(e,t.animation)}function m(){var e=k.global.useUTC;S=e?Date.UTC:function(e,t,n,i,r,o){return new Date(e,t,c(n,1),c(i,0),c(r,0),c(o,0)).getTime()},A=e?"getUTCMinutes":"getMinutes",D=e?"getUTCHours":"getHours",I=e?"getUTCDay":"getDay",R=e?"getUTCDate":"getDate",O=e?"getUTCMonth":"getMonth",L=e?"getUTCFullYear":"getFullYear",F=e?"setUTCMinutes":"setMinutes",N=e?"setUTCHours":"setHours",P=e?"setUTCDate":"setDate",B=e?"setUTCMonth":"setMonth",M=e?"setUTCFullYear":"setFullYear"}function b(e){x||(x=d(lt)),e&&x.appendChild(e),x.innerHTML=""}function v(){}function y(r,p){function m(n,i){function r(e,t){this.pos=e,this.minor=t,this.isNew=!0,t||this.addLabel()}function s(e){return e&&(this.options=e,this.id=e.id),this}function l(e,t,n){this.isNegative=t,this.options=e,this.x=n,this.alignOptions={align:e.align||(Sn?t?"left":"right":"center"),verticalAlign:e.verticalAlign||(Sn?"middle":t?"bottom":"top"),y:c(e.y,Sn?4:t?14:-6),x:c(e.x,Sn?t?-6:6:0)},this.textAlign=e.textAlign||(Sn?t?"right":"left":"center")}function u(){var e,t=[],n=[];et=tt=null,nt=[],wt(Zn,function(r){if(e=!1,wt(["xAxis","yAxis"],function(t){r.isCartesian&&("xAxis"===t&&y||"yAxis"===t&&!y)&&(r.options[t]===i.index||r.options[t]===E&&0===i.index)&&(r[t]=pt,nt.push(r),e=!0)}),!r.visible&&kt.ignoreHiddenSeries&&(e=!1),e){var o,s,u,d,p;y||(o=r.options.stacking,ut="percent"===o,o&&(d=r.type+c(r.options.stack,""),p="-"+d,r.stackKey=d,s=t[d]||[],t[d]=s,u=n[p]||[],n[p]=u),ut&&(et=0,tt=99)),r.isCartesian&&(wt(r.data,function(e){var t=e.x,n=e.y,r=0>n,h=r?u:s,f=r?p:d;null===et&&(et=tt=e[xt]),y?t>tt?tt=t:et>t&&(et=t):a(n)&&(o&&(h[t]=a(h[t])?h[t]+n:n),n=h?h[t]:n,e=c(e.low,n),ut||(n>tt?tt=n:et>e&&(et=e)),o&&(T[f]||(T[f]={}),T[f][t]||(T[f][t]=new l(i.stackLabels,r,t)),T[f][t].setTotal(n)))}),/(area|column|bar)/.test(r.type)&&!y&&(et>=0?(et=0,lt=!0):0>tt&&(tt=0,ct=!0)))}})}function d(e,t){var n,r;for(Ht=t?1:$.pow(10,K($.log(e)/$.LN10)),n=e/Ht,t||(t=[1,2,2.5,5,10],(i.allowDecimals===!1||yt)&&(1===Ht?t=[1,2,5,10]:.1>=Ht&&(t=[1/Ht]))),r=0;t.length>r&&(e=t[r],!((t[r]+(t[r+1]||t[r]))/2>=n));r++);return e*=Ht}function p(e){var t;return t=e,Ht=c(Ht,$.pow(10,K($.log(Ft)/$.LN10))),1>Ht&&(t=10*H(1/Ht),t=H(e*t)/t),t}function f(){var e,t,r,o,s=i.tickInterval,l=i.tickPixelInterval;if(e=i.maxZoom||(!y||a(i.min)||a(i.max)?null:U(5*n.smallestInterval,tt-et)),j=x?vn:bn,Ot?(r=n[y?"xAxis":"yAxis"][i.linkedTo],o=r.getExtremes(),At=c(o.min,o.dataMin),Tt=c(o.max,o.dataMax)):(At=c(it,i.min,et),Tt=c(rt,i.max,tt)),yt&&(At=$.log(At)/$.LN10,Tt=$.log(Tt)/$.LN10),e>Tt-At&&(o=(e-Tt+At)/2,At=q(At-o,c(i.min,At-o),et),Tt=U(At+e,c(i.max,At+e),tt)),ln||ut||Ot||!a(At)||!a(Tt)||(e=Tt-At||1,a(i.min)||a(it)||!It||!(0>et)&<||(At-=e*It),a(i.max)||a(rt)||!Rt||!(tt>0)&&ct||(Tt+=e*Rt)),Ft=At===Tt?1:Ot&&!s&&l===r.options.tickPixelInterval?r.tickInterval:c(s,ln?1:(Tt-At)*l/j),vt||a(i.tickInterval)||(Ft=d(Ft)),pt.tickInterval=Ft,Nt="auto"===i.minorTickInterval&&Ft?Ft/5:i.minorTickInterval,vt){Wt=[],s=k.global.useUTC;var u=1e3/st,h=6e4/st,f=36e5/st;l=864e5/st,e=6048e5/st,o=2592e6/st;var g=31556952e3/st,m=[["second",u,[1,2,5,10,15,30]],["minute",h,[1,2,5,10,15,30]],["hour",f,[1,2,3,4,6,8,12]],["day",l,[1,2]],["week",e,[1,2]],["month",o,[1,2,3,4,6]],["year",g,null]],b=m[6],v=b[1],_=b[2];for(r=0;m.length>r&&(b=m[r],v=b[1],_=b[2],!(m[r+1]&&(v*_[_.length-1]+m[r+1][1])/2>=Ft));r++);for(v===g&&5*v>Ft&&(_=[1,2,5]),m=d(Ft/v,_),_=new Date(At*st),_.setMilliseconds(0),v>=u&&_.setSeconds(v>=h?0:m*K(_.getSeconds()/m)),v>=h&&_[F](v>=f?0:m*K(_[A]()/m)),v>=f&&_[N](v>=l?0:m*K(_[D]()/m)),v>=l&&_[P](v>=o?1:m*K(_[R]()/m)),v>=o&&(_[B](v>=g?0:m*K(_[O]()/m)),t=_[L]()),v>=g&&(t-=t%m,_[M](t)),v===e&&_[P](_[R]()-_[I]()+i.startOfWeek),r=1,t=_[L](),u=_.getTime()/st,h=_[O](),f=_[R]();Tt>u&&vn>r;)Wt.push(u),v===g?u=S(t+r*m,0)/st:v===o?u=S(t,h+r*m)/st:s||v!==l&&v!==e?u+=v*m:u=S(t,h,f+r*m*(v===l?1:7)),r++;Wt.push(u),Zt=i.dateTimeLabelFormats[b[0]]}else for(r=p(K(At/Ft)*Ft),t=p(W(Tt/Ft)*Ft),Wt=[],r=p(r);t>=r;)Wt.push(r),r=p(r+Ft);Ot||((ln||y&&n.hasColumn)&&(t=.5*(ln?1:Ft),(ln||!a(c(i.min,it)))&&(At-=t),(ln||!a(c(i.max,rt)))&&(Tt+=t)),t=Wt[0],r=Wt[Wt.length-1],i.startOnTick?At=t:At>t&&Wt.shift(),i.endOnTick?Tt=r:r>Tt&&Wt.pop(),En||(En={x:0,y:0}),!vt&&Wt.length>En[xt]&&(En[xt]=Wt.length))}function g(){var e,t;if(ot=At,at=Tt,u(),f(),G=z,z=j/(Tt-At||1),!y)for(e in T)for(t in T[e])T[e][t].cum=T[e][t].total;pt.isDirty||(pt.isDirty=At!==ot||Tt!==at)}function m(e){return e=new s(e).render(),Qt.push(e),e}function b(){var e,o,l=i.title,c=i.stackLabels,u=i.alternateGridColor,d=i.lineWidth,p=n.hasRendered,h=p&&a(ot)&&!isNaN(ot);if(e=nt.length&&a(At)&&a(Tt),j=x?vn:bn,z=j/(Tt-At||1),Ct=x?Vt:Ut,e||Ot){if(Nt&&!ln)for(e=At+(Wt[0]-At)%Nt;Tt>=e;e+=Nt)an[e]||(an[e]=new r(e,!0)),h&&an[e].isNew&&an[e].render(null,!0),an[e].isActive=!0,an[e].render();wt(Wt,function(e,t){(!Ot||e>=At&&Tt>=e)&&(h&&en[e].isNew&&en[e].render(t,!0),en[e].isActive=!0,en[e].render(t))}),u&&wt(Wt,function(e,t){0===t%2&&Tt>e&&(sn[e]||(sn[e]=new s),sn[e].options={from:e,to:Wt[t+1]!==E?Wt[t+1]:Tt,color:u},sn[e].render(),sn[e].isActive=!0)}),p||wt((i.plotLines||[]).concat(i.plotBands||[]),function(e){Qt.push(new s(e).render())})}if(wt([en,an,sn],function(e){for(var t in e)e[t].isActive?e[t].isActive=!1:(e[t].destroy(),delete e[t])}),d&&(e=Vt+(_?vn:0)+_t,o=nn-Ut-(_?bn:0)+_t,e=An.crispLine([mt,x?Vt:e,x?o:Kt,bt,x?tn-qt:e,x?o:nn-Ut],d),Q?Q.animate({d:e}):Q=An.path(e).attr({stroke:i.lineColor,"stroke-width":d,zIndex:7}).add()),pt.axisTitle&&(e=x?Vt:Kt,d=t(l.style.fontSize||12),e={low:e+(x?0:j),middle:e+j/2,high:e+(x?j:0)}[l.align],d=(x?Kt+bn:Vt)+(x?1:-1)*(_?-1:1)*Jt+(2===C?d:0),pt.axisTitle[p?"animate":"attr"]({x:x?e:d+(_?vn:0)+_t+(l.x||0),y:x?d-(_?bn:0)+_t:e+(l.y||0)})),c&&c.enabled){var f,g;c=pt.stackTotalGroup,c||(pt.stackTotalGroup=c=An.g("stack-labels").attr({visibility:ht,zIndex:6}).translate(Vt,Kt).add());for(f in T){l=T[f];for(g in l)l[g].render(c)}}pt.isDirty=!1}function v(e){for(var t=Qt.length;t--;)Qt[t].id===e&&Qt[t].destroy()}var y=i.isX,_=i.opposite,x=Sn?!y:y,C=x?_?0:2:_?1:3,T={};i=Et(y?Pt:Bt,[$t,jt,zt,Mt][C],i);var j,z,G,X,Y,J,Z,Q,et,tt,nt,it,rt,ot,at,lt,ct,ut,pt=this,gt=i.type,vt="datetime"===gt,yt="logarithmic"===gt,_t=i.offset||0,xt=y?"x":"y",Ct=x?Vt:Ut,Tt=null,At=null,It=i.minPadding,Rt=i.maxPadding,Ot=a(i.linkedTo);gt=i.events;var Lt,Ft,Nt,Ht,Wt,Xt,Yt,Jt,Zt,Qt=[],en={},an={},sn={},ln=i.categories,cn=i.labels.formatter||function(){var e=this.value;return Zt?w(Zt,e):0===Ft%1e6?e/1e6+"M":0===Ft%1e3?e/1e3+"k":!ln&&e>=1e3?h(e,0):e},un=x&&i.labels.staggerLines,dn=i.reversed,pn=ln&&"between"===i.tickmarkPlacement?.5:0;r.prototype={addLabel:function(){var t=this.pos,n=i.labels,r=!(t===At&&!c(i.showFirstLabel,1)||t===Tt&&!c(i.showLastLabel,0)),o=ln&&x&&ln.length&&!n.step&&!n.staggerLines&&!n.rotation&&vn/ln.length||!x&&vn/2,s=this.label;t=cn.call({isFirst:t===Wt[0],isLast:t===Wt[Wt.length-1],dateTimeLabelFormat:Zt,value:ln&&ln[t]?ln[t]:t}),o=o&&{width:q(1,H(o-2*(n.padding||10)))+ft},o=e(o,n.style),s===E?this.label=a(t)&&r&&n.enabled?An.text(t,0,0).attr({align:n.align,rotation:n.rotation}).css(o).add(J):null:s&&s.attr({text:t}).css(o)},getLabelSize:function(){var e=this.label;return e?(this.labelBBox=e.getBBox())[x?"height":"width"]:0},render:function(e,n){var r=!this.minor,o=this.label,s=this.pos,l=i.labels,c=this.gridLine,u=r?i.gridLineWidth:i.minorGridLineWidth,d=r?i.gridLineColor:i.minorGridLineColor,p=r?i.gridLineDashStyle:i.minorGridLineDashStyle,h=this.mark,f=r?i.tickLength:i.minorTickLength,g=r?i.tickWidth:i.minorTickWidth||0,m=r?i.tickColor:i.minorTickColor,b=r?i.tickPosition:i.minorTickPosition;r=l.step;var v,y=n&&on||nn;v=x?X(s+pn,null,null,n)+Ct:Vt+_t+(_?(n&&rn||tn)-qt-Vt:0),y=x?y-Ut+_t-(_?bn:0):y-X(s+pn,null,null,n)-Ct,u&&(s=Y(s+pn,u,n),c===E&&(c={stroke:d,"stroke-width":u},p&&(c.dashstyle=p),this.gridLine=c=u?An.path(s).attr(c).add(Z):null),c&&s&&c.animate({d:s})),g&&("inside"===b&&(f=-f),_&&(f=-f),u=An.crispLine([mt,v,y,bt,v+(x?0:-f),y+(x?f:0)],g),h?h.animate({d:u}):this.mark=An.path(u).attr({stroke:m,"stroke-width":g}).add(J)),o&&!isNaN(v)&&(v=v+l.x-(pn&&x?pn*z*(dn?-1:1):0),y=y+l.y-(pn&&!x?pn*z*(dn?1:-1):0),a(l.y)||(y+=.9*t(o.styles.lineHeight)-o.getBBox().height/2),un&&(y+=16*(e/(r||1)%un)),r&&o[e%r?"hide":"show"](),o[this.isNew?"attr":"animate"]({x:v,y:y})),this.isNew=!1},destroy:function(){for(var e in this)this[e]&&this[e].destroy&&this[e].destroy()}},s.prototype={render:function(){var e,t,n,i=this,r=i.options,o=r.label,s=i.label,l=r.width,u=r.to,d=r.from,p=r.dashStyle,h=i.svgElem,f=[],g=r.color;n=r.zIndex;var m=r.events;if(l)f=Y(r.value,l),r={stroke:g,"stroke-width":l},p&&(r.dashstyle=p);else{if(!a(d)||!a(u))return;d=q(d,At),u=U(u,Tt),e=Y(u),(f=Y(d))&&e?f.push(e[4],e[5],e[1],e[2]):f=null,r={fill:g}}if(a(n)&&(r.zIndex=n),h)f?h.animate({d:f},null,h.onGetPath):(h.hide(),h.onGetPath=function(){h.show()});else if(f&&f.length&&(i.svgElem=h=An.path(f).attr(r).add(),m)){p=function(e){h.on(e,function(t){m[e].apply(i,[t])})};for(t in m)p(t)}return o&&a(o.text)&&f&&f.length&&vn>0&&bn>0?(o=Et({align:x&&e&&"center",x:x?!e&&4:10,verticalAlign:!x&&e&&"middle",y:x?e?16:10:e?6:-4,rotation:x&&!e&&90},o),s||(i.label=s=An.text(o.text,0,0).attr({align:o.textAlign||o.align,rotation:o.rotation,zIndex:n}).css(o.style).add()),e=[f[1],f[4],c(f[6],f[1])],f=[f[2],f[5],c(f[7],f[2])],t=U.apply($,e),n=U.apply($,f),s.align(o,!1,{x:t,y:n,width:q.apply($,e)-t,height:q.apply($,f)-n}),s.show()):s&&s.hide(),i},destroy:function(){for(var e in this)this[e]&&this[e].destroy&&this[e].destroy(),delete this[e];o(Qt,this)}},l.prototype={setTotal:function(e){this.cum=this.total=e},render:function(e){var t=this.options.formatter.call(this);this.label?this.label.attr({text:t,visibility:dt}):this.label=n.renderer.text(t,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:dt}).add(e)},setOffset:function(e,t){var i=this.isNegative,r=pt.translate(this.total),o=pt.translate(0);o=V(r-o);var a=n.xAxis[0].translate(this.x)+e,s=n.plotHeight;i={x:Sn?i?r:r-o:a,y:Sn?s-a-t:i?s-r-o:s-r,width:Sn?o:t,height:Sn?t:o},this.label&&this.label.align(this.alignOptions,null,i).attr({visibility:ht})}},X=function(e,t,n,i,r){var o=1,a=0,s=i?G:z;return i=i?ot:At,s||(s=z),n&&(o*=-1,a=j),dn&&(o*=-1,a-=o*j),t?(dn&&(e=j-e),e=e/s+i,yt&&r&&(e=$.pow(10,e))):(yt&&r&&(e=$.log(e)/$.LN10),e=o*(e-i)*s+a),e},Y=function(e,t,n){var i,r,o;e=X(e,null,null,n);var a,s=n&&on||nn,l=n&&rn||tn;return n=r=H(e+Ct),i=o=H(s-e-Ct),isNaN(e)?a=!0:x?(i=Kt,o=s-Ut,(Vt>n||n>Vt+vn)&&(a=!0)):(n=Vt,r=l-qt,(Kt>i||i>Kt+bn)&&(a=!0)),a?null:An.crispLine([mt,n,i,bt,r,o],t||0)},Sn&&y&&dn===E&&(dn=!0),e(pt,{addPlotBand:m,addPlotLine:m,adjustTickAmount:function(){if(En&&!vt&&!ln&&!Ot){var e=Xt,t=Wt.length;if(Xt=En[xt],Xt>t){for(;Xt>Wt.length;)Wt.push(p(Wt[Wt.length-1]+Ft));z*=(t-1)/(Xt-1),Tt=Wt[Wt.length-1]}a(e)&&Xt!==e&&(pt.isDirty=!0)}},categories:ln,getExtremes:function(){return{min:At,max:Tt,dataMin:et,dataMax:tt,userMin:it,userMax:rt}},getPlotLinePath:Y,getThreshold:function(e){return At>e?e=At:e>Tt&&(e=Tt),X(e,0,1)},isXAxis:y,options:i,plotLinesAndBands:Qt,getOffset:function(){var e,t=nt.length&&a(At)&&a(Tt),n=0,o=0,s=i.title,l=i.labels,u=[-1,1,1,-1][C];if(J||(J=An.g("axis").attr({zIndex:7}).add(),Z=An.g("grid").attr({zIndex:1}).add()),Yt=0,t||Ot)wt(Wt,function(e){en[e]?en[e].addLabel():en[e]=new r(e),(0===C||2===C||{1:"left",3:"right"}[C]===l.align)&&(Yt=q(en[e].getLabelSize(),Yt))}),un&&(Yt+=16*(un-1));else for(e in en)en[e].destroy(),delete en[e];s&&s.text&&(pt.axisTitle||(pt.axisTitle=An.text(s.text,0,0).attr({zIndex:7,rotation:s.rotation||0,align:s.textAlign||{low:"left",middle:"center",high:"right"}[s.align]}).css(s.style).add()),n=pt.axisTitle.getBBox()[x?"height":"width"],o=c(s.margin,x?5:10)),_t=u*(i.offset||Gt[C]),Jt=Yt+(2!==C&&Yt&&u*i.labels[x?"y":"x"])+o,Gt[C]=q(Gt[C],Jt+n+u*_t)},render:b,setCategories:function(e,t){pt.categories=ln=e,wt(nt,function(e){e.translate(),e.setTooltipPoints(!0)}),pt.isDirty=!0,c(t,!0)&&n.redraw()},setExtremes:function(e,t,i,r){i=c(i,!0),Dt(pt,"setExtremes",{min:e,max:t},function(){it=e,rt=t,i&&n.redraw(r)})},setScale:g,setTickPositions:f,translate:X,redraw:function(){yn.resetTracker&&yn.resetTracker(),b(),wt(Qt,function(e){e.render()}),wt(nt,function(e){e.isDirty=!0})},removePlotBand:v,removePlotLine:v,reversed:dn,stacks:T});for(Lt in gt)St(pt,Lt,gt[Lt]);g()}function v(){var e={};return{add:function(t,n,i,o){e[t]||(n=An.text(n,0,0).css(r.toolbar.itemStyle).align({align:"right",x:-qt-20,y:Kt+30}).on("click",o).attr({align:"right",zIndex:20}).add(),e[t]=n)},remove:function(t){b(e[t].element),e[t]=null}}}function y(e){function i(){var e=this.points||l(this),t=e[0].series.xAxis,i=this.x;t=t&&"datetime"===t.options.type;var r,o=n(i)||t;return r=o?[''+(t?w("%A, %b %e, %Y",i):i)+""]:[],wt(e,function(e){r.push(e.point.tooltipFormatter(o))}),r.join("
")}function r(e,t){v=b?e:(2*v+e)/3,y=b?t:(y+t)/2,_.translate(v,y),Dn=V(e-v)>1||V(t-y)>1?function(){r(e,t)}:null}function o(){if(!b){var e=Vn.hoverPoints;_.hide(),wt(p,function(e){e&&e.hide()}),e&&wt(e,function(e){e.setState()}),Vn.hoverPoints=null,b=!0}}var a,s,c,u=e.borderWidth,d=e.crosshairs,p=[],h=e.style,f=e.shared,g=t(h.padding),m=u+g,b=!0,v=0,y=0;h.padding=0;var _=An.g("tooltip").attr({zIndex:8}).add(),x=An.rect(m,m,0,0,e.borderRadius,u).attr({fill:e.backgroundColor,"stroke-width":u}).add(_).shadow(e.shadow),k=An.text("",g+m,t(h.fontSize)+g+m).attr({zIndex:1}).css(h).add(_);return _.hide(),{shared:f,refresh:function(t){var n,u,h,v=0,y={},w=[];if(h=t.tooltipPos,n=e.formatter||i,y=Vn.hoverPoints,f?(y&&wt(y,function(e){e.setState()}),Vn.hoverPoints=t,wt(t,function(e){e.setState(_t),v+=e.plotY,w.push(e.getLabelConfig())}),u=t[0].plotX,v=H(v)/t.length,y={x:t[0].category},y.points=w,t=t[0]):y=t.getLabelConfig(),y=n.call(y),a=t.series,u=f?u:t.plotX,v=f?v:t.plotY,n=H(h?h[0]:Sn?vn-v:u),u=H(h?h[1]:Sn?bn-u:v),h=f||!t.series.isCartesian||dn(n,u),y!==!1&&h?(b&&(_.show(),b=!1),k.attr({text:y}),h=k.getBBox(),s=h.width+2*g,c=h.height+2*g,x.attr({width:s,height:c,stroke:e.borderColor||t.color||a.color||"#606060"}),h=n-s+Vt-25,u=u-c+Kt+10,7>h&&(h=Vt+n+15),5>u?u=5:u+c>nn&&(u=nn-c-5),r(H(h-m),H(u-m))):o(),d)for(d=l(d),n=d.length;n--;)u=t.series[n?"yAxis":"xAxis"],d[n]&&u&&(u=u.getPlotLinePath(t[n?"y":"x"],1),p[n]?p[n].attr({d:u,visibility:ht}):(h={"stroke-width":d[n].width||1,stroke:d[n].color||"#C0C0C0",zIndex:2},d[n].dashStyle&&(h.dashstyle=d[n].dashStyle),p[n]=An.path(u).attr(h).add()))},hide:o}}function x(t,n){function i(t){var n,i,r,o,a=tt&&j.width/j.documentElement.clientWidth-1;if(t=t||z.event,t.target||(t.target=t.srcElement),n=t.touches?t.touches.item(0):t,"mousemove"!==t.type||z.opera||a){for(i=Jt,r={left:i.offsetLeft,top:i.offsetTop},i=i.offsetParent;i;)r.left+=i.offsetLeft,r.top+=i.offsetTop,i!==j.body&&i!==j.documentElement&&(r.left-=i.scrollLeft,r.top-=i.scrollTop),i=i.offsetParent;Tn=r,i=Tn.left,r=Tn.top}return Q?(o=t.x,n=t.y):n.layerX===E?(o=n.pageX-i,n=n.pageY-r):(o=t.layerX,n=t.layerY),a&&(o+=H((a+1)*i-i),n+=H((a+1)*r-r)),e(t,{chartX:o,chartY:n})}function r(e){var t={xAxis:[],yAxis:[]};return wt(Jn,function(n){var i=n.translate,r=n.isXAxis;t[r?"xAxis":"yAxis"].push({axis:n,value:i((Sn?!r:r)?e.chartX-Vt:bn-e.chartY+Kt,!0)})}),t}function o(){var e=t.hoverSeries,n=t.hoverPoint;n&&n.onMouseOut(),e&&e.onMouseOut(),pn&&pn.hide(),Rn=null}function a(){if(d){var e={xAxis:[],yAxis:[]},n=d.getBBox(),i=n.x-Vt,r=n.y-Kt;u&&(wt(Jn,function(t){var o=t.translate,a=t.isXAxis,s=Sn?!a:a,l=o(s?i:bn-r-n.height,!0,0,0,1);o=o(s?i+n.width:bn-r,!0,0,0,1),e[a?"xAxis":"yAxis"].push({axis:t,min:U(l,o),max:q(l,o)})}),Dt(t,"selection",e,Bn)),d=d.destroy()}t.mouseIsDown=hn=u=!1,At(j,rt?"touchend":"mouseup",a)}var l,c,u,d,p=kt.zoomType,h=/x/.test(p),f=/y/.test(p),g=h&&!Sn||f&&Sn,m=f&&!Sn||h&&Sn;xn=function(){_n?(_n.translate(Vt,Kt),Sn&&_n.attr({width:t.plotWidth,height:t.plotHeight}).invert()):t.trackerGroup=_n=An.g("tracker").attr({zIndex:9}).add()},xn(),n.enabled&&(t.tooltip=pn=y(n)),function(){var p=!0;Jt.onmousedown=function(e){e=i(e),!rt&&e.preventDefault&&e.preventDefault(),t.mouseIsDown=hn=!0,l=e.chartX,c=e.chartY,St(j,rt?"touchend":"mouseup",a)};var b=function(e){if(!(e&&e.touches&&e.touches.length>1)){e=i(e),rt||(e.returnValue=!1);var r=e.chartX,a=e.chartY,b=!dn(r-Vt,a-Kt);if(rt&&"touchstart"===e.type&&(s(e.target,"isTracker")?t.runTrackerClick||e.preventDefault():!Gn&&!b&&e.preventDefault()),b&&(p||o(),Vt>r?r=Vt:r>Vt+vn&&(r=Vt+vn),Kt>a?a=Kt:a>Kt+bn&&(a=Kt+bn)),hn&&"touchstart"!==e.type)u=Math.sqrt(Math.pow(l-r,2)+Math.pow(c-a,2)),u>10&&(Xn&&(h||f)&&dn(l-Vt,c-Kt)&&(d||(d=An.rect(Vt,Kt,g?1:vn,m?1:bn,0).attr({fill:"rgba(69,114,167,0.25)",zIndex:7}).add())),d&&g&&(r-=l,d.attr({width:V(r),x:(r>0?0:r)+l})),d&&m&&(a-=c,d.attr({height:V(a),y:(a>0?0:a)+c})));else if(!b){var v;a=t.hoverPoint,r=t.hoverSeries;var y,_,x=tn,k=Sn?e.chartY:e.chartX-Vt;if(pn&&n.shared){for(v=[],y=Zn.length,_=0;y>_;_++)Zn[_].visible&&Zn[_].tooltipPoints.length&&(e=Zn[_].tooltipPoints[k],e._dist=V(k-e.plotX),x=U(x,e._dist),v.push(e));for(y=v.length;y--;)v[y]._dist>x&&v.splice(y,1);v.length&&v[0].plotX!==Rn&&(pn.refresh(v),Rn=v[0].plotX)}r&&r.tracker&&(e=r.tooltipPoints[k])&&e!==a&&e.onMouseOver()}return(p=b)||!Xn}};Jt.onmousemove=b,St(Jt,"mouseleave",o),Jt.ontouchstart=function(e){(h||f)&&Jt.onmousedown(e),b(e)},Jt.ontouchmove=b,Jt.ontouchend=function(){u&&o()},Jt.onclick=function(n){var o=t.hoverPoint;if(n=i(n),n.cancelBubble=!0,!u)if(o&&s(n.target,"isTracker")){var a=o.plotX,l=o.plotY;e(o,{pageX:Tn.left+Vt+(Sn?vn-l:a),pageY:Tn.top+Kt+(Sn?bn-a:l)}),Dt(o.series,"click",e(n,{point:o})),o.firePointEvent("click",n)}else e(n,r(n)),dn(n.chartX-Vt,n.chartY-Kt)&&Dt(t,"click",n);u=!1}}(),In=setInterval(function(){Dn&&Dn()},32),e(this,{zoomX:h,zoomY:f,resetTracker:o})}function T(e){var t=e.type||kt.type||kt.defaultSeriesType,n=Ot[t],i=Vn.hasRendered;return i&&(Sn&&"column"===t?n=Ot.bar:Sn||"bar"!==t||(n=Ot.column)),t=new n,t.init(Vn,e),!i&&t.inverted&&(Sn=!0),t.isCartesian&&(Xn=t.isCartesian),Zn.push(t),t}function G(){kt.alignTicks!==!1&&wt(Jn,function(e){e.adjustTickAmount()}),En=null}function X(e){var t,n=Vn.isDirtyLegend,i=Vn.isDirtyBox,r=Zn.length,o=r,a=Vn.clipRect;for(g(e,Vn);o--;)if(e=Zn[o],e.isDirty&&e.options.stacking){t=!0;break}if(t)for(o=r;o--;)e=Zn[o],e.options.stacking&&(e.isDirty=!0);wt(Zn,function(e){e.isDirty&&(e.cleanData(),e.getSegments(),"point"===e.options.legendType&&(n=!0))}),n&&kn.renderLegend&&(kn.renderLegend(),Vn.isDirtyLegend=!1),Xn&&(Yn||(En=null,wt(Jn,function(e){e.setScale()})),G(),Ln(),wt(Jn,function(e){(e.isDirty||i)&&(e.redraw(),i=!0)})),i&&(On(),xn(),a&&(Rt(a),a.animate({width:Vn.plotSizeX,height:Vn.plotSizeY}))),wt(Zn,function(e){e.isDirty&&e.visible&&(!e.isCartesian||e.xAxis)&&e.redraw()}),yn&&yn.resetTracker&&yn.resetTracker(),Dt(Vn,"redraw")}function Y(){var e,t=r.xAxis||{},n=r.yAxis||{};t=l(t),wt(t,function(e,t){e.index=t,e.isX=!0}),n=l(n),wt(n,function(e,t){e.index=t}),Jn=t.concat(n),Vn.xAxis=[],Vn.yAxis=[],Jn=Tt(Jn,function(t){return e=new m(Vn,t),Vn[e.isXAxis?"xAxis":"yAxis"].push(e),e}),G()}function J(e,t){Nt=Et(r.title,e),Ht=Et(r.subtitle,t),wt([["title",e,Nt],["subtitle",t,Ht]],function(e){var t=e[0],n=Vn[t],i=e[1];e=e[2],n&&i&&(n.destroy(),n=null),e&&e.text&&!n&&(Vn[t]=An.text(e.text,0,0).attr({align:e.align,"class":"highcharts-"+t,zIndex:1}).css(e.style).add().align(e,!1,Ft))})}function Z(){Xt=kt.renderTo,Zt=pt+at++,n(Xt)&&(Xt=j.getElementById(Xt)),Xt.innerHTML="",Xt.offsetWidth||(Yt=Xt.cloneNode(0),u(Yt,{position:ct,top:"-9999px",display:""}),j.body.appendChild(Yt)),Qt=(Yt||Xt).offsetWidth,en=(Yt||Xt).offsetHeight,Vn.chartWidth=tn=kt.width||Qt||600,Vn.chartHeight=nn=kt.height||(en>19?en:400),Vn.container=Jt=d(lt,{className:"highcharts-container"+(kt.className?" "+kt.className:""),id:Zt},e({position:ut,overflow:dt,width:tn+ft,height:nn+ft,textAlign:"left"},kt.style),Yt||Xt),Vn.renderer=An=kt.forExport?new Wt(Jt,tn,nn,!0):new _(Jt,tn,nn);var i,r;nt&&Jt.getBoundingClientRect&&(i=function(){u(Jt,{left:0,top:0}),r=Jt.getBoundingClientRect(),u(Jt,{left:-(r.left-t(r.left))+ft,top:-(r.top-t(r.top))+ft})},i(),St(z,"resize",i),St(Vn,"destroy",function(){At(z,"resize",i)}))}function et(){function e(){var e=kt.width||Xt.offsetWidth,n=kt.height||Xt.offsetHeight;e&&n&&((e!==Qt||n!==en)&&(clearTimeout(t),t=setTimeout(function(){Pn(e,n,!1)},100)),Qt=e,en=n)}var t;St(z,"resize",e),St(Vn,"destroy",function(){At(z,"resize",e)})}function ot(){var n,i=r.labels,o=r.credits;J(),kn=Vn.legend=new Qn(Vn),Ln(),wt(Jn,function(e){e.setTickPositions(!0)}),G(),Ln(),On(),Xn&&wt(Jn,function(e){e.render()}),Vn.seriesGroup||(Vn.seriesGroup=An.g("series-group").attr({zIndex:3}).add()),wt(Zn,function(e){e.translate(),e.setTooltipPoints(),e.render()}),i.items&&wt(i.items,function(){var n=e(i.style,this.style),r=t(n.left)+Vt,o=t(n.top)+Kt+12;delete n.left,delete n.top,An.text(this.html,r,o).attr({zIndex:2}).css(n).add()}),Vn.toolbar||(Vn.toolbar=v(Vn)),o.enabled&&!Vn.credits&&(n=o.href,An.text(o.text,0,0).on("click",function(){n&&(location.href=n)}).attr({align:o.position.align,zIndex:8}).css(o.style).add().align(o.position)),xn(),Vn.hasRendered=!0,Yt&&(Xt.appendChild(Jt),b(Yt))}function vt(){var e=Zn.length,t=Jt&&Jt.parentNode;for(Dt(Vn,"destroy"),At(z,"unload",vt),At(Vn),wt(Jn,function(e){At(e)});e--;)Zn[e].destroy();Jt&&(Jt.innerHTML="",At(Jt),t&&t.removeChild(Jt),Jt=null),An&&(An.alignedObjects=null),clearInterval(In);for(e in Vn)delete Vn[e]}function xt(){it||z!=z.top||"complete"===j.readyState?(Z(),Fn(),Nn(),wt(r.series||[],function(e){T(e)}),Vn.inverted=Sn=c(Sn,r.chart.inverted),Y(),Vn.render=ot,Vn.tracker=yn=new x(Vn,r.tooltip),ot(),Dt(Vn,"load"),p&&p.apply(Vn,[Vn]),wt(Vn.callbacks,function(e){e.apply(Vn,[Vn])})):j.attachEvent("onreadystatechange",function(){j.detachEvent("onreadystatechange",xt),"complete"===j.readyState&&xt()})}Pt=Et(Pt,k.xAxis),Bt=Et(Bt,k.yAxis),k.xAxis=k.yAxis=null,r=Et(k,r);var kt=r.chart,Lt=kt.margin;Lt=i(Lt)?Lt:[Lt,Lt,Lt,Lt];var Ft,Nt,Ht,Kt,qt,Ut,Vt,Gt,Xt,Yt,Jt,Zt,Qt,en,tn,nn,rn,on,an,sn,ln,cn,un,dn,pn,hn,fn,gn,mn,bn,vn,yn,_n,xn,kn,wn,Cn,Tn,En,Sn,An,Dn,In,Rn,On,Ln,Fn,Nn,Pn,Bn,Mn,jn=c(kt.marginTop,Lt[0]),zn=c(kt.marginRight,Lt[1]),$n=c(kt.marginBottom,Lt[2]),Hn=c(kt.marginLeft,Lt[3]),Kn=kt.spacingTop,Wn=kt.spacingRight,qn=kt.spacingBottom,Un=kt.spacingLeft,Vn=this,Gn=(Lt=kt.events)&&!!Lt.click,Xn=kt.showAxes,Yn=0,Jn=[],Zn=[],Qn=function(n){function i(e,t){var n=e.legendItem,i=e.legendLine,r=e.legendSymbol,o=T.color,a=t?l.itemStyle.color:o,s=t?e.color:o;o=t?e.pointAttr[yt]:{stroke:o,fill:o},n&&n.css({fill:a}),i&&i.attr({stroke:s}),r&&r.attr(o)}function r(e,t,n){var i=e.legendItem,r=e.legendLine,o=e.legendSymbol;e=e.checkbox,i&&i.attr({x:t,y:n}),r&&r.translate(t,n-4),o&&o.attr({x:t+o.xOff,y:n+o.yOff}),e&&(e.x=t,e.y=n)}function o(){wt(c,function(e){var t=e.checkbox,n=m.alignAttr;t&&u(t,{left:n.translateX+e.legendItemWidth+t.x-40+ft,top:n.translateY+t.y-11+ft})})}function a(e){var t,n,o,a,s=e.legendItem;a=e.series||e;var c=a.options,u=c&&c.borderWidth||0;if(!s){if(a=/^(bar|pie|area|column)$/.test(a.type),e.legendItem=s=An.text(l.labelFormatter.call(e),0,0).css(e.visible?w:T).on("mouseover",function(){e.setState(_t),s.css(C)}).on("mouseout",function(){s.css(e.visible?w:T),e.setState()}).on("click",function(){var t=function(){e.setVisible()};e.firePointEvent?e.firePointEvent("legendItemClick",null,t):Dt(e,"legendItemClick",null,t)}).attr({zIndex:2}).add(m),!a&&c&&c.lineWidth){var g={"stroke-width":c.lineWidth,zIndex:2};c.dashStyle&&(g.dashstyle=c.dashStyle),e.legendLine=An.path([mt,-_-x,0,bt,-x,0]).attr(g).add(m)}a?t=An.rect(n=-_-x,o=-11,_,12,2).attr({zIndex:3}).add(m):c&&c.marker&&c.marker.enabled&&(t=An.symbol(e.symbol,n=-_/2-x,o=-4,c.marker.radius).attr({zIndex:3}).add(m)),t&&(t.xOff=n+u%2/2,t.yOff=o+u%2/2),e.legendSymbol=t,i(e,e.visible),c&&c.showCheckbox&&(e.checkbox=d("input",{type:"checkbox",checked:e.selected,defaultChecked:e.selected},l.itemCheckboxStyle,Jt),St(e.checkbox,"click",function(t){Dt(e,"checkboxClick",{checked:t.target.checked},function(){e.select()})}))}t=s.getBBox(),n=e.legendItemWidth=l.itemWidth||_+x+t.width+S,I=t.height,y&&p-D+n>(L||tn-2*E-D)&&(p=D,h+=I),f=h,r(e,p,h),y?p+=n:h+=I,v=L||q(y?p-D:n,v)}function s(){p=D,h=A,f=v=0,m||(m=An.g("legend").attr({zIndex:7}).add()),c=[],wt(F,function(e){var t=e.options;t.showInLegend&&(c=c.concat("point"===t.legendType?e.data:e))}),c.sort(function(e,t){return(e.options.legendIndex||0)-(t.options.legendIndex||0)}),N&&c.reverse(),wt(c,a),wn=L||v,Cn=f-A+I,(R||O)&&(wn+=2*E,Cn+=2*E,g?wn>0&&Cn>0&&g.animate(g.crisp(null,null,null,wn,Cn)):g=An.rect(0,0,wn,Cn,l.borderRadius,R||0).attr({stroke:l.borderColor,"stroke-width":R||0,fill:O||gt}).add(m).shadow(l.shadow),g[c.length?"show":"hide"]());for(var n,i=["left","right","top","bottom"],r=4;r--;)n=i[r],k[n]&&"auto"!==k[n]&&(l[2>r?"align":"verticalAlign"]=n,l[2>r?"x":"y"]=t(k[n])*(r%2?-1:1));m.align(e(l,{width:wn,height:Cn}),!0,Ft),Yn||o()}var l=n.options.legend;if(l.enabled){var c,p,h,f,g,m,v,y="horizontal"===l.layout,_=l.symbolWidth,x=l.symbolPadding,k=l.style,w=l.itemStyle,C=l.itemHoverStyle,T=l.itemHiddenStyle,E=t(k.padding),S=20,A=18,D=4+E+_+x,I=0,R=l.borderWidth,O=l.backgroundColor,L=l.width,F=n.series,N=l.reversed;return s(),St(n,"endResize",o),{colorizeItem:i,destroyItem:function(e){var t=e.checkbox;wt(["legendItem","legendLine","legendSymbol"],function(t){e[t]&&e[t].destroy()}),t&&b(e.checkbox)},renderLegend:s}}};if(dn=function(e,t){return e>=0&&vn>=e&&t>=0&&bn>=t},Mn=function(){Dt(Vn,"selection",{resetSelection:!0},Bn),Vn.toolbar.remove("zoom")},Bn=function(e){var t=k.lang,n=100>Vn.pointCount;Vn.toolbar.add("zoom",t.resetZoom,t.resetZoomTitle,Mn),!e||e.resetSelection?wt(Jn,function(e){e.setExtremes(null,null,!1,n)}):wt(e.xAxis.concat(e.yAxis),function(e){var t=e.axis;Vn.tracker[t.isXAxis?"zoomX":"zoomY"]&&t.setExtremes(e.min,e.max,!1,n)}),X()},Ln=function(){var e,t=r.legend,n=c(t.margin,10),i=t.x,o=t.y,s=t.align,l=t.verticalAlign;Fn(),!Vn.title&&!Vn.subtitle||a(jn)||(e=q(Vn.title&&!Nt.floating&&!Nt.verticalAlign&&Nt.y||0,Vn.subtitle&&!Ht.floating&&!Ht.verticalAlign&&Ht.y||0))&&(Kt=q(Kt,e+c(Nt.margin,15)+Kn)),t.enabled&&!t.floating&&("right"===s?a(zn)||(qt=q(qt,wn-i+n+Wn)):"left"===s?a(Hn)||(Vt=q(Vt,wn+i+n+Un)):"top"===l?a(jn)||(Kt=q(Kt,Cn+o+n+Kn)):"bottom"===l&&(a($n)||(Ut=q(Ut,Cn-o+n+qn)))),Xn&&wt(Jn,function(e){e.getOffset()}),a(Hn)||(Vt+=Gt[3]),a(jn)||(Kt+=Gt[0]),a($n)||(Ut+=Gt[2]),a(zn)||(qt+=Gt[1]),Nn()},Pn=function(e,t,n){var i=Vn.title,r=Vn.subtitle;Yn+=1,g(n,Vn),on=nn,rn=tn,Vn.chartWidth=tn=H(e),Vn.chartHeight=nn=H(t),u(Jt,{width:tn+ft,height:nn+ft}),An.setSize(tn,nn,n),vn=tn-Vt-qt,bn=nn-Kt-Ut,En=null,wt(Jn,function(e){e.isDirty=!0,e.setScale()}),wt(Zn,function(e){e.isDirty=!0}),Vn.isDirtyLegend=!0,Vn.isDirtyBox=!0,Ln(),i&&i.align(null,null,Ft),r&&r.align(null,null,Ft),X(n),on=null,Dt(Vn,"resize"),setTimeout(function(){Dt(Vn,"endResize",null,function(){Yn-=1})},C&&C.duration||500)},Nn=function(){Vn.plotLeft=Vt=H(Vt),Vn.plotTop=Kt=H(Kt),Vn.plotWidth=vn=H(tn-Vt-qt),Vn.plotHeight=bn=H(nn-Kt-Ut),Vn.plotSizeX=Sn?bn:vn,Vn.plotSizeY=Sn?vn:bn,Ft={x:Un,y:Kn,width:tn-Un-Wn,height:nn-Kn-qn}},Fn=function(){Kt=c(jn,Kn),qt=c(zn,Wn),Ut=c($n,qn),Vt=c(Hn,Un),Gt=[0,0,0,0]},On=function(){var e,t=kt.borderWidth||0,n=kt.backgroundColor,i=kt.plotBackgroundColor,r=kt.plotBackgroundImage,o={x:Vt,y:Kt,width:vn,height:bn};e=t+(kt.shadow?8:0),(t||n)&&(an?an.animate(an.crisp(null,null,null,tn-e,nn-e)):an=An.rect(e/2,e/2,tn-e,nn-e,kt.borderRadius,t).attr({stroke:kt.borderColor,"stroke-width":t,fill:n||gt}).add().shadow(kt.shadow)),i&&(sn?sn.animate(o):sn=An.rect(Vt,Kt,vn,bn,0).attr({fill:i}).add().shadow(kt.plotShadow)),r&&(ln?ln.animate(o):ln=An.image(r,Vt,Kt,vn,bn).add()),kt.plotBorderWidth&&(cn?cn.animate(cn.crisp(null,Vt,Kt,vn,bn)):cn=An.rect(Vt,Kt,vn,bn,0,kt.plotBorderWidth).attr({stroke:kt.plotBorderColor,"stroke-width":kt.plotBorderWidth,zIndex:4}).add()),Vn.isDirtyBox=!1},St(z,"unload",vt),kt.reflow!==!1&&St(Vn,"load",et),Lt)for(un in Lt)St(Vn,un,Lt[un]);Vn.options=r,Vn.series=Zn,Vn.addSeries=function(e,t,n){var i;return e&&(g(n,Vn),t=c(t,!0),Dt(Vn,"addSeries",{options:e},function(){i=T(e),i.isDirty=!0,Vn.isDirtyLegend=!0,t&&Vn.redraw()})),i},Vn.animation=c(kt.animation,!0),Vn.destroy=vt,Vn.get=function(e){var t,n,i;for(t=0;Jn.length>t;t++)if(Jn[t].options.id===e)return Jn[t];for(t=0;Zn.length>t;t++)if(Zn[t].options.id===e)return Zn[t];for(t=0;Zn.length>t;t++)for(i=Zn[t].data,n=0;i.length>n;n++)if(i[n].id===e)return i[n];return null},Vn.getSelectedPoints=function(){var e=[];return wt(Zn,function(t){e=e.concat(Ct(t.data,function(e){return e.selected}))}),e},Vn.getSelectedSeries=function(){return Ct(Zn,function(e){return e.selected})},Vn.hideLoading=function(){It(fn,{opacity:0},{duration:r.loading.hideDuration,complete:function(){u(fn,{display:gt})}}),mn=!1},Vn.isInsidePlot=dn,Vn.redraw=X,Vn.setSize=Pn,Vn.setTitle=J,Vn.showLoading=function(t){var n=r.loading;fn||(fn=d(lt,{className:"highcharts-loading"},e(n.style,{left:Vt+ft,top:Kt+ft,width:vn+ft,height:bn+ft,zIndex:10,display:gt}),Jt),gn=d("span",null,n.labelStyle,fn)),gn.innerHTML=t||r.lang.loading,mn||(u(fn,{opacity:0,display:""}),It(fn,{opacity:n.style.opacity},{duration:n.showDuration}),mn=!0)},Vn.pointCount=0,Vn.counters=new f,xt()}var _,x,k,w,C,T,E,S,A,D,I,R,O,L,F,N,P,B,M,j=document,z=window,$=Math,H=$.round,K=$.floor,W=$.ceil,q=$.max,U=$.min,V=$.abs,G=$.cos,X=$.sin,Y=$.PI,J=2*Y/360,Z=navigator.userAgent,Q=/msie/i.test(Z)&&!z.opera,et=8===j.documentMode,tt=/AppleWebKit/.test(Z),nt=/Firefox/.test(Z),it=!!j.createElementNS&&!!j.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,rt=void 0!==j.documentElement.ontouchstart,ot={},at=0,st=1,lt="div",ct="absolute",ut="relative",dt="hidden",pt="highcharts-",ht="visible",ft="px",gt="none",mt="M",bt="L",vt="rgba(192,192,192,"+(it?1e-6:.002)+")",yt="",_t="hover",xt=z.HighchartsAdapter,kt=xt||{},wt=kt.each,Ct=kt.grep,Tt=kt.map,Et=kt.merge,St=kt.addEvent,At=kt.removeEvent,Dt=kt.fireEvent,It=kt.animate,Rt=kt.stop,Ot={};if(w=function(e,t,n){function i(e){return(""+e).replace(/^([0-9])$/,"0$1")}if(!a(t)||isNaN(t))return"Invalid date";e=c(e,"%Y-%m-%d %H:%M:%S"),t=new Date(t*st);var r,o=t[D](),s=t[I](),l=t[R](),u=t[O](),d=t[L](),p=k.lang,h=p.weekdays;p=p.months,t={a:h[s].substr(0,3),A:h[s],d:i(l),e:l,b:p[u].substr(0,3),B:p[u],m:i(u+1),y:(""+d).substr(2,2),Y:d,H:i(o),I:i(o%12||12),l:o%12||12,M:i(t[A]()),p:12>o?"AM":"PM",P:12>o?"am":"pm",S:i(t.getSeconds())};for(r in t)e=e.replace("%"+r,t[r]);return n?e.substr(0,1).toUpperCase()+e.substr(1):e},f.prototype={wrapColor:function(e){this.color>=e&&(this.color=0)},wrapSymbol:function(e){this.symbol>=e&&(this.symbol=0)}},xt&&xt.init&&xt.init(),!xt&&z.jQuery){var Lt=jQuery;wt=function(e,t){for(var n=0,i=e.length;i>n;n++)if(t.call(e[n],e[n],n,e)===!1)return n
},Ct=Lt.grep,Tt=function(e,t){for(var n=[],i=0,r=e.length;r>i;i++)n[i]=t.call(e[i],e[i],i,e);return n},Et=function(){var e=arguments;return Lt.extend(!0,null,e[0],e[1],e[2],e[3])},St=function(e,t,n){Lt(e).bind(t,n)},At=function(e,t,n){var i=j.removeEventListener?"removeEventListener":"detachEvent";j[i]&&!e[i]&&(e[i]=function(){}),Lt(e).unbind(t,n)},Dt=function(t,n,i,r){var o=Lt.Event(n),a="detached"+n;e(o,i),t[n]&&(t[a]=t[n],t[n]=null),Lt(t).trigger(o),t[a]&&(t[n]=t[a],t[a]=null),r&&!o.isDefaultPrevented()&&r(o)},It=function(e,t,n){var i=Lt(e);t.d&&(e.toD=t.d,t.d=1),i.stop(),i.animate(t,n)},Rt=function(e){Lt(e).stop()},Lt.extend(Lt.easing,{easeOutQuad:function(e,t,n,i,r){return-i*(t/=r)*(t-2)+n}});var Ft=jQuery.fx.step._default,Nt=jQuery.fx.prototype.cur;Lt.fx.step._default=function(e){var t=e.elem;t.attr?t.attr(e.prop,e.now):Ft.apply(this,arguments)},Lt.fx.step.d=function(e){var t=e.elem;if(!e.started){var n=T.init(t,t.d,t.toD);e.start=n[0],e.end=n[1],e.started=!0}t.attr("d",T.step(e.start,e.end,e.pos,t.toD))},Lt.fx.prototype.cur=function(){var e=this.elem;return e.attr?e.attr(this.prop):Nt.apply(this,arguments)}}T={init:function(e,t,n){t=t||"";var i,r=e.shift,o=t.indexOf("C")>-1,a=o?7:3;t=t.split(" "),n=[].concat(n);var s,l,c=function(e){for(i=e.length;i--;)e[i]===mt&&e.splice(i+1,0,e[i+1],e[i+2],e[i+1],e[i+2])};if(o&&(c(t),c(n)),e.isArea&&(s=t.splice(t.length-6,6),l=n.splice(n.length-6,6)),r&&(n=[].concat(n).splice(0,a).concat(n),e.shift=!1),t.length)for(e=n.length;e>t.length;)r=[].concat(t).splice(t.length-a,a),o&&(r[a-6]=r[a-2],r[a-5]=r[a-1]),t=t.concat(r);return s&&(t=t.concat(s),n=n.concat(l)),[t,n]},step:function(e,t,n,i){var r=[],o=e.length;if(1===n)r=i;else if(o===t.length&&1>n)for(;o--;)i=parseFloat(e[o]),r[o]=isNaN(i)?e[o]:n*parseFloat(t[o]-i)+i;else r=t;return r}},xt={enabled:!0,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}},k={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0},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"},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:Et(xt,{enabled:!1,y:-6,formatter:function(){return this.y}}),showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:ct,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:{cursor:"pointer",color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:ct,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:ut,top:"1em"},showDuration:100,style:{position:ct,backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:!0,snap:rt?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},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 Pt={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:xt,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:.01,maxPadding:.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"},Bt=Et(Pt,{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:xt.style}}),Mt={labels:{align:"right",x:-8,y:null},title:{rotation:270}},jt={labels:{align:"left",x:8,y:null},title:{rotation:90}},zt={labels:{align:"center",x:0,y:14},title:{rotation:0}},$t=Et(zt,{labels:{y:-5}}),Ht=k.plotOptions;xt=Ht.line,Ht.spline=Et(xt),Ht.scatter=Et(xt,{lineWidth:0,states:{hover:{lineWidth:0}}}),Ht.area=Et(xt,{}),Ht.areaspline=Et(Ht.area),Ht.column=Et(xt,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,states:{hover:{brightness:.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{y:null,verticalAlign:null}}),Ht.bar=Et(Ht.column,{dataLabels:{align:"left",x:5,y:0}}),Ht.pie=Et(xt,{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:.1,shadow:!1}}}),m();var Kt=function(e){var n,i=[];return function(e){(n=/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(e))?i=[t(n[1]),t(n[2]),t(n[3]),parseFloat(n[4],10)]:(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))&&(i=[t(n[1],16),t(n[2],16),t(n[3],16),1])}(e),{get:function(t){return i&&!isNaN(i[0])?"rgb"===t?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===t?i[3]:"rgba("+i.join(",")+")":e},brighten:function(e){if(r(e)&&0!==e){var n;for(n=0;3>n;n++)i[n]+=t(255*e),0>i[n]&&(i[n]=0),i[n]>255&&(i[n]=255)}return this},setOpacity:function(e){return i[3]=e,this}}};v.prototype={init:function(e,t){this.element=j.createElementNS("http://www.w3.org/2000/svg",t),this.renderer=e},animate:function(e,t,n){(t=c(t,C,!0))?(t=Et(t),n&&(t.complete=n),It(this,e,t)):(this.attr(e),n&&n())},attr:function(e,i){var r,o,l,c,u,d,p=this.element,h=p.nodeName,f=this.renderer,g=this.shadows,m=this;if(n(e)&&a(i)&&(r=e,e={},e[r]=i),n(e))r=e,"circle"===h?r={x:"cx",y:"cy"}[r]||r:"strokeWidth"===r&&(r="stroke-width"),m=s(p,r)||this[r]||0,"d"!==r&&"visibility"!==r&&(m=parseFloat(m));else for(r in e){if(u=!1,o=e[r],"d"===r)o&&o.join&&(o=o.join(" ")),/(NaN| {2}|^$)/.test(o)&&(o="M 0 0"),this.d=o;else if("x"===r&&"text"===h){for(l=0;p.childNodes.length>l;l++)c=p.childNodes[l],s(c,"x")===s(p,"x")&&s(c,"x",o);this.rotation&&s(p,"transform","rotate("+this.rotation+" "+o+" "+t(e.y||s(p,"y"))+")")}else if("fill"===r)o=f.color(o,p,r);else if("circle"!==h||"x"!==r&&"y"!==r)if("translateX"===r||"translateY"===r||"rotation"===r||"verticalAlign"===r)this[r]=o,this.updateTransform(),u=!0;else if("stroke"===r)o=f.color(o,p,r);else if("dashstyle"===r){if(r="stroke-dasharray",o=o&&o.toLowerCase(),"solid"===o)o=gt;else if(o){for(o=o.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(","),l=o.length;l--;)o[l]=t(o[l])*e["stroke-width"];o=o.join(",")}}else"isTracker"===r?this[r]=o:"width"===r?o=t(o):"align"===r&&(r="text-anchor",o={left:"start",center:"middle",right:"end"}[o]);else r={x:"cx",y:"cy"}[r]||r;if("strokeWidth"===r&&(r="stroke-width"),tt&&"stroke-width"===r&&0===o&&(o=1e-6),this.symbolName&&/^(x|y|r|start|end|innerR)/.test(r)&&(d||(this.symbolAttr(e),d=!0),u=!0),g&&/^(width|height|visibility|x|y|d)$/.test(r))for(l=g.length;l--;)s(g[l],r,o);("width"===r||"height"===r)&&"rect"===h&&0>o&&(o=0),"text"===r?(this.textStr=o,this.added&&f.buildText(this)):u||s(p,r,o)}return m},symbolAttr:function(e){var t=this;wt(["x","y","r","start","end","width","height","innerR"],function(n){t[n]=c(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](H(2*t.x)/2,H(2*t.y)/2,t.r,{start:t.start,end:t.end,width:t.width,height:t.height,innerR:t.innerR})})},clip:function(e){return this.attr("clip-path","url("+this.renderer.url+"#"+e.id+")")},crisp:function(e,t,n,i,r){var o,a,s={},l={};e=e||this.strokeWidth||0,a=e%2/2,l.x=K(t||this.x||0)+a,l.y=K(n||this.y||0)+a,l.width=K((i||this.width||0)-2*a),l.height=K((r||this.height||0)-2*a),l.strokeWidth=e;for(o in l)this[o]!==l[o]&&(this[o]=s[o]=l[o]);return s},css:function(t){var n=this.element;n=t&&t.width&&"text"===n.nodeName;var i,r="",o=function(e,t){return"-"+t.toLowerCase()};if(t&&t.color&&(t.fill=t.color),this.styles=t=e(this.styles,t),Q&&!it)n&&delete t.width,u(this.element,t);else{for(i in t)r+=i.replace(/([A-Z])/g,o)+":"+t[i]+";";this.attr({style:r})}return n&&this.added&&this.renderer.buildText(this),this},on:function(e,t){var n=t;return rt&&"click"===e&&(e="touchstart",n=function(e){e.preventDefault(),t()}),this.element["on"+e]=n,this},translate:function(e,t){return this.attr({translateX:e,translateY:t})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var e=this.translateX||0,t=this.translateY||0,n=this.inverted,i=this.rotation,r=[];n&&(e+=this.attr("width"),t+=this.attr("height")),(e||t)&&r.push("translate("+e+","+t+")"),n?r.push("rotate(90) scale(-1,1)"):i&&r.push("rotate("+i+" "+this.x+" "+this.y+")"),r.length&&s(this.element,"transform",r.join(" "))},toFront:function(){var e=this.element;return e.parentNode.appendChild(e),this},align:function(e,t,n){e?(this.alignOptions=e,this.alignByTranslate=t,n||this.renderer.alignedObjects.push(this)):(e=this.alignOptions,t=this.alignByTranslate),n=c(n,this.renderer);var i=e.align,r=e.verticalAlign,o=(n.x||0)+(e.x||0),a=(n.y||0)+(e.y||0),s={};return/^(right|center)$/.test(i)&&(o+=(n.width-(e.width||0))/{right:1,center:2}[i]),s[t?"translateX":"x"]=H(o),/^(bottom|middle)$/.test(r)&&(a+=(n.height-(e.height||0))/({bottom:1,middle:2}[r]||1)),s[t?"translateY":"y"]=H(a),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this},getBBox:function(){var t,n,i,r=this.rotation,o=r*J;try{t=e({},this.element.getBBox())}catch(a){t={width:0,height:0}}return n=t.width,i=t.height,r&&(t.width=V(i*X(o))+V(n*G(o)),t.height=V(i*G(o))+V(n*X(o))),t},show:function(){return this.attr({visibility:ht})},hide:function(){return this.attr({visibility:dt})},add:function(e){var n=this.renderer,i=e||n,r=i.element||n.box,o=r.childNodes,l=this.element,c=s(l,"zIndex");if(this.parentInverted=e&&e.inverted,void 0!==this.textStr&&n.buildText(this),c&&(i.handleZ=!0,c=t(c)),i.handleZ)for(i=0;o.length>i;i++)if(e=o[i],n=s(e,"zIndex"),e!==l&&(t(n)>c||!a(c)&&a(n)))return r.insertBefore(l,e),this;return r.appendChild(l),this.added=!0,this},destroy:function(){var e,t=this.element||{},n=this.shadows,i=t.parentNode;t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=null,Rt(this),i&&i.removeChild(t),n&&wt(n,function(e){(i=e.parentNode)&&i.removeChild(e)}),o(this.renderer.alignedObjects,this);for(e in this)delete this[e];return null},empty:function(){for(var e=this.element,t=e.childNodes,n=t.length;n--;)e.removeChild(t[n])},shadow:function(e,t){var n,i,r=[],o=this.element,a=this.parentInverted?"(-1,-1)":"(1,1)";if(e){for(n=1;3>=n;n++)i=o.cloneNode(0),s(i,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":.05*n,"stroke-width":7-2*n,transform:"translate"+a,fill:gt}),t?t.element.appendChild(i):o.parentNode.insertBefore(i,o),r.push(i);this.shadows=r}return this}};var Wt=function(){this.init.apply(this,arguments)};Wt.prototype={Element:v,init:function(e,t,n,i){var r,o=location;r=this.createElement("svg").attr({xmlns:"http://www.w3.org/2000/svg",version:"1.1"}),e.appendChild(r.element),this.box=r.element,this.boxWrapper=r,this.alignedObjects=[],this.url=Q?"":o.href.replace(/#.*?$/,""),this.defs=this.createElement("defs").add(),this.forExport=i,this.setSize(t,n,!1)},createElement:function(e){var t=new this.Element;return t.init(this,e),t},buildText:function(e){for(var n,i,r=e.element,o=(""+c(e.textStr,"")).replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g),a=r.childNodes,l=/style="([^"]+)"/,d=/href="([^"]+)"/,p=s(r,"x"),h=e.styles,f=nt&&h&&"rtl"===h.HcDirection&&!this.forExport&&4>t(Z.split("Firefox/")[1]),g=h&&t(h.width),m=h&&h.lineHeight,b=a.length;b--;)r.removeChild(a[b]);g&&!e.added&&this.box.appendChild(r),wt(o,function(o,a){var c,h,v=0;o=o.replace(//g,"|||"),c=o.split("|||"),wt(c,function(o){if(""!==o||1===c.length){var y={},_=j.createElementNS("http://www.w3.org/2000/svg","tspan");if(l.test(o)&&s(_,"style",o.match(l)[1].replace(/(;| |^)color([ :])/,"$1fill$2")),d.test(o)&&(s(_,"onclick",'location.href="'+o.match(d)[1]+'"'),u(_,{cursor:"pointer"})),o=(o.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">"),f){for(n=[],b=o.length;b--;)n.push(o.charAt(b));o=n.join("")}if(_.appendChild(j.createTextNode(o)),v?y.dx=3:y.x=p,v||(a&&(!it&&e.renderer.forExport&&u(_,{display:"block"}),h=z.getComputedStyle&&t(z.getComputedStyle(i,null).getPropertyValue("line-height")),(!h||isNaN(h))&&(h=m||i.offsetHeight||18),s(_,"dy",h)),i=_),s(_,y),r.appendChild(_),v++,g){o=o.replace(/-/g,"- ").split(" ");for(var x,k=[];o.length||k.length;)x=r.getBBox().width,y=x>g,y&&1!==o.length?(_.removeChild(_.firstChild),k.unshift(o.pop())):(o=k,k=[],o.length&&(_=j.createElementNS("http://www.w3.org/2000/svg","tspan"),s(_,{dy:m||16,x:p}),r.appendChild(_),x>g&&(g=x))),o.length&&_.appendChild(j.createTextNode(o.join(" ").replace(/- /g,"-")))}}})})},crispLine:function(e,t){return e[1]===e[4]&&(e[1]=e[4]=H(e[1])+t%2/2),e[2]===e[5]&&(e[2]=e[5]=H(e[2])+t%2/2),e},path:function(e){return this.createElement("path").attr({d:e,fill:gt})},circle:function(e,t,n){return e=i(e)?e:{x:e,y:t,r:n},this.createElement("circle").attr(e)},arc:function(e,t,n,r,o,a){return i(e)&&(t=e.y,n=e.r,r=e.innerR,o=e.start,a=e.end,e=e.x),this.symbol("arc",e||0,t||0,n||0,{innerR:r||0,start:o||0,end:a||0})},rect:function(e,t,n,r,o,a){return i(e)&&(t=e.y,n=e.width,r=e.height,o=e.r,a=e.strokeWidth,e=e.x),o=this.createElement("rect").attr({rx:o,ry:o,fill:gt}),o.attr(o.crisp(a,e,t,q(n,0),q(r,0)))},setSize:function(e,t,n){var i=this.alignedObjects,r=i.length;for(this.width=e,this.height=t,this.boxWrapper[c(n,!0)?"animate":"attr"]({width:e,height:t});r--;)i[r].align()},g:function(e){return this.createElement("g").attr(a(e)&&{"class":pt+e})},image:function(t,n,i,r,o){var a={preserveAspectRatio:gt};return arguments.length>1&&e(a,{x:n,y:i,width:r,height:o}),a=this.createElement("image").attr(a),a.element.setAttributeNS?a.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):a.element.setAttribute("hc-svg-href",t),a},symbol:function(t,n,i,r,o){var a,s=this.symbols[t];s=s&&s(H(n),H(i),r,o);var l,c=/^url\((.*?)\)$/;if(s)a=this.path(s),e(a,{symbolName:t,x:n,y:i,r:r}),o&&e(a,o);else if(c.test(t)){var u=function(e,t){e.attr({width:t[0],height:t[1]}).translate(-H(t[0]/2),-H(t[1]/2))};l=t.match(c)[1],t=ot[l],a=this.image(l).attr({x:n,y:i}),t?u(a,t):(a.attr({width:0,height:0}),d("img",{onload:function(){u(a,ot[l]=[this.width,this.height])},src:l}))}else a=this.circle(n,i,r);return a},symbols:{square:function(e,t,n){return n=.707*n,[mt,e-n,t-n,bt,e+n,t-n,e+n,t+n,e-n,t+n,"Z"]},triangle:function(e,t,n){return[mt,e,t-1.33*n,bt,e+n,t+.67*n,e-n,t+.67*n,"Z"]},"triangle-down":function(e,t,n){return[mt,e,t+1.33*n,bt,e-n,t-.67*n,e+n,t-.67*n,"Z"]},diamond:function(e,t,n){return[mt,e,t-n,bt,e+n,t,e,t+n,e-n,t,"Z"]},arc:function(e,t,n,i){var r=i.start,o=i.end-1e-6,a=i.innerR,s=G(r),l=X(r),c=G(o);return o=X(o),i=Y>i.end-r?0:1,[mt,e+n*s,t+n*l,"A",n,n,0,i,1,e+n*c,t+n*o,bt,e+a*c,t+a*o,"A",a,a,0,i,0,e+a*s,t+a*l,"Z"]}},clipRect:function(e,t,n,i){var r=pt+at++,o=this.createElement("clipPath").attr({id:r}).add(this.defs);return e=this.rect(e,t,n,i,0).add(o),e.id=r,e},color:function(e,t,n){var i,r=/^rgba/;if(e&&e.linearGradient){var o=this;t=e.linearGradient,n=pt+at++;var a,l,c;return a=o.createElement("linearGradient").attr({id:n,gradientUnits:"userSpaceOnUse",x1:t[0],y1:t[1],x2:t[2],y2:t[3]}).add(o.defs),wt(e.stops,function(e){r.test(e[1])?(i=Kt(e[1]),l=i.get("rgb"),c=i.get("a")):(l=e[1],c=1),o.createElement("stop").attr({offset:e[0],"stop-color":l,"stop-opacity":c}).add(a)}),"url("+this.url+"#"+n+")"}return r.test(e)?(i=Kt(e),s(t,n+"-opacity",i.get("a")),i.get("rgb")):e},text:function(e,t,n){var i=k.chart.style;return t=H(c(t,0)),n=H(c(n,0)),e=this.createElement("text").attr({x:t,y:n,text:e}).css({fontFamily:i.fontFamily,fontSize:i.fontSize}),e.x=t,e.y=n,e}},_=Wt,it||(kt=p(v,{init:function(e,t){var n=["<",t,' filled="f" stroked="f"'],i=["position: ",ct,";"];("shape"===t||t===lt)&&i.push("left:0;top:0;width:10px;height:10px;"),et&&i.push("visibility: ",t===lt?dt:ht),n.push(' style="',i.join(""),'"/>'),t&&(n=t===lt||"span"===t||"img"===t?n.join(""):e.prepVML(n),this.element=d(n)),this.renderer=e},add:function(e){var t=this.renderer,n=this.element,i=t.box;return i=e?e.element||e:i,e&&e.inverted&&t.invertChild(n,i),et&&i.gVis===dt&&u(n,{visibility:dt}),i.appendChild(n),this.added=!0,this.alignOnAdd&&this.updateTransform(),this},attr:function(e,t){var i,o,l,c,p,h=this.element||{},f=h.style,g=h.nodeName,m=this.renderer,b=this.symbolName,v=this.shadows,y=this;if(n(e)&&a(t)&&(i=e,e={},e[i]=t),n(e))i=e,y="strokeWidth"===i||"stroke-width"===i?this.strokeweight:this[i];else for(i in e){if(o=e[i],c=!1,b&&/^(x|y|r|start|end|width|height|innerR)/.test(i))p||(this.symbolAttr(e),p=!0),c=!0;else if("d"===i){for(o=o||[],this.d=o.join(" "),l=o.length,c=[];l--;)c[l]=r(o[l])?H(10*o[l])-5:"Z"===o[l]?"x":o[l];if(o=c.join(" ")||"x",h.path=o,v)for(l=v.length;l--;)v[l].path=o;c=!0}else if("zIndex"===i||"visibility"===i){if(et&&"visibility"===i&&"DIV"===g){for(h.gVis=o,c=h.childNodes,l=c.length;l--;)u(c[l],{visibility:o});o===ht&&(o=null)}o&&(f[i]=o),c=!0}else/^(width|height)$/.test(i)?(this.updateClipping?(this[i]=o,this.updateClipping()):f[i]=o,c=!0):/^(x|y)$/.test(i)?(this[i]=o,"SPAN"===h.tagName?this.updateTransform():f[{x:"left",y:"top"}[i]]=o):"class"===i?h.className=o:"stroke"===i?(o=m.color(o,h,i),i="strokecolor"):"stroke-width"===i||"strokeWidth"===i?(h.stroked=o?!0:!1,i="strokeweight",this[i]=o,r(o)&&(o+=ft)):"dashstyle"===i?((h.getElementsByTagName("stroke")[0]||d(m.prepVML([""]),null,null,h))[i]=o||"solid",this.dashstyle=o,c=!0):"fill"===i?"SPAN"===g?f.color=o:(h.filled=o!==gt?!0:!1,o=m.color(o,h,i),i="fillcolor"):"translateX"===i||"translateY"===i||"rotation"===i||"align"===i?("align"===i&&(i="textAlign"),this[i]=o,this.updateTransform(),c=!0):"text"===i&&(this.bBox=null,h.innerHTML=o,c=!0);if(v&&"visibility"===i)for(l=v.length;l--;)v[l].style[i]=o;c||(et?h[i]=o:s(h,i,o))}return y},clip:function(e){var t=this,n=e.members;return n.push(t),t.destroyClip=function(){o(n,t)},t.css(e.getCSS(t.inverted))},css:function(t){var n=this.element;return(n=t&&"SPAN"===n.tagName&&t.width)&&(delete t.width,this.textWidth=n,this.updateTransform()),this.styles=e(this.styles,t),u(this.element,t),this},destroy:function(){this.destroyClip&&this.destroyClip(),v.prototype.destroy.apply(this)},empty:function(){for(var e,t=this.element.childNodes,n=t.length;n--;)e=t[n],e.parentNode.removeChild(e)},getBBox:function(){var e=this.element,t=this.bBox;return t||("text"===e.nodeName&&(e.style.position=ct),t=this.bBox={x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}),t},on:function(e,t){return this.element["on"+e]=function(){var e=z.event;e.target=e.srcElement,t(e)},this},updateTransform:function(){if(this.added){var e=this,n=e.element,i=e.translateX||0,r=e.translateY||0,o=e.x||0,s=e.y||0,l=e.textAlign||"left",c={left:0,center:.5,right:1}[l],d=l&&"left"!==l;if((i||r)&&e.css({marginLeft:i,marginTop:r}),e.inverted&&wt(n.childNodes,function(t){e.renderer.invertChild(t,n)}),"SPAN"===n.tagName){var p,h;i=e.rotation;var f;p=0,r=1;var g,m=0;f=t(e.textWidth);var b=e.xCorr||0,v=e.yCorr||0,y=[i,l,n.innerHTML,e.textWidth].join(",");y!==e.cTT&&(a(i)&&(p=i*J,r=G(p),m=X(p),u(n,{filter:i?["progid:DXImageTransform.Microsoft.Matrix(M11=",r,", M12=",-m,", M21=",m,", M22=",r,", sizingMethod='auto expand')"].join(""):gt})),p=n.offsetWidth,h=n.offsetHeight,p>f&&(u(n,{width:f+ft,display:"block",whiteSpace:"normal"}),p=f),f=H(1.2*(t(n.style.fontSize)||12)),b=0>r&&-p,v=0>m&&-h,g=0>r*m,b+=m*f*(g?1-c:c),v-=r*f*(i?g?c:1-c:1),d&&(b-=p*c*(0>r?-1:1),i&&(v-=h*c*(0>m?-1:1)),u(n,{textAlign:l})),e.xCorr=b,e.yCorr=v),u(n,{left:o+b,top:s+v}),e.cTT=y}}else this.alignOnAdd=!0},shadow:function(e,n){var i,r,o,a=[],s=this.element,l=this.renderer,c=s.style,u=s.path;if(u&&"string"!=typeof u.value&&(u="x"),e){for(i=1;3>=i;i++)o=[''],r=d(l.prepVML(o),null,{left:t(c.left)+1,top:t(c.top)+1}),o=[''],d(l.prepVML(o),null,null,r),n?n.element.appendChild(r):s.parentNode.insertBefore(r,s),a.push(r);this.shadows=a}return this}}),xt=function(){this.init.apply(this,arguments)},xt.prototype=Et(Wt.prototype,{Element:kt,isIE8:Z.indexOf("MSIE 8.0")>-1,init:function(e,t,n){var i;this.alignedObjects=[],i=this.createElement(lt),e.appendChild(i.element),this.box=i.element,this.boxWrapper=i,this.setSize(t,n,!1),j.namespaces.hcv||(j.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),j.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ")},clipRect:function(t,n,i,r){var o=this.createElement();return e(o,{members:[],left:t,top:n,width:i,height:r,getCSS:function(t){var n=this.top,i=this.left,r=i+this.width,o=n+this.height;return n={clip:"rect("+H(t?i:n)+"px,"+H(t?o:r)+"px,"+H(t?r:o)+"px,"+H(t?n:i)+"px)"},!t&&et&&e(n,{width:r+ft,height:o+ft}),n},updateClipping:function(){wt(o.members,function(e){e.css(o.getCSS(e.inverted))})}})},color:function(e,t,n){var i,r=/^rgba/;if(!e||!e.linearGradient)return r.test(e)&&"IMG"!==t.tagName?(i=Kt(e),n=["<",n,' opacity="',i.get("a"),'"/>'],d(this.prepVML(n),null,null,t),i.get("rgb")):e;var o,a,s,l,c,u,p=e.linearGradient;wt(e.stops,function(e,t){r.test(e[1])?(i=Kt(e[1]),o=i.get("rgb"),a=i.get("a")):(o=e[1],a=1),t?(c=o,u=a):(s=o,l=a)}),e=90-180*$.atan((p[3]-p[1])/(p[2]-p[0]))/Y,n=["<",n,' colors="0% ',s,",100% ",c,'" angle="',e,'" opacity="',u,'" o:opacity2="',l,'" type="gradient" focus="100%" />'],d(this.prepVML(n),null,null,t)},prepVML:function(e){var t=this.isIE8;return e=e.join(""),t?(e=e.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),e=-1===e.indexOf('style="')?e.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):e.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):e=e.replace("<","1&&o.css({left:t,top:n,width:i,height:r}),o},rect:function(e,t,n,r,o,a){i(e)&&(t=e.y,n=e.width,r=e.height,o=e.r,a=e.strokeWidth,e=e.x);var s=this.symbol("rect");return s.r=o,s.attr(s.crisp(a,e,t,q(n,0),q(r,0)))},invertChild:function(e,n){var i=n.style;u(e,{flip:"x",left:t(i.width)-10,top:t(i.height)-10,rotation:-90})},symbols:{arc:function(e,t,n,i){var r=i.start,o=i.end,a=G(r),s=X(r),l=G(o),c=X(o);i=i.innerR;var u=.07/n,d=i&&.1/i||0;return 0===o-r?["x"]:(u>2*Y-o+r?l=-u:d>o-r&&(l=G(r+d)),["wa",e-n,t-n,e+n,t+n,e+n*a,t+n*s,e+n*l,t+n*c,"at",e-i,t-i,e+i,t+i,e+i*l,t+i*c,e+i*a,t+i*s,"x","e"])},circle:function(e,t,n){return["wa",e-n,t-n,e+n,t+n,e+n,t,e+n,t,"e"]},rect:function(e,t,n,i){if(!a(i))return[];var r=i.width;i=i.height;var o=e+r,s=t+i;return n=U(n,r,i),[mt,e+n,t,bt,o-n,t,"wa",o-2*n,t,o,t+2*n,o-n,t,o,t+n,bt,o,s-n,"wa",o-2*n,s-2*n,o,s,o,s-n,o-n,s,bt,e+n,s,"wa",e,s-2*n,e+2*n,s,e+n,s,e,s-n,bt,e,t+n,"wa",e,t,e+2*n,t+2*n,e,t+n,e+n,t,"x","e"]}}}),_=xt),y.prototype.callbacks=[];var qt=function(){};qt.prototype={init:function(e,t){var n,i=e.chart.counters;return this.series=e,this.applyOptions(t),this.pointAttr={},e.options.colorByPoint&&(n=e.chart.options.colors,this.options||(this.options={}),this.color=this.options.color=this.color||n[i.color++],i.wrapColor(n.length)),e.chart.pointCount++,this},applyOptions:function(t){var o=this.series;this.config=t,r(t)||null===t?this.y=t:i(t)&&!r(t.length)?(e(this,t),this.options=t):n(t[0])?(this.name=t[0],this.y=t[1]):r(t[0])&&(this.x=t[0],this.y=t[1]),this.x===E&&(this.x=o.autoIncrement())},destroy:function(){var e,t=this,n=t.series;n.chart.pointCount--,t===n.chart.hoverPoint&&t.onMouseOut(),n.chart.hoverPoints=null,At(t),wt(["graphic","tracker","group","dataLabel","connector"],function(e){t[e]&&t[e].destroy()}),t.legendItem&&t.series.chart.legend.destroyItem(t);for(e in t)t[e]=null},getLabelConfig:function(){return{x:this.category,y:this.y,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(e,t){var n=this,i=n.series.chart;n.selected=e=c(e,!n.selected),n.firePointEvent(e?"select":"unselect"),n.setState(e&&"select"),t||wt(i.getSelectedPoints(),function(e){e.selected&&e!==n&&(e.selected=!1,e.setState(yt),e.firePointEvent("unselect"))})},onMouseOver:function(){var e=this.series.chart,t=e.tooltip,n=e.hoverPoint;n&&n!==this&&n.onMouseOut(),this.firePointEvent("mouseOver"),t&&!t.shared&&t.refresh(this),this.setState(_t),e.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut"),this.setState(),this.series.chart.hoverPoint=null},tooltipFormatter:function(e){var t=this.series;return['',this.name||t.name,": ",e?"":"x = "+(this.name||this.x)+", ","",e?"":"y = ",this.y,""].join("")},update:function(e,t,n){var r=this,o=r.series,a=r.graphic,s=o.chart;t=c(t,!0),r.firePointEvent("update",{options:e},function(){r.applyOptions(e),i(e)&&(o.getAttribs(),a&&a.attr(r.pointAttr[o.state])),o.isDirty=!0,t&&s.redraw(n)})},remove:function(e,t){var n=this,i=n.series,r=i.chart,a=i.data;g(t,r),e=c(e,!0),n.firePointEvent("remove",null,function(){o(a,n),n.destroy(),i.isDirty=!0,e&&r.redraw()})},firePointEvent:function(e,t,n){var i=this,r=this.series.options;(r.point.events[e]||i.options&&i.options.events&&i.options.events[e])&&this.importEvents(),"click"===e&&r.allowPointSelect&&(n=function(e){i.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),Dt(this,e,t,n)},importEvents:function(){if(!this.hasImportedEvents){var e,t=Et(this.series.options.point,this.options).events;this.events=t;for(e in t)St(this,e,t[e]);this.hasImportedEvents=!0}},setState:function(e){var t=this.series,n=t.options.states,i=Ht[t.type].marker&&t.options.marker,r=i&&!i.enabled,o=(i=i&&i.states[e])&&i.enabled===!1,a=t.stateMarkerGraphic,s=t.chart,l=this.pointAttr;e=e||yt,e===this.state||this.selected&&"select"!==e||n[e]&&n[e].enabled===!1||e&&(o||r&&!i.enabled)||(this.graphic?this.graphic.attr(l[e]):(e&&(a||(t.stateMarkerGraphic=a=s.renderer.circle(0,0,l[e].r).attr(l[e]).add(t.group)),a.translate(this.plotX,this.plotY)),a&&a[e?"show":"hide"]()),this.state=e)}};var Ut=function(){};Ut.prototype={isCartesian:!0,type:"line",pointClass:qt,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(t,n){var i,r;r=t.series.length,this.chart=t,n=this.setOptions(n),e(this,{index:r,options:n,name:n.name||"Series "+(r+1),state:yt,pointAttr:{},visible:n.visible!==!1,selected:n.selected===!0}),r=n.events;for(i in r)St(this,i,r[i]);(r&&r.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.setData(n.data,!1)},autoIncrement:function(){var e=this.options,t=this.xIncrement;return t=c(t,e.pointStart,0),this.pointInterval=c(this.pointInterval,e.pointInterval,1),this.xIncrement=t+this.pointInterval,t},cleanData:function(){var e,t,n,i,r=this.chart,o=this.data,a=r.smallestInterval;if(o.sort(function(e,t){return e.x-t.x}),this.options.connectNulls)for(i=o.length-1;i>=0;i--)null===o[i].y&&o[i-1]&&o[i+1]&&o.splice(i,1);for(i=o.length-1;i>=0;i--)o[i-1]&&(n=o[i].x-o[i-1].x,n>0&&(t===E||t>n)&&(t=n,e=i));(a===E||a>t)&&(r.smallestInterval=t),this.closestPoints=e},getSegments:function(){var e=-1,t=[],n=this.data;wt(n,function(i,r){null===i.y?(r>e+1&&t.push(n.slice(e+1,r)),e=r):r===n.length-1&&t.push(n.slice(e+1,r+1))}),this.segments=t},setOptions:function(e){var t=this.chart.options.plotOptions;return Et(t[this.type],t.series,e)},getColor:function(){var e=this.chart.options.colors,t=this.chart.counters;this.color=this.options.color||e[t.color++]||"#0000ff",t.wrapColor(e.length)},getSymbol:function(){var e=this.chart.options.symbols,t=this.chart.counters;this.symbol=this.options.marker.symbol||e[t.symbol++],t.wrapSymbol(e.length)},addPoint:function(e,t,n,i){var r=this.data,o=this.graph,a=this.area,s=this.chart;e=(new this.pointClass).init(this,e),g(i,s),o&&n&&(o.shift=n),a&&(a.shift=n,a.isArea=!0),t=c(t,!0),r.push(e),n&&r[0].remove(!1),this.getAttribs(),this.isDirty=!0,t&&s.redraw()},setData:function(e,t){var n=this,i=n.data,r=n.initialColor,o=n.chart,s=i&&i.length||0;for(n.xIncrement=null,a(r)&&(o.counters.color=r),e=Tt(l(e||[]),function(e){return(new n.pointClass).init(n,e)});s--;)i[s].destroy();n.data=e,n.cleanData(),n.getSegments(),n.getAttribs(),n.isDirty=!0,o.isDirtyBox=!0,c(t,!0)&&o.redraw(!1)},remove:function(e,t){var n=this,i=n.chart;e=c(e,!0),n.isRemoving||(n.isRemoving=!0,Dt(n,"remove",null,function(){n.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,e&&i.redraw(t)})),n.isRemoving=!1},translate:function(){for(var e=this.chart,t=this.options.stacking,n=this.xAxis.categories,i=this.yAxis,r=this.data,o=r.length;o--;){var s=r[o],l=s.x,c=s.y,u=s.low,d=i.stacks[(0>c?"-":"")+this.stackKey];s.plotX=this.xAxis.translate(l),t&&this.visible&&d&&d[l]&&(u=d[l],l=u.total,u.cum=u=u.cum-c,c=u+c,"percent"===t&&(u=l?100*u/l:0,c=l?100*c/l:0),s.percentage=l?100*s.y/l:0,s.stackTotal=l),a(u)&&(s.yBottom=i.translate(u,0,1,0,1)),null!==c&&(s.plotY=i.translate(c,0,1,0,1)),s.clientX=e.inverted?e.plotHeight-s.plotX:s.plotX,s.category=n&&n[s.x]!==E?n[s.x]:s.x}},setTooltipPoints:function(e){var t,n,i=this.chart,r=i.inverted,o=[],a=H((r?i.plotTop:i.plotLeft)+i.plotSizeX),s=[];e&&(this.tooltipPoints=null),wt(this.segments,function(e){o=o.concat(e)}),this.xAxis&&this.xAxis.reversed&&(o=o.reverse()),wt(o,function(e,i){for(t=o[i-1]?o[i-1]._high+1:0,n=e._high=o[i+1]?K((e.plotX+(o[i+1]?o[i+1].plotX:a))/2):a;n>=t;)s[r?a-t++:t++]=e}),this.tooltipPoints=s
},onMouseOver:function(){var e=this.chart,t=e.hoverSeries;(rt||!e.mouseIsDown)&&(t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&Dt(this,"mouseOver"),this.tracker&&this.tracker.toFront(),this.setState(_t),e.hoverSeries=this)},onMouseOut:function(){var e=this.options,t=this.chart,n=t.tooltip,i=t.hoverPoint;i&&i.onMouseOut(),this&&e.events.mouseOut&&Dt(this,"mouseOut"),n&&!e.stickyTracking&&n.hide(),this.setState(),t.hoverSeries=null},animate:function(e){var t=this.chart,n=this.clipRect,r=this.options.animation;r&&!i(r)&&(r={}),e?n.isAnimating||(n.attr("width",0),n.isAnimating=!0):(n.animate({width:t.plotSizeX},r),this.animate=null)},drawPoints:function(){var e,t,n,i,r,o,a,s=this.data,l=this.chart;if(this.options.marker.enabled)for(i=s.length;i--;)r=s[i],t=r.plotX,n=r.plotY,a=r.graphic,n===E||isNaN(n)||(e=r.pointAttr[r.selected?"select":yt],o=e.r,a?a.animate({x:t,y:n,r:o}):r.graphic=l.renderer.symbol(c(r.marker&&r.marker.symbol,this.symbol),t,n,o).attr(e).add(this.group))},convertAttribs:function(e,t,n,i){var r,o,a=this.pointAttrToOptions,s={};e=e||{},t=t||{},n=n||{},i=i||{};for(r in a)o=a[r],s[r]=c(e[o],t[r],n[r],i[r]);return s},getAttribs:function(){var e,t,n,i=this,r=Ht[i.type].marker?i.options.marker:i.options,o=r.states,s=o[_t],l=i.color,c={stroke:l,fill:l},u=i.data,d=[],p=i.pointAttrToOptions;for(i.options.marker?(s.radius=s.radius||r.radius+2,s.lineWidth=s.lineWidth||r.lineWidth+1):s.color=s.color||Kt(s.color||l).brighten(s.brightness).get(),d[yt]=i.convertAttribs(r,c),wt([_t,"select"],function(e){d[e]=i.convertAttribs(o[e],d[yt])}),i.pointAttr=d,l=u.length;l--;){if(c=u[l],(r=c.options&&c.options.marker||c.options)&&r.enabled===!1&&(r.radius=0),e=!1,c.options)for(n in p)a(r[p[n]])&&(e=!0);e?(t=[],o=r.states||{},e=o[_t]=o[_t]||{},i.options.marker||(e.color=Kt(e.color||c.options.color).brighten(e.brightness||s.brightness).get()),t[yt]=i.convertAttribs(r,d[yt]),t[_t]=i.convertAttribs(o[_t],d[_t],t[yt]),t.select=i.convertAttribs(o.select,d.select,t[yt])):t=d,c.pointAttr=t}},destroy:function(){var e,t,n=this,i=n.chart,r=/\/5[0-9\.]+ (Safari|Mobile)\//.test(Z);Dt(n,"destroy"),At(n),n.legendItem&&n.chart.legend.destroyItem(n),wt(n.data,function(e){e.destroy()}),wt(["area","graph","dataLabelsGroup","group","tracker"],function(t){n[t]&&(e=r&&"group"===t?"hide":"destroy",n[t][e]())}),i.hoverSeries===n&&(i.hoverSeries=null),o(i.series,n);for(t in n)delete n[t]},drawDataLabels:function(){if(this.options.dataLabels.enabled){var e,n,i,r,o=this,s=o.data,l=o.options.dataLabels,u=o.dataLabelsGroup,d=o.chart,p=d.inverted,h=o.type;r=o.options.stacking;var f="column"===h||"bar"===h,g=null===l.verticalAlign,m=null===l.y;f&&(r?(g&&(l=Et(l,{verticalAlign:"middle"})),m&&(l=Et(l,{y:{top:14,middle:4,bottom:-6}[l.verticalAlign]}))):g&&(l=Et(l,{verticalAlign:"top"}))),u||(u=o.dataLabelsGroup=d.renderer.g("data-labels").attr({visibility:o.visible?ht:dt,zIndex:6}).translate(d.plotLeft,d.plotTop).add()),r=l.color,"auto"===r&&(r=null),l.style.color=c(r,o.color),wt(s,function(r){var s=r.barX,g=s&&s+r.barW/2||r.plotX||-999,b=c(r.plotY,-999),v=r.dataLabel,y=l.align,_=m?r.y>0?-6:12:l.y;i=l.formatter.call(r.getLabelConfig()),e=(p?d.plotWidth-b:g)+l.x,n=(p?d.plotHeight-g:b)+_,"column"===h&&(e+={left:-1,right:1}[y]*r.barW/2||0),p&&0>r.y&&(y="right",e-=10),v?(p&&!l.y&&(n=n+.9*t(v.styles.lineHeight)-v.getBBox().height/2),v.attr({text:i}).animate({x:e,y:n})):a(i)&&(v=r.dataLabel=d.renderer.text(i,e,n).attr({align:y,rotation:l.rotation,zIndex:1}).css(l.style).add(u),p&&!l.y&&v.attr({y:n+.9*t(v.styles.lineHeight)-v.getBBox().height/2})),f&&o.options.stacking&&(g=r.barY,b=r.barW,r=r.barH,v.align(l,null,{x:p?d.plotWidth-g-r:s,y:p?d.plotHeight-s-b:g,width:p?r:b,height:p?b:r}))})}},drawGraph:function(){var e,t,n=this,i=n.options,r=n.graph,o=[],a=n.area,s=n.group,l=i.lineColor||n.color,u=i.lineWidth,d=i.dashStyle,p=n.chart.renderer,h=n.yAxis.getThreshold(i.threshold||0),f=/^area/.test(n.type),g=[],m=[];wt(n.segments,function(e){if(t=[],wt(e,function(r,o){n.getPointSpline?t.push.apply(t,n.getPointSpline(e,r,o)):(t.push(o?bt:mt),o&&i.step&&t.push(r.plotX,e[o-1].plotY),t.push(r.plotX,r.plotY))}),e.length>1?o=o.concat(t):g.push(e[0]),f){var r,a=[],s=t.length;for(r=0;s>r;r++)a.push(t[r]);if(3===s&&a.push(bt,t[1],t[2]),i.stacking&&"areaspline"!==n.type)for(r=e.length-1;r>=0;r--)a.push(e[r].plotX,e[r].yBottom);else a.push(bt,e[e.length-1].plotX,h,bt,e[0].plotX,h);m=m.concat(a)}}),n.graphPath=o,n.singlePoints=g,f&&(e=c(i.fillColor,Kt(n.color).setOpacity(i.fillOpacity||.75).get()),a?a.animate({d:m}):n.area=n.chart.renderer.path(m).attr({fill:e}).add(s)),r?r.animate({d:o}):u&&(r={stroke:l,"stroke-width":u},d&&(r.dashstyle=d),n.graph=p.path(o).attr(r).add(s).shadow(i.shadow))},render:function(){var e,t,n=this,i=n.chart,r=n.options,o=r.animation,a=o&&n.animate;o=a?o&&o.duration||500:0;var s=n.clipRect,l=i.renderer;s||(s=n.clipRect=!i.hasRendered&&i.clipRect?i.clipRect:l.clipRect(0,0,i.plotSizeX,i.plotSizeY),i.clipRect||(i.clipRect=s)),n.group||(e=n.group=l.g("series"),i.inverted&&(t=function(){e.attr({width:i.plotWidth,height:i.plotHeight}).invert()},t(),St(i,"resize",t),St(n,"destroy",function(){At(i,"resize",t)})),e.clip(n.clipRect).attr({visibility:n.visible?ht:dt,zIndex:r.zIndex}).translate(i.plotLeft,i.plotTop).add(i.seriesGroup)),n.drawDataLabels(),a&&n.animate(!0),n.drawGraph&&n.drawGraph(),n.drawPoints(),n.options.enableMouseTracking!==!1&&n.drawTracker(),a&&n.animate(),setTimeout(function(){s.isAnimating=!1,(e=n.group)&&s!==i.clipRect&&s.renderer&&(e.clip(n.clipRect=i.clipRect),s.destroy())},o),n.isDirty=!1},redraw:function(){var e=this.chart,t=this.group;t&&(e.inverted&&t.attr({width:e.plotWidth,height:e.plotHeight}),t.animate({translateX:e.plotLeft,translateY:e.plotTop})),this.translate(),this.setTooltipPoints(!0),this.render()},setState:function(e){var t=this.options,n=this.graph,i=t.states;t=t.lineWidth,e=e||yt,this.state!==e&&(this.state=e,i[e]&&i[e].enabled===!1||(e&&(t=i[e].lineWidth||t+1),n&&!n.dashstyle&&n.attr({"stroke-width":t},e?0:500)))},setVisible:function(e,t){var n,i=this.chart,r=this.legendItem,o=this.group,a=this.tracker,s=this.dataLabelsGroup,l=this.data,c=i.options.chart.ignoreHiddenSeries;if(n=this.visible,n=(this.visible=e=e===E?!n:e)?"show":"hide",o&&o[n](),a)a[n]();else for(o=l.length;o--;)a=l[o],a.tracker&&a.tracker[n]();s&&s[n](),r&&i.legend.colorizeItem(this,e),this.isDirty=!0,this.options.stacking&&wt(i.series,function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)}),c&&(i.isDirtyBox=!0),t!==!1&&i.redraw(),Dt(this,n)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(e){this.selected=e=e===E?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),Dt(this,e?"select":"unselect")},drawTracker:function(){var e=this,t=e.options,n=[].concat(e.graphPath),i=n.length,r=e.chart,o=r.options.tooltip.snap,a=e.tracker,s=t.cursor;s=s&&{cursor:s};var l,c=e.singlePoints;if(i)for(l=i+1;l--;)n[l]===mt&&n.splice(l+1,0,n[l+1]-o,n[l+2],bt),(l&&n[l]===mt||l===i)&&n.splice(l,0,bt,n[l-2]+o,n[l-1]);for(l=0;c.length>l;l++)i=c[l],n.push(mt,i.plotX-o,i.plotY,bt,i.plotX+o,i.plotY);a?a.attr({d:n}):e.tracker=r.renderer.path(n).attr({isTracker:!0,stroke:vt,fill:gt,"stroke-width":t.lineWidth+2*o,visibility:e.visible?ht:dt,zIndex:1}).on(rt?"touchstart":"mouseover",function(){r.hoverSeries!==e&&e.onMouseOver()}).on("mouseout",function(){t.stickyTracking||e.onMouseOut()}).css(s).add(r.trackerGroup)}},xt=p(Ut),Ot.line=xt,xt=p(Ut,{type:"area"}),Ot.area=xt,xt=p(Ut,{type:"spline",getPointSpline:function(e,t,n){var i,r,o,a,s=t.plotX,l=t.plotY,c=e[n-1],u=e[n+1];if(n&&e.length-1>n){e=c.plotY,o=u.plotX,u=u.plotY;var d;i=(1.5*s+c.plotX)/2.5,r=(1.5*l+e)/2.5,o=(1.5*s+o)/2.5,a=(1.5*l+u)/2.5,d=(a-r)*(o-s)/(o-i)+l-a,r+=d,a+=d,r>e&&r>l?(r=q(e,l),a=2*l-r):e>r&&l>r&&(r=U(e,l),a=2*l-r),a>u&&a>l?(a=q(u,l),r=2*l-a):u>a&&l>a&&(a=U(u,l),r=2*l-a),t.rightContX=o,t.rightContY=a}return n?(t=["C",c.rightContX||c.plotX,c.rightContY||c.plotY,i||s,r||l,s,l],c.rightContX=c.rightContY=null):t=[mt,s,l],t}}),Ot.spline=xt,xt=p(xt,{type:"areaspline"}),Ot.areaspline=xt;var Vt=p(Ut,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){Ut.prototype.init.apply(this,arguments);var e=this,t=e.chart;t.hasColumn=!0,t.hasRendered&&wt(t.series,function(t){t.type===e.type&&(t.isDirty=!0)})},translate:function(){var t,n,i=this,r=i.chart,o=i.options,s=o.stacking,l=o.borderWidth,u=0,d=i.xAxis.reversed,p=i.xAxis.categories,h={};Ut.prototype.translate.apply(i),wt(r.series,function(e){e.type===i.type&&e.visible&&(e.options.stacking?(t=e.stackKey,h[t]===E&&(h[t]=u++),n=h[t]):n=u++,e.columnIndex=n)});var f=i.data,g=i.closestPoints;p=V(f[1]?f[g].plotX-f[g-1].plotX:r.plotSizeX/(p&&p.length||1)),g=p*o.groupPadding;var m=(p-2*g)/u,b=o.pointWidth,v=a(b)?(m-b)/2:m*o.pointPadding,y=q(c(b,m-2*v),1),_=v+(g+((d?u-i.columnIndex:i.columnIndex)||0)*m-p/2)*(d?-1:1),x=i.yAxis.getThreshold(o.threshold||0),k=c(o.minPointLength,5);wt(f,function(t){var n,c=t.plotY,u=t.yBottom||x,d=t.plotX+_,p=W(U(c,u)),h=W(q(c,u)-p),f=i.yAxis.stacks[(0>t.y?"-":"")+i.stackKey];s&&i.visible&&f&&f[t.x]&&f[t.x].setOffset(_,y),k>V(h)&&(k&&(h=k,p=V(p-x)>k?u-k:x-(x>=c?k:0)),n=p-3),e(t,{barX:d,barY:p,barW:y,barH:h}),t.shapeType="rect",c=e(r.renderer.Element.prototype.crisp.apply({},[l,d,p,y,h]),{r:o.borderRadius}),l%2&&(c.y-=1,c.height+=1),t.shapeArgs=c,t.trackerArgs=a(n)&&Et(t.shapeArgs,{height:q(6,h+3),y:n})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var e,t,n=this,i=n.options,r=n.chart.renderer;wt(n.data,function(o){var a=o.plotY;a===E||isNaN(a)||null===o.y||(e=o.graphic,t=o.shapeArgs,e?(Rt(e),e.animate(t)):o.graphic=r[o.shapeType](t).attr(o.pointAttr[o.selected?"select":yt]).add(n.group).shadow(i.shadow))})},drawTracker:function(){var e,t,n,i=this,r=i.chart,o=r.renderer,a=+new Date,l=i.options.cursor,c=l&&{cursor:l};wt(i.data,function(l){t=l.tracker,e=l.trackerArgs||l.shapeArgs,delete e.strokeWidth,null!==l.y&&(t?t.attr(e):l.tracker=o[l.shapeType](e).attr({isTracker:a,fill:vt,visibility:i.visible?ht:dt,zIndex:1}).on(rt?"touchstart":"mouseover",function(e){n=e.relatedTarget||e.fromElement,r.hoverSeries!==i&&s(n,"isTracker")!==a&&i.onMouseOver(),l.onMouseOver()}).on("mouseout",function(e){i.options.stickyTracking||(n=e.relatedTarget||e.toElement,s(n,"isTracker")!==a&&i.onMouseOut())}).css(c).add(l.group||r.trackerGroup))})},animate:function(e){var t=this,n=t.data;e||(wt(n,function(e){var n=e.graphic;e=e.shapeArgs,n&&(n.attr({height:0,y:t.yAxis.translate(0,0,1)}),n.animate({height:e.height,y:e.y},t.options.animation))}),t.animate=null)},remove:function(){var e=this,t=e.chart;t.hasRendered&&wt(t.series,function(t){t.type===e.type&&(t.isDirty=!0)}),Ut.prototype.remove.apply(e,arguments)}});Ot.column=Vt,xt=p(Vt,{type:"bar",init:function(e){e.inverted=this.inverted=!0,Vt.prototype.init.apply(this,arguments)}}),Ot.bar=xt,xt=p(Ut,{type:"scatter",translate:function(){var e=this;Ut.prototype.translate.apply(e),wt(e.data,function(t){t.shapeType="circle",t.shapeArgs={x:t.plotX,y:t.plotY,r:e.chart.options.tooltip.snap}})},drawTracker:function(){var e,t=this,n=t.options.cursor,i=n&&{cursor:n};wt(t.data,function(n){(e=n.graphic)&&e.attr({isTracker:!0}).on("mouseover",function(){t.onMouseOver(),n.onMouseOver()}).on("mouseout",function(){t.options.stickyTracking||t.onMouseOut()}).css(i)})},cleanData:function(){}}),Ot.scatter=xt,xt=p(qt,{init:function(){qt.prototype.init.apply(this,arguments);var t,n=this;return e(n,{visible:n.visible!==!1,name:c(n.name,"Slice")}),t=function(){n.slice()},St(n,"select",t),St(n,"unselect",t),n},setVisible:function(e){var t,n=this.series.chart,i=this.tracker,r=this.dataLabel,o=this.connector,a=this.shadowGroup;t=(this.visible=e=e===E?!this.visible:e)?"show":"hide",this.group[t](),i&&i[t](),r&&r[t](),o&&o[t](),a&&a[t](),this.legendItem&&n.legend.colorizeItem(this,e)},slice:function(e,t,n){var i=this.series.chart,r=this.slicedTranslation;g(n,i),c(t,!0),e=this.sliced=a(e)?e:!this.sliced,e={translateX:e?r[0]:i.plotLeft,translateY:e?r[1]:i.plotTop},this.group.animate(e),this.shadowGroup&&this.shadowGroup.animate(e)}}),xt=p(Ut,{type:"pie",isCartesian:!1,pointClass:xt,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var e=this;wt(e.data,function(t){var n=t.graphic;t=t.shapeArgs;var i=-Y/2;n&&(n.attr({r:0,start:i,end:i}),n.animate({r:t.r,start:t.start,end:t.end},e.options.animation))}),e.animate=null},translate:function(){var e,n,i,r,o,a,s,l=0,c=this,u=-.25,d=c.options,p=d.slicedOffset,h=p+d.borderWidth,f=d.center.concat([d.size,d.innerSize||0]),g=c.chart,m=g.plotWidth,b=g.plotHeight,v=c.data,y=2*Y,_=U(m,b),x=d.dataLabels.distance;f=Tt(f,function(e,n){return(o=/%$/.test(e))?[m,b,_,_][n]*t(e)/100:e}),c.getX=function(e,t){return i=$.asin((e-f[1])/(f[2]/2+x)),f[0]+(t?-1:1)*G(i)*(f[2]/2+x)},c.center=f,wt(v,function(e){l+=e.y}),wt(v,function(t){r=l?t.y/l:0,e=H(1e3*u*y)/1e3,u+=r,n=H(1e3*u*y)/1e3,t.shapeType="arc",t.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/2,start:e,end:n},i=(n+e)/2,t.slicedTranslation=Tt([G(i)*p+g.plotLeft,X(i)*p+g.plotTop],H),a=G(i)*f[2]/2,c.radiusY=s=X(i)*f[2]/2,t.tooltipPos=[f[0]+.7*a,f[1]+.7*s],t.labelPos=[f[0]+a+G(i)*x,f[1]+s+X(i)*x,f[0]+a+G(i)*h,f[1]+s+X(i)*h,f[0]+a,f[1]+s,0>x?"center":y/4>i?"left":"right",i],t.percentage=100*r,t.total=l}),this.setTooltipPoints()},render:function(){this.drawPoints(),this.options.enableMouseTracking!==!1&&this.drawTracker(),this.drawDataLabels(),this.options.animation&&this.animate&&this.animate(),this.isDirty=!1},drawPoints:function(){var t,n,i,r,o,a=this.chart,s=a.renderer,l=this.options.shadow;wt(this.data,function(c){n=c.graphic,o=c.shapeArgs,i=c.group,r=c.shadowGroup,l&&!r&&(r=c.shadowGroup=s.g("shadow").attr({zIndex:4}).add()),i||(i=c.group=s.g("point").attr({zIndex:5}).add()),t=c.sliced?c.slicedTranslation:[a.plotLeft,a.plotTop],i.translate(t[0],t[1]),r&&r.translate(t[0],t[1]),n?n.animate(o):c.graphic=s.arc(o).attr(e(c.pointAttr[yt],{"stroke-linejoin":"round"})).add(c.group).shadow(l,r),c.visible===!1&&c.setVisible(!1)})},drawDataLabels:function(){var e,n,i,r,o,a,s,l,u=this.data,d=this.chart,p=this.options.dataLabels,h=c(p.connectorPadding,10),f=c(p.connectorWidth,1),g=p.distance,m=this.radiusY,b=g>0,v=this.center[1],y=[[],[]],_=2;if(p.enabled)for(Ut.prototype.drawDataLabels.apply(this),wt(u,function(e){y[Y/2>e.labelPos[7]?0:1].push(e)}),y[1].reverse(),s=function(e,t){return t.y-e.y},u=y[0][0]&&y[0][0].dataLabel&&t(y[0][0].dataLabel.styles.lineHeight);_--;){var x,k=[],w=[],C=y[_],T=C.length;for(l=v+m-g;v-m+g>=l;l+=u)k.push(l);if(a=k.length,T>a){for(i=[].concat(C),i.sort(s),l=T;l--;)i[l].rank=l;for(l=T;l--;)C[l].rank>=a&&C.splice(l,1);T=C.length}for(l=0;T>l;l++){for(e=C[l],i=e.labelPos,e=9999,o=0;a>o;o++)n=V(k[o]-i[1]),e>n&&(e=n,x=o);if(l>x&&null!==k[l])x=l;else if(T-l+x>a&&null!==k[l])x=a-T+l;else for(;null===k[x];)x++;w.push({i:x,y:k[x]}),k[x]=null}for(w.sort(s),l=0;T>l;l++)e=C[l],i=e.labelPos,n=e.dataLabel,o=w.pop(),r=i[1],a=e.visible===!1?dt:ht,x=o.i,o=o.y,(r>o&&null!==k[x+1]||o>r&&null!==k[x-1])&&(o=r),r=this.getX(o,_),n.attr({visibility:a,align:i[6]})[n.moved?"animate":"attr"]({x:r+p.x+({left:h,right:-h}[i[6]]||0),y:o+p.y}),n.moved=!0,b&&f&&(n=e.connector,i=[mt,r+("left"===i[6]?5:-5),o,bt,r,o,bt,i[2],i[3],bt,i[4],i[5]],n?(n.animate({d:i}),n.attr("visibility",a)):e.connector=n=this.chart.renderer.path(i).attr({"stroke-width":f,stroke:p.connectorColor||"#606060",visibility:a,zIndex:3}).translate(d.plotLeft,d.plotTop).add())}},drawTracker:Vt.prototype.drawTracker,getSymbol:function(){}}),Ot.pie=xt,z.Highcharts={Chart:y,dateFormat:w,pathAnim:T,getOptions:function(){return k},numberFormat:h,Point:qt,Color:Kt,Renderer:_,seriesTypes:Ot,setOptions:function(e){return k=Et(k,e),m(),k},Series:Ut,addEvent:St,createElement:d,discardElement:b,css:u,each:wt,extend:e,map:Tt,merge:Et,pick:c,extendClass:p,product:"Highcharts",version:"2.1.6"}})();