(function(G,ga){"object"===typeof module&&module.exports?module.exports=G.document?ga(G):ga:G.Highcharts=ga(G)})("undefined"!==typeof window?window:this,function(G){function ga(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw Error(c);G.console&&console.log(c)}function wb(a,b,c){this.options=b;this.elem=a;this.prop=c}function H(){var a,b=arguments,c,d={},e=function(a,b){var c,d;"object"!==typeof a&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=z.isObject(c,!0)&&
"renderTo"!==d&&"number"!==typeof c.nodeType?e(a[d]||{},c):b[d]);return a};!0===b[0]&&(d=b[1],b=Array.prototype.slice.call(b,2));c=b.length;for(a=0;a<c;a++)d=e(d,b[a]);return d}function D(a,b){return parseInt(a,b||10)}function Ba(a){return"string"===typeof a}function Ca(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a}function ua(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function w(a){return a!==B&&null!==a}function Q(a,b,c){var d,
e;if(Ba(b))w(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(w(b)&&da(b))for(d in b)a.setAttribute(d,b[d]);return e}function xa(a){return Ca(a)?a:[a]}function Wa(a,b,c){if(b)return setTimeout(a,b,c);a.call(0,c)}function O(a,b){Da&&!ha&&b&&b.opacity!==B&&(b.filter="alpha(opacity="+100*b.opacity+")");v(a.style,b)}function ea(a,b,c,d,e){a=E.createElement(a);b&&v(a,b);e&&O(a,{padding:0,border:"none",margin:0});c&&O(a,c);d&&d.appendChild(a);return a}function va(a,b){var c=function(){};
c.prototype=new a;v(c.prototype,b);return c}function Ja(a,b,c){return Array((b||2)+1-String(a).length).join(c||0)+a}function eb(a){return 6E4*(fb&&fb(a)||xb||0)}function Qa(a,b){for(var c="{",d=!1,e,f,g,h,k,l=[];-1!==(c=a.indexOf(c));){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");k=g.length;e=b;for(h=0;h<k;h++)e=e[g[h]];f.length&&(f=f.join(":"),g=/\.([0-9])/,h=V.lang,/f$/.test(f)?(k=(k=f.match(g))?k[1]:-1,null!==e&&(e=z.numberFormat(e,k,h.decimalPoint,-1<f.indexOf(",")?h.thousandsSep:
""))):e=Xa(f,e))}l.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}l.push(a);return l.join("")}function yb(a){return aa.pow(10,X(aa.log(a)/aa.LN10))}function zb(a,b,c,d,e){var f,g=a;c=s(c,1);f=a/c;b||(b=[1,2,2.5,5,10],!1===d&&(1===c?b=[1,2,5,10]:0.1>=c&&(b=[1/c])));for(d=0;d<b.length&&!(g=b[d],e&&g*c>=a||!e&&f<=(b[d]+(b[d+1]||b[d]))/2);d++);return g*c}function ob(a,b){var c=a.length,d,e;for(e=0;e<c;e++)a[e].safeI=e;a.sort(function(a,c){d=b(a,c);return 0===d?a.safeI-c.safeI:d});for(e=0;e<c;e++)delete a[e].safeI}
function Ra(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function Ka(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function Ya(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Za(a){pb||(pb=ea(Sa));a&&pb.appendChild(a);pb.innerHTML=""}function ca(a,b){return parseFloat(a.toPrecision(b||14))}function gb(a,b){b.renderer.globalAnimation=s(a,b.animation)}function $a(a){return da(a)?H(a):{duration:a?500:0}}function Kb(){var a=V.global,b=
a.useUTC,c=b?"getUTC":"get",d=b?"setUTC":"set";oa=a.Date||G.Date;xb=b&&a.timezoneOffset;fb=b&&a.getTimezoneOffset;qb=function(a,c,d,h,k,l){var m;b?(m=oa.UTC.apply(0,arguments),m+=eb(m)):m=(new oa(a,c,s(d,1),s(h,0),s(k,0),s(l,0))).getTime();return m};Ab=c+"Minutes";Bb=c+"Hours";Cb=c+"Day";ab=c+"Date";hb=c+"Month";ib=c+"FullYear";Lb=d+"Milliseconds";Mb=d+"Seconds";Nb=d+"Minutes";Ob=d+"Hours";rb=d+"Date";Db=d+"Month";Eb=d+"FullYear"}function pa(a){if(!(this instanceof pa))return new pa(a);this.init(a)}
function M(){}function bb(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;c||d||this.addLabel()}function Pb(a,b,c,d,e){var f=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.total=null;this.points={};this.stack=e;this.rightCliff=this.leftCliff=0;this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":"top"),y:s(b.y,f?4:c?14:-6),x:s(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign||(f?c?"right":"left":
"center")}var B,E=G.document,aa=Math,F=aa.round,X=aa.floor,ya=aa.ceil,x=aa.max,I=aa.min,S=aa.abs,Y=aa.cos,fa=aa.sin,wa=aa.PI,ma=2*wa/360,Ea=G.navigator&&G.navigator.userAgent||"",Qb=G.opera,Da=/(msie|trident|edge)/i.test(Ea)&&!Qb,sb=E&&8===E.documentMode,tb=!Da&&/AppleWebKit/.test(Ea),Ta=/Firefox/.test(Ea),Rb=/(Mobile|Android|Windows Phone)/.test(Ea),La="http://www.w3.org/2000/svg",ha=E&&E.createElementNS&&!!E.createElementNS(La,"svg").createSVGRect,Vb=Ta&&4>parseInt(Ea.split("Firefox/")[1],10),na=
E&&!ha&&!Da&&!!E.createElement("canvas").getContext,jb,kb,Sb={},Fb=0,pb,V,Xa,J,Fa=function(){},W=[],lb=0,Sa="div",Z="M",U="L",Wb=/[0-9]/g,ub=["plotTop","marginRight","marginBottom","plotLeft"],oa,qb,xb,fb,Ab,Bb,Cb,ab,hb,ib,Lb,Mb,Nb,Ob,rb,Db,Eb,N={},z;z=G.Highcharts?ga(16,!0):{win:G};z.seriesTypes=N;var Ma=[],qa,ra,t,Ga,Gb,Ha,P,$,K,cb,Na;wb.prototype={dSetter:function(){var a=this.paths[0],b=this.paths[1],c=[],d=this.now,e=a.length,f;if(1===d)c=this.toD;else if(e===b.length&&1>d)for(;e--;)f=parseFloat(a[e]),
c[e]=isNaN(f)?a[e]:d*parseFloat(b[e]-f)+f;else c=b;this.elem.attr("d",c)},update:function(){var a=this.elem,b=this.prop,c=this.now,d=this.options.step;if(this[b+"Setter"])this[b+"Setter"]();else a.attr?a.element&&a.attr(b,c):a.style[b]=c+this.unit;d&&d.call(a,c,this)},run:function(a,b,c){var d=this,e=function(a){return e.stopped?!1:d.step(a)},f;this.startTime=+new oa;this.start=a;this.end=b;this.unit=c;this.now=this.start;this.pos=0;e.elem=this.elem;e()&&1===Ma.push(e)&&(e.timerId=setInterval(function(){for(f=
0;f<Ma.length;f++)Ma[f]()||Ma.splice(f--,1);Ma.length||clearInterval(e.timerId)},13))},step:function(a){var b=+new oa,c,d=this.options;c=this.elem;var e=d.complete,f=d.duration,g=d.curAnim,h;if(c.attr&&!c.element)c=!1;else if(a||b>=f+this.startTime){this.now=this.end;this.pos=1;this.update();a=g[this.prop]=!0;for(h in g)!0!==g[h]&&(a=!1);a&&e&&e.call(c);c=!1}else this.pos=d.easing((b-this.startTime)/f),this.now=this.start+(this.end-this.start)*this.pos,this.update(),c=!0;return c},initPath:function(a,
b,c){function d(a){for(q=a.length;q--;)a[q]!==Z&&a[q]!==U||a.splice(q+1,0,a[q+1],a[q+2],a[q+1],a[q+2])}function e(a,b){for(;a.length<n;){a[0]=b[n-a.length];var c=a.slice(0,m);[].splice.apply(a,[0,0].concat(c));r&&(c=a.slice(a.length-m),[].splice.apply(a,[a.length,0].concat(c)),q--)}a[0]="M"}function f(a,b){for(var c=(n-a.length)/m;0<c&&c--;)p=a.slice().splice(a.length/C-m,m*C),p[0]=b[n-m-c*m],l&&(p[m-6]=p[m-2],p[m-5]=p[m-1]),[].splice.apply(a,[a.length/C,0].concat(p)),r&&c--}b=b||"";var g,h=a.startX,
k=a.endX,l=-1<b.indexOf("C"),m=l?7:3,n,p,q;b=b.split(" ");c=c.slice();var r=a.isArea,C=r?2:1,u;l&&(d(b),d(c));if(h&&k){for(q=0;q<h.length;q++)if(h[q]===k[0]){g=q;break}else if(h[0]===k[k.length-h.length+q]){g=q;u=!0;break}void 0===g&&(b=[])}b.length&&z.isNumber(g)&&(n=c.length+g*C*m,u?(e(b,c),f(c,b)):(e(c,b),f(b,c)));return[b,c]}};var v=z.extend=function(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a},da=z.isObject=function(a,b){return a&&"object"===typeof a&&(!b||!Ca(a))},L=z.isNumber=function(a){return"number"===
typeof a&&!isNaN(a)},s=z.pick=function(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],c!==B&&null!==c)return c},mb=z.wrap=function(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);a.unshift(d);return c.apply(this,a)}};Xa=function(a,b,c){if(!w(b)||isNaN(b))return V.lang.invalidDate||"";a=s(a,"%Y-%m-%d %H:%M:%S");var d=new oa(b-eb(b)),e,f=d[Bb](),g=d[Cb](),h=d[ab](),k=d[hb](),l=d[ib](),m=V.lang,n=m.weekdays,p=m.shortWeekdays,d=v({a:p?p[g]:n[g].substr(0,3),A:n[g],
d:Ja(h),e:Ja(h,2," "),w:g,b:m.shortMonths[k],B:m.months[k],m:Ja(k+1),y:l.toString().substr(2,2),Y:l,H:Ja(f),k:f,I:Ja(f%12||12),l:f%12||12,M:Ja(d[Ab]()),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:Ja(d.getSeconds()),L:Ja(F(b%1E3),3)},z.dateFormats);for(e in d)for(;-1!==a.indexOf("%"+e);)a=a.replace("%"+e,"function"===typeof d[e]?d[e](b):d[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};J={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};z.numberFormat=
function(a,b,c,d){a=+a||0;b=+b;var e=V.lang,f=(a.toString().split(".")[1]||"").length,g,h,k=Math.abs(a);-1===b?b=Math.min(f,20):L(b)||(b=2);g=String(D(k.toFixed(b)));h=3<g.length?g.length%3:0;c=s(c,e.decimalPoint);d=s(d,e.thousandsSep);a=(0>a?"-":"")+(h?g.substr(0,h)+d:"");a+=g.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+d);b&&(d=Math.abs(k-g+Math.pow(10,-Math.max(b,f)-1)),a+=c+d.toFixed(b).slice(2));return a};Math.easeInOutSine=function(a){return-0.5*(Math.cos(Math.PI*a)-1)};qa=function(a,b){var c;return"width"===
b?Math.min(a.offsetWidth,a.scrollWidth)-qa(a,"padding-left")-qa(a,"padding-right"):"height"===b?Math.min(a.offsetHeight,a.scrollHeight)-qa(a,"padding-top")-qa(a,"padding-bottom"):(c=G.getComputedStyle(a,void 0))&&D(c.getPropertyValue(b))};ra=function(a,b){return b.indexOf?b.indexOf(a):[].indexOf.call(b,a)};Ga=function(a,b){return[].filter.call(a,b)};Ha=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};Gb=function(a){var b=E.documentElement;a=a.getBoundingClientRect();
return{top:a.top+(G.pageYOffset||b.scrollTop)-(b.clientTop||0),left:a.left+(G.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}};Na=function(a){for(var b=Ma.length;b--;)Ma[b].elem===a&&(Ma[b].stopped=!0)};t=function(a,b){return Array.prototype.forEach.call(a,b)};P=function(a,b,c){function d(b){b.target=b.srcElement||G;c.call(a,b)}var e=a.hcEvents=a.hcEvents||{};a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&(a.hcEventsIE||(a.hcEventsIE={}),a.hcEventsIE[c.toString()]=d,a.attachEvent("on"+
b,d));e[b]||(e[b]=[]);e[b].push(c)};$=function(a,b,c){function d(b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.attachEvent&&(c=a.hcEventsIE[c.toString()],a.detachEvent("on"+b,c))}function e(){var c,e;if(a.nodeName)for(e in b?(c={},c[b]=!0):c=g,c)if(g[e])for(c=g[e].length;c--;)d(e,g[e][c])}var f,g=a.hcEvents,h;g&&(b?(f=g[b]||[],c?(h=ra(c,f),-1<h&&(f.splice(h,1),g[b]=f),d(b,c)):(e(),g[b]=[])):(e(),a.hcEvents={}))};K=function(a,b,c,d){var e;e=a.hcEvents;var f,g;c=c||{};if(E.createEvent&&
(a.dispatchEvent||a.fireEvent))e=E.createEvent("Events"),e.initEvent(b,!0,!0),e.target=a,v(e,c),a.dispatchEvent?a.dispatchEvent(e):a.fireEvent(b,e);else if(e)for(e=e[b]||[],f=e.length,c.preventDefault||(c.preventDefault=function(){c.defaultPrevented=!0}),c.target=a,c.type||(c.type=b),b=0;b<f;b++)(g=e[b])&&!1===g.call(a,c)&&c.preventDefault();d&&!c.defaultPrevented&&d(c)};cb=function(a,b,c){var d,e="",f,g,h;da(c)||(d=arguments,c={duration:d[2],easing:d[3],complete:d[4]});L(c.duration)||(c.duration=
400);c.easing="function"===typeof c.easing?c.easing:Math[c.easing]||Math.easeInOutSine;c.curAnim=H(b);for(h in b)g=new wb(a,c,h),f=null,"d"===h?(g.paths=g.initPath(a,a.d,b.d),g.toD=b.d,d=0,f=1):a.attr?d=a.attr(h):(d=parseFloat(qa(a,h))||0,"opacity"!==h&&(e="px")),f||(f=b[h]),f.match&&f.match("px")&&(f=f.replace(/px/g,"")),g.run(d,f,e)};G.jQuery&&(G.jQuery.fn.highcharts=function(){var a=[].slice.call(arguments);if(this[0])return a[0]?(new (z[Ba(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),this):W[Q(this[0],
"data-highcharts-chart")]});E&&!E.defaultView&&(qa=function(a,b){var c;c={width:"clientWidth",height:"clientHeight"}[b];if(a.style[b])return D(a.style[b]);"opacity"===b&&(b="filter");if(c)return a.style.zoom=1,Math.max(a[c]-2*qa(a,"padding"),0);c=a.currentStyle[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})];"filter"===b&&(c=c.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100}));return""===c?1:D(c)});Array.prototype.forEach||(t=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});Array.prototype.indexOf||(ra=function(a,b){var c,d=0;if(b)for(c=b.length;d<c;d++)if(b[d]===a)return d;return-1});Array.prototype.filter||(Ga=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)b(a[d],d)&&c.push(a[d]);return c});z.Fx=wb;z.inArray=ra;z.each=t;z.grep=Ga;z.offset=Gb;z.map=Ha;z.addEvent=P;z.removeEvent=$;z.fireEvent=K;z.animate=cb;z.animObject=$a;z.stop=Na;V={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".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:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/modules/canvas-tools.js",
VMLRadialGradientURL:"http://code.highcharts.com/4.2.7/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"},widthAdjust:-44},subtitle:{text:"",align:"center",style:{color:"#555555"},
widthAdjust:-44},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":z.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},
verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:0.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",
fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:!0,animation:ha,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:Rb?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",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:"9px"}}};var ia=V.plotOptions,ja=ia.line;Kb();pa.prototype={parsers:[{regex:/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*\)/,parse:function(a){return[D(a[1]),D(a[2]),D(a[3]),parseFloat(a[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(a){return[D(a[1],16),D(a[2],16),D(a[3],16),
1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[D(a[1]),D(a[2]),D(a[3]),1]}}],init:function(a){var b,c,d,e;if((this.input=a)&&a.stops)this.stops=Ha(a.stops,function(a){return new pa(a[1])});else for(d=this.parsers.length;d--&&!c;)e=this.parsers[d],(b=e.regex.exec(a))&&(c=e.parse(b));this.rgba=c||[]},get:function(a){var b=this.input,c=this.rgba,d;this.stops?(d=H(b),d.stops=[].concat(d.stops),t(this.stops,function(b,c){d.stops[c]=[d.stops[c][0],
b.get(a)]})):d=c&&L(c[0])?"rgb"===a||!a&&1===c[3]?"rgb("+c[0]+","+c[1]+","+c[2]+")":"a"===a?c[3]:"rgba("+c.join(",")+")":b;return d},brighten:function(a){var b,c=this.rgba;if(this.stops)t(this.stops,function(b){b.brighten(a)});else if(L(a)&&0!==a)for(b=0;3>b;b++)c[b]+=D(255*a),0>c[b]&&(c[b]=0),255<c[b]&&(c[b]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this}};M.prototype={opacity:1,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textDecoration textOverflow textShadow".split(" "),
init:function(a,b){this.element="span"===b?ea(b):E.createElementNS(La,b);this.renderer=a},animate:function(a,b,c){b=s(b,this.renderer.globalAnimation,!0);Na(this);b?(c&&(b.complete=c),cb(this,a,b)):this.attr(a,null,c);return this},colorGradient:function(a,b,c){var d=this.renderer,e,f,g,h,k,l,m,n,p,q,r,C=[],u;a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient");if(f){g=a[f];k=d.gradients;m=a.stops;q=c.radialReference;Ca(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});
"radialGradient"===f&&q&&!w(g.gradientUnits)&&(h=g,g=H(g,d.getRadialAttr(q,h),{gradientUnits:"userSpaceOnUse"}));for(r in g)"id"!==r&&C.push(r,g[r]);for(r in m)C.push(m[r]);C=C.join(",");k[C]?q=k[C].attr("id"):(g.id=q="highcharts-"+Fb++,k[C]=l=d.createElement(f).attr(g).add(d.defs),l.radAttr=h,l.stops=[],t(m,function(a){0===a[1].indexOf("rgba")?(e=pa(a[1]),n=e.get("rgb"),p=e.get("a")):(n=a[1],p=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":n,"stop-opacity":p}).add(l);l.stops.push(a)}));
u="url("+d.url+"#"+q+")";c.setAttribute(b,u);c.gradient=C;a.toString=function(){return u}}},applyTextShadow:function(a){var b=this.element,c,d=-1!==a.indexOf("contrast"),e={},f=this.renderer.forExport,g=f||b.style.textShadow!==B&&!Da;d&&(e.textShadow=a=a.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));if(tb||f)e.textRendering="geometricPrecision";g?this.css(e):(this.fakeTS=!0,this.ySetter=this.xSetter,c=[].slice.call(b.getElementsByTagName("tspan")),t(a.split(/\s?,\s?/g),function(a){var d=
b.firstChild,e,f;a=a.split(" ");e=a[a.length-1];(f=a[a.length-2])&&t(c,function(a,c){var g;0===c&&(a.setAttribute("x",b.getAttribute("x")),c=b.getAttribute("y"),a.setAttribute("y",c||0),null===c&&b.setAttribute("y",0));g=a.cloneNode(1);Q(g,{"class":"highcharts-text-shadow",fill:e,stroke:e,"stroke-opacity":1/x(D(f),3),"stroke-width":f,"stroke-linejoin":"round"});b.insertBefore(g,d)})}))},attr:function(a,b,c){var d,e=this.element,f,g=this,h;"string"===typeof a&&b!==B&&(d=a,a={},a[d]=b);if("string"===
typeof a)g=(this[a+"Getter"]||this._defaultGetter).call(this,a,e);else{for(d in a)b=a[d],h=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(d)&&(f||(this.symbolAttr(a),f=!0),h=!0),!this.rotation||"x"!==d&&"y"!==d||(this.doTransform=!0),h||(h=this[d+"Setter"]||this._defaultSetter,h.call(this,b,d,e),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(d)&&this.updateShadows(d,b,h));this.doTransform&&(this.updateTransform(),this.doTransform=!1)}c&&
c();return g},updateShadows:function(a,b,c){for(var d=this.shadows,e=d.length;e--;)c.call(d[e],"height"===a?Math.max(b-(d[e].cutHeight||0),0):"d"===a?this.d:b,a,d[e])},addClass:function(a){var b=this.element,c=Q(b,"class")||"";-1===c.indexOf(a)&&Q(b,"class",c+" "+a);return this},symbolAttr:function(a){var b=this;t("x y r start end width height innerR anchorX anchorY".split(" "),function(c){b[c]=s(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",
a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a){var b,c={},d,e=this.strokeWidth||0;d=F(e)%2/2;a.x=X(a.x||this.x||0)+d;a.y=X(a.y||this.y||0)+d;a.width=X((a.width||this.width||0)-2*d);a.height=X((a.height||this.height||0)-2*d);a.strokeWidth=e;for(b in a)this[b]!==a[b]&&(this[b]=c[b]=a[b]);return c},css:function(a){var b=this.styles,c={},d=this.element,e,f,g="";e=!b;a&&a.color&&(a.fill=a.color);if(b)for(f in a)a[f]!==b[f]&&(c[f]=a[f],e=!0);if(e){e=this.textWidth=a&&a.width&&"text"===
d.nodeName.toLowerCase()&&D(a.width)||this.textWidth;b&&(a=v(b,c));this.styles=a;e&&(na||!ha&&this.renderer.forExport)&&delete a.width;if(Da&&!ha)O(this.element,a);else{b=function(a,b){return"-"+b.toLowerCase()};for(f in a)g+=f.replace(/([A-Z])/g,b)+":"+a[f]+";";Q(d,"style",g)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;kb&&"click"===a?(d.ontouchstart=function(a){c.touchEventFired=oa.now();a.preventDefault();b.call(d,a)},d.onclick=function(a){(-1===
Ea.indexOf("Android")||1100<oa.now()-(c.touchEventFired||0))&&b.call(d,a)}):d["on"+a]=b;return this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr));return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=!0;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||
0,c=this.scaleX,d=this.scaleY,e=this.inverted,f=this.rotation,g=this.element;e&&(a+=this.attr("width"),b+=this.attr("height"));a=["translate("+a+","+b+")"];e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(g.getAttribute("x")||0)+" "+(g.getAttribute("y")||0)+")");(w(c)||w(d))&&a.push("scale("+s(c,1)+" "+s(d,1)+")");a.length&&g.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){var d,e,f,g,h={};e=this.renderer;
f=e.alignedObjects;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!c||Ba(c))this.alignTo=d=c||"renderer",ua(f,this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=s(c,e[d],e);d=a.align;e=a.verticalAlign;f=(c.x||0)+(a.x||0);g=(c.y||0)+(a.y||0);if("right"===d||"center"===d)f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=F(f);if("bottom"===e||"middle"===e)g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=F(g);
this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a,b){var c,d=this.renderer,e,f,g,h=this.element,k=this.styles;e=this.textStr;var l,m=h.style,n,p=d.cache,q=d.cacheKeys,r;f=s(b,this.rotation);g=f*ma;e!==B&&(r=e.toString().replace(Wb,"0")+["",f||0,k&&k.fontSize,h.style.width].join());r&&!a&&(c=p[r]);if(!c){if(h.namespaceURI===La||d.forExport){try{n=this.fakeTS&&function(a){t(h.querySelectorAll(".highcharts-text-shadow"),function(b){b.style.display=
a})},Ta&&m.textShadow?(l=m.textShadow,m.textShadow=""):n&&n("none"),c=h.getBBox?v({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight},l?m.textShadow=l:n&&n("")}catch(C){}if(!c||0>c.width)c={width:0,height:0}}else c=this.htmlGetBBox();d.isSVG&&(d=c.width,e=c.height,Da&&k&&"11px"===k.fontSize&&"16.9"===e.toPrecision(3)&&(c.height=e=14),f&&(c.width=S(e*fa(g))+S(d*Y(g)),c.height=S(e*Y(g))+S(d*fa(g))));if(r&&0<c.height){for(;250<q.length;)delete p[q.shift()];p[r]||q.push(r);p[r]=c}}return c},show:function(a){return this.attr({visibility:a?
"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=this.renderer,c=this.element,d;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)d=this.zIndexSetter();d||(a?a.element:b.box).appendChild(c);if(this.onAdd)this.onAdd();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.renderer.isSVG&&"SPAN"===b.nodeName&&a.parentGroup,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;Na(a);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);for(c&&t(c,function(b){a.safeRemoveChild(b)});d&&d.div&&0===d.div.childNodes.length;)b=d.parentGroup,a.safeRemoveChild(d.div),delete d.div,
d=b;a.alignTo&&ua(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},shadow:function(a,b,c){var d=[],e,f,g=this.element,h,k,l,m;if(a){k=s(a.width,3);l=(a.opacity||0.15)/k;m=this.parentInverted?"(-1,-1)":"("+s(a.offsetX,1)+", "+s(a.offsetY,1)+")";for(e=1;e<=k;e++)f=g.cloneNode(0),h=2*k+1-2*e,Q(f,{isShadow:"true",stroke:a.color||"black","stroke-opacity":l*e,"stroke-width":h,transform:"translate"+m,fill:"none"}),c&&(Q(f,"height",x(Q(f,"height")-h,0)),f.cutHeight=h),b?b.element.appendChild(f):
g.parentNode.insertBefore(f,g),d.push(f);this.shadows=d}return this},xGetter:function(a){"circle"===this.element.nodeName&&(a={x:"cx",y:"cy"}[a]||a);return this._defaultGetter(a)},_defaultGetter:function(a){a=s(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,c){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");c.setAttribute(b,a);this[b]=a},dashstyleSetter:function(a){var b,c=this["stroke-width"];"inherit"===
c&&(c=1);if(a=a&&a.toLowerCase()){a=a.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(b=a.length;b--;)a[b]=D(a[b])*c;a=a.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},
titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=E.createElementNS(La,"title"),this.element.appendChild(b));b.firstChild&&b.removeChild(b.firstChild);b.appendChild(E.createTextNode(String(s(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,c){"string"===typeof a?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},visibilitySetter:function(a,b,
c){"inherit"===a?c.removeAttribute(b):c.setAttribute(b,a)},zIndexSetter:function(a,b){var c=this.renderer,d=this.parentGroup,c=(d||c).element||c.box,e,f,g=this.element,h;e=this.added;var k;w(a)&&(g.zIndex=a,a=+a,this[b]===a&&(e=!1),this[b]=a);if(e){(a=this.zIndex)&&d&&(d.handleZ=!0);d=c.childNodes;for(k=0;k<d.length&&!h;k++)if(e=d[k],f=e.zIndex,e!==g&&(D(f)>a||!w(a)&&w(f)))c.insertBefore(g,e),h=!0;h||c.appendChild(g)}return h},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};M.prototype.yGetter=
M.prototype.xGetter;M.prototype.translateXSetter=M.prototype.translateYSetter=M.prototype.rotationSetter=M.prototype.verticalAlignSetter=M.prototype.scaleXSetter=M.prototype.scaleYSetter=function(a,b){this[b]=a;this.doTransform=!0};M.prototype.opacitySetter=M.prototype.displaySetter=function(a,b,c){this[b]=a;c.setAttribute(b,a)};M.prototype["stroke-widthSetter"]=M.prototype.strokeSetter=function(a,b,c){this[b]=a;this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],M.prototype.fillSetter.call(this,
this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke&&(c.removeAttribute("stroke"),this.hasStroke=!1)};var Ia=function(){this.init.apply(this,arguments)};Ia.prototype={Element:M,init:function(a,b,c,d,e,f){var g;d=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(d));g=d.element;a.appendChild(g);-1===a.innerHTML.indexOf("xmlns")&&Q(g,"xmlns",La);this.isSVG=!0;this.box=g;this.boxWrapper=d;this.alignedObjects=
[];this.url=(Ta||tb)&&E.getElementsByTagName("base").length?G.location.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(E.createTextNode("Created with Highcharts 4.2.7"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=e;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,c,!1);var h;Ta&&a.getBoundingClientRect&&(this.subPixelFix=b=function(){O(a,{left:0,top:0});
h=a.getBoundingClientRect();O(a,{left:ya(h.left)-h.left+"px",top:ya(h.top)-h.top+"px"})},b(),P(G,"resize",b))},getStyle:function(a){return this.style=v({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();Ya(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.subPixelFix&&$(G,"resize",
this.subPixelFix);return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:function(){},getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}},buildText:function(a){for(var b=a.element,c=this,d=c.forExport,e=s(a.textStr,"").toString(),f=-1!==e.indexOf("<"),g=b.childNodes,h,k,l,m=Q(b,"x"),n=a.styles,p=a.textWidth,q=n&&n.lineHeight,r=n&&n.textShadow,C=n&&"ellipsis"===n.textOverflow,u=g.length,sa=p&&!a.added&&
this.box,A=function(a){return q?D(q):c.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:n&&n.fontSize||c.style.fontSize||12,a).h},y=function(a){return a.replace(/&lt;/g,"<").replace(/&gt;/g,">")};u--;)b.removeChild(g[u]);f||r||C||p||-1!==e.indexOf(" ")?(h=/<.*style="([^"]+)".*>/,k=/<.*href="(http[^"]+)".*>/,sa&&sa.appendChild(b),e=f?e.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):[e],e=Ga(e,function(a){return""!==a}),t(e,function(e,f){var g,q=0;e=e.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");g=e.split("|||");t(g,function(e){if(""!==e||1===g.length){var r={},u=E.createElementNS(La,"tspan"),s;h.test(e)&&(s=e.match(h)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),Q(u,"style",s));k.test(e)&&!d&&(Q(u,"onclick",'location.href="'+e.match(k)[1]+'"'),O(u,{cursor:"pointer"}));e=y(e.replace(/<(.|\n)*?>/g,"")||" ");
if(" "!==e){u.appendChild(E.createTextNode(e));q?r.dx=0:f&&null!==m&&(r.x=m);Q(u,r);b.appendChild(u);!q&&f&&(!ha&&d&&O(u,{display:"block"}),Q(u,"dy",A(u)));if(p){for(var r=e.replace(/([^\^])-/g,"$1- ").split(" "),t="nowrap"===n.whiteSpace,sa=1<g.length||f||1<r.length&&!t,Va,w,Oa=[],x=A(u),v=1,F=a.rotation,z=e,B=z.length;(sa||C)&&(r.length||Oa.length);)a.rotation=0,Va=a.getBBox(!0),w=Va.width,!ha&&c.forExport&&(w=c.measureSpanWidth(u.firstChild.data,a.styles)),Va=w>p,void 0===l&&(l=Va),C&&l?(B/=2,
""===z||!Va&&0.5>B?r=[]:(z=e.substring(0,z.length+(Va?-1:1)*ya(B)),r=[z+(3<p?"\u2026":"")],u.removeChild(u.firstChild))):Va&&1!==r.length?(u.removeChild(u.firstChild),Oa.unshift(r.pop())):(r=Oa,Oa=[],r.length&&!t&&(v++,u=E.createElementNS(La,"tspan"),Q(u,{dy:x,x:m}),s&&Q(u,"style",s),b.appendChild(u)),w>p&&(p=w)),r.length&&u.appendChild(E.createTextNode(r.join(" ").replace(/- /g,"-")));a.rotation=F}q++}}})}),l&&a.attr("title",a.textStr),sa&&sa.removeChild(b),r&&a.applyTextShadow&&a.applyTextShadow(r)):
b.appendChild(E.createTextNode(y(e)))},getContrast:function(a){a=pa(a).rgba;return 384<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,b,c,d,e,f,g,h,k){var l=this.label(a,b,c,k,null,null,null,null,"button"),m=0,n,p,q,r,C,u;a={x1:0,y1:0,x2:0,y2:1};e=H({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},e);q=e.style;delete e.style;f=H(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},f);r=f.style;
delete f.style;g=H(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);C=g.style;delete g.style;h=H(e,{style:{color:"#CCC"}},h);u=h.style;delete h.style;P(l.element,Da?"mouseover":"mouseenter",function(){3!==m&&l.attr(f).css(r)});P(l.element,Da?"mouseout":"mouseleave",function(){3!==m&&(n=[e,f,g][m],p=[q,r,C][m],l.attr(n).css(p))});l.setState=function(a){(l.state=m=a)?2===a?l.attr(g).css(C):3===a&&l.attr(h).css(u):l.attr(e).css(q)};return l.on("click",function(a){3!==m&&d.call(l,
a)}).attr(e).css(v({cursor:"default"},q))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=F(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=F(a[2])+b%2/2);return a},path:function(a){var b={fill:"none"};Ca(a)?b.d=a:da(a)&&v(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=da(a)?a:{x:a,y:b,r:c};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,c){c.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,c,d,e,f){da(a)&&(b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x);a=
this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0});a.r=c;return a},rect:function(a,b,c,d,e,f){e=da(a)?a.r:e;var g=this.createElement("rect");a=da(a)?a:a===B?{}:{x:a,y:b,width:x(c,0),height:x(d,0)};f!==B&&(g.strokeWidth=f,a=g.crisp(a));e&&(a.r=e);g.rSetter=function(a,b,c){Q(c,{rx:a,ry:a})};return g.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[s(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},
g:function(a){var b=this.createElement("g");return w(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:"none"};1<arguments.length&&v(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=this,h,k=this.symbols[a],k=k&&k(F(b),F(c),d,e,f),l=/^url\((.*?)\)$/,m,n;k?(h=this.path(k),
v(h,{symbolName:a,x:b,y:c,width:d,height:e}),f&&v(h,f)):l.test(a)&&(n=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(F((d-b[0])/2),F((e-b[1])/2)))},m=a.match(l)[1],a=Sb[m]||f&&f.width&&f.height&&[f.width,f.height],h=this.image(m).attr({x:b,y:c}),h.isImg=!0,a?n(h,a):(h.attr({width:0,height:0}),ea("img",{onload:function(){var a=W[g.chartIndex];0===this.width&&(O(this,{position:"absolute",top:"-999em"}),E.body.appendChild(this));n(h,Sb[m]=[this.width,this.height]);
this.parentNode&&this.parentNode.removeChild(this);g.imgCount--;if(!g.imgCount&&a&&a.onload)a.onload()},src:m}),this.imgCount++));return h},symbols:{circle:function(a,b,c,d){var e=0.166*c;return[Z,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[Z,a,b,U,a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return[Z,a+c/2,b,U,a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return[Z,a,b,U,a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return[Z,
a+c/2,b,U,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;var g=e.end-0.001;d=e.innerR;var h=e.open,k=Y(f),l=fa(f),m=Y(g),g=fa(g);e=e.end-f<wa?0:1;return[Z,a+c*k,b+c*l,"A",c,c,0,e,1,a+c*m,b+c*g,h?Z:U,a+d*m,b+d*g,"A",d,d,0,e,0,a+d*k,b+d*l,h?"":"Z"]},callout:function(a,b,c,d,e){var f=I(e&&e.r||0,c,d),g=f+6,h=e&&e.anchorX;e=e&&e.anchorY;var k;k=["M",a+f,b,"L",a+c-f,b,"C",a+c,b,a+c,b,a+c,b+f,"L",a+c,b+d-f,"C",a+c,b+d,a+c,b+d,a+c-f,b+d,"L",a+f,b+d,"C",a,b+d,a,b+d,a,
b+d-f,"L",a,b+f,"C",a,b,a,b,a+f,b];h&&h>c&&e>b+g&&e<b+d-g?k.splice(13,3,"L",a+c,e-6,a+c+6,e,a+c,e+6,a+c,b+d-f):h&&0>h&&e>b+g&&e<b+d-g?k.splice(33,3,"L",a,e+6,a-6,e,a,e-6,a,b+f):e&&e>d&&h>a+g&&h<a+c-g?k.splice(23,3,"L",h+6,b+d,h,b+d+6,h-6,b+d,a+f,b+d):e&&0>e&&h>a+g&&h<a+c-g&&k.splice(3,3,"L",h-6,b,h,b-6,h+6,b,c-f,b);return k}},clipRect:function(a,b,c,d){var e="highcharts-"+Fb++,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;a.count=0;
return a},text:function(a,b,c,d){var e=na||!ha&&this.forExport,f={};if(d&&(this.allowHTML||!this.forExport))return this.html(a,b,c);f.x=Math.round(b||0);c&&(f.y=Math.round(c));if(a||0===a)f.text=a;a=this.createElement("text").attr(f);e&&a.css({position:"absolute"});d||(a.xSetter=function(a,b,c){var d=c.getElementsByTagName("tspan"),e,f=c.getAttribute(b),p;for(p=0;p<d.length;p++)e=d[p],e.getAttribute(b)===f&&e.setAttribute(b,a);c.setAttribute(b,a)});return a},fontMetrics:function(a,b){var c,d;a=a||
this.style.fontSize;!a&&b&&G.getComputedStyle&&(b=b.element||b,a=(c=G.getComputedStyle(b,""))&&c.fontSize);a=/px/.test(a)?D(a):/em/.test(a)?12*parseFloat(a):12;c=24>a?a+3:F(1.2*a);d=F(0.8*c);return{h:c,b:d,f:a}},rotCorr:function(a,b,c){var d=a;b&&c&&(d=x(d*Y(b*ma),4));return{x:-a/3*fa(b*ma),y:d}},label:function(a,b,c,d,e,f,g,h,k){var l=this,m=l.g(k),n=l.text("",0,0,g).attr({zIndex:1}),p,q,r=0,C=3,u=0,s,A,y,Oa,Ua=0,ba={},x,z=/^url\((.*?)\)$/.test(d),E=z,I,G,D;I=function(){var a,b;a=n.element.style;
q=(void 0===s||void 0===A||m.styles.textAlign)&&w(n.textStr)&&n.getBBox();m.width=(s||q.width||0)+2*C+u;m.height=(A||q.height||0)+2*C;x=C+l.fontMetrics(a&&a.fontSize,n).b;E&&(p||(a=Ua,b=(h?-x:0)+Ua,m.box=p=l.symbols[d]||z?l.symbol(d,a,b,m.width,m.height,ba):l.rect(a,b,m.width,m.height,0,ba["stroke-width"]),p.isImg||p.attr("fill","none"),p.add(m)),p.isImg||p.attr(v({width:F(m.width),height:F(m.height)},ba)),ba=null)};G=function(){var a=m.styles,a=a&&a.textAlign,b=u+C,c;c=h?0:x;w(s)&&q&&("center"===
a||"right"===a)&&(b+={center:0.5,right:1}[a]*(s-q.width));if(b!==n.x||c!==n.y)n.attr("x",b),c!==B&&n.attr("y",c);n.x=b;n.y=c};D=function(a,b){p?p.attr(a,b):ba[a]=b};m.onAdd=function(){n.add(m);m.attr({text:a||0===a?a:"",x:b,y:c});p&&w(e)&&m.attr({anchorX:e,anchorY:f})};m.widthSetter=function(a){s=a};m.heightSetter=function(a){A=a};m.paddingSetter=function(a){w(a)&&a!==C&&(C=m.padding=a,G())};m.paddingLeftSetter=function(a){w(a)&&a!==u&&(u=a,G())};m.alignSetter=function(a){a={left:0,center:0.5,right:1}[a];
a!==r&&(r=a,q&&m.attr({x:y}))};m.textSetter=function(a){a!==B&&n.textSetter(a);I();G()};m["stroke-widthSetter"]=function(a,b){a&&(E=!0);Ua=a%2/2;D(b,a)};m.strokeSetter=m.fillSetter=m.rSetter=function(a,b){"fill"===b&&a&&(E=!0);D(b,a)};m.anchorXSetter=function(a,b){e=a;D(b,F(a)-Ua-y)};m.anchorYSetter=function(a,b){f=a;D(b,a-Oa)};m.xSetter=function(a){m.x=a;r&&(a-=r*((s||q.width)+2*C));y=F(a);m.attr("translateX",y)};m.ySetter=function(a){Oa=m.y=F(a);m.attr("translateY",Oa)};var J=m.css;return v(m,{css:function(a){if(a){var b=
{};a=H(a);t(m.textProps,function(c){a[c]!==B&&(b[c]=a[c],delete a[c])});n.css(b)}return J.call(m,a)},getBBox:function(){return{width:q.width+2*C,height:q.height+2*C,x:q.x-C,y:q.y-C}},shadow:function(a){p&&p.shadow(a);return m},destroy:function(){$(m.element,"mouseenter");$(m.element,"mouseleave");n&&(n=n.destroy());p&&(p=p.destroy());M.prototype.destroy.call(m);m=l=I=G=D=null}})}};jb=Ia;v(M.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&"SPAN"===b.tagName&&a.width)delete a.width,this.textWidth=
b,this.updateTransform();a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=v(this.styles,a);O(this.element,a);return this},htmlGetBBox:function(){var a=this.element;"text"===a.nodeName&&(a.style.position="absolute");return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,d=this.translateY||0,e=this.x||0,f=this.y||0,g=this.textAlign||"left",
h={left:0,center:0.5,right:1}[g],k=this.shadows,l=this.styles;O(b,{marginLeft:c,marginTop:d});k&&t(k,function(a){O(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&t(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var k=this.rotation,m=D(this.textWidth),n=l&&l.whiteSpace,p=[k,g,b.innerHTML,this.textWidth,this.textAlign].join();p!==this.cTT&&(l=a.fontMetrics(b.style.fontSize).b,w(k)&&this.setSpanRotation(k,h,l),O(b,{width:"",whiteSpace:n||"nowrap"}),b.offsetWidth>m&&/[ \-]/.test(b.textContent||
b.innerText)&&O(b,{width:m+"px",display:"block",whiteSpace:n||"normal"}),this.getSpanCorrection(b.offsetWidth,l,h,k,g));O(b,{left:e+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});tb&&(l=b.offsetHeight);this.cTT=p}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d={},e=Da?"-ms-transform":tb?"-webkit-transform":Ta?"MozTransform":Qb?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)";d[e+(Ta?"Origin":"-origin")]=d.transformOrigin=100*b+"% "+c+"px";O(this.element,d)},getSpanCorrection:function(a,
b,c){this.xCorr=-a*c;this.yCorr=-b}});v(Ia.prototype,{html:function(a,b,c){var d=this.createElement("span"),e=d.element,f=d.renderer,g=f.isSVG,h=function(a,b){t(["display","opacity","visibility"],function(c){mb(a,c+"Setter",function(a,c,d,e){a.call(this,c,d,e);b[d]=c})})};d.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;e.innerHTML=this.textStr=a;d.htmlUpdateTransform()};g&&h(d,d.element.style);d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(a,b){"align"===b&&(b="textAlign");
d[b]=a;d.htmlUpdateTransform()};d.attr({text:a,x:F(b),y:F(c)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});e.style.whiteSpace="nowrap";d.css=d.htmlCss;g&&(d.add=function(a){var b,c=f.box.parentNode,g=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)g.push(a),a=a.parentGroup;t(g.reverse(),function(a){var d,e=Q(a.element,"class");e&&(e={className:e});b=a.div=a.div||ea(Sa,e,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,
opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);d=b.style;v(a,{translateXSetter:function(b,c){d.left=b+"px";a[c]=b;a.doTransform=!0},translateYSetter:function(b,c){d.top=b+"px";a[c]=b;a.doTransform=!0}});h(a,d)})}}else b=c;b.appendChild(e);d.added=!0;d.alignOnAdd&&d.htmlUpdateTransform();return d});return d}});var R;if(!ha&&!na){R={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"],e=b===Sa;("shape"===b||e)&&d.push("left:0;top:0;width:1px;height:1px;");
d.push("visibility: ",e?"hidden":"visible");c.push(' style="',d.join(""),'"/>');b&&(c=e||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=ea(c));this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box,e=a&&a.inverted,d=a?a.element||a:d;a&&(this.parentGroup=a);e&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();return this},updateTransform:M.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=
this.rotation,b=Y(a*ma),c=fa(a*ma);O(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(a,b,c,d,e){var f=d?Y(d*ma):1,g=d?fa(d*ma):0,h=s(this.elemHeight,this.element.offsetHeight),k;this.xCorr=0>f&&-a;this.yCorr=0>g&&-h;k=0>f*g;this.xCorr+=g*b*(k?1-c:c);this.yCorr-=f*b*(d?k?c:1-c:1);e&&"left"!==e&&(this.xCorr-=a*c*(0>f?-1:1),d&&(this.yCorr-=h*c*(0>g?-1:1)),O(this.element,
{textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)L(a[b])?c[b]=F(10*a[b])-5:"Z"===a[b]?c[b]="x":(c[b]=a[b],!a.isArc||"wa"!==a[b]&&"at"!==a[b])||(c[b+5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1));return c.join(" ")||"x"},clip:function(a){var b=this,c;a?(c=a.members,ua(c,b),c.push(b),b.destroyClip=function(){ua(c,b)},a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:sb?"inherit":"rect(auto)"});return b.css(a)},css:M.prototype.htmlCss,
safeRemoveChild:function(a){a.parentNode&&Za(a)},destroy:function(){this.destroyClip&&this.destroyClip();return M.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+a]=function(){var a=G.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c;a=a.split(/[ ,]/);c=a.length;if(9===c||11===c)a[c-4]=a[c-2]=D(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,k=f.style,l,m=f.path,n,p,q,r;m&&"string"!==typeof m.value&&
(m="x");p=m;if(a){q=s(a.width,3);r=(a.opacity||0.15)/q;for(e=1;3>=e;e++)n=2*q+1-2*e,c&&(p=this.cutOffPath(m.value,n+0.5)),l=['<shape isShadow="true" strokeweight="',n,'" filled="false" path="',p,'" coordsize="10 10" style="',f.style.cssText,'" />'],h=ea(g.prepVML(l),null,{left:D(k.left)+s(a.offsetX,1),top:D(k.top)+s(a.offsetY,1)}),c&&(h.cutOff=n+1),l=['<stroke color="',a.color||"black",'" opacity="',r*e,'"/>'],ea(g.prepVML(l),null,null,h),b?b.element.appendChild(h):f.parentNode.insertBefore(h,f),
d.push(h);this.shadows=d}return this},updateShadows:Fa,setAttr:function(a,b){sb?this.element[a]=b:this.element.setAttribute(a,b)},classSetter:function(a){this.element.className=a},dashstyleSetter:function(a,b,c){(c.getElementsByTagName("stroke")[0]||ea(this.renderer.prepVML(["<stroke/>"]),null,null,c))[b]=a||"solid";this[b]=a},dSetter:function(a,b,c){var d=this.shadows;a=a||[];this.d=a.join&&a.join(" ");c.path=a=this.pathToVML(a);if(d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):
a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;"SPAN"===d?c.style.color=a:"IMG"!==d&&(c.filled="none"!==a,this.setAttr("fillcolor",this.renderer.color(a,c,b,this)))},"fill-opacitySetter":function(a,b,c){ea(this.renderer.prepVML(["<",b.split("-")[0],' opacity="',a,'"/>']),null,null,c)},opacitySetter:Fa,rotationSetter:function(a,b,c){c=c.style;this[b]=c[b]=a;c.left=-F(fa(a*ma)+1)+"px";c.top=F(Y(a*ma))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,
c,b,this))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a;this[b]=a;L(a)&&(a+="px");this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){"inherit"===a&&(a="visible");this.shadows&&t(this.shadows,function(c){c.style[b]=a});"DIV"===c.nodeName&&(a="hidden"===a?"-999em":0,sb||(c.style[b]=a?"visible":"hidden"),b="top");c.style[b]=a},displaySetter:function(a,b,c){c.style[b]=a},xSetter:function(a,b,c){this[b]=a;"x"===b?b="left":"y"===b&&(b="top");
this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a}};R["stroke-opacitySetter"]=R["fill-opacitySetter"];z.VMLElement=R=va(M,R);R.prototype.ySetter=R.prototype.widthSetter=R.prototype.heightSetter=R.prototype.xSetter;var Hb={Element:R,isIE8:-1<Ea.indexOf("MSIE 8.0"),init:function(a,b,c,d){var e;this.alignedObjects=[];d=this.createElement(Sa).css(v(this.getStyle(d),{position:"relative"}));e=d.element;a.appendChild(d.element);this.isVML=!0;this.box=
e;this.boxWrapper=d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,c,!1);if(!E.namespaces.hcv){E.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{E.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(f){E.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},
clipRect:function(a,b,c,d){var e=this.createElement(),f=da(a);return v(e,{members:[],count:0,left:(f?a.x:a)+1,top:(f?a.y:b)+1,width:(f?a.width:c)-1,height:(f?a.height:d)-1,getCSS:function(a){var b=a.element,c=b.nodeName;a=a.inverted;var d=this.top-("shape"===c?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+F(a?e:d)+"px,"+F(a?f:b)+"px,"+F(a?b:f)+"px,"+F(a?d:e)+"px)"};!a&&sb&&"DIV"===c&&v(d,{width:b+"px",height:f+"px"});return d},updateClipping:function(){t(e.members,function(a){a.element&&
a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,k,l="none";a&&a.linearGradient?k="gradient":a&&a.radialGradient&&(k="pattern");if(k){var m,n,p=a.linearGradient||a.radialGradient,q,r,C,u,s,A="";a=a.stops;var y,w=[],Ua=function(){h=['<fill colors="'+w.join(",")+'" opacity="',C,'" o:opacity2="',r,'" type="',k,'" ',A,'focus="100%" method="any" />'];ea(e.prepVML(h),null,null,b)};q=a[0];y=a[a.length-1];0<q[0]&&a.unshift([0,q[1]]);1>y[0]&&a.push([1,y[1]]);t(a,function(a,b){g.test(a[1])?
(f=pa(a[1]),m=f.get("rgb"),n=f.get("a")):(m=a[1],n=1);w.push(100*a[0]+"% "+m);b?(C=n,u=m):(r=n,s=m)});if("fill"===c)if("gradient"===k)c=p.x1||p[0]||0,a=p.y1||p[1]||0,q=p.x2||p[2]||0,p=p.y2||p[3]||0,A='angle="'+(90-180*aa.atan((p-a)/(q-c))/wa)+'"',Ua();else{var l=p.r,ba=2*l,x=2*l,v=p.cx,z=p.cy,F=b.radialReference,B,l=function(){F&&(B=d.getBBox(),v+=(F[0]-B.x)/B.width-0.5,z+=(F[1]-B.y)/B.height-0.5,ba*=F[2]/B.width,x*=F[2]/B.height);A='src="'+V.global.VMLRadialGradientURL+'" size="'+ba+","+x+'" origin="0.5,0.5" position="'+
v+","+z+'" color2="'+s+'" ';Ua()};d.added?l():d.onAdd=l;l=u}else l=m}else g.test(a)&&"IMG"!==b.tagName?(f=pa(a),d[c+"-opacitySetter"](f.get("a"),c,b),l=f.get("rgb")):(l=b.getElementsByTagName(c),l.length&&(l[0].opacity=1,l[0].type="solid"),l=a);return l},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:Ia.prototype.html,path:function(a){var b={coordsize:"10 10"};Ca(a)?b.d=a:da(a)&&v(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,c){var d=this.symbol("circle");da(a)&&(c=a.r,b=a.y,a=a.x);d.isCircle=!0;d.r=c;return d.attr({x:a,y:b})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement(Sa).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});1<arguments.length&&
f.attr({x:b,y:c,width:d,height:e});return f},createElement:function(a){return"rect"===a?this.symbol(a):Ia.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this,d=b.style,e="IMG"===a.tagName&&a.style;O(a,{flip:"x",left:D(d.width)-(e?D(e.top):1),top:D(d.height)-(e?D(e.left):1),rotation:-90});t(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d;c=e.innerR;d=Y(f);var k=fa(f),l=Y(g),m=fa(g);if(0===g-f)return["x"];f=["wa",
a-h,b-h,a+h,b+h,a+h*d,b+h*k,a+h*l,b+h*m];e.open&&!c&&f.push("e",Z,a,b);f.push("at",a-c,b-c,a+c,b+c,a+c*l,b+c*m,a+c*d,b+c*k,"x","e");f.isArc=!0;return f},circle:function(a,b,c,d,e){e&&(c=d=2*e.r);e&&e.isCircle&&(a-=c/2,b-=d/2);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){return Ia.prototype.symbols[w(e)&&e.r?"callout":"square"].call(0,a,b,c,d,e)}}};z.VMLRenderer=R=function(){this.init.apply(this,arguments)};R.prototype=H(Ia.prototype,Hb);jb=R}Ia.prototype.measureSpanWidth=
function(a,b){var c=E.createElement("span"),d;d=E.createTextNode(a);c.appendChild(d);O(c,b);this.box.appendChild(c);d=c.offsetWidth;Za(c);return d};var Tb;na&&(z.CanVGRenderer=R=function(){La="http://www.w3.org/1999/xhtml"},R.prototype.symbols={},Tb=function(){function a(){var a=b.length,d;for(d=0;d<a;d++)b[d]();b=[]}var b=[];return{push:function(c,d){if(0===b.length){var e=E.getElementsByTagName("head")[0],f=E.createElement("script");f.type="text/javascript";f.src=d;f.onload=a;e.appendChild(f)}b.push(c)}}}(),
jb=R);bb.prototype={addLabel:function(){var a=this.axis,b=a.options,c=a.chart,d=a.categories,e=a.names,f=this.pos,g=b.labels,h=a.tickPositions,k=f===h[0],l=f===h[h.length-1],e=d?s(d[f],e[f],f):f,d=this.label,h=h.info,m;a.isDatetimeAxis&&h&&(m=b.dateTimeLabelFormats[h.higherRanks[f]||h.unitName]);this.isFirst=k;this.isLast=l;b=a.labelFormatter.call({axis:a,chart:c,isFirst:k,isLast:l,dateTimeLabelFormat:m,value:a.isLog?ca(a.lin2log(e)):e});w(d)?d&&d.attr({text:b}):(this.labelLength=(this.label=d=w(b)&&
g.enabled?c.renderer.text(b,0,0,g.useHTML).css(H(g.style)).add(a.labelGroup):null)&&d.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var b=this.axis,c=a.x,d=b.chart.chartWidth,e=b.chart.spacing,f=s(b.labelLeft,I(b.pos,e[3])),e=s(b.labelRight,x(b.pos+b.len,d-e[1])),g=this.label,h=this.rotation,k={left:0,center:0.5,right:1}[b.labelAlign],l=g.getBBox().width,m=b.getSlotWidth(),n=m,p=1,q,
r={};if(h)0>h&&c-k*l<f?q=F(c/Y(h*ma)-f):0<h&&c+k*l>e&&(q=F((d-c)/Y(h*ma)));else if(d=c+(1-k)*l,c-k*l<f?n=a.x+n*(1-k)-f:d>e&&(n=e-a.x+n*k,p=-1),n=I(m,n),n<m&&"center"===b.labelAlign&&(a.x+=p*(m-n-k*(m-I(l,n)))),l>n||b.autoRotation&&g.styles.width)q=n;q&&(r.width=q,b.options.labels.style.textOverflow||(r.textOverflow="ellipsis"),g.css(r))},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?
(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var k=this.axis,l=k.transA,m=k.reversed,n=k.staggerLines,p=k.tickRotCorr||{x:0,y:0},q=e.y;w(q)||(q=0===k.side?c.rotation?-8:-c.getBBox().height:2===k.side?p.y+8:Y(c.rotation*ma)*(p.y-c.getBBox(!1,0).height/2));a=a+e.x+p.x-(f&&d?f*l*(m?-1:1):0);b=b+q-(f&&!d?f*l*(m?1:-1):0);n&&(c=g/(h||1)%n,k.opposite&&(c=n-c-1),b+=
k.labelOffset/n*c);return{x:a,y:F(b)}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine([Z,a,b,U,a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,k=this.label,l=this.pos,m=e.labels,n=this.gridLine,p=h?h+"Grid":"grid",q=h?h+"Tick":"tick",r=e[p+"LineWidth"],C=e[p+"LineColor"],u=e[p+"LineDashStyle"],p=d.tickSize(q),q=e[q+"Color"],t=this.mark,A=m.step,y=!0,w=d.tickmarkOffset,x=this.getPosition(g,l,w,b),ba=x.x,x=x.y,v=g&&ba===d.pos+
d.len||!g&&x===d.pos?-1:1;c=s(c,1);this.isActive=!0;if(r&&(l=d.getPlotLinePath(l+w,r*v,b,!0),n===B&&(n={stroke:C,"stroke-width":r},u&&(n.dashstyle=u),h||(n.zIndex=1),b&&(n.opacity=0),this.gridLine=n=r?f.path(l).attr(n).add(d.gridGroup):null),!b&&n&&l))n[this.isNew?"attr":"animate"]({d:l,opacity:c});p&&(d.opposite&&(p[0]=-p[0]),h=this.getMarkPath(ba,x,p[0],p[1]*v,g,f),t?t.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:q,"stroke-width":p[1],opacity:c}).add(d.axisGroup));k&&L(ba)&&(k.xy=x=
this.getLabelPosition(ba,x,k,g,m,w,a,A),this.isFirst&&!this.isLast&&!s(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!s(e.showLastLabel,1)?y=!1:!g||d.isRadial||m.step||m.rotation||b||0===c||this.handleOverflow(x),A&&a%A&&(y=!1),y&&L(x.y)?(x.opacity=c,k[this.isNew?"attr":"animate"](x)):(Na(k),k.attr("y",-9999)),this.isNew=!1)},destroy:function(){Ya(this,this.axis)}};z.PlotLineOrBand=function(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)};z.PlotLineOrBand.prototype={render:function(){var a=this,
b=a.axis,c=b.horiz,d=a.options,e=d.label,f=a.label,g=d.width,h=d.to,k=d.from,l=w(k)&&w(h),m=d.value,n=d.dashStyle,p=a.svgElem,q=[],r,C=d.color,u=s(d.zIndex,0),t=d.events,A={},y=b.chart.renderer,q=b.log2lin;b.isLog&&(k=q(k),h=q(h),m=q(m));if(g){if(q=b.getPlotLinePath(m,g),A={stroke:C,"stroke-width":g},n)A.dashstyle=n}else if(l)q=b.getPlotBandPath(k,h,d),C&&(A.fill=C),d.borderWidth&&(A.stroke=d.borderColor,A["stroke-width"]=d.borderWidth);else return;A.zIndex=u;if(p)if(q)p.show(),p.animate({d:q});else{if(p.hide(),
f)a.label=f=f.destroy()}else if(q&&q.length&&(a.svgElem=p=y.path(q).attr(A).add(),t))for(r in d=function(b){p.on(b,function(c){t[b].apply(a,[c])})},t)d(r);e&&w(e.text)&&q&&q.length&&0<b.width&&0<b.height&&!q.flat?(e=H({align:c&&l&&"center",x:c?!l&&4:10,verticalAlign:!c&&l&&"middle",y:c?l?16:10:l?6:-4,rotation:c&&!l&&90},e),this.renderLabel(e,q,l,u)):f&&f.hide();return a},renderLabel:function(a,b,c,d){var e=this.label,f=this.axis.chart.renderer;e||(e={align:a.textAlign||a.align,rotation:a.rotation},
e.zIndex=d,this.label=e=f.text(a.text,0,0,a.useHTML).attr(e).css(a.style).add());d=[b[1],b[4],c?b[6]:b[1]];b=[b[2],b[5],c?b[7]:b[2]];c=Ra(d);f=Ra(b);e.align(a,!1,{x:c,y:f,width:Ka(d)-c,height:Ka(b)-f});e.show()},destroy:function(){ua(this.axis.plotLinesAndBands,this);delete this.axis;Ya(this)}};var ka=z.Axis=function(){this.init.apply(this,arguments)};ka.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",
month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0},lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#707070"}},
type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return z.numberFormat(this.total,-1)},style:H(ia.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],
x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,b){var c=b.isX;this.chart=a;this.horiz=a.inverted?!c:c;this.isXAxis=c;this.coll=this.coll||(c?"xAxis":"yAxis");this.opposite=b.opposite;this.side=b.side||(this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.userOptions=b;this.minPixelPadding=0;this.reversed=d.reversed;this.visible=
!1!==d.visible;this.zoomEnabled=!1!==d.zoomEnabled;this.hasNames="category"===e||!0===d.categories;this.categories=d.categories||this.hasNames;this.names=this.names||[];this.isLog="logarithmic"===e;this.isDatetimeAxis="datetime"===e;this.isLinked=w(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.oldStacks={};
this.stacksTouched=0;this.min=this.max=null;this.crosshair=s(d.crosshair,xa(a.options.tooltip.crosshairs)[c?0:1],!1);var f,d=this.options.events;-1===ra(this,a.axes)&&(c?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&c&&this.reversed===B&&(this.reversed=!0);this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)P(this,f,d[f]);this.isLog&&(this.val2lin=this.log2lin,this.lin2val=this.lin2log)},setOptions:function(a){this.options=
H(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],H(V[this.coll],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=a.categories,d=this.dateTimeLabelFormat,e=V.lang.numericSymbols,f=e&&e.length,g,h=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(h)g=Qa(h,this);else if(c)g=b;else if(d)g=Xa(d,b);else if(f&&1E3<=a)for(;f--&&g===B;)c=
Math.pow(1E3,f+1),a>=c&&0===10*b%c&&null!==e[f]&&0!==b&&(g=z.numberFormat(b/c,-1)+e[f]);g===B&&(g=1E4<=S(b)?z.numberFormat(b,-1):z.numberFormat(b,-1,B,""));return g},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();t(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d=c.options,e=d.threshold,f;a.hasVisibleSeries=!0;a.isLog&&0>=e&&(e=null);if(a.isXAxis){if(d=
c.xData,d.length)c=Ra(d),L(c)||c instanceof oa||(d=Ga(d,function(a){return L(a)}),c=Ra(d)),a.dataMin=I(s(a.dataMin,d[0]),c),a.dataMax=x(s(a.dataMax,d[0]),Ka(d))}else if(c.getExtremes(),f=c.dataMax,c=c.dataMin,w(c)&&w(f)&&(a.dataMin=I(s(a.dataMin,c),c),a.dataMax=x(s(a.dataMax,f),f)),w(e)&&(a.threshold=e),!d.softThreshold||a.isLog)a.softThreshold=!1}})},translate:function(a,b,c,d,e,f){var g=this.linkedParent||this,h=1,k=0,l=d?g.oldTransA:g.transA;d=d?g.oldMin:g.min;var m=g.minPixelPadding;e=(g.isOrdinal||
g.isBroken||g.isLog&&e)&&g.lin2val;l||(l=g.transA);c&&(h*=-1,k=g.len);g.reversed&&(h*=-1,k-=h*(g.sector||g.len));b?(a=a*h+k,a-=m,a=a/l+d,e&&(a=g.lin2val(a))):(e&&(a=g.val2lin(a)),"between"===f&&(f=0.5),a=h*(a-d)*l+k+h*m+(L(f)?l*f*g.pointRange:0));return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,d,e){var f=this.chart,g=this.left,h=this.top,
k,l,m=c&&f.oldChartHeight||f.chartHeight,n=c&&f.oldChartWidth||f.chartWidth,p;k=this.transB;var q=function(a,b,c){if(a<b||a>c)d?a=I(x(b,a),c):p=!0;return a};e=s(e,this.translate(a,null,null,c));a=c=F(e+k);k=l=F(m-e-k);L(e)?this.horiz?(k=h,l=m-this.bottom,a=c=q(a,g,g+this.width)):(a=g,c=n-this.right,k=l=q(k,h,h+this.height)):p=!0;return p&&!d?null:f.renderer.crispLine([Z,a,k,U,c,l],b||1)},getLinearTickPositions:function(a,b,c){var d,e=ca(X(b/a)*a),f=ca(ya(c/a)*a),g=[];if(b===c&&L(b))return[b];for(b=
e;b<=f;){g.push(b);b=ca(b+a);if(b===d)break;d=b}return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e,f=this.pointRangePadding||0;e=this.min-f;var f=this.max+f,g=f-e;if(g&&g/c<this.len/3)if(this.isLog)for(f=b.length,e=1;e<f;e++)d=d.concat(this.getLogTickPositions(c,b[e-1],b[e],!0));else if(this.isDatetimeAxis&&"auto"===a.minorTickInterval)d=d.concat(this.getTimeTicks(this.normalizeTimeTickInterval(c),e,f,a.startOfWeek));else for(b=e+(b[0]-
e)%c;b<=f;b+=c)d.push(b);0!==d.length&&this.trimTicks(d,a.startOnTick,a.endOnTick);return d},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,e=this.dataMax-this.dataMin>=this.minRange,f,g,h,k,l;this.isXAxis&&this.minRange===B&&!this.isLog&&(w(a.min)||w(a.max)?this.minRange=null:(t(this.series,function(a){k=a.xData;for(g=a.xIncrement?1:k.length-1;0<g;g--)if(h=k[g]-k[g-1],f===B||h<f)f=h}),this.minRange=I(5*f,this.dataMax-this.dataMin)));c-b<this.minRange&&(l=this.minRange,d=
(l-c+b)/2,d=[b-d,s(a.min,b-d)],e&&(d[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=Ka(d),c=[b+l,s(a.max,b+l)],e&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=Ra(c),c-b<l&&(d[0]=c-l,d[1]=s(a.min,c-l),b=Ka(d)));this.min=b;this.max=c},getClosest:function(){var a;this.categories?a=1:t(this.series,function(b){var c=b.closestPointRange;!b.noSharedTooltip&&w(c)&&(a=w(a)?I(a,c):c)});return a},nameToX:function(a){var b=Ca(this.categories),c=b?this.categories:this.names,d=a.options.x,
e;a.series.requireSorting=!1;w(d)||(d=!1===this.options.nameToX?a.series.autoIncrement():ra(a.name,c));-1===d?b||(e=c.length):e=d;this.names[e]=a.name;return e},updateNames:function(){var a=this;0<this.names.length&&(this.names.length=0,this.minRange=void 0,t(this.series||[],function(b){b.processedXData||(b.processData(),b.generatePoints());t(b.points,function(c,d){var e;c.options&&void 0===c.options.x&&(e=a.nameToX(c),e!==c.x)&&(c.x=e,b.xData[d]=e)})}))},setAxisTranslation:function(a){var b=this,
c=b.max-b.min,d=b.axisPointRange||0,e,f=0,g=0,h=b.linkedParent,k=!!b.categories,l=b.transA,m=b.isXAxis;if(m||k||d)if(h?(f=h.minPointOffset,g=h.pointRangePadding):(e=b.getClosest(),t(b.series,function(a){var c=k?1:m?s(a.options.pointRange,e,0):b.axisPointRange||0;a=a.options.pointPlacement;d=x(d,c);b.single||(f=x(f,Ba(a)?0:c/2),g=x(g,"on"===a?0:c))})),h=b.ordinalSlope&&e?b.ordinalSlope/e:1,b.minPointOffset=f*=h,b.pointRangePadding=g*=h,b.pointRange=I(d,c),m)b.closestPointRange=e;a&&(b.oldTransA=l);
b.translationSlope=b.transA=l=b.len/(c+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=l*f},minFromRange:function(){return this.max-this.range},setTickInterval:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.log2lin,g=b.isDatetimeAxis,h=b.isXAxis,k=b.isLinked,l=d.maxPadding,m=d.minPadding,n=d.tickInterval,p=d.tickPixelInterval,q=b.categories,r=b.threshold,C=b.softThreshold,u,sa,A,y;g||q||k||this.getTickAmount();A=s(b.userMin,d.min);y=s(b.userMax,d.max);k?(b.linkedParent=c[b.coll][d.linkedTo],
c=b.linkedParent.getExtremes(),b.min=s(c.min,c.dataMin),b.max=s(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&ga(11,1)):(!C&&w(r)&&(b.dataMin>=r?(u=r,m=0):b.dataMax<=r&&(sa=r,l=0)),b.min=s(A,u,b.dataMin),b.max=s(y,sa,b.dataMax));e&&(!a&&0>=I(b.min,s(b.dataMin,b.min))&&ga(10,1),b.min=ca(f(b.min),15),b.max=ca(f(b.max),15));b.range&&w(b.max)&&(b.userMin=b.min=A=x(b.min,b.minFromRange()),b.userMax=y=b.max,b.range=null);K(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();
q||b.axisPointRange||b.usePercentage||k||!w(b.min)||!w(b.max)||!(f=b.max-b.min)||(!w(A)&&m&&(b.min-=f*m),!w(y)&&l&&(b.max+=f*l));L(d.floor)&&(b.min=x(b.min,d.floor));L(d.ceiling)&&(b.max=I(b.max,d.ceiling));C&&w(b.dataMin)&&((r=r||0,!w(A)&&b.min<r&&b.dataMin>=r)?b.min=r:!w(y)&&b.max>r&&b.dataMax<=r&&(b.max=r));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:k&&!n&&p===b.linkedParent.options.tickPixelInterval?n=b.linkedParent.tickInterval:s(n,this.tickAmount?(b.max-b.min)/x(this.tickAmount-
1,1):void 0,q?1:(b.max-b.min)*p/x(b.len,p));h&&!a&&t(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!n&&(b.tickInterval=x(b.pointRange,b.tickInterval));a=s(d.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!n&&b.tickInterval<a&&(b.tickInterval=a);g||e||n||(b.tickInterval=zb(b.tickInterval,
null,yb(b.tickInterval),s(d.allowDecimals,!(0.5<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max)),!!this.tickAmount));this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions,d=a.tickPositioner,e=a.startOnTick,f=a.endOnTick,g;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?0.5:0;this.minorTickInterval="auto"===a.minorTickInterval&&this.tickInterval?this.tickInterval/
5:a.minorTickInterval;this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()]),this.tickPositions=b,d&&(d=d.apply(this,[this.min,this.max])))&&(this.tickPositions=b=
d);this.isLinked||(this.trimTicks(b,e,f),this.min===this.max&&w(this.min)&&!this.tickAmount&&(g=!0,this.min-=0.5,this.max+=0.5),this.single=g,c||d||this.adjustTickAmount())},trimTicks:function(a,b,c){var d=a[0],e=a[a.length-1],f=this.minPointOffset||0;if(b)this.min=d;else for(;this.min-f>a[0];)a.shift();if(c)this.max=e;else for(;this.max+f<a[a.length-1];)a.pop();0===a.length&&w(d)&&a.push((e+d)/2)},alignToOthers:function(){var a={},b,c=this.options;!1!==this.chart.options.chart.alignTicks&&!1!==c.alignTicks&&
t(this.chart[this.coll],function(c){var e=c.options,e=[c.horiz?e.left:e.top,e.width,e.height,e.pane].join();c.series.length&&(a[e]?b=!0:a[e]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,c=a.tickPixelInterval;!w(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=ya(this.len/c)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,
c=this.tickAmount,d=this.finalTickAmt,e=b&&b.length;if(e<c){for(;b.length<c;)b.push(ca(b[b.length-1]+a));this.transA*=(e-1)/(c-1);this.max=b[b.length-1]}else e>c&&(this.tickInterval*=2,this.setTickPositions());if(w(d)){for(a=c=b.length;a--;)(3===d&&1===a%2||2>=d&&0<a&&a<c-1)&&b.splice(a,1);this.finalTickAmt=B}},setScale:function(){var a,b;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();b=this.len!==this.oldAxisLength;t(this.series,function(b){if(b.isDirtyData||
b.isDirty||b.xAxis.isDirty)a=!0});b||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty)||(this.isDirty=b||this.min!==this.oldMin||this.max!==this.oldMax):this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart;c=s(c,!0);
t(f.series,function(a){delete a.kdTree});e=v(e,{min:a,max:b});K(f,"setExtremes",e,function(){f.userMin=a;f.userMax=b;f.eventArgs=e;c&&g.redraw(d)})},zoom:function(a,b){var c=this.dataMin,d=this.dataMax,e=this.options,f=I(c,s(e.min,c)),e=x(d,s(e.max,d));this.allowZoomOutside||(w(c)&&a<=f&&(a=f),w(d)&&b>=e&&(b=e));this.displayBtn=a!==B||b!==B;this.setExtremes(a,b,!1,B,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=this.horiz,e=s(b.width,a.plotWidth-
c+(b.offsetRight||0)),f=s(b.height,a.plotHeight),g=s(b.top,a.plotTop),b=s(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=Math.round(parseFloat(f)/100*a.plotHeight));c.test(g)&&(g=Math.round(parseFloat(g)/100*a.plotHeight+a.plotTop));this.left=b;this.top=g;this.width=e;this.height=f;this.bottom=a.chartHeight-f-g;this.right=a.chartWidth-e-b;this.len=x(d?e:f,0);this.pos=d?b:g},getExtremes:function(){var a=this.isLog,b=this.lin2log;return{min:a?ca(b(this.min)):this.min,max:a?ca(b(this.max)):this.max,dataMin:this.dataMin,
dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=this.lin2log,d=b?c(this.min):this.min,b=b?c(this.max):this.max;null===a?a=d:d>a?a=d:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(s(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},tickSize:function(a){var b=this.options,c=b[a+"Length"],d=s(b[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(d&&c)return"inside"===b[a+"Position"]&&(c=
-c),[c,d]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,d=c,e=this.len/(((this.categories?1:0)+this.max-this.min)/c),f,g=a.rotation,h=this.labelMetrics(),k,l=Number.MAX_VALUE,m,n=function(a){a/=e||1;a=1<a?ya(a):1;return a*c};b?(m=!a.staggerLines&&!a.step&&(w(g)?[g]:e<s(a.autoRotationLimit,80)&&a.autoRotation))&&t(m,function(a){var b;
if(a===g||a&&-90<=a&&90>=a)k=n(S(h.h/fa(ma*a))),b=k+S(a/360),b<l&&(l=b,f=a,d=k)}):a.step||(d=n(h.h));this.autoRotation=m;this.labelRotation=s(f,g);return d},getSlotWidth:function(){var a=this.chart,b=this.horiz,c=this.options.labels,d=Math.max(this.tickPositions.length-(this.categories?0:1),1),e=a.margin[3];return b&&2>(c.step||0)&&!c.rotation&&(this.staggerLines||1)*a.plotWidth/d||!b&&(e&&e-a.spacing[3]||0.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,
d=this.ticks,e=this.options.labels,f=this.horiz,g=this.getSlotWidth(),h=x(1,F(g-2*(e.padding||5))),k={},l=this.labelMetrics(),m=e.style.textOverflow,n,p=0,q,r;Ba(e.rotation)||(k.rotation=e.rotation||0);t(c,function(a){(a=d[a])&&a.labelLength>p&&(p=a.labelLength)});this.maxLabelLength=p;if(this.autoRotation)p>h&&p>l.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(g&&(n={width:h+"px"},!m))for(n.textOverflow="clip",q=c.length;!f&&q--;)if(r=c[q],h=d[r].label)if("ellipsis"===h.styles.textOverflow?
h.css({textOverflow:"clip"}):d[r].labelLength>g&&h.css({width:g+"px"}),h.getBBox().height>this.len/c.length-(l.h-l.f))h.specCss={textOverflow:"ellipsis"};k.rotation&&(n={width:(p>0.5*a.chartHeight?0.33*a.chartHeight:a.chartHeight)+"px"},!m)&&(n.textOverflow="ellipsis");if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))k.align=this.labelAlign;t(c,function(a){var b=(a=d[a])&&a.label;b&&(b.attr(k),n&&b.css(H(n,b.specCss)),delete b.specCss,a.rotation=k.rotation)});this.tickRotCorr=b.rotCorr(l.b,
this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||w(this.min)&&w(this.max)&&!!this.tickPositions},getOffset:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,f=a.ticks,g=a.horiz,h=a.side,k=b.inverted?[1,0,3,2][h]:h,l,m,n=0,p,q=0,r=d.title,C=d.labels,u=0,sa=a.opposite,A=b.axisOffset,b=b.clipOffset,y=[-1,1,1,-1][h],v,z=a.axisParent,ba=this.tickSize("tick");l=a.hasData();a.showAxis=m=l||s(d.showEmpty,!0);a.staggerLines=a.horiz&&C.staggerLines;
a.axisGroup||(a.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add(z),a.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).add(z),a.labelGroup=c.g("axis-labels").attr({zIndex:C.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels").add(z));if(l||a.isLinked){if(t(e,function(b){f[b]?f[b].addLabel():f[b]=new bb(a,b)}),a.renderUnsquish(),!1!==C.reserveSpace&&(0===h||2===h||{1:"left",3:"right"}[h]===a.labelAlign||"center"===a.labelAlign)&&t(e,function(a){u=x(f[a].getLabelSize(),u)}),a.staggerLines)u*=
a.staggerLines,a.labelOffset=u*(a.opposite?-1:1)}else for(v in f)f[v].destroy(),delete f[v];r&&r.text&&!1!==r.enabled&&(a.axisTitle||((v=r.textAlign)||(v=(g?{low:"left",middle:"center",high:"right"}:{low:sa?"right":"left",middle:"center",high:sa?"left":"right"})[r.align]),a.axisTitle=c.text(r.text,0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:v}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(r.style).add(a.axisGroup),a.axisTitle.isNew=!0),m&&(n=a.axisTitle.getBBox()[g?
"height":"width"],p=r.offset,q=w(p)?0:s(r.margin,g?5:10)),a.axisTitle[m?"show":"hide"](!0));a.offset=y*s(d.offset,A[h]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=0===h?-a.labelMetrics().h:2===h?a.tickRotCorr.y:0;q=Math.abs(u)+q;u&&(q-=c,q+=y*(g?s(C.y,a.tickRotCorr.y+8*y):C.x));a.axisTitleMargin=s(p,q);A[h]=x(A[h],a.axisTitleMargin+n+y*a.offset,q,l&&e.length&&ba?ba[0]:0);d=d.offset?0:2*X(d.lineWidth/2);b[k]=x(b[k],d)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,
f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;c&&(a*=-1);return b.renderer.crispLine([Z,e?this.left:f,e?d:this.top,U,e?b.chartWidth-this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite,h=this.offset,k=e.x||0,l=e.y||0,m=this.chart.renderer.fontMetrics(e.style.fontSize).f,d={low:f+(a?0:d),middle:f+d/2,high:f+(a?d:0)}[e.align],b=(a?c+this.height:b)+(a?
1:-1)*(g?-1:1)*this.axisTitleMargin+(2===this.side?m:0);return{x:a?d+k:b+(g?this.width:0)+h+k,y:a?b+l-(g?this.height:0)+h:d+l}},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.lin2log,g=a.isLinked,h=a.tickPositions,k=a.axisTitle,l=a.ticks,m=a.minorTicks,n=a.alternateBands,p=d.stackLabels,q=d.alternateGridColor,r=a.tickmarkOffset,C=d.lineWidth,u,s=b.hasRendered&&L(a.oldMin),A=a.showAxis,y=$a(c.globalAnimation),x,w;a.labelEdge.length=0;a.overlap=!1;t([l,m,n],function(a){for(var b in a)a[b].isActive=
!1});if(a.hasData()||g)a.minorTickInterval&&!a.categories&&t(a.getMinorTickPositions(),function(b){m[b]||(m[b]=new bb(a,b,"minor"));s&&m[b].isNew&&m[b].render(null,!0);m[b].render(null,!1,1)}),h.length&&(t(h,function(b,c){if(!g||b>=a.min&&b<=a.max)l[b]||(l[b]=new bb(a,b)),s&&l[b].isNew&&l[b].render(c,!0,0.1),l[b].render(c)}),r&&(0===a.min||a.single))&&(l[-1]||(l[-1]=new bb(a,-1,null,!0)),l[-1].render(-1)),q&&t(h,function(c,d){w=h[d+1]!==B?h[d+1]+r:a.max-r;0===d%2&&c<a.max&&w<=a.max+(b.polar?-r:r)&&
(n[c]||(n[c]=new z.PlotLineOrBand(a)),x=c+r,n[c].options={from:e?f(x):x,to:e?f(w):w,color:q},n[c].render(),n[c].isActive=!0)}),a._addedPlotLB||(t((d.plotLines||[]).concat(d.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0);t([l,m,n],function(a){var c,d,e=[],f=y.duration;for(c in a)a[c].isActive||(a[c].render(c,!1,0),a[c].isActive=!1,e.push(c));Wa(function(){for(d=e.length;d--;)a[e[d]]&&!a[e[d]].isActive&&(a[e[d]].destroy(),delete a[e[d]])},a!==n&&b.hasRendered&&f?f:0)});C&&(u=
a.getLinePath(C),a.axisLine?a.axisLine.animate({d:u}):a.axisLine=c.path(u).attr({stroke:d.lineColor,"stroke-width":C,zIndex:7}).add(a.axisGroup),a.axisLine[A?"show":"hide"](!0));k&&A&&(k[k.isNew?"attr":"animate"](a.getTitlePosition()),k.isNew=!1);p&&p.enabled&&a.renderStackTotals();a.isDirty=!1},redraw:function(){this.visible&&(this.render(),t(this.plotLinesAndBands,function(a){a.render()}));t(this.series,function(a){a.isDirty=!0})},destroy:function(a){var b=this,c=b.stacks,d,e=b.plotLinesAndBands;
a||$(b);for(d in c)Ya(c[d]),c[d]=null;t([b.ticks,b.minorTicks,b.alternateBands],function(a){Ya(a)});for(a=e.length;a--;)e[a].destroy();t("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),function(a){b[a]&&(b[a]=b[a].destroy())});this._addedPlotLB=this.chart._labelPanes=this.ordinalSlope=void 0},drawCrosshair:function(a,b){var c,d=this.crosshair,e,f;a||(a=this.cross&&this.cross.e);this.crosshair&&!1!==(w(b)||!s(d.snap,!0))?(s(d.snap,!0)?w(b)&&(c=this.isXAxis?b.plotX:
this.len-b.plotY):c=this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos,c=this.isRadial?this.getPlotLinePath(this.isXAxis?b.x:s(b.stackY,b.y))||null:this.getPlotLinePath(null,null,null,null,c)||null,null===c)?this.hideCrosshair():(e=this.categories&&!this.isRadial,f=s(d.width,e?this.transA:1),this.cross?this.cross.attr({d:c,visibility:"visible","stroke-width":f}):(e={"pointer-events":"none","stroke-width":f,stroke:d.color||(e?"rgba(155,200,255,0.2)":"#C0C0C0"),zIndex:s(d.zIndex,2)},d.dashStyle&&
(e.dashstyle=d.dashStyle),this.cross=this.chart.renderer.path(c).attr(e).add()),this.cross.e=a):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}};v(ka.prototype,{getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b,null,null,!0),d=this.getPlotLinePath(a,null,null,!0);d&&c?(d.flat=d.toString()===c.toString(),d.push(c[4],c[5],c[1],c[2])):d=null;return d},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,
"plotLines")},addPlotBandOrLine:function(a,b){var c=(new z.PlotLineOrBand(this,a)).render(),d=this.userOptions;c&&(b&&(d[b]=d[b]||[],d[b].push(a)),this.plotLinesAndBands.push(c));return c},removePlotBandOrLine:function(a){for(var b=this.plotLinesAndBands,c=this.options,d=this.userOptions,e=b.length;e--;)b[e].id===a&&b[e].destroy();t([c.plotLines||[],d.plotLines||[],c.plotBands||[],d.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&ua(b,b[e])})}});ka.prototype.getTimeTicks=function(a,b,
c,d){var e=[],f={},g=V.global.useUTC,h,k=new oa(b-eb(b)),l=a.unitRange,m=a.count;if(w(b)){k[Lb](l>=J.second?0:m*X(k.getMilliseconds()/m));if(l>=J.second)k[Mb](l>=J.minute?0:m*X(k.getSeconds()/m));if(l>=J.minute)k[Nb](l>=J.hour?0:m*X(k[Ab]()/m));if(l>=J.hour)k[Ob](l>=J.day?0:m*X(k[Bb]()/m));if(l>=J.day)k[rb](l>=J.month?1:m*X(k[ab]()/m));l>=J.month&&(k[Db](l>=J.year?0:m*X(k[hb]()/m)),h=k[ib]());l>=J.year&&(h-=h%m,k[Eb](h));if(l===J.week)k[rb](k[ab]()-k[Cb]()+s(d,1));b=1;if(xb||fb)k=k.getTime(),k=new oa(k+
eb(k));h=k[ib]();d=k.getTime();for(var n=k[hb](),p=k[ab](),q=!g||!!fb,r=(J.day+(g?eb(k):6E4*k.getTimezoneOffset()))%J.day;d<c;)e.push(d),l===J.year?d=qb(h+b*m,0):l===J.month?d=qb(h,n+b*m):!q||l!==J.day&&l!==J.week?d+=l*m:d=qb(h,n,p+b*m*(l===J.day?1:7)),b++;e.push(d);t(Ga(e,function(a){return l<=J.hour&&a%J.day===r}),function(a){f[a]="day"})}e.info=v(a,{higherRanks:f,totalRange:l*m});return e};ka.prototype.normalizeTimeTickInterval=function(a,b){var c=b||[["millisecond",[1,2,5,10,20,25,50,100,200,
500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],d=c[c.length-1],e=J[d[0]],f=d[1],g;for(g=0;g<c.length&&!(d=c[g],e=J[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+J[c[g+1][0]])/2);g++);e===J.year&&a<5*e&&(f=[1,2,5]);c=zb(a/e,f,"year"===d[0]?x(yb(a/e),1):1);return{unitRange:e,count:c,unitName:d[0]}};ka.prototype.getLogTickPositions=function(a,b,c,d){var e=this.options,f=this.len,g=this.lin2log,h=this.log2lin,
k=[];d||(this._minorAutoInterval=null);if(0.5<=a)a=F(a),k=this.getLinearTickPositions(a,b,c);else if(0.08<=a)for(var f=X(b),l,m,n,p,q,e=0.3<a?[1,2,4]:0.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<c+1&&!q;f++)for(m=e.length,l=0;l<m&&!q;l++)n=h(g(f)*e[l]),n>b&&(!d||p<=c)&&p!==B&&k.push(p),p>c&&(q=!0),p=n;else(b=g(b),c=g(c),a=e[d?"minorTickInterval":"tickInterval"],a=s("auto"===a?null:a,this._minorAutoInterval,e.tickPixelInterval/(d?5:1)*(c-b)/((d?f/this.tickPositions.length:f)||1)),a=zb(a,null,yb(a)),k=
Ha(this.getLinearTickPositions(a,b,c),h),d)||(this._minorAutoInterval=a/5);d||(this.tickInterval=a);return k};ka.prototype.log2lin=function(a){return aa.log(a)/aa.LN10};ka.prototype.lin2log=function(a){return aa.pow(10,a)};var Ub=z.Tooltip=function(){this.init.apply(this,arguments)};Ub.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,e=D(d.padding);this.chart=a;this.options=b;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.label=a.renderer.label("",0,0,b.shape||"callout",null,
null,b.useHTML,null,"tooltip").attr({padding:e,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,zIndex:8,display:"none"}).css(d).css({padding:0}).add();na||this.label.shadow(b.shadow);this.shared=b.shared},destroy:function(){this.label&&(this.label=this.label.destroy());clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,b,c,d){var e=this,f=e.now,g=!1!==e.options.animation&&!e.isHidden&&(1<S(a-f.x)||1<S(b-f.y)),h=e.followPointer||1<e.len;v(f,{x:g?(2*f.x+a)/3:a,
y:g?(f.y+b)/2:b,anchorX:h?B:g?(2*f.anchorX+c)/3:c,anchorY:h?B:g?(f.anchorY+d)/2:d});e.label.attr(f);g&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32))},hide:function(a){var b=this;clearTimeout(this.hideTimer);a=s(a,this.options.hideDelay,500);this.isHidden||(this.hideTimer=Wa(function(){b.label[a?"fadeOut":"hide"]();b.isHidden=!0},a))},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=d.plotTop,g=d.plotLeft,h=0,k=0,l,m;a=xa(a);c=a[0].tooltipPos;
this.followPointer&&b&&(b.chartX===B&&(b=d.pointer.normalize(b)),c=[b.chartX-d.plotLeft,b.chartY-f]);c||(t(a,function(a){l=a.series.yAxis;m=a.series.xAxis;h+=a.plotX+(!e&&m?m.left-g:0);k+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&l?l.top-f:0)}),h/=a.length,k/=a.length,c=[e?d.plotWidth-k:h,this.shared&&!e&&1<a.length&&b?b.chartY-f:e?d.plotHeight-h:k]);return Ha(c,F)},getPosition:function(a,b,c){var d=this.chart,e=this.distance,f={},g=c.h||0,h,k=["y",d.chartHeight,b,c.plotY+d.plotTop,d.plotTop,
d.plotTop+d.plotHeight],l=["x",d.chartWidth,a,c.plotX+d.plotLeft,d.plotLeft,d.plotLeft+d.plotWidth],m=!this.followPointer&&s(c.ttBelow,!d.inverted===!!c.negative),n=function(a,b,c,d,h,k){var l=c<d-e,p=d+e+c<b,n=d-e-c;d+=e;if(m&&p)f[a]=d;else if(!m&&l)f[a]=n;else if(l)f[a]=I(k-c,0>n-g?n:n-g);else if(p)f[a]=x(h,d+g+c>b?d:d+g);else return!1},p=function(a,b,c,d){var g;d<e||d>b-e?g=!1:f[a]=d<c/2?1:d>b-c/2?b-c-2:d-c/2;return g},q=function(a){var b=k;k=l;l=b;h=a},r=function(){!1!==n.apply(0,k)?!1===p.apply(0,
l)&&!h&&(q(!0),r()):h?f.x=f.y=0:(q(!0),r())};(d.inverted||1<this.len)&&q();r();return f},defaultFormatter:function(a){var b=this.points||xa(this),c;c=[a.tooltipFooterHeaderFormatter(b[0])];c=c.concat(a.bodyFormatter(b));c.push(a.tooltipFooterHeaderFormatter(b[0],!0));return c.join("")},refresh:function(a,b){var c=this.chart,d=this.label,e=this.options,f,g,h,k={},l,m=[];l=e.formatter||this.defaultFormatter;var k=c.hoverPoints,n,p=this.shared;clearTimeout(this.hideTimer);this.followPointer=xa(a)[0].series.tooltipOptions.followPointer;
h=this.getAnchor(a,b);f=h[0];g=h[1];!p||a.series&&a.series.noSharedTooltip?k=a.getLabelConfig():(c.hoverPoints=a,k&&t(k,function(a){a.setState()}),t(a,function(a){a.setState("hover");m.push(a.getLabelConfig())}),k={x:a[0].category,y:a[0].y},k.points=m,this.len=m.length,a=a[0]);l=l.call(k,this);k=a.series;this.distance=s(k.tooltipOptions.distance,16);!1===l?this.hide():(this.isHidden&&(Na(d),d.attr({opacity:1,display:"block"}).show()),d.attr({text:l}),n=e.borderColor||a.color||k.color||"#606060",d.attr({stroke:n}),
this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow,h:h[2]||0}),this.isHidden=!1);K(c,"tooltipRefresh",{text:l,x:f+c.plotLeft,y:g+c.plotTop,borderColor:n})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(F(c.x),F(c.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getXDateFormat:function(a,b,c){var d;b=b.dateTimeLabelFormats;var e=c&&c.closestPointRange,f,g={millisecond:15,second:12,minute:9,
hour:6,day:3},h,k="millisecond";if(e){h=Xa("%m-%d %H:%M:%S.%L",a.x);for(f in J){if(e===J.week&&+Xa("%w",a.x)===c.options.startOfWeek&&"00:00:00.000"===h.substr(6)){f="week";break}if(J[f]>e){f=k;break}if(g[f]&&h.substr(g[f])!=="01-01 00:00:00.000".substr(g[f]))break;"week"!==f&&(k=f)}f&&(d=b[f])}else d=b.day;return d||b.year},tooltipFooterHeaderFormatter:function(a,b){var c=b?"footer":"header",d=a.series,e=d.tooltipOptions,f=e.xDateFormat,g=d.xAxis,h=g&&"datetime"===g.options.type&&L(a.key),c=e[c+
"Format"];h&&!f&&(f=this.getXDateFormat(a,e,g));h&&f&&(c=c.replace("{point.key}","{point.key:"+f+"}"));return Qa(c,{point:a,series:d})},bodyFormatter:function(a){return Ha(a,function(a){var c=a.series.tooltipOptions;return(c.pointFormatter||a.point.tooltipFormatter).call(a.point,c.pointFormat)})}};var la;kb=E&&E.documentElement.ontouchstart!==B;var db=z.Pointer=function(a,b){this.init(a,b)};db.prototype={init:function(a,b){var c=b.chart,d=c.events,e=na?"":c.zoomType,c=a.inverted,f;this.options=b;
this.chart=a;this.zoomX=f=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=f&&!c||e&&c;this.zoomVert=e&&!c||f&&c;this.hasZoom=f||e;this.runChartClick=d&&!!d.click;this.pinchDown=[];this.lastValidTouch={};z.Tooltip&&b.tooltip.enabled&&(a.tooltip=new Ub(a,b.tooltip),this.followTouchMove=s(b.tooltip.followTouchMove,!0));this.setDOMEvents()},normalize:function(a,b){var c,d;a=a||G.event;a.target||(a.target=a.srcElement);d=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=
b=Gb(this.chart.container));d.pageX===B?(c=x(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-b.left,d=d.pageY-b.top);return v(a,{chartX:F(c),chartY:F(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};t(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},runPointActions:function(a){var b=this.chart,c=b.series,d=b.tooltip,e=d?d.shared:!1,f=!0,g=b.hoverPoint,h=b.hoverSeries,k,l,m,n=[],p;if(!e&&!h)for(k=0;k<c.length;k++)if(c[k].directTouch||
!c[k].options.stickyTracking)c=[];h&&(e?h.noSharedTooltip:h.directTouch)&&g?n=[g]:(!e&&h&&!h.options.stickyTracking&&(c=[h]),t(c,function(b){l=b.noSharedTooltip&&e;m=!e&&b.directTouch;b.visible&&!l&&!m&&s(b.options.enableMouseTracking,!0)&&(p=b.searchPoint(a,!l&&1===b.kdDimensions))&&p.series&&n.push(p)}),n.sort(function(a,b){var c=a.distX-b.distX,d=a.dist-b.dist,e=a.series.group.zIndex>b.series.group.zIndex?-1:1;return 0!==c?c:0!==d?d:e}));if(e)for(k=n.length;k--;)(n[k].clientX!==n[0].clientX||n[k].series.noSharedTooltip)&&
n.splice(k,1);if(n[0]&&(n[0]!==this.hoverPoint||d&&d.isHidden)){if(e&&!n[0].series.noSharedTooltip){for(k=0;0<=k;k--)n[k].onMouseOver(a,n[k]!==(h&&h.directTouch&&g||n[0]));if(h&&h.directTouch&&g&&g!==n[0])g.onMouseOver(a,!1);n.length&&d&&d.refresh(n.sort(function(a,b){return a.series.index-b.series.index}),a)}else if(d&&d.refresh(n[0],a),!h||!h.directTouch)n[0].onMouseOver(a);this.prevKDPoint=n[0];f=!1}f&&(c=h&&h.tooltipOptions.followPointer,d&&c&&!d.isHidden&&(c=d.getAnchor([{}],a),d.updatePosition({plotX:c[0],
plotY:c[1]})));this._onDocumentMouseMove||(this._onDocumentMouseMove=function(a){if(W[la])W[la].pointer.onDocumentMouseMove(a)},P(E,"mousemove",this._onDocumentMouseMove));t(e?n:[s(g,n[0])],function(c){t(b.axes,function(b){(!c||c.series&&c.series[b.coll]===b)&&b.drawCrosshair(a,c)})})},reset:function(a,b){var c=this.chart,d=c.hoverSeries,e=c.hoverPoint,f=c.hoverPoints,g=c.tooltip,h=g&&g.shared?f:e;a&&h&&t(xa(h),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)g&&h&&(g.refresh(h),
e&&(e.setState(e.state,!0),t(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,e)})));else{if(e)e.onMouseOut();f&&t(f,function(a){a.setState()});if(d)d.onMouseOut();g&&g.hide(b);this._onDocumentMouseMove&&($(E,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null);t(c.axes,function(a){a.hideCrosshair()});this.hoverX=this.prevKDPoint=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,d;t(c.series,function(e){d=a||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&
(e.group.attr(d),e.markerGroup&&(e.markerGroup.attr(d),e.markerGroup.clip(b?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(d))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,d=a.chartX,e=a.chartY,f=this.zoomHor,g=this.zoomVert,h=b.plotLeft,k=b.plotTop,l=b.plotWidth,m=b.plotHeight,n,p=this.selectionMarker,
q=this.mouseDownX,r=this.mouseDownY,s=c.panKey&&a[c.panKey+"Key"];if(!p||!p.touch)if(d<h?d=h:d>h+l&&(d=h+l),e<k?e=k:e>k+m&&(e=k+m),this.hasDragged=Math.sqrt(Math.pow(q-d,2)+Math.pow(r-e,2)),10<this.hasDragged)n=b.isInsidePlot(q-h,r-k),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&n&&!s&&!p&&(this.selectionMarker=p=b.renderer.rect(h,k,f?1:l,g?1:m,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),p&&f&&(d-=q,p.attr({width:S(d),x:(0<d?0:d)+q})),p&&g&&(d=e-r,p.attr({height:S(d),
y:(0<d?0:d)+r})),n&&!p&&c.panning&&b.pan(a,c.panning)},drop:function(a){var b=this,c=this.chart,d=this.hasPinched;if(this.selectionMarker){var e={originalEvent:a,xAxis:[],yAxis:[]},f=this.selectionMarker,g=f.attr?f.attr("x"):f.x,h=f.attr?f.attr("y"):f.y,k=f.attr?f.attr("width"):f.width,l=f.attr?f.attr("height"):f.height,m;if(this.hasDragged||d)t(c.axes,function(c){if(c.zoomEnabled&&w(c.min)&&(d||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var f=c.horiz,q="touchend"===a.type?c.minPixelPadding:0,r=c.toValue((f?
g:h)+q),f=c.toValue((f?g+k:h+l)-q);e[c.coll].push({axis:c,min:I(r,f),max:x(r,f)});m=!0}}),m&&K(c,"selection",e,function(a){c.zoom(v(a,d?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();d&&this.scaleGroups()}c&&(O(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(a){W[la]&&
W[la].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition;a=this.normalize(a,c);c&&!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&this.reset()},onContainerMouseLeave:function(a){var b=W[la];b&&(a.relatedTarget||a.toElement)&&(b.pointer.reset(),b.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;w(la)&&W[la]&&W[la].mouseIsDown||(la=b.index);a=this.normalize(a);a.returnValue=!1;"mousedown"===
b.mouseIsDown&&this.drag(a);(this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop))&&!b.openMenu&&this.runPointActions(a)},inClass:function(a,b){for(var c;a;){if(c=Q(a,"class")){if(-1!==c.indexOf(b))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;if(b&&a&&!b.options.stickyTracking&&!this.inClass(a,"highcharts-tooltip")&&!this.inClass(a,
"highcharts-series-"+b.index))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop;a=this.normalize(a);b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(K(c.series,"click",v(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(v(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&K(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container;b.onmousedown=function(b){a.onContainerMouseDown(b)};b.onmousemove=
function(b){a.onContainerMouseMove(b)};b.onclick=function(b){a.onContainerClick(b)};P(b,"mouseleave",a.onContainerMouseLeave);1===lb&&P(E,"mouseup",a.onDocumentMouseUp);kb&&(b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},1===lb&&P(E,"touchend",a.onDocumentTouchEnd))},destroy:function(){var a;$(this.chart.container,"mouseleave",this.onContainerMouseLeave);lb||($(E,"mouseup",this.onDocumentMouseUp),$(E,"touchend",this.onDocumentTouchEnd));
clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}};v(z.Pointer.prototype,{pinchTranslate:function(a,b,c,d,e,f){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,a,b,c,d,e,f);(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,a,b,c,d,e,f)},pinchTranslateDirection:function(a,b,c,d,e,f,g,h){var k=this.chart,l=a?"x":"y",m=a?"X":"Y",n="chart"+m,p=a?"width":"height",q=k["plot"+(a?"Left":"Top")],r,s,u=h||1,t=k.inverted,A=k.bounds[a?"h":"v"],y=1===b.length,w=b[0][n],
x=c[0][n],v=!y&&b[1][n],z=!y&&c[1][n],B;c=function(){!y&&20<S(w-v)&&(u=h||S(x-z)/S(w-v));s=(q-x)/u+w;r=k["plot"+(a?"Width":"Height")]/u};c();b=s;b<A.min?(b=A.min,B=!0):b+r>A.max&&(b=A.max-r,B=!0);B?(x-=0.8*(x-g[l][0]),y||(z-=0.8*(z-g[l][1])),c()):g[l]=[x,z];t||(f[l]=s-q,f[p]=r);f=t?1/u:u;e[p]=r;e[l]=b;d[t?a?"scaleY":"scaleX":"scale"+m]=u;d["translate"+m]=f*q+(x-f*w)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=a.touches,f=e.length,g=b.lastValidTouch,h=b.hasZoom,k=b.selectionMarker,l={},
m=1===f&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),n={};1<f&&(b.initiated=!0);h&&b.initiated&&!m&&a.preventDefault();Ha(e,function(a){return b.normalize(a)});"touchstart"===a.type?(t(e,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),g.x=[d[0].chartX,d[1]&&d[1].chartX],g.y=[d[0].chartY,d[1]&&d[1].chartY],t(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(s(a.options.min,a.dataMin)),f=a.toPixels(s(a.options.max,
a.dataMax)),g=I(e,f),e=x(e,f);b.min=I(a.pos,g-d);b.max=x(a.pos+a.len,e+d)}}),b.res=!0):d.length&&(k||(b.selectionMarker=k=v({destroy:Fa,touch:!0},c.plotBox)),b.pinchTranslate(d,e,l,k,n,g),b.hasPinched=h,b.scaleGroups(l,n),!h&&b.followTouchMove&&1===f?this.runPointActions(b.normalize(a)):b.res&&(b.res=!1,this.reset(!1,0)))},touch:function(a,b){var c=this.chart,d;la=c.index;1===a.touches.length?(a=this.normalize(a),c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop)&&!c.openMenu)?(b&&this.runPointActions(a),
"touchmove"===a.type&&(c=this.pinchDown,d=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):!1),s(d,!0)&&this.pinch(a)):b&&this.reset():2===a.touches.length&&this.pinch(a)},onContainerTouchStart:function(a){this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(a){W[la]&&W[la].pointer.drop(a)}});if(G.PointerEvent||G.MSPointerEvent){var za={},Ib=!!G.PointerEvent,Xb=function(){var a,b=[];b.item=function(a){return this[a]};for(a in za)za.hasOwnProperty(a)&&
b.push({pageX:za[a].pageX,pageY:za[a].pageY,target:za[a].target});return b},Jb=function(a,b,c,d){"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!W[la]||(d(a),d=W[la].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:Fa,touches:Xb()}))};v(db.prototype,{onContainerPointerDown:function(a){Jb(a,"onContainerTouchStart","touchstart",function(a){za[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){Jb(a,"onContainerTouchMove",
"touchmove",function(a){za[a.pointerId]={pageX:a.pageX,pageY:a.pageY};za[a.pointerId].target||(za[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){Jb(a,"onDocumentTouchEnd","touchend",function(a){delete za[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,Ib?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,Ib?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(E,Ib?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});
mb(db.prototype,"init",function(a,b,c){a.call(this,b,c);this.hasZoom&&O(b.container,{"-ms-touch-action":"none","touch-action":"none"})});mb(db.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(P)});mb(db.prototype,"destroy",function(a){this.batchMSEvents($);a.call(this)})}var vb=z.Legend=function(a,b){this.init(a,b)};vb.prototype={init:function(a,b){var c=this,d=b.itemStyle,e=b.itemMarginTop||0;this.options=b;b.enabled&&(c.itemStyle=d,c.itemHiddenStyle=
H(d,b.itemHiddenStyle),c.itemMarginTop=e,c.padding=d=s(b.padding,8),c.initialItemX=d,c.initialItemY=d-5,c.maxItemWidth=0,c.chart=a,c.itemHeight=0,c.symbolWidth=s(b.symbolWidth,16),c.pages=[],c.render(),P(c.chart,"endResize",function(){c.positionCheckboxes()}))},colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,h=b?a.legendColor||a.color||"#CCC":g,g=a.options&&a.options.marker,k={fill:h},l;d&&d.css({fill:c,
color:c});e&&e.attr({stroke:h});if(f){if(g&&f.isMarker)for(l in k.stroke=h,g=a.convertAttribs(g),g)d=g[l],d!==B&&(k[l]=d);f.attr(k)}},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;(a=a.legendGroup)&&a.element&&a.translate(b?e:this.legendWidth-e-2*c-4,d);f&&(f.x=e,f.y=d)},destroyItem:function(a){var b=a.checkbox;t(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&Za(a.checkbox)},
destroy:function(){var a=this.group,b=this.box;b&&(this.box=b.destroy());a&&(this.group=a.destroy())},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight||this.legendHeight,e=this.titleHeight;b&&(c=b.translateY,t(this.allItems,function(f){var g=f.checkbox,h;g&&(h=c+e+g.y+(a||0)+3,O(g,{left:b.translateX+f.checkboxOffset+g.x-20+"px",top:h+"px",display:h>c-6&&h<c+d-6?"":"none"}))}))},renderTitle:function(){var a=this.padding,b=this.options.title,c=0;b.text&&(this.title||(this.title=
this.chart.renderer.label(b.text,a-3,a-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(b.style).add(this.group)),a=this.title.getBBox(),c=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:c}));this.titleHeight=c},setText:function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?Qa(b.labelFormat,a):b.labelFormatter.call(a)})},renderItem:function(a){var b=this.chart,c=b.renderer,d=this.options,e="horizontal"===d.layout,f=this.symbolWidth,g=d.symbolPadding,
h=this.itemStyle,k=this.itemHiddenStyle,l=this.padding,m=e?s(d.itemDistance,20):0,n=!d.rtl,p=d.width,q=d.itemMarginBottom||0,r=this.itemMarginTop,C=this.initialItemX,u=a.legendItem,t=a.series&&a.series.drawLegendSymbol?a.series:a,A=t.options,A=this.createCheckboxForItem&&A&&A.showCheckbox,y=d.useHTML;u||(a.legendGroup=c.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),a.legendItem=u=c.text("",n?f+g:-g,this.baseline||0,y).css(H(a.visible?h:k)).attr({align:n?"left":"right",zIndex:2}).add(a.legendGroup),
this.baseline||(this.fontMetrics=c.fontMetrics(h.fontSize,u),this.baseline=this.fontMetrics.f+3+r,u.attr("y",this.baseline)),t.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,u,y,h,k),A&&this.createCheckboxForItem(a));this.colorizeItem(a,a.visible);this.setText(a);c=u.getBBox();f=a.checkboxOffset=d.itemWidth||a.legendItemWidth||f+g+c.width+m+(A?20:0);this.itemHeight=g=F(a.legendItemHeight||c.height);e&&this.itemX-C+f>(p||b.chartWidth-2*l-C-d.x)&&(this.itemX=C,this.itemY+=r+this.lastLineHeight+
q,this.lastLineHeight=0);this.maxItemWidth=x(this.maxItemWidth,f);this.lastItemY=r+this.itemY+q;this.lastLineHeight=x(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=f:(this.itemY+=r+g+q,this.lastLineHeight=g);this.offsetWidth=p||x((e?this.itemX-C-m:f)+l,this.offsetWidth)},getAllItems:function(){var a=[];t(this.chart.series,function(b){var c=b.options;s(c.showInLegend,w(c.linkedTo)?!1:B,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});return a},adjustMargins:function(a,
b){var c=this.chart,d=this.options,e=d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0);d.floating||t([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(e)&&!w(a[g])&&(c[ub[g]]=x(c[ub[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*d[g%2?"x":"y"]+s(d.margin,12)+b[g]))})},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,k=a.box,l=a.options,m=a.padding,n=l.borderWidth,p=l.backgroundColor;a.itemX=a.initialItemX;a.itemY=
a.initialItemY;a.offsetWidth=0;a.lastItemY=0;d||(a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup));a.renderTitle();e=a.getAllItems();ob(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});l.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;a.lastLineHeight=0;t(e,function(b){a.renderItem(b)});g=(l.width||a.offsetWidth)+m;h=a.lastItemY+a.lastLineHeight+a.titleHeight;
h=a.handleOverflow(h);h+=m;if(n||p)k?0<g&&0<h&&(k[k.isNew?"attr":"animate"](k.crisp({width:g,height:h})),k.isNew=!1):(a.box=k=c.rect(0,0,g,h,l.borderRadius,n||0).attr({stroke:l.borderColor,"stroke-width":n||0,fill:p||"none"}).add(d).shadow(l.shadow),k.isNew=!0),k[f?"show":"hide"]();a.legendWidth=g;a.legendHeight=h;t(e,function(b){a.positionItem(b)});f&&d.align(v({width:g,height:h},l),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,
e=this.options,f=e.y,f=c.spacingBox.height+("top"===e.verticalAlign?-f:f)-this.padding,g=e.maxHeight,h,k=this.clipRect,l=e.navigation,m=s(l.animation,!0),n=l.arrowSize||12,p=this.nav,q=this.pages,r=this.padding,C,u=this.allItems,w=function(a){k.attr({height:a});b.contentGroup.div&&(b.contentGroup.div.style.clip="rect("+r+"px,9999px,"+(r+a)+"px,0)")};"horizontal"===e.layout&&(f/=2);g&&(f=I(f,g));q.length=0;a>f&&!1!==l.enabled?(this.clipHeight=h=x(f-20-this.titleHeight-r,0),this.currentPage=s(this.currentPage,
1),this.fullHeight=a,t(u,function(a,b){var c=a._legendItemPos[1],d=F(a.legendItem.getBBox().height),e=q.length;if(!e||c-q[e-1]>h&&(C||c)!==q[e-1])q.push(C||c),e++;b===u.length-1&&c+d-q[e-1]>h&&q.push(c);c!==C&&(C=c)}),k||(k=b.clipRect=d.clipRect(0,r,9999,0),b.contentGroup.clip(k)),w(h),p||(this.nav=p=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,n,n).on("click",function(){b.scroll(-1,m)}).add(p),this.pager=d.text("",15,10).css(l.style).add(p),this.down=d.symbol("triangle-down",
0,0,n,n).on("click",function(){b.scroll(1,m)}).add(p)),b.scroll(0),a=f):p&&(w(c.chartHeight),p.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,k=this.pager,l=this.padding;e>d&&(e=d);0<e&&(b!==B&&gb(b,this.chart),this.nav.attr({translateX:l,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===
e?g:h}).css({cursor:1===e?"default":"pointer"}),k.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e===d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c))}};R=z.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||a.fontMetrics.f;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-c+1,a.symbolWidth,c,a.options.symbolRadius||0).attr({zIndex:3}).add(b.legendGroup)},
drawLineMarker:function(a){var b=this.options,c=b.marker,d=a.symbolWidth,e=this.chart.renderer,f=this.legendGroup;a=a.baseline-F(0.3*a.fontMetrics.b);var g;b.lineWidth&&(g={"stroke-width":b.lineWidth},b.dashStyle&&(g.dashstyle=b.dashStyle),this.legendLine=e.path([Z,0,a,U,d,a]).attr(g).add(f));c&&!1!==c.enabled&&(b=c.radius,this.legendSymbol=c=e.symbol(this.symbol,d/2-b,a-b,2*b,2*b,c).add(f),c.isMarker=!0)}};(/Trident\/7\.0/.test(Ea)||Ta)&&mb(vb.prototype,"positionItem",function(a,b){var c=this,d=
function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)});var nb=z.Chart=function(){this.getArgs.apply(this,arguments)};z.chart=function(a,b,c){return new nb(a,b,c)};nb.prototype={callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(Ba(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(a,b){var c,d=a.series;a.series=null;c=H(V,a);c.series=a.series=d;this.userOptions=a;d=c.chart;this.margin=this.splashArray("margin",d);this.spacing=this.splashArray("spacing",
d);var e=d.events;this.bounds={h:{},v:{}};this.callback=b;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;var f=this,g;f.index=W.length;W.push(f);lb++;!1!==d.reflow&&P(f,"load",function(){f.initReflow()});if(e)for(g in e)P(f,g,e[g]);f.xAxis=[];f.yAxis=[];f.animation=na?!1:s(d.animation,!0);f.pointCount=f.colorCounter=f.symbolCounter=0;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=N[a.type||b.type||b.defaultSeriesType])||ga(17,!0);
b=new b;b.init(this,a);return b},isInsidePlot:function(a,b,c){var d=c?b:a;a=c?a:b;return 0<=d&&d<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,h,k=this.hasCartesianSeries,l=this.isDirtyBox,m=c.length,n=m,p=this.renderer,q=p.isHidden(),r=[];gb(a,this);q&&this.cloneRenderTo();for(this.layOutTitles();n--;)if(a=c[n],a.options.stacking&&(g=!0,a.isDirty)){h=!0;break}if(h)for(n=m;n--;)if(a=c[n],a.options.stacking)a.isDirty=
!0;t(c,function(a){a.isDirty&&"point"===a.options.legendType&&(a.updateTotals&&a.updateTotals(),f=!0);a.isDirtyData&&K(a,"updatedData")});f&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);g&&this.getStacks();k&&!this.isResizing&&(this.maxTicks=null,t(b,function(a){a.updateNames();a.setScale()}));this.getMargins();k&&(t(b,function(a){a.isDirty&&(l=!0)}),t(b,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,r.push(function(){K(a,"afterSetExtremes",v(a.eventArgs,a.getExtremes()));delete a.eventArgs}));
(l||g)&&a.redraw()}));l&&this.drawChartBox();t(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.reset(!0);p.draw();K(this,"redraw");q&&this.cloneRenderTo(!0);t(r,function(a){a.call()})},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;d<b.length;d++)if(b[d].options.id===a)return b[d];for(d=0;d<c.length;d++)if(c[d].options.id===a)return c[d];for(d=0;d<c.length;d++)for(e=c[d].points||[],b=0;b<e.length;b++)if(e[b].id===a)return e[b];return null},getAxes:function(){var a=
this,b=this.options,c=b.xAxis=xa(b.xAxis||{}),b=b.yAxis=xa(b.yAxis||{});t(c,function(a,b){a.index=b;a.isX=!0});t(b,function(a,b){a.index=b});c=c.concat(b);t(c,function(b){new ka(a,b)})},getSelectedPoints:function(){var a=[];t(this.series,function(b){a=a.concat(Ga(b.points||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return Ga(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var d=this,e=d.options,f;f=e.title=H(e.title,a);e=e.subtitle=H(e.subtitle,
b);t([["title",a,f],["subtitle",b,e]],function(a){var b=a[0],c=d[b],e=a[1];a=a[2];c&&e&&(d[b]=c=c.destroy());a&&a.text&&!c&&(d[b]=d.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add())});d.layOutTitles(c)},layOutTitles:function(a){var b=0,c=this.title,d=this.subtitle,e=this.options,f=e.title,e=e.subtitle,g=this.renderer,h=this.spacingBox;!c||(c.css({width:(f.width||h.width+f.widthAdjust)+"px"}).align(v({y:g.fontMetrics(f.style.fontSize,
c).b-3},f),!1,h),f.floating||f.verticalAlign)||(b=c.getBBox().height);d&&(d.css({width:(e.width||h.width+e.widthAdjust)+"px"}).align(v({y:b+(f.margin-13)+g.fontMetrics(e.style.fontSize,c).b},e),!1,h),!e.floating&&!e.verticalAlign&&(b=ya(b+d.getBBox().height)));c=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&c&&(this.isDirtyBox=c,this.hasRendered&&s(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,b=a.width,a=a.height,c=this.renderToClone||this.renderTo;
w(b)||(this.containerWidth=qa(c,"width"));w(a)||(this.containerHeight=qa(c,"height"));this.chartWidth=x(0,b||this.containerWidth||600);this.chartHeight=x(0,s(a,19<this.containerHeight?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;if(a){if(b){for(;b.childNodes.length;)this.renderTo.appendChild(b.firstChild);Za(b);delete this.renderToClone}}else c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),
O(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),E.body.appendChild(b),c&&b.appendChild(c)},getContainer:function(){var a,b=this.options,c=b.chart,d,e;a=this.renderTo;var f="highcharts-"+Fb++;a||(this.renderTo=a=c.renderTo);Ba(a)&&(this.renderTo=a=E.getElementById(a));a||ga(13,!0);d=D(Q(a,"data-highcharts-chart"));L(d)&&W[d]&&W[d].hasRendered&&W[d].destroy();Q(a,"data-highcharts-chart",this.index);a.innerHTML="";c.skipClone||
a.offsetWidth||this.cloneRenderTo();this.getChartSize();d=this.chartWidth;e=this.chartHeight;this.container=a=ea(Sa,{className:"highcharts-container"+(c.className?" "+c.className:""),id:f},v({position:"relative",overflow:"hidden",width:d+"px",height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},c.style),this.renderToClone||a);this._cursor=a.style.cursor;this.renderer=new (z[c.renderer]||jb)(a,d,e,c.style,c.forExport,b.exporting&&b.exporting.allowHTML);
na&&this.renderer.create(this,a,d,e);this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();d&&!w(c[0])&&(this.plotTop=x(this.plotTop,d+this.options.title.margin+b[0]));this.legend.display&&this.legend.adjustMargins(c,b);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=
[0,0,0,0],c=a.margin;a.hasCartesianSeries&&t(a.axes,function(a){a.visible&&a.getOffset()});t(ub,function(d,e){w(c[e])||(a[d]+=b[e])});a.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,d=b.renderTo,e=w(c.width),f=c.width||qa(d,"width"),c=c.height||qa(d,"height"),d=a?a.target:G;if(!e&&!b.isPrinting&&f&&c&&(d===G||d===E)){if(f!==b.containerWidth||c!==b.containerHeight)clearTimeout(b.reflowTimeout),b.reflowTimeout=Wa(function(){b.container&&b.setSize(void 0,void 0,!1)},a?100:0);b.containerWidth=
f;b.containerHeight=c}},initReflow:function(){var a=this,b=function(b){a.reflow(b)};P(G,"resize",b);P(a,"destroy",function(){$(G,"resize",b)})},setSize:function(a,b,c){var d=this,e=d.renderer;d.isResizing+=1;gb(c,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;void 0!==a&&(d.options.chart.width=a);void 0!==b&&(d.options.chart.height=b);d.getChartSize();a=e.globalAnimation;(a?cb:O)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},a);d.setChartSize(!0);e.setSize(d.chartWidth,
d.chartHeight,c);d.maxTicks=null;t(d.axes,function(a){a.isDirty=!0;a.setScale()});t(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(c);d.oldChartHeight=null;K(d,"resize");Wa(function(){d&&K(d,"endResize",null,function(){d.isResizing-=1})},$a(a).duration)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,k,l,m,n;this.plotLeft=k=F(this.plotLeft);
this.plotTop=l=F(this.plotTop);this.plotWidth=m=x(0,F(d-k-this.marginRight));this.plotHeight=n=x(0,F(e-l-this.marginBottom));this.plotSizeX=b?n:m;this.plotSizeY=b?m:n;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:d-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=c.plotBox={x:k,y:l,width:m,height:n};d=2*X(this.plotBorderWidth/2);b=ya(x(d,h[3])/2);c=ya(x(d,h[0])/2);this.clipBox={x:b,y:c,width:X(this.plotSizeX-x(d,h[1])/2-b),height:x(0,X(this.plotSizeY-x(d,h[2])/
2-c))};a||t(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this;t(ub,function(b,c){a[b]=s(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,k=a.borderWidth||0,l=a.backgroundColor,m=a.plotBackgroundColor,n=a.plotBackgroundImage,p=a.plotBorderWidth||
0,q,r=this.plotLeft,s=this.plotTop,u=this.plotWidth,t=this.plotHeight,A=this.plotBox,y=this.clipRect,w=this.clipBox;q=k+(a.shadow?8:0);if(k||l)e?e.animate(e.crisp({width:c-q,height:d-q})):(e={fill:l||"none"},k&&(e.stroke=a.borderColor,e["stroke-width"]=k),this.chartBackground=b.rect(q/2,q/2,c-q,d-q,a.borderRadius,k).attr(e).addClass("highcharts-background").add().shadow(a.shadow));m&&(f?f.animate(A):this.plotBackground=b.rect(r,s,u,t,0).attr({fill:m}).add().shadow(a.plotShadow));n&&(h?h.animate(A):
this.plotBGImage=b.image(n,r,s,u,t).add());y?y.animate({width:w.width,height:w.height}):this.clipRect=b.clipRect(w);p&&(g?(g.strokeWidth=-p,g.animate(g.crisp({x:r,y:s,width:u,height:t}))):this.plotBorder=b.rect(r,s,u,t,0,-p).attr({stroke:a.plotBorderColor,"stroke-width":p,fill:"none",zIndex:1}).add());this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;t(["inverted","angular","polar"],function(g){c=N[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];
for(e=d&&d.length;!f&&e--;)(c=N[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},linkSeries:function(){var a=this,b=a.series;t(b,function(a){a.linkedSeries.length=0});t(b,function(b){var d=b.options.linkedTo;Ba(d)&&(d=":previous"===d?a.series[b.index-1]:a.get(d))&&d.linkedParent!==b&&(d.linkedSeries.push(b),b.linkedParent=d,b.visible=s(b.options.visible,d.options.visible,b.visible))})},renderSeries:function(){t(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=
a.options.labels;b.items&&t(b.items,function(c){var d=v(b.style,c.style),e=D(d.left)+a.plotLeft,f=D(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,e,f).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,d,e,f,g;this.setTitle();this.legend=new vb(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;e=this.plotHeight-=21;t(a,function(a){a.setScale()});this.getAxisMargins();f=1.1<
d/this.plotWidth;g=1.05<e/this.plotHeight;if(f||g)this.maxTicks=null,t(a,function(a){(a.horiz&&f||!a.horiz&&g)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&t(a,function(a){a.visible&&a.render()});this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.showCredits(c.credits);this.hasRendered=!0},showCredits:function(a){a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text,0,0).on("click",
function(){a.href&&(G.location.href=a.href)}).attr({align:a.position.align,zIndex:8}).css(a.style).add().align(a.position))},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;K(a,"destroy");W[a.index]=B;lb--;a.renderTo.removeAttribute("data-highcharts-chart");$(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();t("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer scroller rangeSelector legend resetZoomButton tooltip renderer".split(" "),
function(b){var c=a[b];c&&c.destroy&&(a[b]=c.destroy())});d&&(d.innerHTML="",$(d),f&&Za(d));for(e in a)delete a[e]},isReadyToRender:function(){var a=this;return!ha&&G==G.top&&"complete"!==E.readyState||na&&!G.canvg?(na?Tb.push(function(){a.firstRender()},a.options.global.canvasToolsURL):E.attachEvent("onreadystatechange",function(){E.detachEvent("onreadystatechange",a.firstRender);"complete"===E.readyState&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options;if(a.isReadyToRender()){a.getContainer();
K(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();t(b.series||[],function(b){a.initSeries(b)});a.linkSeries();K(a,"beforeRender");z.Pointer&&(a.pointer=new db(a,b));a.render();a.renderer.draw();if(!a.renderer.imgCount&&a.onload)a.onload();a.cloneRenderTo(!0)}},onload:function(){var a=this;t([this.callback].concat(this.callbacks),function(b){b&&void 0!==a.index&&b.apply(a,[a])});K(a,"load");this.onload=null},splashArray:function(a,b){var c=b[a],c=da(c)?c:[c,c,c,c];return[s(b[a+
"Top"],c[0]),s(b[a+"Right"],c[1]),s(b[a+"Bottom"],c[2]),s(b[a+"Left"],c[3])]}};var Hb=z.CenteredSeriesMixin={getCenter:function(){var a=this.options,b=this.chart,c=2*(a.slicedOffset||0),d=b.plotWidth-2*c,b=b.plotHeight-2*c,e=a.center,e=[s(e[0],"50%"),s(e[1],"50%"),a.size||"100%",a.innerSize||0],f=I(d,b),g,h;for(g=0;4>g;++g)h=e[g],a=2>g||2===g&&/%$/.test(h),e[g]=(/%$/.test(h)?[d,b,f,e[2]][g]*parseFloat(h)/100:parseFloat(h))+(a?c:0);e[3]>e[2]&&(e[3]=e[2]);return e}},Pa=function(){};Pa.prototype={init:function(a,
b,c){this.series=a;this.color=a.color;this.applyOptions(b,c);this.pointAttr={};a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length)&&(a.colorCounter=0);a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=c.options.pointValKey||c.pointValKey;a=Pa.prototype.optionsToObject.call(this,a);v(this,a);this.options=this.options?v(this.options,a):a;a.group&&delete this.group;d&&(this.y=this[d]);
this.isNull=s(this.isValid&&!this.isValid(),null===this.x||!L(this.y,!0));"name"in this&&void 0===b&&c.xAxis&&c.xAxis.hasNames&&(this.x=c.xAxis.nameToX(this));void 0===this.x&&c&&(this.x=void 0===b?c.autoIncrement(this):b);return this},optionsToObject:function(a){var b={},c=this.series,d=c.options.keys,e=d||c.pointArrayMap||["y"],f=e.length,g=0,h=0;if(L(a)||null===a)b[e[0]]=a;else if(Ca(a))for(!d&&a.length>f&&(c=typeof a[0],"string"===c?b.name=a[0]:"number"===c&&(b.x=a[0]),g++);h<f;)d&&void 0===a[g]||
(b[e[h]]=a[g]),g++,h++;else"object"===typeof a&&(b=a,a.dataLabels&&(c._hasPointLabels=!0),a.marker&&(c._hasPointMarkers=!0));return b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;b&&(this.setState(),ua(b,this),!b.length)&&(a.hoverPoints=null);if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)$(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a=["graphic","dataLabel",
"dataLabelUpper","connector","shadowGroup"],b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,c=b.tooltipOptions,d=s(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||"";t(b.pointArrayMap||["y"],function(b){b="{point."+b;if(e||f)a=a.replace(b+"}",
e+b+"}"+f);a=a.replace(b+"}",b+":,."+d+"f}")});return Qa(a,{point:this,series:this.series})},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&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});K(this,a,b,c)},visible:!0};var T=z.Series=function(){};T.prototype={isCartesian:!0,type:"line",pointClass:Pa,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor",
"stroke-width":"lineWidth",fill:"fillColor",r:"radius"},directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(a,b){var c=this,d,e,f=a.series,g=function(a,b){return s(a.options.index,a._i)-s(b.options.index,b._i)};c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();v(c,{name:b.name,state:"",pointAttr:{},visible:!1!==b.visible,selected:!0===b.selected});na&&(b.animation=!1);e=b.events;for(d in e)P(c,d,e[d]);if(e&&e.click||b.point&&b.point.events&&
b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();t(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);f.push(c);c._i=f.length-1;ob(f,g);this.yAxis&&ob(this.yAxis.series,g);t(f,function(a,b){a.index=b;a.name=a.name||"Series "+(b+1)})},bindAxes:function(){var a=this,b=a.options,c=a.chart,d;t(a.axisTypes||[],function(e){t(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]!==B&&b[e]===d.id||b[e]===B&&0===
d.index)c.series.push(a),a[e]=c,c.isDirty=!0});!a[e]&&a.optionalAxis!==e&&ga(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments,e=L(b)?function(d){var e="y"===d&&c.toYData?c.toYData(a):a[d];c[d+"Data"][b]=e}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))};t(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,b=s(b,a.pointStart,0);this.pointInterval=c=s(this.pointInterval,a.pointInterval,
1);d&&(a=new oa(b),"day"===d?a=+a[rb](a[ab]()+c):"month"===d?a=+a[Db](a[hb]()+c):"year"===d&&(a=+a[Eb](a[ib]()+c)),c=a-b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,c=b.options.plotOptions,b=b.userOptions||{},d=b.plotOptions||{},e=c[this.type];this.userOptions=a;c=H(e,c.series,a);this.tooltipOptions=H(V.tooltip,V.plotOptions[this.type].tooltip,b.tooltip,d.series&&d.series.tooltip,d[this.type]&&d[this.type].tooltip,a.tooltip);null===e.marker&&delete c.marker;this.zoneAxis=
c.zoneAxis;a=this.zones=(c.zones||[]).slice();!c.negativeColor&&!c.negativeFillColor||c.zones||a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||0,color:c.negativeColor,fillColor:c.negativeFillColor});a.length&&w(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});return c},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(w(d[e])?b=d[e]:(d[e]=b=this.chart[f]%c.length,this.chart[f]+=1),b=c[b]);this[a]=b},getColor:function(){this.options.colorByPoint?
this.options.color=null:this.getCyclic("color",this.options.color||ia[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols);/^url/.test(this.symbol)&&(a.radius=0)},drawLegendSymbol:R.drawLineMarker,setData:function(a,b,c,d){var e=this,f=e.points,g=f&&f.length||0,h,k=e.options,l=e.chart,m=null,n=e.xAxis,p=k.turboThreshold,q=this.xData,r=this.yData,C=(h=e.pointArrayMap)&&h.length;a=a||[];h=a.length;b=
s(b,!0);if(!1!==d&&h&&g===h&&!e.cropped&&!e.hasGroupedData&&e.visible)t(a,function(a,b){f[b].update&&a!==k.data[b]&&f[b].update(a,!1,null,!1)});else{e.xIncrement=null;e.colorCounter=0;t(this.parallelArrays,function(a){e[a+"Data"].length=0});if(p&&h>p){for(c=0;null===m&&c<h;)m=a[c],c++;if(L(m))for(c=0;c<h;c++)q[c]=this.autoIncrement(),r[c]=a[c];else if(Ca(m))if(C)for(c=0;c<h;c++)m=a[c],q[c]=m[0],r[c]=m.slice(1,C+1);else for(c=0;c<h;c++)m=a[c],q[c]=m[0],r[c]=m[1];else ga(12)}else for(c=0;c<h;c++)a[c]!==
B&&(m={series:e},e.pointClass.prototype.applyOptions.apply(m,[a[c]]),e.updateParallelArrays(m,c));Ba(r[0])&&ga(14,!0);e.data=[];e.options.data=e.userOptions.data=a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();n&&(n.minRange=n.userMinRange);e.isDirty=e.isDirtyData=l.isDirtyBox=!0;c=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());b&&l.redraw(c)},processData:function(a){var b=this.xData,c=this.yData,d=b.length,e;e=0;var f,g,h=this.xAxis,k,l=this.options;k=l.cropThreshold;var m=
this.getExtremesFromAll||l.getExtremesFromAll,n=this.isCartesian,l=h&&h.val2lin,p=h&&h.isLog,q,r;if(n&&!(this.isDirty||h.isDirty||this.yAxis.isDirty||a))return!1;h&&(a=h.getExtremes(),q=a.min,r=a.max);if(n&&this.sorted&&!m&&(!k||d>k||this.forceCrop))if(b[d-1]<q||b[0]>r)b=[],c=[];else if(b[0]<q||b[d-1]>r)e=this.cropData(this.xData,this.yData,q,r),b=e.xData,c=e.yData,e=e.start,f=!0;for(k=b.length||1;--k;)d=p?l(b[k])-l(b[k-1]):b[k]-b[k-1],0<d&&(g===B||d<g)?g=d:0>d&&this.requireSorting&&ga(15);this.cropped=
f;this.cropStart=e;this.processedXData=b;this.processedYData=c;this.closestPointRange=g},cropData:function(a,b,c,d){var e=a.length,f=0,g=e,h=s(this.cropShoulder,1),k;for(k=0;k<e;k++)if(a[k]>=c){f=x(0,k-h);break}for(c=k;c<e;c++)if(a[c]>d){g=c+h;break}return{xData:a.slice(f,g),yData:b.slice(f,g),start:f,end:g}},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,l=this.hasGroupedData,m,n=[],p;
b||l||(b=[],b.length=a.length,b=this.data=b);for(p=0;p<g;p++)k=h+p,l?(n[p]=(new f).init(this,[d[p]].concat(xa(e[p]))),n[p].dataGroup=this.groupMap[p]):(b[k]?m=b[k]:a[k]!==B&&(b[k]=m=(new f).init(this,a[k],d[p])),n[p]=m),n[p].index=k;if(b&&(g!==(c=b.length)||l))for(p=0;p<c;p++)if(p===h&&!l&&(p+=g),b[p])b[p].destroyElements(),b[p].plotX=B;this.data=b;this.points=n},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,d,e=[],f=0;d=this.xAxis.getExtremes();var g=d.min,h=d.max,k,l,m,n;a=a||this.stackedYData||
this.processedYData||[];d=a.length;for(n=0;n<d;n++)if(l=c[n],m=a[n],k=(L(m,!0)||Ca(m))&&(!b.isLog||m.length||0<m),l=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(c[n+1]||l)>=g&&(c[n-1]||l)<=h,k&&l)if(k=m.length)for(;k--;)null!==m[k]&&(e[f++]=m[k]);else e[f++]=m;this.dataMin=Ra(e);this.dataMax=Ka(e)},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,e=this.yAxis,f=this.points,
g=f.length,h=!!this.modifyValue,k=a.pointPlacement,l="between"===k||L(k),m=a.threshold,n=a.startFromThreshold?m:0,p,q,r,t,u=Number.MAX_VALUE,a=0;a<g;a++){var v=f[a],A=v.x,y=v.y;q=v.low;var z=b&&e.stacks[(this.negStacks&&y<(n?0:m)?"-":"")+this.stackKey],F;e.isLog&&null!==y&&0>=y&&(v.isNull=!0);v.plotX=p=ca(I(x(-1E5,c.translate(A,0,0,0,1,k,"flags"===this.type)),1E5));b&&this.visible&&!v.isNull&&z&&z[A]&&(t=this.getStackIndicator(t,A,this.index),F=z[A],y=F.points[t.key],q=y[0],y=y[1],q===n&&t.key===
z[A].base&&(q=s(m,e.min)),e.isLog&&0>=q&&(q=null),v.total=v.stackTotal=F.total,v.percentage=F.total&&v.y/F.total*100,v.stackY=y,F.setOffset(this.pointXOffset||0,this.barW||0));v.yBottom=w(q)?e.translate(q,0,1,0,1):null;h&&(y=this.modifyValue(y,v));v.plotY=q="number"===typeof y&&Infinity!==y?I(x(-1E5,e.translate(y,0,1,0,1)),1E5):B;v.isInside=q!==B&&0<=q&&q<=e.len&&0<=p&&p<=c.len;v.clientX=l?ca(c.translate(A,0,0,0,1,k)):p;v.negative=v.y<(m||0);v.category=d&&d[v.x]!==B?d[v.x]:v.x;v.isNull||(void 0!==
r&&(u=I(u,S(p-r))),r=p)}this.closestPointRangePx=u},getValidPoints:function(a,b){var c=this.chart;return Ga(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,e=b.inverted,f=this.clipBox,g=f||b.clipBox,h=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,g.height,c.xAxis,c.yAxis].join(),k=b[h],l=b[h+"m"];k||(a&&(g.width=0,b[h+"m"]=l=d.clipRect(-99,e?-b.plotLeft:-b.plotTop,99,
e?b.chartWidth:b.chartHeight)),b[h]=k=d.clipRect(g),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||f?k:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],k.count.length-=1),0===k.count.length&&h&&b[h]&&(f||(b[h]=b[h].destroy()),b[h+"m"]&&(b[h+"m"]=b[h+"m"].destroy())))},animate:function(a){var b=this.chart,c=$a(this.options.animation),d;a?this.setClip(c):(d=this.sharedClipKey,
(a=b[d])&&a.animate({width:b.plotSizeX},c),b[d+"m"]&&b[d+"m"].animate({width:b.plotSizeX+99},c),this.animate=null)},afterAnimate:function(){this.setClip();K(this,"afterAnimate")},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,k,l,m,n=this.options.marker,p=this.pointAttr[""],q,r,t,u=this.markerGroup,w=s(n.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(f=b.length;f--;)(g=b[f],d=X(g.plotX),e=g.plotY,m=g.graphic,q=g.marker||
{},r=!!g.marker,a=w&&q.enabled===B||q.enabled,t=g.isInside,a&&L(e)&&null!==g.y)?(a=g.pointAttr[g.selected?"select":""]||p,h=a.r,k=s(q.symbol,this.symbol),l=0===k.indexOf("url"),m)?m[t?"show":"hide"](!0).attr(a).animate(v({x:d-h,y:e-h},m.symbolName?{width:2*h,height:2*h}:{})):t&&(0<h||l)&&(g.graphic=c.renderer.symbol(k,d-h,e-h,2*h,2*h,r?q:n).attr(a).add(u)):m&&(g.graphic=m.destroy())},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]=s(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=a.options,c=ia[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color,h=a.options.negativeColor,k={stroke:g,fill:g},l=a.points||[],m,n=[],p,q=a.pointAttrToOptions;f=a.hasPointSpecificOptions;var r=c.lineColor,C=c.fillColor;m=b.turboThreshold;var u=a.zones,x=a.zoneAxis||"y",A,y;b.marker?(e.radius=+e.radius||+c.radius+ +e.radiusPlus,e.lineWidth=e.lineWidth||c.lineWidth+e.lineWidthPlus):(e.color=e.color||pa(e.color||g).brighten(e.brightness).get(),
e.negativeColor=e.negativeColor||pa(e.negativeColor||h).brighten(e.brightness).get());n[""]=a.convertAttribs(c,k);t(["hover","select"],function(b){n[b]=a.convertAttribs(d[b],n[""])});a.pointAttr=n;g=l.length;if(!m||g<m||f)for(;g--;){m=l[g];(c=m.options&&m.options.marker||m.options)&&!1===c.enabled&&(c.radius=0);k=null;if(u.length){f=0;for(k=u[f];m[x]>=k.value;)k=u[++f];m.color=m.fillColor=k=s(k.color,a.color)}f=b.colorByPoint||m.color;if(m.options)for(y in q)w(c[q[y]])&&(f=!0);if(f){c=c||{};p=[];
d=c.states||{};f=d.hover=d.hover||{};if(!b.marker||m.negative&&!f.fillColor&&!e.fillColor)f[a.pointAttrToOptions.fill]=f.color||!m.options.color&&e[m.negative&&h?"negativeColor":"color"]||pa(m.color).brighten(f.brightness||e.brightness).get();A={color:m.color};C||(A.fillColor=m.color);r||(A.lineColor=m.color);c.hasOwnProperty("color")&&!c.color&&delete c.color;k&&!e.fillColor&&(f.fillColor=k);p[""]=a.convertAttribs(v(A,c),n[""]);p.hover=a.convertAttribs(d.hover,n.hover,p[""]);p.select=a.convertAttribs(d.select,
n.select,p[""])}else p=n;m.pointAttr=p}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(Ea),d,e=a.data||[],f,g,h;K(a,"destroy");$(a);t(a.axisTypes||[],function(b){if(h=a[b])ua(h.series,a),h.isDirty=h.forceRedraw=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(d=e.length;d--;)(f=e[d])&&f.destroy&&f.destroy();a.points=null;clearTimeout(a.animationTimeout);for(g in a)a[g]instanceof M&&!a[g].survive&&(d=c&&"group"===g?"hide":"destroy",a[g][d]());b.hoverSeries===a&&(b.hoverSeries=
null);ua(b.series,a);for(g in a)delete a[g]},getGraphPath:function(a,b,c){var d=this,e=d.options,f=e.step,g,h=[],k=[],l;a=a||d.points;(g=a.reversed)&&a.reverse();(f={right:1,center:2}[f]||f&&3)&&g&&(f=4-f);e.connectNulls&&!b&&!c&&(a=this.getValidPoints(a));t(a,function(g,n){var p=g.plotX,q=g.plotY,r=a[n-1];(g.leftCliff||r&&r.rightCliff)&&!c&&(l=!0);g.isNull&&!w(b)&&0<n?l=!e.connectNulls:g.isNull&&!b?l=!0:(0===n||l?r=[Z,g.plotX,g.plotY]:d.getPointSpline?r=d.getPointSpline(a,g,n):f?(r=1===f?[U,r.plotX,
q]:2===f?[U,(r.plotX+p)/2,r.plotY,U,(r.plotX+p)/2,q]:[U,p,r.plotY],r.push(U,p,q)):r=[U,p,q],k.push(g.x),f&&k.push(g.x),h.push.apply(h,r),l=!1)});h.xMap=k;return d.graphPath=h},drawGraph:function(){var a=this,b=this.options,c=[["graph",b.lineColor||this.color,b.dashStyle]],d=b.lineWidth,e="square"!==b.linecap,f=(this.gappedPath||this.getGraphPath).call(this);t(this.zones,function(d,e){c.push(["zoneGraph"+e,d.color||a.color,d.dashStyle||b.dashStyle])});t(c,function(c,h){var k=c[0],l=a[k];l?(l.endX=
f.xMap,l.animate({d:f})):d&&f.length&&(l={stroke:c[1],"stroke-width":d,fill:"none",zIndex:1},c[2]?l.dashstyle=c[2]:e&&(l["stroke-linecap"]=l["stroke-linejoin"]="round"),l=a[k]=a.chart.renderer.path(f).attr(l).add(a.group).shadow(2>h&&b.shadow));l&&(l.startX=f.xMap,l.isArea=f.isArea)})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,e,f,g=this.clips||[],h,k=this.graph,l=this.area,m=x(b.chartWidth,b.chartHeight),n=this[(this.zoneAxis||"y")+"Axis"],p,q,r=b.inverted,C,u,w,A,y=
!1;d.length&&(k||l)&&n&&n.min!==B&&(q=n.reversed,C=n.horiz,k&&k.hide(),l&&l.hide(),p=n.getExtremes(),t(d,function(d,t){e=q?C?b.plotWidth:0:C?0:n.toPixels(p.min);e=I(x(s(f,e),0),m);f=I(x(F(n.toPixels(s(d.value,p.max),!0)),0),m);y&&(e=f=n.toPixels(p.max));u=Math.abs(e-f);w=I(e,f);A=x(e,f);if(n.isXAxis)(h={x:r?A:w,y:0,width:u,height:m},C)||(h.x=b.plotHeight-h.x);else if(h={x:0,y:r?A:w,width:m,height:u},C)h.y=b.plotWidth-h.y;r&&c.isVML&&(h=n.isXAxis?{x:0,y:q?w:A,height:h.width,width:b.chartWidth}:{x:h.y-
b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});g[t]?g[t].animate(h):(g[t]=c.clipRect(h),k&&a["zoneGraph"+t].clip(g[t]),l&&a["zoneArea"+t].clip(g[t]));y=d.value>p.max}),this.clips=g)},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};t(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;b.xAxis&&(P(c,"resize",a),P(b,"destroy",function(){$(c,"resize",a)}),a(),b.invertGroups=a)},plotGroup:function(a,b,c,d,e){var f=
this[a],g=!f;g&&(this[a]=f=this.chart.renderer.g(b).attr({zIndex:d||0.1}).add(e),f.addClass("highcharts-series-"+this.index));f.attr({visibility:c})[g?"attr":"animate"](this.getPlotBox());return f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,c,d=a.options,e=!!a.animate&&b.renderer.isSVG&&$a(d.animation).duration,f=a.visible?
"inherit":"hidden",g=d.zIndex,h=a.hasRendered,k=b.seriesGroup;c=a.plotGroup("group","series",f,g,k);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,k);e&&a.animate(!0);a.getAttribs();c.inverted=a.isCartesian?b.inverted:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());t(a.points,function(a){a.redraw&&a.redraw()});a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();b.inverted&&a.invertGroups();!1===d.clip||a.sharedClipKey||
h||c.clip(b.clipRect);e&&a.animate();h||(a.animationTimeout=Wa(function(){a.afterAnimate()},e));a.isDirty=a.isDirtyData=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:s(d&&d.left,a.plotLeft),translateY:s(e&&e.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(a,
b){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:e?d.len-a.chartX+d.pos:a.chartY-d.pos},b)},buildKDTree:function(){function a(c,e,f){var g,h;if(h=c&&c.length)return g=b.kdAxisArray[e%f],c.sort(function(a,b){return a[g]-b[g]}),h=Math.floor(h/2),{point:c[h],left:a(c.slice(0,h),e+1,f),right:a(c.slice(h+1),e+1,f)}}var b=this,c=b.kdDimensions;delete b.kdTree;Wa(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),
c,c)},b.options.kdNow?0:1)},searchKDTree:function(a,b){function c(a,b,l,m){var n=b.point,p=d.kdAxisArray[l%m],q,r,s=n;r=w(a[e])&&w(n[e])?Math.pow(a[e]-n[e],2):null;q=w(a[f])&&w(n[f])?Math.pow(a[f]-n[f],2):null;q=(r||0)+(q||0);n.dist=w(q)?Math.sqrt(q):Number.MAX_VALUE;n.distX=w(r)?Math.sqrt(r):Number.MAX_VALUE;p=a[p]-n[p];q=0>p?"left":"right";r=0>p?"right":"left";b[q]&&(q=c(a,b[q],l+1,m),s=q[g]<s[g]?q:n);b[r]&&Math.sqrt(p*p)<s[g]&&(a=c(a,b[r],l+1,m),s=a[g]<s[g]?a:s);return s}var d=this,e=this.kdAxisArray[0],
f=this.kdAxisArray[1],g=b?"distX":"dist";this.kdTree||this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,this.kdDimensions,this.kdDimensions)}};Pb.prototype={destroy:function(){Ya(this,this.axis)},render:function(a){var b=this.options,c=b.format,c=c?Qa(c,this):b.formatter.call(this);this.label?this.label.attr({text:c,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(c,null,null,b.useHTML).css(b.style).attr({align:this.textAlign,rotation:b.rotation,visibility:"hidden"}).add(a)},
setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted,f=c.reversed,f=this.isNegative&&!f||!this.isNegative&&f,g=c.translate(c.usePercentage?100:this.total,0,0,0,1),c=c.translate(0),c=S(g-c),h=d.xAxis[0].translate(this.x)+a,k=d.plotHeight,f={x:e?f?g:g-c:h,y:e?k-h-b:f?k-g-c:k-g,width:e?c:b,height:e?b:c};if(e=this.label)e.align(this.alignOptions,null,f),f=e.alignAttr,e[!1===this.options.crop||d.isInsidePlot(f.x,f.y)?"show":"hide"](!0)}};nb.prototype.getStacks=function(){var a=this;t(a.yAxis,
function(a){a.stacks&&a.hasVisibleSeries&&(a.oldStacks=a.stacks)});t(a.series,function(b){!b.options.stacking||!0!==b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=b.type+s(b.options.stack,""))})};ka.prototype.buildStacks=function(){var a=this.series,b,c=s(this.options.reversedStacks,!0),d=a.length,e;if(!this.isXAxis){this.usePercentage=!1;for(e=d;e--;)a[c?e:d-e-1].setStackedPoints();for(e=d;e--;)b=a[c?e:d-e-1],b.setStackCliffs&&b.setStackCliffs();if(this.usePercentage)for(e=0;e<d;e++)a[e].setPercentStacks()}};
ka.prototype.renderStackTotals=function(){var a=this.chart,b=a.renderer,c=this.stacks,d,e,f=this.stackTotalGroup;f||(this.stackTotalGroup=f=b.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());f.translate(a.plotLeft,a.plotTop);for(d in c)for(e in a=c[d],a)a[e].render(f)};ka.prototype.resetStacks=function(){var a=this.stacks,b,c;if(!this.isXAxis)for(b in a)for(c in a[b])a[b][c].touched<this.stacksTouched?(a[b][c].destroy(),delete a[b][c]):(a[b][c].total=null,a[b][c].cum=0)};ka.prototype.cleanStacks=
function(){var a,b,c;if(!this.isXAxis)for(b in this.oldStacks&&(a=this.stacks=this.oldStacks),a)for(c in a[b])a[b][c].cum=a[b][c].total};T.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var a=this.processedXData,b=this.processedYData,c=[],d=b.length,e=this.options,f=e.threshold,g=e.startFromThreshold?f:0,h=e.stack,e=e.stacking,k=this.stackKey,l="-"+k,m=this.negStacks,n=this.yAxis,p=n.stacks,q=n.oldStacks,r,t,u,
v,A,y,z;n.stacksTouched+=1;for(A=0;A<d;A++)y=a[A],z=b[A],r=this.getStackIndicator(r,y,this.index),v=r.key,u=(t=m&&z<(g?0:f))?l:k,p[u]||(p[u]={}),p[u][y]||(q[u]&&q[u][y]?(p[u][y]=q[u][y],p[u][y].total=null):p[u][y]=new Pb(n,n.options.stackLabels,t,y,h)),u=p[u][y],null!==z&&(u.points[v]=u.points[this.index]=[s(u.cum,g)],w(u.cum)||(u.base=v),u.touched=n.stacksTouched,0<r.index&&!1===this.singleStacks&&(u.points[v][0]=u.points[this.index+","+y+",0"][0])),"percent"===e?(t=t?k:l,m&&p[t]&&p[t][y]?(t=p[t][y],
u.total=t.total=x(t.total,u.total)+S(z)||0):u.total=ca(u.total+(S(z)||0))):u.total=ca(u.total+(z||0)),u.cum=s(u.cum,g)+(z||0),null!==z&&(u.points[v].push(u.cum),c[A]=u.cum);"percent"===e&&(n.usePercentage=!0);this.stackedYData=c;n.oldStacks={}}};T.prototype.setPercentStacks=function(){var a=this,b=a.stackKey,c=a.yAxis.stacks,d=a.processedXData,e;t([b,"-"+b],function(b){for(var g,h=d.length,k,l;h--;)if(k=d[h],e=a.getStackIndicator(e,k,a.index),g=(l=c[b]&&c[b][k])&&l.points[e.key],k=g)l=l.total?100/
l.total:0,k[0]=ca(k[0]*l),k[1]=ca(k[1]*l),a.stackedYData[h]=k[1]})};T.prototype.getStackIndicator=function(a,b,c){w(a)&&a.x===b?a.index++:a={x:b,index:0};a.key=[c,b,a.index].join();return a};v(nb.prototype,{addSeries:function(a,b,c){var d,e=this;a&&(b=s(b,!0),K(e,"addSeries",{options:a},function(){d=e.initSeries(a);e.isDirtyLegend=!0;e.linkSeries();b&&e.redraw(c)}));return d},addAxis:function(a,b,c,d){var e=b?"xAxis":"yAxis",f=this.options;a=H(a,{index:this[e].length,isX:b});new ka(this,a);f[e]=xa(f[e]||
{});f[e].push(a);s(c,!0)&&this.redraw(d)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,f=function(){d&&O(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=ea(Sa,{className:"highcharts-loading"},v(e.style,{zIndex:10,display:"none"}),b.container),b.loadingSpan=ea("span",null,e.labelStyle,d),P(b,"redraw",f));b.loadingSpan.innerHTML=a||c.lang.loading;b.loadingShown||(O(d,{opacity:0,display:""}),cb(d,{opacity:e.style.opacity},
{duration:e.showDuration||0}),b.loadingShown=!0);f()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&cb(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){O(b,{display:"none"})}});this.loadingShown=!1}});v(Pa.prototype,{update:function(a,b,c,d){function e(){f.applyOptions(a);null===f.y&&h&&(f.graphic=h.destroy());da(a,!0)&&(f.redraw=function(){h&&h.element&&a&&a.marker&&a.marker.symbol&&(f.graphic=h.destroy());a&&a.dataLabels&&f.dataLabel&&(f.dataLabel=f.dataLabel.destroy());
f.redraw=null});k=f.index;g.updateParallelArrays(f,k);m.data[k]=da(m.data[k],!0)?f.options:a;g.isDirty=g.isDirtyData=!0;!g.fixedBox&&g.hasCartesianSeries&&(l.isDirtyBox=!0);"point"===m.legendType&&(l.isDirtyLegend=!0);b&&l.redraw(c)}var f=this,g=f.series,h=f.graphic,k,l=g.chart,m=g.options;b=s(b,!0);!1===d?e():f.firePointEvent("update",{options:a},e)},remove:function(a,b){this.series.removePoint(ra(this,this.series.data),a,b)}});v(T.prototype,{addPoint:function(a,b,c,d){var e=this.options,f=this.data,
g=this.chart,h=this.xAxis&&this.xAxis.names,k=e.data,l,m,n=this.xData,p,q;b=s(b,!0);l={series:this};this.pointClass.prototype.applyOptions.apply(l,[a]);q=l.x;p=n.length;if(this.requireSorting&&q<n[p-1])for(m=!0;p&&n[p-1]>q;)p--;this.updateParallelArrays(l,"splice",p,0,0);this.updateParallelArrays(l,p);h&&l.name&&(h[q]=l.name);k.splice(p,0,a);m&&(this.data.splice(p,0,null),this.processData());"point"===e.legendType&&this.generatePoints();c&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(l,
"shift"),k.shift()));this.isDirtyData=this.isDirty=!0;b&&(this.getAttribs(),g.redraw(d))},removePoint:function(a,b,c){var d=this,e=d.data,f=e[a],g=d.points,h=d.chart,k=function(){g&&g.length===e.length&&g.splice(a,1);e.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(f||{series:d},"splice",a,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&h.redraw()};gb(c,h);b=s(b,!0);f?f.firePointEvent("remove",null,k):k()},remove:function(a,b,c){function d(){e.destroy();f.isDirtyLegend=f.isDirtyBox=
!0;f.linkSeries();s(a,!0)&&f.redraw(b)}var e=this,f=e.chart;!1!==c?K(e,"remove",null,d):d()},update:function(a,b){var c=this,d=this.chart,e=this.userOptions,f=this.type,g=N[f].prototype,h=["group","markerGroup","dataLabelsGroup"],k;if(a.type&&a.type!==f||void 0!==a.zIndex)h.length=0;t(h,function(a){h[a]=c[a];delete c[a]});a=H(e,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},a);this.remove(!1,null,!1);for(k in g)this[k]=B;v(this,N[a.type||f].prototype);t(h,function(a){c[a]=
h[a]});this.init(d,a);d.linkSeries();s(b,!0)&&d.redraw(!1)}});v(ka.prototype,{update:function(a,b){var c=this.chart;a=c.options[this.coll][this.options.index]=H(this.userOptions,a);this.destroy(!0);this.init(c,v(a,{events:B}));c.isDirtyBox=!0;s(b,!0)&&c.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,d=this.series,e=d.length;e--;)d[e]&&d[e].remove(!1);ua(b.axes,this);ua(b[c],this);b.options[c].splice(this.options.index,1);t(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=
!0;s(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}});var Aa=va(T);N.line=Aa;ia.area=H(ja,{softThreshold:!1,threshold:0});var ta=va(T,{type:"area",singleStacks:!1,getStackPoints:function(){var a=[],b=[],c=this.xAxis,d=this.yAxis,e=d.stacks[this.stackKey],f={},g=this.points,h=this.index,k=d.series,l=k.length,m,n=s(d.options.reversedStacks,!0)?1:-1,p,q;if(this.options.stacking){for(p=0;p<g.length;p++)f[g[p].x]=g[p];for(q in e)null!==
e[q].total&&b.push(q);b.sort(function(a,b){return a-b});m=Ha(k,function(){return this.visible});t(b,function(g,k){var q=0,s,w;if(f[g]&&!f[g].isNull)a.push(f[g]),t([-1,1],function(a){var c=1===a?"rightNull":"leftNull",d=0,q=e[b[k+a]];if(q)for(p=h;0<=p&&p<l;)(s=q.points[p])||(p===h?f[g][c]=!0:m[p]&&(w=e[g].points[p])&&(d-=w[1]-w[0])),p+=n;f[g][1===a?"rightCliff":"leftCliff"]=d});else{for(p=h;0<=p&&p<l;){if(s=e[g].points[p]){q=s[1];break}p+=n}q=d.toPixels(q,!0);a.push({isNull:!0,plotX:c.toPixels(g,!0),
plotY:q,yBottom:q})}})}return a},getGraphPath:function(a){var b=T.prototype.getGraphPath,c=this.options,d=c.stacking,e=this.yAxis,f,g,h=[],k=[],l=this.index,m,n=e.stacks[this.stackKey],p=c.threshold,q=e.getThreshold(c.threshold),r,c=c.connectNulls||"percent"===d,t=function(b,c,f){var g=a[b];b=d&&n[g.x].points[l];var r=g[f+"Null"]||0;f=g[f+"Cliff"]||0;var s,t,g=!0;f||r?(s=(r?b[0]:b[1])+f,t=b[0]+f,g=!!r):!d&&a[c]&&a[c].isNull&&(s=t=p);void 0!==s&&(k.push({plotX:m,plotY:null===s?q:e.getThreshold(s),
isNull:g}),h.push({plotX:m,plotY:null===t?q:e.getThreshold(t),doCurve:!1}))};a=a||this.points;d&&(a=this.getStackPoints());for(f=0;f<a.length;f++)if(g=a[f].isNull,m=s(a[f].rectPlotX,a[f].plotX),r=s(a[f].yBottom,q),!g||c)c||t(f,f-1,"left"),g&&!d&&c||(k.push(a[f]),h.push({x:f,plotX:m,plotY:r})),c||t(f,f+1,"right");f=b.call(this,k,!0,!0);h.reversed=!0;g=b.call(this,h,!0,!0);g.length&&(g[0]=U);g=f.concat(g);b=b.call(this,k,!1,c);g.xMap=f.xMap;this.areaPath=g;return b},drawGraph:function(){this.areaPath=
[];T.prototype.drawGraph.apply(this);var a=this,b=this.areaPath,c=this.options,d=[["area",this.color,c.fillColor]];t(this.zones,function(b,f){d.push(["zoneArea"+f,b.color||a.color,b.fillColor||c.fillColor])});t(d,function(d){var f=d[0],g=a[f];g?(g.endX=b.xMap,g.animate({d:b})):(g={fill:d[2]||d[1],zIndex:0},d[2]||(g["fill-opacity"]=s(c.fillOpacity,0.75)),g=a[f]=a.chart.renderer.path(b).attr(g).add(a.group),g.isArea=!0);g.startX=b.xMap;g.shiftUnit=c.step?2:1})},drawLegendSymbol:R.drawRectangle});N.area=
ta;ia.spline=H(ja);Aa=va(T,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1];c=a[c+1];var g,h,k,l;if(f&&!f.isNull&&!1!==f.doCurve&&c&&!c.isNull&&!1!==c.doCurve){a=f.plotY;k=c.plotX;c=c.plotY;var m=0;g=(1.5*d+f.plotX)/2.5;h=(1.5*e+a)/2.5;k=(1.5*d+k)/2.5;l=(1.5*e+c)/2.5;k!==g&&(m=(l-h)*(k-d)/(k-g)+e-l);h+=m;l+=m;h>a&&h>e?(h=x(a,e),l=2*e-h):h<a&&h<e&&(h=I(a,e),l=2*e-h);l>c&&l>e?(l=x(c,e),h=2*e-l):l<c&&l<e&&(l=I(c,e),h=2*e-l);b.rightContX=k;b.rightContY=l}b=["C",s(f.rightContX,
f.plotX),s(f.rightContY,f.plotY),s(g,d),s(h,e),d,e];f.rightContX=f.rightContY=null;return b}});N.spline=Aa;ia.areaspline=H(ia.area);ta=ta.prototype;Aa=va(Aa,{type:"areaspline",getStackPoints:ta.getStackPoints,getGraphPath:ta.getGraphPath,setStackCliffs:ta.setStackCliffs,drawGraph:ta.drawGraph,drawLegendSymbol:R.drawRectangle});N.areaspline=Aa;ia.column=H(ja,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,
shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0});Aa=va(T,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){T.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&t(b.series,
function(b){b.type===a.type&&(b.isDirty=!0)})},getColumnMetrics:function(){var a=this,b=a.options,c=a.xAxis,d=a.yAxis,e=c.reversed,f,g={},h=0;!1===b.grouping?h=1:t(a.chart.series,function(b){var c=b.options,e=b.yAxis,k;b.type===a.type&&b.visible&&d.len===e.len&&d.pos===e.pos&&(c.stacking?(f=b.stackKey,g[f]===B&&(g[f]=h++),k=g[f]):!1!==c.grouping&&(k=h++),b.columnIndex=k)});var k=I(S(c.transA)*(c.ordinalSlope||b.pointRange||c.closestPointRange||c.tickInterval||1),c.len),l=k*b.groupPadding,m=(k-2*l)/
h,b=I(b.maxPointWidth||c.len,s(b.pointWidth,m*(1-2*b.pointPadding)));a.columnMetrics={width:b,offset:(m-b)/2+(l+((a.columnIndex||0)+(e?1:0))*m-k/2)*(e?-1:1)};return a.columnMetrics},crispCol:function(a,b,c,d){var e=this.chart,f=this.borderWidth,g=-(f%2?0.5:0),f=f%2?0.5:1;e.inverted&&e.renderer.isVML&&(f+=1);c=Math.round(a+c)+g;a=Math.round(a)+g;c-=a;d=Math.round(b+d)+f;g=0.5>=S(b)&&0.5<d;b=Math.round(b)+f;d-=b;g&&d&&(b-=1,d+=1);return{x:a,y:b,width:c,height:d}},translate:function(){var a=this,b=a.chart,
c=a.options,d=a.borderWidth=s(c.borderWidth,2>a.closestPointRange*a.xAxis.transA?0:1),e=a.yAxis,f=a.translatedThreshold=e.getThreshold(c.threshold),g=s(c.minPointLength,5),h=a.getColumnMetrics(),k=h.width,l=a.barW=x(k,1+2*d),m=a.pointXOffset=h.offset;b.inverted&&(f-=0.5);c.pointPadding&&(l=ya(l));T.prototype.translate.apply(a);t(a.points,function(c){var d=I(s(c.yBottom,f),9E4),h=999+S(d),h=I(x(-h,c.plotY),e.len+h),r=c.plotX+m,t=l,u=I(h,d),w,v=x(h,d)-u;S(v)<g&&g&&(v=g,w=!e.reversed&&!c.negative||e.reversed&&
c.negative,u=S(u-f)>g?d-g:f-(w?g:0));c.barX=r;c.pointWidth=k;c.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-h,a.xAxis.len-r-t/2,v]:[r+t/2,h+e.pos-b.plotTop,v];c.shapeType="rect";c.shapeArgs=a.crispCol.apply(a,c.isNull?[c.plotX,e.len/2,0,0]:[r,u,t,v])})},getSymbol:Fa,drawLegendSymbol:R.drawRectangle,drawGraph:Fa,drawPoints:function(){var a=this,b=this.chart,c=a.options,d=b.renderer,e=c.animationLimit||250,f,g;t(a.points,function(h){var k=h.graphic,l;L(h.plotY)&&null!==h.y?(f=h.shapeArgs,l=w(a.borderWidth)?
{"stroke-width":a.borderWidth}:{},g=h.pointAttr[h.selected?"select":""]||a.pointAttr[""],k?(Na(k),k.attr(l).attr(g)[b.pointCount<e?"animate":"attr"](H(f))):h.graphic=d[h.shapeType](f).attr(l).attr(g).add(h.group||a.group).shadow(c.shadow,null,c.stacking&&!c.borderRadius)):k&&(h.graphic=k.destroy())})},animate:function(a){var b=this,c=this.yAxis,d=b.options,e=this.chart.inverted,f={};ha&&(a?(f.scaleY=0.001,a=I(c.pos+c.len,x(c.pos,c.toPixels(d.threshold))),e?f.translateX=a-c.len:f.translateY=a,b.group.attr(f)):
(f[e?"translateX":"translateY"]=c.pos,b.group.animate(f,v($a(b.options.animation),{step:function(a,c){b.group.attr({scaleY:x(0.001,c.pos)})}})),b.animate=null))},remove:function(){var a=this,b=a.chart;b.hasRendered&&t(b.series,function(b){b.type===a.type&&(b.isDirty=!0)});T.prototype.remove.apply(a,arguments)}});N.column=Aa;ia.bar=H(ia.column);ta=va(Aa,{type:"bar",inverted:!0});N.bar=ta;ia.scatter=H(ja,{lineWidth:0,marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px;"> {series.name}</span><br/>',
pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});ta=va(T,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&&T.prototype.drawGraph.call(this)}});N.scatter=ta;ia.pie=H(ja,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return null===this.y?void 0:
this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});ja={type:"pie",isCartesian:!1,pointClass:va(Pa,{init:function(){Pa.prototype.init.apply(this,arguments);var a=this,b;a.name=s(a.name,"Slice");b=function(b){a.slice("select"===b.type)};P(a,"select",b);P(a,"unselect",b);return a},setVisible:function(a,b){var c=this,d=c.series,e=d.chart,f=d.options.ignoreHiddenPoint;
b=s(b,f);a!==c.visible&&(c.visible=c.options.visible=a=a===B?!c.visible:a,d.options.data[ra(c,d.data)]=c.options,t(["graphic","dataLabel","connector","shadowGroup"],function(b){if(c[b])c[b][a?"show":"hide"](!0)}),c.legendItem&&e.legend.colorizeItem(c,a),!a&&"hover"===c.state&&c.setState(""),f&&(d.isDirty=!0),b&&e.redraw())},slice:function(a,b,c){var d=this.series;gb(c,d.chart);s(b,!0);this.sliced=this.options.sliced=a=w(a)?a:!this.sliced;d.options.data[ra(this,d.data)]=this.options;a=a?this.slicedTranslation:
{translateX:0,translateY:0};this.graphic.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)},haloPath:function(a){var b=this.shapeArgs,c=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.plotLeft+b.x,c.plotTop+b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r,start:b.start,end:b.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",
fill:"color"},animate:function(a){var b=this,c=b.points,d=b.startAngleRad;a||(t(c,function(a){var c=a.graphic,g=a.shapeArgs;c&&(c.attr({r:a.startR||b.center[3]/2,start:d,end:d}),c.animate({r:g.r,start:g.start,end:g.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,c=this.points,d=c.length,e,f=this.options.ignoreHiddenPoint;for(a=0;a<d;a++)e=c[a],0>e.y&&(e.y=null),b+=f&&!e.visible?0:e.y;this.total=b;for(a=0;a<d;a++)e=c[a],e.percentage=0<b&&(e.visible||!f)?e.y/b*100:0,
e.total=b},generatePoints:function(){T.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();var b=0,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f,g,h,k=c.startAngle||0,l=this.startAngleRad=wa/180*(k-90),k=(this.endAngleRad=wa/180*(s(c.endAngle,k+360)-90))-l,m=this.points,n=c.dataLabels.distance,c=c.ignoreHiddenPoint,p,q=m.length,r;a||(this.center=a=this.getCenter());this.getX=function(b,c){h=aa.asin(I((b-a[1])/(a[2]/2+n),1));return a[0]+(c?-1:
1)*Y(h)*(a[2]/2+n)};for(p=0;p<q;p++){r=m[p];f=l+b*k;if(!c||r.visible)b+=r.percentage/100;g=l+b*k;r.shapeType="arc";r.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:F(1E3*f)/1E3,end:F(1E3*g)/1E3};h=(g+f)/2;h>1.5*wa?h-=2*wa:h<-wa/2&&(h+=2*wa);r.slicedTranslation={translateX:F(Y(h)*d),translateY:F(fa(h)*d)};f=Y(h)*a[2]/2;g=fa(h)*a[2]/2;r.tooltipPos=[a[0]+0.7*f,a[1]+0.7*g];r.half=h<-wa/2||h>wa/2?1:0;r.angle=h;e=I(e,n/2);r.labelPos=[a[0]+f+Y(h)*n,a[1]+g+fa(h)*n,a[0]+f+Y(h)*e,a[1]+g+fa(h)*e,a[0]+
f,a[1]+g,0>n?"center":r.half?"right":"left",h]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,c,d,e=a.options.shadow,f,g,h,k;e&&!a.shadowGroup&&(a.shadowGroup=b.g("shadow").add(a.group));t(a.points,function(l){null!==l.y&&(d=l.graphic,h=l.shapeArgs,f=l.shadowGroup,g=l.pointAttr[l.selected?"select":""],g.stroke||(g.stroke=g.fill),e&&!f&&(f=l.shadowGroup=b.g("shadow").add(a.shadowGroup)),c=l.sliced?l.slicedTranslation:{translateX:0,translateY:0},f&&f.attr(c),d?d.setRadialReference(a.center).attr(g).animate(v(h,
c)):(k={"stroke-linejoin":"round"},l.visible||(k.visibility="hidden"),l.graphic=d=b[l.shapeType](h).setRadialReference(a.center).attr(g).attr(k).attr(c).add(a.group).shadow(e,f)))})},searchPoint:Fa,sortByAngle:function(a,b){a.sort(function(a,d){return void 0!==a.angle&&(d.angle-a.angle)*b})},drawLegendSymbol:R.drawRectangle,getCenter:Hb.getCenter,getSymbol:Fa};ja=va(T,ja);N.pie=ja;T.prototype.drawDataLabels=function(){var a=this,b=a.options,c=b.cursor,d=b.dataLabels,e=a.points,f,g,h=a.hasRendered||
0,k,l,m=s(d.defer,!0),n=a.chart.renderer;if(d.enabled||a._hasPointLabels)a.dlProcessOptions&&a.dlProcessOptions(d),l=a.plotGroup("dataLabelsGroup","data-labels",m&&!h?"hidden":"visible",d.zIndex||6),m&&(l.attr({opacity:+h}),h||P(a,"afterAnimate",function(){a.visible&&l.show(!0);l[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),g=d,t(e,function(e){var h,m=e.dataLabel,t,u,x=e.connector,A=!0,y,z={};f=e.dlOptions||e.options&&e.options.dataLabels;h=s(f&&f.enabled,g.enabled)&&null!==e.y;if(m&&
!h)e.dataLabel=m.destroy();else if(h){d=H(g,f);y=d.style;h=d.rotation;t=e.getLabelConfig();k=d.format?Qa(d.format,t):d.formatter.call(t,d);y.color=s(d.color,y.color,a.color,"black");if(m)if(w(k))m.attr({text:k}),A=!1;else{if(e.dataLabel=m=m.destroy(),x)e.connector=x.destroy()}else if(w(k)){m={fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth,r:d.borderRadius||0,rotation:h,padding:d.padding,zIndex:1};"contrast"===y.color&&(z.color=d.inside||0>d.distance||b.stacking?n.getContrast(e.color||
a.color):"#000000");c&&(z.cursor=c);for(u in m)m[u]===B&&delete m[u];m=e.dataLabel=n[h?"text":"label"](k,0,-9999,d.shape,null,null,d.useHTML).attr(m).css(v(y,z)).add(l).shadow(d.shadow)}m&&a.alignDataLabel(e,m,d,null,A)}})};T.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=s(a.plotX,-9999),k=s(a.plotY,-9999),l=b.getBBox(),m=f.renderer.fontMetrics(c.style.fontSize).b,n=c.rotation,p=c.align,q=this.visible&&(a.series.forceDL||f.isInsidePlot(h,F(k),g)||d&&f.isInsidePlot(h,
g?d.x+1:d.y+d.height-1,g)),r="justify"===s(c.overflow,"justify");q&&(d=v({x:g?f.plotWidth-k:h,y:F(g?f.plotHeight-h:k),width:0,height:0},d),v(c,{width:l.width,height:l.height}),n?(r=!1,g=f.renderer.rotCorr(m,n),g={x:d.x+c.x+d.width/2+g.x,y:d.y+c.y+{top:0,middle:0.5,bottom:1}[c.verticalAlign]*d.height},b[e?"attr":"animate"](g).attr({align:p}),h=(n+720)%360,h=180<h&&360>h,"left"===p?g.y-=h?l.height:0:"center"===p?(g.x-=l.width/2,g.y-=l.height/2):"right"===p&&(g.x-=l.width,g.y-=h?0:l.height)):(b.align(c,
null,d),g=b.alignAttr),r?this.justifyDataLabel(b,c,g,l,d,e):s(c.crop,!0)&&(q=f.isInsidePlot(g.x,g.y)&&f.isInsidePlot(g.x+l.width,g.y+l.height)),c.shape&&!n&&b.attr({anchorX:a.plotX,anchorY:a.plotY}));q||(Na(b),b.attr({y:-9999}),b.placed=!1)};T.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g=this.chart,h=b.align,k=b.verticalAlign,l,m,n=a.box?0:a.padding||0;l=c.x+n;0>l&&("right"===h?b.align="left":b.x=-l,m=!0);l=c.x+d.width-n;l>g.plotWidth&&("left"===h?b.align="right":b.x=g.plotWidth-l,m=!0);
l=c.y+n;0>l&&("bottom"===k?b.verticalAlign="top":b.y=-l,m=!0);l=c.y+d.height-n;l>g.plotHeight&&("top"===k?b.verticalAlign="bottom":b.y=g.plotHeight-l,m=!0);m&&(a.placed=!f,a.align(b,null,e))};N.pie&&(N.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,c,d=a.chart,e=a.options.dataLabels,f=s(e.connectorPadding,10),g=s(e.connectorWidth,1),h=d.plotWidth,k=d.plotHeight,l,m,n=s(e.softConnector,!0),p=e.distance,q=a.center,r=q[2]/2,w=q[1],u=0<p,v,A,y,z=[[],[]],B,E,G,H,D,J=[0,0,0,0],O=function(a,
b){return b.y-a.y};if(a.visible&&(e.enabled||a._hasPointLabels)){T.prototype.drawDataLabels.apply(a);t(b,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null)});for(H=2;H--;){var K=[],P=[],L=z[H],N=L.length,M;if(N){a.sortByAngle(L,H-0.5);for(D=b=0;!b&&L[D];)b=L[D]&&L[D].dataLabel&&(L[D].dataLabel.getBBox().height||21),D++;if(0<p){A=I(w+r+p,d.plotHeight);for(D=x(0,w-r-p);D<=A;D+=b)K.push(D);A=K.length;if(N>A){c=[].concat(L);c.sort(O);for(D=N;D--;)c[D].rank=D;for(D=N;D--;)L[D].rank>=
A&&L.splice(D,1);N=L.length}for(D=0;D<N;D++){c=L[D];y=c.labelPos;c=9999;var R,Q;for(Q=0;Q<A;Q++)R=S(K[Q]-y[1]),R<c&&(c=R,M=Q);if(M<D&&null!==K[D])M=D;else for(A<N-D+M&&null!==K[D]&&(M=A-N+D);null===K[M];)M++;P.push({i:M,y:K[M]});K[M]=null}P.sort(O)}for(D=0;D<N;D++){c=L[D];y=c.labelPos;v=c.dataLabel;G=!1===c.visible?"hidden":"inherit";c=y[1];if(0<p){if(A=P.pop(),M=A.i,E=A.y,c>E&&null!==K[M+1]||c<E&&null!==K[M-1])E=I(x(0,c),d.plotHeight)}else E=c;B=e.justify?q[0]+(H?-1:1)*(r+p):a.getX(E===w-r-p||E===
w+r+p?c:E,H);v._attr={visibility:G,align:y[6]};v._pos={x:B+e.x+({left:f,right:-f}[y[6]]||0),y:E+e.y-10};v.connX=B;v.connY=E;null===this.options.size&&(A=v.width,B-A<f?J[3]=x(F(A-B+f),J[3]):B+A>h-f&&(J[1]=x(F(B+A-h+f),J[1])),0>E-b/2?J[0]=x(F(-E+b/2),J[0]):E+b/2>k&&(J[2]=x(F(E+b/2-k),J[2])))}}}if(0===Ka(J)||this.verifyDataLabelOverflow(J))this.placeDataLabels(),u&&g&&t(this.points,function(b){l=b.connector;y=b.labelPos;(v=b.dataLabel)&&v._pos&&b.visible?(G=v._attr.visibility,B=v.connX,E=v.connY,m=n?
[Z,B+("left"===y[6]?5:-5),E,"C",B,E,2*y[2]-y[4],2*y[3]-y[5],y[2],y[3],U,y[4],y[5]]:[Z,B+("left"===y[6]?5:-5),E,U,y[2],y[3],U,y[4],y[5]],l?(l.animate({d:m}),l.attr("visibility",G)):b.connector=l=a.chart.renderer.path(m).attr({"stroke-width":g,stroke:e.connectorColor||b.color||"#606060",visibility:G}).add(a.dataLabelsGroup)):l&&(b.connector=l.destroy())})}},N.pie.prototype.placeDataLabels=function(){t(this.points,function(a){var b=a.dataLabel;b&&a.visible&&((a=b._pos)?(b.attr(b._attr),b[b.moved?"animate":
"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))})},N.pie.prototype.alignDataLabel=Fa,N.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,e=c.minSize||80,f=e,g;null!==d[0]?f=x(b[2]-x(a[1],a[3]),e):(f=x(b[2]-a[1]-a[3],e),b[0]+=(a[3]-a[1])/2);null!==d[1]?f=x(I(f,b[2]-x(a[0],a[2])),e):(f=x(I(f,b[2]-a[0]-a[2]),e),b[1]+=(a[0]-a[2])/2);f<b[2]?(b[2]=f,b[3]=Math.min(/%$/.test(c.innerSize||0)?f*parseFloat(c.innerSize||0)/100:parseFloat(c.innerSize||0),f),this.translate(b),
this.drawDataLabels&&this.drawDataLabels()):g=!0;return g});N.column&&(N.column.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart.inverted,g=a.series,h=a.dlBox||a.shapeArgs,k=s(a.below,a.plotY>s(this.translatedThreshold,g.yAxis.len)),l=s(c.inside,!!this.options.stacking);h&&(d=H(h),0>d.y&&(d.height+=d.y,d.y=0),h=d.y+d.height-g.yAxis.len,0<h&&(d.height-=h),f&&(d={x:g.yAxis.len-d.y-d.height,y:g.xAxis.len-d.x-d.width,width:d.height,height:d.width}),l||(f?(d.x+=k?0:d.width,d.width=0):(d.y+=
k?d.height:0,d.height=0)));c.align=s(c.align,!f||l?"center":k?"right":"left");c.verticalAlign=s(c.verticalAlign,f||l?"middle":k?"top":"bottom");T.prototype.alignDataLabel.call(this,a,b,c,d,e)});(function(a){var b=a.Chart,c=a.each,d=a.pick,e=a.addEvent;b.prototype.callbacks.push(function(a){function b(){var e=[];c(a.series,function(a){var b=a.options.dataLabels,f=a.dataLabelCollections||["dataLabel"];(b.enabled||a._hasPointLabels)&&!b.allowOverlap&&a.visible&&c(f,function(b){c(a.points,function(a){a[b]&&
(a[b].labelrank=d(a.labelrank,a.shapeArgs&&a.shapeArgs.height),e.push(a[b]))})})});a.hideOverlappingLabels(e)}b();e(a,"redraw",b)});b.prototype.hideOverlappingLabels=function(a){var b=a.length,d,e,l,m,n,p,q,r,s;for(e=0;e<b;e++)if(d=a[e])d.oldOpacity=d.opacity,d.newOpacity=1;a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(e=0;e<b;e++)for(l=a[e],d=e+1;d<b;++d)if(m=a[d],l&&m&&l.placed&&m.placed&&0!==l.newOpacity&&0!==m.newOpacity&&(n=l.alignAttr,p=m.alignAttr,q=l.parentGroup,r=m.parentGroup,
s=2*(l.box?0:l.padding),n=!(p.x+r.translateX>n.x+q.translateX+(l.width-s)||p.x+r.translateX+(m.width-s)<n.x+q.translateX||p.y+r.translateY>n.y+q.translateY+(l.height-s)||p.y+r.translateY+(m.height-s)<n.y+q.translateY)))(l.labelrank<m.labelrank?l:m).newOpacity=0;c(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&a.placed&&(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)),a.isOld=!0)})}})(z);ja=z.TrackerMixin={drawTrackerPoint:function(){var a=
this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(a){for(var c=a.target,d;c&&!d;)d=c.point,c=c.parentNode;if(d!==B&&d!==b.hoverPoint)d.onMouseOver(a)};t(a.points,function(a){a.graphic&&(a.graphic.element.point=a);a.dataLabel&&(a.dataLabel.element.point=a)});a._hasTracking||(t(a.trackerGroups,function(b){if(a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),kb))a[b].on("touchstart",f)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=
this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.pointer,h=f.renderer,k=f.options.tooltip.snap,l=a.tracker,m=b.cursor,n=m&&{cursor:m},p=function(){if(f.hoverSeries!==a)a.onMouseOver()},q="rgba(192,192,192,"+(ha?1E-4:0.002)+")";if(e&&!c)for(m=e+1;m--;)d[m]===Z&&d.splice(m+1,0,d[m+1]-k,d[m+2],U),(m&&d[m]===Z||m===e)&&d.splice(m,0,U,d[m-2]+k,d[m-1]);l?l.attr({d:d}):(a.tracker=h.path(d).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",
stroke:q,fill:c?q:"none","stroke-width":b.lineWidth+(c?0:2*k),zIndex:2}).add(a.group),t([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(a){g.onTrackerMouseOut(a)}).css(n);if(kb)a.on("touchstart",p)}))}};N.column&&(Aa.prototype.drawTracker=ja.drawTrackerPoint);N.pie&&(N.pie.prototype.drawTracker=ja.drawTrackerPoint);N.scatter&&(ta.prototype.drawTracker=ja.drawTrackerPoint);v(vb.prototype,{setItemEvents:function(a,b,c,d,e){var f=this;(c?
b:a.legendGroup).on("mouseover",function(){a.setState("hover");b.css(f.options.itemHoverStyle)}).on("mouseout",function(){b.css(a.visible?d:e);a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()};b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):K(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=ea("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);
P(a.checkbox,"click",function(b){K(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});V.legend.itemStyle.cursor="pointer";v(nb.prototype,{showResetZoom:function(){var a=this,b=V.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f="chart"===c.relativeTo?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).add().align(c.position,!1,f)},
zoomOut:function(){var a=this;K(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,c=this.pointer,d=!1,e;!a||a.resetSelection?t(this.axes,function(a){b=a.zoom()}):t(a.xAxis.concat(a.yAxis),function(a){var e=a.axis,h=e.isXAxis;if(c[h?"zoomX":"zoomY"]||c[h?"pinchX":"pinchY"])b=e.zoom(a.min,a.max),e.displayBtn&&(d=!0)});e=this.resetZoomButton;d&&!e?this.showResetZoom():!d&&da(e)&&(this.resetZoomButton=e.destroy());b&&this.redraw(s(this.options.chart.animation,a&&a.animation,
100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&t(d,function(a){a.setState()});t("xy"===b?[1,0]:[1],function(b){b=c[b?"xAxis":"yAxis"][0];var d=b.horiz,h=a[d?"chartX":"chartY"],d=d?"mouseDownX":"mouseDownY",k=c[d],l=(b.pointRange||0)/2,m=b.getExtremes(),n=b.toValue(k-h,!0)+l,l=b.toValue(k+b.len-h,!0)-l,k=k>h;b.series.length&&(k||n>I(m.dataMin,m.min))&&(!k||l<x(m.dataMax,m.max))&&(b.setExtremes(n,l,!1,!1,{trigger:"pan"}),e=!0);c[d]=h});e&&c.redraw(!1);O(c.container,{cursor:"move"})}});
v(Pa.prototype,{select:function(a,b){var c=this,d=c.series,e=d.chart;a=s(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;d.options.data[ra(c,d.data)]=c.options;c.setState(a&&"select");b||t(e.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[ra(a,d.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a,b){var c=this.series,d=c.chart,e=d.tooltip,f=d.hoverPoint;
if(d.hoverSeries!==c)c.onMouseOver();if(f&&f!==this)f.onMouseOut();this.series&&(this.firePointEvent("mouseOver"),e&&(!e.shared||c.noSharedTooltip)&&e.refresh(this,a),this.setState("hover"),!b)&&(d.hoverPoint=this)},onMouseOut:function(){var a=this.series.chart,b=a.hoverPoints;this.firePointEvent("mouseOut");b&&-1!==ra(this,b)||(this.setState(),a.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var a=H(this.series.options.point,this.options).events,b;this.events=a;for(b in a)P(this,
b,a[b]);this.hasImportedEvents=!0}},setState:function(a,b){var c=X(this.plotX),d=this.plotY,e=this.series,f=e.options.states,g=ia[e.type].marker&&e.options.marker,h=g&&!g.enabled,k=g&&g.states[a],l=k&&!1===k.enabled,m=e.stateMarkerGraphic,n=this.marker||{},p=e.chart,q=e.halo,r;a=a||"";r=this.pointAttr[a]||e.pointAttr[a];if(!(a===this.state&&!b||this.selected&&"select"!==a||f[a]&&!1===f[a].enabled||a&&(l||h&&!1===k.enabled)||a&&n.states&&n.states[a]&&!1===n.states[a].enabled)){if(this.graphic)g=g&&
this.graphic.symbolName&&r.r,this.graphic.attr(H(r,g?{x:c-g,y:d-g,width:2*g,height:2*g}:{})),m&&m.hide();else{if(a&&k)if(g=k.radius,n=n.symbol||e.symbol,m&&m.currentSymbol!==n&&(m=m.destroy()),m)m[b?"animate":"attr"]({x:c-g,y:d-g});else n&&(e.stateMarkerGraphic=m=p.renderer.symbol(n,c-g,d-g,2*g,2*g).attr(r).add(e.markerGroup),m.currentSymbol=n);m&&(m[a&&p.isInsidePlot(c,d,p.inverted)?"show":"hide"](),m.element.point=this)}(c=f[a]&&f[a].halo)&&c.size?(q||(e.halo=q=p.renderer.path().add(p.seriesGroup)),
q.attr(v({fill:this.color||e.color,"fill-opacity":c.opacity,zIndex:-1},c.attributes))[b?"animate":"attr"]({d:this.haloPath(c.size)})):q&&q.attr({d:[]});this.state=a}},haloPath:function(a){var b=this.series,c=b.chart,d=b.getPlotBox(),e=c.inverted,f=Math.floor(this.plotX);return c.renderer.symbols.circle(d.translateX+(e?b.yAxis.len-this.plotY:f)-a,d.translateY+(e?b.xAxis.len-f:this.plotY)-a,2*a,2*a)}});v(T.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();
this.options.events.mouseOver&&K(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&K(this,"mouseOut");!c||a.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this.options,c=this.graph,d=b.states,e=b.lineWidth,b=0;a=a||"";if(this.state!==a&&(this.state=a,(!d[a]||!1!==d[a].enabled)&&(a&&(e=d[a].lineWidth||
e+(d[a].lineWidthPlus||0)),c&&!c.dashstyle)))for(a={"stroke-width":e},c.attr(a);this["zoneGraph"+b];)this["zoneGraph"+b].attr(a),b+=1},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f,g=d.options.chart.ignoreHiddenSeries,h=c.visible;f=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!h:a)?"show":"hide";t(["group","dataLabelsGroup","markerGroup","tracker"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,
a);c.isDirty=!0;c.options.stacking&&t(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});t(c.linkedSeries,function(b){b.setVisible(a,!1)});g&&(d.isDirtyBox=!0);!1!==b&&d.redraw();K(c,f)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===B?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);K(this,a?"select":"unselect")},drawTracker:ja.drawTrackerGraph});v(z,{Color:pa,Point:Pa,Tick:bb,Renderer:jb,SVGElement:M,SVGRenderer:Ia,
arrayMin:Ra,arrayMax:Ka,charts:W,correctFloat:ca,dateFormat:Xa,error:ga,format:Qa,pathAnim:void 0,getOptions:function(){return V},hasBidiBug:Vb,isTouchDevice:Rb,setOptions:function(a){V=H(!0,V,a);Kb();return V},addEvent:P,removeEvent:$,createElement:ea,discardElement:Za,css:O,each:t,map:Ha,merge:H,splat:xa,stableSort:ob,extendClass:va,pInt:D,svg:ha,canvas:na,vml:!ha&&!na,product:"Highcharts",version:"4.2.7"});return z});
