!function(t,e){"object"==typeof module&&module.exports?module.exports=t.document?e(t):e:t.Highcharts=e(t)}("undefined"!=typeof window?window:this,function(t){t=function(){var t=window,e=t.document,i=t.navigator&&t.navigator.userAgent||"",s=e&&e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,n=/(edge|msie|trident)/i.test(i)&&!window.opera,o=!s,r=/Firefox/.test(i),a=r&&4>parseInt(i.split("Firefox/")[1],10);return t.Highcharts?t.Highcharts.error(16,!0):{product:"Highcharts",version:"5.0.14",deg2rad:2*Math.PI/360,doc:e,hasBidiBug:a,hasTouch:e&&void 0!==e.documentElement.ontouchstart,isMS:n,isWebKit:/AppleWebKit/.test(i),isFirefox:r,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(i),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:s,vml:o,win:t,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}(),function(t){var e=[],i=t.charts,s=t.doc,n=t.win;t.error=function(e,i){if(e=t.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,i)throw Error(e);n.console&&void 0},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],i=this.paths[1],s=[],n=this.now,o=e.length;if(1===n)s=this.toD;else if(o===i.length&&1>n)for(;o--;)t=parseFloat(e[o]),s[o]=isNaN(t)?e[o]:n*parseFloat(i[o]-t)+t;else s=i;this.elem.attr("d",s,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)},run:function(t,i,s){var n,o=this,r=function(t){return!r.stopped&&o.step(t)};this.startTime=+new Date,this.start=t,this.end=i,this.unit=s,this.now=this.start,this.pos=0,r.elem=this.elem,r.prop=this.prop,r()&&1===e.push(r)&&(r.timerId=setInterval(function(){for(n=0;n=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),i=h[this.prop]=!0,t.objectEach(h,function(t){!0!==t&&(i=!1)}),i&&r&&r.call(o),e=!1):(this.pos=n.easing((s-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(e,i,s){function n(t){var e,i;for(c=t.length;c--;)e="M"===t[c]||"L"===t[c],i=/[a-zA-Z]/.test(t[c+3]),e&&i&&t.splice(c+1,0,t[c+1],t[c+2],t[c+1],t[c+2])}function o(t,e){for(;t.lengthr?"AM":"PM",P:12>r?"am":"pm",S:f(o.getSeconds()),L:f(Math.round(i%1e3),3)},t.dateFormats);return t.objectEach(n,function(t,s){for(;-1!==e.indexOf("%"+s);)e=e.replace("%"+s,"function"==typeof t?t(i):t)}),s?e.substr(0,1).toUpperCase()+e.substr(1):e},t.formatSingle=function(e,i){var s=/\.([0-9])/,n=t.defaultOptions.lang;return/f$/.test(e)?(s=(s=e.match(s))?s[1]:-1,null!==i&&(i=t.numberFormat(i,s,n.decimalPoint,-1=s&&(i=[1/s]))),n=0;n=e||!o&&r<=(i[n]+(i[n+1]||i[n]))/2));n++);return a=t.correctFloat(a*s,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,s,n=t.length;for(s=0;si&&(i=t[e]);return i},t.destroyObjectProperties=function(e,i){t.objectEach(e,function(t,s){t&&t!==i&&t.destroy&&t.destroy(),delete e[s]})},t.discardElement=function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.setAnimation=function(e,i){i.renderer.globalAnimation=t.pick(e,i.options.chart.animation,!0)},t.animObject=function(e){return t.isObject(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(e,i,s,n){e=+e||0,i=+i;var o,r,a=t.defaultOptions.lang,h=(e.toString().split(".")[1]||"").split("e")[0].length,l=e.toString().split("e");return-1===i?i=Math.min(h,20):t.isNumber(i)||(i=2),r=(Math.abs(l[1]?l[0]:e)+Math.pow(10,-Math.max(i,h)-1)).toFixed(i),h=String(t.pInt(r)),o=3e?"-":"")+(o?h.substr(0,o)+n:""),e+=h.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+n),i&&(e+=s+r.slice(-i)),l[1]&&(e+="e"+l[1]),e},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,i,s){return"width"===i?Math.min(e.offsetWidth,e.scrollWidth)-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"):"height"===i?Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom"):((e=n.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(i),t.pick(s,!0)&&(e=t.pInt(e))),e)},t.inArray=function(t,e){return e.indexOf?e.indexOf(t):[].indexOf.call(e,t)},t.grep=function(t,e){return[].filter.call(t,e)},t.find=function(t,e){return[].find.call(t,e)},t.map=function(t,e){for(var i=[],s=0,n=t.length;s>16,(65280&e)>>8,255&e,1]:4===i&&(n=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!n)for(o=this.parsers.length;o--&&!n;)r=this.parsers[o],(i=r.regex.exec(e))&&(n=r.parse(i));this.rgba=n||[]},get:function(t){var s,o=this.input,r=this.rgba;return this.stops?(s=n(o),s.stops=[].concat(s.stops),e(this.stops,function(e,i){s.stops[i]=[s.stops[i][0],e.get(t)]})):s=r&&i(r[0])?"rgb"===t||!t&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===t?r[3]:"rgba("+r.join(",")+")":o,s},brighten:function(t){var s,n=this.rgba;if(this.stops)e(this.stops,function(e){e.brighten(t)});else if(i(t)&&0!==t)for(s=0;3>s;s++)n[s]+=o(255*t),0>n[s]&&(n[s]=0),255i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(a.isSVG&&(t=i.width,a=i.height,l&&"11px"===l.fontSize&&17===Math.round(a)&&(i.height=a=14),e&&(i.width=Math.abs(a*Math.sin(s))+Math.abs(t*Math.cos(s)),i.height=Math.abs(a*Math.cos(s))+Math.abs(t*Math.sin(s)))),r&&0]*>/g,"")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i,s,n=this.renderer,o=this.parentGroup,r=(o||n).element||n.box,a=this.element;i=this.added;var h;if(c(t)&&(a.zIndex=t,t=+t,this[e]===t&&(i=!1),this[e]=t),i){for((t=this.zIndex)&&o&&(o.handleZ=!0),e=r.childNodes,h=0;ht||!c(t)&&c(i)||0>t&&!c(i)&&r!==n.box)&&(r.insertBefore(a,o),s=!0);s||r.appendChild(a)}return s},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),e.prototype.yGetter=e.prototype.xGetter,e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.rotationSetter=e.prototype.verticalAlignSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter=function(t,i,s){this[i]=t,this.stroke&&this["stroke-width"]?(e.prototype.fillSetter.call(this,this.stroke,"stroke",s),s.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===t&&this.hasStroke&&(s.removeAttribute("stroke"),this.hasStroke=!1)},i=t.SVGRenderer=function(){this.init.apply(this,arguments)},g(i.prototype,{Element:e,SVG_NS:E,init:function(t,e,i,n,r,a){var l;n=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(n)),l=n.element,t.appendChild(l),-1===t.innerHTML.indexOf("xmlns")&&o(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=n,this.alignedObjects=[],this.url=(k||T)&&u.getElementsByTagName("base").length?G.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 5.0.14")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=r,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1);var c;k&&t.getBoundingClientRect&&(e=function(){h(t,{left:0,top:0}),c=t.getBoundingClientRect(),h(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})},e(),this.unSubPixelFix=s(G,"resize",e))},getStyle:function(t){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),p(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:C,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t,e){var i=t.getBBox(!0).width;return!z&&this.forExport&&(i=this.measureSpanWidth(e.firstChild.data,t.styles)),i},applyEllipsis:function(t,e,i,s){var n,o,r=t.rotation,a=i,h=0,l=i.length,c=function(t){e.removeChild(e.firstChild),t&&e.appendChild(u.createTextNode(t))};if(t.rotation=0,a=this.getSpanWidth(t,e),o=a>s){for(;h<=l;)n=Math.ceil((h+l)/2),a=i.substring(0,n)+"…",c(a),a=this.getSpanWidth(t,e),h===l?h=l+1:a>s?l=n-1:h=n;0===l&&c("")}return t.rotation=r,o},buildText:function(t){var e,i,s,n,r,a,l=t.element,c=this,d=c.forExport,p=P(t.textStr,"").toString(),g=-1!==p.indexOf("<"),m=l.childNodes,x=o(l,"x"),y=t.styles,b=t.textWidth,k=y&&y.lineHeight,M=y&&y.textOutline,w=y&&"ellipsis"===y.textOverflow,S=y&&"nowrap"===y.whiteSpace,T=y&&y.fontSize,A=m.length,y=b&&!t.added&&this.box,C=function(t){var e;return e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:T||c.style.fontSize||12,k?O(k):c.fontMetrics(e,t.getAttribute("style")?t:l).h};if(r=[p,w,S,k,M,T,b].join(),r!==t.textCache){for(t.textCache=r;A--;)l.removeChild(m[A]);g||M||w||b||-1!==p.indexOf(" ")?(e=/<.*class="([^"]+)".*>/,i=/<.*style="([^"]+)".*>/,s=/<.*href="([^"]+)".*>/,y&&y.appendChild(l),p=g?p.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[p],p=v(p,function(t){return""!==t}),f(p,function(r,p){var g,m=0;r=r.replace(/^\s+|\s+$/g,"").replace(//g,"|||"),g=r.split("|||"),f(g,function(r){if(""!==r||1===g.length){var f,v,y={},k=u.createElementNS(c.SVG_NS,"tspan");if(e.test(r)&&(f=r.match(e)[1],o(k,"class",f)),i.test(r)&&(v=r.match(i)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),o(k,"style",v)),s.test(r)&&!d&&(o(k,"onclick",'location.href="'+r.match(s)[1]+'"'),h(k,{cursor:"pointer"})),r=(r.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">")," "!==r){if(k.appendChild(u.createTextNode(r)),m?y.dx=0:p&&null!==x&&(y.x=x),o(k,y),l.appendChild(k),!m&&a&&(!z&&d&&h(k,{display:"block"}),o(k,"dy",C(k))),b){y=r.replace(/([^\^])-/g,"$1- ").split(" "),f=1b,void 0===n&&(n=r),r&&1!==y.length?(k.removeChild(k.firstChild),T.unshift(y.pop())):(y=T,T=[],y.length&&!S&&(k=u.createElementNS(E,"tspan"),o(k,{dy:A,x:x}),v&&o(k,"style",v),l.appendChild(k)),M>b&&(b=M)),y.length&&k.appendChild(u.createTextNode(y.join(" ").replace(/- /g,"-"))); t.rotation=L}m++}}}),a=a||l.childNodes.length}),n&&t.attr("title",t.textStr),y&&y.removeChild(l),M&&t.applyTextOutline&&t.applyTextOutline(M)):l.appendChild(u.createTextNode(p.replace(/</g,"<").replace(/>/g,">")))}},getContrast:function(t){return t=a(t).rgba,510Math.abs(n.end-n.start-2*Math.PI));var l=Math.cos(o),d=Math.sin(o),p=Math.cos(h),h=Math.sin(h);return n=.001>n.end-o-Math.PI?0:1,r=["M",t+r*l,e+a*d,"A",r,a,0,n,1,t+r*p,e+a*h],c(i)&&r.push(s?"M":"L",t+i*p,e+i*h,"A",i,i,0,n,0,t+i*l,e+i*d),r.push(s?"":"Z"),r},callout:function(t,e,i,s,n){var o=Math.min(n&&n.r||0,i,s),r=o+6,a=n&&n.anchorX;n=n&&n.anchorY;var h;return h=["M",t+o,e,"L",t+i-o,e,"C",t+i,e,t+i,e,t+i,e+o,"L",t+i,e+s-o,"C",t+i,e+s,t+i,e+s,t+i-o,e+s,"L",t+o,e+s,"C",t,e+s,t,e+s,t,e+s-o,"L",t,e+o,"C",t,e,t,e,t+o,e],a&&a>i?n>e+r&&na?n>e+r&&ns&&a>t+r&&an&&a>t+r&&at?t+3:Math.round(1.2*t),{h:e,b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:s}},label:function(i,s,n,o,r,a,h,l,d){var p,u,m,v,x,y,b,k,M,w,S,T,C,L=this,P=L.g("button"!==d&&"label"),O=P.text=L.text("",0,0,h).attr({zIndex:1}),D=0,z=3,E=0,B={},G=/^url\((.*?)\)$/.test(o),R=G;d&&P.addClass("highcharts-"+d),R=G,w=function(){return(k||0)%2/2},S=function(){var t=O.element.style,e={};u=(void 0===m||void 0===v||b)&&c(O.textStr)&&O.getBBox(),P.width=(m||u.width||0)+2*z+E,P.height=(v||u.height||0)+2*z,M=z+L.fontMetrics(t&&t.fontSize,O).b,R&&(p||(P.box=p=L.symbols[o]||G?L.symbol(o):L.rect(),p.addClass(("button"===d?"":"highcharts-label-box")+(d?" highcharts-"+d+"-box":"")),p.add(P),t=w(),e.x=t,e.y=(l?-M:0)+t),e.width=Math.round(P.width),e.height=Math.round(P.height),p.attr(g(e,B)),B={})},T=function(){var t,e=E+z;t=l?0:M,c(m)&&u&&("center"===b||"right"===b)&&(e+={center:.5,right:1}[b]*(m-u.width)),e===O.x&&t===O.y||(O.attr("x",e),void 0!==t&&O.attr("y",t)),O.x=e,O.y=t},C=function(t,e){p?p.attr(t,e):B[t]=e},P.onAdd=function(){O.add(P),P.attr({text:i||0===i?i:"",x:s,y:n}),p&&c(r)&&P.attr({anchorX:r,anchorY:a})},P.widthSetter=function(e){m=t.isNumber(e)?e:null},P.heightSetter=function(t){v=t},P["text-alignSetter"]=function(t){b=t},P.paddingSetter=function(t){c(t)&&t!==z&&(z=P.padding=t,T())},P.paddingLeftSetter=function(t){c(t)&&t!==E&&(E=t,T())},P.alignSetter=function(t){t={left:0,center:.5,right:1}[t],t!==D&&(D=t,u&&P.attr({x:x}))},P.textSetter=function(t){void 0!==t&&O.textSetter(t),S(),T()},P["stroke-widthSetter"]=function(t,e){t&&(R=!0),k=this["stroke-width"]=t,C(e,t)},P.strokeSetter=P.fillSetter=P.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(R=!0),P[e]=t),C(e,t)},P.anchorXSetter=function(t,e){r=P.anchorX=t,C(e,Math.round(t)-w()-x)},P.anchorYSetter=function(t,e){a=P.anchorY=t,C(e,t-y)},P.xSetter=function(t){P.x=t,D&&(t-=D*((m||u.width)+2*z)),x=Math.round(t),P.attr("translateX",x)},P.ySetter=function(t){y=P.y=Math.round(t),P.attr("translateY",y)};var N=P.css;return g(P,{css:function(t){if(t){var e={};t=A(t),f(P.textProps,function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])}),O.css(e)}return N.call(P,t)},getBBox:function(){return{width:u.width+2*z,height:u.height+2*z,x:u.x-z,y:u.y-z}},shadow:function(t){return t&&(S(),p&&p.shadow(t)),P},destroy:function(){I(P.element,"mouseenter"),I(P.element,"mouseleave"),O&&(O=O.destroy()),p&&(p=p.destroy()),e.prototype.destroy.call(P),P=L=S=T=C=null}})}}),t.Renderer=i}(t),function(t){var e=t.attr,i=t.createElement,s=t.css,n=t.defined,o=t.each,r=t.extend,a=t.isFirefox,h=t.isMS,l=t.isWebKit,c=t.pInt,d=t.SVGRenderer,p=t.win,u=t.wrap;r(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.updateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=r(this.styles,t),s(this.element,t),this},htmlGetBBox:function(){var t=this.element;return"text"===t.nodeName&&(t.style.position="absolute"),{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,r=this.translateY||0,a=this.x||0,h=this.y||0,d=this.textAlign||"left",p={left:0,center:.5,right:1}[d],u=this.styles;if(s(e,{marginLeft:i,marginTop:r}),this.shadows&&o(this.shadows,function(t){s(t,{marginLeft:i+1,marginTop:r+1})}),this.inverted&&o(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var f=this.rotation,g=c(this.textWidth),m=u&&u.whiteSpace,v=[f,d,e.innerHTML,this.textWidth,this.textAlign].join();v!==this.cTT&&(u=t.fontMetrics(e.style.fontSize).b,n(f)&&this.setSpanRotation(f,p,u),s(e,{width:"",whiteSpace:m||"nowrap"}),e.offsetWidth>g&&/[ \-]/.test(e.textContent||e.innerText)&&s(e,{width:g+"px",display:"block",whiteSpace:m||"normal"}),this.getSpanCorrection(e.offsetWidth,u,p,f,d)),s(e,{left:a+(this.xCorr||0)+"px",top:h+(this.yCorr||0)+"px"}),l&&(u=e.offsetHeight),this.cTT=v}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},o=h?"-ms-transform":l?"-webkit-transform":a?"MozTransform":p.opera?"-o-transform":"";n[o]=n.transform="rotate("+t+"deg)",n[o+(a?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",s(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),r(d.prototype,{html:function(t,s,n){var a=this.createElement("span"),h=a.element,l=a.renderer,c=l.isSVG,d=function(t,e){o(["opacity","visibility"],function(i){u(t,i+"Setter",function(t,i,s,n){t.call(this,i,s,n),e[s]=i})})};return a.textSetter=function(t){t!==h.innerHTML&&delete this.bBox,h.innerHTML=this.textStr=t,a.htmlUpdateTransform()},c&&d(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),a[e]=t,a.htmlUpdateTransform()},a.attr({text:t,x:Math.round(s),y:Math.round(n)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),h.style.whiteSpace="nowrap",a.css=a.htmlCss,c&&(a.add=function(t){var s,n=l.box.parentNode,c=[];if(this.parentGroup=t){if(s=t.div,!s){for(;t;)c.push(t),t=t.parentGroup;o(c.reverse(),function(t){var o,h=e(t.element,"class");h&&(h={className:h}),s=t.div=t.div||i("div",h,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},s||n),o=s.style,r(t,{classSetter:function(t){this.element.setAttribute("class",t),s.className=t},on:function(){return c[0].div&&a.on.apply({element:c[0].div},arguments),t},translateXSetter:function(e,i){o.left=e+"px",t[i]=e,t.doTransform=!0},translateYSetter:function(e,i){o.top=e+"px",t[i]=e,t.doTransform=!0}}),d(t,o)})}}else s=n;return s.appendChild(h),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}})}(t),function(t){var e,i,s=t.createElement,n=t.css,o=t.defined,r=t.deg2rad,a=t.discardElement,h=t.doc,l=t.each,c=t.erase,d=t.extend;e=t.extendClass;var p=t.isArray,u=t.isNumber,f=t.isObject,g=t.merge;i=t.noop;var m=t.pick,v=t.pInt,x=t.SVGElement,y=t.SVGRenderer,b=t.win;t.svg||(i={docMode8:h&&8===h.documentMode,init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],n=["position: ","absolute",";"],o="div"===e;("shape"===e||o)&&n.push("left:0;top:0;width:1px;height:1px;"),n.push("visibility: ",o?"hidden":"visible"),i.push(' style="',n.join(""),'"/>'),e&&(i=o||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=s(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,s=e.box,n=t&&t.inverted,s=t?t.element||t:s;return t&&(this.parentGroup=t),n&&e.invertChild(i,s),s.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this.className&&this.attr("class",this.className),this},updateTransform:x.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=Math.cos(t*r),i=Math.sin(t*r);n(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(t,e,i,s,o){var a,h=s?Math.cos(s*r):1,l=s?Math.sin(s*r):0,c=m(this.elemHeight,this.element.offsetHeight);this.xCorr=0>h&&-t,this.yCorr=0>l&&-c,a=0>h*l,this.xCorr+=l*e*(a?1-i:i),this.yCorr-=h*e*(s?a?i:1-i:1),o&&"left"!==o&&(this.xCorr-=t*i*(0>h?-1:1),s&&(this.yCorr-=c*i*(0>l?-1:1)),n(this.element,{textAlign:o}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)u(t[e])?i[e]=Math.round(10*t[e])-5:"Z"===t[e]?i[e]="x":(i[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(" ")||"x"},clip:function(t){var e,i=this;return t?(e=t.members,c(e,i),e.push(i),i.destroyClip=function(){c(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:i.docMode8?"inherit":"rect(auto)"}),i.css(t)},css:x.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&a(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),x.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=b.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var i;return t=t.split(/[ ,]/),i=t.length,9!==i&&11!==i||(t[i-4]=t[i-2]=v(t[i-2])-10*e),t.join(" ")},shadow:function(t,e,i){var n,o,r,a,h,l,c,d=[],p=this.element,u=this.renderer,f=p.style,g=p.path;if(g&&"string"!=typeof g.value&&(g="x"),h=g,t){for(l=m(t.width,3),c=(t.opacity||.15)/l,n=1;3>=n;n++)a=2*l+1-2*n,i&&(h=this.cutOffPath(g.value,a+.5)),r=[''],o=s(u.prepVML(r),null,{left:v(f.left)+m(t.offsetX,1),top:v(f.top)+m(t.offsetY,1)}),i&&(o.cutOff=a+1),r=[''],s(u.prepVML(r),null,null,o),e?e.element.appendChild(o):p.parentNode.insertBefore(o,p),d.push(o);this.shadows=d}return this},updateShadows:i,setAttr:function(t,e){this.docMode8?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){(this.added?this.element:this).className=t},dashstyleSetter:function(t,e,i){(i.getElementsByTagName("stroke")[0]||s(this.renderer.prepVML([""]),null,null,i))[e]=t||"solid",this[e]=t},dSetter:function(t,e,i){var s=this.shadows;if(t=t||[],this.d=t.join&&t.join(" "),i.path=t=this.pathToVML(t),s)for(i=s.length;i--;)s[i].path=s[i].cutOff?this.cutOffPath(t,s[i].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var s=i.nodeName;"SPAN"===s?i.style.color=t:"IMG"!==s&&(i.filled="none"!==t,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},"fill-opacitySetter":function(t,e,i){s(this.renderer.prepVML(["<",e.split("-")[0],' opacity="',t,'"/>']),null,null,i)},opacitySetter:i,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-Math.round(Math.sin(t*r)+1)+"px",i.top=Math.round(Math.cos(t*r))+"px"},strokeSetter:function(t,e,i){this.setAttr("strokecolor",this.renderer.color(t,i,e,this))},"stroke-widthSetter":function(t,e,i){i.stroked=!!t,this[e]=t,u(t)&&(t+="px"),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,i){"inherit"===t&&(t="visible"),this.shadows&&l(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t="hidden"===t?"-999em":0,this.docMode8||(i.style[e]=t?"visible":"hidden"),e="top"),i.style[e]=t},xSetter:function(t,e,i){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}},i["stroke-opacitySetter"]=i["fill-opacitySetter"],t.VMLElement=i=e(x,i),i.prototype.ySetter=i.prototype.widthSetter=i.prototype.heightSetter=i.prototype.xSetter,i={Element:i,isIE8:-1'],s(c.prepVML(a),null,null,i)};if(g=e[0],M=e[e.length-1],0M[0]&&e.push([1,M[1]]),l(e,function(e,i){d.test(e[1])?(r=t.color(e[1]),u=r.get("rgb"),f=r.get("a")):(u=e[1],f=1),w.push(100*e[0]+"% "+u),i?(v=f,x=u):(m=f,y=u)}),"fill"===n)if("gradient"===h)n=b.x1||b[0]||0,e=b.y1||b[1]||0,g=b.x2||b[2]||0,b=b.y2||b[3]||0,k='angle="'+(90-180*Math.atan((b-e)/(g-n))/Math.PI)+'"',S();else{var T,p=b.r,A=2*p,C=2*p,L=b.cx,P=b.cy,O=i.radialReference,p=function(){O&&(T=o.getBBox(),L+=(O[0]-T.x)/T.width-.5,P+=(O[1]-T.y)/T.height-.5,A*=O[2]/T.width,C*=O[2]/T.height),k='src="'+t.getOptions().global.VMLRadialGradientURL+'" size="'+A+","+C+'" origin="0.5,0.5" position="'+L+","+P+'" color2="'+y+'" ',S()};o.added?p():o.onAdd=p,p=x}else p=u}else d.test(e)&&"IMG"!==i.tagName?(r=t.color(e),o[n+"-opacitySetter"](r.get("a"),n,i),p=r.get("rgb")):(p=i.getElementsByTagName(n),p.length&&(p[0].opacity=1,p[0].type="solid"),p=e);return p},prepVML:function(t){var e=this.isIE8;return t=t.join(""),e?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=-1===t.indexOf('style="')?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","{point.key}
',pointFormat:' {series.name}: {point.y}
',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:""}},t.setOptions=function(e){return t.defaultOptions=r(!0,t.defaultOptions,e),i(),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,i()}(t),function(t){var e=t.correctFloat,i=t.defined,s=t.destroyObjectProperties,n=t.isNumber,o=t.merge,r=t.pick,a=t.deg2rad;t.Tick=function(t,e,i,s){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,i||s||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,s=this.axis,n=s.options,a=s.chart,h=s.categories,l=s.names,c=this.pos,d=n.labels,p=s.tickPositions,u=c===p[0],f=c===p[p.length-1],l=h?r(h[c],l[c],c):c,h=this.label,p=p.info;s.isDatetimeAxis&&p&&(t=n.dateTimeLabelFormats[p.higherRanks[c]||p.unitName]),this.isFirst=u,this.isLast=f,n=s.labelFormatter.call({axis:s,chart:a,isFirst:u,isLast:f,dateTimeLabelFormat:t,value:s.isLog?e(s.lin2log(l)):l,pos:c}),i(h)?h&&h.attr({text:n}):(this.labelLength=(this.label=h=i(n)&&d.enabled?a.renderer.text(n,0,0,d.useHTML).css(o(d.style)).add(s.labelGroup):null)&&h.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i=this.axis,s=t.x,n=i.chart.chartWidth,o=i.chart.spacing,h=r(i.labelLeft,Math.min(i.pos,o[3])),o=r(i.labelRight,Math.max(i.pos+i.len,n-o[1])),l=this.label,c=this.rotation,d={left:0,center:.5,right:1}[i.labelAlign],p=l.getBBox().width,u=i.getSlotWidth(),f=u,g=1,m={};c?0>c&&s-d*po&&(e=Math.round((n-s)/Math.cos(c*a))):(n=s+(1-d)*p,s-d*po&&(f=o-t.x+f*d,g=-1),f=Math.min(u,f),ff||i.autoRotation&&(l.styles||{}).width)&&(e=f)),e&&(m.width=e,(i.options.labels.style||{}).textOverflow||(m.textOverflow="ellipsis"),l.css(m))},getPosition:function(t,e,i,s){var n=this.axis,o=n.chart,r=s&&o.oldChartHeight||o.chartHeight;return{x:t?n.translate(e+i,null,null,s)+n.transB:n.left+n.offset+(n.opposite?(s&&o.oldChartWidth||o.chartWidth)-n.right-n.left:0),y:t?r-n.bottom+n.offset-(n.opposite?n.height:0):r-n.translate(e+i,null,null,s)-n.transB}},getLabelPosition:function(t,e,s,n,o,r,h,l){var c=this.axis,d=c.transA,p=c.reversed,u=c.staggerLines,f=c.tickRotCorr||{x:0,y:0},g=o.y;return i(g)||(g=0===c.side?s.rotation?-8:-s.getBBox().height:2===c.side?f.y+8:Math.cos(s.rotation*a)*(f.y-s.getBBox(!1,0).height/2)),t=t+o.x+f.x-(r&&n?r*d*(p?-1:1):0),e=e+g-(r&&!n?r*d*(p?1:-1):0),u&&(s=h/(l||1)%u,c.opposite&&(s=u-s-1),e+=c.labelOffset/u*s),{x:t,y:Math.round(e)}},getMarkPath:function(t,e,i,s,n,o){return o.crispLine(["M",t,e,"L",t+(n?0:-i),e+(n?i:0)],s)},renderGridLine:function(t,e,i){var s=this.axis,n=s.options,o=this.gridLine,r={},a=this.pos,h=this.type,l=s.tickmarkOffset,c=s.chart.renderer,d=h?h+"Grid":"grid",p=n[d+"LineWidth"],u=n[d+"LineColor"],n=n[d+"LineDashStyle"];o||(r.stroke=u,r["stroke-width"]=p,n&&(r.dashstyle=n),h||(r.zIndex=1),t&&(r.opacity=0),this.gridLine=o=c.path().attr(r).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(s.gridGroup)),!t&&o&&(t=s.getPlotLinePath(a+l,o.strokeWidth()*i,t,!0))&&o[this.isNew?"attr":"animate"]({d:t,opacity:e})},renderMark:function(t,e,i){var s=this.axis,n=s.options,o=s.chart.renderer,a=this.type,h=a?a+"Tick":"tick",l=s.tickSize(h),c=this.mark,d=!c,p=t.x;t=t.y;var u=r(n[h+"Width"],!a&&s.isXAxis?1:0),n=n[h+"Color"];l&&(s.opposite&&(l[0]=-l[0]),d&&(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(s.axisGroup),c.attr({stroke:n,"stroke-width":u})),c[d?"attr":"animate"]({d:this.getMarkPath(p,t,l[0],c.strokeWidth()*i,s.horiz,o),opacity:e}))},renderLabel:function(t,e,i,s){var o=this.axis,a=o.horiz,h=o.options,l=this.label,c=h.labels,d=c.step,p=o.tickmarkOffset,u=!0,f=t.x;t=t.y,l&&n(f)&&(l.xy=t=this.getLabelPosition(f,t,l,a,c,p,s,d),this.isFirst&&!this.isLast&&!r(h.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(h.showLastLabel,1)?u=!1:!a||o.isRadial||c.step||c.rotation||e||0===i||this.handleOverflow(t),d&&s%d&&(u=!1),u&&n(t.y)?(t.opacity=i,l[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(l.attr("y",-9999),this.isNewLabel=!0),this.isNew=!1)},render:function(t,e,i){var s=this.axis,n=s.horiz,o=this.getPosition(n,this.pos,s.tickmarkOffset,e),a=o.x,h=o.y,s=n&&a===s.pos+s.len||!n&&h===s.pos?-1:1;i=r(i,1),this.isActive=!0,this.renderGridLine(e,i,s),this.renderMark(o,i,s),this.renderLabel(o,e,i,t)},destroy:function(){s(this,this.axis)}}}(t);var e=function(t){var e=t.addEvent,i=t.animObject,s=t.arrayMax,n=t.arrayMin,o=t.color,r=t.correctFloat,a=t.defaultOptions,h=t.defined,l=t.deg2rad,c=t.destroyObjectProperties,d=t.each,p=t.extend,u=t.fireEvent,f=t.format,g=t.getMagnitude,m=t.grep,v=t.inArray,x=t.isArray,y=t.isNumber,b=t.isString,k=t.merge,M=t.normalizeTickInterval,w=t.objectEach,S=t.pick,T=t.removeEvent,A=t.splat,C=t.syncTimeout,L=t.Tick,P=function(){this.init.apply(this,arguments)};return t.extend(P.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,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return t.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},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(t,i){var s=i.isX,n=this;n.chart=t,n.horiz=t.inverted&&!n.isZAxis?!s:s,n.isXAxis=s,n.coll=n.coll||(s?"xAxis":"yAxis"),n.opposite=i.opposite,n.side=i.side||(n.horiz?n.opposite?0:2:n.opposite?1:3),n.setOptions(i);var o=this.options,r=o.type;n.labelFormatter=o.labels.formatter||n.defaultLabelFormatter,n.userOptions=i,n.minPixelPadding=0,n.reversed=o.reversed,n.visible=!1!==o.visible,n.zoomEnabled=!1!==o.zoomEnabled,n.hasNames="category"===r||!0===o.categories,n.categories=o.categories||n.hasNames,n.names=n.names||[],n.plotLinesAndBandsGroups={},n.isLog="logarithmic"===r,n.isDatetimeAxis="datetime"===r,n.positiveValuesOnly=n.isLog&&!n.allowNegativeLog,n.isLinked=h(o.linkedTo),n.ticks={},n.labelEdge=[],n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=o.minRange||o.maxZoom, n.range=o.range,n.offset=o.offset||0,n.stacks={},n.oldStacks={},n.stacksTouched=0,n.max=null,n.min=null,n.crosshair=S(o.crosshair,A(t.options.tooltip.crosshairs)[s?0:1],!1),i=n.options.events,-1===v(n,t.axes)&&(s?t.axes.splice(t.xAxis.length,0,n):t.axes.push(n),t[n.coll].push(n)),n.series=n.series||[],t.inverted&&!n.isZAxis&&s&&void 0===n.reversed&&(n.reversed=!0),w(i,function(t,i){e(n,i,t)}),n.lin2log=o.linearToLogConverter||n.lin2log,n.isLog&&(n.val2lin=n.log2lin,n.lin2val=n.lin2log)},setOptions:function(t){this.options=k(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],k(a[this.coll],t))},defaultLabelFormatter:function(){var e,i=this.axis,s=this.value,n=i.categories,o=this.dateTimeLabelFormat,r=a.lang,h=r.numericSymbols,r=r.numericSymbolMagnitude||1e3,l=h&&h.length,c=i.options.labels.format,i=i.isLog?Math.abs(s):i.tickInterval;if(c)e=f(c,this);else if(n)e=s;else if(o)e=t.dateFormat(o,s);else if(l&&1e3<=i)for(;l--&&void 0===e;)n=Math.pow(r,l+1),i>=n&&0===10*s%n&&null!==h[l]&&0!==s&&(e=t.numberFormat(s/n,-1)+h[l]);return void 0===e&&(e=1e4<=Math.abs(s)?t.numberFormat(s,-1):t.numberFormat(s,-1,void 0,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),d(t.series,function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var o,r=i.options,a=r.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=a&&(a=null),t.isXAxis?(r=i.xData,r.length&&(i=n(r),y(i)||i instanceof Date||(r=m(r,function(t){return y(t)}),i=n(r)),t.dataMin=Math.min(S(t.dataMin,r[0]),i),t.dataMax=Math.max(S(t.dataMax,r[0]),s(r)))):(i.getExtremes(),o=i.dataMax,i=i.dataMin,h(i)&&h(o)&&(t.dataMin=Math.min(S(t.dataMin,i),i),t.dataMax=Math.max(S(t.dataMax,o),o)),h(a)&&(t.threshold=a),(!r.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1))}})},translate:function(t,e,i,s,n,o){var r=this.linkedParent||this,a=1,h=0,l=s?r.oldTransA:r.transA;s=s?r.oldMin:r.min;var c=r.minPixelPadding;return n=(r.isOrdinal||r.isBroken||r.isLog&&n)&&r.lin2val,l||(l=r.transA),i&&(a*=-1,h=r.len),r.reversed&&(a*=-1,h-=a*(r.sector||r.len)),e?(t=(t*a+h-c)/l+s,n&&(t=r.lin2val(t))):(n&&(t=r.val2lin(t)),t=a*(t-s)*l+h+a*c+(y(o)?l*o:0)),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,i,s,n){var o,r,a,h=this.chart,l=this.left,c=this.top,d=i&&h.oldChartHeight||h.chartHeight,p=i&&h.oldChartWidth||h.chartWidth;o=this.transB;var u=function(t,e,i){return(ti)&&(s?t=Math.min(Math.max(e,t),i):a=!0),t};return n=S(n,this.translate(t,null,null,i)),t=i=Math.round(n+o),o=r=Math.round(d-n-o),y(n)?this.horiz?(o=c,r=d-this.bottom,t=i=u(t,l,l+this.width)):(t=l,i=p-this.right,o=r=u(o,c,c+this.height)):a=!0,a&&!s?null:h.renderer.crispLine(["M",t,o,"L",i,r],e||1)},getLinearTickPositions:function(t,e,i){var s,n=r(Math.floor(e/t)*t);i=r(Math.ceil(i/t)*t);var o=[];if(this.single)return[e];for(e=n;e<=i&&(o.push(e),e=r(e+t),e!==s);)s=e;return o},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,s=t.minorTickInterval,n=[],o=t.pointRangePadding||0,r=t.min-o,o=t.max+o,a=o-r;if(a&&a/s=this.minRange,c=this.minRange,t=(c-f+u)/2,t=[u-t,S(p.min,u-t)],e&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),u=s(t),f=[u+c,S(p.max,u+c)],e&&(f[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),f=n(f),f-u=C?(i=C,k=0):a.dataMax<=C&&(s=C,b=0)),a.min=S(n,i,a.dataMin),a.max=S(o,s,a.dataMax)),p&&(a.positiveValuesOnly&&!e&&0>=Math.min(a.min,S(a.dataMin,a.min))&&t.error(10,1),a.min=r(f(a.min),15),a.max=r(f(a.max),15)),a.range&&h(a.max)&&(a.userMin=a.min=n=Math.max(a.dataMin,a.minFromRange()),a.userMax=o=a.max,a.range=null),u(a,"foundExtremes"),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),!(A||a.axisPointRange||a.usePercentage||x)&&h(a.min)&&h(a.max)&&(f=a.max-a.min)&&(!h(n)&&k&&(a.min-=f*k),!h(o)&&b&&(a.max+=f*b)),y(c.softMin)&&(a.min=Math.min(a.min,c.softMin)),y(c.softMax)&&(a.max=Math.max(a.max,c.softMax)),y(c.floor)&&(a.min=Math.max(a.min,c.floor)),y(c.ceiling)&&(a.max=Math.min(a.max,c.ceiling)),L&&h(a.dataMin)&&(C=C||0,!h(n)&&a.min=C?a.min=C:!h(o)&&a.max>C&&a.dataMax<=C&&(a.max=C)),a.tickInterval=a.min===a.max||void 0===a.min||void 0===a.max?1:x&&!w&&T===a.linkedParent.options.tickPixelInterval?w=a.linkedParent.tickInterval:S(w,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,A?1:(a.max-a.min)*T/Math.max(a.len,T)),v&&!e&&d(a.series,function(t){t.processData(a.min!==a.oldMin||a.max!==a.oldMax)}),a.setAxisTranslation(!0),a.beforeSetTickPositions&&a.beforeSetTickPositions(),a.postProcessTickInterval&&(a.tickInterval=a.postProcessTickInterval(a.tickInterval)),a.pointRange&&!w&&(a.tickInterval=Math.max(a.pointRange,a.tickInterval)),e=S(c.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!w&&a.tickIntervala.tickInterval&&1e3a.max)),!!this.tickAmount)),this.tickAmount||(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e=this.options,i=e.tickPositions,s=e.tickPositioner,n=e.startOnTick,o=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===e.minorTickInterval&&this.tickInterval?this.tickInterval/5:e.minorTickInterval,this.single=this.min===this.max&&h(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=t=i&&i.slice(),!t&&(t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),t.length>this.len&&(t=[t[0],t.pop()]),this.tickPositions=t,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=t=s),this.paddedTicks=t.slice(0),this.trimTicks(t,n,o),this.isLinked||(this.single&&2>t.length&&(this.min-=.5,this.max+=.5),i||s||this.adjustTickAmount())},trimTicks:function(t,e,i){var s=t[0],n=t[t.length-1],o=this.minPointOffset||0;if(!this.isLinked){if(e&&-(1/0)!==s)this.min=s;else for(;this.min-o>t[0];)t.shift();if(i)this.max=n;else for(;this.max+oe&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,i=this.tickAmount,s=this.finalTickAmt,n=e&&e.length;if(ni&&(this.tickInterval*=2,this.setTickPositions());if(h(s)){for(t=i=e.length;t--;)(3===s&&1===t%2||2>=s&&0n&&(t=n)),h(s)&&(en&&(e=n))),this.displayBtn=void 0!==t||void 0!==e,this.setExtremes(t,e,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var e=this.chart,i=this.options,s=i.offsets||[0,0,0,0],n=this.horiz,o=this.width=Math.round(t.relativeLength(S(i.width,e.plotWidth-s[3]+s[1]),e.plotWidth)),r=this.height=Math.round(t.relativeLength(S(i.height,e.plotHeight-s[0]+s[2]),e.plotHeight)),a=this.top=Math.round(t.relativeLength(S(i.top,e.plotTop+s[0]),e.plotHeight,e.plotTop)),i=this.left=Math.round(t.relativeLength(S(i.left,e.plotLeft+s[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-r-a,this.right=e.chartWidth-o-i,this.len=Math.max(n?o:r,0),this.pos=n?i:a},getExtremes:function(){var t=this.isLog,e=this.lin2log;return{min:t?r(e(this.min)):this.min,max:t?r(e(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=this.lin2log,s=e?i(this.min):this.min,e=e?i(this.max):this.max;return null===t?t=s:s>t?t=s:et?"right":195t?"left":"center"},tickSize:function(t){var e=this.options,i=e[t+"Length"],s=S(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(s&&i)return"inside"===e[t+"Position"]&&(i=-i),[i,s]},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,s=this.options.labels,n=this.horiz,o=this.tickInterval,r=o,a=this.len/(((this.categories?1:0)+this.max-this.min)/o),c=s.rotation,p=this.labelMetrics(),u=Number.MAX_VALUE,f=function(t){return t/=a||1,t=1=i)&&(e=f(Math.abs(p.h/Math.sin(l*i))),s=e+Math.abs(i/360),s(i.step||0)&&!i.rotation&&(this.staggerLines||1)*this.len/s||!e&&(n&&n-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,i,s=this.chart,n=s.renderer,o=this.tickPositions,r=this.ticks,a=this.options.labels,h=this.horiz,l=this.getSlotWidth(),c=Math.max(1,Math.round(l-2*(a.padding||5))),p={},u=this.labelMetrics(),f=a.style&&a.style.textOverflow,g=0;if(b(a.rotation)||(p.rotation=a.rotation||0),d(o,function(t){(t=r[t])&&t.labelLength>g&&(g=t.labelLength)}),this.maxLabelLength=g,this.autoRotation)g>c&&g>u.h?p.rotation=this.labelRotation:this.labelRotation=0;else if(l&&(t={width:c+"px"},!f))for(t.textOverflow="clip",e=o.length;!h&&e--;)i=o[e],(c=r[i].label)&&(c.styles&&"ellipsis"===c.styles.textOverflow?c.css({textOverflow:"clip"}):r[i].labelLength>l&&c.css({width:l+"px"}),c.getBBox().height>this.len/o.length-(u.h-u.f)&&(c.specCss={textOverflow:"ellipsis"}));p.rotation&&(t={width:(g>.5*s.chartHeight?.33*s.chartHeight:s.chartHeight)+"px"},f||(t.textOverflow="ellipsis")),(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))&&(p.align=this.labelAlign),d(o,function(e){var i=(e=r[e])&&e.label;i&&(i.attr(p),t&&i.css(k(t,i.specCss)),delete i.specCss,e.rotation=p.rotation)}),this.tickRotCorr=n.rotCorr(u.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||h(this.min)&&h(this.max)&&!!this.tickPositions},addTitle:function(t){var e,i=this.chart.renderer,s=this.horiz,n=this.opposite,o=this.options.title;this.axisTitle||((e=o.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title").css(o.style).add(this.axisGroup),this.axisTitle.isNew=!0),o.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](!0)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new L(this,t)},getOffset:function(){var t,e,i,s=this,n=s.chart,o=n.renderer,r=s.options,a=s.tickPositions,l=s.ticks,c=s.horiz,p=s.side,u=n.inverted&&!s.isZAxis?[1,0,3,2][p]:p,f=0,g=0,m=r.title,v=r.labels,x=0,y=n.axisOffset,n=n.clipOffset,b=[-1,1,1,-1][p],k=r.className,M=s.axisParent,T=this.tickSize("tick");t=s.hasData(),s.showAxis=e=t||S(r.showEmpty,!0),s.staggerLines=s.horiz&&v.staggerLines,s.axisGroup||(s.gridGroup=o.g("grid").attr({zIndex:r.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(k||"")).add(M),s.axisGroup=o.g("axis").attr({zIndex:r.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(k||"")).add(M),s.labelGroup=o.g("axis-labels").attr({zIndex:v.zIndex||7}).addClass("highcharts-"+s.coll.toLowerCase()+"-labels "+(k||"")).add(M)),t||s.isLinked?(d(a,function(t,e){s.generateTick(t,e)}),s.renderUnsquish(),!1===v.reserveSpace||0!==p&&2!==p&&{1:"left",3:"right"}[p]!==s.labelAlign&&"center"!==s.labelAlign||d(a,function(t){x=Math.max(l[t].getLabelSize(),x)}),s.staggerLines&&(x*=s.staggerLines,s.labelOffset=x*(s.opposite?-1:1))):w(l,function(t,e){t.destroy(),delete l[e]}),m&&m.text&&!1!==m.enabled&&(s.addTitle(e),e&&!1!==m.reserveSpace&&(s.titleOffset=f=s.axisTitle.getBBox()[c?"height":"width"],i=m.offset,g=h(i)?0:S(m.margin,c?5:10))),s.renderLine(),s.offset=b*S(r.offset,y[p]),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},o=0===p?-s.labelMetrics().h:2===p?s.tickRotCorr.y:0,g=Math.abs(x)+g,x&&(g=g-o+b*(c?S(v.y,s.tickRotCorr.y+8*b):v.x)),s.axisTitleMargin=S(i,g),y[p]=Math.max(y[p],s.axisTitleMargin+f+b*s.offset,g,t&&a.length&&T?T[0]+b*s.offset:0),a=2*Math.floor(s.axisLine.strokeWidth()/2),0=this.min&&t<=this.max)&&(s[t]||(s[t]=new L(this,t)),n&&s[t].isNew&&s[t].render(e,!0,.1),s[t].render(e))},render:function(){var e,s,n=this,o=n.chart,r=n.options,a=n.isLog,h=n.lin2log,l=n.isLinked,c=n.tickPositions,p=n.axisTitle,u=n.ticks,f=n.minorTicks,g=n.alternateBands,m=r.stackLabels,v=r.alternateGridColor,x=n.tickmarkOffset,b=n.axisLine,k=n.showAxis,M=i(o.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,d([u,f,g],function(t){w(t,function(t){t.isActive=!1})}),(n.hasData()||l)&&(n.minorTickInterval&&!n.categories&&d(n.getMinorTickPositions(),function(t){n.renderMinorTick(t)}),c.length&&(d(c,function(t,e){n.renderTick(t,e)}),x&&(0===n.min||n.single)&&(u[-1]||(u[-1]=new L(n,-1,null,!0)),u[-1].render(-1))),v&&d(c,function(i,r){s=void 0!==c[r+1]?c[r+1]+x:n.max-x,0===r%2&&i=p.second?0:M*Math.floor(y.getMilliseconds()/M)),k>=p.second&&y[i.hcSetSeconds](k>=p.minute?0:M*Math.floor(y.getSeconds()/M)),k>=p.minute&&y[i.hcSetMinutes](k>=p.hour?0:M*Math.floor(y[i.hcGetMinutes]()/M)),k>=p.hour&&y[i.hcSetHours](k>=p.day?0:M*Math.floor(y[i.hcGetHours]()/M)),k>=p.day&&y[i.hcSetDate](k>=p.month?1:M*Math.floor(y[i.hcGetDate]()/M)),k>=p.month&&(y[i.hcSetMonth](k>=p.year?0:M*Math.floor(y[i.hcGetMonth]()/M)),u=y[i.hcGetFullYear]()),k>=p.year&&y[i.hcSetFullYear](u-u%M),k===p.week&&y[i.hcSetDate](y[i.hcGetDate]()-y[i.hcGetDay]()+d(c,1)),u=y[i.hcGetFullYear](),c=y[i.hcGetMonth]();var w=y[i.hcGetDate](),S=y[i.hcGetHours]();for((i.hcTimezoneOffset||i.hcGetTimezoneOffset)&&(g=(!x||!!i.hcGetTimezoneOffset)&&(h-e>4*p.month||l(e)!==l(h)),y=y.getTime(),f=l(y),y=new i(y+f)),x=y.getTime(),e=1;xm.length&&r(m,function(t){0===t%18e5&&"000000000"===s("%H%M%S%L",t)&&(v[t]="day")})}return m.info=a(t,{higherRanks:v,totalRange:k*M}),m},e.prototype.normalizeTimeTickInterval=function(t,e){var i=e||[["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]];e=i[i.length-1];var s,n=p[e[0]],o=e[1];for(s=0;se&&(!a||m<=r)&&void 0!==m&&p.push(m),m>r&&(v=!0),m=g;else e=c(e),r=c(r),t=h[a?"minorTickInterval":"tickInterval"],t=o("auto"===t?null:t,this._minorAutoInterval,h.tickPixelInterval/(a?5:1)*(r-e)/((a?l/this.tickPositions.length:l)||1)),t=n(t,null,i(t)),p=s(this.getLinearTickPositions(t,e,r),d),a||(this._minorAutoInterval=t/5);return a||(this.tickInterval=t),p},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}(t),function(t,e){var i=t.arrayMax,s=t.arrayMin,n=t.defined,o=t.destroyObjectProperties,r=t.each,a=t.erase,h=t.merge,l=t.pick;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){var e=this,i=e.axis,s=i.horiz,o=e.options,r=o.label,a=e.label,c=o.to,d=o.from,p=o.value,u=n(d)&&n(c),f=n(p),g=e.svgElem,m=!g,v=[],x=o.color,y=l(o.zIndex,0),b=o.events,v={class:"highcharts-plot-"+(u?"band ":"line ")+(o.className||"")},k={},M=i.chart.renderer,w=u?"bands":"lines",S=i.log2lin;if(i.isLog&&(d=S(d),c=S(c),p=S(p)),f?(v={stroke:x,"stroke-width":o.width},o.dashStyle&&(v.dashstyle=o.dashStyle)):u&&(x&&(v.fill=x),o.borderWidth&&(v.stroke=o.borderColor,v["stroke-width"]=o.borderWidth)),k.zIndex=y,w+="-"+y,(x=i.plotLinesAndBandsGroups[w])||(i.plotLinesAndBandsGroups[w]=x=M.g("plot-"+w).attr(k).add()),m&&(e.svgElem=g=M.path().attr(v).add(x)),f)v=i.getPlotLinePath(p,g.strokeWidth());else{if(!u)return;v=i.getPlotBandPath(d,c,o)}return m&&v&&v.length?(g.attr({d:v}),b&&t.objectEach(b,function(t,i){g.on(i,function(t){b[i].apply(e,[t])})})):g&&(v?(g.show(),g.animate({d:v})):(g.hide(),a&&(e.label=a=a.destroy()))),r&&n(r.text)&&v&&v.length&&0this.max&&e>this.max,s&&i?(t&&(s.flat=s.toString()===i.toString(),o=0),s.push(n&&i[4]===s[4]?i[4]+o:i[4],n||i[5]!==s[5]?i[5]:i[5]+o,n&&i[1]===s[1]?i[1]+o:i[1],n||i[2]!==s[2]?i[2]:i[2]+o)):s=null,s},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var s=new t.PlotLineOrBand(this,e).render(),n=this.userOptions;return s&&(i&&(n[i]=n[i]||[],n[i].push(e)),this.plotLinesAndBands.push(s)),s},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,s=this.userOptions,n=e.length;n--;)e[n].id===t&&e[n].destroy();r([i.plotLines||[],s.plotLines||[],i.plotBands||[],s.plotBands||[]],function(e){for(n=e.length;n--;)e[n].id===t&&a(e,e[n])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})}(t,e),function(t){var e=t.dateFormat,i=t.each,s=t.extend,n=t.format,o=t.isNumber,r=t.map,a=t.merge,h=t.pick,l=t.splat,c=t.syncTimeout,d=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split},cleanSplit:function(t){i(this.chart.series,function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},getLabel:function(){var t=this.chart.renderer,e=this.options;return this.label||(this.split?this.label=t.g("tooltip"):(this.label=t.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:e.padding,r:e.borderRadius}),this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth}).css(e.style).shadow(e.shadow)),this.label.attr({zIndex:8}).add()),this.label},update:function(t){this.destroy(),a(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,a(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,n){var o=this,r=o.now,a=!1!==o.options.animation&&!o.isHidden&&(1p-a?p:p-a);else{if(!c)return!1;r[t]=Math.max(n,s+a+i>e?s:s+a)}},u=function(t,e,i,s){var n;return se-o?n=!1:r[t]=se-i/2?e-i-2:s-i/2,n},f=function(t){var e=l;l=c,c=e,s=t},g=function(){!1!==p.apply(0,l)?!1!==u.apply(0,c)||s||(f(!0),g()):s?r.x=r.y=0:(f(!0),g())};return(n.inverted||1f&&(l=!1),t=(e.series&&e.series.yAxis&&e.series.yAxis.pos)+(e.plotY||0),t-=r.plotTop,o.push({target:e.isHeader?r.plotHeight+d:t,rank:e.isHeader?1:0,size:i.tt.getBBox().height+1,point:e,x:f,tt:u})}}),this.cleanSplit(),t.distribute(o,r.plotHeight+d),i(o,function(t){var e=t.point,i=e.series;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:l||e.isHeader?t.x:e.plotX+r.plotLeft+h(c.distance,16),y:t.pos+r.plotTop,anchorX:e.isHeader?e.plotX+r.plotLeft:e.plotX+i.xAxis.pos,anchorY:e.isHeader?t.pos+r.plotTop-15:e.plotY+i.yAxis.pos})})},updatePosition:function(t){var e=this.chart,i=this.getLabel(),i=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(Math.round(i.x),Math.round(i.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getDateFormat:function(t,i,s,n){var o,r,a=e("%m-%d %H:%M:%S.%L",i),h={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";for(r in d){if(t===d.week&&+e("%w",i)===s&&"00:00:00.000"===a.substr(6)){r="week";break}if(d[r]>t){r=l;break}if(h[r]&&a.substr(h[r])!=="01-01 00:00:00.000".substr(h[r]))break;"week"!==r&&(l=r)}return r&&(o=n[r]),o},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var s=i&&i.closestPointRange;return(s?this.getDateFormat(s,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header";e=t.series;var s=e.tooltipOptions,r=s.xDateFormat,a=e.xAxis,h=a&&"datetime"===a.options.type&&o(t.key),i=s[i+"Format"];return h&&!r&&(r=this.getXDateFormat(t,s,a)),h&&r&&(i=i.replace("{point.key}","{point.key:"+r+"}")),n(i,{point:t,series:e})},bodyFormatter:function(t){return r(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}}}(t),function(t){var e=t.addEvent,i=t.attr,s=t.charts,n=t.color,o=t.css,r=t.defined,a=t.each,h=t.extend,l=t.find,c=t.fireEvent,d=t.isObject,p=t.offset,u=t.pick,f=t.removeEvent,g=t.splat,m=t.Tooltip,v=t.win;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},m&&(t.tooltip=new m(t,e.tooltip),this.followTouchMove=u(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"",e=e.inverted;/touch/.test(t.type)&&(s=u(i.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=t&&!e||s&&e,this.zoomVert=s&&!e||t&&e,this.hasZoom=t||s},normalize:function(t,e){var i,s;return t=t||v.event,t.target||(t.target=t.srcElement),s=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=p(this.chart.container)),void 0===s.pageX?(i=Math.max(t.x,t.clientX-e.left),e=t.y):(i=s.pageX-e.left,e=s.pageY-e.top),h(t,{chartX:Math.round(i),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return a(this.chart.axes,function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},findNearestKDPoint:function(t,e,i){var s;return a(t,function(t){var n=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,n),(n=d(t,!0))&&!(n=!d(s,!0)))var n=s.distX-t.distX,o=s.dist-t.dist,r=(t.series.group&&t.series.group.zIndex)-(s.series.group&&s.series.group.zIndex),n=0<(0!==n&&e?n:0!==o?o:0!==r?r:s.series.index>t.series.index?-1:1);n&&(s=t)}),s},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=t.series,s=i.xAxis,i=i.yAxis;if(s&&i)return e?{chartX:s.len+s.pos-t.clientX,chartY:i.len+i.pos-t.plotY}:{chartX:t.clientX+s.pos,chartY:t.plotY+i.pos}},getHoverData:function(e,i,s,n,o,r){var h,c=[];n=!(!n||!e);var p=i&&!i.stickyTracking?[i]:t.grep(s,function(t){return t.visible&&!(!o&&t.directTouch)&&u(t.options.enableMouseTracking,!0)&&t.stickyTracking});return i=(h=n?e:this.findNearestKDPoint(p,o,r))&&h.series,h&&(o&&!i.noSharedTooltip?(p=t.grep(s,function(t){return t.visible&&!(!o&&t.directTouch)&&u(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}),a(p,function(t){t=l(t.points,function(t){return t.x===h.x}),d(t)&&!t.isNull&&c.push(t)})):c.push(h)),{hoverPoint:h,hoverSeries:i,hoverPoints:c}},runPointActions:function(i,n){var o,r=this.chart,h=r.tooltip,l=!!h&&h.shared,c=n||r.hoverPoint,d=c&&c.series||r.hoverSeries,d=this.getHoverData(c,d,r.series,!!n||d&&d.directTouch&&this.isDirectTouch,l,i),c=d.hoverPoint;o=d.hoverPoints,n=(d=d.hoverSeries)&&d.tooltipOptions.followPointer,l=l&&d&&!d.noSharedTooltip,c&&(c!==r.hoverPoint||h&&h.isHidden)?(a(r.hoverPoints||[],function(e){-1===t.inArray(e,o)&&e.setState()}),a(o||[],function(t){t.setState("hover")}),r.hoverSeries!==d&&d.onMouseOver(),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),c.firePointEvent("mouseOver"),r.hoverPoints=o,r.hoverPoint=c,h&&h.refresh(l?o:c,i)):n&&h&&!h.isHidden&&(c=h.getAnchor([{}],i),h.updatePosition({plotX:c[0],plotY:c[1]})),this.unDocMouseMove||(this.unDocMouseMove=e(r.container.ownerDocument,"mousemove",function(e){var i=s[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),a(r.axes,function(e){var s=u(e.crosshair.snap,!0),n=s?t.find(o,function(t){return t.series[e.coll]===e}):void 0;n||!s?e.drawCrosshair(i,n):e.hideCrosshair()})},reset:function(t,e){var i=this.chart,s=i.hoverSeries,n=i.hoverPoint,o=i.hoverPoints,r=i.tooltip,h=r&&r.shared?o:n;t&&h&&a(g(h),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?r&&h&&(r.refresh(h),n&&(n.setState(n.state,!0),a(i.axes,function(t){t.crosshair&&t.drawCrosshair(null,n)}))):(n&&n.onMouseOut(),o&&a(o,function(t){t.setState()}),s&&s.onMouseOut(),r&&r.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),a(i.axes,function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,s=this.chart;a(s.series,function(n){i=t||n.getPlotBox(),n.xAxis&&n.xAxis.zoomEnabled&&n.group&&(n.group.attr(i),n.markerGroup&&(n.markerGroup.attr(i),n.markerGroup.clip(e?s.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(i))}),s.clipRect.attr(e||s.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,s=i.options.chart,o=t.chartX,r=t.chartY,a=this.zoomHor,h=this.zoomVert,l=i.plotLeft,c=i.plotTop,d=i.plotWidth,p=i.plotHeight,u=this.selectionMarker,f=this.mouseDownX,g=this.mouseDownY,m=s.panKey&&t[s.panKey+"Key"];u&&u.touch||(ol+d&&(o=l+d),rc+p&&(r=c+p),this.hasDragged=Math.sqrt(Math.pow(f-o,2)+Math.pow(g-r,2)),10y.max&&(e=y.max-h,c=!0),c?(M-=.8*(M-r[p][0]),b||(S-=.8*(S-r[p][1])),i()):r[p]=[M,S],x||(o[p]=l-m,o[g]=h),o=x?1/v:v,n[g]=h,n[p]=e,s[x?t?"scaleY":"scaleX":"scale"+u]=v,s["translate"+u]=o*m+(M-o*k)},pinch:function(t){var e=this,a=e.chart,h=e.pinchDown,l=t.touches,c=l.length,d=e.lastValidTouch,p=e.hasZoom,u=e.selectionMarker,f={},g=1===c&&(e.inClass(t.target,"highcharts-tracker")&&a.runTrackerClick||e.runChartClick),m={};1e-6&&a(f||e.spacingBox.width-2*d-s.x)&&(this.itemX=d,this.itemY+=m+this.lastLineHeight+g,this.lastLineHeight=0),this.maxItemWidth=Math.max(this.maxItemWidth,a),this.lastItemY=m+this.itemY+g,this.lastLineHeight=Math.max(i,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=a:(this.itemY+=m+i+g,this.lastLineHeight=i),this.offsetWidth=f||Math.max((n?this.itemX-d-(t.checkbox?0:p):a)+d,this.offsetWidth)},getAllItems:function(){var t=[];return o(this.chart.series,function(e){var i=e&&e.options;e&&l(i.showInLegend,!n(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var i=this.chart,s=this.options,r=s.align.charAt(0)+s.verticalAlign.charAt(0)+s.layout.charAt(0);s.floating||o([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,h){o.test(r)&&!n(t[h])&&(i[a[h]]=Math.max(i[a[h]],i.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*s[h%2?"x":"y"]+l(s.margin,12)+e[h]))})},render:function(){var t,e,i,s,n=this,r=n.chart,a=r.renderer,l=n.group,c=n.box,p=n.options,u=n.padding;n.itemX=u,n.itemY=n.initialItemY,n.offsetWidth=0,n.lastItemY=0,l||(n.group=l=a.g("legend").attr({zIndex:7}).add(),n.contentGroup=a.g().attr({zIndex:1}).add(l),n.scrollGroup=a.g().add(n.contentGroup)),n.renderTitle(),t=n.getAllItems(),d(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),p.reversed&&t.reverse(),n.allItems=t,n.display=e=!!t.length,n.lastLineHeight=0,o(t,function(t){n.renderItem(t)}),i=(p.width||n.offsetWidth)+u,s=n.lastItemY+n.lastLineHeight+n.titleHeight,s=n.handleOverflow(s),s+=u,c||(n.box=c=a.rect().addClass("highcharts-legend-box").attr({r:p.borderRadius}).add(l),c.isNew=!0),c.attr({stroke:p.borderColor,"stroke-width":p.borderWidth||0,fill:p.backgroundColor||"none"}).shadow(p.shadow),0n&&!1!==p.enabled?(this.clipHeight=e=Math.max(n-20-this.titleHeight-c,0),this.currentPage=l(this.currentPage,1),this.fullHeight=t,o(v,function(t,s){var n=t._legendItemPos[1];t=Math.round(t.legendItem.getBBox().height);var o=m.length;(!o||n-m[o-1]>e&&(i||n)!==m[o-1])&&(m.push(i||n),o++),s===v.length-1&&n+t-m[o-1]>e&&m.push(n),n!==i&&(i=n)}),d||(d=s.clipRect=r.clipRect(0,c,9999,0),s.contentGroup.clip(d)),x(e),g||(this.nav=g=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,f,f).on("click",function(){s.scroll(-1,u)}).add(g),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation").css(p.style).add(g),this.down=r.symbol("triangle-down",0,0,f,f).on("click",function(){s.scroll(1,u)}).add(g)),s.scroll(0),t=n):g&&(x(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,s=i.length;t=this.currentPage+t;var n=this.clipHeight,o=this.options.navigation,r=this.pager,a=this.padding;t>s&&(t=s),0o&&(i=typeof t[0],"string"===i?e.name=t[0]:"number"===i&&(e.x=t[0]),r++);l=t.value;)t=i[++s];return t&&t.color&&!this.options.color&&(this.color=t.color),t},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;e.pointCount--,i&&(this.setState(),n(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(c(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],i=6;i--;)t=e[i],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,s=e.tooltipOptions,n=l(s.valueDecimals,""),o=s.valuePrefix||"",a=s.valueSuffix||"";return i(e.pointArrayMap||["y"],function(e){e="{point."+e,(o||a)&&(t=t.replace(e+"}",o+e+"}"+a)),t=t.replace(e+"}",e+":,."+n+"f}")}),r(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var s=this,n=this.series.options;(n.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&this.importEvents(),"click"===t&&n.allowPointSelect&&(i=function(t){s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),o(this,t,e,i)},visible:!0}}(t),function(t){var e=t.addEvent,i=t.animObject,s=t.arrayMax,n=t.arrayMin,o=t.correctFloat,r=t.Date,a=t.defaultOptions,h=t.defaultPlotOptions,l=t.defined,c=t.each,d=t.erase,p=t.extend,u=t.fireEvent,f=t.grep,g=t.isArray,m=t.isNumber,v=t.isString,x=t.merge,y=t.objectEach,b=t.pick,k=t.removeEvent,M=t.splat,w=t.SVGElement,S=t.syncTimeout,T=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:t.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(t,i){var s,n,o=this,r=t.series;o.chart=t,o.options=i=o.setOptions(i),o.linkedSeries=[],o.bindAxes(),p(o,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected}),s=i.events,y(s,function(t,i){e(o,i,t)}),(s&&s.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),c(o.parallelArrays,function(t){o[t+"Data"]=[]}),o.setData(i.data,!1),o.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(n=r[r.length-1]),o._i=b(n&&n._i,-1)+1,t.orderSeries(this.insert(r))},insert:function(t){var e,i=this.options.index;if(m(i)){for(e=t.length;e--;)if(i>=b(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return b(e,t.length-1)},bindAxes:function(){var e,i=this,s=i.options,n=i.chart;c(i.axisTypes||[],function(o){c(n[o],function(t){e=t.options,(s[o]===e.index||void 0!==s[o]&&s[o]===e.id||void 0===s[o]&&0===e.index)&&(i.insert(t.series),i[o]=t,t.isDirty=!0)}),i[o]||i.optionalAxis===o||t.error(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,s=arguments,n=m(e)?function(s){var n="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=n}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};c(i.parallelArrays,n)},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,s=e.pointIntervalUnit,i=b(i,e.pointStart,0);return this.pointInterval=t=b(this.pointInterval,e.pointInterval,1),s&&(e=new r(i),"day"===s?e=+e[r.hcSetDate](e[r.hcGetDate]()+t):"month"===s?e=+e[r.hcSetMonth](e[r.hcGetMonth]()+t):"year"===s&&(e=+e[r.hcSetFullYear](e[r.hcGetFullYear]()+t)),t=e-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,s=i.plotOptions,n=(e.userOptions||{}).plotOptions||{},o=s[this.type];return this.userOptions=t,e=x(o,s.series,t),this.tooltipOptions=x(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,i.tooltip.userOptions,s.series&&s.series.tooltip,s[this.type].tooltip,t.tooltip),this.stickyTracking=b(t.stickyTracking,n[this.type]&&n[this.type].stickyTracking,n.series&&n.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===o.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&l(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),e},getCyclic:function(t,e,i){var s,n=this.chart,o=this.userOptions,r=t+"Index",a=t+"Counter",h=i?i.length:b(n.options.chart[t+"Count"],n[t+"Count"]);e||(s=b(o[r],o["_"+r]),l(s)||(n.series.length||(n[a]=0),o["_"+r]=s=n[a]%h,n[a]+=1),i&&(e=i[s])),void 0!==s&&(this[r]=s),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||h[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,setData:function(e,i,s,n){var o,r=this,a=r.points,h=a&&a.length||0,l=r.options,d=r.chart,p=null,u=r.xAxis,f=l.turboThreshold,x=this.xData,y=this.yData,k=(o=r.pointArrayMap)&&o.length;if(e=e||[],o=e.length,i=b(i,!0),!1!==n&&o&&h===o&&!r.cropped&&!r.hasGroupedData&&r.visible)c(e,function(t,e){a[e].update&&t!==l.data[e]&&a[e].update(t,!1,null,!1)});else{if(r.xIncrement=null,r.colorCounter=0,c(this.parallelArrays,function(t){r[t+"Data"].length=0}),f&&o>f){for(s=0;null===p&&sh||this.forceCrop)&&(s[o-1]p?(s=[],n=[]):(s[0]p)&&(i=this.cropData(this.xData,this.yData,d,p),s=i.xData,n=i.yData,i=i.start,r=!0)),h=s.length||1;--h;)o=g?c(s[h])-c(s[h-1]):s[h]-s[h-1],0o&&this.requireSorting&&t.error(15);this.cropped=r,this.cropStart=i,this.processedXData=s,this.processedYData=n,this.closestPointRange=a},cropData:function(t,e,i,s){var n,o=t.length,r=0,a=o,h=b(this.cropShoulder,1);for(n=0;n=i){r=Math.max(0,n-h);break}for(i=n;is){a=i+h;break}return{xData:t.slice(r,a),yData:e.slice(r,a),start:r,end:a}},generatePoints:function(){var t,e,i,s,n=this.options,o=n.data,r=this.data,a=this.processedXData,h=this.processedYData,l=this.pointClass,c=a.length,d=this.cropStart||0,p=this.hasGroupedData,n=n.keys,u=[];for(r||p||(r=[],r.length=o.length,r=this.data=r),n&&p&&(this.options.keys=!1),s=0;s=p&&(o[d]||l)<=u,h&&l)if(h=c.length)for(;h--;)null!==c[h]&&(r[a++]=c[h]);else r[a++]=c;this.dataMin=n(r),this.dataMax=s(r)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,s,n=this.options,r=n.stacking,a=this.xAxis,h=a.categories,c=this.yAxis,d=this.points,p=d.length,u=!!this.modifyValue,f=n.pointPlacement,g="between"===f||m(f),v=n.threshold,x=n.startFromThreshold?v:0,y=Number.MAX_VALUE;for("between"===f&&(f=.5),m(f)&&(f*=b(n.pointRange||a.pointRange)),n=0;n=w&&(k.isNull=!0),k.plotX=t=o(Math.min(Math.max(-1e5,a.translate(M,0,0,0,1,f,"flags"===this.type)),1e5)),r&&this.visible&&!k.isNull&&T&&T[M]&&(s=this.getStackIndicator(s,M,this.index),S=T[M],w=S.points[s.key],e=w[0],w=w[1],e===x&&s.key===T[M].base&&(e=b(v,c.min)),c.positiveValuesOnly&&0>=e&&(e=null),k.total=k.stackTotal=S.total,k.percentage=S.total&&k.y/S.total*100,k.stackY=w,S.setOffset(this.pointXOffset||0,this.barW||0)),k.yBottom=l(e)?c.translate(e,0,1,0,1):null,u&&(w=this.modifyValue(w,k)),k.plotY=e="number"==typeof w&&1/0!==w?Math.min(Math.max(-1e5,c.translate(w,0,1,0,1)),1e5):void 0,k.isInside=void 0!==e&&0<=e&&e<=c.len&&0<=t&&t<=a.len,k.clientX=g?o(a.translate(M,0,0,0,1,f)):t,k.negative=k.y<(v||0),k.category=h&&void 0!==h[k.x]?h[k.x]:k.x,k.isNull||(void 0!==i&&(y=Math.min(y,Math.abs(t-i))),i=t),k.zone=this.zones.length&&k.getZone()}this.closestPointRangePx=y},getValidPoints:function(t,e){var i=this.chart;return f(t||this.points||[],function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,i.inverted))&&!t.isNull})},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,n=e.inverted,o=this.clipBox,r=o||e.clipBox,a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,r.height,i.xAxis,i.yAxis].join(),h=e[a],l=e[a+"m"];h||(t&&(r.width=0,e[a+"m"]=l=s.clipRect(-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[a]=h=s.clipRect(r),h.count={length:0}),t&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1),!1!==i.clip&&(this.group.clip(t||o?h:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=a),t||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e,s=this.chart,n=i(this.options.animation);t?this.setClip(n):(e=this.sharedClipKey,(t=s[e])&&t.animate({width:s.plotSizeX},n),s[e+"m"]&&s[e+"m"].animate({width:s.plotSizeX+99},n),this.animate=null)},afterAnimate:function(){this.setClip(),u(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i,s,n,o,r,a,h=this.points,l=this.chart,c=this.options.marker,d=this[this.specialGroup]||this.markerGroup,p=b(c.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=2*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;en&&e.shadow)),r&&(r.startX=i.xMap,r.isArea=i.isArea)})},applyZones:function(){var t,e,i,s,n,o,r,a,h,l=this,d=this.chart,p=d.renderer,u=this.zones,f=this.clips||[],g=this.graph,m=this.area,v=Math.max(d.chartWidth,d.chartHeight),x=this[(this.zoneAxis||"y")+"Axis"],y=d.inverted,k=!1;u.length&&(g||m)&&x&&void 0!==x.min&&(n=x.reversed,o=x.horiz,g&&g.hide(),m&&m.hide(),s=x.getExtremes(),c(u,function(c,u){t=n?o?d.plotWidth:0:o?0:x.toPixels(s.min),t=Math.min(Math.max(b(e,t),0),v),e=Math.min(Math.max(Math.round(x.toPixels(b(c.value,s.max),!0)),0),v),k&&(t=e=x.toPixels(s.max)),r=Math.abs(t-e),a=Math.min(t,e),h=Math.max(t,e),x.isXAxis?(i={x:y?h:a,y:0,width:r,height:v},o||(i.x=d.plotHeight-i.x)):(i={x:0,y:y?h:a,width:v,height:r},o&&(i.y=d.plotWidth-i.y)),y&&p.isVML&&(i=x.isXAxis?{x:0,y:n?a:h,height:i.width,width:d.chartWidth}:{x:i.y-d.plotLeft-d.spacingBox.x,y:0,width:i.height,height:d.chartHeight}),f[u]?f[u].animate(i):(f[u]=p.clipRect(i),g&&l["zone-graph-"+u].clip(f[u]),m&&l["zone-area-"+u].clip(f[u])),k=c.value>s.max}),this.clips=f)},invertGroups:function(t){function i(){c(["group","markerGroup"],function(e){n[e]&&(o.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(t))})}var s,n=this,o=n.chart;n.xAxis&&(s=e(o,"resize",i),e(n,"destroy",s),i(t),n.invertGroups=i)},plotGroup:function(t,e,i,s,n){var o=this[t],r=!o;return r&&(this[t]=o=this.chart.renderer.g().attr({zIndex:s||.1}).add(n)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),!0),o.attr({visibility:i})[r?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,s=e.chart,n=e.options,o=!!e.animate&&s.renderer.isSVG&&i(n.animation).duration,r=e.visible?"inherit":"hidden",a=n.zIndex,h=e.hasRendered,l=s.seriesGroup,c=s.inverted;t=e.plotGroup("group","series",r,a,l),e.markerGroup=e.plotGroup("markerGroup","markers",r,a,l),o&&e.animate(!0),t.inverted=!!e.isCartesian&&c,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),!1===n.clip||e.sharedClipKey||h||t.clip(s.clipRect),o&&e.animate(),h||(e.animationTimeout=S(function(){e.afterAnimate()},o)),e.isDirty=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,n=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:b(s&&s.left,t.plotLeft),translateY:b(n&&n.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?s.len-t.chartX+s.pos:t.chartY-s.pos},e)},buildKDTree:function(){function t(i,s,n){var o,r;if(r=i&&i.length)return o=e.kdAxisArray[s%n],i.sort(function(t,e){return t[o]-e[o]}),r=Math.floor(r/2),{point:i[r],left:t(i.slice(0,r),s+1,n),right:t(i.slice(r+1),s+1,n)}}this.buildingKdTree=!0;var e=this,i=-1u?"left":"right",d=0>u?"right":"left",e[c]&&(c=i(t,e[c],a+1,h),f=c[r]a;)r--;this.updateParallelArrays(n,"splice",r,0,0),this.updateParallelArrays(n,r),d&&n.name&&(d[a]=n.name),p.splice(r,0,t),o&&(this.data.splice(r,0,null),this.processData()),"point"===h.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(n,"shift"),p.shift())),this.isDirtyData=this.isDirty=!0,e&&c.redraw(s)},removePoint:function(t,e,i){var s=this,n=s.data,o=n[t],r=s.points,a=s.chart,h=function(){r&&r.length===n.length&&r.splice(t,1),n.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(o||{series:s},"splice",t,1),o&&o.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};k(i,a),e=v(e,!0),o?o.firePointEvent("remove",null,h):h()},remove:function(t,e,i){function s(){n.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),v(t,!0)&&o.redraw(e)}var n=this,o=n.chart;!1!==i?c(n,"remove",null,s):s()},update:function(t,e){var i,s=this,n=s.chart,o=s.userOptions,r=s.oldType||s.type,h=t.type||o.type||n.options.chart.type,c=b[r].prototype,d=["group","markerGroup","dataLabelsGroup","navigatorSeries","baseSeries"],p=s.finishedAnimating&&{animation:!1};if(Object.keys&&"data"===Object.keys(t).toString())return this.setData(t.data,e);(h&&h!==r||void 0!==t.zIndex)&&(d.length=0),a(d,function(t){d[t]=s[t],delete s[t]}),t=g(o,p,{index:s.index,pointStart:s.xData[0]},{data:s.options.data},t),s.remove(!1,null,!1);for(i in c)s[i]=void 0;l(s,b[h||r].prototype),a(d,function(t){s[t]=d[t]}),s.init(n,t),s.oldType=r,n.linkSeries(),v(e,!0)&&n.redraw(!1)}}),l(s.prototype,{update:function(t,e){var i=this.chart;t=i.options[this.coll][this.options.index]=g(this.userOptions,t),this.destroy(!0),this.init(i,l(t,{events:void 0})),i.isDirtyBox=!0,v(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,s=this.series,n=s.length;n--;)s[n]&&s[n].remove(!1);h(e.axes,this),h(e[i],this),f(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],a(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,v(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}(t),function(t){var e=t.color,i=t.each,s=t.map,n=t.pick,o=t.Series,r=t.seriesType;r("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(e){var o,r,a=[],h=[],l=this.xAxis,c=this.yAxis,d=c.stacks[this.stackKey],p={},u=this.index,f=c.series,g=f.length,m=n(c.options.reversedStacks,!0)?1:-1;if(e=e||this.points,this.options.stacking){for(r=0;rt&&h>o?(h=Math.max(t,o),c=2*o-h):hs&&c>o?(c=Math.max(s,o),h=2*o-c):c=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA,n=t.borderWidth=a(i.borderWidth,n?0:1),o=t.yAxis,r=t.translatedThreshold=o.getThreshold(i.threshold),l=a(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,p=t.barW=Math.max(d,1+2*n),u=t.pointXOffset=c.offset;e.inverted&&(r-=.5),i.pointPadding&&(p=Math.ceil(p)),h.prototype.translate.apply(t),s(t.points,function(i){var s,n=a(i.yBottom,r),h=999+Math.abs(n),h=Math.min(Math.max(-h,i.plotY),o.len+h),c=i.plotX+u,f=p,g=Math.min(h,n),m=Math.max(h,n)-g;Math.abs(m)l?n-l:r-(s?l:0)),i.barX=c,i.pointWidth=d,i.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-h,t.xAxis.len-c-f/2,m]:[c+f/2,h+o.pos-e.plotTop,m],i.shapeType="rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[c,r,f,0]:[c,g,f,m])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var s,n=this.options,o=this.pointAttrToOptions||{};s=o.stroke||"borderColor";var a=o["stroke-width"]||"borderWidth",h=t&&t.color||this.color,l=t[s]||n[s]||this.color||h,c=t[a]||n[a]||this[a]||0,o=n.dashStyle;return t&&this.zones.length&&(h=t.getZone(),h=t.options.color||h&&h.color||this.color),e&&(t=r(n.states[e],t.options.states&&t.options.states[e]||{}),e=t.brightness,h=t.color||void 0!==e&&i(h).brighten(t.brightness).get()||h,l=t[s]||l,c=t[a]||c,o=t.dashStyle||o),s={fill:h,stroke:l,"stroke-width":c},o&&(s.dashstyle=o),s},drawPoints:function(){var t,e=this,i=this.chart,n=e.options,a=i.renderer,h=n.animationLimit||250;s(e.points,function(s){var l=s.graphic;o(s.plotY)&&null!==s.y?(t=s.shapeArgs,l?l[i.pointCount {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)}})}(t),function(t){var e=t.pick,i=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t,s,n=this.options,o=this.chart,r=2*(n.slicedOffset||0),a=o.plotWidth-2*r,o=o.plotHeight-2*r,h=n.center,h=[e(h[0],"50%"),e(h[1],"50%"),n.size||"100%",n.innerSize||0],l=Math.min(a,o);for(t=0;4>t;++t)s=h[t],n=2>t||2===t&&/%$/.test(s),h[t]=i(s,[a,o,l,h[2]][t])+(n?r:0);return h[3]>h[2]&&(h[3]=h[2]),h}}}(t),function(t){var e=t.addEvent,i=t.defined,s=t.each,n=t.extend,o=t.inArray,r=t.noop,a=t.pick,h=t.Point,l=t.Series,c=t.seriesType,d=t.setAnimation;c("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1,shadow:!1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(s(i,function(t){var i=t.graphic,s=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:n,end:n}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,i=0,s=this.points,n=s.length,o=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?s-=2*Math.PI:s<-Math.PI/2&&(s+=2*Math.PI),r.slicedTranslation={translateX:Math.round(Math.cos(s)*c),translateY:Math.round(Math.sin(s)*c)},i=Math.cos(s)*t[2]/2,n=Math.sin(s)*t[2]/2,r.tooltipPos=[t[0]+.7*i,t[1]+.7*n],r.half=s<-Math.PI/2||s>Math.PI/2?1:0,r.angle=s,e=Math.min(d,r.labelDistance/5),r.labelPos=[t[0]+i+Math.cos(s)*r.labelDistance,t[1]+n+Math.sin(s)*r.labelDistance,t[0]+i+Math.cos(s)*e,t[1]+n+Math.sin(s)*e,t[0]+i,t[1]+n,0>r.labelDistance?"center":r.half?"right":"left",s]},drawGraph:null,drawPoints:function(){var t,e,i,o,r=this,a=r.chart.renderer,h=r.options.shadow;h&&!r.shadowGroup&&(r.shadowGroup=a.g("shadow").add(r.group)),s(r.points,function(s){if(!s.isNull){e=s.graphic,o=s.shapeArgs,t=s.getTranslate();var l=s.shadowGroup;h&&!l&&(l=s.shadowGroup=a.g("shadow").add(r.shadowGroup)),l&&l.attr(t),i=r.pointAttribs(s,s.selected&&"select"),e?e.setRadialReference(r.center).attr(i).animate(n(o,t)):(s.graphic=e=a[s.shapeType](o).setRadialReference(r.center).attr(t).add(r.group),s.visible||e.attr({visibility:"hidden"}),e.attr(i).attr({"stroke-linejoin":"round"}).shadow(h,l)),e.addClass(s.getClassName())}})},searchPoint:r,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:t.CenteredSeriesMixin.getCenter,getSymbol:r},{init:function(){h.prototype.init.apply(this,arguments);var t,i=this;return i.name=a(i.name,"Slice"),t=function(t){i.slice("select"===t.type)},e(i,"select",t),e(i,"unselect",t),i},isValid:function(){return t.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var i=this,n=i.series,r=n.chart,h=n.options.ignoreHiddenPoint;e=a(e,h),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,n.options.data[o(i,n.data)]=i.options,s(["graphic","dataLabel","connector","shadowGroup"],function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&r.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),h&&(n.isDirty=!0),e&&r.redraw())},slice:function(t,e,s){var n=this.series;d(s,n.chart),a(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,n.options.data[o(this,n.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}})}(t),function(t){var e=t.addEvent,i=t.arrayMax,s=t.defined,n=t.each,o=t.extend,r=t.format,a=t.map,h=t.merge,l=t.noop,c=t.pick,d=t.relativeLength,p=t.Series,u=t.seriesTypes,f=t.stableSort;t.distribute=function(t,e){function i(t,e){return t.target-e.target}var s,o,r=!0,h=t,l=[];for(o=0,s=t.length;s--;)o+=t[s].size;if(o>e){for(f(t,function(t,e){return(e.rank||0)-(t.rank||0)}),o=s=0;o<=e;)o+=t[s].size,s++;l=t.splice(s-1,t.length)}for(f(t,i),t=a(t,function(t){return{size:t.size,targets:[t.target]}});r;){for(s=t.length;s--;)r=t[s],o=(Math.min.apply(0,r.targets)+Math.max.apply(0,r.targets))/2,r.pos=Math.min(Math.max(0,o-r.size/2),e-r.size);for(s=t.length,r=!1;s--;)0t[s].pos&&(t[s-1].size+=t[s].size,t[s-1].targets=t[s-1].targets.concat(t[s].targets),t[s-1].pos+t[s-1].size>e&&(t[s-1].pos=e-t[s-1].size),t.splice(s,1),r=!0)}s=0,n(t,function(t){var e=0;n(t.targets,function(){h[s].pos=t.pos+e,e+=h[s].size,s++})}),h.push.apply(h,l),f(h,i)},p.prototype.drawDataLabels=function(){var i,o,a,l,d=this,p=d.options,u=p.dataLabels,f=d.points,g=d.hasRendered||0,m=c(u.defer,!!p.animation),v=d.chart.renderer;(u.enabled||d._hasPointLabels)&&(d.dlProcessOptions&&d.dlProcessOptions(u),l=d.plotGroup("dataLabelsGroup","data-labels",m&&!g?"hidden":"visible",u.zIndex||6),m&&(l.attr({opacity:+g}),g||e(d,"afterAnimate",function(){d.visible&&l.show(!0),l[p.animation?"animate":"attr"]({opacity:1},{duration:200})})),o=u,n(f,function(e){var n,f,g,m,x=e.dataLabel,y=e.connector,b=!x;i=e.dlOptions||e.options&&e.options.dataLabels,(n=c(i&&i.enabled,o.enabled)&&null!==e.y)&&(u=h(o,i),f=e.getLabelConfig(),a=u.format?r(u.format,f):u.formatter.call(f,u),m=u.style,f=u.rotation,m.color=c(u.color,m.color,d.color,"#000000"),"contrast"===m.color&&(e.contrastColor=v.getContrast(e.color||d.color),m.color=u.inside||0>c(e.labelDistance,u.distance)||p.stacking?e.contrastColor:"#000000"),p.cursor&&(m.cursor=p.cursor),g={fill:u.backgroundColor,stroke:u.borderColor,"stroke-width":u.borderWidth,r:u.borderRadius||0,rotation:f,padding:u.padding,zIndex:1},t.objectEach(g,function(t,e){void 0===t&&delete g[e]})),!x||n&&s(a)?n&&s(a)&&(x?g.text=a:(x=e.dataLabel=v[f?"text":"label"](a,0,-9999,u.shape,null,null,u.useHTML,null,"data-label"),x.addClass("highcharts-data-label-color-"+e.colorIndex+" "+(u.className||"")+(u.useHTML?"highcharts-tracker":""))),x.attr(g),x.css(m).shadow(u.shadow),x.added||x.add(l),d.alignDataLabel(e,x,u,null,b)):(e.dataLabel=x=x.destroy(),y&&(e.connector=y.destroy()))}))},p.prototype.alignDataLabel=function(t,e,i,s,n){var r,a=this.chart,h=a.inverted,l=c(t.plotX,-9999),d=c(t.plotY,-9999),p=e.getBBox(),u=i.rotation,f=i.align,g=this.visible&&(t.series.forceDL||a.isInsidePlot(l,Math.round(d),h)||s&&a.isInsidePlot(l,h?s.x+1:s.y+s.height-1,h)),m="justify"===c(i.overflow,"justify");g&&(r=i.style.fontSize,r=a.renderer.fontMetrics(r,e).b,s=o({x:h?this.yAxis.len-d:l,y:Math.round(h?this.xAxis.len-l:d),width:0,height:0},s),o(i,{width:p.width,height:p.height}),u?(m=!1,l=a.renderer.rotCorr(r,u),l={x:s.x+i.x+s.width/2+l.x,y:s.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height},e[n?"attr":"animate"](l).attr({align:f}),d=(u+720)%360,d=180d,"left"===f?l.y-=d?p.height:0:"center"===f?(l.x-=p.width/2,l.y-=p.height/2):"right"===f&&(l.x-=p.width,l.y-=d?0:p.height)):(e.align(i,null,s),l=e.alignAttr),m?t.isLabelJustified=this.justifyDataLabel(e,i,l,p,s,n):c(i.crop,!0)&&(g=a.isInsidePlot(l.x,l.y)&&a.isInsidePlot(l.x+p.width,l.y+p.height)),i.shape&&!u)&&e[n?"attr":"animate"]({anchorX:h?a.plotWidth-t.plotY:t.plotX,anchorY:h?a.plotHeight-t.plotX:t.plotY}),g||(e.attr({y:-9999}),e.placed=!1)},p.prototype.justifyDataLabel=function(t,e,i,s,n,o){var r,a,h=this.chart,l=e.align,c=e.verticalAlign,d=t.box?0:t.padding||0;return r=i.x+d,0>r&&("right"===l?e.align="left":e.x=-r,a=!0),r=i.x+s.width-d,r>h.plotWidth&&("left"===l?e.align="right":e.x=h.plotWidth-r,a=!0),r=i.y+d,0>r&&("bottom"===c?e.verticalAlign="top":e.y=-r,a=!0),r=i.y+s.height-d,r>h.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=h.plotHeight-r,a=!0),a&&(t.placed=!o,t.align(e,null,n)),a},u.pie&&(u.pie.prototype.drawDataLabels=function(){var e,o,r,a,h,l,d,u,f,g,m=this,v=m.data,x=m.chart,y=m.options.dataLabels,b=c(y.connectorPadding,10),k=c(y.connectorWidth,1),M=x.plotWidth,w=x.plotHeight,S=m.center,T=S[2]/2,A=S[1],C=[[],[]],L=[0,0,0,0];m.visible&&(y.enabled||m._hasPointLabels)&&(n(v,function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),p.prototype.drawDataLabels.apply(m),n(v,function(t){t.dataLabel&&t.visible&&(C[t.half].push(t),t.dataLabel._pos=null)}),n(C,function(i,o){var p,v,k,C=i.length,P=[];if(C)for(m.sortByAngle(i,o-.5),0e.bottom-2?p:u,o,e),r._attr={visibility:f,align:h[6]},r._pos={x:d+y.x+({left:b,right:-b}[h[6]]||0),y:u+y.y-10},h.x=d,h.y=u,c(y.crop,!0)&&(a=r.getBBox().width,p=null,d-aM-b&&(p=Math.round(d+a-M+b),L[1]=Math.max(p,L[1])),0>u-l/2?L[0]=Math.max(Math.round(-u+l/2),L[0]):u+l/2>w&&(L[2]=Math.max(Math.round(u+l/2-w),L[2])),r.sideOverflow=p)}),0===i(L)||this.verifyDataLabelOverflow(L))&&(this.placeDataLabels(),k&&n(this.points,function(t){var e;o=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0c(this.translatedThreshold,r.yAxis.len)),d=c(i.inside,!!this.options.stacking);a&&(s=h(a),0>s.y&&(s.height+=s.y,s.y=0),a=s.y+s.height-r.yAxis.len,0t+i||n+re+s||o+athis.pointCount))},pan:function(t,e){var i,s=this,n=s.hoverPoints;n&&h(n,function(t){t.setState()}),h("xy"===e?[1,0]:[1],function(e){e=s[e?"xAxis":"yAxis"][0];var n,o=e.horiz,r=t[o?"chartX":"chartY"],o=o?"mouseDownX":"mouseDownY",a=s[o],h=(e.pointRange||0)/2,l=e.getExtremes(),c=e.toValue(a-r,!0)+h,h=e.toValue(a+e.len-r,!0)-h,d=h=r(i.minWidth,0)&&this.chartHeight>=r(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(e){function i(e,r,h,l){var c;t.objectEach(e,function(t,d){if(!l&&-1