1(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([["vendors-node_modules_highcharts_highstock_js-node_modules_highcharts_modules_accessibility_js"],{44802:function(t,e,i){var o,n,r;r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Accessibility/Utils/HTMLUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){function i(t){if("function"==typeof r.MouseEvent)return new r.MouseEvent(t.type,t);if(n.createEvent){var e=n.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||r,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return o(t.type)}function o(t,e,i){return e=e||{x:0,y:0},"function"==typeof r.MouseEvent?new r.MouseEvent(t,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:i||a,view:r,detail:"click"===t?1:0,screenX:e.x,screenY:e.y,clientX:e.x,clientY:e.y}):n.createEvent&&(i=n.createEvent("MouseEvent")).initMouseEvent?(i.initMouseEvent(t,!0,!0,r,"click"===t?1:0,e.x,e.y,e.x,e.y,!1,!1,!1,!1,0,null),i):{type:t}}var n=t.doc,r=t.win,s=e.css,a=r.EventTarget&&new r.EventTarget||"none";return{addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=" "+e)},cloneMouseEvent:i,cloneTouchEvent:function(t){var e=function(t){for(var e=[],i=0;i<t.length;++i){var o=t.item(i);o&&e.push(o)}return e};return"function"==typeof r.TouchEvent?(e=new r.TouchEvent(t.type,{touches:e(t.touches),targetTouches:e(t.targetTouches),changedTouches:e(t.changedTouches),ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:t.detail,view:t.view}),t.defaultPrevented&&e.preventDefault(),e):((e=i(t)).touches=t.touches,e.changedTouches=t.changedTouches,e.targetTouches=t.targetTouches,e)},escapeStringForHTML:function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(t){return n.getElementById(t)},getFakeMouseEvent:o,getHeadingTagNameForElement:function(t){var e=function(t){return t=parseInt(t.slice(1),10),"h"+Math.min(6,t+1)},i=function(t){var o;t:{for(o=t;o=o.previousSibling;){var n=o.tagName||"";if(/H[1-6]/.test(n)){o=n;break t}}o=""}return o?e(o):(t=t.parentElement)?(o=t.tagName,/H[1-6]/.test(o)?e(o):i(t)):"p"};return i(t)},removeChildNodes:function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp(e,"g"),"")},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){for(var e=t.childNodes.length;e--;)t.appendChild(t.childNodes[e])},simulatedEventTarget:a,stripHTMLTagsFromString:function(t){return"string"==typeof t?t.replace(/<\/?[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){s(t,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}})),e(t,"Accessibility/A11yI18n.js",[t["Core/FormatUtilities.js"],t["Core/Utilities.js"]],(function(t,e){var i,o=t.format,n=e.getNestedProperty,r=e.pick;return function(t){function e(t,e,i){var s=function(t,e){var i=(t=t.slice(e||0)).indexOf("{"),o=t.indexOf("}");if(-1<i&&o>i)return{statement:t.substring(i+1,o),begin:e+i+1,end:e+o}},a=[],h=0;do{var l=s(t,h),c=t.substring(h,l&&l.begin-1);c.length&&a.push({value:c,type:"constant"}),l&&a.push({value:l.statement,type:"statement"}),h=l?l.end+1:h+1}while(l);return a.forEach((function(t){"statement"===t.type&&(t.value=function(t,e){var i=t.indexOf("#each("),o=t.indexOf("#plural("),s=t.indexOf("["),a=t.indexOf("]");if(-1<i){if(a=t.slice(i).indexOf(")")+i,o=t.substring(0,i),s=t.substring(a+1),a=t.substring(i+6,a).split(","),i=Number(a[1]),t="",e=n(a[0],e))for(i=0>(i=isNaN(i)?e.length:i)?e.length+i:Math.min(i,e.length),a=0;a<i;++a)t+=o+e[a]+s;return t.length?t:""}if(-1<o){switch(s=t.slice(o).indexOf(")")+o,o=t.substring(o+8,s).split(","),Number(n(o[0],e))){case 0:t=r(o[4],o[1]);break;case 1:t=r(o[2],o[1]);break;case 2:t=r(o[3],o[1]);break;default:t=o[1]}return e=t?(e=t).trim&&e.trim()||e.replace(/^\s+|\s+$/g,""):""}return-1<s?(o=t.substring(0,s),s=Number(t.substring(s+1,a)),t=void 0,e=n(o,e),!isNaN(s)&&e&&(0>
1s?void 0===(t=e[e.length+s])&&(t=e[0]):void 0===(t=e[s])&&(t=e[e.length-1])),void 0!==t?t:""):"{"+t+"}"}(t.value,e))})),o(a.reduce((function(t,e){return t+e.value}),""),e,i)}function i(t,i){t=t.split(".");for(var o=this.options.lang,n=0;n<t.length;++n)o=o&&o[t[n]];return"string"==typeof o?e(o,i,this):""}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.prototype.langFormat=i),t},t.i18nFormat=e}(i||(i={})),i})),e(t,"Accessibility/Utils/ChartUtilities.js",[t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,i){function o(t){if(t.points&&t.points.length)return(t=h(t.points,(function(t){return!!t.graphic})))&&t.graphic&&t.graphic.element}function n(t){var e=o(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}var r=t.doc,s=e.stripHTMLTagsFromString,a=i.defined,h=i.find,l=i.fireEvent;return{fireEventOnWrappedOrUnwrappedElement:function t(e,i){var o=i.type,n=e.hcEvents;r.createEvent&&(e.dispatchEvent||e.fireEvent)?e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(o,i):n&&n[o]?l(e,o,i):e.element&&t(e.element,i)},getChartTitle:function(t){return s(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}))},getAxisDescription:function(t){return t&&(t.userOptions&&t.userOptions.accessibility&&t.userOptions.accessibility.description||t.axisTitle&&t.axisTitle.textStr||t.options.id||t.categories&&"categories"||t.dateTime&&"Time"||"values")},getAxisRangeDescription:function(t){var e=t.options||{};return e.accessibility&&void 0!==e.accessibility.rangeDescription?e.accessibility.rangeDescription:t.categories?(e=t.chart,t=t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""):!t.dateTime||0!==t.min&&0!==t.dataMin?function(t){var e=t.chart,i=e.options,o=i&&i.accessibility&&i.accessibility.screenReaderSection.axisRangeDateFormat||"",n={min:t.dataMin||t.min||0,max:t.dataMax||t.max||0};return i=function(i){return t.dateTime?e.time.dateFormat(o,n[i]):n[i].toString()},e.langFormat("accessibility.axis.rangeFromTo",{chart:e,axis:t,rangeFrom
1:i("min"),rangeTo:i("max")})}(t):function(t){var e=t.chart,i={},o="Seconds";i.Seconds=((t.dataMax||t.max||0)-(t.dataMin||t.min||0))/1e3,i.Minutes=i.Seconds/60,i.Hours=i.Minutes/60,i.Days=i.Hours/24,["Minutes","Hours","Days"].forEach((function(t){2<i[t]&&(o=t)}));var n=i[o].toFixed("Seconds"!==o&&"Minutes"!==o?1:0);return e.langFormat("accessibility.axis.timeRange"+o,{chart:e,axis:t,range:n.replace(".0","")})}(t)},getPointFromXY:function(t,e,i){for(var o,n=t.length;n--;)if(o=h(t[n].points||[],(function(t){return t.x===e&&t.y===i})))return o},getSeriesFirstPointElement:o,getSeriesFromName:function(t,e){return e?(t.series||[]).filter((function(t){return t.name===e})):t.series},getSeriesA11yElement:n,unhideChartElementFromAT:function t(e,i){i.setAttribute("aria-hidden",!1),i!==e.renderTo&&i.parentNode&&i.parentNode!==r.body&&(Array.prototype.forEach.call(i.parentNode.childNodes,(function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)})),t(e,i.parentNode))},hideSeriesFromAT:function(t){(t=n(t))&&t.setAttribute("aria-hidden",!0)},scrollToPoint:function(t){var e=t.series.xAxis,i=t.series.yAxis,o=e&&e.scrollbar?e:i;if((e=o&&o.scrollbar)&&a(e.to)&&a(e.from)){if(i=e.to-e.from,a(o.dataMin)&&a(o.dataMax)){var n=o.toPixels(o.dataMin),r=o.toPixels(o.dataMax);t=(o.toPixels(t["xAxis"===o.coll?"x":"y"]||0)-n)/(r-n)}else t=0;e.updatePosition(t-i/2,t+i/2),l(e,"changed",{from:e.from,to:e.to,trigger:"scrollbar",DOMEvent:null})}}}})),e(t,"Accessibility/Utils/DOMElementProvider.js",[t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e){var i=t.doc,o=e.removeElement;return function(){function t(){this.elements=[]}return t.prototype.createElement=function(){var t=i.createElement.apply(i,arguments);return this.elements.push(t),t},t.prototype.destroyCreatedElements=function(){this.elements.forEach((function(t){o(t)})),this.elements=[]},t}()})),e(t,"Accessibility/Utils/EventProvider.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){var i=e.addEvent;return function(){function e(){this.eventRemovers=[]}return e.prototype.addEvent=function(){var e=i.apply(t,arguments);return this.eventRemovers.push(e),e},e.prototype.removeAddedEvents=function(){this.eventRemovers.forEach((function(t){return t()})),this.eventRemovers=[]},e}()})),e(t,"Accessibility/AccessibilityComponent.js",[t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/DOMElementProvider.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,i,o,n){var r=t.fireEventOnWrappedOrUnwrappedElement,s=o.getFakeMouseEvent;return t=n.extend,o=function(){function t(){this.proxyProvider=this.keyCodes=this.eventProvider=this.domElementProvider=this.chart=void 0}return t.prototype.initBase=function(t,o){this.chart=t,this.eventProvider=new i,this.domElementProvider=new e,this.proxyProvider=o,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},t.prototype.addEvent=function(t,e,i,o){return this.eventProvider.addEvent(t,e,i,o)},t.prototype.createElement=function(t,e){return this.domElementProvider.createElement(t,e)},t.prototype.fakeClickEvent=function(t){var e=s("click");r(t,e)},t.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},t}(),t(o.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),o})),e(t,"Accessibility/KeyboardNavigationHandler.js",[t["Core/Utilities.js"]],(function(t){var e=t.find;return t=function(){function t(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return t.prototype.run=function(t){var i=t.which||t.keyCode,o=this.response.noHandler,n=e(this.keyCodeMap,(function(t){return-1<t[0].indexOf(i)}));return n?o=n[1].call(this,i,t):9===i&&(o=this.response[t.shiftKey?"prev":"next"]),o},t}()})),e(t,"Accessibility/Components/ContainerComponent.js",[t["Accessibility/AccessibilityComponent.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,
1i,o,n){var r=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=i.unhideChartElementFromAT,a=i.getChartTitle,h=o.doc,l=n.stripHTMLTagsFromString;return function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},i.prototype.handleSVGTitleElement=function(){var t=this.chart,e="highcharts-title-"+t.index,i=l(t.langFormat("accessibility.svgContainerTitle",{chartTitle:a(t)}));if(i.length){var o=this.svgTitleElement=this.svgTitleElement||h.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=i,o.id=e,t.renderTo.insertBefore(o,t.renderTo.firstChild)}},i.prototype.setSVGContainerLabel=function(){var t=this.chart,e=t.langFormat("accessibility.svgContainerLabel",{chartTitle:a(t)});t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)},i.prototype.setGraphicContainerAttrs=function(){var t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:a(t)});e.length&&t.container.setAttribute("aria-label",e)},i.prototype.setRenderToAttrs=function(){var t=this.chart,e="disabled"!==t.options.accessibility.landmarkVerbosity,i=t.langFormat("accessibility.chartContainerLabel",{title:a(t),chart:t});i&&(t.renderTo.setAttribute("role",e?"region":"group"),t.renderTo.setAttribute("aria-label",i))},i.prototype.makeCreditsAccessible=function(){var t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",t.langFormat("accessibility.credits",{creditsStr:l(e.textStr)})),s(t,e.element))},i.prototype.getKeyboardNavigation=function(){var t=this.chart;return new e(t,{keyCodeMap:[],validate:function(){return!0},init:function(){var e=t.accessibility;e&&e.keyboardNavigation.tabindexContainer.focus()}})},i.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},i}(t)})),e(t,"Accessibility/FocusBorder.js",[t["Core/Renderer/SVG/SVGLabel.js"],t["Core/Utilities.js"]],(function(t,e){var i,o=e.addEvent,n=e.pick;return function(e){function i(){var t=this.focusElement,e=this.options.accessibility.keyboardNavigation.focusBorder;t&&(t.removeFocusBorder(),e.enabled&&t.addFocusBorder(e.margin,{stroke:e.style.color,strokeWidth:e.style.lineWidth,r:e.style.borderRadius}))}function r(t,e){var i=this.options.accessibility.keyboardNavigation.focusBorder;(e=e||t.element)&&e.focus&&(e.hcEvents&&e.hcEvents.focusin||o(e,"focusin",(function(){})),e.focus(),i.hideBrowserFocusOutline&&(e.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=t,this.renderFocusBorder()}function s(e,i){this.focusBorder&&this.removeFocusBorder();var o=this.getBBox(),r=n(e,3),s=this.parentGroup,h=this.scaleX||s&&s.scaleX,l=this.scaleY||s&&s.scaleY;h=(h?!l:l)?Math.abs(h||l||1):(Math.abs(h||1)+Math.abs(l||1))/2,o.x+=this.translateX?this.translateX:0,o.y+=this.translateY?this.translateY:0,l=o.x-r;var c=o.y-r,p=o.width+2*r,d=o.height+2*r,u=this instanceof t;if("text"===this.element.nodeName||u){var f=!!this.rotation;if(u)var g={x:f?1:0,y:0};else{var m=g=0;"middle"===this.attr("text-anchor")?g=m=.5:this.rotation?g=.25:m=.75,g={x:g,y:m}}m=+this.attr("x");var y=+this.attr("y");isNaN(m)||(l=m-o.width*g.x-r),isNaN(y)||(c=y-o.height*g.y-r),u&&f&&(u=p,p=d,d=u,isNaN(m)||(l=m-o.height*g.x-r),isNaN(y)||(c=y-o.width*g.y-r))}this.focusBorder=this.renderer.rect(l,c,p,d,parseInt((i&&i.r||0).toString(),10)/h).addClass("highcharts-focus-border").attr({zIndex:99}).add(s),this.renderer.styledMode||this.focusBorder.attr({stroke:i&&i.stroke,"stroke-width":(i&&i.strokeWidth||0)/h}),a(this,e,i),function(t){if(!t.focusBorderDestroyHook){var e=t.destroy;t.destroy=function(){return t.focusBorder&&t.focusBorder.destroy&&t.focu
1sBorder.destroy(),e.apply(t,arguments)},t.focusBorderDestroyHook=e}}(this)}function a(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];t.focusBorderUpdateHooks||(t.focusBorderUpdateHooks={},c.forEach((function(i){var o=t[i+="Setter"]||t._defaultSetter;t.focusBorderUpdateHooks[i]=o,t[i]=function(){var i=o.apply(t,arguments);return t.addFocusBorder.apply(t,e),i}})))}function h(){!function(t){t.focusBorderUpdateHooks&&(Object.keys(t.focusBorderUpdateHooks).forEach((function(e){var i=t.focusBorderUpdateHooks[e];i===t._defaultSetter?delete t[e]:t[e]=i})),delete t.focusBorderUpdateHooks)}(this),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}var l=[],c="x y transform width height r d stroke-width".split(" ");e.compose=function(t,e){-1===l.indexOf(t)&&(l.push(t),(t=t.prototype).renderFocusBorder=i,t.setFocusToElement=r),-1===l.indexOf(e)&&(l.push(e),(e=e.prototype).addFocusBorder=s,e.removeFocusBorder=h)}}(i||(i={})),i})),e(t,"Accessibility/Utils/Announcer.js",[t["Core/Renderer/HTML/AST.js"],t["Accessibility/Utils/DOMElementProvider.js"],t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,i,o,n){var r=i.doc,s=o.addClass,a=o.visuallyHideElement,h=n.attr;return function(){function i(t,i){this.chart=t,this.domElementProvider=new e,this.announceRegion=this.addAnnounceRegion(i)}return i.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},i.prototype.announce=function(e){var i=this;t.setElementHTML(this.announceRegion,e),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout((function(){i.announceRegion.innerHTML=t.emptyHTML,delete i.clearAnnouncementRegionTimer}),1e3)},i.prototype.addAnnounceRegion=function(t){var e=this.chart.announcerContainer||this.createAnnouncerContainer(),i=this.domElementProvider.createElement("div");return h(i,{"aria-hidden":!1,"aria-live":t}),this.chart.styledMode?s(i,"highcharts-visually-hidden"):a(i),e.appendChild(i),i},i.prototype.createAnnouncerContainer=function(){var t=this.chart,e=r.createElement("div");return h(e,{"aria-hidden":!1,class:"highcharts-announcer-container"}),e.style.position="relative",t.renderTo.insertBefore(e,t.renderTo.firstChild),t.announcerContainer=e},i}()})),e(t,"Accessibility/Components/AnnotationsA11y.js",[t["Accessibility/Utils/HTMLUtilities.js"]],(function(t){function e(t){return(t.annotations||[]).reduce((function(t,e){return e.options&&!1!==e.options.visible&&(t=t.concat(e.labels)),t}),[])}function i(t){return t.options&&t.options.accessibility&&t.options.accessibility.description||t.graphic&&t.graphic.text&&t.graphic.text.textStr||""}function o(t){var e=t.options&&t.options.accessibility&&t.options.accessibility.description;if(e)return e;e=t.chart;var o=i(t),n=t.points.filter((function(t){return!!t.graphic})).map((function(t){var e=t.accessibility&&t.accessibility.valueDescription||t.graphic&&t.graphic.element&&t.graphic.element.getAttribute("aria-label")||"";return((t=t&&t.series.name||"")?t+", ":"")+"data point "+e})).filter((function(t){return!!t})),r=n.length,s="accessibility.screenReaderSection.annotations.description"+(1<r?"MultiplePoints":r?"SinglePoint":"NoPoints");return t={annotationText:o,annotation:t,numPoints:r,annotationPoint:n[0],additionalAnnotationPoints:n.slice(1)},e.langFormat(s,t)}function n(t){return e(t).map((function(t){return(t=r(s(o(t))))?"<li>".concat(t,"</li>"):""}))}var r=t.escapeStringForHTML,s=t.stripHTMLTagsFromString;return{getAnnotationsInfoHTML:function(t){var e=t.annotations;return e&&e.length?(t=n(t),'<ul style="list-style-type: none">'.concat(t.join(" "),"</ul>")):""},getAnnotationLabelDescription:o,getAnnotationListItems:n,getPointAnnotationTexts:function(t){var o=e(t.series.chart).filter((function(e){return-1<e.points.indexOf(t)}));return o.length?o.map((function(t){return"".concat(i(t))})):[]}}})),e(t,"Accessibility/Components/InfoRegionsComponent.js",[t["Accessibility/A11yI18n.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/Announcer.js"],t["Accessibility/Components/AnnotationsA11y.js"],t["Core/Renderer/HTML/AST.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Core/FormatUtilities.js"],t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,
1i,o,n,r,s,a,h,l){var c=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),p=o.getAnnotationsInfoHTML,d=r.getAxisDescription,u=r.getAxisRangeDescription,f=r.getChartTitle,g=r.unhideChartElementFromAT,m=s.format,y=a.doc,v=h.addClass,x=h.getElement,b=h.getHeadingTagNameForElement,S=h.stripHTMLTagsFromString,C=h.visuallyHideElement,w=l.attr,A=l.pick;return function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.announcer=void 0,t.screenReaderSections={},t}return c(o,e),o.prototype.init=function(){var t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"aftergetTableAST",(function(t){e.onDataTableCreated(t)})),this.addEvent(t,"afterViewData",(function(t){t.wasHidden&&(e.dataTableDiv=t.element,setTimeout((function(){e.focusDataTable()}),300))})),this.announcer=new i(t,"assertive")},o.prototype.initRegionsDefinitions=function(){var t=this;this.screenReaderSections={before:{element:null,buildContent:function(e){var i=e.options.accessibility.screenReaderSection.beforeChartFormatter;return i?i(e):t.defaultBeforeChartFormatter(e)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),void 0!==t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(e){var i=e.options.accessibility.screenReaderSection.afterChartFormatter;return i?i(e):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},o.prototype.onChartRender=function(){var t=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach((function(e){t.updateScreenReaderSection(e)}))},o.prototype.getLinkedDescriptionElement=function(){var t=this.chart.options.accessibility.linkedDescription;if(t){if("string"!=typeof t)return t;if(t=m(t,this.chart),1===(t=y.querySelectorAll(t)).length)return t[0]}},o.prototype.setLinkedDescriptionAttrs=function(){var t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),v(t,"highcharts-linked-description"))},o.prototype.updateScreenReaderSection=function(t){var e=this.chart,i=this.screenReaderSections[t],o=i.buildContent(e),r=i.element=i.element||this.createElement("div"),s=r.firstChild||this.createElement("div");o?(this.setScreenReaderSectionAttribs(r,t),n.setElementHTML(s,o),r.appendChild(s),i.insertIntoDOM(r,e),e.styledMode?v(s,"highcharts-visually-hidden"):C(s),g(e,s),i.afterInserted&&i.afterInserted()):(r.parentNode&&r.parentNode.removeChild(r),i.element=null)},o.prototype.setScreenReaderSectionAttribs=function(t,e){var i=this.chart,o=i.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:i,chartTitle:f(i)});e="highcharts-screen-reader-region-".concat(e,"-").concat(i.index),w(t,{id:e,"aria-label":o||void 0}),t.style.position="relative",o&&t.setAttribute("role","all"===i.options.accessibility.landmarkVerbosity?"region":"group")},o.prototype.defaultBeforeChartFormatter=function(){var e=this.chart,i=e.options.accessibility.screenReaderSection.beforeChartFormat;if(!i)return"";var o=this.getAxesDescription(),n=e.sonify&&e.options.sonification&&e.options.sonification.enabled,r="highcharts-a11y-sonify-data-btn-"+e.index,s="hc-linkto-highcharts-data-table-"+e.index,a=p(e),h=e.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:e});return o={headingTagName:b(e.renderTo),chartTitle:f(e),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:o.xAxis,yAxisDescription:o.yAxis,playAsSoundButton:n?this.get
1SonifyButtonText(r):"",viewTableButton:e.getCSV?this.getDataTableButtonText(s):"",annotationsTitle:a?h:"",annotationsList:a},e=t.i18nFormat(i,o,e),this.dataTableButtonId=s,this.sonifyButtonId=r,e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},o.prototype.defaultAfterChartFormatter=function(){var e=this.chart,i=e.options.accessibility.screenReaderSection.afterChartFormat;if(!i)return"";var o={endOfChartMarker:this.getEndOfChartMarkerText()};return t.i18nFormat(i,o,e).replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},o.prototype.getLinkedDescription=function(){var t=this.linkedDescriptionElement;return S(t&&t.innerHTML||"")},o.prototype.getLongdescText=function(){var t=this.chart.options,e=t.caption;e=e&&e.text;var i=this.getLinkedDescription();return t.accessibility.description||i||e||""},o.prototype.getTypeDescriptionText=function(){var t=this.chart;return t.types?t.options.accessibility.typeDescription||function(t,e){var i=e[0],o=t.series&&t.series[0]||{};if(o={numSeries:t.series.length,numPoints:o.points&&o.points.length,chart:t,mapTitle:t.mapView&&t.mapView.geoMap&&t.mapView.geoMap.title},!i)return t.langFormat("accessibility.chartTypes.emptyChart",o);if("map"===i)return o.mapTitle?t.langFormat("accessibility.chartTypes.mapTypeDescription",o):t.langFormat("accessibility.chartTypes.unknownMap",o);if(1<t.types.length)return t.langFormat("accessibility.chartTypes.combinationChart",o);e=e[0],i=t.langFormat("accessibility.seriesTypeDescriptions."+e,o);var n=t.series&&2>t.series.length?"Single":"Multiple";return(t.langFormat("accessibility.chartTypes."+e+n,o)||t.langFormat("accessibility.chartTypes.default"+n,o))+(i?" "+i:"")}(t,t.types):""},o.prototype.getDataTableButtonText=function(t){var e=this.chart;return'<button id="'+t+'">'+(e=e.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:e,chartTitle:f(e)}))+"</button>"},o.prototype.getSonifyButtonText=function(t){var e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'<button id="'+t+'">'+(e=e.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:e,chartTitle:f(e)}))+"</button>"},o.prototype.getSubtitleText=function(){var t=this.chart.options.subtitle;return S(t&&t.text||"")},o.prototype.getEndOfChartMarkerText=function(){var t=this.chart,e=t.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:t});return'<div id="highcharts-end-of-chart-marker-'+t.index+'">'+e+"</div>"},o.prototype.onDataTableCreated=function(t){var e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var i=t.tree.attributes||{};i.tabindex=-1,i.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=i}},o.prototype.focusDataTable=function(){var t=this.dataTableDiv;(t=t&&t.getElementsByTagName("table")[0])&&t.focus&&t.focus()},o.prototype.initSonifyButton=function(t){var e=this,i=this.sonifyButton=x(t),o=this.chart,n=function(t){i&&(i.setAttribute("aria-hidden","true"),i.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation(),t=o.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:o}),e.announcer.announce(t),setTimeout((function(){i&&(i.removeAttribute("aria-hidden"),i.removeAttribute("aria-label")),o.sonify&&o.sonify()}),1e3)};i&&o&&(i.setAttribute("tabindex",-1),i.onclick=function(t){(o.options.accessibility&&o.options.accessibility.screenReaderSection.onPlayAsSoundClick||n).call(this,t,o)})},o.prototype.initDataTableButton=function(t){var e=this.viewDataTableButton=x(t),i=this.chart;t=t.replace("hc-linkto-",""),e&&(w(e,{tabindex:-1,"aria-expanded":!!x(t)}),e.onclick=i.options.accessibility.screenReaderSection.onViewDataTableClick||function(){i.viewData()})},o.prototype.getAxesDescription=function(){var t=this.chart,e=function(e,i){return 1<(e=t[e]).length||e[0]&&A(e[0].options.accessibility&&e[0].options.accessibility.enabled,i)},i=!!t.types&&0>t.types.indexOf("map")&&0>t.types.indexOf("treemap")&&0>t.types.indexOf("tilemap"),o=!!t.hasCartesianSeries,n=e("xAxis",!t.angular&&o&&i);return e=e("yAxis",o&&i),i={},n&&(i.xAxis=this.getAxisDescriptionText("xAxis")),e&&(i.yAxis=this.getAxisDescriptionText("yAxis")),i},o.prototype.getAxisDescriptionText=function(t){var e=this.chart,i=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(1<i.length?"Plural":"Singular"),{chart:e,names:i.map((function(t){return d(t)})),ranges:i.map((function(t){return u(t)})),numAxes:i.length})},o.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},o}(e)})),e(t,"Accessibility/Components/MenuComponent.js",[t["Core/Chart/Chart.js"],t["Core/Utilities.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,
1i,o,n,r){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=e.attr,h=n.getChartTitle,l=n.unhideChartElementFromAT,c=r.getFakeMouseEvent;return e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(){var t=this.chart,e=this;this.addEvent(t,"exportMenuShown",(function(){e.onMenuShown()})),this.addEvent(t,"exportMenuHidden",(function(){e.onMenuHidden()})),this.createProxyGroup()},e.prototype.onMenuHidden=function(){var t=this.chart.exportContextMenu;t&&t.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},e.prototype.onMenuShown=function(){var t=this.chart,e=t.exportContextMenu;e&&(this.addAccessibleContextMenuAttribs(),l(t,e)),this.setExportButtonExpandedState("true")},e.prototype.setExportButtonExpandedState=function(t){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",t)},e.prototype.onChartRender=function(){var t=this.chart,e=t.focusElement,i=t.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&e&&e===t.exportingGroup&&(e.focusBorder?t.setFocusToElement(e,this.exportButtonProxy.buttonElement):i&&i.keyboardNavigation.tabindexContainer.focus())},e.prototype.proxyMenuButton=function(){var t=this.chart,e=this.proxyProvider,i=t.exportSVGElements&&t.exportSVGElements[0],o=t.options.exporting,n=t.exportSVGElements&&t.exportSVGElements[0];o&&!1!==o.enabled&&o.accessibility&&o.accessibility.enabled&&n&&n.element&&i&&(this.exportButtonProxy=e.addProxyElement("chartMenu",{click:i},{"aria-label":t.langFormat("accessibility.exporting.menuButtonLabel",{chart:t,chartTitle:h(t)}),"aria-expanded":!1,title:t.options.lang.contextButtonTitle||null}))},e.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},e.prototype.addAccessibleContextMenuAttribs=function(){var t=this.chart,e=t.exportDivElements;e&&e.length&&(e.forEach((function(t){t&&("LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1))})),(e=e[0]&&e[0].parentNode)&&a(e,{"aria-hidden":void 0,"aria-label":t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t}),role:"list"}))},e.prototype.getKeyboardNavigation=function(){var t=this.keyCodes,e=this.chart,i=this;return new o(e,{keyCodeMap:[[[t.left,t.up],function(){return i.onKbdPrevious(this)}],[[t.right,t.down],function(){return i.onKbdNext(this)}],[[t.enter,t.space],function(){return i.onKbdClick(this)}]],validate:function(){return!!e.exporting&&!1!==e.options.exporting.enabled&&!1!==e.options.exporting.accessibility.enabled},init:function(){var t=i.exportButtonProxy,o=i.chart.exportingGroup;t&&o&&e.setFocusToElement(o,t.buttonElement)},terminate:function(){e.hideExportMenu()}})},e.prototype.onKbdPrevious=function(t){var e=this.chart,i=e.options.accessibility;t=t.response;for(var o=e.highlightedExportItemIx||0;o--;)if(e.highlightExportItem(o))return t.success;return i.keyboardNavigation.wrapAround?(e.highlightLastExportItem(),t.success):t.prev},e.prototype.onKbdNext=function(t){var e=this.chart,i=e.options.accessibility;t=t.response;for(var o=(e.highlightedExportItemIx||0)+1;o<e.exportDivElements.length;++o)if(e.highlightExportItem(o))return t.success;return i.keyboardNavigation.wrapAround?(e.highlightExportItem(0),t.success):t.next},e.prototype.onKbdClick=function(t){var e=this.chart,i=e.exportDivElements[e.highlightedExportItemIx],o=(e.exportSVGElements&&e.exportSVGElements[0]).element;return e.openMenu?this.fakeClickEvent(i):(this.fakeClickEvent(o),e.highlightExportItem(0)),t.response.success},e}(i),function(e){function i(){var t=this.exportSVGElements&&this.exportSVGElements[0];t&&(t=t.element).onclick&&t.onclick(c("click"))}function o(){var t=this.exportDivElements;t&&this.exportContextMenu&&this.openMenu&&(t.forEach((function(t){t&&"highcharts-menu-item"===t.className&&t.onmouseout&&t.onmouseout(c("mouseout"))})),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function n(t){var e=this.exportDivElements&&this.exportDivElements[t],i=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(e&&"LI"===e.tagName&&(!e.children||!e.children.length)){var o=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return e.focus&&o&&e.focus(),i&&i.onmouseout&&i.onmouseout(c("mouseout")),e.onmouseover&&e.onmouseover(c("mouseover")),this.highlightedExportItemIx=t,!0}return!1}function r(){if(this.exportDivElements)for(var t=this.exportDivElements.length;t--;)if(this.highlightExportItem(t))return!0;return!1}var s=[];e.compose=function(e){-1===s.indexOf(e)&&(s.push(e),(e=t.prototype).hideExportMenu=o,e.highlightExportItem=n,e.highlightLastExportItem=r,e.showExportMenu=i)}}(e||(e={})),e})),e(t,"Accessibility/KeyboardNavigation.js",[t["Core/Globals.js"],t["Accessibility/Components/MenuComponent.js"],t["Core/Utilities.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,
1i,o,n){var r=t.doc,s=t.win,a=i.addEvent,h=i.fireEvent,l=n.getElement,c=n.simulatedEventTarget;return i=function(){function t(t,e){this.components=this.chart=void 0,this.currentModuleIx=NaN,this.exitAnchor=this.eventProvider=void 0,this.modules=[],this.tabindexContainer=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=this,n=this.eventProvider=new o;this.chart=t,this.components=e,this.modules=[],this.currentModuleIx=0,this.update(),n.addEvent(this.tabindexContainer,"keydown",(function(t){return i.onKeydown(t)})),n.addEvent(this.tabindexContainer,"focus",(function(t){return i.onFocus(t)})),["mouseup","touchend"].forEach((function(t){return n.addEvent(r,t,(function(t){return i.onMouseUp(t)}))})),["mousedown","touchstart"].forEach((function(e){return n.addEvent(t.renderTo,e,(function(){i.isClickingChart=!0}))})),n.addEvent(t.renderTo,"mouseover",(function(){i.pointerIsOverChart=!0})),n.addEvent(t.renderTo,"mouseout",(function(){i.pointerIsOverChart=!1}))},t.prototype.update=function(t){var e=this.chart.options.accessibility;e=e&&e.keyboardNavigation;var i=this.components;this.updateContainerTabindex(),e&&e.enabled&&t&&t.length?(this.modules=t.reduce((function(t,e){return e=i[e].getKeyboardNavigation(),t.concat(e)}),[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},t.prototype.updateExitAnchor=function(){var t="highcharts-end-of-chart-marker-".concat(this.chart.index);t=l(t),this.removeExitAnchor(),t?(this.makeElementAnExitAnchor(t),this.exitAnchor=t):this.createExitAnchor()},t.prototype.move=function(t){var e=this.modules&&this.modules[this.currentModuleIx];if(e&&e.terminate&&e.terminate(t),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=t,e=this.modules&&this.modules[this.currentModuleIx]){if(e.validate&&!e.validate())return this.move(t);if(e.init)return e.init(t),!0}return this.currentModuleIx=0,this.exiting=!0,0<t?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},t.prototype.onFocus=function(t){var e=this.chart;t=t.relatedTarget&&e.container.contains(t.relatedTarget),this.exiting||this.tabbingInBackwards||this.isClickingChart||t||null!==(t=this.getFirstValidModuleIx())&&(this.currentModuleIx=t,this.modules[t].init(1)),this.exiting=!1},t.prototype.onMouseUp=function(t){if(delete this.isClickingChart,!this.keyboardReset&&t.relatedTarget!==c){if(t=this.chart,!this.pointerIsOverChart){var e=this.modules&&this.modules[this.currentModuleIx||0];e&&e.terminate&&e.terminate(),this.currentModuleIx=0}t.focusElement&&(t.focusElement.removeFocusBorder(),delete t.focusElement),this.keyboardReset=!0}},t.prototype.onKeydown=function(t){t=t||s.event;var e,i=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.exiting=this.keyboardReset=!1,i){var o=i.run(t);o===i.response.success?e=!0:o===i.response.prev?e=this.move(-1):o===i.response.next&&(e=this.move(1)),e&&(t.preventDefault(),t.stopPropagation())}},t.prototype.updateContainerTabindex=function(){var t=this.chart.options.accessibility;t=!((t=t&&t.keyboardNavigation)&&!1===t.enabled);var e=this.chart,i=e.container;e.renderTo.hasAttribute("tabindex")&&(i.removeAttribute("tabindex"),i=e.renderTo),this.tabindexContainer=i;var o=i.getAttribute("tabindex");t&&!o?i.setAttribute("tabindex","0"):t||e.container.removeAttribute("tabindex")},t.prototype.createExitAnchor=function(){var t=this.chart,e=this.exitAnchor=r.createElement("div");t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)},t.prototype.makeElementAnExitAnchor=function(t){var e=this.tabindexContainer.getAttribute("tabindex")||0;t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex",e),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)},t.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},t.prototype.addExitAnchorEventsToEl=function(t){var e=this.chart,i=this;this.eventProvider.addEvent(t,"focus",(function(t){var o=!((t=t||s.event).relatedTarget&&e.container.contains(t.relatedTarget)||i.exiting);e.focusElement&&delete e.focusElement,o?(i.tabbingInBackwards=!0,i.tabindexContainer.focus(),delete i.tabbingInBackwards,t.preventDefault(),i.modules&&i.modules.length&&(i.currentModuleIx=i.modules.length-1,(t=i.modules[i.currentModuleIx])&&t.validate&&!t.validate()?i.move(-1):t&&t.init(-1))):i.exiting=!1}))},t.prototype.getFirstValidModuleIx=function(){for(var t=this.modules.length,e=0;e<t;++e){var i=this.modules[e];if(!i.validate||i.validate())return e}return null},t.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},t}(),function(i){function o(){var t=this;h(this,"dismissPopupContent",{},(function(){t.tooltip&&t.tooltip.hide(0),t.hideExportMenu()}))}function n(e){27===(e.which||e.keyCode)&&t.charts&&t.charts.forEac
1h((function(t){t&&t.dismissPopupContent&&t.dismissPopupContent()}))}var s=[];i.compose=function(t){return e.compose(t),-1===s.indexOf(t)&&(s.push(t),t.prototype.dismissPopupContent=o),-1===s.indexOf(r)&&(s.push(r),a(r,"keydown",n)),t}}(i||(i={})),i})),e(t,"Accessibility/Components/LegendComponent.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Legend/Legend.js"],t["Core/Utilities.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,i,o,n,r,s,a){function h(t){var e=t.legend&&t.legend.allItems,i=t.options.legend.accessibility||{};return t=t.colorAxis&&t.colorAxis.some((function(t){return!t.dataClasses||!t.dataClasses.length})),!(!e||!e.length||t||!1===i.enabled)}function l(t,e){var i=e.legendItem||{};e.setState(t?"hover":"",!0),e=0;for(var o=["group","label","symbol"];e<o.length;e++){var n=i[o[e]];(n=n&&n.element||n)&&f(n,t?"mouseover":"mouseout")}}var c=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),p=t.animObject,d=e.doc,u=o.addEvent,f=o.fireEvent,g=o.isNumber,m=o.pick,y=o.syncTimeout,v=s.getChartTitle,x=a.stripHTMLTagsFromString,b=a.addClass,S=a.removeClass;return t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.highlightedLegendItemIx=NaN,e.proxyGroup=null,e}return c(e,t),e.prototype.init=function(){var t=this;this.recreateProxies(),this.addEvent(i,"afterScroll",(function(){this.chart===t.chart&&(t.proxyProvider.updateGroupProxyElementPositions("legend"),t.updateLegendItemProxyVisibility(),-1<t.highlightedLegendItemIx&&this.chart.highlightLegendItem(t.highlightedLegendItemIx))})),this.addEvent(i,"afterPositionItem",(function(e){this.chart===t.chart&&this.chart.renderer&&t.updateProxyPositionForItem(e.item)}
1)),this.addEvent(i,"afterRender",(function(){this.chart===t.chart&&this.chart.renderer&&t.recreateProxies()&&y((function(){return t.proxyProvider.updateGroupProxyElementPositions("legend")}),p(m(this.chart.renderer.globalAnimation,!0)).duration)}))},e.prototype.updateLegendItemProxyVisibility=function(){var t,e=this.chart,i=e.legend,o=i.currentPage||1,n=i.clipHeight||0;(i.allItems||[]).forEach((function(r){if(r.a11yProxyElement){var s=i.pages&&i.pages.length,a=r.a11yProxyElement.element,h=!1;t=r.legendItem||{},s&&(r=t.pageIx||0,h=(s=t.y||0)+(h=t.label?Math.round(t.label.getBBox().height):0)-i.pages[r]>n||r!==o-1),h?e.styledMode?b(a,"highcharts-a11y-invisible"):a.style.visibility="hidden":(S(a,"highcharts-a11y-invisible"),a.style.visibility="")}}))},e.prototype.onChartRender=function(){h(this.chart)||this.removeProxies()},e.prototype.highlightAdjacentLegendPage=function(t){var e=this.chart,i=e.legend;t=(i.currentPage||1)+t;var o=i.pages||[];if(0<t&&t<=o.length)for(var n=o=0,r=i.allItems;n<r.length;n++)((r[n].legendItem||{}).pageIx||0)+1===t&&(i=e.highlightLegendItem(o))&&(this.highlightedLegendItemIx=o),++o},e.prototype.updateProxyPositionForItem=function(t){t.a11yProxyElement&&t.a11yProxyElement.refreshPosition()},e.prototype.recreateProxies=function(){var t=d.activeElement,e=this.proxyGroup;return t=t&&e&&e.contains(t),this.removeProxies(),!!h(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),t&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},e.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},e.prototype.updateLegendTitle=function(){var t=this.chart,e=x((t.legend&&t.legend.options.title&&t.legend.options.title.text||"").replace(/<br ?\/?>/g," "));t=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:v(t)}),this.proxyProvider.updateGroupAttrs("legend",{"aria-label":t})},e.prototype.addLegendProxyGroup=function(){this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:"all"===this.chart.options.accessibility.landmarkVerbosity?"region":null})},e.prototype.proxyLegendItems=function(){var t,e=this;((this.chart.legend||{}).allItems||[]).forEach((function(i){(t=i.legendItem||{}).label&&t.label.element&&e.proxyLegendItem(i)}))},e.prototype.proxyLegendItem=function(t){var e=t.legendItem||{};if(e.label&&e.group){var i=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:x(t.name),item:t});t.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:e.label,visual:(e.group.div?e.label:e.group).element},{tabindex:-1,"aria-pressed":t.visible,"aria-label":i})}},e.prototype.getKeyboardNavigation=function(){var t=this.keyCodes,e=this,i=this.chart;return new r(i,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onKbdClick(this)}],[[t.pageDown,t.pageUp],function(i){return e.highlightAdjacentLegendPage(i===t.pageDown?1:-1),this.response.success}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),e.highlightedLegendItemIx=0},terminate:function(){e.highlightedLegendItemIx=-1,i.legend.allItems.forEach((function(t){return l(!1,t)}))}})},e.prototype.onKbdArrowKey=function(t,e){var i=this.keyCodes,o=t.response,n=this.chart,r=n.options.accessibility,s=n.legend.allItems.length;return e=e===i.left||e===i.up?-1:1,n.highlightLegendItem(this.highlightedLegendItemIx+e)?(this.highlightedLegendItemIx+=e,o.success):(1<s&&r.keyboardNavigation.wrapAround&&t.init(e),o.success)},e.prototype.onKbdClick=function(t){var e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&e.a11yProxyElement.click(),t.response.success},e.prototype.shouldHaveLegendNavigation=function(){if(!h(this.chart))return!1;var t=this.chart,e=(t.options.legend||{}).accessibility||{};return!!(t.legend.display&&e.keyboardNavigation&&e.keyboardNavigation.enabled)},e}(n),function(t){function e(t){var e=this.legend.allItems,i=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,o=e[t],n=o.legendItem||{};return!!o&&(g(i)&&e[i]&&l(!1,e[i]),t=((e=this.legend).allItems[t].legendItem||{}).pageIx,i=e.currentPage,void 0!==t&&t+1!==i&&e.scroll(1+t-i),n=n.label,t=o.a11yProxyElement&&o.a11yProxyElement.buttonElement,n&&n.element&&t&&this.setFocusToElement(n,t),l(!0,o),!0)}function i(t){var e=t.item;this.chart.options.accessibility.enabled&&e&&e.a11yProxyElement&&e.a11yProxyElement.buttonElement.setAttribute("aria-pressed",t.visible?"true":"false")}var o=[];t.compose=function(t,n){-1===o.indexOf(t)&&(o.push(t),t.prototype.highlightLegendItem=e),-1===o.indexOf(n)&&(o.push(n),u(n,"afterColorizeItem",i))}}(t||(t={})),t})),e(t,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[t["Accessibility/Components/AnnotationsA11y.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Core/FormatUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,
1i,o,n){function r(t){var e=t.index;return t.series&&t.series.data&&A(e)&&S(t.series.data,(function(t){return!!(t&&void 0!==t.index&&t.index>e&&t.graphic&&t.graphic.element)}))||null}function s(t){var e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==e&&t.points&&t.points.length>=e)}function a(t,e){var i=t.series,o=i.chart;t=o.options.accessibility.point||{};var n=i.options.accessibility&&i.options.accessibility.point||{};return i=i.tooltipOptions||{},o=o.options.lang,C(e)?v(e,n.valueDecimals||t.valueDecimals||i.valueDecimals||-1,o.decimalPoint,o.accessibility.thousandsSep||o.thousandsSep):e}function h(t,e){return t.chart.langFormat("accessibility.series."+e+"Description",{name:u(t[e]),series:t})}function l(t){var e=t.series,i=1<e.chart.series.length||e.options.name,o=t.series,n=o.chart,r=o.options.accessibility;if(r=r&&r.point&&r.point.valueDescriptionFormat||n.options.accessibility.point.valueDescriptionFormat,o=w(o.xAxis&&o.xAxis.options.accessibility&&o.xAxis.options.accessibility.enabled,!n.angular)){var s=t.series,h=s.chart,l=s.options.accessibility&&s.options.accessibility.point||{},c=h.options.accessibility.point||{};(s=s.xAxis&&s.xAxis.dateTime)?(s=s.getXDateFormat(t.x||0,h.options.tooltip.dateTimeLabelFormats),l=l.dateFormatter&&l.dateFormatter(t)||c.dateFormatter&&c.dateFormatter(t)||l.dateFormat||c.dateFormat||s,h=h.time.dateFormat(l,t.x||0,void 0)):h=void 0,l=(t.series.xAxis||{}).categories&&A(t.category)&&(""+t.category).replace("<br/>"," "),c=A(t.id)&&0>(""+t.id).indexOf("highcharts-"),s="x, "+t.x,h=t.name||h||l||(c?t.id:s)}else h="";l=A(t.index)?t.index+1:"";var p=(c=t.series).chart.options.accessibility.point||{},u=c.chart.options.accessibility&&c.chart.options.accessibility.point||{},f=c.tooltipOptions||{};return s=u.valuePrefix||p.valuePrefix||f.valuePrefix||"",p=u.valueSuffix||p.valueSuffix||f.valueSuffix||"",u=a(t,t[void 0!==t.value?"value":"y"]),c=t.isNull?c.chart.langFormat("accessibility.series.nullPointValue",{point:t}):c.pointArrayMap?function(t,e,i){var o=e||"",n=i||"";return t.series.pointArrayMap.reduce((function(e,i){e+=e.length?", ":"";var r=a(t,w(t[i],t.options[i]));return e+(i+": ")+o+r+n}),"")}(t,s,p):s+u+p,n=y(r,{point:t,index:l,xDescription:h,value:c,separator:o?", ":""},n),r=(r=t.options&&t.options.accessibility&&t.options.accessibility.description)?" "+r:"",e=i?" "+e.name+".":"",i=t.series.chart,h={point:t,annotations:o=d(t)},i=o.length?i.langFormat("accessibility.series.pointAnnotationsDescription",h):"",t.accessibility=t.accessibility||{},t.accessibility.valueDescription=n,n+r+e+(i?" "+i:"")}function c(t){var e=function(t){var e=t.options.accessibility||{};return!s(t)&&!e.exposeAsGroupOnly}(t),i=function(t){var e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!t.points||!(t.points.length<e.pointNavigationEnabledThreshold||!1===e.pointNavigationEnabledThreshold))}(t),o=t.chart.options.accessibility.point.describeNull;(e||i)&&t.points.forEach((function(i){var n;if(!(n=i.graphic&&i.graphic.element)){var s=i.series;if(n=s&&s.chart,s=s&&s.is("sunburst"),n=n&&n.options.accessibility.point.describeNull,n=i.isNull&&!s&&n){s=i.series;var a=r(i);s=(n=a&&a.graphic)?n.parentGroup:s.graph||s.group,a=a?{x:w(i.plotX,a.plotX,0),y:w(i.plotY,a.plotY,0)}:{x:w(i.plotX,0),y:w(i.plotY,0)},(a=i.series.chart.renderer.rect(a.x,a.y,1,1)).attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),s&&s.element?(i.graphic=a,i.hasMockGraphic=!0,a.add(s),s.element.insertBefore(a.element,n?n.element:null),n=a.element):n=void 0}}s=i.options&&i.options.accessibility&&!1===i.options.accessibility.enabled,n&&(i.isNull&&!o?n.setAttribute("aria-hidden",!0):(n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),e&&!s?(s=(a=i.series).chart.options.accessibility.point||{},a=a.options.accessibility&&a.options.accessibility.point||{},i=b(a.descriptionFormatter&&a.descriptionFormatter(i)||s.descriptionFormatter&&s.descriptionFormatter(i)||l(i)),n.setAttribute("role","img"),n.setAttribute("aria-label",i)):n.setAttribute("aria-hidden",!0)))}))}function p(t){var e=t.chart,i=e.types||[],o=function(t){var e=(t.options.accessibility||{}).description;return e&&t.chart.langFormat("accessibility.series.description",{description:e,series:t})||""}(t),n=function(i){return e[i]&&1<e[i].length&&t[i]},r=t.index+1,s=h(t,"xAxis"),a=h(t,"yAxis"),l={seriesNumber:r,series:t,chart:e};return i=1<i.length?"Combination":"",l=e.langFormat("accessibility.series.summary."+t.type+i,l)||e.langFormat("accessibility.series.summary.default"+i,l),n=(n("yAxis")?" "+a+".":"")+(n("xAxis")?" "+s+".":""),y(e.options.accessibility.series.descriptionFormat||"",{seriesDescription:l,authorDescription:o?" "+o:"",axisDescription:n,series:t,chart:e,seriesNumber:r},void 0)}var d=t.getPointAnnotationTexts,u=e.getAxisDescription,f=e.getSeriesFirstPointElement,g=e.getSeriesA11yElement,m=e.unhideChartElementFromAT,y=i.format,v=i.numberFormat,x=o.reverseChildNodes,b=o.str
1ipHTMLTagsFromString,S=n.find,C=n.isNumber,w=n.pick,A=n.defined;return{defaultPointDescriptionFormatter:l,defaultSeriesDescriptionFormatter:p,describeSeries:function(t){var e=t.chart,i=f(t),o=g(t),n=e.is3d&&e.is3d();if(o){o.lastChild!==i||n||x(o),c(t),m(e,o),e=(n=t.chart).options.chart,i=1<n.series.length,n=n.options.accessibility.series.describeSingleSeries;var r=(t.options.accessibility||{}).exposeAsGroupOnly;e.options3d&&e.options3d.enabled&&i||!(i||n||r||s(t))?o.removeAttribute("aria-label"):(i=(e=t.chart.options.accessibility).landmarkVerbosity,(t.options.accessibility||{}).exposeAsGroupOnly?o.setAttribute("role","img"):"all"===i?o.setAttribute("role","region"):o.setAttribute("role","group"),o.setAttribute("tabindex","-1"),t.chart.styledMode||(o.style.outline="none"),o.setAttribute("aria-label",b(e.series.descriptionFormatter&&e.series.descriptionFormatter(t)||p(t))))}}}})),e(t,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/Utils/Announcer.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],(function(t,e,i,o,n,r){var s=e.addEvent,a=e.defined,h=o.getChartTitle,l=r.defaultPointDescriptionFormatter,c=r.defaultSeriesDescriptionFormatter;return e=function(){function e(t){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=t}return e.prototype.init=function(){var t=this.chart,e=t.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new n,this.announcer=new i(t,e),this.addEventListeners()},e.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},e.prototype.addEventListeners=function(){var t=this,e=this.chart,i=this.eventProvider;i.addEvent(e,"afterApplyDrilldown",(function(){t.lastAnnouncementTime=0})),i.addEvent(e,"afterAddSeries",(function(e){t.onSeriesAdded(e.series)})),i.addEvent(e,"redraw",(function(){t.announceDirtyData()}))},e.prototype.onSeriesAdded=function(t){this.chart.options.accessibility.announceNewData.enabled&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=a(this.dirty.newSeries)?void 0:t)},e.prototype.announceDirtyData=function(){var t=this;if(this.chart.options.accessibility.announceNewData&&this.dirty.hasDirty){var e=this.dirty.newPoint;e&&(e=function(t){var e=t.series.data.filter((function(e){return t.x===e.x&&t.y===e.y}));return 1===e.length?e[0]:t}(e)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map((function(e){return t.dirty.allSeries[e]})),this.dirty.newSeries,e),this.dirty={allSeries:{}}}},e.prototype.queueAnnouncement=function(t,e,i){var o=this,n=this.chart.options.accessibility.announceNewData;if(n.enabled){var r=+new Date;n=Math.max(0,n.minAnnounceInterval-(r-this.lastAnnouncementTime)),t=function(t,e){var i=(t||[]).concat(e||[]).reduce((function(t,e){return t[e.name+e.index]=e,t}),{});return Object.keys(i).map((function(t){return i[t]}))}(this.queuedAnnouncement&&this.queuedAnnouncement.series,t),(e=this.buildAnnouncementMessage(t,e,i))&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:r,message:e,series:t},this.queuedAnnouncementTimer=setTimeout((function(){o&&o.announcer&&(o.lastAnnouncementTime=+new Date,o.announcer.announce(o.queuedAnnouncement.message),delete o.queuedAnnouncement,delete o.queuedAnnouncementTimer)}),n))}},e.prototype.buildAnnouncementMessage=function(e,i,o){var n=this.chart,r=n.options.accessibility.announceNewData;return r.announcementFormatter&&!1!==(e=r.announcementFormatter(e,i,o))?e.length?e:null:(e=t.charts&&1<t.charts.length?"Multiple":"Single",e=i?"newSeriesAnnounce"+e:o?"newPointAnnounce"+e:"newDataAnnounce",r=h(n),n.langFormat("accessibility.announceNewData."+e,{chartTitle:r,seriesDesc:i?c(i):null,pointDesc:o?l(o):null,point:o,series:i}))},e}(),function(t){function e(t){var e=this.chart,i=this.newDataAnnouncer;
1i&&i.chart===e&&e.options.accessibility.announceNewData.enabled&&(i.dirty.newPoint=a(i.dirty.newPoint)?void 0:t.point)}function i(){var t=this.chart,e=this.newDataAnnouncer;e&&e.chart===t&&t.options.accessibility.announceNewData.enabled&&(e.dirty.hasDirty=!0,e.dirty.allSeries[this.name+this.index]=this)}t.composedClasses=[],t.compose=function(o){-1===t.composedClasses.indexOf(o)&&(t.composedClasses.push(o),s(o,"addPoint",e),s(o,"updatedData",i))}}(e||(e={})),e})),e(t,"Accessibility/ProxyElement.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,i,o,n){var r=t.doc,s=e.attr,a=e.css,h=e.merge,l=o.fireEventOnWrappedOrUnwrappedElement,c=n.cloneMouseEvent,p=n.cloneTouchEvent,d=n.getFakeMouseEvent,u=n.removeElement;return function(){function t(t,e,o,n){this.chart=t,this.target=e,this.groupType=o,o="ul"===o,this.eventProvider=new i;var s=o?r.createElement("li"):null,a=this.buttonElement=r.createElement("button");t.styledMode||this.hideButtonVisually(a),s?(o&&!t.styledMode&&(s.style.listStyle="none"),s.appendChild(a),this.element=s):this.element=a,this.updateTarget(e,n)}return t.prototype.click=function(){var t=this.getTargetPosition();t.x+=t.width/2,t.y+=t.height/2,t=d("click",t),l(this.target.click,t)},t.prototype.updateTarget=function(t,e){this.target=t,this.updateCSSClassName();var i=e||{};
1Object.keys(i).forEach((function(t){null===i[t]&&delete i[t]})),s(this.buttonElement,h({"aria-label":this.getTargetAttr(t.click,"aria-label")},i)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,t.click),this.refreshPosition()},t.prototype.refreshPosition=function(){var t=this.getTargetPosition();a(this.buttonElement,{width:(t.width||1)+"px",height:(t.height||1)+"px",left:(Math.round(t.x)||0)+"px",top:(Math.round(t.y)||0)+"px"})},t.prototype.remove=function(){this.eventProvider.removeAddedEvents(),u(this.element)},t.prototype.updateCSSClassName=function(){var t=this.chart.legend;t=-1<((t=t.group&&t.group.div)&&t.className||"").indexOf("highcharts-no-tooltip");var e=-1<(this.getTargetAttr(this.target.click,"class")||"").indexOf("highcharts-no-tooltip");this.buttonElement.className=t||e?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},t.prototype.addProxyEventsToButton=function(t,e){var i=this;"click touchstart touchend touchcancel touchmove mouseover mouseenter mouseleave mouseout".split(" ").forEach((function(o){var n=0===o.indexOf("touch");i.eventProvider.addEvent(t,o,(function(t){var i=n?p(t):c(t);e&&l(e,i),t.stopPropagation(),n||t.preventDefault()}),{passive:!1})}))},t.prototype.hideButtonVisually=function(t){a(t,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},t.prototype.getTargetPosition=function(){var t=this.target.click;if(t=t.element?t.element:t,t=this.target.visual||t,this.chart.renderTo&&t&&t.getBoundingClientRect){t=t.getBoundingClientRect();var e=this.chart.pointer.getChartPosition();return{x:(t.left-e.left)/e.scaleX,y:(t.top-e.top)/e.scaleY,width:t.right/e.scaleX-t.left/e.scaleX,height:t.bottom/e.scaleY-t.top/e.scaleY}}return{x:0,y:0,width:1,height:1}},t.prototype.getTargetAttr=function(t,e){return t.element?t.element.getAttribute(e):t.getAttribute(e)},t}()})),e(t,"Accessibility/ProxyProvider.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/DOMElementProvider.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Accessibility/ProxyElement.js"]],(function(t,e,i,o,n,r){var s=t.doc,a=e.attr,h=e.css,l=i.unhideChartElementFromAT,c=n.removeElement,p=n.removeChildNodes;return function(){function t(t){this.chart=t,this.domElementProvider=new o,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return t.prototype.addProxyElement=function(t,e,i){var o=this.groups[t];if(!o)throw Error("ProxyProvider.addProxyElement: Invalid group key "+t);return t=new r(this.chart,e,o.type,i),o.proxyContainerElement.appendChild(t.element),o.proxyElements.push(t),t},t.prototype.addGroup=function(t,e,i){var o=this.groups[t];if(o)return o.groupElement;if(o=this.domElementProvider.createElement(e),i&&i.role&&"div"!==e){var n=this.domElementProvider.createElement("div");n.appendChild(o)}else n=o;return n.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+t.replace(/\W/g,"-"),this.groups[t]={proxyContainerElement:o,groupElement:n,type:e,proxyElements:[]},a(n,i||{}),"ul"===e&&o.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(n),this.updateGroupOrder(this.groupOrder),n},t.prototype.updateGroupAttrs=function(t,e){var i=this.groups[t];if(!i)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+t);a(i.groupElement,e)},t.prototype.updateGroupOrder=function(t){var e=this;if(this.groupOrder=t.slice(),!this.isDOMOrderGroupOrder()){var i=t.indexOf("series"),o=-1<i?t.slice(0,i):t,n=-1<i?t.slice(i+1):[];t=s.activeElement,["before","after"].forEach((function(t){var i=e["before"===t?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];t="before"===t?o:n,p(i),t.forEach((function(t){(t=e.groups[t])&&i.appendChild(t.groupElement)}))}
1)),(this.beforeChartProxyPosContainer.contains(t)||this.afterChartProxyPosContainer.contains(t))&&t&&t.focus&&t.focus()}},t.prototype.clearGroup=function(t){var e=this.groups[t];if(!e)throw Error("ProxyProvider.clearGroup: Invalid group key "+t);p(e.proxyContainerElement)},t.prototype.removeGroup=function(t){var e=this.groups[t];e&&(c(e.groupElement),delete this.groups[t])},t.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},t.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},t.prototype.updateGroupProxyElementPositions=function(t){(t=this.groups[t])&&t.proxyElements.forEach((function(t){return t.refreshPosition()}))},t.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},t.prototype.createProxyPosContainer=function(t){var e=this.domElementProvider.createElement("div");return e.setAttribute("aria-hidden","false"),e.className="highcharts-a11y-proxy-container"+(t?"-"+t:""),h(e,{top:"0",left:"0"}),this.chart.styledMode||(e.style.whiteSpace="nowrap",e.style.position="absolute"),e},t.prototype.getCurrentGroupOrderInDOM=function(){var t=this,e=function(e){var i=[];e=e.children;for(var o=0;o<e.length;++o){t:{for(var n=e[o],r=Object.keys(t.groups),s=r.length;s--;){var a=r[s],h=t.groups[a];if(h&&n===h.groupElement){n=a;break t}}n=void 0}n&&i.push(n)}return i},i=e(this.beforeChartProxyPosContainer);return e=e(this.afterChartProxyPosContainer),i.push("series"),i.concat(e)},t.prototype.isDOMOrderGroupOrder=function(){var t=this,e=this.getCurrentGroupOrderInDOM(),i=this.groupOrder.filter((function(e){return"series"===e||!!t.groups[e]})),o=e.length;if(o!==i.length)return!1;for(;o--;)if(e[o]!==i[o])return!1;return!0},t.prototype.updatePosContainerPositions=function(){var t=this.chart;if(!t.renderer.forExport){var e=t.renderer.box;t.container.insertBefore(this.afterChartProxyPosContainer,e.nextSibling),t.container.insertBefore(this.beforeChartProxyPosContainer,e),l(this.chart,this.afterChartProxyPosContainer),l(this.chart,this.beforeChartProxyPosContainer)}},t}()})),e(t,"Stock/RangeSelector/RangeSelectorDefaults.js",[],(function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"â"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}})),e(t,"Stock/RangeSelector/RangeSelectorComposition.js",[t["Core/Defaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Core/Utilities.js"]],(function(t,e,i){function o(){var t=this.range,e=t.type,i=this.max,o=this.chart.time,n=function(t,i){var n="year"===e?"FullYear":"Month",r=new o.Date(t),s=o.get(n,r);return o.set(n,r,s+i),s===o.get(n,r)&&o.set("Date",r,0),r.getTime()-t};
1if(v(t))var r=i-t,s=t;else t&&(r=i+n(i,-(t.count||1)),this.chart&&(this.chart.fixedRange=i-r));var a=b(this.dataMin,Number.MIN_VALUE);return v(r)||(r=a),r<=a&&(r=a,void 0===s&&(s=n(r,t.count)),this.newMax=Math.min(r+s,b(this.dataMax,Number.MAX_VALUE))),v(i)?!v(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function n(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new p(this))}function r(){var t=this.axes,e=this.rangeSelector;e&&(v(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),t.forEach((function(t){t.updateNames(),t.setScale()})),this.getAxisMargins(),e.render(),t=e.options.verticalAlign,e.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)))}function s(t){var e,i,o,n,r=t.rangeSelector,s=function(){r&&(e=t.xAxis[0].getExtremes(),i=t.legend,n=r&&r.options.verticalAlign,v(e.min)&&r.render(e.min,e.max),i.display&&"top"===n&&n===i.options.verticalAlign&&((o=x(t.spacingBox)).y="vertical"===i.options.layout?t.plotTop:o.y+r.getHeight(),i.group.placed=!1,i.align(o)))};r&&(y(S,(function(e){return e[0]===t}))||S.push([t,[f(t.xAxis[0],"afterSetExtremes",(function(t){r&&r.render(t.min,t.max)})),f(t,"redraw",s)]]),s())}function a(){for(var t=0,e=S.length;t<e;++t){var i=S[t];if(i[0]===this){i[1].forEach((function(t){return t()})),S.splice(t,1);break}}}function h(){var t=this.rangeSelector;t&&(t=t.getHeight(),this.extraTopMargin&&(this.plotTop+=t),this.extraBottomMargin&&(this.marginBottom+=t))}function l(){var t=this.rangeSelector;t&&!t.options.floating&&(t.render(),"bottom"===(t=t.options.verticalAlign)?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0))}function c(t){var e=t.options.rangeSelector;t=this.extraBottomMargin;var i=this.extraTopMargin,o=this.rangeSelector;e&&e.enabled&&!g(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new p(this)),this.extraTopMargin=this.extraBottomMargin=!1,o&&(s(this),e=e&&e.verticalAlign||o.options&&o.options.verticalAlign,o.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"!==e&&(this.extraTopMargin=!0)),this.extraBottomMargin!==t||this.extraTopMargin!==i)&&(this.isDirtyBox=!0)}var p,d=t.defaultOptions,u=t.setOptions,f=i.addEvent,g=i.defined,m=i.extend,y=i.find,v=i.isNumber,x=i.merge,b=i.pick,S=[],C=[];return{compose:function(t,i,g){p=g,-1===C.indexOf(t)&&(C.push(t),t.prototype.minFromRange=o),-1===C.indexOf(i)&&(C.push(i),f(i,"afterGetContainer",n),f(i,"beforeRender",r),f(i,"destroy",a),f(i,"getMargins",h),f(i,"render",l),f(i,"update",c),i.prototype.callbacks.push(s)),-1===C.indexOf(u)&&(m(d,{rangeSelector:e.rangeSelector}),m(d.lang,e.lang))}}})),e(t,"Stock/RangeSelector/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Stock/RangeSelector/RangeSelectorComposition.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(t,e,i,o,n,r){var s=e.defaultOptions,a=r.addEvent,h=r.createElement,l=r.css,c=r.defined,p=r.destroyObjectProperties,d=r.discardElement,u=r.extend,f=r.fireEvent,g=r.isNumber,m=r.merge,y=r.objectEach,v=r.pad,x=r.pick,b=r.pInt,S=r.splat;return e=function(){function e(t){this.buttons=void 0,this.buttonOptions=e.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=t,this.init(t)}return e.compose=function(t,i){o.compose(t,i,e)},e.prototype.clickButton=function(e,i){var o=this.chart,n=this.buttonOptions[e],r=o.xAxis[0],s=o.scroller&&o.scroller.getUnionExtremes()||r||{},h=n.type,l=n.dataGrouping,p=s.dataMin,d=s.dataMax,u=r&&Math.round(Math.min(r.max,x(d,r.max)));s=n._range;var m,y=!0;if(null!==p&&null!==d){if(o.fixedRange=s,this.setSelected(e),l&&(this.forcedDataGrouping=!0,t.prototype.setDataGrouping.call(r||{chart:this.chart},l,!1),this.frozenStates=n.preserveDataGrouping),"month"===h||"year"===h)if(r){h={range:n,max:u,chart:o,dataMin:p,dataMax:d};var v=r.minFromRange.call(h);g(h.newMax)&&(u=h.newMax),y=!1}else s=n;else if(s)v=Math.max(u-s,p),u=Math.min(v+s,d),y=!1;else if("ytd"===h){if(!r)return void(this.deferredYTDClick=e);void 0!==d&&void 0!==p||(p=Number.MAX_VALUE,d=Number.MIN_VALUE,o.series.forEac
1h((function(t){(t=t.xData)&&(p=Math.min(t[0],p),d=Math.max(t[t.length-1],d))})),i=!1),v=m=(h=this.getYTDExtremes(d,p,o.time.useUTC)).min,u=h.max}else"all"===h&&r&&(o.navigator&&o.navigator.baseSeries[0]&&(o.navigator.baseSeries[0].xAxis.options.range=void 0),v=p,u=d);if(y&&n._offsetMin&&c(v)&&(v+=n._offsetMin),n._offsetMax&&c(u)&&(u+=n._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=e+1),r)r.setExtremes(v,u,x(i,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:n});else{var b=S(o.options.xAxis)[0],C=b.range;b.range=s;var w=b.min;b.min=m,a(o,"load",(function(){b.range=C,b.min=w}))}f(this,"afterBtnClick")}},e.prototype.setSelected=function(t){this.selected=this.options.selected=t},e.prototype.init=function(t){var e=this,i=t.options.rangeSelector,o=i.buttons||e.defaultButtons.slice(),n=i.selected,r=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&f(t,"blur"),i&&i.blur&&f(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(a(t.container,"mousedown",r)),this.eventsToUnbind.push(a(t,"resize",r)),o.forEach(e.computeButtonRange),void 0!==n&&o[n]&&this.clickButton(n,!1),this.eventsToUnbind.push(a(t,"load",(function(){t.xAxis&&t.xAxis[0]&&a(t.xAxis[0],"setExtremes",(function(i){this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)}))})))},e.prototype.updateButtonStates=function(){var t=this,e=this.chart,i=this.dropdown,o=e.xAxis[0],n=Math.round(o.max-o.min),r=!o.hasVisibleSeries,s=e.scroller&&e.scroller.getUnionExtremes()||o,a=s.dataMin,h=s.dataMax,l=(e=t.getYTDExtremes(h,a,e.time.useUTC)).min,c=e.max,p=t.selected,d=t.options.allButtonsEnabled,u=t.buttons,f=g(p);t.buttonOptions.forEach((function(e,s){var g=e._range,m=e.type,y=e.count||1,v=u[s],x=e._offsetMax-e._offsetMin,b=s===p,S=g>h-a,C=g<o.minRange;e=0;var w=!1,A=!1;g=g===n,("month"===m||"year"===m)&&n+36e5>=864e5*{month:28,year:365}[m]*y-x&&n-36e5<=864e5*{month:31,year:366}[m]*y+x?g=!0:"ytd"===m?(g=c-l+x===n,w=!b):"all"===m&&(g=o.max-o.min>=h-a,A=!b&&f&&g),m=!d&&(S||C||A||r),y=b&&g||g&&!f&&!w||b&&t.frozenStates,m?e=3:y&&(f=!0,e=2),v.state!==e&&(v.setState(e),i&&(i.options[s+1].disabled=m,2===e&&(i.selectedIndex=s+1)),0===e&&p===s&&t.setSelected())}))},e.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*i),t._offsetMin=x(t.offsetMin,0),t._offsetMax=x(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},e.prototype.getInputValue=function(t){t="min"===t?this.minInput:this.maxInput;var e=this.chart.options.rangeSelector,i=this.chart.time;return t?("text"===t.type&&e.inputDateParser||this.defaultInputDateParser)(t.value,i.useUTC,i):0},e.prototype.setInputValue=function(t,e){var i=this.options,o=this.chart.time,n="min"===t?this.minInput:this.maxInput;if(t="min"===t?this.minDateBox:this.maxDateBox,n){var r=n.getAttribute("data-hc-time");r=c(r)?Number(r):void 0,c(e)&&(c(r)&&n.setAttribute("data-hc-time-previous",r),n.setAttribute("data-hc-time",e),r=e),n.value=o.dateFormat(this.inputTypeFormats[n.type]||i.inputEditDateFormat,r),t&&t.attr({text:o.dateFormat(i.inputDateFormat,r)})}},e.prototype.setInputExtremes=function(t,e,i){if(t="min"===t?this.minInput:this.maxInput){var o=this.inputTypeFormats[t.type],n=this.chart.time;o&&(e=n.dateFormat(o,e),t.min!==e&&(t.min=e),i=n.dateFormat(o,i),t.max!==i&&(t.max=i))}},e.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox;if((t="min"===t?this.minInput:this.maxInput)&&e&&this.inputGroup){var i="text"===t.type,o=this.inputGroup,n=o.translateX;o=o.translateY;var r=this.options.inputBoxWidth;l(t,{width:i?e.width+(r?-2:20)+"px":"auto",height:i?e.height-2+"px":"auto",border:"2px solid silver"}),l(t,i&&r?{left:n+e.x+"px",top:o+"px"}:{left:Math.min(Math.round(e.x+n-(t.offsetWidth-e.width)/2),this.chart.chartWidth-t.offsetWidth)+"px",top:o-(t.offsetHeight-e.height)/2+"px"})}}
1,e.prototype.hideInput=function(t){(t="min"===t?this.minInput:this.maxInput)&&l(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},e.prototype.defaultInputDateParser=function(t,e,o){var n,r=t.split("/").join("-").split(" ").join("T");return-1===r.indexOf("T")&&(r+="T00:00"),e?r+="Z":((n=i.isSafari)&&(n=!(6<(n=r).length&&(n.lastIndexOf("-")===n.length-6||n.lastIndexOf("+")===n.length-6))),n&&(r+=0>=(n=new Date(r).getTimezoneOffset()/60)?"+".concat(v(-n),":00"):"-".concat(v(n),":00"))),r=Date.parse(r),g(r)||(t=t.split("-"),r=Date.UTC(b(t[0]),b(t[1])-1,b(t[2]))),o&&e&&g(r)&&(r+=o.getTimezoneOffset(r)),r},e.prototype.drawInput=function(t){function e(){var e=a.maxInput,i=a.minInput,n=o.xAxis[0],r=o.scroller&&o.scroller.xAxis?o.scroller.xAxis:n,s=r.dataMin;r=r.dataMax;var h=a.getInputValue(t);h!==Number(v.getAttribute("data-hc-time-previous"))&&g(h)&&(v.setAttribute("data-hc-time-previous",h),f&&e&&g(s)?h>Number(e.getAttribute("data-hc-time"))?h=void 0:h<s&&(h=s):i&&g(r)&&(h<Number(i.getAttribute("data-hc-time"))?h=void 0:h>r&&(h=r)),void 0!==h&&n.setExtremes(f?h:n.min,f?n.max:h,void 0,void 0,{trigger:"rangeSelectorInput"}))}var o=this.chart,n=this.div,r=this.inputGroup,a=this,c=o.renderer.style||{},p=o.renderer,d=o.options.rangeSelector,f="min"===t,y=s.lang[f?"rangeSelectorFrom":"rangeSelectorTo"]||"";y=p.label(y,0).addClass("highcharts-range-label").attr({padding:y?2:0,height:y?d.inputBoxHeight:0}).add(r),p=p.label("",0).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth,height:d.inputBoxHeight,"text-align":"center"}).on("click",(function(){a.showInput(t),a[t+"Input"].focus()})),o.styledMode||p.attr({stroke:d.inputBoxBorderColor,"stroke-width":1}),p.add(r);var v=h("input",{name:t,className:"highcharts-range-selector"},void 0,n);v.setAttribute("type",function(t){if(-1!==t.indexOf("%L"))return"text";var e="aAdewbBmoyY".split("").some((function(e){return-1!==t.indexOf("%"+e)})),i="HkIlMS".split("").some((function(e){return-1!==t.indexOf("%"+e)}));return e&&i?"datetime-local":e?"date":i?"time":"text"}(d.inputDateFormat||"%b %e, %Y")),o.styledMode||(y.css(m(c,d.labelStyle)),p.css(m({color:"#333333"},c,d.inputStyle)),l(v,u({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:c.fontSize,fontFamily:c.fontFamily,top:"-9999em"},d.inputStyle))),v.onfocus=function(){a.showInput(t)},v.onblur=function(){v===i.doc.activeElement&&e(),a.hideInput(t),a.setInputValue(t),v.blur()};var x=!1;return v.onchange=function(){x||(e(),a.hideInput(t),v.blur())},v.onkeypress=function(t){13===t.keyCode&&e()},v.onkeydown=function(t){x=!0,38!==t.keyCode&&40!==t.keyCode||e()},v.onkeyup=function(){x=!1},{dateBox:p,input:v,label:y}},e.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},e.prototype.getYTDExtremes=function(t,e,i){var o=this.chart.time,n=new o.Date(t),r=o.get("FullYear",n);return i=i?o.Date.UTC(r,0,1):+new o.Date(r,0,1),e=Math.max(e,i),n=n.getTime(),{max:Math.min(t||n,n),min:e}},e.prototype.render=function(t,e){var i=this.chart,o=i.renderer,n=i.container,r=i.options,s=r.rangeSelector,a=x(r.chart.style&&r.chart.style.zIndex,0)+1;if(r=s.inputEnabled,!1!==s.enabled){if(this.rendered||(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=h("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),n.parentNode&&n.parentNode.insertBefore(this.div,n),r&&(this.inputGroup=o.g("input-group").add(this.group),o=this.drawInput("min"),this.minDateBox=o.dateBox,this.minLabel=o.label,this.minInput=o.input,o=this.drawInput("max"),this.maxDateBox=o.dateBox,this.maxLabel=o.label,this.maxInput=o.input)),r&&(this.setInputValue("min",t),this.setInputValue("max",e),t=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{},c(t.dataMin)&&c(t.dataMax)&&(i=i.xAxis[0].minRange||0,this.setInputExtremes("min",t.dataMin,Math.min(t.dataMax,this.getInputValue("max"))-i),this.setInputExtremes("max",Math.max(t.dataMin,this.getInputValue("min"))+i,t.dataMax)),this.inputGroup)){var l=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEac
1h((function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:l}),l+=e+s.inputSpacing)}}))}this.alignElements(),this.rendered=!0}},e.prototype.renderButtons=function(){var t=this,e=this.buttons,o=this.options,n=s.lang,r=this.chart.renderer,l=m(o.buttonTheme),c=l&&l.states,p=l.width||28;delete l.width,delete l.states,this.buttonGroup=r.g("range-selector-buttons").add(this.group);var d=this.dropdown=h("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);a(d,"touchstart",(function(){d.style.fontSize="16px"})),[[i.isMS?"mouseover":"mouseenter"],[i.isMS?"mouseout":"mouseleave"],["change","click"]].forEach((function(i){var o=i[0],n=i[1];a(d,o,(function(){var i=e[t.currentButtonIndex()];i&&f(i.element,n||o)}))})),this.zoomText=r.label(n&&n.rangeSelectorZoom||"",0).attr({padding:o.buttonTheme.padding,height:o.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(o.labelStyle),l["stroke-width"]=x(l["stroke-width"],0)),h("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,d),this.buttonOptions.forEach((function(i,o){h("option",{textContent:i.title||i.text},void 0,d),e[o]=r.button(i.text,0,0,(function(e){var n,r=i.events&&i.events.click;r&&(n=r.call(i,e)),!1!==n&&t.clickButton(o),t.isActive=!0}),l,c&&c.hover,c&&c.select,c&&c.disabled).attr({"text-align":"center",width:p}).add(t.buttonGroup),i.title&&e[o].attr("title",i.title)}))},e.prototype.alignElements=function(){var t=this,e=this.buttonGroup,i=this.buttons,o=this.chart,n=this.group,r=this.inputGroup,s=this.options,a=this.zoomText,h=o.options,l=h.exporting&&!1!==h.exporting.enabled&&h.navigation&&h.navigation.buttonOptions;h=s.buttonPosition;var c=s.inputPosition,p=s.verticalAlign,d=function(e,i){return l&&t.titleCollision(o)&&"top"===p&&"right"===i.align&&i.y-e.getBBox().height-12<(l.y||0)+(l.height||0)+o.spacing[0]?-40:0},u=o.plotLeft;if(n&&h&&c){var f=h.x-o.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var g=0;a&&(g+=a.getBBox().width+5),i.forEach((function(t,e){g+=t.width,e!==i.length-1&&(g+=s.buttonSpacing)})),this.initialButtonGroupWidth=g}u-=o.spacing[3],this.updateButtonStates(),a=d(e,h),this.alignButtonGroup(a),n.placed=e.placed=o.hasLoaded}e=0,r&&(e=d(r,c),"left"===c.align?f=u:"right"===c.align&&(f=-Math.max(o.axisOffset[1],-e)),r.align({y:c.y,width:r.getBBox().width,align:c.align,x:c.x+f-2},!0,o.spacingBox),r.placed=o.hasLoaded),this.handleCollision(e),n.align({verticalAlign:p},!0,o.spacingBox),r=n.alignAttr.translateY,e=n.getBBox().height+20,d=0,"bottom"===p&&(d=r-(e=e+(d=(d=o.legend&&o.legend.options)&&"bottom"===d.verticalAlign&&d.enabled&&!d.floating?o.legend.legendHeight+x(d.margin,10):0)-20)-(s.floating?0:s.y)-(o.titleOffset?o.titleOffset[2]:0)-10),"top"===p?(s.floating&&(d=0),o.titleOffset&&o.titleOffset[0]&&(d=o.titleOffset[0]),d+=o.margin[0]-o.spacing[0]||0):"middle"===p&&(c.y===h.y?d=r:(c.y||h.y)&&(d=0>c.y||0>h.y?d-Math.min(c.y,h.y):r-e)),n.translate(s.x,s.y+Math.floor(d)),h=this.minInput,c=this.maxInput,r=this.dropdown,s.inputEnabled&&h&&c&&(h.style.marginTop=n.translateY+"px",c.style.marginTop=n.translateY+"px"),r&&(r.style.marginTop=n.translateY+"px")}},e.prototype.alignButtonGroup=function(t,e){var i=this.chart,o=this.buttonGroup,n=this.options.buttonPosition,r=i.plotLeft-i.spacing[3],s=n.x-i.spacing[3];"right"===n.align?s+=t-r:"center"===n.align&&(s-=r/2),o&&o.align({y:n.y,width:x(e,this.initialButtonGroupWidth),align:n.align,x:s},!0,i.spacingBox)},e.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,o=this.zoomText,n=e.hasLoaded?"animate":"attr",r=i.buttonPosition,s=e=e.plotLeft;for(o&&"hidden"!==o.visibility&&(o[n]({x:x(e+r.x,e)}),s+=r.x+o.getBBox().width+5),o=0,r=this.buttonOptions.length;o<r;++o)"hidden"!==t[o].visibility?(t[o][n]({x:s}),s+=t[o].width+i.buttonSpacing):t[o][n]({x:e})},e.prototype.handleCollision=function(t){var e=this,i=this.chart,o=this.buttonGroup,n=this.inputGroup,r=this.options,s=r.buttonPosition,a=r.dropdown,h=r.inputPosition;r=function(){var t=0;return e.buttons.forEach((function(e){(e=e.getBBox()).width>t&&(t=e.width)})),t};var l=function(e){if(n&&o){var i=n.alignAttr.translateX+n.alignOptions.x-t+n.getBBox().x+2,r=n.alignOptions.width,a=o.alignAttr.translateX+o.getBBox().x;return a+e>i&&i+r>a&&s.y<h.y+n.getBBox().height}return!1},c=function(){n&&o&&n.attr({translateX:n.alignAttr.translateX+(i.axisOffset[1]>=-t?0:-t),translateY:n.alignAttr.translateY+o.getBBox().height+10})};if(o){if("always"===a)return this.collapseButtons(t),void(l(r())&&c());"never"===a&&this.expandButtons()}n&&o?h.align===s.align||l(this.initialButtonGroupWidth+20)?"responsive"===a?(this.collapseButtons(t),l(r())&&c()):c():"responsive"===a&&this.expandButtons():o&&"responsive"===a&&(this.initialButtonGroupWidth>i.plotWidth?this.collapseButtons(t):this.expandButtons())},e.prototype.collapseButtons=function(t){var e=this.buttons,i=this.buttonOptions,o=this.chart,n=this.dropdown,r=this.options,s=this.zoomText,a=o.userOptions.rangeSelector&&o.userOptions.rangeSelector.buttonTheme||{}
1,h=function(t){return{text:t?t+" â¾":"â¾",width:"auto",paddingLeft:x(r.buttonTheme.paddingLeft,a.padding,8),paddingRight:x(r.buttonTheme.paddingRight,a.padding,8)}};s&&s.hide();var l=!1;i.forEach((function(t,i){2!==(i=e[i]).state?i.hide():(i.show(),i.attr(h(t.text)),l=!0)})),l||(n&&(n.selectedIndex=0),e[0].show(),e[0].attr(h(this.zoomText&&this.zoomText.textStr))),i=r.buttonPosition.align,this.positionButtons(),"right"!==i&&"center"!==i||this.alignButtonGroup(t,e[this.currentButtonIndex()].getBBox().width),this.showDropdown()},e.prototype.expandButtons=function(){var t=this.buttons,e=this.buttonOptions,i=this.options,o=this.zoomText;this.hideDropdown(),o&&o.show(),e.forEach((function(e,o){(o=t[o]).show(),o.attr({text:e.text,width:i.buttonTheme.width||28,paddingLeft:x(i.buttonTheme.paddingLeft,"unset"),paddingRight:x(i.buttonTheme.paddingRight,"unset")}),2>o.state&&o.setState(0)})),this.positionButtons()},e.prototype.currentButtonIndex=function(){var t=this.dropdown;return t&&0<t.selectedIndex?t.selectedIndex-1:0},e.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.buttons,i=this.chart,o=this.dropdown;if(t&&o){var n=t.translateX;t=t.translateY,e=e[this.currentButtonIndex()].getBBox(),l(o,{left:i.plotLeft+n+"px",top:t+.5+"px",width:e.width+"px",height:e.height+"px"}),this.hasVisibleDropdown=!0}},e.prototype.hideDropdown=function(){var t=this.dropdown;t&&(l(t,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},e.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.y,o=t.buttonPosition.y,n=t.inputPosition.y;return t.height?t.height:(this.alignElements(),t=e?e.getBBox(!0).height+13+i:0,e=Math.min(n,o),(0>n&&0>o||0<n&&0<o)&&(t+=Math.abs(e)),t)},e.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},e.prototype.update=function(t){var e=this.chart;m(!0,e.options.rangeSelector,t),this.destroy(),this.init(e),this.render()},e.prototype.destroy=function(){var t=this,i=t.minInput,o=t.maxInput;t.eventsToUnbind&&(t.eventsToUnbind.forEach((function(t){return t()})),t.eventsToUnbind=void 0),p(t.buttons),i&&(i.onfocus=i.onblur=i.onchange=null),o&&(o.onfocus=o.onblur=o.onchange=null),y(t,(function(i,o){i&&"chart"!==o&&(i instanceof n?i.destroy():i instanceof window.HTMLElement&&d(i)),i!==e.prototype[o]&&(t[o]=null)}),this)},e}(),u(e.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),e})),e(t,"Accessibility/Components/RangeSelectorComponent.js",[t["Stock/RangeSelector/RangeSelector.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/Announcer.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Core/Utilities.js"]],(function(t,e,i,o,n,r){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=i.unhideChartElementFromAT,h=i.getAxisRangeDescription,l=r.addEvent,c=r.attr;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.announcer=void 0,e}return s(e,t),e.prototype.init=function(){this.announcer=new o(this.chart,"polite")},e.prototype.onChartUpdate=function(){var t=this.chart,e=this,i=t.rangeSelector;i&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),i.buttons&&i.buttons.length&&i.buttons.forEach((function(t){e.setRangeButtonAttrs(t)})),i.maxInput&&i.minInput&&["minInput","maxInput"].forEach((function(o,n){(o=i[o])&&(a(t,o),e.setRangeInputAttrs(o,"accessibility.rangeSelector."+(n?"max":"min")+"InputLabel"))})))},e.prototype.updateSelectorVisibility=function(){var t=this.chart,e=t.rangeSelector,i=e&&e.dropdown,o=e&&e.buttons||[];e&&e.hasVisibleDropdown&&i?(a(t,i),o.forEach((function(t){return t.element.setAttribute("aria-hidden",!0)}))):(i&&i.setAttribute("aria-hidden",!0),o.forEach((function(e){return a(t,e.element)})))},e.prototype.setDropdownAttrs=function(){var t=this.chart,e=t.rangeSelector&&t.rangeSelector.dropdown;e&&(t=t.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:t.options.lang.rangeSelectorZoom}),e.setAttribute("aria-label",t),e.setAttribute("tabindex",-1))},e.prototype.setRangeButtonAttrs=function(t){c(t.element,{tabindex:-1,role:"button"})},e.prototype.setRangeInputAttrs=function(t,e){var i=this.chart;c(t,{tabindex:-1,"aria-label":i.langFormat(e,{chart:i})})},e.prototype.onButtonNavKbdArrowKey=function(t,e){var i=t.response,o=this.keyCodes,n=this.chart,r=n.options.accessibility.keyboardNavigation.wrapAround;return e=e===o.left||e===o.up?-1:1,n.highlightRangeSelectorButton(n.highlightedRangeSelectorItemIx+e)?i.success:r?(t.init(e),i.success):i[0<e?"next":"prev"]},e.prototype.onButtonNavKbdClick=function(t){t=t.response;var e=this.chart;return 3!==e.oldRangeSelectorItemState&&this.fakeClickEvent(e.rangeSelector.buttons[e.highlightedRangeSelectorItemIx].element),t.success},e.prototype.onAfterBtnClick=function(){var t=this.chart,e=h(t.xAxis[0]);(t=t.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:t,axisRangeDescription:e}))&&this.announcer.announce(t)},e.prototype.onInputKbdMove=function(t){var e=this.chart,i=e.rangeSelector,o=e.highlightedInputRangeIx=(e.highlightedInputRangeIx||0)+t;1<o||0>o?e.accessibility&&(e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation.move(t)):i&&(t=i[o?"maxDateBox":"minDateBox"],i=i[o?"maxInput":"minInput"],t&&i&&e.setFocusToElement(t,i))},e.prototype.onInputNavInit=function(t){var e=this,i=this,o=this.chart,n=0<t?0:1,r=o.rangeSelector,s=r&&r[n?"maxDateBox":"minDateBox"];if(t=r&&r.minInput,r=r&&r.maxInput,o.highlightedInputRangeIx=n,s&&t&&r){o.setFocusToElement(s,n?r:t),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),o=function(t){(t.which||t.keyCode)===e.ke
1yCodes.tab&&(t.preventDefault(),t.stopPropagation(),i.onInputKbdMove(t.shiftKey?-1:1))};var a=l(t,"keydown",o),h=l(r,"keydown",o);this.removeInputKeydownHandler=function(){a(),h()}}},e.prototype.onInputNavTerminate=function(){var t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},e.prototype.initDropdownNav=function(){var t=this,e=this.chart,i=e.rangeSelector,o=i&&i.dropdown;i&&o&&(e.setFocusToElement(i.buttonGroup,o),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=l(o,"keydown",(function(i){var o=e.accessibility;(i.which||i.keyCode)===t.keyCodes.tab&&(i.preventDefault(),i.stopPropagation(),o&&(o.keyboardNavigation.tabindexContainer.focus(),o.keyboardNavigation.move(i.shiftKey?-1:1)))})))},e.prototype.getRangeSelectorButtonNavigation=function(){var t=this.chart,e=this.keyCodes,i=this;return new n(t,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(t){return i.onButtonNavKbdArrowKey(this,t)}],[[e.enter,e.space],function(){return i.onButtonNavKbdClick(this)}]],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.buttons&&t.rangeSelector.buttons.length)},init:function(e){var o=t.rangeSelector;o&&o.hasVisibleDropdown?i.initDropdownNav():o&&(o=o.buttons.length-1,t.highlightRangeSelectorButton(0<e?0:o))},terminate:function(){i.removeDropdownKeydownHandler&&(i.removeDropdownKeydownHandler(),delete i.removeDropdownKeydownHandler)}})},e.prototype.getRangeSelectorInputNavigation=function(){var t=this.chart,e=this;return new n(t,{keyCodeMap:[],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"!==t.rangeSelector.inputGroup.element.style.visibility&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput)},init:function(t){e.onInputNavInit(t)},terminate:function(){e.onInputNavTerminate()}})},e.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},e.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},e}(e),function(e){function i(t){var e=this.rangeSelector&&this.rangeSelector.buttons||[],i=this.highlightedRangeSelectorItemIx,o=this.rangeSelector&&this.rangeSelector.selected;return void 0!==i&&e[i]&&i!==o&&e[i].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=t,!!e[t]&&(this.setFocusToElement(e[t].box,e[t].element),t!==o&&(this.oldRangeSelectorItemState=e[t].state,e[t].setState(1)),!0)}function o(){var t=this.chart.accessibility;if(t&&t.components.rangeSelector)return t.components.rangeSelector.onAfterBtnClick()}var n=[];e.compose=function(e,r){-1===n.indexOf(e)&&(n.push(e),e.prototype.highlightRangeSelectorButton=i),-1===n.indexOf(r)&&(n.push(r),l(t,"afterBtnClick",o))}}(e||(e={})),e})),e(t,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[t["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.merge;return function(t){function e(t){o(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}
1}}})}function n(t){return t.marker.states&&t.marker.states.normal&&t.marker.states.normal.opacity}function r(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),this._hasPointMarkers&&this.points&&this.points.length&&this.points.forEach((function(t){t.graphic&&(t.graphic[t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),t.graphic[!1===t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))})))}function s(t){this.resetA11yMarkerOptions=o(t.options.marker||{},this.userOptions.marker||{})}function a(){var t=this.options,i=!1!==(this.options.accessibility&&this.options.accessibility.enabled);if((i=this.chart.options.accessibility.enabled&&i)&&(i=this.chart.options.accessibility,i=this.points.length<i.series.pointDescriptionEnabledThreshold||!1===i.series.pointDescriptionEnabledThreshold),i){if(t.marker&&!1===t.marker.enabled&&(this.a11yMarkersForced=!0,e(this.options)),this._hasPointMarkers&&this.points&&this.points.length)for(t=this.points.length;t--;){var r=(i=this.points[t]).options,s=i.hasForcedA11yMarker;delete i.hasForcedA11yMarker,r.marker&&(s=s&&0===n(r),r.marker.enabled&&!s?(o(!0,r.marker,{states:{normal:{opacity:n(r)||1}}}),i.hasForcedA11yMarker=!1):!1===r.marker.enabled&&(e(r),i.hasForcedA11yMarker=!0))}}else this.a11yMarkersForced&&(delete this.a11yMarkersForced,(t=this.resetA11yMarkerOptions)&&this.update({marker:{enabled:t.enabled,states:{normal:{opacity:t.states&&t.states.normal&&t.states.normal.opacity}}}}),delete this.resetA11yMarkerOptions)}var h=[];t.compose=function(t){-1===h.indexOf(t)&&(h.push(t),i(t,"afterSetOptions",s),i(t,"render",a),i(t,"afterRender",r))}}(e||(e={})),e})),e(t,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/ChartUtilities.js"]],(function(t,e,i,o,n,r,s,a){function h(t){var e=t.index,i=t.series.points,o=i.length;if(i[e]===t)return e;for(;o--;)if(i[o]===t)return o}function l(t){var e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,i=t.options.accessibility||{},o=i.keyboardNavigation;return o&&!1===o.enabled||!1===i.enabled||!1===t.options.enableMouseTracking||!t.visible||e.pointNavigationEnabledThreshold&&e.pointNavigationEnabledThreshold<=t.points.length}function c(t){var e=t.series.chart.options.accessibility,i=t.options.accessibility&&!1===t.options.accessibility.enabled;return t.isNull&&e.keyboardNavigation.seriesNavigation.skipNullPoints||!1===t.visible||!1===t.isInside||i||l(t.series)}function p(t){for(var e=(t=t.series||[]).length,i=0;i<e;++i)if(!l(t[i])){t:{for(var o=t[i].points||[],n=o.length,r=0;r<n;++r)if(!c(o[r])){o=o[r];break t}o=null}if(o)return o}return null}function d(t){for(var e=t.series.length,i=!1;e--&&(t.highlightedPoint=t.series[e].points[t.series[e].points.length-1],!(i=t.series[e].highlightNextValidPoint())););return i}function u(t){return delete t.highlightedPoint,!!(t=p(t))&&t.highlight()}var f=i.seriesTypes,g=o.doc,m=n.defined,y=n.fireEvent,v=a.getPointFromXY,x=a.getSeriesFromName,b=a.scrollToPoint;return i=function(){function i(t,e){this.keyCodes=e,this.chart=t}return i.prototype.init=function(){var i=this,o=this.chart,n=this.eventProvider=new s;n.addEvent(e,"destroy",(function(){return i.onSeriesDestroy(this)})),n.addEvent(o,"afterApplyDrilldown",(function(){var t=p(this);t&&t.highlight(!1)})),n.addEvent(o,"drilldown",(function(t){var e=(t=t.point).series;i.lastDrilledDownPoint={x:t.x,y:t.y,seriesName:e?e.name:""}})),n.addEvent(o,"drillupall",(function(){setTimeout((function(){i.onDrillupAll()}),10)})),n.addEvent(t,"afterSetState",(function(){var t=this.graphic&&this.graphic.element,e=g.activeElement,i=e&&e.getAttribute("class");i=i&&-1<i.indexOf("highcharts-a11y-proxy-button"),o.highlightedPoint===this&&e!==t&&!i&&t&&t.focus&&t.focu
1s()}))},i.prototype.onDrillupAll=function(){var t,e=this.lastDrilledDownPoint,i=this.chart,o=e&&x(i,e.seriesName);e&&o&&m(e.x)&&m(e.y)&&(t=v(o,e.x,e.y)),t=t||p(i),i.container&&i.container.focus(),t&&t.highlight&&t.highlight(!1)},i.prototype.getKeyboardNavigationHandler=function(){var t=this,e=this.keyCodes,i=this.chart,o=i.inverted;return new r(i,{keyCodeMap:[[o?[e.up,e.down]:[e.left,e.right],function(e){return t.onKbdSideways(this,e)}],[o?[e.left,e.right]:[e.up,e.down],function(e){return t.onKbdVertical(this,e)}],[[e.enter,e.space],function(t,e){return(t=i.highlightedPoint)&&(e.point=t,y(t.series,"click",e),t.firePointEvent("click")),this.response.success}],[[e.home],function(){return u(i),this.response.success}],[[e.end],function(){return d(i),this.response.success}],[[e.pageDown,e.pageUp],function(t){return i.highlightAdjacentSeries(t===e.pageDown),this.response.success}]],init:function(){return t.onHandlerInit(this)},validate:function(){return!!p(i)},terminate:function(){return t.onHandlerTerminate()}})},i.prototype.onKbdSideways=function(t,e){var i=this.keyCodes;return this.attemptHighlightAdjacentPoint(t,e===i.right||e===i.down)},i.prototype.onHandlerInit=function(t){var e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():u(e),t.response.success},i.prototype.onKbdVertical=function(t,e){var i=this.chart,o=this.keyCodes;return e=e===o.down||e===o.right,(o=i.options.accessibility.keyboardNavigation.seriesNavigation).mode&&"serialize"===o.mode?this.attemptHighlightAdjacentPoint(t,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),t.response.success)},i.prototype.onHandlerTerminate=function(){var t=this.chart,e=t.options.accessibility.keyboardNavigation;t.tooltip&&t.tooltip.hide(0);var i=t.highlightedPoint&&t.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),t.highlightedPoint&&t.highlightedPoint.onMouseOut&&t.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete t.highlightedPoint},i.prototype.attemptHighlightAdjacentPoint=function(t,e){var i=this.chart,o=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(e)||o&&(e?u(i):d(i))?t.response.success:t.response[e?"next":"prev"]},i.prototype.onSeriesDestroy=function(t){var e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())},i.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},i}(),function(t){function e(t){var e=this.series,i=this.highlightedPoint,o=i&&h(i)||0,n=i&&i.series.points||[],r=this.series&&this.series[this.series.length-1];if(r=r&&r.points&&r.points[r.points.length-1],!e[0]||!e[0].points)return!1;if(i){if(e=e[i.series.index+(t?1:-1)],!(o=n[o+(t?1:-1)])&&e&&(o=e.points[t?0:e.points.length-1]),!o)return!1}else o=t?e[0].points[0]:r;return c(o)?(l(e=o.series)?this.highlightedPoint=t?e.points[e.points.length-1]:e.points[0]:this.highlightedPoint=o,this.highlightAdjacentPoint(t)):o.highlight()}function i(t){var e,i=this.highlightedPoint,o=1/0;return!(!m(i.plotX)||!m(i.plotY))&&(this.series.forEach((function(n){l(n)||n.points.forEach((function(r){if(m(r.plotY)&&m(r.plotX)&&r!==i){var s=r.plotY-i.plotY,a=Math.abs(r.plotX-i.plotX);a=Math.abs(s)*Math.abs(s)+a*a*4,n.yAxis&&n.yAxis.reversed&&(s*=-1),!(0>=s&&t||0<=s&&!t||5>a||c(r))&&a<o&&(o=a,e=r)}}))})),!!e&&e.highlight())}function o(t){var e=this.highlightedPoint,i=this.series&&this.series[this.series.length-1],o=i&&i.points&&i.points[i.points.length-1];return this.highlightedPoint?!!(i=this.series[e.series.index+(t?-1:1)])&&(o=function(t,e,i,o){var n=1/0,r=e.points.length,s=function(t){return!(m(t.plotX)&&m(t.plotY))};if(!s(t)){for(;r--;){var a=e.points[r];if(!s(a)&&(a=(t.plotX-a.plotX)*(t.plotX-a.plotX)*(i||1)+(t.plotY-a.plotY)*(t.plotY-a.plotY)*(o||1))<n){n=a;var h=r}}return m(h)?e.points[h]:void 0}}(e,i,4),!!o&&(l(i)?(o.highlight(),(t=this.highlightAdjacentSeries(t))||(e.highlight(),!1)):(o.highlight(),o.series.highlightNextValidPoint()))):(i=t?this.series&&this.series[0]:i,!!(o=t?i&&i.points&&i.points[0]:o)&&o.highlight())}function n(t){void 0===t&&(t=!0);var e=this.series.chart;return!this.isNull&&t?this.onMouseOver():e.tooltip&&e.tooltip.hide(0),b(this),this.graphic&&(e.setFocusToElement(this.graphic),!t&&e.focusElement&&e.focusElement.removeFocusBorder()),e.highlightedPoint=this,this}function r(){var t=this.chart.highlightedPoint,e=(t&&t.series)===this?h(t):0,i=(t=this.points).length;if(t&&i){for(var o=e;o<i;
1++o)if(!c(t[o]))return t[o].highlight();for(;0<=e;--e)if(!c(t[e]))return t[e].highlight()}return!1}var s=[];t.compose=function(t,a,h){-1===s.indexOf(t)&&(s.push(t),(t=t.prototype).highlightAdjacentPoint=e,t.highlightAdjacentPointVertical=i,t.highlightAdjacentSeries=o),-1===s.indexOf(a)&&(s.push(a),a.prototype.highlight=n),-1===s.indexOf(h)&&(s.push(h),(a=h.prototype).keyboardMoveVertical=!0,["column","gantt","pie"].forEach((function(t){f[t]&&(f[t].prototype.keyboardMoveVertical=!1)})),a.highlightNextValidPoint=r)}}(i||(i={})),i})),e(t,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],t["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],t["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],t["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],t["Core/Tooltip.js"]],(function(t,e,i,o,n,r,s){var a=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),h=e.hideSeriesFromAT,l=n.describeSeries;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.compose=function(t,e,n){o.compose(n),i.compose(n),r.compose(t,e,n)},e.prototype.init=function(){this.newDataAnnouncer=new o(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new r(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},e.prototype.hideTooltipFromATWhenShown=function(){var t=this;this.addEvent(s,"refresh",(function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)}))},e.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",(function(){this.series.forEach((function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)}))}))},e.prototype.onChartRender=function(){this.chart.series.forEach((function(t){!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible?l(t):h(t)}))},e.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},e.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},e}(t)})),e(t,"Accessibility/Components/ZoomComponent.js",[t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Core/Utilities.js"]],(function(t,e,i,o,n){var r=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=e.unhideChartElementFromAT,a=i.getFakeMouseEvent,h=n.attr,l=n.pick;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.focusedMapNavButtonIx=-1,e}return r(e,t),e.prototype.init=function(){var t=this,e=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach((function(i){t.addEvent(e,i,(function(){t.updateProxyOverlays()}))}))},e.prototype.onChartUpdate=function(){var t=this.chart,e=this;t.mapNavigation&&t.mapNavigation.navButtons.forEach((function(i,o){s(t,i.element),e.setMapNavButtonAttrs(i.element,"accessibility.zoom.mapZoom"+(o?"Out":"In"))}))},e.prototype.setMapNavButtonAttrs=function(t,e){var i=this.chart;e=i.langFormat(e,{chart:i}),h(t,{tabindex:-1,role:"button","aria-label":e})},e.prototype.onChartRender=function(){this.updateProxyOverlays()},e.prototype.updateProxyOverlays=function(){var t=this.chart;this.proxyProvider.clearGroup("zoom"),t.resetZoomButton&&this.createZoomProxyButton(t.resetZoomButton,"resetZoomProxyButton",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&t.breadcrumbs&&t.breadcrumbs.list&&this.createZoomProxyButton(t.drillUpButton,"drillUpProxyButton",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.breadcrumbs.getButtonText(t.breadcrumbs.list[t.breadcrumbs.list.length-1])}))}
1,e.prototype.createZoomProxyButton=function(t,e,i){this[e]=this.proxyProvider.addProxyElement("zoom",{click:t},{"aria-label":i,tabindex:-1})},e.prototype.getMapZoomNavigation=function(){var t=this.keyCodes,e=this.chart,i=this;return new o(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return i.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return i.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return i.onMapKbdClick(this)}]],validate:function(){return!!(e.mapView&&e.mapNavigation&&e.mapNavigation.navButtons.length)},init:function(t){return i.onMapNavInit(t)}})},e.prototype.onMapKbdArrow=function(t,e){var i=this.chart,o=this.keyCodes,n=i.container,r=e===o.up||e===o.down;return e=(r?i.plotHeight:i.plotWidth)/10*(e===o.left||e===o.up?1:-1),o=10*Math.random(),i={x:n.offsetLeft+i.plotLeft+i.plotWidth/2+o,y:n.offsetTop+i.plotTop+i.plotHeight/2+o},r=r?{x:i.x,y:i.y+e}:{x:i.x+e,y:i.y},[a("mousedown",i),a("mousemove",r),a("mouseup",r)].forEach((function(t){return n.dispatchEvent(t)})),t.response.success},e.prototype.onMapKbdTab=function(t,e){var i=this.chart;t=t.response;var o=(e=e.shiftKey)&&!this.focusedMapNavButtonIx||!e&&this.focusedMapNavButtonIx;return i.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),o?(i.mapView&&i.mapView.zoomBy(),t[e?"prev":"next"]):(this.focusedMapNavButtonIx+=e?-1:1,e=i.mapNavigation.navButtons[this.focusedMapNavButtonIx],i.setFocusToElement(e.box,e.element),e.setState(2),t.success)},e.prototype.onMapKbdClick=function(t){return this.fakeClickEvent(this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element),t.response.success},e.prototype.onMapNavInit=function(t){var e=this.chart,i=e.mapNavigation.navButtons[0],o=e.mapNavigation.navButtons[1];i=0<t?i:o,e.setFocusToElement(i.box,i.element),i.setState(2),this.focusedMapNavButtonIx=0<t?0:1},e.prototype.simpleButtonNavigation=function(t,e,i){var n=this.keyCodes,r=this,s=this.chart;return new o(s,{keyCodeMap:[[[n.tab,n.up,n.down,n.left,n.right],function(t,e){return this.response[t===n.tab&&e.shiftKey||t===n.left||t===n.up?"prev":"next"]}],[[n.space,n.enter],function(){var t=i(this,s);return l(t,this.response.success)}]],validate:function(){return s[t]&&s[t].box&&r[e].buttonElement},init:function(){s.setFocusToElement(s[t].box,r[e].buttonElement)}})},e.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",(function(t,e){e.zoomOut()})),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",(function(t,e){return e.drillUp(),t.response.prev})),this.getMapZoomNavigation()]},e}(t)})),e(t,"Accessibility/HighContrastMode.js",[t["Core/Globals.js"]],(function(t){var e=t.doc,i=t.isMS,o=t.win;return{isHighContrastModeActive:function(){var t=/(Edg)/.test(o.navigator.userAgent);if(o.matchMedia&&t)return o.matchMedia("(-ms-high-contrast: active)").matches;if(i&&o.getComputedStyle){(t=e.createElement("div")).style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),e.body.appendChild(t);var n=(t.currentStyle||o.getComputedStyle(t)).backgroundImage;return e.body.removeChild(t),"none"===n}return o.matchMedia&&o.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(t){t.highContrastModeActive=!0;var e=t.options.accessibility.highContrastTheme;t.update(e,!1),t.series.forEach((function(t){var i=e.plotOptions[t.type]||{};t.update({color:i.color||"windowText",colors:[i.color||"windowText"],borderColor:i.borderColor||"window"}),t.points.forEach((function(t){t.options&&t.options.color&&t.update({color:i.color||"windowText",borderColor:i.borderColor||"window"},!1)}))})),t.redraw()}}})),e(t,"Accessibility/HighContrastTheme.js",[],(function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}}
vendor: 4,145 bytes, line 1
1,plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}})),e(t,"Accessibility/Options/A11yDefaults.js",[],(function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}})),e(t,"Accessibility/Options/LangDefaults.js",[],(function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}
1",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}
1.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}})),e(t,"Accessibility/Options/DeprecatedOptions.js",[t["Core/Utilities.js"]],(function(t){function e(t,e,i){for(var o,r=0;r<e.length-1;++r)t=t[o=e[r]]=n(t[o],{});t[e[e.length-1]]=i}function i(t,i,n,r){function s(t,e){return e.reduce((function(t,e){return t[e]}),t)}var a=s(t.options,i),h=s(t.options,n);Object.keys(r).forEach((function(s){var l,c=a[s];void 0!==c&&(e(h,r[s],c),o(32,!1,t,((l={})[i.join(".")+"."+s]=n.join(".")+"."+r[s].join("."),l)))}))}var o=t.error,n=t.pick;return function(t){!function(t){var e=t.options.chart,i=t.options.accessibility||{};["description","typeDescription"].forEach((function(n){var r;e[n]&&(i[n]=e[n],o(32,!1,t,((r={})["chart.".concat(n)]="use accessibility.".concat(n),r)))}))}
1(t),function(t){t.axes.forEach((function(e){(e=e.options)&&e.description&&(e.accessibility=e.accessibility||{},e.accessibility.description=e.description,o(32,!1,t,{"axis.description":"use axis.accessibility.description"}))}))}(t),t.series&&function(t){var i={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};t.series.forEach((function(n){Object.keys(i).forEach((function(r){var s,a=n.options[r];"accessibility.pointDescriptionFormatter"===r&&(a=n.options.accessibility&&n.options.accessibility.pointDescriptionFormatter),void 0!==a&&(e(n.options,i[r],"skipKeyboardNavigation"===r?!a:a),o(32,!1,t,((s={})["series.".concat(r)]="series."+i[r].join("."),s)))}))}))}(t),i(t,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),i(t,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),i(t,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}})),e(t,"Accessibility/Accessibility.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Accessibility/A11yI18n.js"],t["Accessibility/Components/ContainerComponent.js"],t["Accessibility/FocusBorder.js"],t["Accessibility/Components/InfoRegionsComponent.js"],t["Accessibility/KeyboardNavigation.js"],t["Accessibility/Components/LegendComponent.js"],t["Accessibility/Components/MenuComponent.js"],t["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],t["Accessibility/ProxyProvider.js"],t["Accessibility/Components/RangeSelectorComponent.js"],t["Accessibility/Components/SeriesComponent/SeriesComponent.js"],t["Accessibility/Components/ZoomComponent.js"],t["Accessibility/HighContrastMode.js"],t["Accessibility/HighContrastTheme.js"],t["Accessibility/Options/A11yDefaults.js"],t["Accessibility/Options/LangDefaults.js"],t["Accessibility/Options/DeprecatedOptions.js"]],(function(t,e,i,o,n,r,s,a,h,l,c,p,d,u,f,g,m,y,v,x,b){t=t.defaultOptions;var S=e.doc,C=i.addEvent,w=i.extend,A=i.fireEvent,M=i.merge,k=o.removeElement;return e=function(){function t(t){this.proxyProvider=this.keyboardNavigation=this.components=this.chart=void 0,this.init(t)}return t.prototype.init=function(t){this.chart=t,S.addEventListener&&t.renderer.isSVG?(b(t),this.proxyProvider=new d(this.chart),this.initComponents(),this.keyboardNavigation=new h(t,this.components)):(this.zombie=!0,this.components={},t.renderTo.setAttribute("aria-hidden",!0))},t.prototype.initComponents=function(){var t=this.chart,e=this.proxyProvider,i=t.options.accessibility;this.components={container:new r,infoRegions:new a,legend:new l,chartMenu:new c,rangeSelector:new u,series:new f,zoom:new g},i.customComponents&&w(this.components,i.customComponents);var o=this.components;
1this.getComponentOrder().forEach((function(i){o[i].initBase(t,e),o[i].init()}))},t.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var t=Object.keys(this.components).filter((function(t){return"series"!==t}));return["series"].concat(t)},t.prototype.update=function(){var t=this.components,e=this.chart,i=e.options.accessibility;A(e,"beforeA11yUpdate"),e.types=this.getChartTypes(),i=i.keyboardNavigation.order,this.proxyProvider.updateGroupOrder(i),this.getComponentOrder().forEach((function(i){t[i].onChartUpdate(),A(e,"afterA11yComponentUpdate",{name:i,component:t[i]})})),this.keyboardNavigation.update(i),!e.highContrastModeActive&&m.isHighContrastModeActive()&&m.setHighContrastTheme(e),A(e,"afterA11yUpdate",{accessibility:this})},t.prototype.destroy=function(){var t=this.chart||{},e=this.components;Object.keys(e).forEach((function(t){e[t].destroy(),e[t].destroyBase()})),this.proxyProvider&&this.proxyProvider.destroy(),t.announcerContainer&&k(t.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),t.renderTo&&t.renderTo.setAttribute("aria-hidden",!0),t.focusElement&&t.focusElement.removeFocusBorder()},t.prototype.getChartTypes=function(){var t={};return this.chart.series.forEach((function(e){t[e.type]=1})),Object.keys(t)},t}(),function(t){function e(){this.accessibility&&this.accessibility.destroy()}function i(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var t=this.accessibility;t&&!t.zombie&&(t.proxyProvider.updateProxyElementPositions(),t.getComponentOrder().forEach((function(e){t.components[e].onChartRender()})))}function o(t){(t=t.options.accessibility)&&(t.customComponents&&(this.options.accessibility.customComponents=t.customComponents,delete t.customComponents),M(!0,this.options.accessibility,t),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function r(){var e=this.accessibility,i=this.options.accessibility;i&&i.enabled?e&&!e.zombie?e.update():(this.accessibility=e=new t(this),!e.zombie&&e.update()):e?(e.destroy&&e.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function a(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}var d=[];t.i18nFormat=n.i18nFormat,t.compose=function(t,g,m,y,v,x){h.compose(t),p.compose(y),l.compose(t,g),c.compose(t),f.compose(t,m,y),n.compose(t),s.compose(t,v),x&&u.compose(t,x),-1===d.indexOf(t)&&(d.push(t),t.prototype.updateA11yEnabled=r,C(t,"destroy",e),C(t,"render",i),C(t,"update",o),["addSeries","init"].forEach((function(e){C(t,e,(function(){this.a11yDirty=!0}))})),["afterApplyDrilldown","drillupall"].forEach((function(e){C(t,e,(function(){var t=this.accessibility;t&&!t.zombie&&t.update()}))}))),-1===d.indexOf(m)&&(d.push(m),C(m,"update",a)),-1===d.indexOf(y)&&(d.push(y),["update","updatedData","remove"].forEach((function(t){C(y,t,(function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)}))})))}}(e||(e={})),M(!0,t,v,{accessibility:{highContrastTheme:y},lang:x}),e})),e(t,"masters/modules/accessibility.src.js",[t["Core/Globals.js"],t["Accessibility/Accessibility.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],(function(t,e,i,o,n,r,s){t.i18nFormat=e.i18nFormat,t.A11yChartUtilities=o,t.A11yHTMLUtilities=n,t.AccessibilityComponent=i,t.KeyboardNavigationHandler=r,t.SeriesAccessibilityDescriber=s,e.compose(t.Chart,t.Legend,t.Point,t.Series,t.SVGElement,t.RangeSelector)}))},t.exports?(r.default=r,t.exports=r):(o=[i(14783)],void 0===(n=function(t){return r(t),r.Highcharts=t,r}.apply(e,o))||(t.exports=n))},65006:function(t,e,i){var o,n,r;n="undefined"!=typeof window?window:this,r=function(t){function e(e,i,o,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,o),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsM
1oduleLoaded",{detail:{path:i,module:e[i]}})))}var i={};return e(i,"Core/Globals.js",[],(function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.3.3",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,i),e.win.removeEventListener("testPassive",e.noop,i))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(i,o,n,r){var s=o?"Highcharts error":"Highcharts warning";32===i&&(i=s+": Deprecated member");var a=h(i),l=a?s+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(void 0!==r){var c="";a&&(l+="?"),m(r,(function(t,e){c+="\n - ".concat(e,": ").concat(t),a&&(l+=encodeURI(e)+"="+encodeURI(t))})),l+=c}v(t,"displayError",{chart:n,code:i,message:l,params:r},(function(){if(o)throw Error(l);S.console&&-1===e.messages.indexOf(l)&&console.warn(l)})),e.messages.push(l)}function i(t,e){return parseInt(t,e||10)}function o(t){return"string"==typeof t}function n(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&n(t))}function s(t){return r(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!r(t,!0)||s(t)||!e||!e.name||"Object"===e.name)}function h(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function c(t,e,i){var n,r=o(e)&&!l(i),s=function(e,i){l(e)?t.setAttribute(i,e):r?(n=t.getAttribute(i))||"class"!==i||(n=t.getAttribute(i+"Name")):t.removeAttribute(i)};return o(e)?s(i,e):m(e,s),n}function p(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function d(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function u(e,i){t.isMS&&!t.svg&&i&&l(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),p(e.style,i)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function g(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function m(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function y(e,i,o){function n(i,o){var n=e.removeEventListener||t.removeEventListenerPolyfill;n&&n.call(e,i,o,!1)}function r(t){var o;if(e.nodeName){if(i){var r={};r[i]=!0}else r=t;m(r,(function(e,i){if(t[i])for(o=t[i].length;o--;)n(i,t[i][o].fn)}))}}var s="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(s,"hcEvents")){var a=s.hcEvents;i?(s=a[i]||[],o?(a[i]=s.filter((function(t){return o!==t.fn})),n(i,o)):(r(a),a[i]=[])):(r(a),delete s.hcEvents)}}function v(e,i,o,n){if(o=o||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var r=b.createEvent("Events");r.initEvent(i,!0,!0),o=p(r,o),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent(i,o)}else if(e.hcEvents){o.target||p(o,{preventDefault:function(){o.defaultPrevented=!0},target:e,type:i}),r=[];for(var s=e,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[i]&&(r.length&&(a=!0),r.unshift.apply(r,s.hcEvents[i])),s=Object.getPrototypeOf(s);a&&r.sort((function(t,e){return t.order-e.order})),r.forEach((function(t){!1===t.fn.call(e,o)&&o.preventDefault()}))}n&&!o.defaultPrevented&&n.call(e,o)}var x=t.charts,b=t.doc,S=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var C=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,o=t.length;for(i=0;i<o;i++)if(e(t[i],i))return t[i]};
1m({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(i,o){t[o]=function(t){var n;return e(32,!1,void 0,((n={})["Highcharts.".concat(o)]="use Array.".concat(i),n)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}}));var w,A=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(w?"":t)+e++}}();return S.jQuery&&(S.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[o(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):x[c(this[0],"data-highcharts-chart")]}),C={addEvent:function(e,i,o,n){void 0===n&&(n={});var r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={}),r=r.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var s=e.addEventListener||t.addEventListenerPolyfill;return s&&s.call(e,i,o,!!t.supportsPassiveEvents&&{passive:void 0===n.passive?-1!==i.indexOf("touch"):n.passive,capture:!1}),r[i]||(r[i]=[]),r[i].push({fn:o,order:"number"==typeof n.order?n.order:1/0}),r[i].sort((function(t,e){return t.order-e.order})),function(){y(e,i,o)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:c,clamp:function(t,e,i){return t>e?t<i?t:i:e},cleanRecursively:function t(e,i){var o={};return m(e,(function(n,s){r(e[s],!0)&&!e.nodeType&&i[s]?(n=t(e[s],i[s]),Object.keys(n).length&&(o[s]=n)):(r(e[s])||e[s]!==i[s]||s in e&&!(s in i))&&(o[s]=e[s])})),o},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:g,createElement:function(t,e,i,o,n){return t=b.createElement(t),e&&p(t,e),n&&u(t,{padding:"0",border:"none",margin:"0"}),i&&u(t,i),o&&o.appendChild(t),t},css:u,defined:l,destroyObjectProperties:function(t,e){m(t,(function(i,o){i&&i!==e&&i.destroy&&i.destroy(),delete t[o]}))},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:e,extend:p,extendClass:function(t,e){var i=function(){};return p(i.prototype=new t,e),i},find:C,fireEvent:v,getMagnitude:f,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&l(e);){var i=t.shift();if(void 0===i||"__proto__"===i)return;if(!l(e=e[i])||"function"==typeof e||"number"==typeof e.nodeType||e===S)return}return e},getStyle:function o(n,r,s){var a=t.getStyle||o;if("width"===r)return r=Math.min(n.offsetWidth,n.scrollWidth),(s=n.getBoundingClientRect&&n.getBoundingClientRect().width)<r&&s>=r-1&&(r=Math.floor(s)),Math.max(0,r-(a(n,"padding-left",!0)||0)-(a(n,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(a(n,"padding-top",!0)||0)-(a(n,"padding-bottom",!0)||0));if(S.getComputedStyle||e(27,!0),n=S.getComputedStyle(n,void 0)){var h=n.getPropertyValue(r);d(s,"opacity"!==r)&&(h=i(h))}return h},inArray:function(t,i,o){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:n,isClass:a,isDOMElement:s,isFunction:function(t){return"function"==typeof t},isNumber:h,isObject:r,isString:o,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,i={},o=function(t,e){return"object"!=typeof t&&(t={}),m(e,(function(i,n){"__proto__"!==n&&"constructor"!==n&&(!r(i,!0)||a(i)||s(i)?t[n]=e[n]:t[n]=o(t[n]||{},i))})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var n=e.length;for(t=0;t<n;t++)i=o(i,e[t]);return i},normalizeTickInterval:function(t,e,i,o,n){var r=t,s=t/(i=d(i,f(t)));for(e||(e=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter((function(t){return 0==t%1})):.1>=i&&(e=[1/i]))),o=0;o<e.length&&(r=e[o],!(n&&r*i>=t||!n&&s<=(e[o]+(e[o+1]||e[o]))/2));o++);return g(r*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:m,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}
1).top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:d,pInt:i,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:y,splat:function(t){return n(t)?t:[t]},stableSort:function(t,e){var i,o,n=t.length;for(o=0;o<n;o++)t[o].safeI=o;for(t.sort((function(t,o){return 0===(i=e(t,o))?t.safeI-o.safeI:i})),o=0;o<n;o++)delete t[o].safeI},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:A,useSerialIds:function(t){return w=d(t,w)},wrap:function(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},C})),e(i,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),e(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.isNumber,o=e.merge,n=e.pInt;return e=function(){function e(i){this.rgba=[NaN,NaN,NaN,NaN],this.input=i;var o=t.Color;return o&&o!==e?new o(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var i;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map((function(t){return new e(t[1])}));else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var o=t.length,n=parseInt(t.substr(1),16);7===o?i=[(16711680&n)>>16,(65280&n)>>8,255&n,1]:4===o&&(i=[(3840&n)>>4|(3840&n)>>8,(240&n)>>4|240&n,(15&n)<<4|15&n,1])}if(!i)for(n=e.parsers.length;n--&&!i;){var r=e.parsers[n];(o=r.regex.exec(t))&&(i=r.parse(o))}}i&&(this.rgba=i)},e.prototype.get=function(t){var e=this.input,n=this.rgba;if("object"==typeof e&&void 0!==this.stops){var r=o(e);return r.stops=[].slice.call(r.stops),this.stops.forEach((function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]})),r}return n&&i(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?"".concat(n[3]):"rgba("+n.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(var o=0;3>o;o++)e[o]+=n(255*t),0>e[o]&&(e[o]=0),255<e[o]&&(e[o]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var o=this.rgba,n=t.rgba;return i(o[0])&&i(n[0])?((t=1!==n[3]||1!==o[3])?"rgba(":"rgb(")+Math.round(n[0]+(o[0]-n[0])*(1-e))+","+Math.round(n[1]+(o[1]-n[1])*(1-e))+","+Math.round(n[2]+(o[2]-n[2])*(1-e))+(t?","+(n[3]+(o[3]-n[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.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(t){return[n(t[1]),n(t[2]),n(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),1]}}],e.None=new e(""),e}(),e})),e(i,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}})),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.win,o=e.defined,n=e.error,r=e.extend,s=e.isObject,a=e.merge,h=e.objectEach,l=e.pad,c=e.pick,p=e.splat,d=e.timeUnits,u=t.isSafari&&i.Intl&&i.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&i.Intl&&!i.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),o=i-this.getTimezoneOffset(e);return e.setTime(o),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()}
1,e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](i);var o=this.getTimezoneOffset(e);return o=e.getTime()-o,e.setTime(o),e["setUTC"+t](i),t=this.getTimezoneOffset(e),o=e.getTime()+t,e.setTime(o)}return this.useUTC||u&&"FullYear"===t?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){void 0===t&&(t={});var e=c(t.useUTC,!0);this.options=t=a(!0,this.options,t),this.Date=t.Date||i.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,i,o,n,r){if(this.useUTC){var s=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(s);s+=a;var h=this.getTimezoneOffset(s);a!==h?s+=h-a:a-36e5!==this.getTimezoneOffset(s-36e5)||f||(s-=36e5)}else s=new this.Date(t,e,c(i,1),c(o,0),c(n,0),c(r,0)).getTime();return s},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,o=e.getTimezoneOffset,r=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(r)return function(t){return 6e4*-r.tz(t,e.timezone).utcOffset()};n(25)}return this.useUTC&&o?function(t){return 6e4*o(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,i,n){if(!o(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var s=this,a=new this.Date(i),p=this.get("Hours",a),d=this.get("Day",a),u=this.get("Date",a),f=this.get("Month",a),g=this.get("FullYear",a),m=t.defaultOptions.lang,y=m&&m.weekdays,v=m&&m.shortWeekdays;return a=r({a:v?v[d]:y[d].substr(0,3),A:y[d],d:l(u),e:l(u,2," "),w:d,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(p),k:p,I:l(p%12||12),l:p%12||12,M:l(this.get("Minutes",a)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),h(a,(function(t,o){for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof t?t.call(s,i):t)})),n?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return s(t,!0)?t:{main:(t=p(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,n){var s,a=this,h=[],l={},p=new a.Date(e),u=t.unitRange,f=t.count||1;if(n=c(n,1),o(e)){if(a.set("Milliseconds",p,u>=d.second?0:f*Math.floor(a.get("Milliseconds",p)/f)),u>=d.second&&a.set("Seconds",p,u>=d.minute?0:f*Math.floor(a.get("Seconds",p)/f)),u>=d.minute&&a.set("Minutes",p,u>=d.hour?0:f*Math.floor(a.get("Minutes",p)/f)),u>=d.hour&&a.set("Hours",p,u>=d.day?0:f*Math.floor(a.get("Hours",p)/f)),u>=d.day&&a.set("Date",p,u>=d.month?1:Math.max(1,f*Math.floor(a.get("Date",p)/f))),u>=d.month){a.set("Month",p,u>=d.year?0:f*Math.floor(a.get("Month",p)/f));var g=a.get("FullYear",p)}u>=d.year&&a.set("FullYear",p,g-g%f),u===d.week&&(g=a.get("Day",p),a.set("Date",p,a.get("Date",p)-g+n+(g<n?-7:0))),g=a.get("FullYear",p),n=a.get("Month",p);var m=a.get("Date",p),y=a.get("Hours",p);for(e=p.getTime(),!a.variableTimezone&&a.useUTC||!o(i)||(s=i-e>4*d.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=p.getTime(),p=1;e<i;)h.push(e),e=u===d.year?a.makeTime(g+p*f,0):u===d.month?a.makeTime(g,n+p*f):!s||u!==d.day&&u!==d.week?s&&u===d.hour&&1<f?a.makeTime(g,n,m,y+p*f):e+u*f:a.makeTime(g,n,m+p*f*(u===d.day?1:7)),p++;h.push(e),u<=d.hour&&1e4>h.length&&h.forEach((function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")}))}return h.info=r(t,{higherRanks:l,totalRange:u*f}),h},e.prototype.getDateFormat=function(t,e,i,o){var n=this.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond";for(a in d){if(t===d.week&&+this.dateFormat("%w",e)===i&&"00:00:00.000"===n.substr(6)){var a="week";break}if(d[a]>t){a=s;break}if(r[a]&&n.substr(r[a])!=="01-01 00:00:00.000".substr(r[a]))break;"week"!==a&&(s=a)}return this.resolveDTLFormat(o[a]).main},e}(),e})),e(i,"Core/Defaults.js",[i["Core/Chart/ChartDefaults.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palettes.js"],i["Core/Time.js"],i["Core/Utilities.js"]],(function(t,e,
1i,o,n,r){e=e.parse;var s=r.merge,a={colors:o.colors,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:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:i.svg,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:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:i.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.chart.styledMode=!1;var h=new n(s(a.global,a.time));return t={defaultOptions:a,defaultTime:h,getOptions:function(){return a},setOptions:function(t){return s(!0,a,t),(t.time||t.global)&&(i.time?i.time.update(s(a.global,a.time,t.global,t.time)):i.time=h),a}}})),e(i,"Core/Animation/Fx.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=t.parse,n=e.win,r=i.isNumber,s=i.objectEach;return function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=this.now||0,o=[];if(1!==i&&e&&t)if(e.length===t.length&&1>i)for(var n=0;n<t.length;n++){for(var s=e[n],a=t[n],h=[],l=0;l<a.length;l++){var c=s[l],p=a[l];r(c)&&r(p)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=c+i*(p-c):h[l]=p}o.push(h)}else o=t;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=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,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,s=r.options,a=function(t){return!a.stopped&&r.step(t)},h=n.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&h(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=o,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&h(l)):(delete s.curAnim[this.prop],s.complete&&0===Object.keys(s.
1curAnim).length&&s.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,i=this.options,o=this.elem,n=i.complete,r=i.duration,a=i.curAnim;if(o.attr&&!o.element)t=!1;else if(t||e>=r+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;s(a,(function(t){!0!==t&&(h=!1)})),h&&n&&n.call(o),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,i){function o(t,e){for(;t.length<d;){var i=t[0],o=e[d-t.length];o&&"M"===i[0]&&(t[0]="C"===o[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),h&&(i=t.pop(),t.push(t[t.length-1],i))}}function n(t,e){for(;t.length<d;)if("C"===(e=t[Math.floor(t.length/l)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),h){var i=t[Math.floor(t.length/l)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}var s=t.startX,a=t.endX;i=i.slice();var h=t.isArea,l=h?2:1;if(!(e=e&&e.slice()))return[i,i];if(s&&a&&a.length){for(t=0;t<s.length;t++){if(s[t]===a[0]){var c=t;break}if(s[0]===a[a.length-s.length+t]){c=t;var p=!0;break}if(s[s.length-1]===a[a.length-s.length+t]){c=s.length-t;break}}void 0===c&&(e=[])}if(e.length&&r(c)){var d=i.length+c*l;p?(o(e,i),n(i,e)):(o(i,e),n(e,i))}return[e,i]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)},t.timers=[],t}()})),e(i,"Core/Animation/AnimationUtilities.js",[i["Core/Animation/Fx.js"],i["Core/Utilities.js"]],(function(t,e){function i(t){return h(t)?l({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function o(e,i){for(var o=t.timers.length;o--;)t.timers[o].elem!==e||i&&i!==t.timers[o].prop||(t.timers[o].stopped=!0)}var n=e.defined,r=e.getStyle,s=e.isArray,a=e.isNumber,h=e.isObject,l=e.merge,c=e.objectEach,p=e.pick;return{animate:function(e,i,n){var p,d,u,f="";if(!h(n)){var g=arguments;n={duration:g[2],easing:g[3],complete:g[4]}}a(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=l(i),c(i,(function(a,h){o(e,h),u=new t(e,n,h),d=void 0,"d"===h&&s(i.d)?(u.paths=u.initPath(e,e.pathArray,i.d),u.toD=i.d,p=0,d=1):e.attr?p=e.attr(h):(p=parseFloat(r(e,h))||0,"opacity"!==h&&(f="px")),d||(d=a),"string"==typeof d&&d.match("px")&&(d=d.replace(/px/g,"")),u.run(p,d,f)}))},animObject:i,getDeferredAnimation:function(t,e,o){var r=i(e),s=0,a=0;return(o?[o]:t.series).forEach((function(t){t=i(t.options.animation),s=e&&n(e.defer)?r.defer:Math.max(s,t.duration+t.defer),a=Math.min(r.duration,t.duration)})),t.renderer.forExport&&(s=0),{defer:Math.max(0,s-a),duration:Math.min(s,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=p(t,e.options.chart.animation,!0)},stop:o}})),e(i,"Core/Renderer/HTML/AST.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.SVG_NS,o=e.attr,n=e.createElement,r=e.css,s=e.error,a=e.isFunction,h=e.isString,l=e.objectEach,c=e.splat,p=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),d=p?p.createHTML(""):"";try{var u=!!(new DOMParser).parseFromString(d,"text/html")}catch(t){u=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return l(t,(function(i,o){var n=!0;-1===e.allowedAttributes.indexOf(o)&&(n=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(n=h(i)&&e.allowedReferences.some((function(t){return 0===i.indexOf(t)}))),n||(s(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete t[o]),h(i)&&t[o]&&(t[o]=i.replace(/</g,"<"))})),t},e.parseStyle=function(t){return t.split(";").reduce((function(t,e){e=e.split(":").map((function(t){return t.trim()}));var i=e.shift();return i&&e.length&&(t[i.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]=e.join(":")),t}),{})},e.setElementHTML=function(t,i){t.innerHTML=e.emptyHTML,i&&new e(i).addToDOM(t)},e.prototype.addToDOM=function(n){return function n(a,h){var p;
1return c(a).forEach((function(a){var c=a.tagName,d=a.textContent?t.doc.createTextNode(a.textContent):void 0,u=e.bypassHTMLFiltering;if(c)if("#text"===c)var f=d;else if(-1!==e.allowedTags.indexOf(c)||u){c=t.doc.createElementNS("svg"===c?i:h.namespaceURI||i,c);var g=a.attributes||{};l(a,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(g[e]=t)})),o(c,u?g:e.filterUserAttributes(g)),a.style&&r(c,a.style),d&&c.appendChild(d),n(a.children||[],c),f=c}else s(33,!1,void 0,{"Invalid tagName in config":c});f&&h.appendChild(f),p=f})),p}(this.nodes,n)},e.prototype.parseMarkup=function(t){var i=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),u)t=(new DOMParser).parseFromString(p?p.createHTML(t):t,"text/html");else{var o=n("div");o.innerHTML=t,t={body:o}}var r=function(t,i){var o=t.nodeName.toLowerCase(),n={tagName:o};if("#text"===o&&(n.textContent=t.textContent||""),o=t.attributes){var s={};[].forEach.call(o,(function(t){"data-style"===t.name?n.style=e.parseStyle(t.value):s[t.name]=t.value})),n.attributes=s}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,(function(t){r(t,a)})),a.length&&(n.children=a)}i.push(n)};return[].forEach.call(t.body.childNodes,(function(t){return r(t,i)})),i},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=d,e.bypassHTMLFiltering=!1,e}(),a})),e(i,"Core/FormatUtilities.js",[i["Core/Defaults.js"],i["Core/Utilities.js"]],(function(t,e){function i(t,e,i,n){t=+t||0,e=+e;var r=o.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),p=e;if(-1===e)e=Math.min(l,20);else if(s(e)){if(e&&c[1]&&0>c[1]){var d=e+ +c[1];0<=d?(c[0]=(+c[0]).toExponential(d).split("e")[0],e=d):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;d=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var u=3<(l=String(h(d))).length?l.length%3:0;return i=a(i,r.decimalPoint),n=a(n,r.thousandsSep),t=(0>t?"-":"")+(u?l.substr(0,u)+n:""),t=0>+c[1]&&!p?"0":t+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+n),e&&(t+=i+d.slice(-e)),c[1]&&0!=+t&&(t+="e"+c[1]),t}var o=t.defaultOptions,n=t.defaultTime,r=e.getNestedProperty,s=e.isNumber,a=e.pick,h=e.pInt;return{dateFormat:function(t,e,i){return n.dateFormat(t,e,i)},format:function(t,e,s){var a="{",h=!1,l=/f$/,c=/\.([0-9])/,p=o.lang,d=s&&s.time||n;s=s&&s.numberFormatter||i;for(var u=[];t;){var f=t.indexOf(a);if(-1===f)break;var g=t.slice(0,f);if(h){if(g=g.split(":"),a=r(g.shift()||"",e),g.length&&"number"==typeof a)if(g=g.join(":"),l.test(g)){var m=parseInt((g.match(c)||["","-1"])[1],10);null!==a&&(a=s(a,m,p.decimalPoint,-1<g.indexOf(",")?p.thousandsSep:""))}else a=d.dateFormat(g,a);u.push(a)}else u.push(g);t=t.slice(f+1),a=(h=!h)?"}":"{"}return u.push(t),u.join("")},numberFormat:i}})),e(i,"Core/Renderer/RendererUtilities.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.clamp,o=t.pick,n=t.stableSort;return function(t){t.distribute=function t(e,r,s){var a,h=e,l=h.reducedLen||r,c=function(t,e){return(e.rank||0)-(t.rank||0)},p=function(t,e){return t.target-e.target},d=!0,u=[],f=0;for(a=e.length;a--;)f+=e[a].size;if(f>l){for(n(e,c),f=a=0;f<=l;)f+=e[a].size,a++;u=e.splice(a-1,e.length)}for(n(e,p),e=e.map((function(t){return{size:t.size,targets:[t.target],align:o(t.align,.5)}}));d;){for(a=e.length;a--;)l=e[a],c=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=i(c-l.size*l.align,0,r-l.size);for(a=e.length,d=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>r&&(e[a-1].pos=r-e[a-1].size),e.splice(a,1),d=!0)}return h.push.apply(h,u),a=0,e.some((function(e){var i=0;return(e.targets||[]).some((function(){return h[a].pos=e.pos+i,void 0!==s&&Math.abs(h[a].pos-h[a].target)>
1s?(h.slice(0,a+1).forEach((function(t){return delete t.pos})),h.reducedLen=(h.reducedLen||r)-.1*r,h.reducedLen>.1*r&&t(h,r,s),!0):(i+=h[a].size,a++,!1)}))})),n(h,p),h}}(e||(e={})),e})),e(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n=t.animate,r=t.animObject,s=t.stop,a=i.deg2rad,h=i.doc,l=i.svg,c=i.SVG_NS,p=i.win,d=o.addEvent,u=o.attr,f=o.createElement,g=o.css,m=o.defined,y=o.erase,v=o.extend,x=o.fireEvent,b=o.isArray,S=o.isFunction,C=o.isString,w=o.merge,A=o.objectEach,M=o.pick,k=o.pInt,T=o.syncTimeout,P=o.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=c,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=M(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var o=this.zIndexSetter();return o||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "),t!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i){var o,n,r,s={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||C(i))&&(this.alignTo=o=i||"renderer",y(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),i=M(i,a[o],"scrollablePlotBox"===o?a.plotBox:void 0,a),o=t.align;var l=t.verticalAlign;return a=(i.x||0)+(t.x||0),h=(i.y||0)+(t.y||0),"right"===o?n=1:"center"===o&&(n=2),n&&(a+=(i.width-(t.width||0))/n),s[e?"translateX":"x"]=Math.round(a),"bottom"===l?r=1:"middle"===l&&(r=2),r&&(h+=(i.height-(t.height||0))/r),s[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var o=this,s=r(M(e,this.renderer.globalAnimation,!0));return e=s.defer,M(h.hidden,h.msHidden,h.webkitHidden,!1)&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),T((function(){o.element&&n(o,t,s)}),e)):(this.attr(t,void 0,i||s.complete),A(t,(function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var o=t.split(" ");if(t=o[o.length-1],(o=o[0])&&"none"!==o&&i.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*Number(e)+i})),this.removeTextOutline();var n=h.createElementNS(c,"tspan");u(n,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":o,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),n.appendChild(e)}));var r=0;[].forEach.call(t.querySelectorAll("text tspan"),(function(t){r+=Number(t.getAttribute("dy"))})),(o=h.createElementNS(c,"tspan")).textContent="â",u(o,{x:Number(e.getAttribute("x")),dy:-r}),n.appendChild(o),t.insertBefore(n,t.firstChild)}},t.prototype.attr=function(t,e,i,o){var n,r,a,h=this.element,l=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var p=t;(t={})[p]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(A(t,(function(e,i){r=!1,o||s(this,i),this.symbolName&&-1!==l.indexOf(i)&&(n||(this.symbolAttr(t),n=!0),r=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),r||((a=this[i+"Setter"]||this._defaultSetter).call(this,e,i,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,a))}),this),this.afterSetters()),i&&i.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),m(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,i,o){var n,r,s,a,h,l,c,p,d,u,f,g=this.renderer,y=[];x(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(s=t[r],h=g.gradients,l=t.stops,d=o.radialReference,b(s)&&(t[r]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&d&&!m(s.gradientUnits)&&(a=s,s=w(s,g.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"})),A(s,(function(t,e){"id"!==e&&y.push(e,t)})),A(l,(function(t){y.push(t)})),y=y.join(","),h[y])u=h[y].attr("id");else{s.id=u=P();var v=h[y]=g.createElement(r).attr(s).add(g.defs);v.radAttr=a,v.stops=[],l.forEach((function(t){0===t[1].indexOf("rgba")?(n=e.parse(t[1]),c=n.get("rgb"),p=n.get("a")):(c=t[1],p=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":p}).add(v),v.stops.push(t)}))}f="url("+g.url+"#"+u+")",o.setAttribute(i,f),o.gradient=y,t.toString=function(){return f}}}))},t.prototype.css=function(t){var e=this.styles,i={},o=this.element,n=!e;if(t.color&&(t.fill=t.color),e&&A(t,(function(t,o){e&&e[o]!==t&&(i[o]=t,n=!0)})),n){if(e&&(t=v(e,i)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&t.width)var r=this.textWidth=k(t.width);this.styles=t,r&&!l&&this.renderer.forExport&&delete t.width;var s=w(t);o.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(t){return s&&delete s[t]})),g(o,s),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var i=t.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(t=i.length;t--;)i[t]=""+k(i[t])*M(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},i=t.renderer,o=e.ownerSVGElement,n=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,s(t),t.clipPath&&o){var r=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(r.element.i
1d)&&t.removeAttribute("clip-path")})),t.clipPath=r.destroy()}if(t.stops){for(o=0;o<t.stops.length;o++)t.stops[o].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)e=n.parentGroup,t.safeRemoveChild(n.div),delete n.div,n=e;t.alignTo&&y(i.alignedObjects,t),A(t,(function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]}))},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},t.prototype.dSetter=function(t,e,i){b(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((function(t,e,i){return e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()}),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:M(t,150),complete:function(){e.hide()}})},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.getBBox=function(e,i){var o=this.alignValue,n=this.element,r=this.renderer,s=this.styles,h=this.textStr,l=r.cache,c=r.cacheKeys,p=n.namespaceURI===this.SVG_NS;i=M(i,this.rotation,0);var d,u=r.styledMode?n&&t.prototype.getStyle.call(n,"font-size"):s&&s.fontSize;if(m(h)){var f=h.toString();-1===f.indexOf("<")&&(f=f.replace(/[0-9]/g,"0")),f+=["",i,u,this.textWidth,o,s&&s.textOverflow,s&&s.fontWeight].join()}if(f&&!e&&(d=l[f]),!d){if(p||r.forExport){try{var y=this.fakeTS&&function(t){var e=n.querySelector(".highcharts-text-outline");e&&g(e,{display:t})};S(y)&&y("none"),d=n.getBBox?v({},n.getBBox()):{width:n.offsetWidth,height:n.offsetHeight,x:0,y:0},S(y)&&y("")}catch(t){}(!d||0>d.width)&&(d={x:0,y:0,width:0,height:0})}else d=this.htmlGetBBox();if(r.isSVG&&(r=d.width,e=d.height,p&&(d.height=e={"11px,17":14,"13px,20":16}[""+(u||"")+",".concat(Math.round(e))]||e),i)){p=Number(n.getAttribute("y")||0)-d.y,o={right:1,center:.5}[o||0]||0,s=i*a,u=(i-90)*a;var x=r*Math.cos(s);i=r*Math.sin(s),y=Math.cos(u),s=Math.sin(u),x=(y=(u=(r=d.x+o*(r-x)+p*y)+x)-e*y)-x,i=(e=(o=(p=d.y+p-o*i+p*s)+i)-e*s)-i,d.x=Math.min(r,u,y,x),d.y=Math.min(p,o,e,i),d.width=Math.max(r,u,y,x)-d.x,d.height=Math.max(p,o,e,i)-d.y}if(f&&(""===h||0<d.height)){for(;250<c.length;)delete l[c.shift()];l[f]||c.push(f),l[f]=d}}return d},t.prototype.getStyle=function(t){return p.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?f(e):h.createElementNS(this.SVG_NS,e),this.renderer=t,x(this,"afterInit")},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=d(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){this.opacity=t=Number(Number(t).toFixed(3)),i.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(C(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,e){var i=this;e=w(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var o=this.renderer.url,n=this.text||this,r=n.textPath,s=e.attributes,a=e.enabled;return t=t||r&&r.path,r&&r.undo(),t&&a?(e=d(n,"afterModifyTree",(function(e){if(t&&a){var r=t.attr("id");r||t.attr("id",r=P());var h={x:0,y:0};m(s.dx)&&(h.dx=s.dx,delete s.dx),m(s.dy)&&(h.dy=s.dy,delete s.dy),n.attr(h),i.attr({transform:""}),i.box&&(i.box=i.box.destroy()),h=e.nodes.slice(0),e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:v(s,{"text-anchor":s.textAnchor,href:""+o+"#".concat(r)}),children:h}}})),n.textPath={path:t,undo:e}):(n.attr({dx:0,dy:0}),delete n.textPath),this.added&&(n.textCache="",this.renderer.buildText(n)),this}
1,t.prototype.shadow=function(t,e,i){var o=[],n=this.element,r=this.oldShadowOptions,s=this.parentGroup,a=s&&90===s.rotation;s={color:"#000000",offsetX:a?-1:1,offsetY:a?-1:1,opacity:.15,width:3};var h,l=!1;if(!0===t?h=s:"object"==typeof t&&(h=v(s,t)),h&&(h&&r&&A(h,(function(t,e){t!==r[e]&&(l=!0)})),l&&this.destroyShadows(),this.oldShadowOptions=h),h){if(!this.shadows){s=h.opacity/h.width;var c=a?"translate(".concat(h.offsetY,", ").concat(h.offsetX,")"):"translate(".concat(h.offsetX,", ").concat(h.offsetY,")");for(a=1;a<=h.width;a++){var p=n.cloneNode(!1),d=2*h.width+1-2*a;u(p,{stroke:t.color||"#000000","stroke-opacity":s*a,"stroke-width":d,transform:c,fill:"none"}),p.setAttribute("class",(p.getAttribute("class")||"")+" highcharts-shadow"),i&&(u(p,"height",Math.max(u(p,"height")-d,0)),p.cutHeight=d),e?e.element.appendChild(p):n.parentNode&&n.parentNode.insertBefore(p,n),o.push(p)}this.shadows=o}}else this.destroyShadows();return this},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=k(t);else if(""!==t){var i=h.createElementNS(c,"rect");u(i,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(i){e[i]=M(t[i],e[i])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||h.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(M(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,i){var o=this.shadows;if(o)for(var n=o.length;n--;)i.call(o[n],"height"===t?Math.max(e-(o[n].cutHeight||0),0):"d"===t?this.d:e,t,o[n])},t.prototype.updateTransform=function(){var t=this.element,e=this.matrix,i=this.rotation;i=void 0===i?0:i;var o=this.scaleX,n=this.scaleY,r=this.translateX,s=this.translateY;r=["translate("+(void 0===r?0:r)+","+(void 0===s?0:s)+")"],m(e)&&r.push("matrix("+e.join(",")+")"),i&&r.push("rotate("+i+" "+M(this.rotationOriginX,t.getAttribute("x"),0)+" "+M(this.rotationOriginY,t.getAttribute("y")||0)+")"),(m(o)||m(n))&&r.push("scale("+M(o,1)+" "+M(n,1)+")"),r.length&&!(this.text||this).textPath&&t.setAttribute("transform",r.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i=this.renderer,o=this.parentGroup,n=(o||i).element||i.box,r=this.element;i=n===i.box;var s,a=!1,h=this.added;if(m(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):m(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&o&&(o.handleZ=!0),s=(e=n.childNodes).length-1;0<=s&&!a;s--){h=(o=e[s]).getAttribute("data-z-index");var l=!m(h);o!==r&&(0>t&&l&&!i&&!s?(n.insertBefore(r,e[s]),a=!0):(k(h)<=t||l&&(!m(t)||0<=t))&&(n.insertBefore(r,e[s+1]||null),a=!0))}a||(n.insertBefore(r,e[i?3:0]||null),a=!0)}return a},t}(),t.prototype.strokeSetter=t.prototype.fillSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(i,"Core/Renderer/RendererRegistry.js",[i["Core/Globals.js"]],(function(t){var e;return function(e){var i;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=i),e.rendererTypes[t]||e.rendererTypes[i]},e.registerRendererType=function(o,n,r){e.rendererTypes[o]=n,i&&!r||(i=o,t.Renderer=n)}}(e||(e={})),e}
1)),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=e.defined,n=e.extend,r=e.isNumber,s=e.merge,a=e.pick,h=e.removeEvent;return function(e){function l(t,i,o,n,r,s,a,h,c,p){var d,u=e.call(this)||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.init(t,"g"),u.textStr=i,u.x=o,u.y=n,u.anchorX=s,u.anchorY=a,u.baseline=c,u.className=p,u.addClass("button"===p?"highcharts-no-tooltip":"highcharts-label"),p&&u.addClass("highcharts-"+p),u.text=t.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof r&&((d=/^url\((.*?)\)$/.test(r))||u.renderer.symbols[r])&&(u.symbolKey=r),u.bBox=l.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||d,u.deferredAttr={},u.alignFactor=0,u}return i(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var i={};e=s(e),l.textProps.forEach((function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])})),this.text.css(i),"fontSize"in i||"fontWeight"in i?this.updateTextPadding():("width"in i||"textOverflow"in i)&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){h(this.element,"mouseenter"),h(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){r(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,i={},s=this.padding,a=this.bBox=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!o(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*s,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=s+Math.min((this.text.firstLineMetrics||e).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),i.x=t,i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(n(i,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=a(this.paddingLeft,this.padding);o(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||
1(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e}},l.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)})),e(i,"Core/Renderer/SVG/Symbols.js",[i["Core/Utilities.js"]],(function(t){function e(t,e,i,o,r){var a=[];if(r){var h=r.start||0,l=s(r.r,i);i=s(r.r,o||i);var c=(r.end||0)-.001;o=r.innerR;var p=s(r.open,.001>Math.abs((r.end||0)-h-2*Math.PI)),d=Math.cos(h),u=Math.sin(h),f=Math.cos(c),g=Math.sin(c);h=s(r.longArc,.001>c-h-Math.PI?0:1),a.push(["M",t+l*d,e+i*u],["A",l,i,0,h,s(r.clockwise,1),t+l*f,e+i*g]),n(o)&&a.push(p?["M",t+o*f,e+o*g]:["L",t+o*f,e+o*g],["A",o,o,0,h,n(r.clockwise)?1-r.clockwise:0,t+o*d,e+o*u]),p||a.push(["Z"])}return a}function i(t,e,i,n,r){return r&&r.r?o(t,e,i,n,r):[["M",t,e],["L",t+i,e],["L",t+i,e+n],["L",t,e+n],["Z"]]}function o(t,e,i,o,n){return[["M",t+(n=n&&n.r||0),e],["L",t+i-n,e],["C",t+i,e,t+i,e,t+i,e+n],["L",t+i,e+o-n],["C",t+i,e+o,t+i,e+o,t+i-n,e+o],["L",t+n,e+o],["C",t,e+o,t,e+o,t,e+o-n],["L",t,e+n],["C",t,e,t,e,t+n,e]]}var n=t.defined,r=t.isNumber,s=t.pick;return{arc:e,callout:function(t,e,i,n,s){var a=Math.min(s&&s.r||0,i,n),h=a+6,l=s&&s.anchorX;s=s&&s.anchorY||0;var c=o(t,e,i,n,{r:a});return r(l)?(t+l>=i?s>e+h&&s<e+n-h?c.splice(3,1,["L",t+i,s-6],["L",t+i+6,s],["L",t+i,s+6],["L",t+i,e+n-a]):c.splice(3,1,["L",t+i,n/2],["L",l,s],["L",t+i,n/2],["L",t+i,e+n-a]):0>=t+l?s>e+h&&s<e+n-h?c.splice(7,1,["L",t,s+6],["L",t-6,s],["L",t,s-6],["L",t,e+a]):c.splice(7,1,["L",t,n/2],["L",l,s],["L",t,n/2],["L",t,e+a]):s&&s>n&&l>t+h&&l<t+i-h?c.splice(5,1,["L",l+6,e+n],["L",l,e+n+6],["L",l-6,e+n],["L",t+a,e+n]):s&&0>s&&l>t+h&&l<t+i-h&&c.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",i-a,e]),c):c},circle:function(t,i,o,n){return e(t+o/2,i+n/2,o/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o/2],["L",t+i/2,e+o],["L",t,e+o/2],["Z"]]},rect:i,roundedRect:o,square:i,triangle:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,i,o){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+o],["Z"]]}}})),e(i,"Core/Renderer/SVG/TextBuilder.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=e.doc,n=e.SVG_NS,r=e.win,s=i.attr,a=i.extend,h=i.fireEvent,l=i.isString,c=i.objectEach,p=i.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,i=e.element,n=e.renderer,r=p(e.textStr,"").toString(),s=-1!==r.indexOf("<"),a=i.childNodes;n=this.width&&!e.added&&n.box;var h=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(h!==e.textCache){for(e.textCache=h,delete e.actualWidth,h=a.length;h--;)i.removeChild(a[h]);s||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))?""!==r&&(n&&n.appendChild(i),r=new t(r),this.modifyTree(r.nodes),r.addToDOM(i),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("â¦")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),n&&n.removeChild(i)):i.appendChild(o.createTextNode(this.unescapeEntities(r))),l(this.textOutline)&&e.a
1pplyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,a=s(i.element,"x");for(i.firstLineMetrics=void 0;(t=i.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)i.element.removeChild(t);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),(function(t,o){t.nextSibling&&t.previousSibling&&(0===o&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(void 0,t.previousSibling)),s(t,{dy:e.getLineHeight(t.nextSibling),x:a}))}));var h=this.width||0;if(h){var l=function(t,r){var l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),p=!e.noWrap&&(1<c.length||1<i.element.childNodes.length),d=e.getLineHeight(r),u=0,f=i.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,h-parseInt(e.fontSize||12,10)),(function(t,e){return t.substring(0,e)+"â¦"}));else if(p){for(l=[],p=[];r.firstChild&&r.firstChild!==t;)p.push(r.firstChild),r.removeChild(r.firstChild);for(;c.length;)c.length&&!e.noWrap&&0<u&&(l.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,c,0===u&&f||0,h,(function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")})),f=i.actualWidth,u++;p.forEach((function(e){r.insertBefore(e,t)})),l.forEach((function(e){r.insertBefore(o.createTextNode(e),t),(e=o.createElementNS(n,"tspan")).textContent="â",s(e,{dy:d,x:a}),r.insertBefore(e,t)}))}},c=function(t){[].slice.call(t.childNodes).forEach((function(e){e.nodeType===r.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),c(e))}))};c(i.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===r.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,i=function(o,n){var r=o.attributes;r=void 0===r?{}:r;var s=o.children,h=o.style;h=void 0===h?{}:h;var l=o.tagName,c=e.renderer.styledMode;"b"===l||"strong"===l?c?r.class="highcharts-strong":h.fontWeight="bold":"i"!==l&&"em"!==l||(c?r.class="highcharts-emphasized":h.fontStyle="italic"),h&&h.color&&(h.fill=h.color),"br"===l?(r.class="highcharts-br",o.textContent="â",(n=t[n+1])&&n.textContent&&(n.textContent=n.textContent.replace(/^ +/gm,""))):"a"===l&&s&&s.some((function(t){return"#text"===t.tagName}))&&(o.children=[{children:s,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(o.tagName="tspan"),a(o,{attributes:r,style:h}),s&&s.filter((function(t){return"#text"!==t.tagName})).forEach(i)};t.forEach(i),h(this.svgElement,"afterModifyTree",{nodes:t})},e.prototype.truncate=function(t,e,i,o,n,r){var s,a=this.svgElement,h=a.renderer,l=a.rotation,c=[],p=i?1:0,d=(e||i||"").length,u=d,f=function(n,s){s=s||n;var l=t.parentNode;if(l&&void 0===c[s])if(l.getSubStringLength)try{c[s]=o+l.getSubStringLength(0,i?s+1:s)}catch(t){}else h.getSpanWidth&&(t.textContent=r(e||i,n),c[s]=o+h.getSpanWidth(a,t));return c[s]};a.rotation=0;var g=f(t.textContent.length);if(o+g>n){for(;p<=d;)u=Math.ceil((p+d)/2),i&&(s=r(i,u)),g=f(u,s&&s.length-1),p===d?p=d+1:g>n?d=u-1:p=u;0===d?t.textContent="":e&&d===e.length-1||(t.textContent=s||r(e||i,u))}i&&i.splice(0,u),a.actualWidth=g,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return c(this.renderer.escapes,(function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),o))})),t},e}()})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s,a,h){var l,c=i.charts,p=i.deg2rad,d=i.doc,u=i.isFirefox,f=i.isMS,g=i.isWebKit,m=i.noop,y=i.SVG_NS,v=i.symbolSizes,x=i.win,b=h.addEvent,S=h.attr,C=h.createElement,w=h.css,A=h.defined,M=h.destroyObjectProperties,k=h.extend,T=h.isArray,P=h.isNumber,E=h.isObject,O=h.isString,D=h.merge,L=h.pick,B=h.pInt,j=h.uniqueKey;return i=function(){function i(t,e,i,o,n,r,s){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,o,n,r,s)}
1return i.prototype.init=function(t,e,i,o,n,r,s){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=h.element;s||h.css(this.getStyle(o)),t.appendChild(l),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=n,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),u&&t.getBoundingClientRect&&((e=function(){w(t,{left:0,top:0}),a=t.getBoundingClientRect(),w(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(x,"resize",e))},i.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},i.prototype.getReferenceURL=function(){if((u||g)&&d.getElementsByTagName("base").length){if(!A(l)){var e=j();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(d.body),w(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=d.elementFromPoint(6,6);l="hitme"===(i&&i.id),d.body.removeChild(e)}if(l)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},i.prototype.getStyle=function(t){return this.style=k({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},i.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},i.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},i.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),M(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},i.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},i.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},i.prototype.buildText=function(t){new a(t).buildSVG()},i.prototype.getContrast=function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map((function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)})))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"},i.prototype.button=function(e,i,o,n,r,s,a,h,l,c){void 0===r&&(r={});var p=this.label(e,i,o,l,void 0,void 0,c,void 0,"button"),d=this.styledMode;e=r.states||{};var u=0;delete(r=D(r)).states;var g=D({color:"#333333",cursor:"pointer",fontWeight:"normal"},r.style);delete r.style;var m=t.filterUserAttributes(r);if(p.attr(D({padding:8,r:2},m)),!d){m=D({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},m);var y=(s=D(m,{fill:"#e6e6e6"},t.filterUserAttributes(s||e.hover||{}))).style;delete s.style;var v=(a=D(m,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var x=(h=D(m,{style:{color:"#cccccc"}},t.filterUserAttributes(h||e.disabled||{}))).style;delete h.style}return b(p.element,f?"mouseover":"mouseenter",(function(){3!==u&&p.setState(1)})),b(p.element,f?"mouseout":"mouseleave",(function(){3!==u&&p.setState(u)})),p.setState=function(t){1!==t&&(p.state=u=t),p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),d||(p.attr([m,s,a,h][t||0]),E(t=[g,y,v,x][t||0])&&p.css(t))},d||(p.attr(m).css(k({cursor:"default"},g)),c&&p.text.css({pointerEvents:"none"})),p.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==u&&n.call(p,t)}))},i.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var o=t[0],n=t[1];return A(o[1])&&o[1]===n[1]&&(o[1]=n[1]=Math[i](o[1])-e%2/2),A(o[2])&&o[2]===n[2]&&(o[2]=n[2]=Math[i](o[2])+e%2/2),t},i.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return T(t)?e.d=t:E(t)&&k(e,t),this.createElement("path").attr(e)}
1,i.prototype.circle=function(t,e,i){return t=E(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},i.prototype.arc=function(t,e,i,o,n,r){return E(t)?(e=(o=t).y,i=o.r,t=o.x):o={innerR:o,start:n,end:r},(t=this.symbol("arc",t,e,i,i,o)).r=i,t},i.prototype.rect=function(t,e,i,o,n,r){n=E(t)?t.r:n;var s=this.createElement("rect");return t=E(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)},this.styledMode||(void 0!==r&&(t["stroke-width"]=r,t=s.crisp(t)),t.fill="none"),n&&(t.r=n),s.rSetter=function(t,e,i){s.r=t,S(i,{rx:t,ry:t})},s.rGetter=function(){return s.r||0},s.attr(t)},i.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:L(i,!0)?void 0:0}),this.alignElements()},i.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},i.prototype.image=function(t,e,i,o,n,r){var s={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};P(e)&&(s.x=e),P(i)&&(s.y=i),P(o)&&(s.width=o),P(n)&&(s.height=n);var h=this.createElement("image").attr(s);return e=function(e){a(h.element,t),r.call(h,e)},r?(a(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i=new x.Image,b(i,"load",e),i.src=t,i.complete&&e({})):a(h.element,t),h},i.prototype.symbol=function(t,e,i,o,n,r){var s,a=this,h=/^url\((.*?)\)$/,l=h.test(t),p=!l&&(this.symbols[t]?t:"circle"),u=p&&this.symbols[p];if(u){"number"==typeof e&&(s=u.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,n||0,r));var f=this.path(s);a.styledMode||f.attr("fill","none"),k(f,{symbolName:p||void 0,x:e,y:i,width:o,height:n}),r&&k(f,r)}else if(l){var g=t.match(h)[1],m=f=this.image(g);m.imgwidth=L(v[g]&&v[g].width,r&&r.width),m.imgheight=L(v[g]&&v[g].height,r&&r.height);var y=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach((function(t){m[t+"Setter"]=function(t,e){this[e]=t,t=this.alignByTranslate;var i=this.element,o=this.width,n=this.height,s=this.imgwidth,a=this.imgheight,h=this["img"+e];if(A(h)){var l=1;r&&"within"===r.backgroundSize&&o&&n?(l=Math.min(o/s,n/a),h=Math.round(h*l),S(i,{width:Math.round(s*l),height:Math.round(a*l)})):i&&i.setAttribute(e,h),t||this.translate(((o||0)-h*l)/2,((n||0)-h*l)/2)}}})),A(e)&&m.attr({x:e,y:i}),m.isImg=!0,A(m.imgwidth)&&A(m.imgheight)?y(m):(m.attr({width:0,height:0}),C("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this)),v[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&y(m),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f},i.prototype.clipRect=function(t,e,i,o){var n=j()+"-",r=this.createElement("clipPath").attr({id:n}).add(this.defs);return(t=this.rect(t,e,i,o,0).add(r)).id=n,t.clipPath=r,t.count=0,t},i.prototype.text=function(t,e,i,o){var n={};return!o||!this.allowHTML&&this.forExport?(n.x=Math.round(e||0),i&&(n.y=Math.round(i)),A(t)&&(n.text=t),t=this.createElement("text").attr(n),(!o||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,i){for(var o,n=i.getElementsByTagName("tspan"),r=i.getAttribute(e),s=0;s<n.length;s++)(o=n[s]).getAttribute(e)===r&&o.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},i.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!x.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&n.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?B(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},i.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*p),4)),{x:-t/3*Math.sin(e*p),y:o}},i.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n<t.length;n++)O(i[0])&&P(t[n])&&i.length===o[i[0].toUpperCase()]&&t.splice(n,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[n]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[n]);return e.push(i.slice(0)),e}
1,i.prototype.label=function(t,e,i,o,n,s,a,h,l){return new r(this,t,e,i,o,n,s,a,h,l)},i.prototype.alignElements=function(){this.alignedObjects.forEach((function(t){return t.align()}))},i}(),k(i.prototype,{Element:n,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:s,draw:m}),o.registerRendererType("svg",i,!0),i})),e(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=t.isFirefox,r=t.isMS,s=t.isWebKit,a=t.win,h=i.css,l=i.defined,c=i.extend,p=i.pick,d=i.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var i=e.prototype,o=t.prototype;o.getSpanCorrection=i.getSpanCorrection,o.htmlCss=i.htmlCss,o.htmlGetBBox=i.htmlGetBBox,o.htmlUpdateTransform=i.htmlUpdateTransform,o.setSpanRotation=i.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=p(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var o=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),h(this.element,t),o&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,n=this.x||0,r=this.y||0,s=this.textAlign||"left",a={left:0,center:.5,right:1}[s],c=this.styles;if(c=c&&c.whiteSpace,h(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){h(t,{marginLeft:i+1,marginTop:o+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(i){t.invertChild(i,e)})),"SPAN"===e.tagName){var p=this.rotation,u=this.textWidth&&d(this.textWidth),f=[p,s,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,u!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else h(e,{width:"",whiteSpace:c||"nowrap"}),m=e.offsetWidth;(u>this.oldTextWidth||m>u)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(h(e,{width:m>u||p?u+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=u,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!l(p)||p===(this.oldRotation||0)&&s===this.oldAlign||this.setSpanRotation(p,a,g),this.getSpanCorrection(!l(p)&&this.textPxLength||e.offsetWidth,g,a,p,s)),h(e,{left:n+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=p,this.oldAlign=s}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,i){var o={},l=r&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":s?"-webkit-transform":n?"MozTransform":a.opera?"-o-transform":void 0;l&&(o[l]=o.transform="rotate("+t+"deg)",o[l+(n?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",h(this.element,o))},e.composedClasses=[],e}(e)})),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=o.attr,s=o.createElement,a=o.extend,h=o.pick;return function(i){function o(){return null!==i&&i.apply(this,arguments)||this}
1return n(o,i),o.compose=function(t){return-1===o.composedClasses.indexOf(t)&&(o.composedClasses.push(t),t.prototype.html=o.prototype.html),t},o.prototype.html=function(i,o,n){var l=this.createElement("span"),c=l.element,p=l.renderer,d=p.isSVG,u=function(t,i){["opacity","visibility"].forEach((function(o){t[o+"Setter"]=function(n,r,s){var a=t.div?t.div.style:i;e.prototype[o+"Setter"].call(this,n,r,s),a&&(a[r]=n)}})),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,h(e,"")),this.textStr=e,l.doTransform=!0)},d&&u(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:i,x:Math.round(o),y:Math.round(n)}).css({position:"absolute"}),p.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",l.css=l.htmlCss,d&&(l.add=function(t){var e=p.box.parentNode,i=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach((function(t){function n(e,i){t[i]=e,"translateX"===i?p.left=e+"px":p.top=e+"px",t.doTransform=!0}var h=r(t.element,"class"),c=t.styles||{},p=(o=t.div=t.div||s("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},o||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return i[0].div&&l.on.apply({element:i[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:n,translateYSetter:n}),t.addedSetters||u(t)}))}}else o=e;return o.appendChild(c),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},o.composedClasses=[],o}(i)})),e(i,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(i,"Core/Foundation.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.isFunction,n=t.objectEach,r=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},n(e.events,(function(e,n){t.eventOptions[n]!==e&&(t.eventOptions[n]&&(r(t,n,t.eventOptions[n]),delete t.eventOptions[n]),o(e)&&(t.eventOptions[n]=e,i(t,n,e)))}))}}(e||(e={})),e})),e(i,"Core/Axis/Tick.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,
1i){var o=e.deg2rad,n=i.clamp,r=i.correctFloat,s=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,c=i.isNumber,p=i.merge,d=i.objectEach,u=i.pick;return e=function(){function e(t,e,i,o,n){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i||o||this.addLabel()}return e.prototype.addLabel=function(){var e=this,i=e.axis,o=i.options,n=i.chart,a=i.categories,p=i.logarithmic,d=i.names,f=e.pos,g=u(e.options&&e.options.labels,o.labels),m=i.tickPositions,y=f===m[0],v=f===m[m.length-1],x=(!g.step||1===g.step)&&1===i.tickInterval;m=m.info;var b,S=e.label;if(a=this.parameters.category||(a?u(a[f],d[f],f):f),p&&c(a)&&(a=r(p.lin2log(a))),i.dateTime)if(m)var C=n.time.resolveDTLFormat(o.dateTimeLabelFormats[!o.grid&&m.higherRanks[f]||m.unitName]),w=C.main;else c(a)&&(w=i.dateTime.getXDateFormat(a,o.dateTimeLabelFormats||{}));e.isFirst=y,e.isLast=v;var A={axis:i,chart:n,dateTimeLabelFormat:w,isFirst:y,isLast:v,pos:f,tick:e,tickPositionInfo:m,value:a};l(this,"labelFormat",A);var M=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=i.defaultLabelFormatter.call(e,e),t.format(g.format,e,n)):i.defaultLabelFormatter.call(e,e)};o=M.call(A,A);var k=C&&C.list;e.shortenLabel=k?function(){for(b=0;b<k.length;b++)if(h(A,{dateTimeLabelFormat:k[b]}),S.attr({text:M.call(A,A)}),S.getBBox().width<i.getSlotWidth(e)-2*g.padding)return;S.attr({text:""})}:void 0,x&&i._addedPlotLB&&e.moveLabel(o,g),s(S)||e.movedLabel?S&&S.textStr!==o&&!x&&(!S.textWidth||g.style.width||S.styles.width||S.css({width:null}),S.attr({text:o}),S.textPxLength=S.getBBox().width):(e.label=S=e.createLabel({x:0,y:0},o,g),e.rotation=0)},e.prototype.createLabel=function(t,e,i){var o=this.axis,n=o.chart;return(t=s(e)&&i.enabled?n.renderer.text(e,t.x,t.y,i.useHTML).add(o.labelGroup):null)&&(n.styledMode||t.css(p(i.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,i,o){var s=this.axis,a=s.chart,h=o&&a.oldChartHeight||a.chartHeight;return(t={x:t?r(s.translate(e+i,void 0,void 0,o)+s.transB):s.left+s.offset+(s.opposite?(o&&a.oldChartWidth||a.chartWidth)-s.right-s.left:0),y:t?h-s.bottom+s.offset-(s.opposite?s.height:0):r(h-s.translate(e+i,void 0,void 0,o)-s.transB)}).y=n(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,i,n,r,a,h,c){var p=this.axis,d=p.transA,u=p.isLinked&&p.linkedParent?p.linkedParent.reversed:p.reversed,f=p.staggerLines,g=p.tickRotCorr||{x:0,y:0},m=n||p.reserveSpaceDefault?0:-p.labelOffset*("center"===p.labelAlign?.5:1),y={};return i=0===p.side?i.rotation?-8:-i.getBBox().height:2===p.side?g.y+8:Math.cos(i.rotation*o)*(g.y-i.getBBox(!1,0).height/2),s(r.y)&&(i=0===p.side&&p.horiz?r.y+i:r.y),t=t+r.x+m+g.x-(a&&n?a*d*(u?-1:1):0),e=e+i-(a&&!n?a*d*(u?1:-1):0),f&&(n=h/(c||1)%f,p.opposite&&(n=f-n-1),e+=p.labelOffset/f*n),y.x=t,y.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:a,index:h}),y},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,i,o,n,r){return r.crispLine([["M",t,e],["L",t+(n?0:-i),e+(n?i:0)]],o)},e.prototype.handleOverflow=function(t){var e=this.axis,i=e.options.labels,n=t.x,r=e.chart.chartWidth,s=e.chart.spacing,a=u(e.labelLeft,Math.min(e.pos,s[3]));s=u(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-s[1]));var h,l=this.label,c=this.rotation,p={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],d=l.getBBox().width,f=e.getSlotWidth(this),g={},m=f,y=1;c||"justify"!==i.overflow?0>c&&n-p*d<a?h=Math.round(n/Math.cos(c*o)-a):0<c&&n+p*d>s&&(h=Math.round((r-n)/Math.cos(c*o))):(r=n+(1-p)*d,n-p*d<a?m=t.x+m*(1-p)-a:r>s&&(m=s-t.x+m*p,y=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=y*(f-m-p*(f-Math.min(d,m)))),(d>m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),l.css(g)))},e.prototype.moveLabel=function(t,e){var i=this,o=i.label,n=i.axis,r=n.reversed,s=!1;if(o&&o.textStr===t?(i.movedLabel=o,s=!0,delete i.label):d(n.ticks,(function(e){s||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,s=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),!s&&(i.labelPos||o)){var a=i.labelPos||o.xy;o=n.horiz?r?0:n.width+n.left:a.x,n=n.horiz?a.y:r?n.width+n.left:0,i.movedLabel=i.createLabel({x:o,y:n},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0}
1)}},e.prototype.render=function(t,e,i){var o=this.axis,n=o.horiz,r=this.pos,s=u(this.tickmarkOffset,o.tickmarkOffset);s=(r=this.getPosition(n,r,s,e)).x;var a=r.y;o=n&&s===o.pos+o.len||!n&&a===o.pos?-1:1,n=u(i,this.label&&this.label.newOpacity,1),i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,o),this.renderMark(r,i,o),this.renderLabel(r,e,n,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,i){var o=this.axis,n=o.options,r={},s=this.pos,a=this.type,h=u(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,c=this.gridLine,p=n.gridLineWidth,d=n.gridLineColor,f=n.gridLineDashStyle;"minor"===this.type&&(p=n.minorGridLineWidth,d=n.minorGridLineColor,f=n.minorGridLineDashStyle),c||(o.chart.styledMode||(r.stroke=d,r["stroke-width"]=p||0,r.dashstyle=f),a||(r.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),c&&(i=o.getPlotLinePath({value:s+h,lineWidth:c.strokeWidth()*i,force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},e.prototype.renderMark=function(t,e,i){var o=this.axis,n=o.options,r=o.chart.renderer,s=this.type,a=o.tickSize(s?s+"Tick":"tick"),h=t.x;t=t.y;var l=u(n["minor"!==s?"tickWidth":"minorTickWidth"],!s&&o.isXAxis?1:0);n=n["minor"!==s?"tickColor":"minorTickColor"];var c=this.mark,p=!c;a&&(o.opposite&&(a[0]=-a[0]),c||(this.mark=c=r.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(o.axisGroup),o.chart.styledMode||c.attr({stroke:n,"stroke-width":l})),c[p?"attr":"animate"]({d:this.getMarkPath(h,t,a[0],c.strokeWidth()*i,o.horiz,r),opacity:e}))},e.prototype.renderLabel=function(t,e,i,o){var n=this.axis,r=n.horiz,s=n.options,a=this.label,h=s.labels,l=h.step;n=u(this.tickmarkOffset,n.tickmarkOffset);var p=t.x;t=t.y;var d=!0;a&&c(p)&&(a.xy=t=this.getLabelPosition(p,t,a,r,h,n,o,l),this.isFirst&&!this.isLast&&!s.showFirstLabel||this.isLast&&!this.isFirst&&!s.showLastLabel?d=!1:!r||h.step||h.rotation||e||0===i||this.handleOverflow(t),l&&o%l&&(d=!1),d&&c(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var o=e.horiz?i?e.left:e.width+e.left:t.xy.x;i=e.horiz?t.xy.y:i?e.width+e.top:e.top,t.animate({x:o,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e})),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/AxisDefaults.js"],i["Core/Color/Color.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s,a){var h=t.animObject,l=o.defaultOptions,c=n.registerEventOptions,p=r.deg2rad,d=a.arrayMax,u=a.arrayMin,f=a.clamp,g=a.correctFloat,m=a.defined,y=a.destroyObjectProperties,v=a.erase,x=a.error,b=a.extend,S=a.fireEvent,C=a.isArray,w=a.isNumber,A=a.isString,M=a.merge,k=a.normalizeTickInterval,T=a.objectEach,P=a.pick,E=a.relativeLength,O=a.removeEvent,D=a.splat,L=a.syncTimeout,B=function(t,e){return k(e,void 0,void 0,P(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!i:i,this.isXAxis=i,this.coll=this.coll||(i?"xAxis":"yAxis"),S(this,"init",{userOptions:e}),this.opposite=P(e.opposite,this.opposite),this.side=P(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var o=this.options,n=o.labels,r=o.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=P(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames="category"===r||!0===o.categories,this.categories=o.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(o.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=o.minRange||o.maxZoom,this.range=o.range,this.offset=o.offset||0,this.min=this.max=null,e=P(o.crosshair,D(t.options.tooltip.crosshairs)[i?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(i?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&i&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=w(n.rotation)?n.rotation:void 0,c(this,o),S(this,"afterInit")},t.prototype.setOptions=function(t){this.options=M(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],M(l[this.coll],t)),S(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var i=w(this.value)?this.value:NaN,o=e.chart.time,n=this.dateTimeLabelFormat,r=l.lang,s=r.numericSymbol
1s;r=r.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(i):e.tickInterval,h=s&&s.length;if(e.categories)var c="".concat(this.value);else if(n)c=o.dateFormat(n,i);else if(h&&1e3<=a)for(;h--&&void 0===c;)a>=(e=Math.pow(r,h+1))&&0==10*i%e&&null!==s[h]&&0!==i&&(c=t(i/e,-1)+s[h]);return void 0===c&&(c=1e4<=Math.abs(i)?t(i,-1):t(i,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;S(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach((function(o){if(o.visible||!i.options.chart.ignoreHiddenSeries){var n=o.options,r=n.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((n=o.xData).length){n=e.logarithmic?n.filter(e.validatePositiveValue):n;var s=(t=o.getXExtremes(n)).min,a=t.max;w(s)||s instanceof Date||(n=n.filter(w),s=(t=o.getXExtremes(n)).min,a=t.max),n.length&&(e.dataMin=Math.min(P(e.dataMin,s),s),e.dataMax=Math.max(P(e.dataMax,a),a))}}else o=o.applyExtremes(),w(o.dataMin)&&(s=o.dataMin,e.dataMin=Math.min(P(e.dataMin,s),s)),w(o.dataMax)&&(a=o.dataMax,e.dataMax=Math.max(P(e.dataMax,a),a)),m(r)&&(e.threshold=r),(!n.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),S(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,n,r){var s=this.linkedParent||this,a=o&&s.old?s.old.min:s.min;if(!w(a))return NaN;var h=s.minPixelPadding;n=(s.isOrdinal||s.brokenAxis&&s.brokenAxis.hasBreaks||s.logarithmic&&n)&&s.lin2val;var l=1,c=0;return(o=o&&s.old?s.old.transA:s.transA)||(o=s.transA),i&&(l*=-1,c=s.len),s.reversed&&(c-=(l*=-1)*(s.sector||s.len)),e?(r=(t*l+c-h)/o+a,n&&(r=s.lin2val(r))):(n&&(t=s.val2lin(t)),t=l*(t-a)*o,r=(s.isRadial?t:g(t))+c+l*h+(w(r)?o*r:0)),r},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return"pass"!==x&&(t<e||t>i)&&(x?t=f(t,e,i):s=!0),t}var i,o,n,r,s,a=this,h=a.chart,l=a.left,c=a.top,p=t.old,d=t.value,u=t.lineWidth,g=p&&h.oldChartHeight||h.chartHeight,m=p&&h.oldChartWidth||h.chartWidth,y=a.transB,v=t.translatedValue,x=t.force;return t={value:d,lineWidth:u,old:p,force:x,acrossPanes:t.acrossPanes,translatedValue:v},S(this,"getPlotLinePath",t,(function(t){v=P(v,a.translate(d,void 0,void 0,p)),v=f(v,-1e5,1e5),i=n=Math.round(v+y),o=r=Math.round(g-v-y),w(v)?a.horiz?(o=c,r=g-a.bottom,i=n=e(i,l,l+a.width)):(i=l,n=m-a.right,o=r=e(o,c,c+a.height)):(s=!0,x=!1),t.path=s&&!x?null:h.renderer.crispLine([["M",i,o],["L",n,r]],u||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var o=g(Math.floor(e/t)*t);i=g(Math.ceil(i/t)*t);var n,r=[];if(g(o+t)===o&&(n=20),this.single)return[e];for(e=o;e<=i&&(r.push(e),(e=g(e+t,n))!==s);)var s=e;return r},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?P(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,o=this.pointRangePadding||0,n=this.min-o,r=(o=this.max+o)-n,s=[];if(r&&r/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach((function(t,e,o){e&&s.push.apply(s,a.getLogTickPositions(i,o[e-1],o[e],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())s=s.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),n,o,t.startOfWeek));else for(t=n+(e[0]-n)%i;t<=o&&t!==s[0];t+=i)s.push(t)}return 0!==s.length&&this.trimTicks(s),s},t.prototype.adjustForMinRange=function(){var t,e,i,o,n=this.options,r=this.logarithmic,s=this.min,a=this.max,h=0;if(this.isXAxis&&void 0===this.minRange&&!r&&(m(n.min)||m(n.max)||m(n.floor)||m(n.ceiling)?this.minRange=null:(this.series.forEach((function(n){if(i=n.xData,o=n.xIncrement?1:i.length-1,1<i.length)for(t=o;0<t;t--)e=i[t]-i[t-1],(!h||e<h)&&(h=e)})),this.minRange=Math.min(5*h,this.dataMax-this.dataMin))),a-s<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,p=(c-a+s)/2;p=[s-p,P(n.min,s-p)],l&&(p[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(s=d(p))+c,P(n.max,s+c)],l&&(a[2]=r?r.log2lin(this.dataMax):this.dataMax),(a=u(a))-s<c&&(p[0]=a-c,p[1]=P(n.min,a-c),s=d(p))}this.min=s,this.max=a},t.prototype.getClosest=function(){var t;
1return this.categories?t=1:this.series.forEach((function(e){var i=e.closestPointRange,o=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&m(i)&&o&&(t=m(t)?Math.min(t,i):i)})),t},t.prototype.nameToX=function(t){var e=C(this.options.categories),i=e?this.categories:this.names,o=t.options.x;if(t.series.requireSorting=!1,m(o)||(o=this.options.uniqueNames&&i?e?i.indexOf(t.name):P(i.keys[t.name],-1):t.series.autoIncrement()),-1===o){if(!e&&i)var n=i.length}else n=o;return void 0!==n?(this.names[n]=t.name,this.names.keys[t.name]=n):t.x&&(n=t.x),n},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(i,o){if(i&&i.options&&void 0!==i.name){var n=t.nameToX(i);void 0!==n&&n!==i.x&&(i.x=n,e.xData[o]=n)}}))})))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,i=t.linkedParent,o=!!t.categories,n=t.isXAxis,r=t.axisPointRange||0,s=0,a=0,h=t.transA;if(n||o||r){var l=t.getClosest();i?(s=i.minPointOffset,a=i.pointRangePadding):t.series.forEach((function(e){var i=o?1:n?P(e.options.pointRange,l,0):t.axisPointRange||0,h=e.options.pointPlacement;r=Math.max(r,i),t.single&&!o||(e=e.is("xrange")?!n:n,s=Math.max(s,e&&A(h)?0:i/2),a=Math.max(a,e&&"on"===h?0:i))})),i=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=s*=i,t.pointRangePadding=a*=i,t.pointRange=Math.min(r,t.single&&o?1:e),n&&(t.closestPointRange=l)}t.translationSlope=t.transA=h=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=h*s,S(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,i=this.logarithmic,o=this.options,n=this.isXAxis,r=this.isLinked,s=o.tickPixelInterval,a=this.categories,h=this.softThreshold,l=o.maxPadding,c=o.minPadding,p=w(o.tickInterval)&&0<=o.tickInterval?o.tickInterval:void 0,d=w(this.threshold)?this.threshold:null;this.dateTime||a||r||this.getTickAmount();var u=P(this.userMin,o.min),f=P(this.userMax,o.max);if(r){this.linkedParent=e[this.coll][o.linkedTo];var y=this.linkedParent.getExtremes();this.min=P(y.min,y.dataMin),this.max=P(y.max,y.dataMax),o.type!==this.linkedParent.options.type&&x(11,1,e)}else{if(h&&m(d))if(this.dataMin>=d)y=d,c=0;else if(this.dataMax<=d){var v=d;l=0}this.min=P(u,y,this.dataMin),this.max=P(f,v,this.dataMax)}if(i&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,P(this.dataMin,this.min))&&x(10,1,e),this.min=g(i.log2lin(this.min),16),this.max=g(i.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),S(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||r)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(u)&&c&&(this.min-=e*c),!m(f)&&l&&(this.max+=e*l)),w(this.userMin)||(w(o.softMin)&&o.softMin<this.min&&(this.min=u=o.softMin),w(o.floor)&&(this.min=Math.max(this.min,o.floor))),w(this.userMax)||(w(o.softMax)&&o.softMax>this.max&&(this.max=f=o.softMax),w(o.ceiling)&&(this.max=Math.min(this.max,o.ceiling))),h&&m(this.dataMin)&&(d=d||0,!m(u)&&this.min<d&&this.dataMin>=d?this.min=this.options.minRange?Math.min(d,this.max-this.minRange):d:!m(f)&&this.max>d&&this.dataMax<=d&&(this.max=this.options.minRange?Math.max(d,this.min+this.minRange):d)),w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:r&&this.linkedParent&&!p&&s===this.linkedParent.options.tickPixelInterval?p=this.linkedParent.tickInterval:P(p,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*s/Math.max(this.len,s)),n&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);
1this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)})),S(this,"postProcessData",{hasExtremesChanged:b})}this.setAxisTranslation(),S(this,"initialAxisTranslation"),this.pointRange&&!p&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=P(o.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!p&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||p||(this.tickInterval=B(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e=this.options,i=e.tickPositions,o=e.tickPositioner,n=this.getMinorTickInterval(),r=this.hasVerticalPanning(),s="colorAxis"===this.coll,a=(s||!r)&&e.startOnTick;if(r=(s||!r)&&e.endOnTick,s=[],this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),i)s=i.slice();else if(w(this.min)&&w(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)s=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)s=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(n=e=this.tickInterval;n<=2*e&&(s=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&s.length>this.tickAmount);)this.tickInterval=B(this,n*=1.1);else s=[this.min,this.max],x(19,!1,this.chart);s.length>this.len&&(s=[s[0],s[s.length-1]])[0]===s[1]&&(s.length=1),o&&(this.tickPositions=s,(t=o.apply(this,[this.min,this.max]))&&(s=t))}this.tickPositions=s,this.paddedTicks=s.slice(0),this.trimTicks(s,a,r),!this.isLinked&&w(this.min)&&w(this.max)&&(this.single&&2>s.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),S(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],n=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==o)this.min=o;else for(;this.min-r>t[0];)t.shift();if(i)this.max=n;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&m(o)&&!this.options.tickPositions&&t.push((n+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=[this],o=e.options,n="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,r=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&o.alignTicks||n)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!e.logarithmic){var s=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=s(this);this.chart[this.coll].forEach((function(o){var n=o.series;n.length&&n.some((function(t){return t.visible}))&&o!==e&&s(o)===a&&(t=!0,i.push(o))}))}if(t&&n){i.forEach((function(t){t=t.getThresholdAlignment(e),w(t)&&r.push(t)}));var h=1<r.length?r.reduce((function(t,e){return t+e}),0)/r.length:void 0;i.forEach((function(t){t.thresholdAlignment=h}))}return t},t.prototype.getThresholdAlignment=function(t){if((!w(this.dataMin)||this!==t&&this.series.some((function(t){return t.isDirty||t.isDirtyData})))&&this.getSeriesExtremes(),w(this.threshold))return t=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(t=1-t),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;!m(t.tickInterval)&&!i&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),4>i&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,i=t.max,o=t.min,n=t.options,r=t.tickPositions,s=t.t
1ickAmount,a=t.thresholdAlignment,h=r&&r.length,l=P(t.threshold,t.softThreshold?0:null),c=t.tickInterval;if(w(a)){var p=.5>a?Math.ceil(a*(s-1)):Math.floor(a*(s-1));n.reversed&&(p=s-1-p)}if(t.hasData()&&w(o)&&w(i)){if(a=function(){t.transA*=(h-1)/(s-1),t.min=n.startOnTick?r[0]:Math.min(o,r[0]),t.max=n.endOnTick?r[r.length-1]:Math.max(i,r[r.length-1])},w(p)&&w(t.threshold)){for(;r[p]!==l||r.length!==s||r[0]>o||r[r.length-1]<i;){for(r.length=0,r.push(t.threshold);r.length<s;)void 0===r[p]||r[p]>t.threshold?r.unshift(g(r[0]-c)):r.push(g(r[r.length-1]+c));if(c>8*t.tickInterval)break;c*=2}a()}else if(h<s){for(;r.length<s;)r.length%2||o===l?r.push(g(r[r.length-1]+c)):r.unshift(g(r[0]-c));a()}if(m(e)){for(c=l=r.length;c--;)(3===e&&1==c%2||2>=e&&0<c&&c<l-1)&&r.splice(c,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach((function(i){t=t||i.isDirtyData||i.isDirty,e=e||i.xAxis&&i.xAxis.isDirty||!1})),this.setAxisSize();var i=this.len!==(this.old&&this.old.len);i||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=i||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),S(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,n){var r=this,s=r.chart;i=P(i,!0),r.series.forEach((function(t){delete t.kdTree})),n=b(n,{min:t,max:e}),S(r,"setExtremes",n,(function(){r.userMin=t,r.userMax=e,r.eventArgs=n,i&&s.redraw(o)}))},t.prototype.zoom=function(t,e){var i=this,o=this.dataMin,n=this.dataMax,r=this.options,s=Math.min(o,P(r.min,o)),a=Math.max(n,P(r.max,n));return S(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,r=t.newMax;e===i.min&&r===i.max||(i.allowZoomOutside||(m(o)&&(e<s&&(e=s),e>a&&(e=a)),m(n)&&(r<s&&(r=s),r>a&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,n=this.width=Math.round(E(P(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(E(P(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(E(P(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(E(P(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-s,this.right=t.chartWidth-n-e,this.len=Math.max(o?n:r,0),this.pos=o?e:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(P(t,0)-90*this.side+720)%360;return S(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,i=P(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),o=e["tick"===t?"tickLength":"minorTickLength"];if(i&&o){"inside"===e[t+"Position"]&&(o=-o);var n=[o,i]}return S(this,"afterTickSize",t={tickSize:n}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t=this.options.labels,e=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),n=t.rotation,r=this.labelMetrics(),s=Math.max(this.max-this.min,0),a=function(t){var e=t/(o||1);return(e=1<e?Math.ceil(e):1)*i>s&&1/0!==t&&1/0!==o&&s&&(e=Math.ceil(s/i)),g(e*i)},h=i,l=Number.MAX_VALUE;if(e){if(!t.staggerLines)if(w(n))var c=[n];else o<t.autoRotationLimit&&(c=t.autoRotation);if(c)for(var d=e=void 0,u=0,f=c;u<f.length;u++){var m=f[u];if((m===n||m&&-90<=m&&90>=m)&&(d=(e=a(Math.abs(r.h/Math.sin(p*m))))+Math.abs(m/360))<l){l=d;var y=m;h=e}}}else h=a(r.h);return this.autoRotation=c,this.labelRotation=P(y,w(n)?n:0),t.step?i:h},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=e.margin[3];if(t&&w(t.slotWidth))return t.slotWidth;if(i&&2>o.step)return o.rotation?0:(this.staggerLines||1)*this.len/n;if(!i){if(void 0!==(t=o.style.width))return parseInt(String(t),10);if(r)return r-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,o=this.ticks,n=this.options.labels,r=n.style,s=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*n.padding)),l={},c=this.labelMetrics(),p=r.textOverflow,d=0;
1if(A(n.rotation)||(l.rotation=n.rotation||0),i.forEach((function(t){(t=o[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>d&&(d=t.label.textPxLength)})),this.maxLabelLength=d,this.autoRotation)d>h&&d>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!p){var f="clip";for(h=i.length;!s&&h--;){var g=i[h];(g=o[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}l.rotation&&(u=d>.5*t.chartHeight?.33*t.chartHeight:d,p||(f="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach((function(t){var e=(t=o[t])&&t.label,i=r.width,n={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u<e.textPxLength||"SPAN"===e.element.tagName)?(n.width=u+"px",p||(n.textOverflow=e.specificTextOverflow||f),e.css(n)):e.styles&&e.styles.width&&!n.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)}),this),this.tickRotCorr=e.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&m(this.min)&&m(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,n=this.opposite,r=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(M(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||r.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new s(this,t)},t.prototype.getOffset=function(){var t=this,e=this,i=e.chart,o=e.horiz,n=e.options,r=e.side,s=e.ticks,a=e.tickPositions,h=e.coll,l=e.axisParent,c=i.renderer,p=i.inverted&&!e.isZAxis?[1,0,3,2][r]:r,d=e.hasData(),u=n.title,f=n.labels,g=i.axisOffset;i=i.clipOffset;var y,v=[-1,1,1,-1][r],x=n.className,b=0,C=0,w=0;if(e.showAxis=y=d||n.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var A=function(e,i,o){return c.g(e).attr({zIndex:o}).addClass("highcharts-".concat(h.toLowerCase()).concat(i," ")+(t.isRadial?"highcharts-radial-axis".concat(i," "):"")+(x||"")).add(l)};e.gridGroup=A("grid","-grid",n.gridZIndex),e.axisGroup=A("axis","",n.zIndex),e.labelGroup=A("axis-labels","-labels",f.zIndex)}if(d||e.isLinked?(a.forEach((function(t){e.generateTick(t)})),e.renderUnsquish(),e.reserveSpaceDefault=0===r||2===r||{1:"left",3:"right"}[r]===e.labelAlign,P(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach((function(t){w=Math.max(s[t].getLabelSize(),w)})),e.staggerLines&&(w*=e.staggerLines),e.labelOffset=w*(e.opposite?-1:1)):T(s,(function(t,e){t.destroy(),delete s[e]})),u&&u.text&&!1!==u.enabled&&(e.addTitle(y),y&&!1!==u.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[o?"height":"width"];var M=u.offset;C=m(M)?0:P(u.margin,o?5:10)}e.renderLine(),e.offset=v*P(n.offset,g[r]?g[r]+(n.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},u=0===r?-e.labelMetrics().h:2===r?e.tickRotCorr.y:0,d=Math.abs(w)+C,w&&(d=d-u+v*(o?P(f.y,e.tickRotCorr.y+8*v):f.x)),e.axisTitleMargin=P(M,d),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(s,a)),"colorAxis"!==h&&(o=this.tickSize("tick"),g[r]=Math.max(g[r],(e.axisTitleMargin||0)+b+v*e.offset,d,a&&a.length&&o?o[0]+v*e.offset:0),n=!e.axisLine||n.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[p]=Math.max(i[p],n)),S(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,n=this.horiz,r=this.left+(i?this.width:0)+o;return o=e.chartHeight-this.bottom-(i?this.height:0)+o,i&&(t*=-1),e.renderer.crispLine([["M",n?this.left:r,
1n?o:this.top],["L",n?e.chartWidth-this.right:r,n?o:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,i=this.top,o=this.len,n=this.options.title,r=t?e:i,s=this.opposite,a=this.offset,h=n.x,l=n.y,c=this.axisTitle,p=this.chart.renderer.fontMetrics(n.style.fontSize,c);return c=c?Math.max(c.getBBox(!1,0).height-p.h-1,0):0,o={low:r+(t?0:o),middle:r+o/2,high:r+(t?o:0)}[n.align],e=(t?i+this.height:e)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-c,c,p.f,-c][this.side],t={x:t?o+h:e+(s?this.width:0)+a+h,y:t?e+l-(s?this.height:0)+a:o+l},S(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new s(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var o=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(o[t]||(o[t]=new s(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,n=i.logarithmic,a=i.options,l=i.isLinked,c=i.tickPositions,p=i.axisTitle,d=i.ticks,u=i.minorTicks,f=i.alternateBands,g=a.stackLabels,m=a.alternateGridColor,y=i.tickmarkOffset,v=i.axisLine,x=i.showAxis,b=h(o.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,u,f].forEach((function(t){T(t,(function(t){t.isActive=!1}))})),i.hasData()||l){var C=i.chart.hasRendered&&i.old&&w(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach((function(t){i.renderMinorTick(t,C)})),c.length&&(c.forEach((function(t,e){i.renderTick(t,e,C)})),y&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new s(i,-1,null,!0)),d[-1].render(-1))),m&&c.forEach((function(s,a){e=void 0!==c[a+1]?c[a+1]+y:i.max-y,0==a%2&&s<i.max&&e<=i.max+(o.polar?-y:y)&&(f[s]||(f[s]=new r.PlotLineOrBand(i)),t=s+y,f[s].options={from:n?n.lin2log(t):t,to:n?n.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[s].render(),f[s].isActive=!0)})),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach((function(t){i.addPlotBandOrLine(t)})))}[d,u,f].forEach((function(t){var e=[],i=b.duration;T(t,(function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))})),L((function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])}),t!==f&&o.hasRendered&&i?i:0)})),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[x?"show":"hide"](x)),p&&x&&(a=i.getTitlePosition(),p[p.isNew?"attr":"animate"](a),p.isNew=!1),g&&g.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,S(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,i=e.plotLinesAndBands,o=this.eventOptions;if(S(this,"destroy",{keepEvents:t}),t||O(e),[e.ticks,e.minorTicks,e.alternateBands].forEach((function(t){y(t)})),i)for(t=i.length;t--;)i[t].destroy();for(var n in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){e[t]&&(e[t]=e[t].destroy())})),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[n]=e.plotLinesAndBandsGroups[n].destroy();T(e,(function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]})),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var o,n=this.crosshair,r=P(n&&n.snap,!0),s=this.chart,a=this.cross;if(S(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),n&&!1!==(m(e)||!r)){if(r?m(e)&&(o=P("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):o=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),m(o)){var h={value:e&&(this.isXAxis?e.x:P(e.stackY,e.y)),translatedValue:o};s.polar&&b(h,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),h=this.getPlotLinePath(h)||null}if(!m(h))return void this.hideCrosshair();r=this.categories&&!this.isRadial,a||(this.cross=a=s.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(n.className||"")).attr({zIndex:P(n.zIndex,2)}).add(),s.styledMode||(a.attr({stroke:n.color||(r?i.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":P(n.width,1)}).css({"pointer-events":"none"}),n.dashStyle&&a.attr({dashstyle:n.dashStyle}))),a.show().attr({d:h}),r&&!n.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();S(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),S(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return w(t)&&0<t},t.prototype.update=function(t,e){var i=this.chart;t=M(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,P(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,n=o.length;n--;)o[n]&&o[n].remove(!1);
1v(e.axes,this),v(e[i],this),e[i].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,P(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),t})),e(i,"Core/Axis/DateTimeAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.getMagnitude,n=t.normalizeTickInterval,r=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function s(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var a=[];t.compose=function(t){return-1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,i(t,"init",s)),t};var h=function(){function t(t){this.axis=t}return t.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,a=r[e[0]],h=e[1];for(s=0;s<i.length&&(e=i[s],a=r[e[0]],h=e[1],!(i[s+1]&&t<=(a*h[h.length-1]+r[i[s+1][0]])/2));s++);return a===r.year&&t<5*a&&(h=[1,2,5]),{unitRange:a,count:t=n(t/a,h,"year"===e[0]?Math.max(o(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main},t}();t.Additions=h}(e||(e={})),e})),e(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.normalizeTickInterval,n=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new a(this))}function r(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("logarithmic"),i(t,"init",e),i(t,"afterInit",r)),t};var a=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,r){var s=this.axis,a=s.len,h=s.options,l=[];if(r||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),l=s.getLinearTickPositions(t,e,i);else if(.08<=t){var c,p=Math.floor(e),d=h=void 0;for(a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];p<i+1&&!d;p++){var u=a.length;for(c=0;c<u&&!d;c++){var f=this.log2lin(this.lin2log(p)*a[c]);f>e&&(!r||h<=i)&&void 0!==h&&l.push(h),h>i&&(d=!0),h=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=r?s.getMinorTickInterval():h.tickInterval,t=n("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(r?5:1)*(i-e)/((r?a/s.tickPositions.length:a)||1)),t=o(t),l=s.getLinearTickPositions(t,e,i).map(this.log2lin),r||(this.minorAutoInterval=t/5);return r||(s.tickInterval=t),l},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=a}(e||(e={})),e})),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.erase,o=t.extend,n=t.isNumber;return function(t){var e,r=[];t.compose=function(t,i){return e||(e=t),-1===r.indexOf(i)&&(r.push(i),o(i.prototype,s.prototype)),i};var s=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,i){void 0===i&&(i=this.options);var o=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),r=[],s=this.horiz;if(e=!n(this.min)||!n(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),i=1,t&&o){if(e){var a=t.toString()===o.toString();i=0}for(e=0;e<t.length;e+=2){var h=t[e],l=t[e+1],c=o[e],p=o[e+1];"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==p[0]&&"L"!==p[0]||(s&&c[1]===h[1]?(c[1]+=i,p[1]+=i):s||c[2]!==h[2]||(c[2]+=i,p[2]+=i),r.push(["M",h[1],h[2]],["L",l[1],l[2]],["L",p[1],p[2]],["L",c[1],c[2]],["Z"])),r.isFlat=a}}return r},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,i){var o=this,n=this.userOptions,r=new e(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(n.plotLines||[]).concat(n.plotBands||[]).forEac
1h((function(t){o.addPlotBandOrLine(t)}))),i){var s=n[i]||[];s.push(t),n[i]=s}this.plotLinesAndBands.push(r)}return r},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,o=this.options,n=this.userOptions;if(e){for(var r=e.length;r--;)e[r].id===t&&e[r].destroy();[o.plotLines||[],n.plotLines||[],o.plotBands||[],n.plotBands||[]].forEach((function(e){for(r=e.length;r--;)(e[r]||{}).id===t&&i(e,e[r])}))}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e})),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[i["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.arrayMax,o=e.arrayMin,n=e.defined,r=e.destroyObjectProperties,s=e.erase,a=e.fireEvent,h=e.merge,l=e.objectEach,c=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(i){return t.compose(e,i)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,i=e.horiz,o=e.logarithmic,r=t.options,s=r.color,p=c(r.zIndex,0),d=r.events,u={},f=e.chart.renderer,g=r.label,m=t.label,y=r.to,v=r.from,x=r.value,b=t.svgElem,S=[],C=n(v)&&n(y);S=n(x);var w=!b,A={class:"highcharts-plot-"+(C?"band ":"line ")+(r.className||"")},M=C?"bands":"lines";if(o&&(v=o.log2lin(v),y=o.log2lin(y),x=o.log2lin(x)),e.chart.styledMode||(S?(A.stroke=s||"#999999",A["stroke-width"]=c(r.width,1),r.dashStyle&&(A.dashstyle=r.dashStyle)):C&&(A.fill=s||"#e6ebf5",r.borderWidth&&(A.stroke=r.borderColor,A["stroke-width"]=r.borderWidth))),u.zIndex=p,M+="-"+p,(o=e.plotLinesAndBandsGroups[M])||(e.plotLinesAndBandsGroups[M]=o=f.g("plot-"+M).attr(u).add()),w&&(t.svgElem=b=f.path().attr(A).add(o)),S)S=e.getPlotLinePath({value:x,lineWidth:b.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!C)return;S=e.getPlotBandPath(v,y,r)}return!t.eventsAdded&&d&&(l(d,(function(e,i){b.on(i,(function(e){d[i].apply(t,[e])}))})),t.eventsAdded=!0),(w||!b.d)&&S&&S.length?b.attr({d:S}):b&&(S?(b.show(),b.animate({d:S})):b.d&&(b.hide(),m&&(t.label=m=m.destroy()))),g&&(n(g.text)||n(g.formatter))&&S&&S.length&&0<e.width&&0<e.height&&!S.isFlat?(g=h({align:i&&C&&"center",x:i?!C&&4:10,verticalAlign:!i&&C&&"middle",y:i?C?16:10:C?6:-4,rotation:i&&!C&&90},g),this.renderLabel(g,S,C,p)):m&&m.hide(),t},e.prototype.renderLabel=function(t,e,n,r){var s=this.axis,a=s.chart.renderer,l=this.label;l||(this.label=l=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(t.className||""),zIndex:r}).add(),s.chart.styledMode||l.css(h({textOverflow:"ellipsis"},t.style))),r=e.xBounds||[e[0][1],e[1][1],n?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],n?e[2][2]:e[0][2]],n=o(r),a=o(e),l.align(t,!1,{x:n,y:a,width:i(r)-n,height:i(e)-a}),l.alignValue&&"left"!==l.alignValue||(t=t.clip?s.width:s.chart.chartWidth,l.css({width:(90===l.rotation?s.height-(l.alignAttr.y-s.top):t-(l.alignAttr.x-s.left))+"px"})),l.show(!0)},e.prototype.getLabelText=function(t){return n(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){s(this.axis.plotLinesAndBands,this),delete this.axis,r(this)},e}()})),e(i,"Core/Tooltip.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n){var r=t.format,s=e.doc,a=i.distribute,h=n.clamp,l=n.css,c=n.discardElement,p=n.extend,d=n.fireEvent,u=n.isArray,f=n.isNumber,g=n.isString,m=n.merge,y=n.pick,v=n.splat,x=n.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))}
1,t.prototype.cleanSplit=function(t){this.chart.series.forEach((function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)}))},t.prototype.defaultFormatter=function(t){var e=this.points||v(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),c(this.container)),n.clearTimeout(this.hideTimer),n.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var i=this.chart,o=i.pointer,n=i.inverted,r=i.plotTop;if(i=i.plotLeft,(t=v(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=o.normalize(e)),t=[e.chartX-i,e.chartY-r];else if(t[0].tooltipPos)t=t[0].tooltipPos;else{var s=0,a=0;t.forEach((function(t){(t=t.pos(!0))&&(s+=t[0],a+=t[1])})),s/=t.length,a/=t.length,this.shared&&1<t.length&&e&&(n?s=e.chartX:a=e.chartY),t=[s-i,a-r]}return t.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=t.series,n=o.options;return[this.options.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+y(t.colorIndex,o.colorIndex),n&&n.className].filter(g).join(" ")},t.prototype.getLabel=function(){var t,i=this,n=this.chart.styledMode,r=this.options,s=this.split&&this.allowShared,a=r.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),h=this.chart.renderer;if(i.label){var c=!i.label.hasClass("highcharts-label");(s&&!c||!s&&c)&&i.destroy()}if(!this.label){if(this.outside){c=this.chart.options.chart.style;var p=o.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",l(t,{position:"absolute",top:"1px",pointerEvents:a,zIndex:Math.max(this.options.style.zIndex||0,(c&&c.zIndex||0)+3)}),e.doc.body.appendChild(t),this.renderer=h=new p(t,0,0,c,void 0,void 0,h.styledMode)}if(s?this.label=h.g("tooltip"):(this.label=h.label("",0,0,r.shape,void 0,void 0,r.useHTML,void 0,"tooltip").attr({padding:r.padding,r:r.borderRadius}),n||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).css({pointerEvents:a}).shadow(r.shadow)),n&&r.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),i.outside&&!i.split){var d=this.label,u=d.xSetter,f=d.ySetter;d.xSetter=function(e){u.call(d,i.distance),t.style.left=e+"px"},d.ySetter=function(e){f.call(d,i.distance),t.style.top=e+"px"}}this.label.attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,i){var o,n=this.chart,r=this.distance,a={},h=n.inverted&&i.h||0,l=this.outside,c=l?s.documentElement.clientWidth-2*r:n.chartWidth,p=l?Math.max(s.body.scrollHeight,s.documentElement.scrollHeight,s.body.offsetHeight,s.documentElement.offsetHeight,s.documentElement.clientHeight):n.chartHeight,d=n.pointer.getChartPosition(),u=function(o){var s="x"===o;return[o,s?c:p,s?t:e].concat(l?[s?t*d.scaleX:e*d.scaleY,s?d.left-r+(i.plotX+n.plotLeft)*d.scaleX:d.top-r+(i.plotY+n.plotTop)*d.scaleY,0,s?c:p]:[s?t:e,s?i.plotX+n.plotLeft:i.plotY+n.plotTop,s?n.plotLeft:n.plotTop,s?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])},f=u("y"),g=u("x");u=!!i.negative,!n.polar&&n.hoverSeries&&n.hoverSeries.yAxis&&n.hoverSeries.yAxis.reversed&&(u=!u);var m=!this.followPointer&&y(i.ttBelow,!n.inverted===u),v=function(t,e,i,o,n,s,c){var p=l?"y"===t?r*d.scaleY:r*d.scaleX:r,u=(i-o)/2,f=o<n-r,g=n+r+o<e,y=n-p-i+u;if(n=n+p-u,m&&g)a[t]=n;else if(!m&&f)a[t]=y;else if(f)a[t]=Math.min(c-o,0>y-h?y:y-h);else{if(!g)return!1;a[t]=Math.max(s,n+h+i>e?n:n+h)}},x=function(t,e,i,o,n){var s;return n<r||n>e-r?s=!1:a[t]=n<i/2?1:n>e-o/2?e-o-2:n-i/2,s},b=function(t){var e=f;f=g,g=e,o=t},S=function(){!1!==v.apply(0,f)?!1!==x.apply(0,g)||o||(b(!0),S()):o?a.x=a.y=0:(b(!0),S())};return(n.inverted||1<this.len)&&b(),S(),a},t.prototype.hide=function(t){var e=this;n.clearTimeout(this.hideTimer),t=y(t,this.options.hideDelay),this.isHidden||(this.hideTimer=x((function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0}),t))},t.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&&!t.polar,this.shared=e.shared||this.split,this.outside=y(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.chart.pointer.inClass(t.target,"highcharts-tooltip"))}
1,t.prototype.move=function(t,e,i,o){var r=this,s=r.now,a=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-s.x)||1<Math.abs(e-s.y)),h=r.followPointer||1<r.len;p(s,{x:a?(2*s.x+t)/3:t,y:a?(s.y+e)/2:e,anchorX:h?void 0:a?(2*s.anchorX+i)/3:i,anchorY:h?void 0:a?(s.anchorY+o)/2:o}),r.getLabel().attr(s),r.drawTracker(),a&&(n.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){r&&r.move(t,e,i,o)}),32))},t.prototype.refresh=function(t,e){var i=this.chart,o=this.options,r=i.pointer,s=v(t),a=s[0],h=[],l=o.formatter||this.defaultFormatter,c=this.shared,p=i.styledMode,f={};if(o.enabled&&a.series){n.clearTimeout(this.hideTimer),this.allowShared=!(!u(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var g=(t=this.getAnchor(t,e))[0],m=t[1];if(c&&this.allowShared?(r.applyInactiveState(s),s.forEach((function(t){t.setState("hover"),h.push(t.getLabelConfig())})),(f={x:a.category,y:a.y}).points=h):f=a.getLabelConfig(),this.len=h.length,l=l.call(f,this),c=a.series,this.distance=y(c.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,s);else{var x=g,b=m;if(e&&r.isDirectTouch&&(x=e.chartX-i.plotLeft,b=e.chartY-i.plotTop),!i.polar&&!1!==c.options.clip&&!s.some((function(t){return r.isDirectTouch||t.series.shouldShowTooltip(x,b)})))return void this.hide();e=this.getLabel(),o.style.width&&!p||e.css({width:i.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.addClass(this.getClassName(a),!0),p||e.attr({stroke:o.borderColor||a.color||c.color||"#666666"}),this.updatePosition({plotX:g,plotY:m,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}d(this,"refresh")}},t.prototype.renderSplit=function(t,e){function i(t,e,i,n,r){return void 0===r&&(r=!0),i?(e=E?0:B,t=h(t-n/2,k.left,k.right-n-(o.outside?O:0))):(e-=D,t=h(t=r?t-n-w:t+w,r?t:k.left,k.right)),{x:t,y:e}}var o=this,n=o.chart,r=o.chart,l=r.chartWidth,c=r.chartHeight,d=r.plotHeight,u=r.plotLeft,f=r.plotTop,m=r.pointer,v=r.scrollablePixelsY;v=void 0===v?0:v;var x=r.scrollablePixelsX,b=r.scrollingContainer,S=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var C=r.styledMode,w=o.distance,A=o.options,M=o.options.positioner,k=o.outside&&"number"!=typeof x?s.documentElement.getBoundingClientRect():{left:S,right:S+l,top:b,bottom:b+c},T=o.getLabel(),P=this.renderer||n.renderer,E=!(!n.xAxis[0]||!n.xAxis[0].opposite),O=(n=m.getChartPosition()).left;n=n.top;var D=f+b,L=0,B=d-v;g(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce((function(t,n,r){if(!1!==n&&""!==n){var s=(r=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}}).isHeader,a=s?o:r.series;n=n.toString();var l=a.tt,c=r.isHeader,p=r.series;l||(l={padding:A.padding,r:A.borderRadius},C||(l.fill=A.backgroundColor,l["stroke-width"]=A.borderWidth),l=P.label("",0,0,A[c?"headerShape":"shape"],void 0,void 0,A.useHTML).addClass(o.getClassName(r,!0,c)).attr(l).add(T)),l.isActive=!0,l.attr({text:n}),C||l.css(A.style).shadow(A.shadow).attr({stroke:A.borderColor||r.color||p.color||"#333333"}),n=(c=(a=a.tt=l).getBBox()).width+a.strokeWidth(),s&&(L=c.height,B+=L,E&&(D-=L)),p=void 0===(p=r.plotX)?0:p,l=void 0===(l=r.plotY)?0:l;var g=r.series;if(r.isHeader){p=u+p;var m=f+d/2}else{var v=g.xAxis,x=g.yAxis;p=v.pos+h(p,-w,v.len+w),g.shouldShowTooltip(0,x.pos-f+l,{ignoreX:!0})&&(m=x.pos+l)}p=h(p,k.left-w,k.right+w),"number"==typeof m?(c=c.height+1,l=M?M.call(o,n,c,r):i(p,m,s,n),t.push({align:M?0:void 0,anchorX:p,anchorY:m,boxWidth:n,point:r,rank:y(l.rank,s?1:0),size:c,target:l.y,tt:a,x:l.x})):a.isActive=!1}return t}),[]),!M&&t.some((function(t){var e=(o.outside?O:0)+t.anchorX;return e<k.left&&e+t.boxWidth<k.right||e<O-k.left+t.boxWidth&&k.right-e>e}))&&(t=t.map((function(t){var e=i(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return p(t,{target:e.y,x:e.x})}))),o.cleanSplit(),a(t,B);var j=O,I=O;t.forEach((function(t){var e=t.x,i=t.boxWidth;(t=t.isHeader)||(o.outside&&O+e<j&&(j=O+e),!t&&o.outside&&j+i>I&&(I=O+e))})),t.forEach((function(t){var e=t.x,i=t.anchorX,n=t.pos,r=t.point.isHeader;if(n={visibility:void 0===n?"hidden":"inherit",x:e,y:(n||0)+D,anchorX:i,anchorY:t.anchorY},o.outside&&e<i){var s=O-j;0<s&&(r||(n.x=e+s,n.anchorX=i+s),r&&(n.x=(I-j)/2,n.anchorX=i+s))}t.tt.attr(n)})),t=o.container,v=o.renderer,o.outside&&t&&v&&(r=T.getBBox(),v.setSize(r.width+r.x,r.height+r.y,!1),t.style.left=j+"px",t.style.top=n+"px")},t.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(e&&i){var o={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var n=e.getBBox();i[0]+=t.plotLeft-e.translateX,i[1]+=t.plotTop-e.translateY,o.x=Math.min(0,i[0]),o.y=Math.min(0,i[1]),o.width=0>i[0]?Math.max(Math.abs(i[0]),n.width-i[0]):Math.max(Math.abs(i[0]),n.width),o.height=0>i[1]?Math.max(Math.abs(i[1]),n.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),n.height),this.tracker?this.tracker.attr(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,n=i.xAxis,s=n&&n.dateTime;n={isFooter:e,labelConfig:t};var a=o.xDateFormat,h=o[e?"footerFormat":"headerFormat"];return d(this,"headerFormatter",n,(function(e){s&&!a&&f(t.key)&&(a=s.getXDateFormat(t.key,o.dateTimeLabelFormats)),s&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
1h((function(t){h=h.replace("{point."+t+"}","{point."+t+":"+a+"}")})),i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=r(h,{point:t,series:i},this.chart)})),n.text},t.prototype.update=function(t){this.destroy(),m(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,m(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,i=this.distance,o=this.options,n=e.pointer,r=this.getLabel(),s=n.getChartPosition();n=s.left;var a=s.top,h=s.scaleX;s=s.scaleY;var c=(o.positioner||this.getPosition).call(this,r.width,r.height,t),p=(t.plotX||0)+e.plotLeft;t=(t.plotY||0)+e.plotTop,this.outside&&(o.positioner&&(c.x+=n-i,c.y+=a-i),i=o.borderWidth+2*i,this.renderer.setSize(r.width+i,r.height+i,!1),1===h&&1===s||(l(this.container,{transform:"scale(".concat(h,", ").concat(s,")")}),p*=h,t*=s),p+=n-c.x,t+=a-c.y),this.move(Math.round(c.x),Math.round(c.y||0),p,t)},t}(),t})),e(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n){var r=e.animObject,s=i.defaultOptions,a=o.format,h=n.addEvent,l=n.defined,c=n.erase,p=n.extend,d=n.fireEvent,u=n.getNestedProperty,f=n.isArray,g=n.isFunction,m=n.isNumber,y=n.isObject,v=n.merge,x=n.objectEach,b=n.pick,S=n.syncTimeout,C=n.removeEvent,w=n.uniqueKey;return e=function(){function e(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach((function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)})),i.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(p({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,i){var o=this.series,n=o.options.pointValKey||o.pointValKey;return t=e.prototype.optionsToObject.call(this,t),p(this,t),this.options=this.options?p(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,n&&(this.y=e.prototype.getNestedProperty.call(this,n)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),void 0===this.x&&o?this.x=void 0===i?o.autoIncrement():i:m(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(n in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(C(e),e.destroyElements()),e)e[n]=null}var e=this,i=e.series,o=i.chart;i=i.options.dataSorting;var n,s=o.hoverPoints,a=r(e.series.chart.renderer.globalAnimation);e.legendItem&&o.legend.destroyItem(e),s&&(e.setState(),c(s,e),s.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),S(t,a.duration)):t(),o.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t&&t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,i){var o=this,n=this.series.options;(n.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),"click"===t&&n.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),d(o,t,e,i)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,i=this,o=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}
1).graphic&&o.push("graphic","shadowGroup"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=o.length;e--;){var r=o[e];i[r]&&n.singular.push(r)}return["graphic","dataLabel","connector"].forEach((function(e){var o=e+"s";t[e]&&i[o]&&n.plural.push(o)})),n},e.prototype.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}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?u(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,o=0;for(i=e[o];this[t]>=i.value;)i=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=l(this.id)?this.id:w(),this.resolveColor(),t.chart.pointCount++,d(this,"afterInit"),this},e.prototype.isValid=function(){return null!==this.x&&m(this.y)},e.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,n=o||i.pointArrayMap||["y"],r=n.length,s={},a=0,h=0;if(m(t)||null===t)s[n[0]]=t;else if(f(t))for(!o&&t.length>r&&("string"==(i=typeof t[0])?s.name=t[0]:"number"===i&&(s.x=t[0]),a++);h<r;)o&&void 0===t[a]||(0<n[h].indexOf(".")?e.prototype.setNestedProperty(s,t[a],n[h]):s[n[h]]=t[a]),a++,h++;else"object"==typeof t&&(s=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return s},e.prototype.pos=function(t,e){void 0===e&&(e=this.plotY);var i=this.plotX,o=this.series,n=o.chart,r=o.xAxis;o=o.yAxis;var s=0,a=0;if(m(i)&&m(e))return t&&(s=r?r.pos:n.plotLeft,a=o?o.pos:n.plotTop),n.inverted&&r&&o?[o.len-e+a,r.len-i+s]:[i+s,e+a]},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var o=(i=t.options.colors||t.chart.options.colors)[t.colorCounter];i=i.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else e||(o=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,o)},e.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce((function(t,i,o,n){return t[i]=n.length-1===o?e:y(t[i],!0)?t[i]:{},t[i]}),t),t},e.prototype.shouldDraw=function(){return!this.isNull},e.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,o=b(i.valueDecimals,""),n=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
1h((function(e){e="{point."+e,(n||r)&&(t=t.replace(RegExp(e+"}","g"),n+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+o+"f}")})),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,i,o){function n(){s.applyOptions(t);var o=h&&s.hasMockGraphic;o=null===s.y?!o:o,h&&o&&(s.graphic=h.destroy(),delete s.hasMockGraphic),y(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=h.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),r=s.index,a.updateParallelArrays(s,r),c.data[r]=y(c.data[r],!0)||y(t,!0)?s.options:b(t,c.data[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}var r,s=this,a=s.series,h=s.graphic,l=a.chart,c=a.options;e=b(e,!0),!1===o?n():s.firePointEvent("update",{options:t},n)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var i=this,o=i.series,n=o.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEac
1h((function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=v(t.series.options.point,t.options).events;t.events=e,x(e,(function(e,i){g(e)&&h(t,i,e)})),this.hasImportedEvents=!0}},e.prototype.setState=function(e,i){var o,n=this.series,r=this.state,a=n.options.states[e||"normal"]||{},h=s.plotOptions[n.type].marker&&n.options.marker,l=h&&!1===h.enabled,c=h&&h.states&&h.states[e||"normal"]||{},u=!1===c.enabled,f=this.marker||{},g=n.chart,y=h&&n.markerAttribs,v=n.halo,x=n.stateMarkerGraphic;if(!((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===a.enabled||e&&(u||l&&!1===c.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,y&&(o=n.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){r=n.pointAttribs(this,e);var S=b(g.options.chart.animation,a.animation),C=r.opacity;n.options.inactiveOtherPoints&&m(C)&&((this.dataLabels||[]).forEach((function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&t.animate({opacity:C},S)})),this.connector&&this.connector.animate({opacity:C},S)),this.graphic.animate(r,S)}o&&this.graphic.animate(o,b(g.options.chart.animation,c.animation,h.animation)),x&&x.hide()}else e&&c&&(h=f.symbol||n.symbol,x&&x.currentSymbol!==h&&(x=x.destroy()),o&&(x?x[i?"animate":"attr"]({x:o.x,y:o.y}):h&&(n.stateMarkerGraphic=x=g.renderer.symbol(h,o.x,o.y,o.width,o.height).add(n.markerGroup),x.currentSymbol=h)),!g.styledMode&&x&&"inactive"!==this.state&&x.attr(n.pointAttribs(this,e))),x&&(x[e&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));a=a.halo,o=(x=this.graphic||x)&&x.visibility||"inherit",a&&a.size&&x&&"hidden"!==o&&!this.isCluster?(v||(n.halo=v=g.renderer.path().add(x.parentGroup)),v.show()[i?"animate":"attr"]({d:this.haloPath(a.size)}),v.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,n.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),v.point=this,g.styledMode||v.attr(p({fill:this.color||n.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),d(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(Math.floor(e[0])-t,e[1]-t,2*t,2*t):[]},e}(),e})),e(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n=t.parse,r=e.charts,s=e.noop,a=o.addEvent,h=o.attr,l=o.css,c=o.defined,p=o.extend,d=o.find,u=o.fireEvent,f=o.isNumber,g=o.isObject,m=o.objectEach,y=o.offset,v=o.pick,x=o.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach((function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var i=this;this.eventsToUnbind.forEach((function(t){return t()})),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),m(i,(function(t,e){i[e]=void 0}))},t.prototype.getSelectionMarkerAttrs=function(t,e){var i=this,o={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return u(this,"getSelectionMarkerAttrs",o,(function(o){var n=i.chart,r=i.mouseDownX;r=void 0===r?0:r;var s=i.mouseDownY;s=void 0===s?0:s;var a=i.zoomHor,h=i.zoomVert;(o=o.attrs).x=n.plotLeft,o.y=n.plotTop,o.width=a?1:n.plotWidth,o.height=h?1:n.plotHeight,a&&(n=t-r,o.width=Math.abs(n),o.x=(0<n?0:n)+r),h&&(n=e-s,o.height=Math.abs(n),o.y=(0<n?0:n)+s)})),o},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,o=e.plotLeft,r=e.plotTop,s=e.plotWidth,a=e.plotHeight,h=this.mouseDownX||0,l=this.mouseDownY||0,c=g(i.panning)?i.panning&&i.panning.enabled:i.panning,p=i.panKey&&t[i.panKey+"Key"],d=t.chartX,u=t.chartY,f=this.selectionMarker;f&&f.touch||(d<o?d=o:d>o+s&&(d=o+s),u<r?u=r:u>r+a&&(u=r+a),this.hasDragged=Math.sqrt(Math.pow(h-d,2)+Math.pow(l-u,2)),10<this.hasDragged&&(o=e.isInsidePlot(h-o,l-r,{visiblePlotOnly:!0}),d=(u=this.getSelectionMarkerAttrs(d,u)).shapeType,u=u.attrs,!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&
1!this.zoomY||!o||p||f||(this.selectionMarker=f=e.renderer[d](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||f.attr({fill:i.selectionMarkerFill||n("#335cad").setOpacity(.25).get()})),f&&f.attr(u),o&&!f&&c&&e.pan(t,i.panning)))},t.prototype.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},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:{}};return u(this,"getSelectionBox",e,(function(e){e.result={x:t.attr?+t.attr("x"):t.x,y:t.attr?+t.attr("y"):t.y,width:t.attr?t.attr("width"):t.width,height:t.attr?t.attr("height"):t.height}})),e.result},t.prototype.drop=function(t){var e=this,i=this.chart,o=this.hasPinched;if(this.selectionMarker){var n=this.getSelectionBox(this.selectionMarker),r=n.x,s=n.y,a=n.width,h=n.height,d={originalEvent:t,xAxis:[],yAxis:[],x:r,y:s,width:a,height:h},g=!!i.mapView;(this.hasDragged||o)&&(i.axes.forEach((function(i){if(i.zoomEnabled&&c(i.min)&&(o||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&f(r)&&f(s)&&f(a)&&f(h)){var n=i.horiz,l="touchend"===t.type?i.minPixelPadding:0,p=i.toValue((n?r:s)+l);n=i.toValue((n?r+a:s+h)-l),d[i.coll].push({axis:i,min:Math.min(p,n),max:Math.max(p,n)}),g=!0}})),g&&u(i,"selection",d,(function(t){i.zoom(p(t,o?{animation:!1}:null))}))),f(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),o&&this.scaleGroups()}i&&f(i.index)&&(l(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,i){var o;return t.forEach((function(t){var n=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,n),(n=g(t,!0)&&t.series)&&!(n=!g(o,!0))){n=o.distX-t.distX;var r=o.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);n=0<(0!==n&&e?n:0!==r?r:0!==s?s:o.series.index>t.series.index?-1:1)}n&&(o=t)})),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,o=i.xAxis;i=i.yAxis;var n=t.shapeArgs;if(o&&i){var r=v(t.clientX,t.plotX),s=t.plotY||0;return t.isNode&&n&&f(n.x)&&f(n.y)&&(r=n.x,s=n.y),e?{chartX:i.len+i.pos-s,chartY:o.len+o.pos-r}:{chartX:r+o.pos,chartY:s+i.pos}}if(n&&n.x&&n.y)return{chartX:n.x,chartY:n.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetWidth;return t=t.offsetHeight,2<i&&2<t&&(this.chartPosition.scaleX=e.width/i,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,i,o,n,r){var s=[];o=!(!o||!t);var a=function(t){return t.visible&&!(!n&&t.directTouch)&&v(t.options.enableMouseTracking,!0)},h={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:n};u(this,"beforeGetHoverData",h);var l=e&&!e.stickyTracking?[e]:i.filter((function(t){return t.stickyTracking&&(h.filter||a)(t)})),c=o||!r?t:this.findNearestKDPoint(l,n,r);return e=c&&c.series,c&&(n&&!e.noSharedTooltip?(l=i.filter((function(t){return h.filter?h.filter(t):a(t)&&!t.noSharedTooltip})),l.forEach((function(t){var e=d(t.points,(function(t){return t.x===c.x&&!t.isNull}));g(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),s.push(e))}))):s.push(c)),u(this,"afterGetHoverData",h={hoverPoint:c}),{hoverPoint:h.hoverPoint,hoverSeries:e,hoverPoints:s}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=h(t,"class")){if(-1!==i.indexOf(e))return!0;
1if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentElement}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=o.pageX-e.left,o=o.pageY-e.top,i/=e.scaleX,o/=e.scaleY,p(t,{chartX:Math.round(i),chartY:Math.round(o)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var o=e.plotLeft,n=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(u(i.series,"click",p(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(p(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-o,t.chartY-n,{visiblePlotOnly:!0})&&u(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=r[v(t.hoverChartIndex,-1)],o=this.chart.tooltip;e=this.normalize(e),i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart,i=e.tooltip;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var i=r[v(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.chartPosition;t=this.normalize(t,o),!o||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i=r[v(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,i=e.chart,o=e.pinchDown,n=t.touches||[],r=n.length,a=e.lastValidTouch,h=e.hasZoom,l={},c=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),d={},f=e.chart.tooltip;f=1===r&&v(f&&f.options.followTouchMove,!0);var g=e.selectionMarker;1<r?e.initiated=!0:f&&(e.initiated=!1),h&&e.initiated&&!c&&!1!==t.cancelable&&t.preventDefault(),[].map.call(n,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(n,(function(t,e){o[e]={chartX:t.chartX,chartY:t.chartY}})),a.x=[o[0].chartX,o[1]&&o[1].chartX],a.y=[o[0].chartY,o[1]&&o[1].chartY],i.axes.forEach((function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],o=t.minPixelPadding,n=t.toPixels(Math.min(v(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(v(t.options.max,t.dataMax),t.dataMax)),s=Math.max(n,r);e.min=Math.min(t.pos,Math.min(n,r)-o),e.max=Math.max(t.pos+t.len,s+o)}})),e.res=!0):f?this.runPointActions(e.normalize(t)):o.length&&(u(i,"touchpan",{originalEvent:t},(function(){g||(e.selectionMarker=g=p({destroy:s,touch:!0},i.plotBox)),e.pinchTranslate(o,n,l,g,d,a),e.hasPinched=h,e.scaleGroups(l,d)})),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,o,n,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,o,n,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,o,n,r)}
1,t.prototype.pinchTranslateDirection=function(t,e,i,o,n,r,s,a){var h=this.chart,l=t?"x":"y",c=t?"X":"Y",p="chart"+c,d=t?"width":"height",u=h["plot"+(t?"Left":"Top")],f=h.inverted,g=h.bounds[t?"h":"v"],m=1===e.length,y=e[0][p],v=!m&&e[1][p];e=function(){"number"==typeof w&&20<Math.abs(y-v)&&(S=a||Math.abs(C-w)/Math.abs(y-v)),b=(u-C)/S+y,x=h["plot"+(t?"Width":"Height")]/S};var x,b,S=a||1,C=i[0][p],w=!m&&i[1][p];if(e(),(i=b)<g.min){i=g.min;var A=!0}else i+x>g.max&&(i=g.max-x,A=!0);A?(C-=.8*(C-s[l][0]),"number"==typeof w&&(w-=.8*(w-s[l][1])),e()):s[l]=[C,w],f||(r[l]=b-u,r[d]=x),r=f?1/S:S,n[d]=x,n[l]=i,o[f?t?"scaleY":"scaleX":"scale"+c]=S,o["translate"+c]=r*u+(C-r*y)},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,n=i.hoverPoint,r=i.hoverPoints,s=i.tooltip,a=s&&s.shared?r:n;t&&a&&x(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?s&&a&&x(a).length&&(s.refresh(a),s.shared&&r?r.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):n&&(n.setState(n.state,!0),i.axes.forEach((function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)})))):(n&&n.onMouseOut(),r&&r.forEach((function(t){t.setState()})),o&&o.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(e,i,o){var n=this.chart,s=n.tooltip&&n.tooltip.options.enabled?n.tooltip:void 0,h=!!s&&s.shared,l=i||n.hoverPoint,c=l&&l.series||n.hoverSeries;i=this.getHoverData(l,c,n.series,(!e||"touchmove"!==e.type)&&(!!i||c&&c.directTouch&&this.isDirectTouch),h,e),l=i.hoverPoint,c=i.hoverSeries;var p=i.hoverPoints;i=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var u=h&&c&&!c.noSharedTooltip;if(l&&(o||l!==n.hoverPoint||s&&s.isHidden)){if((n.hoverPoints||[]).forEach((function(t){-1===p.indexOf(t)&&t.setState()})),n.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach((function(t){t.setState("hover")})),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!l.series)return;n.hoverPoints=p,n.hoverPoint=l,l.firePointEvent("mouseOver",void 0,(function(){s&&l&&s.refresh(u?p:l,e)}))}else i&&s&&!s.isHidden&&(o=s.getAnchor([{}],e),n.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(n.container.ownerDocument,"mousemove",(function(e){var i=r[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach((function(t){var i,o=v((t.crosshair||{}).snap,!0);o&&((i=n.hoverPoint)&&i.series[t.coll]===t||(i=d(p,(function(e){return e.series&&e.series[t.coll]===t})))),i||!o?t.drawCrosshair(e,i):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var i=this.chart;i.series.forEach((function(o){var n=t||o.getPlotBox();o.group&&(o.xAxis&&o.xAxis.zoomEnabled||i.mapView)&&(o.group.attr(n),o.markerGroup&&(o.markerGroup.attr(n),o.markerGroup.clip(e?i.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(n))})),i.clipRect.attr(e||i.clipBox)},t.prototype.setDOMEvents=function(){var i=this,o=this.chart.container,n=o.ownerDocument;o.onmousedown=this.onContainerMouseDown.bind(this),o.onmousemove=this.onContainerMouseMove.bind(this),o.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(o,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(n,"mouseup",this.onDocumentMouseUp.bind(this)));for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(a(r,"scroll",(function(){delete i.chartPosition}))),r=r.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(n,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var i=this.chart,o=e.charts[v(t.hoverChartIndex,-1)];o&&o!==i&&o.pointer.onContainerMouseLeave({relatedTarget:i.container}),o&&o.mouseIsDown||(t.hoverChartIndex=i.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop,{visiblePlotOnly:!0})&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var o=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(o,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart;e=e.inverted;var o=i.zooming.type||"";/touch/.test(t.type)&&(o=v(i.zooming.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},t}(),t})),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],(function(t,e,
1i){function o(){var t=[];return t.item=function(t){return this[t]},d(g,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function n(t,i,n,r){var a=s[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,r(t),a[i]({type:n,target:t.currentTarget,preventDefault:h,touches:o()}))}var r=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.charts,a=t.doc,h=t.noop,l=t.win,c=i.addEvent,p=i.css,d=i.objectEach,u=i.pick,f=i.removeEvent,g={},m=!!l.PointerEvent;return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return r(i,e),i.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},i.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},i.prototype.destroy=function(){this.batchMSEvents(f),e.prototype.destroy.call(this)},i.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this.hasZoom&&p(t.container,{"-ms-touch-action":"none","touch-action":"none"})},i.prototype.onContainerPointerDown=function(t){n(t,"onContainerTouchStart","touchstart",(function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},i.prototype.onContainerPointerMove=function(t){n(t,"onContainerTouchMove","touchmove",(function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY},g[t.pointerId].target||(g[t.pointerId].target=t.currentTarget)}))},i.prototype.onDocumentPointerUp=function(t){n(t,"onDocumentTouchEnd","touchend",(function(t){delete g[t.pointerId]}))},i.prototype.setDOMEvents=function(){var t=this.chart.tooltip;e.prototype.setDOMEvents.call(this),(this.hasZoom||u(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(c)},i}(e)})),e(i,"Core/Legend/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r){var s=t.animObject,a=t.setAnimation,h=e.format,l=i.marginNames,c=n.distribute,p=r.addEvent,d=r.createElement,u=r.css,f=r.defined,g=r.discardElement,m=r.find,y=r.fireEvent,v=r.isNumber,x=r.merge,b=r.pick,S=r.relativeLength,C=r.stableSort,w=r.syncTimeout;return t=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),p(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=p(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=x(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(x(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(e,!0)&&i.redraw(),y(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){var i=t.legendItem||{},o=i.group,n=i.label,r=i.line;if(i=i.symbol,o&&o[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var s=this.options;o=this.itemHiddenStyle.color,s=e?s.itemStyle.color:o;var a=e&&t.color||o,h=t.options&&t.options.marker,l={fill:a};n&&n.css({fill:s,color:s}),r&&r.attr({stroke:a}),i&&(h&&i.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=o)),i.attr(l))}y(this,"afterColorizeItem",{item:t,visible:e})}
1,t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,n=i.x;n=void 0===n?0:n,i=void 0===(i=i.y)?0:i;var r=this.options,s=r.symbolPadding,a=!r.rtl;r=t.checkbox,o&&o.element&&(s={translateX:a?n:this.legendWidth-n-2*s-4,translateY:i},o[f(o.translateY)?"animate":"attr"](s,void 0,(function(){y(e,"afterPositionItem",{item:t})}))),r&&(r.x=n,r.y=i)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,n=["group","label","line","symbol"];o<n.length;o++){var r=n[o];i[r]&&(i[r]=i[r].destroy())}e&&g(e),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++)this.destroyItem(e[t]);for(t=0,e="clipRect up down pager nav box title group".split(" ");t<e.length;t++){var i=e[t];this[i]&&(this[i]=this[i].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var o=t.translateY;this.allItems.forEach((function(n){var r=n.checkbox;if(r){var s=o+i+r.y+(this.scrollOffset||0)+3;u(r,{left:t.translateX+n.checkboxOffset+r.x-20+"px",top:s+"px",display:this.proximate||s>o-6&&s<o+e-6?"":"none"})}}),this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?h(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},i=this.chart,o=i.renderer,n=this.options,r=this.symbolWidth,s=n.symbolPadding||0,a=this.itemStyle,h=this.itemHiddenStyle,l="horizontal"===n.layout?b(n.itemDistance,20):0,c=!n.rtl,p=!t.series,d=!p&&t.series.drawLegendSymbol?t.series:t,u=d.options,f=this.createCheckboxForItem&&u&&u.showCheckbox,g=n.useHTML,m=t.options.className,y=e.label;u=r+s+l+(f?20:0),y||(e.group=o.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(p?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=o.text("",c?r+s:-s,this.baseline||0,g),i.styledMode||y.css(x(t.visible?a:h)),y.attr({align:c?"left":"right",zIndex:2}).add(e.group),this.baseline||(this.fontMetrics=o.fontMetrics(i.styledMode?12:a.fontSize,y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,n.squareSymbol&&(this.symbolWidth=b(n.symbolWidth,Math.max(this.symbolHeight,16)),u=this.symbolWidth+s+l+(f?20:0),c&&y.attr("x",this.symbolWidth+s))),d.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,g)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&a.width||y.css({width:(n.itemWidth||this.widthOption||i.spacingBox.width)-u+"px"}),this.setText(t),i=y.getBBox(),o=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=n.itemWidth||e.labelWidth||i.width+u,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(i.height>1.5*o?i.height:o))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,n=t.itemHeight,r=this.itemMarginBottom,s=this.itemMarginTop,a=o?b(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth;var l=t.legendItem||{};o&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=s+this.itemY+r,this.lastLineHeight=Math.max(n,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,o?this.itemX+=e:(this.itemY+=s+n+r,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];
1return this.chart.series.forEach((function(e){var i=e&&e.options;e&&b(i.showInLegend,!f(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))})),y(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var i=this.chart,o=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(r,s){r.test(n)&&!f(t[s])&&(i[l[s]]=Math.max(i[l[s]],i.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*o[s%2?"x":"y"]+b(o.margin,12)+e[s]+(i.titleOffset[s]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],i="left"===this.options.align;this.allItems.forEach((function(o){var n,r=i;if(o.yAxis){o.xAxis.options.reversed&&(r=!r),o.points&&(n=m(r?o.points:o.points.slice(0).reverse(),(function(t){return v(t.plotY)}))),r=this.itemMarginTop+o.legendItem.label.getBBox().height+this.itemMarginBottom;var s=o.yAxis.top-t.plotTop;o.visible?(n=n?n.plotY:o.yAxis.height,n+=s-.3*r):n=s+o.yAxis.height,e.push({target:n,size:r,item:o})}}),this);for(var o,n=0,r=c(e,t.plotHeight);n<r.length;n++){var s=r[n];o=s.item.legendItem||{},v(s.pos)&&(o.y=t.plotTop-t.spacing[0]+s.pos)}},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.options,o=this.padding,n=this.getAllItems(),r=this.group,s=this.box;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=S(i.width,t.spacingBox.width-o);var a=t.spacingBox.width-2*o-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,r||(this.group=r=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(r),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),C(n,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),i.reversed&&n.reverse(),this.allItems=n,this.display=a=!!n.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,n.forEach(this.renderItem,this),n.forEac
1h(this.layoutItem,this),n=(this.widthOption||this.offsetWidth)+o;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=o,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),t.styledMode||s.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<n&&0<h&&s[s.placed?"animate":"attr"](s.crisp.call({},{x:0,y:0,width:n,height:h},s.strokeWidth())),r[a?"show":"hide"](),t.styledMode&&"none"===r.getStyle("display")&&(n=h=0),this.legendWidth=n,this.legendHeight=h,a&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(o-=e.titleOffset[2]),o!==t.y&&(t=x(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(x(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,n=this,r=this.chart,s=r.renderer,a=this.options,h=a.y,l="top"===a.verticalAlign,c=this.padding,p=a.maxHeight,d=a.navigation,u=b(d.animation,!0),f=d.arrowSize||12,g=this.pages,m=this.allItems,y=function(t){"number"==typeof t?S.attr({height:t}):S&&(n.clipRect=S.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},v=function(t){return n[t]=s.circle(0,0,1.3*f).translate(f/2,f/2).add(x),r.styledMode||n[t].attr("fill","rgba(0,0,0,0.0001)"),n[t]};h=r.spacingBox.height+(l?-h:h)-c;var x=this.nav,S=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(h/=2),p&&(h=Math.min(h,p)),g.length=0,t&&0<h&&t>h&&!1!==d.enabled?(this.clipHeight=e=Math.max(h-20-this.titleHeight-c,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,n){t=(o=t.legendItem||{}).y||0;var r=Math.round(o.label.getBBox().height),s=g.length;(!s||t-g[s-1]>e&&(i||t)!==g[s-1])&&(g.push(i||t),s++),o.pageIx=s-1,i&&((m[n-1].legendItem||{}).pageIx=s-1),n===m.length-1&&t+r-g[s-1]>e&&r<=e&&(g.push(t),o.pageIx=s),t!==i&&(i=t)})),S||(S=n.clipRect=s.clipRect(0,c,9999,0),n.contentGroup.clip(S)),y(e),x||(this.nav=x=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(x),v("upTracker").on("click",(function(){n.scroll(-1,u)})),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!r.styledMode&&d.style&&this.pager.css(d.style),this.pager.add(x),this.down=s.symbol("triangle-down",0,0,f,f).add(x),v("downTracker").on("click",(function(){n.scroll(1,u)}))),n.scroll(0),t=h):x&&(y(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,n=this.pages,r=n.length,h=this.clipHeight,l=this.options.navigation,c=this.pager,p=this.padding,d=this.currentPage+t;d>r&&(d=r),0<d&&(void 0!==e&&a(e,o),this.nav.attr({translateX:p,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),c.attr({text:d+"/"+r}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:d===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),o.styledMode||(this.up.attr({fill:1===d?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===r?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:d===r?"default":"pointer"})),this.scrollOffset=-n[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t=s(b(e,o.renderer.globalAnimation,!0)),w((function(){y(i,"afterScroll",{currentPage:d})}),t.duration))},t.prototype.setItemEvents=function(t,e,i){var n=this,r=t.legendItem||{},s=n.chart.renderer.boxWrapper,a=t instanceof o,h="highcharts-legend-"+(a?"point":"series")+"-active",l=n.chart.styledMode,c=function(e){n.allItems.forEac
1h((function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach((function(t){t.setState(e,!a)}))}))},p=0;for(i=i?[e,r.symbol]:[r.group];p<i.length;p++)(r=i[p])&&r.on("mouseover",(function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&s.addClass(h),l||e.css(n.options.itemHoverStyle)})).on("mouseout",(function(){n.chart.styledMode||e.css(x(t.visible?n.itemStyle:n.itemHiddenStyle)),c(""),s.removeClass(h),t.setState()})).on("click",(function(e){var i=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};s.removeClass(h),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):y(t,"legendItemClick",e,i)}))},t.prototype.createCheckboxForItem=function(t){t.checkbox=d("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),p(t.checkbox,"click",(function(e){y(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))},t}(),t})),e(i,"Core/Series/SeriesRegistry.js",[i["Core/Globals.js"],i["Core/Defaults.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n,r=e.defaultOptions,s=o.extendClass,a=o.merge;return function(e){function o(t,o){var n=r.plotOptions||{},s=o.defaultOptions,a=o.prototype;a.type=t,a.pointClass||(a.pointClass=i),s&&(n[t]=s),e.seriesTypes[t]=o}e.seriesTypes=t.seriesTypes,e.registerSeriesType=o,e.seriesType=function(t,n,h,l,c){var p=r.plotOptions||{};return n=n||"",p[t]=a(p[n],h),o(t,s(e.seriesTypes[n]||function(){},l)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=s(i,c)),e.seriesTypes[t]}}(n||(n={})),n})),e(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/FormatUtilities.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/Legend.js"],i["Core/MSPointer.js"],i["Core/Pointer.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Time.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],(function(t,e,i,o,n,r,s,a,h,l,c,p,d,u,f){var g=t.animate,m=t.animObject,y=t.setAnimation,v=i.defaultOptions,x=i.defaultTime,b=o.numberFormat,S=n.registerEventOptions,C=r.charts,w=r.doc,A=r.marginNames,M=r.svg,k=r.win,T=c.seriesTypes,P=u.addEvent,E=u.attr,O=u.cleanRecursively,D=u.createElement,L=u.css,B=u.defined,j=u.discardElement,I=u.erase,N=u.error,R=u.extend,G=u.find,z=u.fireEvent,F=u.getStyle,H=u.isArray,U=u.isNumber,_=u.isObject,W=u.isString,X=u.merge,Y=u.objectEach,V=u.pick,K=u.pInt,Z=u.relativeLength,q=u.removeEvent,$=u.splat,J=u.syncTimeout,Q=u.uniqueKey;return t=function(){function t(t,e,i){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,i)}return t.chart=function(e,i,o){return new t(e,i,o)},t.prototype.getArgs=function(t,e,i){W(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var i=t.plotOptions||{};z(this,"init",{args:arguments},(function(){var o=X(v,t),n=o.chart;Y(o.plotOptions,(function(t,e){_(t)&&(t.tooltip=i[e]&&X(i[e].tooltip)||void 0)})),o.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0;var s=n.zooming=n.zooming||{};t.chart&&!t.chart.zooming&&(s.resetButton=n.resetZoomButton),s.key=V(s.key,n.zoomKey),s.pinchType=V(s.pinchType,n.pinchType),s.singleTouch=V(s.singleTouch,n.zoomBySingleTouch),s.type=V(s.type,n.zoomType),this.options=o,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new d(t.t
1ime):r.time,this.numberFormatter=n.numberFormatter||b,this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes,this.index=C.length,C.push(this),r.chartCount++,S(this,n),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,z(this,"afterInit"),this.firstRender()}))},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var i=T[e];return i||N(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new i).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var i=e.length;t<i;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o=this.inverted,n=this.plotBox,r=this.plotLeft,s=this.plotTop,a=this.scrollablePlotBox,h=0,l=0;i.visiblePlotOnly&&this.scrollingContainer&&(h=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var c=i.series;if(n=i.visiblePlotOnly&&a||n,t={x:a=i.inverted?e:t,y:e=i.inverted?t:e,isInsidePlot:!0,options:i},!i.ignoreX){var p=c&&(o&&!this.polar?c.yAxis:c.xAxis)||{pos:r,len:1/0};(a=i.paneCoordinates?p.pos+a:r+a)>=Math.max(h+r,p.pos)&&a<=Math.min(h+r+n.width,p.pos+p.len)||(t.isInsidePlot=!1)}return!i.ignoreY&&t.isInsidePlot&&(o=i.axis&&!i.axis.isXAxis&&i.axis||c&&(o?c.xAxis:c.yAxis)||{pos:s,len:1/0},(i=i.paneCoordinates?o.pos+e:s+e)>=Math.max(l+s,o.pos)&&i<=Math.min(l+s+n.height,o.pos+o.len)||(t.isInsidePlot=!1)),z(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){z(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,o=this.pointer,n=this.legend,r=this.userOptions.legend,s=this.renderer,a=s.isHidden(),h=[],l=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var p=i[t];if(p.options.stacking||p.options.centerInCategory){var d=!0;if(p.isDirty){var u=!0;break}}}if(u)for(t=i.length;t--;)(p=i[t]).options.stacking&&(p.isDirty=!0);i.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):r&&(r.labelFormatter||r.labelFormat)&&(c=!0)),t.isDirtyData&&z(t,"updatedData")})),c&&n&&n.options.enabled&&(n.render(),this.isDirtyLegend=!1),d&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(l=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,h.push((function(){z(t,"afterSetExtremes",R(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(l||d)&&t.redraw()})),l&&this.drawChartBox(),z(this,"predraw"),i.forEach((function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),o&&o.reset(!0),s.draw(),z(this,"redraw"),z(this,"render"),a&&this.temporaryDisplay(!0),h.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var i=this.series,o=G(this.axes,e)||G(this.series,e),n=0;!o&&n<i.length;n++)o=G(i[n].points||[],e);return o},t.prototype.getAxes=function(){var t=this,i=this.options,o=i.xAxis=$(i.xAxis||{});i=i.yAxis=$(i.yAxis||{}),z(this,"getAxes"),o.forEach((function(t,e){t.index=e,t.isX=!0})),i.forEach((function(t,e){t.index=e})),o.concat(i).forEach((function(i){new e(t,i)})),z(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce((function(t,e){return e.getPointsCollection().forEach((function(e){V(e.selectedStaging,e.selected)&&t.push(e)})),t}),[])},t.prototype.getSelectedSeries=function(){return this.series.filter((function(t){return t.selected}))},t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i=this,o="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};o=this.options[t]=X(!this.styledMode&&{style:o},this.options[t],e);var n=this[t];n&&e&&(this[t]=n=n.destroy()),o&&!n&&((n=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+t,zIndex:o.zIndex||4}
1).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||n.css(o.style),this[t]=n)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,o=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var n,r=this[t],s=this.options[t],a=s.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,r){this.styledMode||(n=s.style&&s.style.fontSize),n=i.fontMetrics(n,r).b,r.css({width:(s.width||o.width+(s.widthAdjust||0))+"px"});var h=Math.round(r.getBBox(s.useHTML).height);r.align(R({y:"bottom"===a?n:t+n,height:h},s),!1,"spacingBox"),s.floating||("top"===a?e[0]=Math.ceil(e[0]+h):"bottom"===a&&(e[2]=Math.ceil(e[2]+h)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var n=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,z(this,"afterLayOutTitles"),!this.isDirtyBox&&n&&(this.isDirtyBox=this.isDirtyLegend=n,this.hasRendered&&V(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var i=this.renderTo;B(e)||(this.containerWidth=F(i,"width")),B(t)||(this.containerHeight=F(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,Z(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(L(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(w.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(w.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,w.body.appendChild(e)),("none"===F(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),L(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==w.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,i=e.chart,o=Q(),n=this.renderTo;n||(this.renderTo=n=i.renderTo),W(n)&&(this.renderTo=n=w.getElementById(n)),n||N(13,!0,this);var r=K(E(n,"data-highcharts-chart"));U(r)&&C[r]&&C[r].hasRendered&&C[r].destroy(),E(n,"data-highcharts-chart",this.index),n.innerHTML=f.emptyHTML,i.skipClone||n.offsetWidth||this.temporaryDisplay(),this.getChartSize(),r=this.chartWidth;var s=this.chartHeight;if(L(n,{overflow:"hidden"}),this.styledMode||(t=R({position:"relative",overflow:"hidden",width:r+"px",height:s+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{})),this.container=o=D("div",{id:o},t,n),this._cursor=o.style.cursor,this.renderer=new(i.renderer||!M?l.getRendererType(i.renderer):p)(o,r,s,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),y(void 0,this),this.setClassName(i.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,z(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!B(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!B(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),z(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,n=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?n(t.axes):i&&i.length&&n(i),A.forEach((function(i,n){B(o[n])||(t[i]+=e[n])})),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,o=e.renderTo,n=B(i.width)&&B(i.height),r=i.width||F(o,"width");
1i=i.height||F(o,"height"),o=t?t.target:k,delete e.pointer.chartPosition,n||e.isPrinting||!r||!i||o!==k&&o!==w||(r===e.containerWidth&&i===e.containerHeight||(u.clearTimeout(e.reflowTimeout),e.reflowTimeout=J((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerWidth=r,e.containerHeight=i)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=P(k,"resize",(function(t){e.options&&e.reflow(t)})),P(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var o=this,n=o.renderer;o.isResizing+=1,y(i,o),i=n.globalAnimation,o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize(),o.styledMode||(i?g:L)(o.container,{width:o.chartWidth+"px",height:o.chartHeight+"px"},i),o.setChartSize(!0),n.setSize(o.chartWidth,o.chartHeight,i),o.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(i),o.oldChartHeight=null,z(o,"resize"),J((function(){o&&z(o,"endResize",null,(function(){--o.isResizing}))}),m(i).duration)},t.prototype.setChartSize=function(t){var e,i,o,n,r=this.inverted,s=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,c=this.spacing,p=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=o=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=n=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=r?n:o,this.plotSizeY=r?o:n,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=s.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:h-c[0]-c[2]},this.plotBox=s.plotBox={x:e,y:i,width:o,height:n},r=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(r,p[3])/2),h=Math.ceil(Math.max(r,p[0])/2),this.clipBox={x:a,y:h,width:Math.floor(this.plotSizeX-Math.max(r,p[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(r,p[2])/2-h))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),s.alignElements()),z(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){z(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(i){var o=e[i],n=_(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach((function(o,r){t[i][r]=V(e[i+o],n[r])}))})),A.forEach((function(e,i){t[e]=V(t.margin[i],t.spacing[i])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,i=this.renderer,o=this.chartWidth,n=this.chartHeight,r=this.styledMode,s=this.plotBGImage,a=e.backgroundColor,h=e.plotBackgroun
1dColor,l=e.plotBackgroundImage,c=this.plotLeft,p=this.plotTop,d=this.plotWidth,u=this.plotHeight,f=this.plotBox,g=this.clipRect,m=this.clipBox,y=this.chartBackground,v=this.plotBackground,x=this.plotBorder,b="animate";if(y||(this.chartBackground=y=i.rect().addClass("highcharts-background").add(),b="attr"),r)var S=t=y.strokeWidth();else t=(S=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(S||y["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=S),y.attr(a).shadow(e.shadow);y[b]({x:t/2,y:t/2,width:o-t-S%2,height:n-t-S%2,r:e.borderRadius}),b="animate",v||(b="attr",this.plotBackground=v=i.rect().addClass("highcharts-plot-background").add()),v[b](f),r||(v.attr({fill:h||"none"}).shadow(e.plotShadow),l&&(s?(l!==s.attr("href")&&s.attr("href",l),s.animate(f)):this.plotBGImage=i.image(l,c,p,d,u).add())),g?g.animate({width:m.width,height:m.height}):this.clipRect=i.clipRect(m),b="animate",x||(b="attr",this.plotBorder=x=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r||x.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),x[b](x.crisp({x:c,y:p,width:d,height:u},-x.strokeWidth())),this.isDirtyBox=!1,z(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,n=o.options.chart,r=o.options.series;["inverted","angular","polar"].forEach((function(s){for(e=T[n.type||n.defaultSeriesType],i=n[s]||e&&e.prototype[s],t=r&&r.length;!i&&t--;)(e=T[r[t].type])&&e.prototype[s]&&(i=!0);o[s]=i}))},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var i=e.options.linkedTo;W(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=V(e.options.visible,i.options.visible,e.visible))})),z(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach((function(t){t.translate(),t.render()}))},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(i){var o=R(e.style,i.style),n=K(o.left)+t.plotLeft,r=K(o.top)+t.plotTop+12;delete o.left,delete o.top,t.renderer.text(i.html,n,r).attr({zIndex:2}).css(o).add()}))},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,o=this.options,n=function(t){t.forEach((function(t){t.visible&&t.render()}))},r=0;this.setTitle(),this.legend=new s(this,o.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),o=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return r=21,!0}));var a=this.plotHeight=Math.max(this.plotHeight-r,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var h=1.1<o/this.plotWidth,l=1.05<a/this.plotHeight;(h||l)&&(t.forEach((function(t){(t.horiz&&h||!t.horiz&&l)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?n(t):e&&e.length&&n(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,i=X(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){i.href&&(k.location.href=i.href)})).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,i=e.axes,o=e.series,n=e.container,s=n&&n.parentNode;for(z(e,"destroy"),e.renderer.forExport?I(C,e):C[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),q(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=o.length;t--;)o[t]=o[t].destroy();
1"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())})),n&&(n.innerHTML=f.emptyHTML,q(n),s&&j(n)),Y(e,(function(t,i){delete e[i]}))},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(H(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),z(t,"beforeRender"),h&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new h(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),z(this,"load"),z(this,"render"),B(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"<")}),t.accessibility&&!1===t.accessibility.enabled||N('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.addSeries=function(t,e,i){var o,n=this;return t&&(e=V(e,!0),z(n,"addSeries",{options:t},(function(){o=n.initSeries(t),n.isDirtyLegend=!0,n.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),z(n,"afterAddSeries",{series:o}),e&&n.redraw(i)}))),o},t.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:o})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,i){return t=new e(this,X(i.axis,{index:this[t].length,isX:"xAxis"===t})),V(i.redraw,!0)&&this.redraw(i.animation),t},t.prototype.showLoading=function(t){var e=this,i=e.options,o=i.loading,n=function(){r&&L(r,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},r=e.loadingDiv,s=e.loadingSpan;r||(e.loadingDiv=r=D("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=D("span",{className:"highcharts-loading-inner"},null,r),P(e,"redraw",n)),r.className="highcharts-loading",f.setElementHTML(s,V(t,i.lang.loading,"")),e.styledMode||(L(r,R(o.style,{zIndex:10})),L(s,o.labelStyle),e.loadingShown||(L(r,{opacity:0,display:""}),g(r,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,n()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){L(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var n,r,s=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,l=[];z(s,"update",{options:t}),h||s.setResponsive(!1,!0),t=O(t,s.options),s.userOptions=X(s.userOptions,t);var c=t.chart;if(c){if(X(!0,s.options.chart,c),"className"in c&&s.setClassName(c.className),"reflow"in c&&s.setReflow(c.reflow),"inverted"in c||"polar"in c||"type"in c){s.propFromSeries();var p=!0}"alignTicks"in c&&(p=!0),"events"in c&&S(this,c),Y(c,(function(t,e){-1!==s.propsRequireUpdateSeries.indexOf("chart."+e)&&(n=!0),-1!==s.propsRequireDirtyBox.indexOf(e)&&(s.isDirtyBox=!0),-1!==s.propsRequireReflow.indexOf(e)&&(h?s.isDirtyBox=!0:r=!0)})),!s.styledMode&&c.style&&s.renderer.setStyle(s.options.chart.style||{})}!s.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===x&&(this.time=new d(t.t
1ime)),X(!0,s.options.time,t.time)),Y(t,(function(e,i){s[i]&&"function"==typeof s[i].update?s[i].update(e,!1):"function"==typeof s[a[i]]?s[a[i]](e):"colors"!==i&&-1===s.collectionsWithUpdate.indexOf(i)&&X(!0,s.options[i],t[i]),"chart"!==i&&-1!==s.propsRequireUpdateSeries.indexOf(i)&&(n=!0)})),this.collectionsWithUpdate.forEach((function(e){if(t[e]){var o=[];s[e].forEach((function(t,e){t.options.isInternal||o.push(V(t.options.index,e))})),$(t[e]).forEach((function(t,n){var r,a=B(t.id);a&&(r=s.get(t.id)),!r&&s[e]&&(r=s[e][o?o[n]:n])&&a&&B(r.options.id)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&s.collectionsWithInit[e]&&(s.collectionsWithInit[e][0].apply(s,[t].concat(s.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)})),i&&s[e].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)}))}})),l.forEach((function(t){t.chart&&t.remove&&t.remove(!1)})),p&&s.axes.forEach((function(t){t.update({},!1)})),n&&s.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),p=c&&c.width,c=c&&(W(c.height)?Z(c.height,p||s.chartWidth):c.height),r||U(p)&&p!==s.chartWidth||U(c)&&c!==s.chartHeight?s.setSize(p,c,o):V(e,!0)&&s.redraw(o),z(s,"afterUpdate",{options:t,redraw:e,animation:o})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,i=v.lang,o=e.options.chart.zooming.resetButton,n=o.theme,r="chart"===o.relativeTo||"spacingBox"===o.relativeTo?null:"scrollablePlotBox";z(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,n).attr({align:o.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(o.position,!1,r)})),z(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){z(this,"selection",{resetSelection:!0}
1,this.zoom)},t.prototype.zoom=function(t){var e,i=this,o=i.pointer,n=!1;!t||t.resetSelection?(i.axes.forEach((function(t){e=t.zoom()})),o.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var r=t.axis;(o[r.isXAxis?"zoomX":"zoomY"]&&B(o.mouseDownX)&&B(o.mouseDownY)&&i.isInsidePlot(o.mouseDownX-i.plotLeft,o.mouseDownY-i.plotTop,{axis:r})||!B(i.inverted?o.mouseDownX:o.mouseDownY))&&(e=r.zoom(t.min,t.max),r.displayBtn&&(n=!0))}));var r=i.resetZoomButton;n&&!r?i.showResetZoom():!n&&_(r)&&(i.resetZoomButton=r.destroy()),e&&i.redraw(V(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i=this,o=i.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var n=i.options.chart;n&&n.panning&&(n.panning=e);var r,s=e.type;z(this,"pan",{originalEvent:t},(function(){o&&o.forEach((function(t){t.setState()}));var e=i.xAxis;"xy"===s?e=e.concat(i.yAxis):"y"===s&&(e=i.yAxis);var n={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var o=e.horiz,a=t[o?"chartX":"chartY"],h=i[o=o?"mouseDownX":"mouseDownY"],l=e.minPointOffset||0,c=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,p=e.getExtremes(),d=e.toValue(h-a,!0)+l*c,u=e.toValue(h+e.len-a,!0)-(l*c||e.isXAxis&&e.pointRangePadding||0),f=u<d;c=e.hasVerticalPanning(),h=f?u:d,d=f?d:u;var g=e.panningState;!c||e.isXAxis||g&&!g.isDirty||e.series.forEach((function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),g||(g={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),U(e.dataMin)&&U(e.dataMax)&&(g.startMin=Math.min(V(t.options.threshold,1/0),e.dataMin,g.startMin),g.startMax=Math.max(V(t.options.threshold,-1/0),e.dataMax,g.startMax))}
1)),c=Math.min(V(g&&g.startMin,p.dataMin),l?p.min:e.toValue(e.toPixels(p.min)-e.minPixelPadding)),u=Math.max(V(g&&g.startMax,p.dataMax),l?p.max:e.toValue(e.toPixels(p.max)+e.minPixelPadding)),e.panningState=g,e.isOrdinal||(0<(l=c-h)&&(d+=l,h=c),0<(l=d-u)&&(d=u,h-=l),e.series.length&&h!==p.min&&d!==p.max&&h>=c&&d<=u&&(e.setExtremes(h,d,!1,!1,{trigger:"pan"}),!i.resetZoomButton&&h!==c&&d!==u&&s.match("y")&&(i.showResetZoom(),e.displayBtn=!1),r=!0),n[o]=a)}})),Y(n,(function(t,e){i[e]=t})),r&&i.redraw(!1),L(i.container,{cursor:"move"})}))},t}(),R(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(i,"Core/Legend/LegendSymbol.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.extend,o=t.merge,n=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},r=this.options,s=t.symbolWidth,a=t.symbolHeight,h=a/2,l=this.chart.renderer,c=e.group;t=t.baseline-Math.round(.3*t.fontMetrics.b);var p={},d=r.marker,u=0;this.chart.styledMode||(p={"stroke-width":Math.min(r.lineWidth||0,24)},r.dashStyle?p.dashstyle=r.dashStyle:"square"!==r.linecap&&(p["stroke-linecap"]="round")),e.line=l.path().addClass("highcharts-graph").attr(p).add(c),p["stroke-linecap"]&&(u=Math.min(e.line.strokeWidth(),s)/2),e.line.attr({d:[["M",u,t],["L",s-u,t]]}),d&&!1!==d.enabled&&s&&(r=Math.min(n(d.radius,h),h),0===this.symbol.indexOf("url")&&(d=o(d,{width:a,height:a}),r=0),e.symbol=e=l.symbol(this.symbol,s/2-r,t-r,2*r,2*r,i({context:"legend"},d)).addClass("highcharts-point").add(c),e.isMarker=!0)},t.drawRectangle=function(t,e){e=e.legendItem||{};var i=t.symbolHeight,o=t.options.squareSymbol;e.symbol=this.chart.renderer.rect(o?(t.symbolWidth-i)/2:0,t.baseline-i+1,o?i:t.symbolWidth,i,n(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.group)}}(e||(e={})),e})),e(i,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s,a,h,l){var c=t.animObject,p=t.setAnimation,d=e.defaultOptions,u=i.registerEventOptions,f=o.hasTouch,g=o.svg,m=o.win,y=a.seriesTypes,v=l.arrayMax,x=l.arrayMin,b=l.clamp,S=l.cleanRecursively,C=l.correctFloat,w=l.defined,A=l.erase,M=l.error,k=l.extend,T=l.find,P=l.fireEvent,E=l.getNestedProperty,O=l.isArray,D=l.isNumber,L=l.isString,B=l.merge,j=l.objectEach,I=l.pick,N=l.removeEvent,R=l.splat,G=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){P(this,"init",{options:e});var i=this,o=t.series;this.eventsToUnbind=[],i.chart=t,i.options=i.setOptions(e),e=i.options,i.linkedSeries=[],i.bindAxes(),k(i,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),u(this,e);var n,r=e.events;(r&&r.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),i.getColor(),i.getSymbol(),i.parallelArrays.forEach((function(t){i[t+"Data"]||(i[t+"Data"]=[])})),i.isCartesian&&(t.hasCartesianSeries=!0),o.length&&(n=o[o.length-1]),i._i=I(n&&n._i,-1)+1,i.opacity=i.options.opacity,t.orderSeries(this.insert(o)),e.dataSorting&&e.dataSorting.enabled?i.setDataSortingOptions():i.points||i.data||i.setData(e.data,!1),P(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(D(i)){for(e=t.length;e--;)if(i>=I(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 I(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;
1P(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(n){var r=0;o[n].forEach((function(o){t=o.options,(i[n]===r&&!t.isInternal||void 0!==i[n]&&i[n]===t.id||void 0===i[n]&&0===t.index)&&(e.insert(o.series),e[n]=o,o.isDirty=!0),t.isInternal||r++})),e[n]||e.optionalAxis===n||M(18,!0,o)}))})),P(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,o=arguments,n=D(e)?function(o){var n="y"===o&&i.toYData?i.toYData(t):t[o];i[o+"Data"][e]=n}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(o,2))};i.parallelArrays.forEach(n)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,i=this.options,o=i.pointIntervalUnit,n=i.relativeXValue,r=this.chart.time,s=this.xIncrement;return s=I(s,i.pointStart,0),this.pointInterval=e=I(this.pointInterval,i.pointInterval,1),n&&D(t)&&(e*=t),o&&(i=new r.Date(s),"day"===o?r.set("Date",i,r.get("Date",i)+e):"month"===o?r.set("Month",i,r.get("Month",i)+e):"year"===o&&r.set("FullYear",i,r.get("FullYear",i)+e),e=i.getTime()-s),n&&D(t)?s+e:(this.xIncrement=s+e,s)},t.prototype.setDataSortingOptions=function(){var t=this.options;k(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),w(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,i=e.options,o=i.plotOptions,n=e.userOptions||{};t=B(t),e=e.styledMode;var r={plotOptions:o,userOptions:t};P(this,"setOptions",r);var s=r.plotOptions[this.type],a=n.plotOptions||{};return this.userOptions=r.userOptions,n=B(s,o.series,n.plotOptions&&n.plotOptions[this.type],t),this.tooltipOptions=B(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,i.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,t.tooltip),this.stickyTracking=I(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||n.stickyTracking),null===s.marker&&delete n.marker,this.zoneAxis=n.zoneAxis,o=this.zones=(n.zones||[]).slice(),!n.negativeColor&&!n.negativeFillColor||n.zones||(i={value:n[this.zoneAxis+"Threshold"]||n.threshold||0,className:"highcharts-negative"},e||(i.color=n.negativeColor,i.fillColor=n.negativeFillColor),o.push(i)),o.length&&w(o[o.length-1].value)&&o.push(e?{}:{color:this.color,fillColor:this.fillColor}),P(this,"afterSetOptions",{options:n}),n},t.prototype.getName=function(){return I(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var o=this.chart,n=this.userOptions,r=t+"Index",s=t+"Counter",a=i?i.length:I(o.options.chart[t+"Count"],o[t+"Count"]);if(!e){var h=I(n[r],n["_"+r]);w(h)||(o.series.length||(o[s]=0),n["_"+r]=h=o[s]%a,o[s]+=1),i&&(e=i[h])}void 0!==h&&(this[r]=h),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var i,o,n=t.id,s=t.x,a=this.points,h=this.options.dataSorting;if(n)(h=this.chart.get(n))instanceof r&&(i=h);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(i=function(e){return!e.touched&&e.index===t.index},h&&h.matchByName?i=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(i=function(e){return!e.touched&&e.options.x===t.x}),!(i=T(a,i))))return;if(i){var l=i&&i.index;void 0!==l&&(o=!0)}return void 0===l&&D(s)&&(l=this.xData.indexOf(s,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!o&&D(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,o,n,r=this.options,s=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,p=!0;if(this.xIncrement=null,t.forEach((function(t,e){var o=w(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},p=o.x;o.id||D(p)?(-1===(o=this.findPointIndex(o,n))||void 0===o?h.push(t):a[o]&&t!==r.data[o]?(a[o].update(t,!1,null,!1),a[o].touched=!0,l&&(n=o+1)):a[o]&&(a[o].touched=!0),(!c||e!==o||s&&s.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)}),this),i)for(t=a.length;t--;)(o=a[t])&&!o.touched&&o.remove&&o.remove(!1,e);else!c||s&&s.enabled?p=!1:(t.forEach((function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)})),h.length=0);return a.forEach((function(t){t&&(t.touched=!1)}
1)),!!p&&(h.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=v(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var n=this,r=n.points,s=r&&r.length||0,a=n.options,h=n.chart,l=a.dataSorting,c=n.xAxis,p=a.turboThreshold,d=this.xData,u=this.yData,f=n.pointArrayMap;f=f&&f.length;var g,m=a.keys,y=0,v=1,x=null;if(!h.options.chart.allowMutatingData){a.data&&delete n.options.data,n.userOptions.data&&delete n.userOptions.data;var b=B(!0,t)}if(b=(t=b||t||[]).length,l&&l.enabled&&(t=this.sortData(t)),h.options.chart.allowMutatingData&&!1!==o&&b&&s&&!n.cropped&&!n.hasGroupedData&&n.visible&&!n.boosted&&(g=this.updateData(t,i)),!g){if(n.xIncrement=null,n.colorCounter=0,this.parallelArrays.forEach((function(t){n[t+"Data"].length=0})),p&&b>p)if(x=n.getFirstValidPoint(t),D(x))for(i=0;i<b;i++)d[i]=this.autoIncrement(),u[i]=t[i];else if(O(x))if(f)if(x.length===f)for(i=0;i<b;i++)d[i]=this.autoIncrement(),u[i]=t[i];else for(i=0;i<b;i++)o=t[i],d[i]=o[0],u[i]=o.slice(1,f+1);else if(m&&(y=0<=(y=m.indexOf("x"))?y:0,v=0<=(v=m.indexOf("y"))?v:1),1===x.length&&(v=0),y===v)for(i=0;i<b;i++)d[i]=this.autoIncrement(),u[i]=t[i][v];else for(i=0;i<b;i++)o=t[i],d[i]=o[y],u[i]=o[v];else M(12,!1,h);else for(i=0;i<b;i++)void 0!==t[i]&&(o={series:n},n.pointClass.prototype.applyOptions.apply(o,[t[i]]),n.updateParallelArrays(o,i));for(u&&L(u[0])&&M(14,!0,h),n.data=[],n.options.data=n.userOptions.data=t,i=s;i--;)r[i]&&r[i].destroy&&r[i].destroy();c&&(c.minRange=c.userMinRange),n.isDirty=h.isDirtyBox=!0,n.isDirtyData=!!r,i=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&h.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return w(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(i,n){t[n]=o(e,i),t[n].index=n}),this),t.concat().sort((function(t,e){return t=E(i,t),(e=E(i,e))<t?-1:e>t?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var i=e.options,n=i.data;i.dataSorting&&i.dataSorting.enabled||!n||(n.forEach((function(i,r){n[r]=o(e,i),t[r]&&(n[r].x=t[r].x,n[r].index=r)})),e.setData(n,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,i=this.options,o=i.cropThreshold,n=t||this.getExtremesFromAll||i.getExtremesFromAll,r=this.isCartesian;t=e&&e.val2lin,i=!(!e||!e.logarithmic);var s=0,a=this.xData,h=this.yData,l=this.requireSorting,c=!1,p=a.length;if(e){var d=(c=e.getExtremes()).min,u=c.max;c=!(!e.categories||e.names.length)}if(r&&this.sorted&&!n&&(!o||p>o||this.forceCrop))if(a[p-1]<d||a[0]>u)a=[],h=[];else if(this.yData&&(a[0]<d||a[p-1]>u)){var f=this.cropData(this.xData,this.yData,d,u);a=f.xData,h=f.yData,s=f.start,f=!0}for(o=a.length||1;--o;)if(0<(e=i?t(a[o])-t(a[o-1]):a[o]-a[o-1])&&(void 0===g||e<g))var g=e;else 0>e&&l&&!c&&(M(15,!1,this.chart),l=!1);return{xData:a,yData:h,cropped:f,cropStart:s,closestPointRange:g}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,P(this,"afterProcessData")},t.prototype.cropData=function(t,e,i,o,n){var r,s=t.length,a=0,h=s;for(n=I(n,this.cropShoulder),r=0;r<s;r++)if(t[r]>=i){a=Math.max(0,r-n);break}for(i=r;i<s;i++)if(t[i]>o){h=i+n;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,i=this.processedXData,o=this.processedYData,n=this.pointClass,r=i.length,s=this.cropStart||0,a=this.hasGroupedData,h=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?s:0;var c,p,d=this.data;if(!d&&!a){var u=[];u.length=e.length,d=this.data=u}for(h&&a&&(this.options.keys=!1),p=0;p<r;p++){if(u=s+p,a){var f=(new n).init(this,[i[p]].concat(R(o[p])));f.dataGroup=this.groupMap[t+p],f.dataGroup.options&&(f.options=f.dataGroup.options,k(f,f.dataGroup.options),delete f.dataLabels)}else(f=d[u])||void 0===e[u]||(d[u]=f=(new n).init(this,e[u],i[p]));f&&(f.index=a?t+p:u,l[p]=f)}if(this.options.keys=h,d&&(r!==(c=d.length)||a))for(p=0;p<c;p++)p!==s||a||(p+=r),d[p]&&(d[p].destroyElements(),d[p].plotX=void 0);this.data=d,this.points=l,P(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:x(t),max:v(t)}},t.prototype.getExtremes=function(t,e){var i=this.xAxis,o=this.yAxis,n=this.processedXData||this.xData,r=[],s=this.requireSorting?this.cropShoulder:0;o=!!o&&o.positiveValuesOnly;var a,h=0,l=0,c=0,p=(t=t||this.stackedYData||this.processedYData||[]).length;if(i){var d=i.getExtremes();h=d.min,l=d.max}for(a=0;a<p;a++){var u=n[a];
1d=t[a];var f=(D(d)||O(d))&&(d.length||0<d||!o);if(u=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i||(n[a+s]||u)>=h&&(n[a-s]||u)<=l,f&&u)if(f=d.length)for(;f--;)D(d[f])&&(r[c++]=d[f]);else r[c++]=d}return t={activeYData:r,dataMin:x(r),dataMax:v(r)},P(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,i=0,o=null;null===o&&i<e;)o=t[i],i++;return o},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,o=i.stacking,n=this.xAxis,r=n.categories,s=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,c=this.pointPlacementToXValue(),p=!!c,d=i.threshold,u=i.startFromThreshold?d:0,f=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<l;t++){var m=h[t],y=m.x,v=void 0,x=void 0,S=m.y,A=m.low,M=o&&a.stacking&&a.stacking.stacks[(this.negStacks&&S<(u?0:d)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(S)||n.positiveValuesOnly&&!n.validatePositiveValue(y))&&(m.isNull=!0),m.plotX=e=C(b(n.translate(y,0,0,0,1,c,"flags"===this.type),-1e5,1e5)),o&&this.visible&&M&&M[y]){var k=this.getStackIndicator(k,y,this.index);!m.isNull&&k.key&&(x=(v=M[y]).points[k.key]),v&&O(x)&&(A=x[0],S=x[1],A===u&&k.key===M[y].base&&(A=I(D(d)?d:a.min)),a.positiveValuesOnly&&w(A)&&0>=A&&(A=void 0),m.total=m.stackTotal=I(v.total),m.percentage=w(m.y)&&v.total?m.y/v.total*100:void 0,m.stackY=S,this.irregularWidths||v.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(m.yBottom=w(A)?b(a.translate(A,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(S=this.dataModify.modifyValue(S,t)),m.plotY=void 0,D(S)&&void 0!==(v=a.translate(S,!1,!0,!1,!0))&&(m.plotY=b(v,-1e5,1e5)),m.isInside=this.isPointInside(m),m.clientX=p?C(n.translate(y,0,0,0,1,c)):e,m.negative=m[f]<(i[f+"Threshold"]||d||0),m.category=I(r&&r[m.x],m.x),!m.isNull&&!1!==m.visible){void 0!==T&&(g=Math.min(g,Math.abs(e-T)));var T=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&s&&(m.isNew=!0)}this.closestPointRangePx=g,P(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!o.isInsidePlot(t.plotX,t.plotY,{inverted:o.inverted}))&&!1!==t.visible&&(i||!t.isNull)}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis,o=B(t.clipBox);return e&&e.len!==t.plotSizeX&&(o.width=e.len),i&&i.len!==t.plotSizeY&&(o.height=i.len),o},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips;t=t.renderer;var n=this.getClipBox(),r=this.getSharedClipKey(),s=o[r];s?s.animate(n):o[r]=s=t.clipRect(n),e&&e.clip(!1===this.options.clip?void 0:s),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,n=e.inverted,r=c(this.options.animation),s=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(),a=e.sharedCl
1ips[s],h=e.sharedClips[s+"m"];if(t&&i)r=this.getClipBox(),a?a.attr("height",r.height):(r.width=0,n&&(r.x=e.plotHeight),a=e.renderer.clipRect(r),e.sharedClips[s]=a,h=e.renderer.clipRect({x:-99,y:-99,width:n?e.plotWidth+199:99,height:n?99:e.plotHeight+199}),e.sharedClips[s+"m"]=h),i.clip(a),o&&o.clip(h);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=r.step;o&&o.element.childNodes.length&&(r.step=function(t,e){l&&l.apply(e,arguments),"width"===e.prop&&h&&h.element&&h.attr(n?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(e,r)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),j(this.chart.sharedClips,(function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])})),this.finishedAnimating=!0,P(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i,o=this.chart,n=o.styledMode,r=this.colorAxis,s=this.options.marker,a=this[this.specialGroup||"markerGroup"],h=this.xAxis,l=I(s.enabled,!(h&&!h.isRadial)||null,this.closestPointRangePx>=s.enabledThreshold*s.radius);if(!1!==s.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){var c=t[e],p=(i=c.graphic)?"animate":"attr",d=c.marker||{},u=!!c.marker;if((l&&void 0===d.enabled||d.enabled)&&!c.isNull&&!1!==c.visible){var f=I(d.symbol,this.symbol,"rect"),g=this.markerAttribs(c,c.selected&&"select");this.enabledDataSorting&&(c.startXPos=h.reversed?-(g.width||0):h.width);var m=!1!==c.isInside;!i&&m&&(0<(g.width||0)||c.hasImage)&&(c.graphic=i=o.renderer.symbol(f,g.x,g.y,g.width,g.height,u?d:s).add(a),this.enabledDataSorting&&o.hasRendered&&(i.attr({x:c.startXPos}),p="animate")),i&&"animate"===p&&i[m?"show":"hide"](m).animate(g),i&&(d=this.pointAttribs(c,n||!c.selected?void 0:"select"),n?r&&i.css({fill:d.fill}):i[p](d)),i&&i.addClass(c.getClassName(),!0)}else i&&(c.graphic=i.destroy())}},t.prototype.markerAttribs=function(t,e){var i=this.options,o=i.marker,n=t.marker||{},r=n.symbol||o.symbol,s={},a=I(n.radius,o&&o.radius);return e&&(o=o.states[e],e=n.states&&n.states[e],a=I(e&&e.radius,o&&o.radius,a&&a+(o&&o.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(a=0),t=t.pos(),D(a)&&t&&(s.x=t[0]-a,s.y=t[1]-a,i.crisp&&(s.x=Math.floor(s.x))),a&&(s.width=s.height=2*a),s},t.prototype.pointAttribs=function(t,e){var i=this.options.marker,o=t&&t.options,n=o&&o.marker||{},r=o&&o.color,s=t&&t.color,a=t&&t.zone&&t.zone.color,h=this.color;return t=I(n.lineWidth,i.lineWidth),o=1,h=r||a||s||h,r=n.fillColor||i.fillColor||h,s=n.lineColor||i.lineColor||h,e=e||"normal",i=i.states[e]||{},e=n.states&&n.states[e]||{},t=I(e.lineWidth,i.lineWidth,t+I(e.lineWidthPlus,i.lineWidthPlus,0)),r=e.fillColor||i.fillColor||r,{stroke:s=e.lineColor||i.lineColor||s,"stroke-width":t,fill:r,opacity:o=I(e.opacity,i.opacity,o)}},t.prototype.destroy=function(t){var e,i,o,n=this,r=n.chart,s=/AppleWebKit\/533/.test(m.navigator.userAgent),a=n.data||[];for(P(n,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(n.axisTypes||[]).forEach((function(t){(o=n[t])&&o.series&&(A(o.series,n),o.isDirty=o.forceRedraw=!0)})),n.legendItem&&n.chart.legend.destroyItem(n),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();n.clips&&n.clips.forEach((function(t){return t.destroy()})),l.clearTimeout(n.animationTimeout),j(n,(function(t,e){t instanceof h&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()})),r.hoverSeries===n&&(r.hoverSeries=void 0),A(r.series,n),r.orderSeries(),j(n,(function(e,i){t&&"hcEvents"===i||delete n[i]}))},t.prototype.applyZones=function(){var t,e,i,o,n,r,s,a,h=this,l=this.chart,c=l.renderer,p=this.zones,d=this.clips||[],u=this.graph,f=this.area,g=Math.max(l.plotWidth,l.plotHeight),m=this[(this.zoneAxis||"y")+"Axis"],y=l.inverted,v=!1;if(p.length&&(u||f)&&m&&void 0!==m.min){var x=m.reversed,S=m.horiz;u&&!this.showLine&&u.hide(),f&&f.hide();var C=m.getExtremes();p.forEach((function(p,w){t=x?S?l.plotWidth:0:S?0:m.toPixels(C.min)||0,t=b(I(e,t),0,g),e=b(Math.round(m.toPixels(I(p.value,C.max),!0)||0),0,g),v&&(t=e=m.toPixels(C.max)),o=Math.abs(t-e),n=Math.min(t,e),r=Math.max(t,e),m.isXAxis?(i={x:y?r:n,y:0,width:o,height:g},S||(i.x=l.plotHeight-i.x)):(i={x:0,y:y?r:n,width:g,height:o},S&&(i.y=l.plotWidth-i.y)),y&&c.isVML&&(i=m.isXAxis?{x:0,y:x?n:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}
1),d[w]?d[w].animate(i):d[w]=c.clipRect(i),s=h["zone-area-"+w],a=h["zone-graph-"+w],u&&a&&a.clip(d[w]),f&&s&&s.clip(d[w]),v=p.value>C.max,h.resetZones&&0===e&&(e=void 0)})),this.clips=d}else h.visible&&(u&&u.show(),f&&f.show())},t.prototype.plotGroup=function(t,e,i,o,n){var r=this[t],s=!r;return i={visibility:i,zIndex:o||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),s&&(this[t]=r=this.chart.renderer.g().add(n)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[s?"attr":"animate"](this.getPlotBox(e)),r},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart;return t=o.inverted&&!o.polar&&e&&!1!==this.invertible&&"series"===t,o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-i.len)/2:0,rotationOriginY:t?(e.len+i.len)/2:0,scaleX:t?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){t||N(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,o=c(i.animation),n=t.visible?"inherit":"hidden",r=i.zIndex,s=t.hasRendered,a=e.seriesGroup;e=!t.finishedAnimating&&e.renderer.isSVG?o.duration:0,P(this,"render"),t.plotGroup("group","series",n,r,a),t.markerGroup=t.plotGroup("markerGroup","markers",n,r,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.animate&&e&&t.animate(),s||(e&&o.defer&&(e+=o.defer),t.animationTimeout=G((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,P(t,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,o,n){var r=t&&t.length;if(r){var s=i.kdAxisArray[o%n];return t.sort((function(t,e){return t[s]-e[s]})),{point:t[r=Math.floor(r/2)],left:e(t.slice(0,r),o+1,n),right:e(t.slice(r+1),o+1,n)}}}this.buildingKdTree=!0;var i=this,o=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,G((function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),o,o),i.buildingKdTree=!1}),i.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,i){var o=this,n=this.kdAxisArray[0],r=this.kdAxisArray[1],s=e?"distX":"dist";if(e=-1<o.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,h){var l=i.point,c=o.kdAxisArray[a%h],p=l,d=w(e[n])&&w(l[n])?Math.pow(e[n]-l[n],2):null,u=w(e[r])&&w(l[r])?Math.pow(e[r]-l[r],2):null;return u=(d||0)+(u||0),l.dist=w(u)?Math.sqrt(u):Number.MAX_VALUE,l.distX=w(d)?Math.sqrt(d):Number.MAX_VALUE,d=0>(c=e[c]-l[c])?"right":"left",i[u=0>c?"left":"right"]&&(p=(u=t(e,i[u],a+1,h))[s]<p[s]?u:l),i[d]&&Math.sqrt(c*c)<p[s]&&(p=(e=t(e,i[d],a+1,h))[s]<p[s]?e:p),p}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,i=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=i.reversed?-.5:.5),D(t)?t*(e||i.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(o?o.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,i=e.trackByArea,o=[].concat(i?t.areaPath:t.graphPath),n=t.chart,r=n.pointer,s=n.renderer,a=n.options.tooltip.snap,h=t.tracker,l=function(e){n.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(g?1e-4:.002)+")";h?h.attr({d:o}):t.graph&&(t.tracker=s.path(o).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),n.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}
1),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",(function(t){r.onTrackerMouseOut(t)})),e.cursor&&!n.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",l)}))),P(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,n){var r=this.options,s=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,c=r.data,p=this.xData;e=I(e,!0);var d={series:this};this.pointClass.prototype.applyOptions.apply(d,[t]);var u=d.x,f=p.length;if(this.requireSorting&&u<p[f-1])for(l=!0;f&&p[f-1]>u;)f--;this.updateParallelArrays(d,"splice",f,0,0),this.updateParallelArrays(d,f),h&&d.name&&(h[u]=d.name),c.splice(f,0,t),(l||this.processedData)&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(d,"shift"),c.shift())),!1!==n&&P(this,"addPoint",{point:d}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,n=o.data,r=n[t],s=o.points,a=o.chart,h=function(){s&&s.length===n.length&&s.splice(t,1),n.splice(t,1),o.options.data.splice(t,1),o.updateParallelArrays(r||{series:o},"splice",t,1),r&&r.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&a.redraw()};p(i,a),e=I(e,!0),r?r.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){function n(){r.destroy(o),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),I(t,!0)&&s.redraw(e)}var r=this,s=r.chart;!1!==i?P(r,"remove",null,n):n()},t.prototype.update=function(t,e){t=S(t,this.userOptions),P(this,"update",{options:t});var i=this,o=i.chart,n=i.userOptions,r=i.initialType||i.type,s=o.options.plotOptions,a=y[r].prototype,h=i.finishedAnimating&&{animation:!1},l={},c=["eventOptions","navigatorSeries","baseSeries"],p=t.type||n.type||o.options.chart.type,d=!(this.hasDerivedData||p&&p!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(p=p||r,d&&(c.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&c.push("area","graph"),i.parallelArrays.forEach((function(t){c.push(t+"Data")})),t.data&&(t.dataSorting&&k(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=B(n,h,{index:void 0===n.index?i.index:n.index,pointStart:I(s&&s.series&&s.series.pointStart,n.pointStart,i.xData[0])},!d&&{data:i.options.data},t),d&&t.data&&(t.data=i.options.data),(c=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(c)).forEach((function(t){c[t]=i[t],delete i[t]})),s=!1,y[p]){if(s=p!==i.type,i.remove(!1,!1,!1,!0),s)if(Object.setPrototypeOf)Object.setPrototypeOf(i,y[p].prototype);else{for(u in h=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,a)i[u]=void 0;k(i,y[p].prototype),h?i.hcEvents=h:delete i.hcEvents}}else M(17,!0,o,{missingModuleFor:p});if(c.forEach((function(t){i[t]=c[t]})),i.init(o,t),d&&this.points){if(!1===(t=i.options).visible)l.graphic=1,l.dataLabel=1;else if(!i._hasPointLabels){a=t.marker;var u=t.dataLabels;n=n.marker||{},!a||!1!==a.enabled&&n.symbol===a.symbol&&n.height===a.height&&n.width===a.width||(l.graphic=1),u&&!1===u.enabled&&(l.dataLabel=1)}for(n=0,a=this.points;n<a.length;n++)(u=a[n])&&u.series&&(u.resolveColor(),Object.keys(l).length&&u.destroyElements(l),!1===t.showInLegend&&u.legendItem&&o.legend.destroyItem(u))}i.initialType=r,o.linkSeries(),s&&i.linkedSeries.length&&(i.isDirtyData=!0),P(this,"afterUpdate"),I(e,!0)&&o.redraw(!!d&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],i=this.chart.options.plotOptions,o=this.userOptions[t];return o?e!==o:e!==I(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&P(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&P(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEac
1h((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var i=this,o=i.options,n=i.graph,r=o.inactiveOtherPoints,s=o.states,a=I(s[t||"normal"]&&s[t||"normal"].animation,i.chart.options.chart.animation),h=o.lineWidth,l=0,c=o.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(s[t]&&!1===s[t].enabled)return;if(t&&(h=s[t].lineWidth||h+(s[t].lineWidthPlus||0),c=I(s[t].opacity,c)),n&&!n.dashstyle&&D(h))for(o={"stroke-width":h},n.animate(o,a);i["zone-graph-"+l];)i["zone-graph-"+l].animate(o,a),l+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:c},a)}))}e&&r&&i.points&&i.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var i=this,o=i.chart,n=o.options.chart.ignoreHiddenSeries,r=i.visible,s=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][s]()})),o.hoverSeries!==i&&(o.hoverPoint&&o.hoverPoint.series)!==i||i.onMouseOut(),i.legendItem&&o.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&o.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),n&&(o.isDirtyBox=!0),P(i,s),!1!==e&&o.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),P(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.defaultOptions=s,t.types=a.seriesTypes,t.registerType=a.registerSeriesType,t}(),k(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:n.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),a.series=t,t})),e(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r){var s=t.stop,a=r.addEvent,h=r.createElement,l=r.defined,c=r.merge,p=r.pick;a(i,"afterSetChartSize",(function(t){var i=this.options.chart.scrollablePlotArea,o=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(o){if(this.scrollablePixelsX=o=Math.max(0,o-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=o,this.inverted?this.clipBox.height+=o:this.clipBox.width+=o;var n={1:{name:"right",value:o}}}}else i&&(this.scrollablePixelsY=o=Math.max(0,i-this.chartHeight),l(o)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=o,this.inverted?this.clipBox.width+=o:this.clipBox.height+=o,n={2:{name:"bottom",value:o}}));n&&!t.skipAxes&&this.axes.forEach((function(t){n[t.side]?t.getPlotLinePath=function(){var i=n[t.side].name,o=this[i];this[i]=o-n[t.side].value;var r=e.prototype.getPlotLinePath.apply(this,arguments);return this[i]=o,r}:(t.setAxisSize(),t.setAxisTranslation())}))}})),a(i,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),i.prototype.setUpScrolling=function(){var t,e=this,i={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(i.overflowX="auto"),this.scrollablePixelsY&&(i.overflowY="auto"),this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=h("div",{className:"highcharts-scrolling"},i,this.scrollingParent),a(this.scrollingContainer,"scroll",(function(){e.pointer&&(delete e.pointer.chartPosition,e.hoverPoint&&(t=e.hoverPoint),e.pointer.runPointActions(void 0,t,!0))})),this.innerContainer=h("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},i.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,o=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&o.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),o.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},i.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,i=e.scrollablePlotArea,o=n.getRendererType();t?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||
10)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new o(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":p(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterApplyDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),o=this.chartHeight+(this.scrollablePixelsY||0),s(this.container),this.container.style.width=e+"px",this.container.style.height=o+"px",this.renderer.boxWrapper.attr({width:e,height:o,viewBox:[0,0,e,o].join(" ")}),this.chartBackground.attr({width:e,height:o}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),o=this.axisOffset,t=this.plotTop-o[0]-1,i=this.plotLeft-o[3]-1,e=this.plotTop+this.plotHeight+o[2]+1,o=this.plotLeft+this.plotWidth+o[1]+1;var r=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",r,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",r,e],["Z"]]:this.scrollablePixelsY?[["M",i,0],["L",i,this.plotTop-1],["L",o,this.plotTop-1],["L",o,0],["Z"],["M",i,l],["L",i,this.chartHeight],["L",o,this.chartHeight],["L",o,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),a(o,"show",(function(){this.chart.scrollableDirty=!0}))})),e(i,"Core/Axis/Stacking/StackItem.js",[i["Core/FormatUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=t.format,n=e.series,r=i.destroyObjectProperties,s=i.pick,a=i.isNumber;return t=function(){function t(t,e,i,o,n){var r=t.chart.inverted,s=t.reversed;this.axis=t,t=this.isNegative=!!i!=!!s,this.options=e=e||{},this.x=o,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=n,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(r?t?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":t?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?t?"right":"left":"center")}return t.prototype.destroy=function(){r(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,n=i.format;n=n?o(n,this,e):i.formatter.call(this),this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=e.renderer.label(n,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels"),n={r:i.borderRadius||0,text:n,padding:s(i.padding,5),visibility:"hidden"},e.styledMode||(n.fill=i.backgroundColor,n.stroke=i.borderColor,n["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(n),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,i,o,r,h){var l=this.alignOptions,c=this.axis,p=this.label,d=this.options,u=this.textAlign,f=c.chart;t=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:h}),r=l.verticalAlign,p&&t&&(e=p.getBBox(),i=p.padding,o="justify"===s(d.overflow,"justify"),l.x=d.x||0,l.y=d.y||0,u=(r=this.adjustStackPosition({labelBox:e,verticalAlign:r,textAlign:u})).x,r=r.y,t.x-=u,t.y-=r,p.align(l,!1,t),(u=f.isInsidePlot(p.alignAttr.x+l.x+u,p.alignAttr.y+l.y+r))||(o=!1),o&&n.prototype.justifyDataLabel.call(c,p,l,p.alignAttr,e,t),p.attr({x:p.alignAttr.x,y:p.alignAttr.y,rotation:d.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),s(!o&&d.crop,!0)&&(u=a(p.x)&&a(p.y)&&f.isInsidePlot(p.x-i+p.width,p.y)&&f.isInsidePlot(p.x+i,p.y)
1),p[u?"show":"hide"]())},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,i={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e.width/2+e.width/2*i[t.textAlign],y:e.height/2*i[t.verticalAlign]}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,n=t.defaultX,r=t.xOffset,a=t.width,h=t.boxBottom;return o=e.stacking.usePercentage?100:s(o,this.total,0),o=e.toPixels(o),t=s(n,(t.xAxis||i.xAxis[0]).toPixels(this.x))+r,e=e.toPixels(h||0),e=Math.abs(o-e),h=this.isNegative,i.inverted?{x:(h?o:o-e)-i.plotLeft,y:t-i.plotTop,width:e,height:a}:{x:t-i.plotLeft,y:(h?o-e:o)-i.plotTop,width:a,height:e}},t}(),t})),e(i,"Core/Axis/Stacking/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n){function r(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)})),t.series.forEach((function(i){var o=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,A(i.options.stack,""),e?o.top:o.left,e?o.height:o.width].join())}))}function s(){var t=this.stacking;if(t){var e=t.stacks;w(e,(function(t,i){x(t),e[i]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function a(){"yAxis"!==this.coll||this.stacking||(this.stacking=new M(this))}function h(t,e,i,o){return!v(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(),t}function l(){var t,e=this,i=e.stackKey,o=e.yAxis.stacking.stacks,n=e.processedXData,r=e[e.options.stacking+"Stacker"];r&&[i,"-"+i].forEach((function(i){for(var s,a,h=n.length;h--;)s=n[h],t=e.getStackIndicator(t,s,e.index,i),(a=(s=o[i]&&o[i][s])&&s.points[t.key])&&r.call(e,a,s,h)}))}function c(t,e,i){e=e.total?100/e.total:0,t[0]=y(t[0]*e),t[1]=y(t[1]*e),this.stackedYData[i]=t[1]}function p(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?g.setStackedPoints.call(this,"group"):t&&w(t.stacks,(function(e,i){"group"===i.slice(-5)&&(w(e,(function(t){return t.destroy()})),delete t.stacks[i])}))}function d(t){var e=this.chart,i=t||this.options.stacking;if(i&&(!0===this.visible||!1===e.options.chart.ignoreHiddenSeries)){var n=this.processedXData,r=this.processedYData,s=[],a=r.length,h=this.options,l=h.threshold,c=A(h.startFromThreshold&&l,0);h=h.stack;var p,d,u="-"+(t=t?""+this.type+",".concat(i):this.stackKey),f=this.negStacks,g=(e="group"===i?e.yAxis[0]:this.yAxis).stacking.stacks,m=e.stacking.oldStacks;for(e.stacking.stacksTouched+=1,d=0;d<a;d++){var x=n[d],b=r[d],C=this.getStackIndicator(C,x,this.index),w=C.key,M=(p=f&&b<(c?0:l))?u:t;g[M]||(g[M]={}),g[M][x]||(m[M]&&m[M][x]?(g[M][x]=m[M][x],g[M][x].total=null):g[M][x]=new o(e,e.options.stackLabels,!!p,x,h)),M=g[M][x],null!==b?(M.points[w]=M.points[this.index]=[A(M.cumulative,c)],v(M.cumulative)||(M.base=w),M.touched=e.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(M.points[w][0]=M.points[this.index+","+x+",0"][0])):M.points[w]=M.points[this.index]=null,"percent"===i?(p=p?t:u,f&&g[p]&&g[p][x]?(p=g[p][x],M.total=p.total=Math.max(p.total,M.total)+Math.abs(b)||0):M.total=y(M.total+(Math.abs(b)||0))):"group"===i?(S(b)&&(b=b[0]),null!==b&&(M.total=(M.total||0)+1)):M.total=y(M.total+(b||0)),M.cumulative="group"===i?(M.total||1)-1:A(M.cumulative,c)+(b||0),null!==b&&(M.points[w].push(M.cumulative),s[d]=M.cumulative,M.hasValidPoints=!0)}"percent"===i&&(e.stacking.usePercentage=!0),"group"!==i&&(this.stackedYData=s),e.stacking.oldStacks={}}}var u,f=t.getDeferredAnimation,g=i.series.prototype,m=n.addEvent,y=n.correctFloat,v=n.defined,x=n.destroyObjectProperties,b=n.fireEvent,S=n.isArray,C=n.isNumber,w=n.objectEach,A=n.pick,M=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,i=e.series,o=e.options.reversedStacks,n=i.length;for(this.usePercentage=!1,t=n;t--;
1){var r=i[o?t:n-t-1];r.setStackedPoints(),r.setGroupedPoints()}for(t=0;t<n;t++)i[t].modifyStacks();b(e,"afterBuildStacks")},t.prototype.cleanStacks=function(){if(this.oldStacks)var t=this.stacks=this.oldStacks;w(t,(function(t){w(t,(function(t){t.cumulative=t.total}))}))},t.prototype.resetStacks=function(){var t=this;w(this.stacks,(function(e){w(e,(function(i,o){C(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)}))}))},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,i=e.renderer,o=this.stacks;t=f(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var n=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();n.translate(e.plotLeft,e.plotTop),w(o,(function(t){w(t,(function(t){t.render(n)}))})),n.animate({opacity:1},t)},t}();return function(t){var e=[];t.compose=function(t,i,o){-1===e.indexOf(t)&&(e.push(t),m(t,"init",a),m(t,"destroy",s)),-1===e.indexOf(i)&&(e.push(i),i.prototype.getStacks=r),-1===e.indexOf(o)&&(e.push(o),(t=o.prototype).getStackIndicator=h,t.modifyStacks=l,t.percentStacker=c,t.setGroupedPoints=p,t.setStackedPoints=d)}}(u||(u={})),u})),e(i,"Series/Line/LineSeries.js",[i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=i.defined,r=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode,n=[["graph","highcharts-graph"]];o||n[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(n=t.getZonesGraphs(n)).forEach((function(n,r){var s=n[0],a=t[s],h=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(t[s]=a=t.chart.renderer.path(i).addClass(n[1]).attr({zIndex:1}).add(t.group)),a&&!o&&(s={stroke:n[2],"stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},n[3]?s.dashstyle=n[3]:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[h](s).shadow(2>r&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)}))},i.prototype.getGraphPath=function(t,e,i){var o,r=this,s=r.options,a=[],h=[],l=s.step,c=(t=t||r.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,!(s.connectNulls&&!e&&!i))).forEach((function(c,p){var d=c.plotX,u=c.plotY,f=t[p-1];(c.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),c.isNull&&!n(e)&&0<p?o=!s.connectNulls:c.isNull&&!e?o=!0:(0===p||o?p=[["M",c.plotX,c.plotY]]:r.getPointSpline?p=[r.getPointSpline(t,c,p)]:l?(p=1===l?[["L",f.plotX,u]]:2===l?[["L",(f.plotX+d)/2,f.plotY],["L",(f.plotX+d)/2,u]]:[["L",d,f.plotY]]).push(["L",d,u]):p=[["L",d,u]],h.push(c.x),l&&(h.push(c.x),2===l&&h.push(c.x)),a.push.apply(a,p),o=!1)})),a.xMap=h,r.graphPath=a},i.prototype.getZonesGraphs=function(t){return this.zones.forEach((function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)}),this),t},i.defaultOptions=r(t.defaultOptions,{}),i}(t),e.registerSeriesType("line",i),i})),e(i,"Series/Area/AreaSeries.js",[i["Core/Color/Color.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=t.parse,s=i.seriesTypes.line;t=o.extend;var a=o.merge,h=o.objectEach,l=o.pick;return o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;
1return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,i=this.areaPath,o=this.options,n=[["area","highcharts-area",this.color,o.fillColor]];this.zones.forEach((function(t,i){n.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||e.color,t.fillColor||o.fillColor])})),n.forEach((function(t){var n=t[0],s={},a=e[n],h=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:i.xMap,a.animate({d:i})):(s.zIndex=0,(a=e[n]=e.chart.renderer.path(i).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=l(t[3],r(t[2]).setOpacity(l(o.fillOpacity,.75)).get())),a[h](s),a.startX=i.xMap,a.shiftUnit=o.step?2:1}))},e.prototype.getGraphPath=function(t){var e=s.prototype.getGraphPath,i=this.options,o=i.stacking,n=this.yAxis,r=[],a=[],h=this.index,c=n.stacking.stacks[this.stackKey],p=i.threshold,d=Math.round(n.getThreshold(i.threshold));i=l(i.connectNulls,"percent"===o);var u=function(e,i,s){var l=t[e];e=o&&c[l.x].points[h];var u=l[s+"Null"]||0;if(s=l[s+"Cliff"]||0,l=!0,s||u){var f=(u?e[0]:e[1])+s,g=e[0]+s;l=!!u}else!o&&t[i]&&t[i].isNull&&(f=g=p);void 0!==f&&(a.push({plotX:y,plotY:null===f?d:n.getThreshold(f),isNull:l,isCliff:!0}),r.push({plotX:y,plotY:null===g?d:n.getThreshold(g),doCurve:!1}))};t=t||this.points,o&&(t=this.getStackPoints(t));for(var f=0,g=t.length;f<g;++f){o||(t[f].leftCliff=t[f].rightCliff=t[f].leftNull=t[f].rightNull=void 0);var m=t[f].isNull,y=l(t[f].rectPlotX,t[f].plotX),v=o?l(t[f].yBottom,d):d;m&&!i||(i||u(f,f-1,"left"),m&&!o&&i||(a.push(t[f]),r.push({x:f,plotX:y,plotY:v})),i||u(f,f+1,"right"))}return u=e.call(this,a,!0,!0),r.reversed=!0,(v=(m=e.call(this,r,!0,!0))[0])&&"M"===v[0]&&(m[0]=["L",v[1],v[2]]),(m=u.concat(m)).length&&m.push(["Z"]),e=e.call(this,a,!1,i),m.xMap=u.xMap,this.areaPath=m,e},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],n=this.xAxis,r=this.yAxis,s=r.stacking.stacks[this.stackKey],a={},c=r.series,p=c.length,d=r.options.reversedStacks?1:-1,u=c.indexOf(e);if(t=t||this.points,this.options.stacking){for(var f=0;f<t.length;f++)t[f].leftNull=t[f].rightNull=void 0,a[t[f].x]=t[f];h(s,(function(t,e){null!==t.total&&o.push(e)})),o.sort((function(t,e){return t-e}));var g=c.map((function(t){return t.visible}));o.forEach((function(t,h){var f,m,y=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach((function(i){var n=1===i?"rightNull":"leftNull",r=s[o[h+i]],l=0;if(r)for(var y=u;0<=y&&y<p;){var v=c[y].index;(f=r.points[v])||(v===e.index?a[t][n]=!0:g[y]&&(m=s[t].points[v])&&(l-=m[1]-m[0])),y+=d}a[t][1===i?"rightCliff":"leftCliff"]=l}));else{for(var v=u;0<=v&&v<p;){if(f=s[t].points[c[v].index]){y=f[1];break}v+=d}y=l(y,0),y=r.translate(y,0,1,0,1),i.push({isNull:!0,plotX:n.translate(t,0,0,0,1),x:t,plotY:y,yBottom:y})}}))}return i},e.defaultOptions=a(s.defaultOptions,{threshold:0}),e}(s),t(o.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("area",o),o})),e(i,"Series/Spline/SplineSeries.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=t.seriesTypes.line,n=e.merge,r=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(e,t),e.prototype.getPointSpline=function(t,e,i){var o=e.plotX||0,n=e.plotY||0,s=t[i-1];if(i=t[i+1],s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!e.isCliff){t=s.plotY||0;var a=i.plotX||0;i=i.plotY||0;var h=0,l=(1.5*o+(s.plotX||0))/2.5,c=(1.5*n+t)/2.5,p=(1.5*n+i)/2.5;(a=(1.5*o+a)/2.5)!==l&&(h=(p-c)*(a-o)/(a-l)+n-p),p+=h,(c+=h)>t&&c>n?p=2*n-(c=Math.max(t,n)):c<t&&c<n&&(p=2*n-(c=Math.min(t,n))),p>i&&p>n?c=2*n-(p=Math.max(i,n)):p<i&&p<n&&(c=2*n-(p=Math.min(i,n))),e.rightContX=a,e.rightContY=p}
1return e=["C",r(s.rightContX,s.plotX,0),r(s.rightContY,s.plotY,0),r(l,o,0),r(c,n,0),o,n],s.rightContX=s.rightContY=void 0,e},e.defaultOptions=n(o.defaultOptions),e}(o),t.registerSeriesType("spline",e),e})),e(i,"Series/AreaSpline/AreaSplineSeries.js",[i["Series/Spline/SplineSeries.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=i.seriesTypes,s=r.area;r=r.area.prototype;var a=o.extend,h=o.merge;return o=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return n(i,e),i.defaultOptions=h(t.defaultOptions,s.defaultOptions),i}(t),a(o.prototype,{getGraphPath:r.getGraphPath,getStackPoints:r.getStackPoints,drawGraph:r.drawGraph,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("areaspline",o),o})),e(i,"Series/Column/ColumnSeriesDefaults.js",[],(function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}})),e(i,"Series/Column/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Series/Column/ColumnSeriesDefaults.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s,a){var h=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),l=t.animObject,c=e.parse,p=o.hasTouch;t=o.noop;var d=a.clamp,u=a.defined,f=a.extend,g=a.fireEvent,m=a.isArray,y=a.isNumber,v=a.merge,x=a.pick,b=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return h(e,t),e.prototype.animate=function(t){var e=this,i=this.yAxis,o=e.options,n=this.chart.inverted,r={},s=n?"translateX":"translateY";if(t)r.scaleY=.001,t=d(i.toPixels(o.threshold),i.pos,i.pos+i.len),n?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var a=Number(e.group.attr(s));e.group.animate({scaleY:1},f(l(e.options.animation),{step:function(t,o){e.group&&(r[s]=a+o.pos*(i.pos-a),e.group.attr(r))}}))}},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var o=this;(e=o.chart).hasRendered&&e.series.forEach((function(t){t.type===o.type&&(t.isDirty=!0)}))},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,i=t.xAxis,o=t.yAxis,n=i.options.reversedStacks;n=i.reversed&&!n||!i.reversed&&n;var r,s={},a=0;!1===e.grouping?a=1:t.chart.series.forEach((function(e){var i=e.yAxis,n=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&o.len===i.len&&o.pos===i.pos){if(n.stacking&&"group"!==n.stacking){r=e.stackKey,void 0===s[r]&&(s[r]=a++);var h=s[r]}else!1!==n.grouping&&(h=a++);e.columnIndex=h}}));var h=Math.min(Math.abs(i.transA)*(i.ordinal&&i.ordinal.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),l=h*e.groupPadding,c=(h-2*l)/(a||1);return e=Math.min(e.maxPointWidth||i.len,x(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(n?1:0))*c-h/2)*(n?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics}
1,e.prototype.crispCol=function(t,e,i,o){var n=this.chart,r=this.borderWidth,s=-(r%2?.5:0);return r=r%2?.5:1,n.inverted&&n.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(t+i)+s,i-=t=Math.round(t)+s),o=Math.round(e+o)+r,s=.5>=Math.abs(e)&&.5<o,o-=e=Math.round(e)+r,s&&o&&(--e,o+=1),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var n=this,r=this.options.stacking;if(!i.isNull&&1<o.columnCount){var s=this.yAxis.options.reversedStacks,a=0,h=s?0:-o.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(t){if("number"==typeof i.x){var e=t[i.x.toString()];e&&(t=e.points[n.index],r?(t&&(a=h),e.hasValidPoints&&(s?h++:h--)):m(t)&&(t=Object.keys(e.points).filter((function(t){return!t.match(",")&&e.points[t]&&1<e.points[t].length})).map(parseFloat).sort((function(t,e){return e-t})),a=t.indexOf(n.index),h=t.length))}})),t=(i.plotX||0)+((h-1)*o.paddedWidth+e)/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,i=t.options,o=t.dense=2>t.closestPointRange*t.xAxis.transA;o=t.borderWidth=x(i.borderWidth,o?0:1);var n=t.xAxis,s=t.yAxis,a=i.threshold,h=t.translatedThreshold=s.getThreshold(a),l=x(i.minPointLength,5),c=t.getColumnMetrics(),p=c.width,f=t.pointXOffset=c.offset,g=t.dataMin,m=t.dataMax,v=t.barW=Math.max(p,1+2*o);e.inverted&&(h-=.5),i.pointPadding&&(v=Math.ceil(v)),r.prototype.translate.apply(t),t.points.forEach((function(o){var r=x(o.yBottom,h),b=999+Math.abs(r),S=o.plotX||0;b=d(o.plotY,-b,s.len+b);var C=Math.min(b,r),w=Math.max(b,r)-C,A=p,M=S+f,k=v;l&&Math.abs(w)<l&&(w=l,S=!s.reversed&&!o.negative||s.reversed&&o.negative,y(a)&&y(m)&&o.y===a&&m<=a&&(s.min||0)<a&&(g!==m||(s.max||0)<=a)&&(S=!S),C=Math.abs(C-
1h)>l?r-l:h-(S?l:0)),u(o.options.pointWidth)&&(A=k=Math.ceil(o.options.pointWidth),M-=Math.round((A-p)/2)),i.centerInCategory&&(M=t.adjustForMissingColumns(M,A,o,c)),o.barX=M,o.pointWidth=A,o.tooltipPos=e.inverted?[d(s.len+s.pos-e.plotLeft-b,s.pos-e.plotLeft,s.len+s.pos-e.plotLeft),n.len+n.pos-e.plotTop-M-k/2,w]:[n.left-e.plotLeft+M+k/2,d(b+s.pos-e.plotTop,s.pos-e.plotTop,s.len+s.pos-e.plotTop),w],o.shapeType=t.pointClass.prototype.shapeType||"rect",o.shapeArgs=t.crispCol.apply(t,o.isNull?[M,h,k,0]:[M,C,k,w])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,o=this.pointAttrToOptions||{},n=o.stroke||"borderColor",r=o["stroke-width"]||"borderWidth",s=t&&t.color||this.color,a=t&&t[n]||i[n]||s;o=t&&t.options.dashStyle||i.dashStyle;var h=t&&t[r]||i[r]||this[r]||0,l=x(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var p=t.getZone();s=t.options.color||p&&(p.color||t.nonZonedColor)||this.color,p&&(a=p.borderColor||a,o=p.dashStyle||o,h=p.borderWidth||h)}return e&&t&&(e=(t=v(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&c(s).brighten(t.brightness).get()||s,a=t[n]||a,h=t[r]||h,o=t.dashStyle||o,l=x(t.opacity,l)),n={fill:s,stroke:a,"stroke-width":h,opacity:l},o&&(n.dashstyle=o),n},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,n=i.options,r=o.renderer,s=n.animationLimit||250;t.forEach((function(t){var a=t.graphic,h=!!a,l=a&&o.pointCount<s?"animate":"attr";y(t.plotY)&&null!==t.y?(e=t.shapeArgs,a&&t.hasNewShapeType()&&(a=a.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),a||(t.graphic=a=r[t.shapeType](e).add(t.group||i.group))&&i.enabledDataSorting&&o.hasRendered&&o.pointCount<s&&(a.attr({x:t.startXPos}),h=!0,l="animate"),a&&h&&a[l](v(e)),n.borderRadius&&a[l]({r:n.borderRadius}),o.styledMode||a[l](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),a&&(a.addClass(t.getClassName(),!0),a.attr({visibility:t.visible?"inherit":"hidden"}))):a&&(t.graphic=a.destroy())}))},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i=this,o=i.chart,n=o.pointer,r=function(t){var e=n.getPointFromEvent(t);void 0!==e&&(n.isDirectTouch=!0,e.onMouseOver(t))};t.forEach((function(t){e=m(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach((function(e){e.div?e.div.point=t:e.element.point=t}))})),i._hasTracking||(i.trackerGroups.forEach((function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",(function(t){n.onTrackerMouseOut(t)})),p&&i[t].on("touchstart",r),!o.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))})),i._hasTracking=!0),g(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),r.prototype.remove.apply(t,arguments)},e.defaultOptions=v(r.defaultOptions,i),e}(r),f(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:n.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),s.registerSeriesType("column",a),a})),e(i,"Core/Series/DataLabel.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,n=t.getDeferredAnimation,r=e.format,s=i.defined,a=i.extend,h=i.fireEvent,l=i.isArray,c=i.isString,p=i.merge,d=i.objectEach,u=i.pick,f=i.splat;return function(t){function e(t,e,i,o,n){var r=this,h=this.chart,l=this.isCartesian&&h.inverted,c=this.enabledDataSorting,p=t.plotX,d=t.plotY,f=i.rotation,g=i.align,m=s(p)&&s(d)&&h.isInsidePlot(p,Math.round(d),{inverted:l,paneCoordinates:!0,series:r});d=function(i){c&&r.xAxis&&!y&&r.setDataLabelStartPos(t,e,n,m,i)};var y="justify"===u(i.overflow,c?"none":"justify");if(p=this.visible&&!1!==t.visible&&s(p)&&(t.series.forceDL||c&&!y||m||u(i.inside,!!this.options.stacking)&&o&&h.isInsidePlot(p,l?o.x+1:o.y+o.height-1,{inverted:l,paneCoordinates:!0,series:r})),l=t.pos(),p&&l){f&&e.attr({align:g}),g=e.getBBox(!0);var v=[0,0],x=h.renderer.fontMetrics(h.styledMode?void 0:i.style.fontSize,e).b;o=a({x:l[0],y:Math.round(l[1]),width:0,height:0},o),a(i,{width:g.width,height:g.height}),f?(y=!1,v=h.renderer.rotCorr(x,f),x={x:o.x+(i.x||0)+o.width/2+v.x,y:o.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*o.height},v=[g.x-Number(e.attr("x")),g.y-Number(e.attr("y"))],d(x),e[n?"attr":"animate"](x)):(d(o),e.align(i,void 0,o),x=e.alignAttr),y&&0<=o.height?this.justifyDataLabel(e,i,x,g,o,n):u(i.crop,!0)&&(o=x.x,d=x.y,o+=v[0],d+=v[1],p=h.isInsidePlot(o,d,{paneCoordinates:!0,series:r})&&h.isInsidePlot(o+g.width,d+g.height,{paneCoordinates:!0,series:r})),i.shape&&!f&&e[n?"attr":"animate"]({anchorX:l[0],anchorY:l[1]})}
1n&&c&&(e.placed=!1),p||c&&!y?e.show():(e.hide(),e.placed=!1)}function i(t){void 0===t&&(t=this.points);var e=this,i=e.chart,o=e.options,a=e.hasRendered||0,p=i.renderer,m=i.options.chart,y=m.backgroundColor;m=m.plotBackgroundColor;var v=p.getContrast(c(m)&&m||c(y)&&y||"#000000"),x=o.dataLabels;if(y=x.animation,y=x.defer?n(i,y,e):{defer:0,duration:0},x=g(g(i.options.plotOptions&&i.options.plotOptions.series&&i.options.plotOptions.series.dataLabels,i.options.plotOptions&&i.options.plotOptions[e.type]&&i.options.plotOptions[e.type].dataLabels),x),h(this,"drawDataLabels"),l(x)||x.enabled||e._hasPointLabels){var b=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",x.zIndex||6);b.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&b.show(),a[o.animation?"animate":"attr"]({opacity:1},y)),t.forEach((function(t){f(g(x,t.dlOptions||t.options&&t.options.dataLabels)).forEach((function(n,a){var h=n.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(t,n),l=t.connectors?t.connectors[a]:t.connector,c=t.dataLabels?t.dataLabels[a]:t.dataLabel,f=!c,g=u(n.distance,t.labelDistance);if(h){var m=t.getLabelConfig(),y=u(n[t.formatPrefix+"Format"],n.format);m=s(y)?r(y,m,i):(n[t.formatPrefix+"Formatter"]||n.formatter).call(m,n),y=n.style;var x=n.rotation;i.styledMode||(y.color=u(n.color,y.color,e.color,"#000000"),"contrast"===y.color?(t.contrastColor=p.getContrast(t.color||e.color),y.color=!s(g)&&n.inside||0>g||o.stacking?t.contrastColor:v):delete t.contrastColor,o.cursor&&(y.cursor=o.cursor));var S={r:n.borderRadius||0,rotation:x,padding:n.padding,zIndex:1};if(!i.styledMode){g=n.backgroundColor;var C=n.borderColor;S.fill="auto"===g?t.color:g,S.stroke="auto"===C?t.color:C,S["stroke-width"]=n.borderWidth}d(S,(function(t,e){void 0===t&&delete S[e]}))}!c||h&&s(m)&&!!c.div==!!n.useHTML&&(c.rotation&&n.rotation||c.rotation===n.rotation)||(f=!0,t.dataLabel=c=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[a]),a||delete t.dataLabel,l&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a]))),h&&s(m)?(c?S.text=m:(t.dataLabels=t.dataLabels||[],c=t.dataLabels[a]=x?p.text(m,0,0,n.useHTML).addClass("highcharts-data-label"):p.label(m,0,0,n.shape,null,null,n.useHTML,null,"data-label"),a||(t.dataLabel=c),c.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(n.className||"")+(n.useHTML?" highcharts-tracker":""))),c.options=n,c.attr(S),i.styledMode||c.css(y).shadow(n.shadow),(a=n[t.formatPrefix+"TextPath"]||n.textPath)&&!n.useHTML&&(c.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(c)||t.graphic,a),t.dataLabelPath&&!a.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),c.added||c.add(b),e.alignDataLabel(t,c,n,null,f)):c&&c.hide()}))}))}h(this,"afterDrawDataLabels")}function o(t,e,i,o,n,r){var s=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var p=e.y;p=void 0===p?0:p;var d=(i.x||0)+l;if(0>d){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=d;var u=!0}return(d=(i.x||0)+o.width-l)>s.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=s.plotWidth-d,u=!0),0>(d=i.y+l)&&("bottom"===h&&0<=p?(e.verticalAlign="top",e.inside=!0):p-=d,u=!0),(d=(i.y||0)+o.height-l)>s.plotHeight&&("top"===h&&0>=p?(e.verticalAlign="bottom",e.inside=!0):p+=s.plotHeight-d,u=!0),u&&(e.x=c,e.y=p,t.placed=!r,t.align(e,void 0,n)),u}function g(t,e){var i,o=[];if(l(t)&&!l(e))o=t.map((function(t){return p(t,e)}));else if(l(e)&&!l(t))o=e.map((function(e){return p(t,e)}));else if(l(t)||l(e))for(i=Math.max(t.length,e.length);i--;)o[i]=p(t[i],e[i]);else o=p(t,e);return o}function m(t,e,i,o,n){var r=this.chart,s=r.inverted,a=this.xAxis,h=a.reversed,l=s?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=s?n.x:h?-l-t:a.width-l+t,e.startYPos=s?h?this.yAxis.height-l+t:-l-t:n.y,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0}
1,void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var y=[];t.compose=function(t){if(-1===y.indexOf(t)){var n=t.prototype;y.push(t),n.alignDataLabel=e,n.drawDataLabels=i,n.justifyDataLabel=o,n.setDataLabelStartPos=m}}}(o||(o={})),o})),e(i,"Series/Column/ColumnDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,n=e.series,r=i.merge,s=i.pick;return function(e){function i(t,e,i,o,a){var h=this.chart.inverted,l=t.series,c=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var p=t.dlBox||t.shapeArgs,d=s(t.below,t.plotY>s(this.translatedThreshold,l)),u=s(i.inside,!!this.options.stacking);p&&(0>(o=r(p)).y&&(o.height+=o.y,o.y=0),0<(p=o.y+o.height-l)&&p<o.height&&(o.height-=p),h&&(o={x:l-o.y-o.height,y:c-o.x-o.width,width:o.height,height:o.width}),u||(h?(o.x+=d?0:o.width,o.width=0):(o.y+=d?o.height:0,o.height=0))),i.align=s(i.align,!h||u?"center":d?"right":"left"),i.verticalAlign=s(i.verticalAlign,h||u?"middle":d?"top":"bottom"),n.prototype.alignDataLabel.call(this,t,e,i,o,a),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var o=[];e.compose=function(e){t.compose(n),-1===o.indexOf(e)&&(o.push(e),e.prototype.alignDataLabel=i)}}(o||(o={})),o})),e(i,"Series/Bar/BarSeries.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=i.extend,r=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.defaultOptions=r(t.defaultOptions,{}),i}(t),n(i.prototype,{inverted:!0}),e.registerSeriesType("bar",i),i})),e(i,"Series/Scatter/ScatterSeriesDefaults.js",[],(function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">â</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}})),e(i,"Series/Scatter/ScatterSeries.js",[i["Series/Scatter/ScatterSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=e.seriesTypes,r=n.column,s=n.line;n=i.addEvent;var a=i.extend,h=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(o,n){["x","y"].forEach((function(r,s){var a="plot"+r.toUpperCase();if(e[r]&&!o.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var c=Math.max(0,o[a]-l);h=Math.min(h.len,o[a]+l),s=1e4*Math.sin(n+s*i),o[a]=c+(h-c)*(s-Math.floor(s)),"x"===r&&(o.clientX=o.plotX)}}}))}))},i.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},i.defaultOptions=h(s.defaultOptions,t),i}(s),a(i.prototype,{drawTracker:r.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),n(i,"afterTranslate",(function(){this.applyJitter()})),e.registerSeriesType("scatter",i),i})),e(i,"Series/CenteredUtilities.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,
1i){var o,n=t.deg2rad,r=i.fireEvent,s=i.isNumber,a=i.pick,h=i.relativeLength;return function(t){t.getCenter=function(){var t=this.options,i=this.chart,o=2*(t.slicedOffset||0),n=i.plotWidth-2*o,l=i.plotHeight-2*o,c=t.center,p=Math.min(n,l),d=t.thickness,u=t.size,f=t.innerSize||0;for("string"==typeof u&&(u=parseFloat(u)),"string"==typeof f&&(f=parseFloat(f)),t=[a(c[0],"50%"),a(c[1],"50%"),a(u&&0>u?void 0:t.size,"100%"),a(f&&0>f?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),c=0;4>c;++c)u=t[c],i=2>c||2===c&&/%$/.test(u),t[c]=h(u,[n,l,p,t[2]][c])+(i?o:0);return t[3]>t[2]&&(t[3]=t[2]),s(d)&&2*d<t[2]&&0<d&&(t[3]=t[2]-2*d),r(this,"afterGetCenter",{positions:t}),t},t.getStartAndEndRadians=function(t,e){return t=s(t)?t:0,e=s(e)&&e>t&&360>e-t?e:t+360,{start:n*(t+-90),end:n*(e+-90)}}}(o||(o={})),o})),e(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=t.setAnimation,r=i.addEvent,s=i.defined;t=i.extend;var a=i.isNumber,h=i.pick,l=i.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return o(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=this.connectorShapes,o=e.connectorShape;return i[o]&&(o=i[o]),o.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.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:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=h(this.name,"Slice");var i=function(t){e.slice("select"===t.type)};return r(this,"select",i),r(this,"unselect",i),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var i=this,o=this.series,n=o.chart,r=o.options.ignoreHiddenPoint;e=h(e,r),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,o.options.data[o.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](t)})),this.legendItem&&n.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),r&&(o.isDirty=!0),e&&n.redraw())},e.prototype.slice=function(t,e,i){var o=this.series;n(i,o.chart),h(e,!0),this.sliced=this.options.sliced=s(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-e.x,2*o.y-e.y,o.x,o.y]:["L",o.x,o.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var o=this.series,n=o.center[0],r=o.chart.plotWidth,s=o.chart.plotLeft;o=t.alignment;var a=this.shapeArgs.r;return i=l(i.crookDistance,1),i=["L",r="left"===o?n+a+(r+s-n-a)*(1-i):s+(n-a)*i,t.y],n=!0,("left"===o?r>t.x||r<e.x:r<t.x||r>e.x)&&(n=!1),t=[["M",t.x,t.y]],n&&t.push(i),t.push(["L",e.x,e.y]),t}}}),e})),e(i,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendT
1ype:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}})),e(i,"Series/Pie/PieSeries.js",[i["Series/CenteredUtilities.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Series/Pie/PiePoint.js"],i["Series/Pie/PieSeriesDefaults.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s,a,h,l){var c=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),p=t.getStartAndEndRadians;i=i.noop;var d=l.clamp,u=l.extend,f=l.fireEvent,g=l.merge,m=l.pick,y=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach((function(t){var i=t.graphic,n=t.shapeArgs;i&&n&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var o=this.center[0],n=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,n,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.arc(o,n,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i){var o=this.center,n=this.radii?this.radii[i.index]||0:o[2]/2;return t=Math.asin(d((t-o[1])/(n+i.labelDistance),-1,1)),o[0]+(e?-1:1)*Math.cos(t)*(n+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,i,o,n=this,r=n.chart,s=r.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||r.styledMode||(n.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach((function(h){var l={};if(e=h.graphic,!h.isNull&&e){var c=void 0;o=h.shapeArgs,t=h.getTranslate(),r.styledMode||(c=h.shadowGroup,a&&!c&&(c=h.shadowGroup=s.g("shadow").add(n.shadowGroup)),c&&c.attr(t),i=n.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(e.setRadialReference(n.center).attr(o).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(n.center),r.styledMode||g(!0,l,i),g(!0,l,o,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())}))},e.prototype.sortByAngle=function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},e.prototype.translate=function(t){f(this,"translate"),this.generatePoints();var e=this.options,i=e.slicedOffset,o=i+(e.borderWidth||0),n=p(e.startAngle,e.endAngle),r=this.startAngleRad=n.start;n=(this.endAngleRad=n.end)-r;var s=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var h,l=s.length,c=0;for(t||(this.center=t=this.getCenter()),h=0;h<l;h++){var d=s[h],u=r+c*n;!d.isValid()||e&&!d.visible||(c+=d.percentage/100);var g=r+c*n,v={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*u)/1e3,end:Math.round(1e3*g)/1e3};d.shapeType="arc",d.shapeArgs=v,d.labelDistance=m(d.options.dataLabels&&d.options.dataLabels.distance,a),d.labelDistance=y(d.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,d.labelDistance),(g=(g+u)/2)>1.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(g)*i),translateY:Math.round(Math.sin(g)*i)},v=Math.cos(g)*t[2]/2;var x=Math.sin(g)*t[2]/2;d.tooltipPos=[t[0]+.7*v,t[1]+.7*x],d.half=g<-Math.PI/2||g>
1Math.PI/2?1:0,d.angle=g,u=Math.min(o,d.labelDistance/5),d.labelPosition={natural:{x:t[0]+v+Math.cos(g)*d.labelDistance,y:t[1]+x+Math.sin(g)*d.labelDistance},final:{},alignment:0>d.labelDistance?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(g)*u,y:t[1]+x+Math.sin(g)*u},touchingSliceAt:{x:t[0]+v,y:t[1]+x}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,i=e.length,o=this.options.ignoreHiddenPoint,n=0;for(t=0;t<i;t++){var r=e[t];!r.isValid()||o&&!r.visible||(n+=r.y)}for(this.total=n,t=0;t<i;t++)(r=e[t]).percentage=0<n&&(r.visible||!o)?r.y/n*100:0,r.total=n},e.defaultOptions=g(s.defaultOptions,r),e}(s),u(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:o.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:i,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:n,requireSorting:!1,searchPoint:i,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l})),e(i,"Series/Pie/PieDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n){var r,s=e.noop,a=i.distribute,h=o.series,l=n.arrayMax,c=n.clamp,p=n.defined,d=n.merge,u=n.pick,f=n.relativeLength;return function(e){function i(){var t,e,i,o,n,r,s,c,f,g,m,y,v=this,x=v.data,b=v.chart,S=v.options.dataLabels||{},C=S.connectorPadding,w=b.plotWidth,A=b.plotHeight,M=b.plotLeft,k=Math.round(b.chartWidth/3),T=v.center,P=T[2]/2,E=T[1],O=[[],[]],D=[0,0,0,0],L=v.dataLabelPositioners;v.visible&&(S.enabled||v._hasPointLabels)&&(x.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),h.prototype.drawDataLabels.apply(v),x.forEach((function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,!p(S.style.width)&&!p(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>k&&(t.dataLabel.css({width:Math.round(.7*k)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),O.forEach((function(e,i){var h,l=e.length,d=[];if(l){if(v.sortByAngle(e,i-.5),0<v.maxLabelDistance){var x=Math.max(0,E-P-v.maxLabelDistance),k=Math.min(E+P+v.maxLabelDistance,b.plotHeight);e.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,E-P-t.labelDistance),t.bottom=Math.min(E+P+t.labelDistance,b.plotHeight),h=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+h/2,size:h,rank:t.y},d.push(t.distributeBox))})),a(d,x=k+h-x,x/5)}for(m=0;m<l;m++){if(t=e[m],r=t.labelPosition,o=t.dataLabel,g=!1===t.visible?"hidden":"inherit",f=x=r.natural.y,d&&p(t.distributeBox)&&(void 0===t.distributeBox.pos?g="hidden":(s=t.distributeBox.size,f=L.radialDistributionY(t))),delete t.positionIndex,S.justify)c=L.justify(t,P,T);else switch(S.alignTo){case"connectors":c=L.alignToConnectors(e,i,w,M);break;case"plotEdges":c=L.alignToPlotEdges(o,i,w,M);break;default:c=L.radialDistributionX(v,t,f,x)}o._attr={visibility:g,align:r.alignment},y=t.options.dataLabels||{},o._pos={x:c+u(y.x,S.x)+({left:C,right:-C}[r.alignment]||0),y:f+u(y.y,S.y)-10},r.final.x=c,r.final.y=f,u(S.crop,!0)&&(n=o.getBBox().width,x=null,c-n<C&&1===i?(x=Math.round(n-c+C),D[3]=Math.max(x,D[3])):c+n>w-C&&0===i&&(x=Math.round(c+n-w+C),D[1]=Math.max(x,D[1])),0>f-s/2?D[0]=Math.max(Math.round(s/2-f),D[0]):f+s/2>A&&(D[2]=Math.max(Math.round(f+s/2-A),D[2])),o.sideOverflow=x)}}})),0===l(D)||this.verifyDataLabelOverflow(D))&&(this.placeDataLabels(),this.points.forEach((function(t){var n;y=d(S,t.options.dataLabels),(e=u(y.connectorWidth,1))&&(i=t.connector,(o=t.dataLabel)&&o._pos&&t.visible&&0<t.labelDistance?(g=o._attr.visibility,(n=!i)&&(t.connector=i=b.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),b.styledMode||i.attr({"stroke-width":e,stroke:y.connectorColor||t.color||"#666666"})),i[n?"attr":"animate"]({d:t.getConnectorPath()}),i.attr("visibility",g)):i&&(t.connector=i.destroy()))})))}
1function o(){this.points.forEach((function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox}),this)}function n(t){var e=this.center,i=this.options,o=i.center,n=i.minSize||80,r=null!==i.size;if(!r){if(null!==o[0])var s=Math.max(e[2]-Math.max(t[1],t[3]),n);else s=Math.max(e[2]-t[1]-t[3],n),e[0]+=(t[3]-t[1])/2;null!==o[1]?s=c(s,n,e[2]-Math.max(t[0],t[2])):(s=c(s,n,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(i.thickness?Math.max(0,s-2*i.thickness):Math.max(0,f(i.innerSize||0,s)),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}var r=[],g={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,o){return t.getX(i<e.top+2||i>e.bottom-2?o:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,o){return t=t.getBBox().width,e?t+o:i-t-o},alignToConnectors:function(t,e,i,o){var n,r=0;return t.forEach((function(t){(n=t.dataLabel.getBBox().width)>r&&(r=n)})),e?r+o:i-r-o}};e.compose=function(e){t.compose(h),-1===r.indexOf(e)&&(r.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=s,e.drawDataLabels=i,e.placeDataLabels=o,e.verifyDataLabelOverflow=n)}}(r||(r={})),r})),e(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],(function(t,e){function i(t,e){var i=!1;if(t){var o=t.newOpacity;t.oldOpacity!==o&&(t.alignAttr&&t.placed?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})})),n(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0}return i}var o=e.addEvent,n=e.fireEvent,r=e.isArray,s=e.isNumber,a=e.objectEach,h=e.pick;o(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,(function(t){a(t,(function(t){t.label&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(o){var n=o.options.dataLabels;o.visible&&(!1!==n.enabled||o._hasPointLabels)&&(n=function(o){return o.forEach((function(o){o.visible&&(r(o.dataLabels)?o.dataLabels:o.dataLabel?[o.dataLabel]:[]).forEach((function(n){var r=n.options;n.labelrank=h(r.labelrank,o.labelrank,o.shapeArgs&&o.shapeArgs.height),r.allowOverlap?(n.oldOpacity=n.opacity,n.newOpacity=1,i(n,t)):e.push(n)}))}))},n(o.nodes||[]),n(o.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,o,r,a=this,h=t.length,l=a.renderer,c=!1,p=function(t){var e,i,o=t.box?0:t.padding||0,n=e=0;if(t&&(!t.alignAttr||t.placed)){var r=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=l.fontMetrics(null,t.element).h);var h=t.width-2*o;return(i={left:"0",center:"0.5",right:"1"}[t.alignValue])?n=+i*h:s(t.x)&&Math.round(t.x)!==t.translateX&&(n=t.x-t.translateX),{x:r.x+(a.translateX||0)+o-(n||0),y:r.y+(a.translateY||0)+o-e,width:t.width-2*o,height:t.height-2*o}}};for(o=0;o<h;o++)(e=t[o])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=p(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),o=0;o<h;o++){var d=(p=t[o])&&p.absoluteBox;for(e=o+1;e<h;++e){var u=(r=t[e])&&r.absoluteBox;!d||!u||p===r||0===p.newOpacity||0===r.newOpacity||"hidden"===p.visibility||"hidden"===r.visibility||u.x>=d.x+d.width||u.x+u.width<=d.x||u.y>=d.y+d.height||u.y+u.height<=d.y||((p.labelrank<r.labelrank?p:r).newOpacity=0)}}t.forEach((function(t){i(t,a)&&(c=!0)})),c&&n(a,"afterHideAllOverlappingLabels")}})),e(i,"Core/Responsive.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.extend,o=t.find,n=t.isArray,r=t.isObject,s=t.merge,a=t.objectEach,h=t.pick,l=t.splat,c=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),i(t.prototype,p.prototype)),t};var p=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,o,s,h){var c;
1a(i,(function(i,a){if(!h&&-1<e.collectionsWithUpdate.indexOf(a)&&o[a])for(i=l(i),s[a]=[],c=0;c<Math.max(i.length,o[a].length);c++)o[a][c]&&(void 0===i[c]?s[a][c]=o[a][c]:(s[a][c]={},t(i[c],o[a][c],s[a][c],h+1)));else r(i)?(s[a]=n(i)?[]:{},t(i,o[a]||{},s[a],h+1)):s[a]=void 0===o[a]?null:o[a]}))}(t,this.options,i,0),i},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=h(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=h(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=h(i.minWidth,0)&&this.chartHeight>=h(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var i=this,n=this.options.responsive,r=this.currentResponsive,a=[];!e&&n&&n.rules&&n.rules.forEach((function(t){void 0===t._id&&(t._id=c()),i.matchResponsiveRule(t,a)}),this),e=s.apply(void 0,a.map((function(t){return o((n||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions}))),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(r&&r.ruleIds)&&(r&&this.update(r.undoOptions,t,!0),a?((r=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:r},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Defaults.js"],i["Core/Animation/Fx.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/FormatUtilities.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Renderer/HTML/HTMLElement.js"],i["Core/Renderer/HTML/HTMLRenderer.js"],i["Core/Axis/Axis.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Axis/LogarithmicAxis.js"],i["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],i["Core/Axis/Tick.js"],i["Core/Tooltip.js"],i["Core/Series/Point.js"],i["Core/Pointer.js"],i["Core/MSPointer.js"],i["Core/Legend/Legend.js"],i["Core/Chart/Chart.js"],i["Core/Axis/Stacking/StackingAxis.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Series/Column/ColumnSeries.js"],i["Series/Column/ColumnDataLabel.js"],i["Series/Pie/PieSeries.js"],i["Series/Pie/PieDataLabel.js"],i["Core/Series/DataLabel.js"],i["Core/Responsive.js"],i["Core/Color/Color.js"],i["Core/Time.js"]],(function(t,e,i,o,n,r,s,a,h,l,c,p,d,u,f,g,m,y,v,x,b,S,C,w,A,M,k,T,P,E,O,D,L,B,j){return t.animate=n.animate,t.animObject=n.animObject,t.getDeferredAnimation=n.getDeferredAnimation,t.setAnimation=n.setAnimation,t.stop=n.stop,t.timers=o.timers,t.AST=r,t.Axis=d,t.Chart=C,t.chart=C.chart,t.Fx=o,t.Legend=S,t.PlotLineOrBand=g,t.Point=v,t.Pointer=b.isRequired()?b:x,t.Series=M,t.StackItem=A,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=j,t.Tooltip=y,t.Color=B,t.color=B.parse,p.compose(l),c.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=s.dateFormat,t.format=s.format,t.numberFormat=s.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=k.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,P.compose(T),D.compose(M),u.compose(d),f.compose(d),O.compose(E),g.compose(d),L.compose(C),w.compose(d,C,M),t})),e(i,"Core/Axis/BrokenAxis.js",[i["Core/Axis/Stacking/StackItem.js"],i["Core/Utilities.js"]],(function(t,e){var i,o=e.addEvent,n=e.find,r=e.fireEvent,s=e.isArray,a=e.isNumber,h=e.pick;return function(e){function i(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function l(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function c(){var t=this.brokenAxis;if(t&&t.hasBreaks){for(var e=this.tickPositions,i=this.tickPositions.info,o=[],n=0;n<e.length;
1n++)t.isInAnyBreak(e[n])||o.push(e[n]);this.tickPositions=o,this.tickPositions.info=i}}function p(){this.brokenAxis||(this.brokenAxis=new y(this))}function d(){var t=this.options.connectNulls,e=this.points,i=this.xAxis,o=this.yAxis;if(this.isDirty)for(var n=e.length;n--;){var r=e[n],s=!(null===r.y&&!1===t)&&(i&&i.brokenAxis&&i.brokenAxis.isInAnyBreak(r.x,!0)||o&&o.brokenAxis&&o.brokenAxis.isInAnyBreak(r.y,!0));r.visible=!s&&!1!==r.options.visible}}function u(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,h(this.pointArrayMap,["y"]))}function f(t,e){var i,o,n,s,l=this,c=l.points;if(t&&t.brokenAxis&&t.brokenAxis.hasBreaks){var p=t.brokenAxis;e.forEach((function(e){i=p&&p.breakArray||[],o=t.isXAxis?t.min:h(l.options.threshold,t.min),c.forEach((function(l){s=h(l["stack"+e.toUpperCase()],l[e]),i.forEach((function(e){a(o)&&a(s)&&(n=!1,o<e.from&&s>e.to||o>e.from&&s<e.from?n="pointBreak":(o<e.from&&s>e.from&&s<e.to||o>e.from&&s>e.to&&s<e.from)&&(n="pointInBreak"),n&&r(t,n,{point:l,brk:e}))}))}))}))}}function g(){var e=this.currentDataGrouping,i=e&&e.gapSize;e=this.points.slice();var o,n=this.yAxis,r=this.options.gapSize,s=e.length-1;if(r&&0<s)for("value"!==this.options.gapUnit&&(r*=this.basePointRange),i&&i>r&&i>=this.basePointRange&&(r=i),o=void 0;s--;)o&&!1!==o.visible||(o=e[s+1]),i=e[s],!1!==o.visible&&!1!==i.visible&&(o.x-i.x>r&&(o=(i.x+o.x)/2,e.splice(s+1,0,{isNull:!0,x:o}),n.stacking&&this.options.stacking&&((o=n.stacking.stacks[this.stackKey][o]=new t(n,n.options.stackLabels,!1,o,this.stack)).total=0)),o=i);return this.getGraphPath(e)}var m=[];e.compose=function(t,e){if(-1===m.indexOf(t)&&(m.push(t),t.keepProps.push("brokenAxis"),o(t,"init",p),o(t,"afterInit",i),o(t,"afterSetTickPositions",c),o(t,"afterSetOptions",l)),-1===m.indexOf(e)){m.push(e);var n=e.prototype;n.drawBreaks=f,n.gappedPath=g,o(e,"afterGeneratePoints",d),o(e,"afterRender",u)}return t};var y=function(){function t(t){this.hasBreaks=!1,this.axis=t}return t.isInBreak=function(t,e){var i=t.repeat||1/0,o=t.from,n=t.to-t.from;return e=e>=o?(e-o)%i:i-(o-e)%i,t.inclusive?e<=n:e<n&&0!==e},t.lin2Val=function(e){var i,o=this.brokenAxis;if(!(o=o&&o.breakArray)||!a(e))return e;for(i=0;i<o.length;i++){var n=o[i];if(n.from>=e)break;(n.to<e||t.isInBreak(n,e))&&(e+=n.len)}return e},t.val2Lin=function(e){var i=this.brokenAxis;if(!(i=i&&i.breakArray)||!a(e))return e;var o,n=e;for(o=0;o<i.length;o++){var r=i[o];if(r.to<=e)n-=r.len;else{if(r.from>=e)break;if(t.isInBreak(r,e)){n-=e-r.from;break}}}return n},t.prototype.findBreakAt=function(t,e){return n(e,(function(e){return e.from<t&&t<e.to}))},t.prototype.isInAnyBreak=function(e,i){var o,n=this.axis,r=n.options.breaks||[],s=r.length;if(s&&a(e)){for(;s--;)if(t.isInBreak(r[s],e)){var l=!0;o||(o=h(r[s].showPoints,!n.isXAxis))}var c=l&&i?l&&!o:l}return c},t.prototype.setBreaks=function(e,i){var o=this,n=o.axis,l=s(e)&&!!e.length;n.isDirty=o.hasBreaks!==l,o.hasBreaks=l,n.options.breaks=n.userOptions.breaks=e,n.forceRedraw=!0,n.series.forEach((function(t){t.isDirty=!0})),l||n.val2lin!==t.val2Lin||(delete n.val2lin,delete n.lin2val),l&&(n.userOptions.ordinal=!1,n.lin2val=t.lin2Val,n.val2lin=t.val2Lin,n.setExtremes=function(t,e,i,r,s){if(o.hasBreaks){for(var a,h=this.options.breaks||[];a=o.findBreakAt(t,h);)t=a.to;for(;a=o.findBreakAt(e,h);)e=a.from;e<t&&(e=t)}n.constructor.prototype.setExtremes.call(this,t,e,i,r,s)},n.setAxisTranslation=function(){if(n.constructor.prototype.setAxisTranslation.call(this),o.unitLength=void 0,o.hasBreaks){var e,i,s=n.options.breaks||[],l=[],c=[],p=h(n.pointRangePadding,0),d=0,u=n.userMin||n.min,f=n.userMax||n.max;s.forEach((function(i){e=i.repeat||1/0,a(u)&&a(f)&&(t.isInBreak(i,u)&&(u+=i.to%e-u%e),t.isInBreak(i,f)&&(f-=f%e-i.from%e))})),s.forEach((function(t){if(m=t.from,e=t.repeat||1/0,a(u)&&a(f)){for(;m-e>u;)m-=e;for(;m<u;)m+=e;for(i=m;i<f;i+=e)l.push({value:i,move:"in"}),l.push({value:i+t.to-t.from,move:"out",size:t.breakSize})}})),l.sort((function(t,e){return t.value===e.value?("in"===t.move?0:1)-("in"===e.move?0:1):t.value-e.value}));var g=0,m=u;l.forEach((function(t){1===(g+="in"===t.move?1:-1)&&"in"===t.move&&(m=t.value),0===g&&a(m)&&(c.push({from:m,to:t.value,len:t.value-m-(t.size||0)}),d+=t.value-m-(t.size||0))})),o.breakArray=c,a(u)&&a(f)&&a(n.min)&&(o.unitLength=f-u-d+p,r(n,"afterBreaks"),n.staticScale?n.transA=n.staticScale:o.unitLength&&(n.transA*=(f-n.min+p)/o.unitLength),p&&(n.minPixelPadding=n.transA*(n.minPointOffset||0)),n.min=u,n.max=f)}}),h(i,!0)&&n.chart.redraw()},t}();e.Additions=y}(i||(i={})),i})),e(i,"masters/modules/broken-axis.src.js",[i["Core/Globals.js"],i["Core/Axis/BrokenAxis.js"]],(function(t,e){e.compose(t.Axis,t.Series)})),e(i,"Extensions/DataGrouping/ApproximationRegistry.js",[],(function(){return{}})),e(i,"Extensions/DataGrouping/ApproximationDefaults.js",[i["Extensions/DataGrouping/ApproximationRegistry.js"],i["Core/Utilities.js"]],(function(t,e){function i(t){var e=t.length;return t=o(t),h(t)&&e&&(t=s(t/e)),t}function o(t){var e=t.length;if(!e&&t.hasNulls)var i=null;else if(e)for(i=0;e--;)i+=t[e];return i}var n=e.arrayMax,r=e.arrayMin,s=e.correctFloat,a=e.extend,h=e.isNumber;return e={average:i,averages:function(){var t=[];return[].forEach.call(arguments,(function(e){t.push(i(e))})),void 0===t[0]?void 0:t},close:function(t){return t.length?t[t.length-1]:t.hasNulls?null:void 0},high:function(t){return t.length?n(t):t.hasNulls?null:void 0},hlc:function(e,i,o){if(e=t.high(e),i=t.low(i),o=t.close(o),h(e)||h(i)||h(o))return[e,i,o]},low:function(t){return t.length?r(t):t.hasNulls?null:void 0}
1,ohlc:function(e,i,o,n){if(e=t.open(e),i=t.high(i),o=t.low(o),n=t.close(n),h(e)||h(i)||h(o)||h(n))return[e,i,o,n]},open:function(t){return t.length?t[0]:t.hasNulls?null:void 0},range:function(e,i){return e=t.low(e),i=t.high(i),h(e)||h(i)?[e,i]:null===e&&null===i?null:void 0},sum:o},a(t,e),e})),e(i,"Extensions/DataGrouping/DataGroupingDefaults.js",[],(function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["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]],["week",[1]],["month",[1,3,6]],["year",null]]}})),e(i,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[i["Extensions/DataGrouping/DataGroupingDefaults.js"],i["Core/Utilities.js"]],(function(t,e){function i(t){var e=this,i=e.series;i.forEach((function(t){t.groupPixelWidth=void 0})),i.forEach((function(i){i.groupPixelWidth=e.getGroupPixelWidth&&e.getGroupPixelWidth(),i.groupPixelWidth&&(i.hasProcessed=!0),i.applyGrouping(!!t.hasExtremesChanged)}))}function o(){for(var e,i,o=this.series,n=o.length,r=0,s=!1;n--;)(i=o[n].options.dataGrouping)&&(r=Math.max(r,c(i.groupPixelWidth,t.common.groupPixelWidth)),e=(o[n].processedXData||o[n].data).length,(o[n].groupPixelWidth||e>this.chart.plotSizeX/r||e&&i.forced)&&(s=!0));return s?r:0}function n(){this.series.forEach((function(t){t.hasProcessed=!1}))}function r(t,e){var i;if(e=c(e,!0),t||(t={forced:!1,units:null}),this instanceof s)for(i=this.series.length;i--;)this.series[i].update({dataGrouping:t},!1);else this.chart.options.series.forEach((function(e){e.dataGrouping="boolean"==typeof t?t:l(t,e.dataGrouping)}));this.ordinal&&(this.ordinal.slope=void 0),e&&this.chart.redraw()}var s,a=e.addEvent,h=e.extend,l=e.merge,c=e.pick,p=[];return{compose:function(t){s=t,-1===p.indexOf(t)&&(p.push(t),a(t,"afterSetScale",n),a(t,"postProcessData",i),h(t.prototype,{applyGrouping:i,getGroupPixelWidth:o,setDataGrouping:r}))}}})),e(i,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[i["Extensions/DataGrouping/ApproximationRegistry.js"],i["Extensions/DataGrouping/DataGroupingDefaults.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Defaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r){function s(t){var o=this.chart,n=this.options.dataGrouping,r=!1!==this.allowDG&&n&&x(n.enabled,o.options.isStock),s=this.visible||!o.options.chart.ignoreHiddenSeries,a=this.currentDataGrouping,h=!1;if(r&&!this.requireSorting&&(this.requireSorting=h=!0),t=0==!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!t)||!r,h&&(this.requireSorting=!1),!t){this.destroyGroupedData();var l=n.groupAll?this.xData:this.processedXData,c=n.groupAll?this.yData:this.processedYData;r=o.plotSizeX;var p=(t=this.xAxis).options.ordinal,u=this.groupPixelWidth;if(h=void 0,u&&l&&l.length&&r){this.isDirty=h=!0,this.points=null;var m=t.getExtremes(),v=m.min;m=m.max,p=p&&t.ordinal&&t.ordinal.getGroupIntervalFactor(v,m,this)||1,r=t.getTimeTicks(i.Additions.prototype.normalizeTimeTickInterval(u*(m-v)/r*p,n.units||e.units),Math.min(v,l[0]),Math.max(m,l[l.length-1]),t.options.startOfWeek,l,this.closestPointRange),l=(u=d.groupData.apply(this,[l,c,r,n.approximation])).groupedXData,c=u.groupedYData,p=0,n&&n.smoothed&&l.length&&(n.firstAnchor="firstPoint",n.anchor="middle",n.lastAnchor="lastPoint",g(32,!1,o,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),o=l;var b=this.options.dataGrouping;if(v=this.currentDataGrouping&&this.currentDataGrouping.gapSize,b&&this.xData&&v&&this.groupMap){var S=o.length-1,C=b.anchor,w=x(b.firstAnchor,C);if(b=x(b.lastAnchor,C),C&&"start"!==C){var A=v*{middle:.5,end:1}[C];for(C=o.length-1;C--&&0<C;)o[C]+=A}if(w&&"start"!==w&&this.xData[0]>=o[0]){C=this.groupMap[0].start,A=this.groupMap[0].length;var M=void 0;y(C)&&y(A)&&(M=C+(A-1)),o[0]={middle:o[0]+.5*v,end:o[0]+v,firstPoint:this.xData[0],lastPoint:M&&this.xData[M]}[w]}b&&"start"!==b&&v&&o[S]>=m-v&&(m=this.groupMap[this.groupMap.length-1].start,o[S]={middle:o[S]+.5*v,end:o[S]+v,firstPoint:m&&this.xData[m],lastPoint:this.xData[this.xData.length-1]}[b])}for(m=1;m<r.length;m++)r.info.segmentStarts&&-1!==r.info.segmentStarts.indexOf(m)||(p=Math.max(r[m]-r[m-1],p));(m=r.info).gapSize=p,this.closestPointRange=r.info.totalRange,this.groupMap=u.groupMap,s&&(f((s=l)[0])&&y(t.min)&&y(t.dataMin)&&s[0]<t.min&&((!f(t.options.min)&&t.min<=t.dataMin||t.min===t.dataMin)&&(t.min=Math.min(s[0],t.min)),t.dataMin=Math.min(s[0],t.dataMin)),f(s[s.length-1])&&y(t.max)&&y(t.dataMax)&&s[s.length-1]>t.max&&((!f(t.options.max)&&y(t.dataMax)&&t.max>=t.dataMax||t.max===t.dataMax)&&(t.max=Math.max(s[s.length-1],t.max)),t.dataMax=Math.max(s[s.length-1],t.dataMax))),n.groupAll&&(this.allGroupedData=c,l=(n=this.cropData(l,c,t.min,t.max,1)).xData,c=n.yData,this.cropStart=n.start),this.processedXData=l,this.processedYData=c}else this.groupMap=null;this.hasGroupedData=h,this.currentDataGrouping=m,this.preventGraphAnimation=(a&&a.totalRange)!==(m&&m.totalRange)}}function a(){this.groupedData&&(this.groupedData.forEach((function(t,e){t&&(this.groupedData[e]=t.destroy?t.destroy():null)}),this),this.groupedData.length=0)}function h(){b.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function l(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function c(e,i,o,n){var r=this,s=r.data,a=r.options&&r.options.data,h=[],l=[],c=[],p=e.length,d=!!i,u=[],g=r.pointArrayMap,m=g&&g.length,x=["x"].concat(g||["y"]),b=this.options.dataGrouping&&this.options.dataGrouping.groupAll,S=0,C=0;if(n="function"==typeof n?n:n&&t[n]?t[n]:t[r.getDGApproximation&&r.getDGApproximation()||"average"],m)for(var w=g.length;w--;)u.push([]);else u.push([]);w=m||1;for(var A=0;A<=p;A++)if(!(e[A]<o[0])){for(;void 0!==o[S+1]&&e[A]>=o[S+1]||A===p;){var M=o[S];r.dataGroupInfo={start:b?C:r.cropStart+C,length:u[0].length};var k=n.apply(r,u);for(r.pointClass&&!f(r.dataGroupInfo.options)&&(r.dataGroupInfo.options=v(r.pointClass.prototype.optionsToObject.call({series:r},r.options.data[r.cropStart+C])),x.forEach((function(t){delete r.dataGroupInfo.options[t]}))),void 0!==k&&(h.push(M),l.push(k),c.push(r.dataGroupInfo)),C=A,M=0;M<w;M++)u[M].length=0,u[M].hasNulls=!1;if(S+=1,A===p)break}if(A===p)break;if(g){M=r.options.dataGrouping&&r.options.dataGrouping.groupAll?A:r.cropStart+A,k=s&&s[M]||r.pointClass.prototype.applyOptions.apply({series:r},[a[M]]);var T=void 0;for(M=0;M<m;M++)T=k[g[M]],y(T)?u[M].push(T):null===T&&(u[M].hasNulls=!0)}else M=d?i[A]:null,y(M)?u[0].push(M):null===M&&(u[0].hasNulls=!0)}return{groupedXData:h,groupedYData:l,groupMap:c}}function p(t){t=t.options;var i=this.type,n=this.chart.options.plotOptions,r=this.useCommonDataGrouping&&e.common,s=e.seriesSpecific,a=o.defaultOptions.plotOptions[i].dataGrouping;if(n&&(s[i]||r)){var h=this.chart.rangeSelector;a||(a=v(e.common,s[i])),t.dataGrouping=v(r,a,n.series&&n.series.dataGrouping,n[i].dataGrouping,this.userOptions.dataGrouping,!t.isInternal&&h&&y(h.selected)&&h.buttonOptions[h.selected].dataGrouping)}}var d=n.series.prototype,u=r.addEvent,f=r.defined,g=r.error,m=r.extend,y=r.isNumber,v=r.merge,x=r.pick,b=d.generatePoints,S=[];return{compose:function(t){var e=t.prototype.pointClass;-1===S.indexOf(e)&&(S.push(e),u(e,"update",(function(){if(this.dataGroup)return g(24,!1,this.series.chart),!1}))),-1===S.indexOf(t)&&(S.push(t),u(t,"afterSetOptions",p),u(t,"de
1stroy",a),m(t.prototype,{applyGrouping:s,destroyGroupedData:a,generatePoints:h,getDGApproximation:l,groupData:c}))},groupData:c}})),e(i,"Extensions/DataGrouping/DataGrouping.js",[i["Extensions/DataGrouping/DataGroupingAxisComposition.js"],i["Extensions/DataGrouping/DataGroupingDefaults.js"],i["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n){function r(t){var i=this.chart,o=i.time,n=t.labelConfig,r=n.series,a=r.tooltipOptions,c=r.options.dataGrouping,p=r.xAxis,d=a.xDateFormat,u=a[t.isFooter?"footerFormat":"headerFormat"];if(p&&"datetime"===p.options.type&&c&&l(n.key)){var f=r.currentDataGrouping;if(c=c.dateTimeLabelFormats||e.common.dateTimeLabelFormats,f)if(a=c[f.unitName],1===f.count)d=a[0];else{d=a[1];var g=a[2]}else!d&&c&&p.dateTime&&(d=p.dateTime.getXDateFormat(n.x,a.dateTimeLabelFormats));d=o.dateFormat(d,n.key),g&&(d+=o.dateFormat(g,n.key+f.totalRange-1)),r.chart.styledMode&&(u=this.styledModeFormat(u)),t.text=s(u,{point:h(n.point,{key:d}),series:r},i),t.preventDefault()}}var s=o.format,a=n.addEvent,h=n.extend,l=n.isNumber,c=[];return o={compose:function(e,o,n){t.compose(e),i.compose(o),-1===c.indexOf(n)&&(c.push(n),a(n,"headerFormatter",r))},groupData:i.groupData}})),e(i,"masters/modules/datagrouping.src.js",[i["Core/Globals.js"],i["Extensions/DataGrouping/ApproximationDefaults.js"],i["Extensions/DataGrouping/ApproximationRegistry.js"],i["Extensions/DataGrouping/DataGrouping.js"]],(function(t,e,i,o){t.dataGrouping={approximationDefaults:e,approximations:i},o.compose(t.Axis,t.Series,t.Tooltip)})),e(i,"Series/DataModifyComposition.js",[i["Core/Axis/Axis.js"],i["Core/Series/Point.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n,r=e.prototype.tooltipFormatter,s=o.addEvent,a=o.arrayMax,h=o.arrayMin,l=o.correctFloat,c=o.defined,p=o.isArray,d=o.isNumber,u=o.isString,f=o.pick;return function(t){function e(t,e,i){this.isXAxis||(this.series.forEach((function(i){"compare"===t&&"boolean"!=typeof e?i.setCompare(e,!1):"cumulative"!==t||u(e)||i.setCumulative(e,!1)})),f(i,!0)&&this.chart.redraw())}function i(t){var e=this,i=e.series.chart.numberFormatter,o=function(o){t=t.replace("{point."+o+"}",(0<e[o]&&"change"===o?"+":"")+i(e[o],f(e.series.tooltipOptions.changeDecimals,2)))};return c(e.change)&&o("change"),c(e.cumulativeSum)&&o("cumulativeSum"),r.apply(this,[t])}function o(){var t=this.options.compare;if("percent"===t||"value"===t||this.options.cumulative){var e=new S(this);"percent"===t||"value"===t?e.initCompare(t):e.initCumulative()}this.dataModify=e}function n(t){var e=(t=t.dataExtremes).activeYData;if(this.dataModify&&t){var i=void 0;this.options.compare?i=[this.dataModify.modifyValue(t.dataMin),this.dataModify.modifyValue(t.dataMax)]:this.options.cumulative&&p(e)&&2<=e.length&&(i=S.getCumulativeExtremes(e)),i&&(t.dataMin=h(i),t.dataMax=a(i))}}function g(t,e){this.options.compare=this.userOptions.compare=t,this.update({},f(e,!0)),!this.dataModify||"value"!==t&&"percent"!==t?this.points.forEach((function(t){delete t.change})):this.dataModify.initCompare(t)}function m(){if(this.xAxis&&this.processedYData&&this.dataModify){var t,e=this.processedXData,i=this.processedYData,o=i.length,n=!0===this.options.compareStart?0:1,r=-1;for(this.pointArrayMap&&(r=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),t=0;t<o-n;t++){var s=i[t]&&-1<r?i[t][r]:i[t];if(d(s)&&0!==s&&e[t+n]>=(this.xAxis.min||0)){this.dataModify.compareValue=s;break}}}}function y(t,e){this.setModifier("compare",t,e)}function v(t,e){t=f(t,!1),this.options.cumulative=this.userOptions.cumulative=t,this.update({},f(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach((function(t){delete t.cumulativeSum}))}function x(t,e){this.setModifier("cumulative",t,e)}var b=[];t.compose=function(t,r,a){if(-1===b.indexOf(t)){b.push(t);var h=t.prototype;h.setCompare=g,h.setCumulative=v,s(t,"afterInit",o),s(t,"afterGetExtremes",n),s(t,"afterProcessData",m)}return-1===b.indexOf(r)&&(b.push(r),(r=r.prototype).setCompare=y,r.setModifier=e,r.setCumulative=x),-1===b.indexOf(a)&&(b.push(a),a.prototype.tooltipFormatter=i),t};var S=function(){function t(t){this.series=t}return t.prototype.modifyValue=function(){return 0},t.getCumulativeExtremes=function(t){var e=1/0,i=-1/0;return t.reduce((function(t,o){return o=t+o,e=Math.min(e,o,t),i=Math.max(i,o,t),o})),[e,i]},t.prototype.initCompare=function(t){this.modifyValue=function(e,i){null===e&&(e=0);var o=this.compareValue;return void 0!==e&&void 0!==o?(e="value"===t?e-o:e/o*100-(100===this.series.options.compareBase?0:100),void 0!==i&&(i=this.series.points[i])&&(i.change=e),e):0}},t.prototype.initCumulative=function(){this.modifyValue=function(t,e){if(null===t&&(t=0),void 0!==t&&void 0!==e){var i=0<e?this.series.points[e-1]:null;return i&&i.cumulativeSum&&(t=l(i.cumulativeSum+t)),(e=this.series.points[e])&&(e.cumulativeSum=t),t}return 0}},t}();t.Additions=S}(n||(n={})),n})),e(i,"Core/Axis/NavigatorAxisComposition.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){function i(){this.navigatorAxis||(this.navigatorAxis=new p(this))}function o(t){var e=this.chart.options,i=e.navigator,o=this.navigatorAxis,r=e.chart.zooming.pinchType,s=e.rangeSelector;e=e.chart.zooming.type,this.isXAxis&&(i&&i.enabled||s&&s.enabled)&&("y"===e?t.zoomed=!1:(!n&&"xy"===e||n&&"xy"===r)&&this.options.range&&(i=o.previousZoom,a(t.newMin)?o.previousZoom=[this.min,this.max]:i&&(t.newMin=i[0],t.newMax=i[1],o.previousZoom=void 0))),void 0!==t.zoomed&&t.preventDefault()}var n=t.isTouchDevice,r=e.addEvent,s=e.correctFloat,a=e.defined,h=e.isNumber,l=e.pick,c=[],p=function(){function t(t){this.axis=t}return t.compose=function(t){-1===c.indexOf(t)&&(c.push(t),t.keepProps.push("navigatorAxis"),r(t,"init",i),r(t,"zoom",o))},t.prototype.destroy=function(){this.axis=void 0}
1,t.prototype.toFixedRange=function(t,e,i,o){var n=this.axis,r=n.chart;t=l(i,n.translate(t,!0,!n.horiz)),e=l(o,n.translate(e,!0,!n.horiz)),r=r&&r.fixedRange,n=(n.pointRange||0)/2;var c=r&&(e-t)/r;return a(i)||(t=s(t+n)),a(o)||(e=s(e-n)),.7<c&&1.3>c&&(o?t=e-r:e=t+r),h(t)&&h(e)||(t=e=void 0),{min:t,max:e}},t}();return p})),e(i,"Stock/Navigator/NavigatorDefaults.js",[i["Core/Color/Color.js"],i["Core/Series/SeriesRegistry.js"]],(function(t,e){return t=t.parse,e=e.seriesTypes,e={height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:t("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:void 0===e.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}})),e(i,"Stock/Navigator/NavigatorSymbols.js",[],(function(){return{"navigator-handle":function(t,e,i,o,n){return void 0===n&&(n={}),t=n.width?n.width/2:i,e=Math.round(t/3)+.5,[["M",-t-1,.5],["L",t,.5],["L",t,(o=n.height||o)+.5],["L",-t-1,o+.5],["L",-t-1,.5],["M",-e,4],["L",-e,o-3],["M",e-1,4],["L",e-1,o-3]]}}})),e(i,"Stock/Navigator/NavigatorComposition.js",[i["Core/Defaults.js"],i["Core/Globals.js"],i["Core/Axis/NavigatorAxisComposition.js"],i["Stock/Navigator/NavigatorDefaults.js"],i["Stock/Navigator/NavigatorSymbols.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s){function a(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function h(){var t=this.legend,e=this.navigator;if(e){var i=t&&t.options,o=e.xAxis,n=e.yAxis,r=e.scrollbarHeight;this.inverted?(e.left=e.opposite?this.chartWidth-r-e.height:this.spacing[3]+r,e.top=this.plotTop+r):(e.left=w(o.left,this.plotLeft+r),e.top=e.navigatorOptions.top||this.chartHeight-e.height-r-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&"proximate"!==i.layout&&i.enabled&&!i.floating?t.legendHeight+w(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&n&&(this.inverted?o.options.left=n.options.left=e.left:o.options.top=n.options.top=e.top,o.setAxisSize(),n.setAxisSize())}}function l(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new g(this),w(t.redraw,!0)&&this.redraw(t.animation))}function c(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new g(this))}function p(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!v&&"x"===t.chart.zooming.type||v&&"x"===t.chart.zooming.pinchType))return!1}function d(t){var e=t.navigator;e&&t.xAxis[0]&&(t=t.xAxis[0].getExtremes(),e.render(t.min,t.max))}function u(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};this.navigator||this.scroller||!e.enabled&&!i.enabled||(C(!0,this.options.navigator,e),C(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}function f(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var g,m=t.defaultOptions,y=t.setOptions,v=e.isTouchDevice,x=r.getRendererType,b=s.addEvent,S=s.extend,C=s.merge,w=s.pick,A=[];return{compose:function(t,e,r,s){i.compose(t),g=r,-1===A.indexOf(e)&&(A.pu
1sh(e),e.prototype.callbacks.push(d),b(e,"afterAddSeries",a),b(e,"afterSetChartSize",h),b(e,"afterUpdate",l),b(e,"beforeRender",c),b(e,"beforeShowResetZoom",p),b(e,"update",u)),-1===A.indexOf(s)&&(A.push(s),b(s,"afterUpdate",f)),-1===A.indexOf(x)&&(A.push(x),S(x().prototype.symbols,n)),-1===A.indexOf(y)&&(A.push(y),S(m,{navigator:o}))}}})),e(i,"Core/Axis/ScrollbarAxis.js",[i["Core/Utilities.js"]],(function(t){var e=t.addEvent,i=t.defined,o=t.pick;return function(){function t(){}return t.compose=function(n,r){if(-1!==t.composed.indexOf(n))return n;t.composed.push(n);var s=function(t){var e=o(t.options&&t.options.min,t.min),n=o(t.options&&t.options.max,t.max);return{axisMin:e,axisMax:n,scrollMin:i(t.dataMin)?Math.min(e,t.min,t.dataMin,o(t.threshold,1/0)):e,scrollMax:i(t.dataMax)?Math.max(n,t.max,t.dataMax,o(t.threshold,-1/0)):n}};return e(n,"afterInit",(function(){var t=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new r(t.chart.renderer,t.options.scrollbar,t.chart),e(t.scrollbar,"changed",(function(e){var o=s(t),n=o.axisMax,r=o.scrollMin,a=o.scrollMax-r;i(o.axisMin)&&i(n)&&(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(o=r+a*this.to,r+=a*this.from):(o=r+a*(1-this.from),r+=a*(1-this.to)),this.shouldUpdateExtremes(e.DOMType)?t.setExtremes(r,o,!0,"mousemove"!==e.DOMType&&"touchmove"!==e.DOMType,e):this.setRange(this.from,this.to))})))}
1)),e(n,"afterRender",(function(){var t=s(this),e=t.scrollMin,o=t.scrollMax;t=this.scrollbar;var n=this.axisTitleMargin+(this.titleOffset||0),r=this.chart.scrollbarsOffsets,a=this.options.margin||0;t&&(this.horiz?(this.opposite||(r[1]+=n),t.position(this.left,this.top+this.height+2+r[1]-(this.opposite?a:0),this.width,this.height),this.opposite||(r[1]+=a),n=1):(this.opposite&&(r[0]+=n),t.position(t.options.opposite?this.left+this.width+2+r[0]-(this.opposite?0:a):this.opposite?0:a,this.top,this.width,this.height),this.opposite&&(r[0]+=a),n=0),r[n]+=t.size+t.options.margin,isNaN(e)||isNaN(o)||!i(this.min)||!i(this.max)||this.min===this.max?t.setRange(0,1):(r=(this.min-e)/(o-e),e=(this.max-e)/(o-e),this.horiz&&!this.reversed||!this.horiz&&this.reversed?t.setRange(r,e):t.setRange(1-e,1-r)))})),e(n,"afterGetOffset",(function(){var t=this.scrollbar&&!this.scrollbar.options.opposite;t=this.horiz?2:t?3:1;var e=this.scrollbar;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[t]+=e.size+e.options.margin)})),n},t.composed=[],t}()})),e(i,"Stock/Scrollbar/ScrollbarDefaults.js",[i["Core/Globals.js"]],(function(t){return{height:t.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}})),e(i,"Stock/Scrollbar/Scrollbar.js",[i["Core/Defaults.js"],i["Core/Globals.js"],i["Core/Axis/ScrollbarAxis.js"],i["Stock/Scrollbar/ScrollbarDefaults.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n){var r=t.defaultOptions,s=n.addEvent,a=n.correctFloat,h=n.defined,l=n.destroyObjectProperties,c=n.fireEvent,p=n.merge,d=n.pick,u=n.removeEvent;return t=function(){function t(t,e,i){this._events=[],this.chart=void 0,this.from=this.chartY=this.chartX=0,this.scrollbar=this.renderer=this.options=this.group=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.to=this.size=this.scrollbarTop=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.y=this.x=0,this.init(t,e,i)}return t.compose=function(e){i.compose(e,t)},t.swapXY=function(t,e){return e&&t.forEach((function(t){for(var e,i=t.length,o=0;o<i;o+=2)"number"==typeof(e=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=e)})),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],i=this.scrollbarButtons,o=this.scrollbarGroup.element,n=this.track.element,r=this.mouseDownHandler.bind(this),a=this.mouseMoveHandler.bind(this),h=this.mouseUpHandler.bind(this);t=[[i[t[0]].element,"click",this.buttonToMinClick.bind(this)],[i[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[n,"click",this.trackClick.bind(this)],[o,"mousedown",r],[o.ownerDocument,"mousemove",a],[o.ownerDocument,"mouseup",h]],e.hasTouch&&t.push([o,"touchstart",r],[o.ownerDocument,"touchmove",a],[o.ownerDocument,"touchend",h]),t.forEach((function(t){s.apply(null,t)})),this._events=t},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*d(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=a(this.to-this.from)*d(this.options.step,.2);this.updatePosition(a(this.from-e),a(this.to-e)),c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var e=this.options;return e=e.minWidth>this.calculatedWidth?e.minWidth:0,{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},t.prototype.destroy=function(){var t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach((function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())})),e&&t===e.scrollbar&&(e.scrollbar=null,l(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,o=this.scrollbarButtons,n=this.options,r=this.size,s=i.g().add(this.group);o.push(s),s=i.rect().addClass("highcharts-scrollbar-button").add(s),this.chart.styledMode||s.attr({stroke:n.buttonBorderColor,"stroke-width":n.buttonBorderWidth,fill:n.buttonBackgroun
1dColor}),s.attr(s.crisp({x:-.5,y:-.5,width:r+1,height:r+1,r:n.buttonBorderRadius},s.strokeWidth())),s=i.path(t.swapXY([["M",r/2+(e?-1:1),r/2-3],["L",r/2+(e?-1:1),r/2+3],["L",r/2+(e?2:-2),r/2]],n.vertical)).addClass("highcharts-scrollbar-arrow").add(o[e]),this.chart.styledMode||s.attr({fill:n.buttonArrowColor})},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=p(o,r.scrollbar,e),this.chart=i,this.size=d(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){t=this.chart.pointer.normalize(t),t=this.cursorToScrollbarPosition(t),this.chartX=t.chartX,this.chartY=t.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e=this.chart.pointer.normalize(t),i=this.options.vertical?"chartY":"chartX",o=this.initPositions||[];!this.grabbedCenter||t.touches&&0===t.touches[0][i]||(i=(e=this.cursorToScrollbarPosition(e)[i])-(i=this[i]),this.hasDragged=!0,this.updatePosition(o[0]+i,o[1]+i),this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,o){var n=this.options.vertical,r=this.rendered?"animate":"attr",s=o,a=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=o,this.xOffset=s,this.yOffset=a,n?(this.width=this.yOffset=i=a=this.size,this.xOffset=s=0,this.barWidth=o-2*i,this.x=t+=this.options.margin):(this.height=this.xOffset=o=s=this.size,this.barWidth=i-2*o,this.y+=this.options.margin),this.group[r]({translateX:t,translateY:this.y}),this.track[r]({width:i,height:o}),this.scrollbarButtons[1][r]({translateX:n?0:i-s,translateY:n?o-a:0})},t.prototype.removeEvents=function(){this._events.forEach((function(t){u.apply(null,t)})),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,o=this.size,n=this.chart.styledMode,r=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=r,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:i.trackBorderRadius||0,height:o,width:o}).add(r),n||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=e.g().add(r),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:o,width:o,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),n||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i=this.options,o=i.vertical,n=i.minWidth,r=this.barWidth,s=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(h(r)){var l=r*Math.min(e,1);t=Math.max(t,0);var c=Math.ceil(r*t);this.calculatedWidth=l=a(l-c),l<n&&(c=(r-n+l)*t,l=n),n=Math.floor(c+this.xOffset+this.yOffset),r=l/2-.5,this.from=t,this.to=e,o?(this.scrollbarGroup[s]({translateY:n}),this.scrollbar[s]({height:l}),this.scrollbarRifles[s]({translateY:r}),this.scrollbarTop=n,this.scrollbarLeft=0):(this.scrollbarGroup[s]({translateX:n}),this.scrollbar[s]({width:l}),this.scrollbarRifles[s]({translateX:r}),this.scrollbarLeft=n,this.scrollbarTop=0),12>=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===i.show
1Full&&(0>=t&&1<=e?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return d(this.options.liveRedraw,e.svg&&!e.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!h(t)},t.prototype.trackClick=function(t){var e=this.chart.pointer.normalize(t),i=this.to-this.from,o=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>o||!this.options.vertical&&e.chartX>n?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,p(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){1<e&&(t=a(1-a(e-t)),e=1),0>t&&(e=a(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=o,t}(),r.scrollbar=p(!0,t.defaultOptions,r.scrollbar),t})),e(i,"Stock/Navigator/Navigator.js",[i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/Globals.js"],i["Core/Axis/NavigatorAxisComposition.js"],i["Stock/Navigator/NavigatorComposition.js"],i["Stock/Scrollbar/Scrollbar.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s){function a(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if((e=[].filter.call(e,b)).length)return Math[t].apply(0,e)}var h=e.defaultOptions,l=i.hasTouch,c=i.isTouchDevice,p=s.addEvent,d=s.clamp,u=s.correctFloat,f=s.defined,g=s.destroyObjectProperties,m=s.erase,y=s.extend,v=s.find,x=s.isArray,b=s.isNumber,S=s.merge,C=s.pick,w=s.removeEvent,A=s.splat;return function(){function e(t){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0,this.init(t)}return e.compose=function(t,i,o){n.compose(t,i,e,o)},e.prototype.drawHandle=function(t,e,i,o){var n=this.navigatorOptions.handles.height;this.handles[e][o](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-n)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-n/2-1)})},e.prototype.drawOutline=function(t,e,i,o){var n=this.navigatorOptions.maskInside,r=this.outline.strokeWidth(),s=r/2,a=r%2/2;r=this.outlineHeight;var h=this.scrollbarHeight||0,l=this.size,c=this.left-h,p=this.top;i?(a=[["M",(c-=s)+r,p-h-a],["L",c+r,i=p+e+a],["L",c,i],["L",c,e=p+t+a],["L",c+r,e],["L",c+r,p+l+h]],n&&a.push(["M",c+r,i-s],["L",c+r,e+s])):(a=[["M",c,p+=s],["L",t+=c+h-a,p],["L",t,p+r],["L",e+=c+h-a,p+r],["L",e,p],["L",c+l+2*h,p]],n&&a.push(["M",t-s,p],["L",e+s,p])),this.outline[o]({d:a})},e.prototype.drawMasks=function(t,e,i,o){var n=this.left,r=this.top,s=this.height;if(i)var a=[n,n,n],h=[r,r+t,r+e],l=[s,s,s],c=[t,e-t,this.size-e];else a=[n,n+t,n+e],h=[r,r,r],l=[t,e-t,this.size-e],c=[s,s,s];this.shades.forEach((function(t,e){t[o]({x:a[e],y:h[e],width:l[e],height:c[e]})}))},e.prototype.renderElements=function(){var t=this,e=t.navigatorOptions,i=e.maskInside,o=t.chart,n=o.renderer,r={cursor:o.inverted?"ns-resize":"ew-resize"},s=t.navigatorGroup=n.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!i,i,!i].forEach((function(i,a){var h=n.rect().addClass("highcharts-navigator-mask"+(1===a?"-inside":"-outside")).add(s);o.styledMode||(h.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===a&&h.css(r)),t.shades[a]=h})),t.outline=n.path().addClass("highcharts-navigator-outline").add(s),o.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles&&e.handles.enabled){var a=e.handles,h=a.height,l=a.width;[0,1].forEach((function(e){t.handles[e]=n.symbol(a.symbols[e],-l/2-1,0,l,h,a),o.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-l/2),rotationOriginY:(h+l)/2}),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(s),o.styledMode||t.handles[e].attr({fill:a.backgroundColor,stroke:a.borderColor,"stroke-width":a.lineWidth}).css(r)}))}}
1,e.prototype.update=function(t){(this.series||[]).forEach((function(t){t.baseSeries&&delete t.baseSeries.navigatorSeries})),this.destroy(),S(!0,this.chart.options.navigator,t),this.init(this.chart)},e.prototype.render=function(t,e,i,o){var n,r=this.chart,s=this.xAxis,a=s.pointRange||0,h=s.navigatorAxis.fake?r.xAxis[0]:s,l=this.navigatorEnabled,c=this.rendered,p=r.inverted,g=r.xAxis[0].minRange,m=r.xAxis[0].options.maxRange,y=this.scrollbarHeight;if(!this.hasDragged||f(i)){if(t=u(t-a/2),e=u(e+a/2),!b(t)||!b(e)){if(!c)return;i=0,o=C(s.width,h.width)}this.left=C(s.left,r.plotLeft+y+(p?r.plotWidth:0));var v=this.size=n=C(s.len,(p?r.plotHeight:r.plotWidth)-2*y);r=p?y:n+2*y,i=C(i,s.toPixels(t,!0)),o=C(o,s.toPixels(e,!0)),b(i)&&1/0!==Math.abs(i)||(i=0,o=r),t=s.toValue(i,!0),e=s.toValue(o,!0);var x=Math.abs(u(e-t));x<g?this.grabbedLeft?i=s.toPixels(e-g-a,!0):this.grabbedRight&&(o=s.toPixels(t+g+a,!0)):f(m)&&u(x-a)>m&&(this.grabbedLeft?i=s.toPixels(e-m-a,!0):this.grabbedRight&&(o=s.toPixels(t+m+a,!0))),this.zoomedMax=d(Math.max(i,o),0,v),this.zoomedMin=d(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,v),this.range=this.zoomedMax-this.zoomedMin,v=Math.round(this.zoomedMax),i=Math.round(this.zoomedMin),l&&(this.navigatorGroup.attr({visibility:"inherit"}),c=c&&!this.hasDragged?"animate":"attr",this.drawMasks(i,v,p,c),this.drawOutline(i,v,p,c),this.navigatorOptions.handles.enabled&&(this.drawHandle(i,0,p,c),this.drawHandle(v,1,p,c))),this.scrollbar&&(p?(p=this.top-y,h=this.left-y+(l||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),y=n+2*y):(p=this.top+(l?this.height:-y),h=this.left-y),this.scrollbar.position(h,p,r,y),this.scrollbar.setRange(this.zoomedMin/(n||1),this.zoomedMax/(n||1))),this.rendered=!0}},e.prototype.addMouseEvents=function(){var t,e,i=this,o=i.chart,n=o.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(r=i.getPartsEvents("mousedown")).push(p(o.renderTo,"mousemove",t),p(n.ownerDocument,"mouseup",e)),l&&(r.push(p(o.renderTo,"touchmove",t),p(n.ownerDocument,"touchend",e)),r.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(p(i.series[0].xAxis,"foundExtremes",(function(){o.navigator.modifyNavigatorAxisExtremes()})))},e.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach((function(o){e[o].forEach((function(n,r){i.push(p(n.element,t,(function(t){e[o+"Mousedown"](t,r)})))}))})),i},e.prototype.shadesMousedown=function(t,e){t=this.chart.pointer.normalize(t);var i=this.chart,o=this.xAxis,n=this.zoomedMin,r=this.size,s=this.range,a=this.left,h=t.chartX;if(i.inverted&&(h=t.chartY,a=this.top),1===e)this.grabbedCenter=h,this.fixedWidth=s,this.dragOffset=h-n;else{if(t=h-a-s/2,0===e)t=Math.max(0,t);else if(2===e&&t+s>=r)if(t=r-s,this.reversedExtremes){t-=s;var l=this.getUnionExtremes().dataMin}else var c=this.getUnionExtremes().dataMax;t!==n&&(this.fixedWidth=s,e=o.navigatorAxis.toFixedRange(t,t+s,l,c),f(e.min)&&i.xAxis[0].setExtremes(Math.min(e.min,e.max),Math.max(e.min,e.max),!0,null,{trigger:"navigator"}))}},e.prototype.handlesMousedown=function(t,e){this.chart.pointer.normalize(t);var i=(t=this.chart).xAxis[0],o=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=o?i.min:i.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=o?i.max:i.min),t.fixedRange=null},e.prototype.onMouseMove=function(t){var e=this,o=e.chart,n=e.navigatorSize,r=e.range,s=e.dragOffset,a=o.inverted,h=e.left;t.touches&&0===t.touches[0].pageX||(t=o.pointer.normalize(t),o=t.chartX,a&&(h=e.top,o=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-h,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-h)):e.grabbedCenter&&(e.hasDragged=!0,o<s?o=s:o>n+s-r&&(o=n+s-r),e.render(0,0,o-s,o-s+r)),e.hasDragged&&e.scrollbar&&C(e.scrollbar.options.liveRedraw,i.svg&&!c&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout((function(){e.onMouseUp(t)}),0)))},e.prototype.onMouseUp=function(t){var e=this.chart,i=this.xAxis,o=this.scrollbar,n=t.DOMEvent||t,r=e.inverted,s=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!o||!o.hasDragged)||"scrollbar"===t.trigger){if(o=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var a=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var h=this.fixedExtreme;this.zoomedMax===this.size&&(h=this.reversedExtremes?o.dataMin:o.dataMax),0===this.zoomedMin&&(a=this.reversedExtremes?o.dataMax:o.dataMin),i=i.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,a,h),f(i.min)&&e.xAxis[0].setExtremes(Math.min(i.min,i.max),Math.max(i.min,i.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:n})}"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&b(this.zoomedMin)&&b(this.zoomedMax)&&(e=Math.round(this.zoomedMin),t=Math.round(this.zoomedMax),this.shades&&this.drawMasks(e,t,r,s),this.outline&&this.drawOutline(e,t,r,s),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(e,0,r,s),this.drawHandle(t,1,r,s)))},e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEac
1h((function(t){t()})),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},e.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach((function(t){w(t,"updatedData",this.updatedDataHandler)}),this),t[0].xAxis&&w(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},e.prototype.init=function(e){var i=e.options,n=i.navigator||{},s=n.enabled,h=i.scrollbar||{},l=h.enabled;i=s&&n.height||0;var c=l&&h.height||0;this.handles=[],this.shades=[],this.chart=e,this.setBaseSeries(),this.height=i,this.scrollbarHeight=c,this.scrollbarEnabled=l,this.navigatorEnabled=s,this.navigatorOptions=n,this.scrollbarOptions=h,this.outlineHeight=i+c,this.opposite=C(n.opposite,!(s||!e.inverted));var d=this;s=d.baseSeries,h=e.xAxis.length,l=e.yAxis.length;var u=s&&s[0]&&s[0].xAxis||e.xAxis[0]||{options:{}};e.isDirtyBox=!0,d.navigatorEnabled?(d.xAxis=new t(e,S({breaks:u.options.breaks,ordinal:u.options.ordinal},n.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:h,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},e.inverted?{offsets:[c,0,-c,0],width:i}:{offsets:[0,-c,0,c],height:i})),d.yAxis=new t(e,S(n.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,isInternal:!0,reversed:C(n.yAxis&&n.yAxis.reversed,e.yAxis[0]&&e.yAxis[0].reversed,!1),zoomEnabled:!1},e.inverted?{width:i}:{height:i})),s||n.series.data?d.updateNavigatorSeries(!1):0===e.series.length&&(d.unbindRedraw=p(e,"beforeRedraw",(function(){0<e.series.length&&!d.series&&(d.setBaseSeries(),d.unbindRedraw())}))),d.reversedExtremes=e.inverted&&!d.xAxis.reversed||!e.inverted&&d.xAxis.reversed,d.renderElements(),d.addMouseEvents()):(d.xAxis={chart:e,navigatorAxis:{fake:!0},translate:function(t,i){var o=e.xAxis[0],n=o.getExtremes(),r=o.len-2*c,s=a("min",o.options.min,n.dataMin);return o=a("max",o.options.max,n.dataMax)-s,i?t*o/r+s:r*(t-s)/o},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},d.xAxis.navigatorAxis.axis=d.xAxis,d.xAxis.navigatorAxis.toFixedRange=o.prototype.toFixedRange.bind(d.xAxis.navigatorAxis)),e.options.scrollbar.enabled&&(e.scrollbar=d.scrollbar=new r(e.renderer,S(e.options.scrollbar,{margin:d.navigatorEnabled?0:10,vertical:e.inverted}),e),p(d.scrollbar,"changed",(function(t){var e=d.size,i=e*this.to;e*=this.from,d.hasDragged=d.scrollbar.hasDragged,d.render(0,0,e,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout((function(){d.onMouseUp(t)}))}))),d.addBaseSeriesEvents(),d.addChartEvents()},e.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],o=this.xAxis,n=o.options,r=i.options;return t&&null===i.dataMin||(e={dataMin:C(n&&n.min,a("min",r.min,i.dataMin,o.dataMin,o.min)),dataMax:C(n&&n.max,a("max",r.max,i.dataMax,o.dataMax,o.max))}),e},e.prototype.setBaseSeries=function(t,e){var i=this.chart,o=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?v(i.series,(function(t){return!t.options.isInternal})).index:0),(i.series||[]).forEach((function(e,i){e.options.isInternal||!e.options.showInNavigator&&(i!==t&&e.options.id!==t||!1===e.options.showInNavigator)||o.push(e)})),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},e.prototype.updateNavigatorSeries=function(t,e){var i,o,n,r=this,s=r.chart,a=r.baseSeries,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=r.series=(r.series||[]).filter((function(t){var e=t.baseSeries;return!(0>a.indexOf(e)&&(e&&(w(e,"updatedData",r.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))})),p=r.navigatorOptions.series;a&&a.length&&a.forEach((function(t){var d=t.navigatorSeries,u=y({color:t.color,visible:t.visible},x(p)?h.navigator.series:p);d&&!1===r.navigatorOptions.adaptToUpdatedData||(l.name="Navigator "+a.length,i=t.options||{},n=i.navigatorOptions||{},u.dataLabels=A(u.dataLabels),(o=S(i,l,u,n)).pointRange=C(u.pointRange,n.pointRange,h.plotOptions[o.type||"line"].pointRange),u=n.data||u.data,r.hasNavigatorData=r.hasNavigatorData||!!u,o.data=u||i.data&&i.data.slice(0),d&&d.options?d.update(o,e):(t.navigatorSeries=s.initSeries(o),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries)))}
1)),(!p.data||a&&a.length)&&!x(p)||(r.hasNavigatorData=!1,(p=A(p)).forEach((function(t,e){l.name="Navigator "+(c.length+1),(o=S(h.navigator.series,{color:s.series[e]&&!s.series[e].options.isInternal&&s.series[e].color||s.options.colors[e]||s.options.colors[0]},l,t)).data=t.data,o.data&&(r.hasNavigatorData=!0,c.push(s.initSeries(o)))}))),t&&this.addBaseSeriesEvents()},e.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(p(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach((function(i){i.eventsToUnbind.push(p(i,"show",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}))),i.eventsToUnbind.push(p(i,"hide",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}))),!1!==t.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(p(i,"updatedData",t.updatedDataHandler)),i.eventsToUnbind.push(p(i,"remove",(function(){this.navigatorSeries&&(m(e.series,this.navigatorSeries),f(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})))}))},e.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce((function(t,e){return Math.min(t,e.xData&&e.xData.length?e.xData[0]:t)}),t)},e.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var e=this.getUnionExtremes(!0);!e||e.dataMin===t.min&&e.dataMax===t.max||(t.min=e.dataMin,t.max=e.dataMax)}},e.prototype.modifyBaseAxisExtremes=function(){var t=this.chart.navigator,e=this.getExtremes(),i=e.dataMin,o=e.dataMax;e=e.max-e.min;var n=t.stickToMin,r=t.stickToMax,s=C(this.options.overscroll,0),a=t.series&&t.series[0],h=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(n)var l=i,c=i+e;r&&(c=o+s,n||(l=Math.max(i,c-e,t.getBaseSeriesMin(a&&a.xData?a.xData[0]:-Number.MAX_VALUE)))),h&&(n||r)&&b(l)&&(this.min=this.userMin=l,this.max=this.userMax=c)}t.stickToMin=t.stickToMax=null},e.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries;t.stickToMax=C(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size)),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},e.prototype.shouldStickToMin=function(t,e){e=e.getBaseSeriesMin(t.xData[0]);var i=t.xAxis;t=i.max;var o=i.min;return i=i.options.range,!(!b(t)||!b(o))&&(i&&0<t-e?t-e<i:o<=e)},e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(p(this.chart,"redraw",(function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)})),p(this.chart,"getMargins",(function(){var t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.outlineHeight:0)+t.navigatorOptions.margin})))},e.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis)),this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis)),(this.series||[]).forEach((function(t){t.destroy&&t.destroy()})),"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach((function(e){t[e]&&t[e].destroy&&t[e].destroy(),t[e]=null})),[this.handles].forEach((function(t){g(t)}))},e}()})),e(i,"Stock/RangeSelector/RangeSelectorDefaults.js",[],(function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"â"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}})),e(i,"Stock/RangeSelector/RangeSelectorComposition.js",[i["Core/Defaults.js"],i["Stock/RangeSelector/RangeSelectorDefaults.js"],i["Core/Utilities.js"]],(function(t,e,
1i){function o(){var t=this.range,e=t.type,i=this.max,o=this.chart.time,n=function(t,i){var n="year"===e?"FullYear":"Month",r=new o.Date(t),s=o.get(n,r);return o.set(n,r,s+i),s===o.get(n,r)&&o.set("Date",r,0),r.getTime()-t};if(v(t))var r=i-t,s=t;else t&&(r=i+n(i,-(t.count||1)),this.chart&&(this.chart.fixedRange=i-r));var a=b(this.dataMin,Number.MIN_VALUE);return v(r)||(r=a),r<=a&&(r=a,void 0===s&&(s=n(r,t.count)),this.newMax=Math.min(r+s,b(this.dataMax,Number.MAX_VALUE))),v(i)?!v(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function n(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new p(this))}function r(){var t=this.axes,e=this.rangeSelector;e&&(v(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),t.forEach((function(t){t.updateNames(),t.setScale()})),this.getAxisMargins(),e.render(),t=e.options.verticalAlign,e.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)))}function s(t){var e,i,o,n,r=t.rangeSelector,s=function(){r&&(e=t.xAxis[0].getExtremes(),i=t.legend,n=r&&r.options.verticalAlign,v(e.min)&&r.render(e.min,e.max),i.display&&"top"===n&&n===i.options.verticalAlign&&((o=x(t.spacingBox)).y="vertical"===i.options.layout?t.plotTop:o.y+r.getHeight(),i.group.placed=!1,i.align(o)))};r&&(y(S,(function(e){return e[0]===t}))||S.push([t,[f(t.xAxis[0],"afterSetExtremes",(function(t){r&&r.render(t.min,t.max)})),f(t,"redraw",s)]]),s())}function a(){for(var t=0,e=S.length;t<e;++t){var i=S[t];if(i[0]===this){i[1].forEach((function(t){return t()})),S.splice(t,1);break}}}function h(){var t=this.rangeSelector;t&&(t=t.getHeight(),this.extraTopMargin&&(this.plotTop+=t),this.extraBottomMargin&&(this.marginBottom+=t))}function l(){var t=this.rangeSelector;t&&!t.options.floating&&(t.render(),"bottom"===(t=t.options.verticalAlign)?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0))}function c(t){var e=t.options.rangeSelector;t=this.extraBottomMargin;var i=this.extraTopMargin,o=this.rangeSelector;e&&e.enabled&&!g(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new p(this)),this.extraTopMargin=this.extraBottomMargin=!1,o&&(s(this),e=e&&e.verticalAlign||o.options&&o.options.verticalAlign,o.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"!==e&&(this.extraTopMargin=!0)),this.extraBottomMargin!==t||this.extraTopMargin!==i)&&(this.isDirtyBox=!0)}var p,d=t.defaultOptions,u=t.setOptions,f=i.addEvent,g=i.defined,m=i.extend,y=i.find,v=i.isNumber,x=i.merge,b=i.pick,S=[],C=[];return{compose:function(t,i,g){p=g,-1===C.indexOf(t)&&(C.push(t),t.prototype.minFromRange=o),-1===C.indexOf(i)&&(C.push(i),f(i,"afterGetContainer",n),f(i,"beforeRender",r),f(i,"destroy",a),f(i,"getMargins",h),f(i,"render",l),f(i,"update",c),i.prototype.callbacks.push(s)),-1===C.indexOf(u)&&(m(d,{rangeSelector:e.rangeSelector}),m(d.lang,e.lang))}}})),e(i,"Stock/RangeSelector/RangeSelector.js",[i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/Globals.js"],i["Stock/RangeSelector/RangeSelectorComposition.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(e,i,o,n,r,s){var a=i.defaultOptions,h=s.addEvent,l=s.createElement,c=s.css,p=s.defined,d=s.destroyObjectProperties,u=s.discardElement,f=s.extend,g=s.fireEvent,m=s.isNumber,y=s.merge,v=s.objectEach,x=s.pad,b=s.pick,S=s.pInt,C=s.splat;return i=function(){function i(t){this.buttons=void 0,this.buttonOptions=i.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=t,this.init(t)}return i.compose=function(t,e){n.compose(t,e,i)},i.prototype.clickButton=function(t,i){var o=this.chart,n=this.buttonOptions[t],r=o.xAxis[0],s=o.scroller&&o.scroller.getUnionExtremes()||r||{},a=n.type,l=n.dataGrouping,c=s.dataMin,d=s.dataMax,u=r&&Math.round(Math.min(r.max,b(d,r.max)));s=n._range;var f,y=!0;if(null!==c&&null!==d){if(o.fixedRange=s,this.setSelected(t),l&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(r||{chart:this.chart},l,!1),this.frozenStates=n.preserveDataGrouping),"month"===a||"year"===a)if(r){a={range:n,max:u,chart:o,dataMin:c,dataMax:d};var v=r.minFromRange.call(a);m(a.newMax)&&(u=a.newMax),y=!1}else s=n;else if(s)v=Math.max(u-s,c),u=Math.min(v+s,d),y=!1;else if("ytd"===a){if(!r)return void(this.deferredYTDClick=t);void 0!==d&&void 0!==c||(c=Number.MAX_VALUE,d=Number.MIN_VALUE,o.series.forEac
1h((function(t){(t=t.xData)&&(c=Math.min(t[0],c),d=Math.max(t[t.length-1],d))})),i=!1),v=f=(a=this.getYTDExtremes(d,c,o.time.useUTC)).min,u=a.max}else"all"===a&&r&&(o.navigator&&o.navigator.baseSeries[0]&&(o.navigator.baseSeries[0].xAxis.options.range=void 0),v=c,u=d);if(y&&n._offsetMin&&p(v)&&(v+=n._offsetMin),n._offsetMax&&p(u)&&(u+=n._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),r)r.setExtremes(v,u,b(i,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:n});else{var x=C(o.options.xAxis)[0],S=x.range;x.range=s;var w=x.min;x.min=f,h(o,"load",(function(){x.range=S,x.min=w}))}g(this,"afterBtnClick")}},i.prototype.setSelected=function(t){this.selected=this.options.selected=t},i.prototype.init=function(t){var e=this,i=t.options.rangeSelector,o=i.buttons||e.defaultButtons.slice(),n=i.selected,r=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&g(t,"blur"),i&&i.blur&&g(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(h(t.container,"mousedown",r)),this.eventsToUnbind.push(h(t,"resize",r)),o.forEach(e.computeButtonRange),void 0!==n&&o[n]&&this.clickButton(n,!1),this.eventsToUnbind.push(h(t,"load",(function(){t.xAxis&&t.xAxis[0]&&h(t.xAxis[0],"setExtremes",(function(i){this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)}))})))},i.prototype.updateButtonStates=function(){var t=this,e=this.chart,i=this.dropdown,o=e.xAxis[0],n=Math.round(o.max-o.min),r=!o.hasVisibleSeries,s=e.scroller&&e.scroller.getUnionExtremes()||o,a=s.dataMin,h=s.dataMax,l=(e=t.getYTDExtremes(h,a,e.time.useUTC)).min,c=e.max,p=t.selected,d=t.options.allButtonsEnabled,u=t.buttons,f=m(p);t.buttonOptions.forEach((function(e,s){var g=e._range,m=e.type,y=e.count||1,v=u[s],x=e._offsetMax-e._offsetMin,b=s===p,S=g>h-a,C=g<o.minRange;e=0;var w=!1,A=!1;g=g===n,("month"===m||"year"===m)&&n+36e5>=864e5*{month:28,year:365}[m]*y-x&&n-36e5<=864e5*{month:31,year:366}[m]*y+x?g=!0:"ytd"===m?(g=c-l+x===n,w=!b):"all"===m&&(g=o.max-o.min>=h-a,A=!b&&f&&g),m=!d&&(S||C||A||r),y=b&&g||g&&!f&&!w||b&&t.frozenStates,m?e=3:y&&(f=!0,e=2),v.state!==e&&(v.setState(e),i&&(i.options[s+1].disabled=m,2===e&&(i.selectedIndex=s+1)),0===e&&p===s&&t.setSelected())}))},i.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*i),t._offsetMin=b(t.offsetMin,0),t._offsetMax=b(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},i.prototype.getInputValue=function(t){t="min"===t?this.minInput:this.maxInput;var e=this.chart.options.rangeSelector,i=this.chart.time;return t?("text"===t.type&&e.inputDateParser||this.defaultInputDateParser)(t.value,i.useUTC,i):0},i.prototype.setInputValue=function(t,e){var i=this.options,o=this.chart.time,n="min"===t?this.minInput:this.maxInput;if(t="min"===t?this.minDateBox:this.maxDateBox,n){var r=n.getAttribute("data-hc-time");r=p(r)?Number(r):void 0,p(e)&&(p(r)&&n.setAttribute("data-hc-time-previous",r),n.setAttribute("data-hc-time",e),r=e),n.value=o.dateFormat(this.inputTypeFormats[n.type]||i.inputEditDateFormat,r),t&&t.attr({text:o.dateFormat(i.inputDateFormat,r)})}},i.prototype.setInputExtremes=function(t,e,i){if(t="min"===t?this.minInput:this.maxInput){var o=this.inputTypeFormats[t.type],n=this.chart.time;o&&(e=n.dateFormat(o,e),t.min!==e&&(t.min=e),i=n.dateFormat(o,i),t.max!==i&&(t.max=i))}},i.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox;if((t="min"===t?this.minInput:this.maxInput)&&e&&this.inputGroup){var i="text"===t.type,o=this.inputGroup,n=o.translateX;o=o.translateY;var r=this.options.inputBoxWidth;c(t,{width:i?e.width+(r?-2:20)+"px":"auto",height:i?e.height-2+"px":"auto",border:"2px solid silver"}),c(t,i&&r?{left:n+e.x+"px",top:o+"px"}:{left:Math.min(Math.round(e.x+n-(t.offsetWidth-e.width)/2),this.chart.chartWidth-t.offsetWidth)+"px",top:o-(t.offsetHeight-e.height)/2+"px"})}}
1,i.prototype.hideInput=function(t){(t="min"===t?this.minInput:this.maxInput)&&c(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},i.prototype.defaultInputDateParser=function(t,e,i){var n,r=t.split("/").join("-").split(" ").join("T");return-1===r.indexOf("T")&&(r+="T00:00"),e?r+="Z":((n=o.isSafari)&&(n=!(6<(n=r).length&&(n.lastIndexOf("-")===n.length-6||n.lastIndexOf("+")===n.length-6))),n&&(r+=0>=(n=new Date(r).getTimezoneOffset()/60)?"+".concat(x(-n),":00"):"-".concat(x(n),":00"))),r=Date.parse(r),m(r)||(t=t.split("-"),r=Date.UTC(S(t[0]),S(t[1])-1,S(t[2]))),i&&e&&m(r)&&(r+=i.getTimezoneOffset(r)),r},i.prototype.drawInput=function(t){function e(){var e=s.maxInput,o=s.minInput,n=i.xAxis[0],r=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:n,a=r.dataMin;r=r.dataMax;var h=s.getInputValue(t);h!==Number(v.getAttribute("data-hc-time-previous"))&&m(h)&&(v.setAttribute("data-hc-time-previous",h),u&&e&&m(a)?h>Number(e.getAttribute("data-hc-time"))?h=void 0:h<a&&(h=a):o&&m(r)&&(h<Number(o.getAttribute("data-hc-time"))?h=void 0:h>r&&(h=r)),void 0!==h&&n.setExtremes(u?h:n.min,u?n.max:h,void 0,void 0,{trigger:"rangeSelectorInput"}))}var i=this.chart,n=this.div,r=this.inputGroup,s=this,h=i.renderer.style||{},p=i.renderer,d=i.options.rangeSelector,u="min"===t,g=a.lang[u?"rangeSelectorFrom":"rangeSelectorTo"]||"";g=p.label(g,0).addClass("highcharts-range-label").attr({padding:g?2:0,height:g?d.inputBoxHeight:0}).add(r),p=p.label("",0).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth,height:d.inputBoxHeight,"text-align":"center"}).on("click",(function(){s.showInput(t),s[t+"Input"].focus()})),i.styledMode||p.attr({stroke:d.inputBoxBorderColor,"stroke-width":1}),p.add(r);var v=l("input",{name:t,className:"highcharts-range-selector"},void 0,n);v.setAttribute("type",function(t){if(-1!==t.indexOf("%L"))return"text";var e="aAdewbBmoyY".split("").some((function(e){return-1!==t.indexOf("%"+e)})),i="HkIlMS".split("").some((function(e){return-1!==t.indexOf("%"+e)}));return e&&i?"datetime-local":e?"date":i?"time":"text"}(d.inputDateFormat||"%b %e, %Y")),i.styledMode||(g.css(y(h,d.labelStyle)),p.css(y({color:"#333333"},h,d.inputStyle)),c(v,f({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},d.inputStyle))),v.onfocus=function(){s.showInput(t)},v.onblur=function(){v===o.doc.activeElement&&e(),s.hideInput(t),s.setInputValue(t),v.blur()};var x=!1;return v.onchange=function(){x||(e(),s.hideInput(t),v.blur())},v.onkeypress=function(t){13===t.keyCode&&e()},v.onkeydown=function(t){x=!0,38!==t.keyCode&&40!==t.keyCode||e()},v.onkeyup=function(){x=!1},{dateBox:p,input:v,label:g}},i.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},i.prototype.getYTDExtremes=function(t,e,i){var o=this.chart.time,n=new o.Date(t),r=o.get("FullYear",n);return i=i?o.Date.UTC(r,0,1):+new o.Date(r,0,1),e=Math.max(e,i),n=n.getTime(),{max:Math.min(t||n,n),min:e}},i.prototype.render=function(t,e){var i=this.chart,o=i.renderer,n=i.container,r=i.options,s=r.rangeSelector,a=b(r.chart.style&&r.chart.style.zIndex,0)+1;if(r=s.inputEnabled,!1!==s.enabled){if(this.rendered||(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=l("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),n.parentNode&&n.parentNode.insertBefore(this.div,n),r&&(this.inputGroup=o.g("input-group").add(this.group),o=this.drawInput("min"),this.minDateBox=o.dateBox,this.minLabel=o.label,this.minInput=o.input,o=this.drawInput("max"),this.maxDateBox=o.dateBox,this.maxLabel=o.label,this.maxInput=o.input)),r&&(this.setInputValue("min",t),this.setInputValue("max",e),t=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{},p(t.dataMin)&&p(t.dataMax)&&(i=i.xAxis[0].minRange||0,this.setInputExtremes("min",t.dataMin,Math.min(t.dataMax,this.getInputValue("max"))-i),this.setInputExtremes("max",Math.max(t.dataMin,this.getInputValue("min"))+i,t.dataMax)),this.inputGroup)){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEac
1h((function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:h}),h+=e+s.inputSpacing)}}))}this.alignElements(),this.rendered=!0}},i.prototype.renderButtons=function(){var t=this,e=this.buttons,i=this.options,n=a.lang,r=this.chart.renderer,s=y(i.buttonTheme),c=s&&s.states,p=s.width||28;delete s.width,delete s.states,this.buttonGroup=r.g("range-selector-buttons").add(this.group);var d=this.dropdown=l("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);h(d,"touchstart",(function(){d.style.fontSize="16px"})),[[o.isMS?"mouseover":"mouseenter"],[o.isMS?"mouseout":"mouseleave"],["change","click"]].forEach((function(i){var o=i[0],n=i[1];h(d,o,(function(){var i=e[t.currentButtonIndex()];i&&g(i.element,n||o)}))})),this.zoomText=r.label(n&&n.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),s["stroke-width"]=b(s["stroke-width"],0)),l("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,d),this.buttonOptions.forEach((function(i,o){l("option",{textContent:i.title||i.text},void 0,d),e[o]=r.button(i.text,0,0,(function(e){var n,r=i.events&&i.events.click;r&&(n=r.call(i,e)),!1!==n&&t.clickButton(o),t.isActive=!0}),s,c&&c.hover,c&&c.select,c&&c.disabled).attr({"text-align":"center",width:p}).add(t.buttonGroup),i.title&&e[o].attr("title",i.title)}))},i.prototype.alignElements=function(){var t=this,e=this.buttonGroup,i=this.buttons,o=this.chart,n=this.group,r=this.inputGroup,s=this.options,a=this.zoomText,h=o.options,l=h.exporting&&!1!==h.exporting.enabled&&h.navigation&&h.navigation.buttonOptions;h=s.buttonPosition;var c=s.inputPosition,p=s.verticalAlign,d=function(e,i){return l&&t.titleCollision(o)&&"top"===p&&"right"===i.align&&i.y-e.getBBox().height-12<(l.y||0)+(l.height||0)+o.spacing[0]?-40:0},u=o.plotLeft;if(n&&h&&c){var f=h.x-o.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var g=0;a&&(g+=a.getBBox().width+5),i.forEach((function(t,e){g+=t.width,e!==i.length-1&&(g+=s.buttonSpacing)})),this.initialButtonGroupWidth=g}u-=o.spacing[3],this.updateButtonStates(),a=d(e,h),this.alignButtonGroup(a),n.placed=e.placed=o.hasLoaded}e=0,r&&(e=d(r,c),"left"===c.align?f=u:"right"===c.align&&(f=-Math.max(o.axisOffset[1],-e)),r.align({y:c.y,width:r.getBBox().width,align:c.align,x:c.x+f-2},!0,o.spacingBox),r.placed=o.hasLoaded),this.handleCollision(e),n.align({verticalAlign:p},!0,o.spacingBox),r=n.alignAttr.translateY,e=n.getBBox().height+20,d=0,"bottom"===p&&(d=r-(e=e+(d=(d=o.legend&&o.legend.options)&&"bottom"===d.verticalAlign&&d.enabled&&!d.floating?o.legend.legendHeight+b(d.margin,10):0)-20)-(s.floating?0:s.y)-(o.titleOffset?o.titleOffset[2]:0)-10),"top"===p?(s.floating&&(d=0),o.titleOffset&&o.titleOffset[0]&&(d=o.titleOffset[0]),d+=o.margin[0]-o.spacing[0]||0):"middle"===p&&(c.y===h.y?d=r:(c.y||h.y)&&(d=0>c.y||0>h.y?d-Math.min(c.y,h.y):r-e)),n.translate(s.x,s.y+Math.floor(d)),h=this.minInput,c=this.maxInput,r=this.dropdown,s.inputEnabled&&h&&c&&(h.style.marginTop=n.translateY+"px",c.style.marginTop=n.translateY+"px"),r&&(r.style.marginTop=n.translateY+"px")}},i.prototype.alignButtonGroup=function(t,e){var i=this.chart,o=this.buttonGroup,n=this.options.buttonPosition,r=i.plotLeft-i.spacing[3],s=n.x-i.spacing[3];"right"===n.align?s+=t-r:"center"===n.align&&(s-=r/2),o&&o.align({y:n.y,width:b(e,this.initialButtonGroupWidth),align:n.align,x:s},!0,i.spacingBox)},i.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,o=this.zoomText,n=e.hasLoaded?"animate":"attr",r=i.buttonPosition,s=e=e.plotLeft;for(o&&"hidden"!==o.visibility&&(o[n]({x:b(e+r.x,e)}),s+=r.x+o.getBBox().width+5),o=0,r=this.buttonOptions.length;o<r;++o)"hidden"!==t[o].visibility?(t[o][n]({x:s}),s+=t[o].width+i.buttonSpacing):t[o][n]({x:e})},i.prototype.handleCollision=function(t){var e=this,i=this.chart,o=this.buttonGroup,n=this.inputGroup,r=this.options,s=r.buttonPosition,a=r.dropdown,h=r.inputPosition;r=function(){var t=0;return e.buttons.forEach((function(e){(e=e.getBBox()).width>t&&(t=e.width)})),t};var l=function(e){if(n&&o){var i=n.alignAttr.translateX+n.alignOptions.x-t+n.getBBox().x+2,r=n.alignOptions.width,a=o.alignAttr.translateX+o.getBBox().x;return a+e>i&&i+r>a&&s.y<h.y+n.getBBox().height}return!1},c=function(){n&&o&&n.attr({translateX:n.alignAttr.translateX+(i.axisOffset[1]>=-t?0:-t),translateY:n.alignAttr.translateY+o.getBBox().height+10})};if(o){if("always"===a)return this.collapseButtons(t),void(l(r())&&c());"never"===a&&this.expandButtons()}n&&o?h.align===s.align||l(this.initialButtonGroupWidth+20)?"responsive"===a?(this.collapseButtons(t),l(r())&&c()):c():"responsive"===a&&this.expandButtons():o&&"responsive"===a&&(this.initialButtonGroupWidth>i.plotWidth?this.collapseButtons(t):this.expandButtons())},i.prototype.collapseButtons=function(t){var e=this.buttons,i=this.buttonOptions,o=this.chart,n=this.dropdown,r=this.options,s=this.zoomText,a=o.userOptions.rangeSelector&&o.userOptions.rangeSelector.buttonTheme||{}
1,h=function(t){return{text:t?t+" â¾":"â¾",width:"auto",paddingLeft:b(r.buttonTheme.paddingLeft,a.padding,8),paddingRight:b(r.buttonTheme.paddingRight,a.padding,8)}};s&&s.hide();var l=!1;i.forEach((function(t,i){2!==(i=e[i]).state?i.hide():(i.show(),i.attr(h(t.text)),l=!0)})),l||(n&&(n.selectedIndex=0),e[0].show(),e[0].attr(h(this.zoomText&&this.zoomText.textStr))),i=r.buttonPosition.align,this.positionButtons(),"right"!==i&&"center"!==i||this.alignButtonGroup(t,e[this.currentButtonIndex()].getBBox().width),this.showDropdown()},i.prototype.expandButtons=function(){var t=this.buttons,e=this.buttonOptions,i=this.options,o=this.zoomText;this.hideDropdown(),o&&o.show(),e.forEach((function(e,o){(o=t[o]).show(),o.attr({text:e.text,width:i.buttonTheme.width||28,paddingLeft:b(i.buttonTheme.paddingLeft,"unset"),paddingRight:b(i.buttonTheme.paddingRight,"unset")}),2>o.state&&o.setState(0)})),this.positionButtons()},i.prototype.currentButtonIndex=function(){var t=this.dropdown;return t&&0<t.selectedIndex?t.selectedIndex-1:0},i.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.buttons,i=this.chart,o=this.dropdown;if(t&&o){var n=t.translateX;t=t.translateY,e=e[this.currentButtonIndex()].getBBox(),c(o,{left:i.plotLeft+n+"px",top:t+.5+"px",width:e.width+"px",height:e.height+"px"}),this.hasVisibleDropdown=!0}},i.prototype.hideDropdown=function(){var t=this.dropdown;t&&(c(t,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},i.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.y,o=t.buttonPosition.y,n=t.inputPosition.y;return t.height?t.height:(this.alignElements(),t=e?e.getBBox(!0).height+13+i:0,e=Math.min(n,o),(0>n&&0>o||0<n&&0<o)&&(t+=Math.abs(e)),t)},i.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},i.prototype.update=function(t){var e=this.chart;y(!0,e.options.rangeSelector,t),this.destroy(),this.init(e),this.render()},i.prototype.destroy=function(){var e=this,o=e.minInput,n=e.maxInput;e.eventsToUnbind&&(e.eventsToUnbind.forEach((function(t){return t()})),e.eventsToUnbind=void 0),d(e.buttons),o&&(o.onfocus=o.onblur=o.onchange=null),n&&(n.onfocus=n.onblur=n.onchange=null),v(e,(function(o,n){o&&"chart"!==n&&(o instanceof r?o.destroy():o instanceof t.HTMLElement&&u(o)),o!==i.prototype[n]&&(e[n]=null)}),this)},i}(),f(i.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),i})),e(i,"Core/Axis/OrdinalAxis.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n,r=o.addEvent,s=o.correctFloat,a=o.css,h=o.defined,l=o.error,c=o.pick,p=o.timeUnits,d=[];return function(t){function o(t,e,i,o,n,r,s){void 0===n&&(n=[]),void 0===r&&(r=0);var a,c,d={},u=this.options.tickPixelInterval,f=this.chart.time,g=[],m=0,y=[],v=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!n||3>n.length||void 0===e)return f.getTimeTicks.apply(f,arguments);var x=n.length;for(a=0;a<x;a++){var b=a&&n[a-1]>i;if(n[a]<e&&(m=a),a===x-1||n[a+1]-n[a]>5*r||b){if(n[a]>v){for(c=f.getTimeTicks(t,n[m],n[a],o);c.length&&c[0]<=v;)c.shift();c.length&&(v=c[c.length-1]),g.push(y.length),y=y.concat(c)}m=a+1}if(b)break}if(c){if(c=c.info,s&&c.unitRange<=p.hour){for(a=y.length-1,m=1;m<a;m++)if(f.dateFormat("%d",y[m])!==f.dateFormat("%d",y[m-1])){d[y[m]]="day";var S=!0}S&&(d[y[0]]="day"),c.higherRanks=d}c.segmentStarts=g,y.info=c}else l(12,!1,this.chart);if(s&&h(u)){for(f=[],m=[],a=void 0,S=c=y.length;S--;)g=this.translate(y[S]),a&&(m[S]=a-g),f[S]=a=g;for(m.sort(),(m=m[Math.floor(m.length/2)])<.6*u&&(m=null),S=y[c-1]>i?c-1:c,a=void 0;S--;)g=f[S],c=Math.abs(a-g),a&&c<.8*u&&(null===m||c<.8*m)?(d[y[S]]&&!d[y[S+1]]?(c=S+1,a=g):c=S,y.splice(c,1)):a=g}return y}function n(t){var e=this.ordinal.positions;if(!e)return t;var i=e.length-1;if(0>t)t=e[0];else if(t>i)t=e[i];else var o=t-(i=Math.floor(t));return void 0!==o&&void 0!==e[i]?e[i]+(o?o*(e[i+1]-e[i]):0):t}function u(t){var e=this.ordinal,i=e.positions;if(!i)return t;var o=(t-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;if(0<o&&o<this.left+this.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),i=e.extendedOrdinalPositions),i&&i.length){if(t=e.getIndexOfPoint(o,i),e=s(t%1),0<=t&&t<i.length-1)return i[Math.floor(t)]+e*(i[Math.ceil(t)]-i[Math.floor(t)]);e=i.length,o=i[0];var n=((i=i[e-1])-o)/(e-1);return 0>t?o+n*t:i+n*(t-e)}return t}function f(e,i){var o=t.Additions.findIndexOf(e,i,!0);return e[o]===i?o:o+(i-e[o])/(e[o+1]-e[o])}function g(){this.ordinal||(this.ordinal=new t.Additions(this))}function m(){this.isXAxis&&h(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&h(this.userMin)&&(this.min+=this.options.overscroll))}function y(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function v(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function x(t){var e=this.xAxis[0],i=e.options.overscroll,o=t.originalEvent.chartX,n=this.options.chart.panning,r=!1;if(n&&"y"!==n.type&&e.options.ordinal&&e.series.length){var s=this.mouseDownX,h=e.getExtremes(),l=h.dataMax,c=h.min,p=h.max,d=this.hoverPoints,u=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange;s=(s-o)/(e.translationSlope*(e.ordinal.slope||u)),u={ordinal:{positions:u=e.ordinal.getExtendedPositions(),extendedOrdinalPositions:u}};var f=e.index2val,g=e.val2lin,m=void 0,y=m=void 0,v=void 0;u.ordinal.positions?1<Math.abs(s)&&(d&&d.forEach((function(t){t.setState()})),0>s?(y=u,v=e.ordinal.positions?e:u):(y=e.ordinal.positions?e:u,v=u),l>(m=v.ordinal.positions)[m.length-1]&&m.push(l),this.fixedRange=p-c,(m=e.navigatorAxis.toFixedRange(void 0,void 0,f.apply(y,[g.apply(y,[c,!0])+s]),f.apply(v,[g.apply(v,[p,!0])+s]))).min>=Math.min(h.dataMin,c)&&m.max<=Math.max(l,p)+i&&e.setExtremes(m.min,m.max,!0,!1,{trigger:"pan"}),this.mouseDownX=o,a(this.container,{cursor:"move"})):r=!0}else r=!0;
1r||n&&/y/.test(n.type)?i&&(e.max=e.dataMax+i):t.preventDefault()}function b(){var t=this.xAxis;t&&t.options.ordinal&&(delete t.ordinal.index,delete t.ordinal.extendedOrdinalPositions)}function S(t,e){var i=this.ordinal,o=i.positions,n=i.slope,r=i.extendedOrdinalPositions;if(!o)return t;var s=o.length;if(o[0]<=t&&o[s-1]>=t)t=f(o,t);else{if(r||(r=i.getExtendedPositions&&i.getExtendedPositions(),i.extendedOrdinalPositions=r),!r||!r.length)return t;s=r.length,n||(n=(r[s-1]-r[0])/s),o=f(r,o[0]),t=t>=r[0]&&t<=r[s-1]?f(r,t)-o:t<r[0]?-o-(t=r[0]-t)/n:(t-=r[s-1])/n+s-o}return e?t:n*(t||0)+i.offset}t.compose=function(t,e,i){if(-1===d.indexOf(t)){d.push(t);var s=t.prototype;s.getTimeTicks=o,s.index2val=n,s.lin2val=u,s.val2lin=S,s.ordinal2lin=s.val2lin,r(t,"afterInit",g),r(t,"foundExtremes",m),r(t,"afterSetScale",y),r(t,"initialAxisTranslation",v)}return-1===d.indexOf(i)&&(d.push(i),r(i,"pan",x)),-1===d.indexOf(e)&&(d.push(e),r(e,"updatedData",b)),t};var C=function(){function t(t){this.index={},this.axis=t}return t.prototype.beforeSetTickPositions=function(){var t=this.axis,e=t.ordinal,i=t.getExtremes(),o=i.min,n=i.max,r=t.isXAxis&&!!t.options.breaks;i=t.options.ordinal;var s,a,h=t.chart.options.chart.ignoreHiddenSeries,l=[],p=Number.MAX_VALUE,d=!1,u=!1,f=!1;if(i||r){var g=0;t.series.forEach((function(t,e){if(s=[],0<e&&"highcharts-navigator-series"!==t.options.id&&1<t.processedXData.length&&(u=g!==t.processedXData[1]-t.processedXData[0]),g=t.processedXData[1]-t.processedXData[0],t.boosted&&(f=t.boosted),!(h&&!1===t.visible||!1===t.takeOrdinalPosition&&!r)&&(l=l.concat(t.processedXData),m=l.length,l.sort((function(t,e){return t-e})),p=Math.min(p,c(t.closestPointRange,p)),m)){for(e=0;e<m-1;)l[e]!==l[e+1]&&s.push(l[e+1]),e++;s[0]!==l[0]&&s.unshift(l[0]),l=s}})),u&&f&&(l.pop(),l.shift());var m=l.length;if(2<m){var y=l[1]-l[0];for(a=m-1;a--&&!d;)l[a+1]-l[a]!==y&&(d=!0);!t.options.keepOrdinalPadding&&(l[0]-o>y||n-l[l.length-1]>y)&&(d=!0)}else t.options.overscroll&&(2===m?p=l[1]-l[0]:1===m?(p=t.options.overscroll,l=[l[0],l[0]+p]):p=e.overscrollPointsRange);d||t.forceOrdinal?(t.options.overscroll&&(e.overscrollPointsRange=p,l=l.concat(e.getOverscrollPositions())),e.positions=l,y=t.ordinal2lin(Math.max(o,l[0]),!0),a=Math.max(t.ordinal2lin(Math.min(n,l[l.length-1]),!0),1),e.slope=n=(n-o)/(a-y),e.offset=o-y*n):(e.overscrollPointsRange=c(t.closestPointRange,e.overscrollPointsRange),e.positions=t.ordinal.slope=e.offset=void 0)}t.isOrdinal=i&&d,e.groupIntervalFactor=null},t.findIndexOf=function(t,e,i){for(var o,n=0,r=t.length-1;n<r;)t[o=Math.ceil((n+r)/2)]<=e?n=o:r=o-1;return t[n]===e||i?n:-1},t.prototype.getExtendedPositions=function(){var t=this,o=t.axis,n=o.constructor.prototype,r=o.chart,s=o.series[0].currentDataGrouping,a=s?s.count+s.unitName:"raw",h=o.options.overscroll,l=o.getExtremes(),c=void 0,p=t.index;if(p||(p=t.index={}),!p[a]){var d={series:[],chart:r,forceOrdinal:!1,getExtremes:function(){return{min:l.dataMin,max:l.dataMax+h}},getGroupPixelWidth:n.getGroupPixelWidth,getTimeTicks:n.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:n.ordinal2lin,getIndexOfPoint:n.getIndexOfPoint,val2lin:n.val2lin};d.ordinal.axis=d,o.series.forEach((function(o){(c={xAxis:d,xData:o.xData.slice(),chart:r,destroyGroupedData:e.noop,getProcessedData:i.prototype.getProcessedData,applyGrouping:i.prototype.applyGrouping}).xData=c.xData.concat(t.getOverscrollPositions()),c.options={dataGrouping:s?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[s.unitName,[s.count]]]}:{enabled:!1}},d.series.push(c),o.processData.apply(c)})),c.closestPointRange!==c.basePointRange&&c.currentDataGrouping&&(d.forceOrdinal=!0),o.ordinal.beforeSetTickPositions.apply({axis:d}),p[a]=d.ordinal.positions}return p[a]},t.prototype.getGroupIntervalFactor=function(t,e,i){var o=(i=i.processedXData).length,n=[],r=this.groupIntervalFactor;if(!r){for(r=0;r<o-1;r++)n[r]=i[r+1]-i[r];n.sort((function(t,e){return t-e})),n=n[Math.floor(o/2)],t=Math.max(t,i[0]),e=Math.min(e,i[o-1]),this.groupIntervalFactor=r=o*n/(e-t)}return r},t.prototype.getIndexOfPoint=function(e,i){var o=this.axis,n=this.positions?this.positions[0]:0,r=o.series[0].points&&o.series[0].points[0]&&o.series[0].points[0].plotX||o.minPixelPadding;
1return 1<o.series.length&&o.series.forEach((function(t){t.points&&h(t.points[0])&&h(t.points[0].plotX)&&t.points[0].plotX<r&&t.points[0].plotX>=c(o.min,-1/0)&&(r=t.points[0].plotX)})),e=(e-r)/(o.translationSlope*(this.slope||o.closestPointRange||this.overscrollPointsRange)),t.findIndexOf(i,n)+e},t.prototype.getOverscrollPositions=function(){var t=this.axis,e=t.options.overscroll,i=this.overscrollPointsRange,o=[],n=t.dataMax;if(h(i))for(;n<=t.dataMax+e;)n+=i,o.push(n);return o},t.prototype.postProcessTickInterval=function(t){var e=this.axis,i=this.slope;return i?e.options.breaks?e.closestPointRange||t:t/(i/e.closestPointRange):t},t}();t.Additions=C}(n||(n={})),n})),e(i,"Series/HLC/HLCPoint.js",[i["Core/Series/SeriesRegistry.js"]],(function(t){var e=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();return function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.close=void 0,e.high=void 0,e.low=void 0,e.options=void 0,e.plotClose=void 0,e.series=void 0,e}return e(i,t),i}(t.seriesTypes.column.prototype.pointClass)})),e(i,"Series/HLC/HLCSeriesDefaults.js",[],(function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">â</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}})),e(i,"Series/HLC/HLCSeries.js",[i["Series/HLC/HLCPoint.js"],i["Series/HLC/HLCSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=i.seriesTypes.column,s=o.extend,a=o.merge;return o=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.yData=void 0,e}return n(i,t),i.prototype.extendStem=function(t,e,i){var o=t[0];t=t[1],"number"==typeof o[2]&&(o[2]=Math.max(i+e,o[2])),"number"==typeof t[2]&&(t[2]=Math.min(i-e,t[2]))},i.prototype.getPointPath=function(t,e){e=e.strokeWidth();var i=t.series,o=e%2/2,n=Math.round(t.plotX)-o,r=Math.round(t.shapeArgs.width/2),s=[["M",n,Math.round(t.yBottom)],["L",n,Math.round(t.plotHigh)]];return null!==t.close&&(t=Math.round(t.plotClose)+o,s.push(["M",n,t],["L",n+r,t]),i.extendStem(s,e/2,t)),s},i.prototype.drawSinglePoint=function(t){var e=t.series,i=e.chart,o=t.graphic;void 0!==t.plotY&&(o||(t.graphic=o=i.renderer.path().add(e.group)),i.styledMode||o.attr(e.pointAttribs(t,t.selected&&"select")),e=e.getPointPath(t,o),o[o?"animate":"attr"]({d:e}).addClass(t.getClassName(),!0))},i.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},i.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},i.prototype.pointAttribs=function(e,i){return delete(e=t.prototype.pointAttribs.call(this,e,i)).fill,e},i.prototype.toYData=function(t){return[t.high,t.low,t.close]},i.prototype.translate=function(){var e=this,i=e.yAxis,o=this.pointArrayMap&&this.pointArrayMap.slice()||[],n=o.map((function(t){return"plot".concat(t.charAt(0).toUpperCase()+t.slice(1))}));n.push("yBottom"),o.push("low"),t.prototype.translate.apply(e),e.points.forEach((function(t){o.forEach((function(o,r){null!==(o=t[o])&&(e.dataModify&&(o=e.dataModify.modifyValue(o)),t[n[r]]=i.toPixels(o,!0))})),t.tooltipPos[1]=t.plotHigh+i.pos-e.chart.plotTop}))},i.defaultOptions=a(r.defaultOptions,e),i}(r),s(o.prototype,{pointClass:t,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}
1,pointValKey:"close"}),i.registerSeriesType("hlc",o),o})),e(i,"Series/OHLC/OHLCPoint.js",[i["Core/Series/SeriesRegistry.js"]],(function(t){var e=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();return function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.open=void 0,e.options=void 0,e.plotOpen=void 0,e.series=void 0,e}return e(i,t),i.prototype.getClassName=function(){return t.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},i.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},i.prototype.resolveColor=function(){t.prototype.resolveColor.call(this),this.resolveUpColor()},i.prototype.getZone=function(){var e=t.prototype.getZone.call(this);return this.resolveUpColor(),e},i.prototype.applyOptions=function(){return t.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},i}(t.seriesTypes.hlc.prototype.pointClass)})),e(i,"Series/OHLC/OHLCSeriesDefaults.js",[],(function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">â</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}})),e(i,"Series/OHLC/OHLCSeries.js",[i["Series/OHLC/OHLCPoint.js"],i["Series/OHLC/OHLCSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){function n(t){var e=(t=t.options).dataGrouping;e&&t.useOhlcData&&"highcharts-navigator-series"!==t.id&&(e.approximation="ohlc")}function r(t){(t=t.options).useOhlcData&&"highcharts-navigator-series"!==t.id&&l(this,{pointValKey:d.prototype.pointValKey,pointArrayMap:d.prototype.pointArrayMap,toYData:d.prototype.toYData})}var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=i.seriesTypes.hlc,h=o.addEvent,l=o.extend,c=o.merge,p=[],d=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(i,t),i.compose=function(t){for(var e=1;e<arguments.length;e++);-1===p.indexOf(t)&&(p.push(t),h(t,"afterSetOptions",n),h(t,"init",r))},i.prototype.getPointPath=function(e,i){var o=t.prototype.getPointPath.call(this,e,i),n=(i=i.strokeWidth())%2/2,r=Math.round(e.plotX)-n,s=Math.round(e.shapeArgs.width/2);return null!==e.open&&(e=Math.round(e.plotOpen)+n,o.push(["M",r,e],["L",r-s,e]),t.prototype.extendStem.call(this,o,i/2,e)),o},i.prototype.pointAttribs=function(e,i){i=t.prototype.pointAttribs.call(this,e,i);var o=this.options;return delete i.fill,!e.options.color&&o.upColor&&e.open<e.close&&(i.stroke=o.upColor),i},i.prototype.toYData=function(t){return[t.open,t.high,t.low,t.close]},i.defaultOptions=c(a.defaultOptions,e),i}(a);return l(d.prototype,{pointClass:t,pointArrayMap:["open","high","low","close"]}),i.registerSeriesType("ohlc",d),d})),e(i,"Series/Candlestick/CandlestickSeriesDefaults.js",[i["Core/Defaults.js"],i["Core/Utilities.js"]],(function(t,e){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}})),e(i,"Series/Candlestick/CandlestickSeries.js",[i["Series/Candlestick/CandlestickSeriesDefaults.js"],i["Core/Defaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=e.defaultOptions,s=(e=i.seriesTypes).column,a=e.ohlc,h=o.merge;return o=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(i,e),i.prototype.pointAttribs=function(t,e){var i=s.prototype.pointAttribs.call(this,t,e),o=this.options,n=t.open<t.close,r=o.lineColor||this.color,a=t.color||this.color;return i["stroke-width"]=o.lineWidth,i.fill=t.options.color||n&&o.upColor||a,i.stroke=t.options.lineColor||n&&o.upLineColor||r,e&&(t=o.states[e],i.fill=t.color||i.fill,i.stroke=t.lineColor||i.stroke,i["stroke-width"]=t.lineWidth||i["stroke-width"]),i},i.prototype.drawPoints=function(){for(var t=this.chart,e=this.yAxis.reversed,i=0,o=this.points;i<o.length;i++){var n=o[i],r=n.graphic,s=!r;if(void 0!==n.plotY){r||(n.graphic=r=t.renderer.path().add(this.group)),this.chart.styledMode||r.attr(this.pointAttribs(n,n.selected&&"select")).shadow(this.options.shadow);var a=r.strokeWidth()%2/2,h=Math.round(n.plotX)-a,l=n.plotOpen,c=n.plotClose,p=Math.min(l,c);l=Math.max(l,c);var d=Math.round(n.shapeArgs.width/2);c=e?l!==n.yBottom:Math.round(p)!==Math.round(n.plotHigh);var u=e?Math.round(p)!==Math.round(n.plotHigh):l!==n.yBottom;p=Math.round(p)+a,l=Math.round(l)+a,(a=[]).push(["M",h-d,l],["L",h-d,p],["L",h+d,p],["L",h+d,l],["Z"],["M",h,p],["L",h,c?Math.round(e?n.yBottom:n.plotHigh):p],["M",h,l],["L",h,u?Math.round(e?n.plotHigh:n.yBottom):l]),r[s?"attr":"animate"]({d:a}).addClass(n.getClassName(),!0)}}},i.defaultOptions=h(a.defaultOptions,r.plotOptions,{tooltip:a.defaultOptions.tooltip},t),i}(a),i.registerSeriesType("candlestick",o),o}
1)),e(i,"Series/Flags/FlagsPoint.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=e.isNumber;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e.ttBelow=!1,e}return i(e,t),e.prototype.isValid=function(){return o(this.y)||void 0===this.y},e.prototype.hasNewShapeType=function(){var t=this.options.shape||this.series.options.shape;return this.graphic&&t&&t!==this.graphic.symbolKey},e}(t.seriesTypes.column.prototype.pointClass)})),e(i,"Series/Flags/FlagsSeriesDefaults.js",[],(function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}})),e(i,"Series/Flags/FlagsSymbols.js",[i["Core/Renderer/RendererRegistry.js"]],(function(t){var e;return function(e){function i(t,e,i,o,n){var r=n&&n.anchorX||t;n=n&&n.anchorY||e;var s=this.circle(r-1,n-1,2,2);return s.push(["M",r,n],["L",t,e+o],["L",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]),s}function o(t,e){t[e+"pin"]=function(i,o,n,r,s){var a=s&&s.anchorX;s=s&&s.anchorY,"circle"===e&&r>n&&(i-=Math.round((r-n)/2),n=r);var h=t[e](i,o,n,r);if(a&&s){var l=a;"circle"===e?l=i+n/2:(i=h[0],n=h[1],"M"===i[0]&&"L"===n[0]&&(l=(i[1]+n[1])/2)),h.push(["M",l,o>s?o:o+r],["L",a,s]),h=h.concat(t.circle(a-1,s-1,2,2))}return h}}var n=[];e.compose=function(e){if(-1===n.indexOf(e)){n.push(e);var r=e.prototype.symbols;r.flag=i,o(r,"circle"),o(r,"square")}var s=t.getRendererType();n.indexOf(s)&&(n.push(s),r=e.prototype.symbols,(e=s.prototype.symbols).circlepin=r.circlepin,e.flag=r.flag.bind(r),e.squarepin=r.squarepin)}}(e||(e={})),e})),e(i,"Series/OnSeriesComposition.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,n=t.prototype,r=e.prototype,s=i.defined,a=i.stableSort;return function(t){function e(t){return r.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,t)}function i(){n.translate.apply(this);var t,e=this,i=e.options,o=e.chart,r=e.points,h=i.onSeries,l=(h=h&&o.get(h))&&h.options.step,c=h&&h.points,p=o.inverted,d=e.xAxis,u=e.yAxis;o=r.length-1,i=i.onKey||"y";var f,g=c&&c.length,m=0;if(h&&h.visible&&g){m=(h.pointXOffset||0)+(h.barW||0)/2;var y=h.currentDataGrouping,v=c[g-1].x+(y?y.totalRange:0);for(a(r,(function(t,e){return t.x-e.x})),i="plot"+i[0].toUpperCase()+i.substr(1);g--&&r[o];){var x=c[g];if((y=r[o]).y=x.y,x.x<=y.x&&void 0!==x[i]){if(y.x<=v&&(y.plotY=x[i],x.x<y.x&&!l&&(f=c[g+1])&&void 0!==f[i])){var b=(y.x-x.x)/(f.x-x.x);y.plotY+=b*(f[i]-x[i]),y.y+=b*(f.y-x.y)}if(g++,0>--o)break}}}r.forEach((function(i,o){if(i.plotX+=m,(void 0===i.plotY||p)&&(0<=i.plotX&&i.plotX<=d.len?p?(i.plotY=d.translate(i.x,0,1,0,1),i.plotX=s(i.y)?u.translate(i.y,0,0,0,1):0):i.plotY=(d.opposite?0:e.yAxis.len)+d.offset:i.shapeArgs={}),(t=r[o-1])&&t.plotX===i.plotX){void 0===t.stackIndex&&(t.stackIndex=0);var n=t.stackIndex+1}i.stackIndex=n})),this.onSeries=h}var o=[];t.compose=function(t){if(-1===o.indexOf(t)){o.push(t);var n=t.prototype;n.getPlotBox=e,n.translate=i}return t},t.getPlotBox=e,t.translate=i}(o||(o={})),o})),e(i,"Series/Flags/FlagsSeries.js",[i["Series/Flags/FlagsPoint.js"],i["Series/Flags/FlagsSeriesDefaults.js"],i["Series/Flags/FlagsSymbols.js"],i["Core/Globals.js"],i["Series/OnSeriesComposition.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s,a,h){var l=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();o=o.noop;var c=r.distribute,p=s.series,d=s.seriesTypes.column,u=h.addEvent,f=h.defined;r=h.extend;var g=h.merge,m=h.objectEach,y=h.wrap;return h=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;
1return e.data=void 0,e.options=void 0,e.points=void 0,e}return l(o,t),o.prototype.animate=function(t){t&&this.setClip()},o.prototype.drawPoints=function(){var t,e=this.points,i=this.chart,o=i.renderer,n=i.inverted,r=this.options,s=r.y,h=this.yAxis,l={},p=[];for(t=e.length;t--;){var d=e[t],u=(n?d.plotY:d.plotX)>this.xAxis.len,v=d.plotX,x=d.stackIndex,b=d.options.shape||r.shape,S=d.plotY;void 0!==S&&(S=d.plotY+s-(void 0!==x&&x*r.stackDistance)),d.anchorX=x?void 0:d.plotX;var C=x?void 0:d.plotY,w="flag"!==b;x=d.graphic,void 0!==S&&0<=v&&!u?(x&&d.hasNewShapeType()&&(x=x.destroy()),x||(x=d.graphic=o.label("",null,null,b,null,null,r.useHTML).addClass("highcharts-point").add(this.markerGroup),d.graphic.div&&(d.graphic.div.point=d),x.isNew=!0),x.attr({align:w?"center":"left",width:r.width,height:r.height,"text-align":r.textAlign}),i.styledMode||x.attr(this.pointAttribs(d)).css(g(r.style,d.style)).shadow(r.shadow),0<v&&(v-=x.strokeWidth()%2),b={y:S,anchorY:C},r.allowOverlapX&&(b.x=v,b.anchorX=d.anchorX),x.attr({text:d.options.title||r.title||"A"})[x.isNew?"attr":"animate"](b),r.allowOverlapX||(l[d.plotX]?l[d.plotX].size=Math.max(l[d.plotX].size,x.width):l[d.plotX]={align:w?.5:0,size:x.width,target:v,anchorX:v}),d.tooltipPos=[v,S+h.pos-i.plotTop]):x&&(d.graphic=x.destroy())}if(!r.allowOverlapX){var A=100;for(m(l,(function(t){t.plotX=t.anchorX,p.push(t),A=Math.max(t.size,A)})),c(p,n?h.len:this.xAxis.len,A),i=0;i<e.length;i++)s=(o=e[i]).plotX,(s=(n=o.graphic)&&l[s])&&n&&(f(s.pos)?n[n.isNew?"attr":"animate"]({x:s.pos+(s.align||0)*s.size,anchorX:o.anchorX}).show().isNew=!1:n.hide().isNew=!0)}r.useHTML&&this.markerGroup&&y(this.markerGroup,"on",(function(t){return a.prototype.on.apply(t.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))}))},o.prototype.drawTracker=function(){var e=this.points;t.prototype.drawTracker.call(this);for(var i=function(t){var i=t.graphic;i&&(t.unbindMouseOver&&t.unbindMouseOver(),t.unbindMouseOver=u(i.element,"mouseover",(function(){0<t.stackIndex&&!t.raised&&(t._y=i.y,i.attr({y:t._y-8}),t.raised=!0);for(var o=0;o<e.length;o++){var n=e[o];n!==t&&n.raised&&n.graphic&&(n.graphic.attr({y:n._y}),n.raised=!1)}})))},o=0;o<e.length;o++)i(e[o])},o.prototype.pointAttribs=function(t,e){var i=this.options,o=t&&t.color||this.color,n=i.lineColor,r=t&&t.lineWidth;return t=t&&t.fillColor||i.fillColor,e&&(t=i.states[e].fillColor,n=i.states[e].lineColor,r=i.states[e].lineWidth),{fill:t||o,stroke:n||o,"stroke-width":r||i.lineWidth||0}},o.prototype.setClip=function(){p.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},o.compose=i.compose,o.defaultOptions=g(d.defaultOptions,e),o}(d),n.compose(h),r(h.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:t,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:o,init:p.prototype.init}),s.registerSeriesType("flags",h),h})),e(i,"Core/Chart/StockChart.js",[i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/FormatUtilities.js"],i["Core/Defaults.js"],i["Stock/Navigator/NavigatorDefaults.js"],i["Stock/RangeSelector/RangeSelectorDefaults.js"],i["Stock/Scrollbar/ScrollbarDefaults.js"],i["Core/Series/Series.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,o,n,r,s,a,h,l){function c(t,e){return"xAxis"===t?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===t?{labels:{y:-2},opposite:C(e.opposite,!0),showLastLabel:!(!e.categories&&"category"!==e.type),title:{text:null}}:{}}function p(t,e){return"xAxis"===t?(t={type:"datetime",categories:void 0},C(e.navigator&&e.navigator.enabled,n.enabled,!0)&&(t.startOnTick=!1,t.endOnTick=!1),t):{}}var d=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),u=i.format,f=o.getOptions;i=l.addEvent;var g=l.clamp,m=l.defined,y=l.extend,v=l.find,x=l.isNumber,b=l.isString,S=l.merge,C=l.pick,w=l.splat;return l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.init=function(e,i){var o=f(),a=e.xAxis,h=e.yAxis,l=C(e.navigator&&e.navigator.enabled,n.enabled,!0);e.xAxis=e.yAxis=void 0,l=S({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:l},scrollbar:{enabled:C(s.enabled,!0)},rangeSelector:{enabled:C(r.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:C(o.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},e,{isStock:!0}),e.xAxis=a,e.yAxis=h,l.xAxis=w(e.xAxis||{}).map((function(t,i){return S(c("xAxis",t),o.xAxis,o.xAxis&&o.xAxis[i],t,p("xAxis",e))})),l.yAxis=w(e.yAxis||{}).map((function(t,e){return S(c("yAxis",t),o.yAxis,o.yAxis&&o.yAxis[e],t)})),t.prototype.init.call(this,l,i)},e.prototype.createAxis=function(e,i){return i.axis=S(c(e,i.axis),i.axis,p(e,this.userOptions)),t.prototype.createAxis.call(this,e,i)},e}(e),function(t){t.stockChart=function(e,i,o){return new t(e,i,o)}}(l||(l={})),i(a,"setOptions",(function(t){var e;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(t.plotOptions[this.type]=S(t.plotOptions[this.type],e)))})),i(t,"autoLabelAlign",(function(t){var e=this.chart,i=this.options;e=e._labelPanes=e._labelPanes||{};var o=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&!e[i=i.top+","+i.height]&&o.enabled&&(15===o.x&&(o.x=0),void 0===o.align&&(o.align="right"),e[i]=this,t.align="right",t.preventDefault())})),i(t,"destroy",(function(){var t=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&t._labelPanes&&t._labelPanes[e]===this&&delete t._labelPanes[e]})),i(t,"getPlotLinePath",(function(t){var e,i,o,n,r=this,s=this.isLinked&&!this.series?this.linkedParent.series:this.series,a=r.chart,h=a.renderer,l=r.left,c=r.top,p=[],d=[],u=t.translatedValue,f=t.value,y=t.force;if(a.options.isStock&&!1!==t.acrossPanes&&"xAxis"===r.coll||"yAxis"===r.coll){t.preventDefault(),d=function(t){var e="xAxis"===t?"yAxis":"xAxis";return t=r.options[e],x(t)?[a[e][t]]:b(t)?[a.get(t)]:s.map((function(t){return t[e]}))}
1(r.coll),(r.isXAxis?a.yAxis:a.xAxis).forEach((function(t){if(!m(t.options.id)||-1===t.options.id.indexOf("navigator")){var e=t.isXAxis?"yAxis":"xAxis";e=m(t.options[e])?a[e][t.options[e]]:a[e][0],r===e&&d.push(t)}}));var S=d.length?[]:[r.isXAxis?a.yAxis[0]:a.xAxis[0]];d.forEach((function(t){-1!==S.indexOf(t)||v(S,(function(e){return e.pos===t.pos&&e.len===t.len}))||S.push(t)}));var w=C(u,r.translate(f,void 0,void 0,t.old));x(w)&&(r.horiz?S.forEach((function(t){var s;i=t.pos,n=i+t.len,e=o=Math.round(w+r.transB),"pass"!==y&&(e<l||e>l+r.width)&&(y?e=o=g(e,l,l+r.width):s=!0),s||p.push(["M",e,i],["L",o,n])})):S.forEach((function(t){var s;e=t.pos,o=e+t.len,i=n=Math.round(c+r.height-w),"pass"!==y&&(i<c||i>c+r.height)&&(y?i=n=g(i,c,c+r.height):s=!0),s||p.push(["M",e,i],["L",o,n])}))),t.path=0<p.length?h.crispPolyLine(p,t.lineWidth||1):null}})),h.prototype.crispPolyLine=function(t,e){for(var i=0;i<t.length;i+=2){var o=t[i],n=t[i+1];o[1]===n[1]&&(o[1]=n[1]=Math.round(o[1])-e%2/2),o[2]===n[2]&&(o[2]=n[2]=Math.round(o[2])+e%2/2)}return t},i(t,"afterHideCrosshair",(function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())})),i(t,"afterDrawCrosshair",(function(t){var e,i;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&x(this.min)&&x(this.max)){var o=this.chart,n=this.logarithmic,r=this.crosshair.label,s=this.horiz,a=this.opposite,h=this.left,l=this.top,c=this.crossLabel,p=r.format,d="",f="inside"===this.options.tickPosition,g=!1!==this.crosshair.snap,m=0,v=t.e||this.cross&&this.cross.e;t=t.point;var b=this.min,S=this.max;n&&(b=n.lin2log(b),S=n.lin2log(S)),n=s?"center":a?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center",c||(c=this.crossLabel=o.renderer.label("",0,void 0,r.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(t&&t.series?t.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:r.align||n,padding:C(r.padding,8),r:C(r.borderRadius,3),zIndex:2}).add(this.labelGroup),o.styledMode||c.attr({fill:r.backgroundColor||t&&t.series&&t.series.color||"#666666",stroke:r.borderColor||"","stroke-width":r.borderWidth||0}).css(y({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},r.style||{}))),s?(n=g?(t.plotX||0)+h:v.chartX,l+=a?0:this.height):(n=a?this.width+h:0,l=g?(t.plotY||0)+l:v.chartY),p||r.formatter||(this.dateTime&&(d="%b %d, %Y"),p="{value"+(d?":"+d:"")+"}"),d=g?this.isXAxis?t.x:t.y:this.toValue(s?v.chartX:v.chartY),g=t&&t.series?t.series.isPointInside(t):x(d)&&d>b&&d<S,v="",p?v=u(p,{value:d},o):r.formatter&&x(d)&&(v=r.formatter.call(this,d)),c.attr({text:v,x:n,y:l,visibility:g?"inherit":"hidden"}),r=c.getBBox(),x(c.y)&&(s?(f&&!a||!f&&a)&&(l=c.y-r.height):l=c.y-r.height/2),s?(e=h-r.x,i=h+this.width-r.x):(e="left"===this.labelAlign?h:0,i="right"===this.labelAlign?h+this.width:o.chartWidth),c.translateX<e&&(m=e-c.translateX),c.translateX+r.width>=i&&(m=-(c.translateX+r.width-i)),c.attr({x:n+m,y:l,anchorX:s?n:this.opposite?0:o.chartWidth,anchorY:s?this.opposite?o.chartHeight:0:l+r.height/2})}})),a.prototype.forceCropping=function(){var t=this.chart,e=this.options.dataGrouping;return!1!==this.allowDG&&e&&C(e.enabled,t.options.isStock)},i(e,"update",(function(t){"scrollbar"in(t=t.options)&&this.navigator&&(S(!0,this.options.scrollbar,t.scrollbar),this.navigator.update({}),delete t.scrollbar)})),l})),e(i,"masters/modules/stock.src.js",[i["Core/Globals.js"],i["Series/DataModifyComposition.js"],i["Stock/Navigator/Navigator.js"],i["Stock/RangeSelector/RangeSelector.js"],i["Stock/Scrollbar/Scrollbar.js"],i["Core/Axis/OrdinalAxis.js"],i["Series/OHLC/OHLCSeries.js"],i["Series/Flags/FlagsSeries.js"],i["Core/Chart/StockChart.js"]],(function(t,e,i,o,n,r,s,a,h){t.Navigator=i,t.RangeSelector=o,t.Scrollbar=n,t.StockChart=t.stockChart=h.stockChart,e.compose(t.Series,t.Axis,t.Point),a.compose(t.Renderer),i.compose(t.Axis,t.Chart,t.Series),s.compose(t.Series),r.compose(t.Axis,t.Series,t.Chart),o.compose(t.Axis,t.Chart),n.compose(t.Axis)})),e(i,"masters/highstock.src.js",[i["masters/highcharts.src.js"]],(function(t){return t.product="Highstock",t})),i["masters/highstock.src.js"]._modules=i,i["masters/highstock.src.js"]},t.exports?(r.default=r,t.exports=n.document?r(n):r):void 0===(o=function(){return r(n)}.call(e,i,e,t))||(t.exports=o)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.