@clickview/reports 0.65.0-rc.2 → 0.65.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{1103-7bebcdab79-reports.chunk.js → 1103-f00f2b1cad-reports.chunk.js} +1 -1
- package/dist/scripts/1177-d9cc3234cb-reports.chunk.js +1 -0
- package/dist/scripts/1456-986688c70a-reports.chunk.js +1 -0
- package/dist/scripts/1648-c0202be5a3-reports.chunk.js +1 -0
- package/dist/scripts/1934-ca8497c768-reports.chunk.js +2 -0
- package/dist/scripts/2087-c09a16fd33-reports.chunk.js +1 -0
- package/dist/scripts/209-d7cfcffff1-reports.chunk.js +1 -0
- package/dist/scripts/2217-bc17b34274-reports.chunk.js +1 -0
- package/dist/scripts/2476-853769c6f1-reports.chunk.js +1 -0
- package/dist/scripts/2539-8fe62bf66a-reports.chunk.js +1 -0
- package/dist/scripts/2997-330c31814e-reports.chunk.js +1 -0
- package/dist/scripts/312-8b006e92ff-reports.chunk.js +1 -0
- package/dist/scripts/3807-a9d634ce6e-reports.chunk.js +1 -0
- package/dist/scripts/4208-d611e92606-reports.chunk.js +1 -0
- package/dist/scripts/4234-e3c04f41eb-reports.chunk.js +1 -0
- package/dist/scripts/4372-26474a3318-reports.chunk.js +1 -0
- package/dist/scripts/438-df4d3020f2-reports.chunk.js +1 -0
- package/dist/scripts/447-022b598be7-reports.chunk.js +1 -0
- package/dist/scripts/4582-971c083e71-reports.chunk.js +1 -0
- package/dist/scripts/4752-db4247883d-reports.chunk.js +2 -0
- package/dist/scripts/{4752-e271596c05-reports.chunk.js.LICENSE.txt → 4752-db4247883d-reports.chunk.js.LICENSE.txt} +1 -1
- package/dist/scripts/4979-25e8a65112-reports.chunk.js +1 -0
- package/dist/scripts/5051-79c9e3ad7c-reports.chunk.js +1 -0
- package/dist/scripts/5173-cce3b37672-reports.chunk.js +1 -0
- package/dist/scripts/5177-292595a2d2-reports.chunk.js +1 -0
- package/dist/scripts/5802-2125536755-reports.chunk.js +1 -0
- package/dist/scripts/6007-d164e2ab32-reports.chunk.js +1 -0
- package/dist/scripts/6031-89ab31642e-reports.chunk.js +1 -0
- package/dist/scripts/6081-2bbda6cac3-reports.chunk.js +1 -0
- package/dist/scripts/6180-3c8491f0e1-reports.chunk.js +2 -0
- package/dist/scripts/6180-3c8491f0e1-reports.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/6198-189ddde870-reports.chunk.js +1 -0
- package/dist/scripts/645-969e5030af-reports.chunk.js +1 -0
- package/dist/scripts/6545-d5ffc5293f-reports.chunk.js +1 -0
- package/dist/scripts/6811-262c09365b-reports.chunk.js +1 -0
- package/dist/scripts/7058-b380c3d8b8-reports.chunk.js +1 -0
- package/dist/scripts/7183-c3a73229dd-reports.chunk.js +1 -0
- package/dist/scripts/7238-5ba5572d86-reports.chunk.js +1 -0
- package/dist/scripts/7562-a34bebf4aa-reports.chunk.js +1 -0
- package/dist/scripts/7709-82750ee317-reports.chunk.js +1 -0
- package/dist/scripts/7723-21ffbbf913-reports.chunk.js +1 -0
- package/dist/scripts/7925-c6c532c9c4-reports.chunk.js +1 -0
- package/dist/scripts/799-ae90780039-reports.chunk.js +2 -0
- package/dist/scripts/799-ae90780039-reports.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/8087-bb3132fc2d-reports.chunk.js +1 -0
- package/dist/scripts/8393-f0a160ba29-reports.chunk.js +1 -0
- package/dist/scripts/8450-2f283cf85b-reports.chunk.js +1 -0
- package/dist/scripts/8591-4811082ab0-reports.chunk.js +1 -0
- package/dist/scripts/8600-09002ab2ed-reports.chunk.js +2 -0
- package/dist/scripts/8600-09002ab2ed-reports.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/8622-fe924047ed-reports.chunk.js +1 -0
- package/dist/scripts/8989-646937fcdf-reports.chunk.js +1 -0
- package/dist/scripts/9162-5289bb3744-reports.chunk.js +1 -0
- package/dist/scripts/9285-da0904739b-reports.chunk.js +1 -0
- package/dist/scripts/9590-851f1cff62-reports.chunk.js +1 -0
- package/dist/scripts/9661-1886a27af5-reports.chunk.js +1 -0
- package/dist/scripts/9822-ab6512b8e5-reports.chunk.js +1 -0
- package/dist/scripts/9949-af2792970f-reports.chunk.js +1 -0
- package/dist/scripts/bundle-22cef1c1e8.min.js +2 -0
- package/dist/scripts/{bundle-479a8e4743.min.js.LICENSE.txt → bundle-22cef1c1e8.min.js.LICENSE.txt} +1 -1
- package/dist/scripts/polyfills-3db3f009d4.min.js +1 -0
- package/package.json +1 -1
- package/dist/scripts/1177-15635377a5-reports.chunk.js +0 -1
- package/dist/scripts/1456-2e26c515ba-reports.chunk.js +0 -1
- package/dist/scripts/1648-71a130bda9-reports.chunk.js +0 -1
- package/dist/scripts/1934-2a1a62b254-reports.chunk.js +0 -2
- package/dist/scripts/2087-db7c35b5e5-reports.chunk.js +0 -1
- package/dist/scripts/209-d6ac748b34-reports.chunk.js +0 -1
- package/dist/scripts/2217-eb5d4f8908-reports.chunk.js +0 -1
- package/dist/scripts/2476-8076bf61ee-reports.chunk.js +0 -1
- package/dist/scripts/2539-0506dca9b2-reports.chunk.js +0 -1
- package/dist/scripts/2997-071a9945bc-reports.chunk.js +0 -1
- package/dist/scripts/312-16d6e64496-reports.chunk.js +0 -1
- package/dist/scripts/3807-315b28cb3a-reports.chunk.js +0 -1
- package/dist/scripts/4208-09c55c2f6a-reports.chunk.js +0 -1
- package/dist/scripts/4234-a0e238e25e-reports.chunk.js +0 -1
- package/dist/scripts/4372-0ab4485cc2-reports.chunk.js +0 -1
- package/dist/scripts/438-b01d125145-reports.chunk.js +0 -1
- package/dist/scripts/447-0818db2ece-reports.chunk.js +0 -1
- package/dist/scripts/4582-1c48bb7d01-reports.chunk.js +0 -1
- package/dist/scripts/4752-e271596c05-reports.chunk.js +0 -2
- package/dist/scripts/4979-0de3b83b6b-reports.chunk.js +0 -1
- package/dist/scripts/5051-7329f78dd3-reports.chunk.js +0 -1
- package/dist/scripts/5173-18a482e23a-reports.chunk.js +0 -1
- package/dist/scripts/5177-7e1d0e0984-reports.chunk.js +0 -1
- package/dist/scripts/5802-042ef18230-reports.chunk.js +0 -1
- package/dist/scripts/6007-dc4e1b42ba-reports.chunk.js +0 -1
- package/dist/scripts/6031-88c0a3dc69-reports.chunk.js +0 -1
- package/dist/scripts/6081-de96b73672-reports.chunk.js +0 -1
- package/dist/scripts/6180-2d9d2ee04a-reports.chunk.js +0 -2
- package/dist/scripts/6180-2d9d2ee04a-reports.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6198-31e1880518-reports.chunk.js +0 -1
- package/dist/scripts/645-f4c0e36c0e-reports.chunk.js +0 -1
- package/dist/scripts/6545-3de6419e70-reports.chunk.js +0 -1
- package/dist/scripts/6811-71794e032d-reports.chunk.js +0 -1
- package/dist/scripts/7058-0b2d163c6f-reports.chunk.js +0 -1
- package/dist/scripts/7183-6af4540ceb-reports.chunk.js +0 -1
- package/dist/scripts/7238-afd4d7a5f7-reports.chunk.js +0 -1
- package/dist/scripts/7562-30501cce36-reports.chunk.js +0 -1
- package/dist/scripts/7709-632b11f5ab-reports.chunk.js +0 -1
- package/dist/scripts/7723-f15da81dd1-reports.chunk.js +0 -1
- package/dist/scripts/7925-9b54620187-reports.chunk.js +0 -1
- package/dist/scripts/799-c98f8ff1d6-reports.chunk.js +0 -2
- package/dist/scripts/799-c98f8ff1d6-reports.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/8087-b1408ac345-reports.chunk.js +0 -1
- package/dist/scripts/8393-cd38f79363-reports.chunk.js +0 -1
- package/dist/scripts/8450-c5c5b5b57a-reports.chunk.js +0 -1
- package/dist/scripts/8591-c96a49d49c-reports.chunk.js +0 -1
- package/dist/scripts/8600-2f8dcf92bc-reports.chunk.js +0 -2
- package/dist/scripts/8600-2f8dcf92bc-reports.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/8622-a526901062-reports.chunk.js +0 -1
- package/dist/scripts/8989-199e7a8d3e-reports.chunk.js +0 -1
- package/dist/scripts/9162-ce2cddc237-reports.chunk.js +0 -1
- package/dist/scripts/9285-7acf1eaabb-reports.chunk.js +0 -1
- package/dist/scripts/9590-81a5b2980a-reports.chunk.js +0 -1
- package/dist/scripts/9661-6ade006cac-reports.chunk.js +0 -1
- package/dist/scripts/9822-ee8e6a3e3e-reports.chunk.js +0 -1
- package/dist/scripts/9949-5855447007-reports.chunk.js +0 -1
- package/dist/scripts/bundle-479a8e4743.min.js +0 -2
- package/dist/scripts/polyfills-1fd2233039.min.js +0 -1
- /package/dist/scripts/{1934-2a1a62b254-reports.chunk.js.LICENSE.txt → 1934-ca8497c768-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8839-3640cb49a4-reports.chunk.js → 8839-105209cac1-reports.chunk.js} +0 -0
- /package/dist/scripts/{9059-91926c7a19-reports.chunk.js → 9059-b5cd91bd18-reports.chunk.js} +0 -0
- /package/dist/scripts/{9647-42a23afc61-reports.chunk.js → 9647-f0c111d3f0-reports.chunk.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[312],{70312:function(t,e,i){var o,s;"undefined"!=typeof self&&self,t.exports=(o=i(32735),s=i(72306),function(t){function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){"use strict";function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},o.apply(this,arguments)}function s(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),n=i.n(r),a=i(2),h=i.n(a),l="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,c=Object(r.forwardRef)((function(t,e){var i=Object(r.useRef)(),a=Object(r.useRef)();return l((function(){function e(){var e=t.highcharts||h.a,o=t.constructorType||"chart";e?e[o]?t.options?a.current=e[o](i.current,t.options,t.callback?t.callback:void 0):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(a.current){if(!1!==t.allowChartUpdate)if(!t.immutable&&a.current){var o;(o=a.current).update.apply(o,[t.options].concat(s(t.updateArgs||[!0,!0])))}else e()}else e()})),l((function(){return function(){a.current&&(a.current.destroy(),a.current=null)}}),[]),Object(r.useImperativeHandle)(e,(function(){return{get chart(){return a.current},container:i}}),[]),n.a.createElement("div",o({},t.containerProps,{ref:i}))}));e.default=Object(r.memo)(c)},function(t,e){t.exports=o},function(t,e){t.exports=s}]))},72306:function(t,e,i){var o,s,r;s="undefined"!=typeof window?window:this,r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i))}var i={};return e(i,"Core/Globals.js",[],(function(){var e,i=void 0!==t?t:"undefined"!=typeof window?window:{};return function(t){t.SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="9.1.0",t.win=i,t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"",t.isChrome=-1!==t.userAgent.indexOf("Chrome"),t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.hasBidiBug=t.isFirefox&&4>parseInt(t.userAgent.split("Firefox/")[1],10),t.hasTouch=!!t.win.TouchEvent,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,i),t.win.removeEventListener("testPassive",t.noop,i))}return e}(),t.charts=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={}}(e||(e={})),e})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(t,i,o,s){var r=i?"Highcharts error":"Highcharts warning";32===t&&(t=r+": Deprecated member");var n=h(t),a=n?r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(void 0!==s){var l="";n&&(a+="?"),m(s,(function(t,e){l+="\n - "+e+": "+t,n&&(a+=encodeURI(e)+"="+encodeURI(t))})),a+=l}v(Highcharts,"displayError",{chart:o,code:t,message:a,params:s},(function(){if(i)throw Error(a);C.console&&-1===e.messages.indexOf(a)&&console.warn(a)})),e.messages.push(a)}function i(t,e){return parseInt(t,e||10)}function o(t){return"string"==typeof t}function s(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&s(t))}function n(t){return r(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!r(t,!0)||n(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 s;return o(e)?l(i)?t.setAttribute(e,i):t&&t.getAttribute&&((s=t.getAttribute(e))||"class"!==e||(s=t.getAttribute(e+"Name"))):m(e,(function(e,i){t.setAttribute(i,e)})),s}function d(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function p(){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&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),d(e.style,i)}function f(t,e,i,o,s){return t=k.createElement(t),e&&d(t,e),s&&u(t,{padding:"0",border:"none",margin:"0"}),i&&u(t,i),o&&o.appendChild(t),t}function g(t,e){return 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 s(i,o){var s=e.removeEventListener||t.removeEventListenerPolyfill;s&&s.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--;)s(i,t[i][o].fn)}))}}var n="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(n,"hcEvents")){var a=n.hcEvents;i?(n=a[i]||[],o?(a[i]=n.filter((function(t){return o!==t.fn})),s(i,o)):(r(a),a[i]=[])):(r(a),delete n.hcEvents)}}function v(e,i,o,s){if(o=o||{},k.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var r=k.createEvent("Events");r.initEvent(i,!0,!0),o=d(r,o),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent(i,o)}else if(e.hcEvents){o.target||d(o,{preventDefault:function(){o.defaultPrevented=!0},target:e,type:i}),r=[];for(var n=e,a=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(r.length&&(a=!0),r.unshift.apply(r,n.hcEvents[i])),n=Object.getPrototypeOf(n);a&&r.sort((function(t,e){return t.order-e.order})),r.forEach((function(t){!1===t.fn.call(e,o)&&o.preventDefault()}))}s&&!o.defaultPrevented&&s.call(e,o)}var x,b=t.charts,k=t.doc,C=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var S=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]};m({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(i,o){t[o]=function(t){var s;return e(32,!1,void 0,((s={})["Highcharts."+o]="use Array."+i,s)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}}));var w,M=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(w?"":t)+e++}}();return C.jQuery&&(C.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):b[c(this[0],"data-highcharts-chart")]}),{addEvent:function(e,i,o,s){void 0===s&&(s={});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 n=e.addEventListener||t.addEventListenerPolyfill;return n&&n.call(e,i,o,!!t.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==i.indexOf("touch"):s.passive,capture:!1}),r[i]||(r[i]=[]),r[i].push({fn:o,order:"number"==typeof s.order?s.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(s,n){r(e[n],!0)&&!e.nodeType&&i[n]?(s=t(e[n],i[n]),Object.keys(s).length&&(o[n]=s)):(r(e[n])||e[n]!==i[n])&&(o[n]=e[n])})),o},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:g,createElement:f,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){x||(x=f("div")),t&&x.appendChild(t),x.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:e,extend:d,extendClass:function(t,e){var i=function(){};return d(i.prototype=new t,e),i},find:S,fireEvent:v,getMagnitude:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},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===C)return}return e},getStyle:function o(s,r,n){var a=t.getStyle||o;if("width"===r)return r=Math.min(s.offsetWidth,s.scrollWidth),(n=s.getBoundingClientRect&&s.getBoundingClientRect().width)<r&&n>=r-1&&(r=Math.floor(n)),Math.max(0,r-(a(s,"padding-left",!0)||0)-(a(s,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(a(s,"padding-top",!0)||0)-(a(s,"padding-bottom",!0)||0));if(C.getComputedStyle||e(27,!0),s=C.getComputedStyle(s,void 0)){var h=s.getPropertyValue(r);p(n,"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:s,isClass:a,isDOMElement:n,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,s){"__proto__"!==s&&"constructor"!==s&&(!r(i,!0)||a(i)||n(i)?t[s]=e[s]:t[s]=o(t[s]||{},i))})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var s=e.length;for(t=0;t<s;t++)i=o(i,e[t]);return i},normalizeTickInterval:function(t,e,i,o,s){var r=t,n=t/(i=p(i,1));for(e||(e=s?[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],!(s&&r*i>=t||!s&&n<=(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=k.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(C.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(C.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:p,pInt:i,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:y,splat:function(t){return s(t)?t:[t]},stableSort:function(t,e){var i,o,s=t.length;for(o=0;o<s;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<s;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:M,useSerialIds:function(t){return w=p(t,w)},wrap:function(t,e,i){var o=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,s=this;return s.proceed=function(){o.apply(s,arguments.length?arguments:e)},t.unshift(o),t=i.apply(this,t),s.proceed=null,t}}}})),e(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.isNumber,o=e.merge,s=e.pInt;return e=function(){function e(i){return this.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[s(t[1]),s(t[2]),s(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[s(t[1]),s(t[2]),s(t[3]),1]}}],this.rgba=[],t.Color!==e?new t.Color(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return new e(t)},e.prototype.init=function(t){var i,o;if((this.input=t=e.names[t&&t.toLowerCase?t.toLowerCase():""]||t)&&t.stops)this.stops=t.stops.map((function(t){return new e(t[1])}));else{if(t&&t.charAt&&"#"===t.charAt()){var s=t.length;t=parseInt(t.substr(1),16),7===s?i=[(16711680&t)>>16,(65280&t)>>8,255&t,1]:4===s&&(i=[(3840&t)>>4|(3840&t)>>8,(240&t)>>4|240&t,(15&t)<<4|15&t,1])}if(!i)for(o=this.parsers.length;o--&&!i;){var r=this.parsers[o];(s=r.regex.exec(t))&&(i=r.parse(s))}}this.rgba=i||[]},e.prototype.get=function(t){var e=this.input,s=this.rgba;if(void 0!==this.stops){var r=o(e);r.stops=[].concat(r.stops),this.stops.forEach((function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]}))}else r=s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":e;return r},e.prototype.brighten=function(t){var e,o=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(e=0;3>e;e++)o[e]+=s(255*t),0>o[e]&&(o[e]=0),255<o[e]&&(o[e]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var i=this.rgba,o=t.rgba;return o.length&&i&&i.length?((t=1!==o[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(o[0]+(i[0]-o[0])*(1-e))+","+Math.round(o[1]+(i[1]-o[1])*(1-e))+","+Math.round(o[2]+(i[2]-o[2])*(1-e))+(t?","+(o[3]+(i[3]-o[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e}(),t.Color=e,t.color=e.parse,e})),e(i,"Core/Color/Palette.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",neutralColor80:"#333333",neutralColor60:"#666666",neutralColor40:"#999999",neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}})),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.win,o=e.defined,s=e.error,r=e.extend,n=e.isObject,a=e.merge,h=e.objectEach,l=e.pad,c=e.pick,d=e.splat,p=e.timeUnits;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]()},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?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=c(t&&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,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,i,o,s,r,n){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(a);a+=h;var l=this.getTimezoneOffset(a);h!==l?a+=l-h:h-36e5!==this.getTimezoneOffset(a-36e5)||t.isSafari||(a-=36e5)}else a=new this.Date(e,i,c(o,1),c(s,0),c(r,0),c(n,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,o=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(o)return function(t){return 6e4*-o.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,i,s){if(!o(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var n=this,a=new this.Date(i),d=this.get("Hours",a),p=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[p]:y[p].substr(0,3),A:y[p],d:l(u),e:l(u,2," "),w:p,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(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get("Minutes",a)),p:12>d?"AM":"PM",P:12>d?"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(n,i):t)})),s?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return n(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,s){var n,a=this,h=[],l={},d=new a.Date(e),u=t.unitRange,f=t.count||1;if(s=c(s,1),o(e)){if(a.set("Milliseconds",d,u>=p.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),u>=p.second&&a.set("Seconds",d,u>=p.minute?0:f*Math.floor(a.get("Seconds",d)/f)),u>=p.minute&&a.set("Minutes",d,u>=p.hour?0:f*Math.floor(a.get("Minutes",d)/f)),u>=p.hour&&a.set("Hours",d,u>=p.day?0:f*Math.floor(a.get("Hours",d)/f)),u>=p.day&&a.set("Date",d,u>=p.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),u>=p.month){a.set("Month",d,u>=p.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}u>=p.year&&a.set("FullYear",d,g-g%f),u===p.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+s+(g<s?-7:0))),g=a.get("FullYear",d),s=a.get("Month",d);var m=a.get("Date",d),y=a.get("Hours",d);for(e=d.getTime(),!a.variableTimezone&&a.useUTC||!o(i)||(n=i-e>4*p.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=d.getTime(),d=1;e<i;)h.push(e),e=u===p.year?a.makeTime(g+d*f,0):u===p.month?a.makeTime(g,s+d*f):!n||u!==p.day&&u!==p.week?n&&u===p.hour&&1<f?a.makeTime(g,s,m,y+d*f):e+u*f:a.makeTime(g,s,m+d*f*(u===p.day?1:7)),d++;h.push(e),u<=p.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}(),t.Time=e,t.Time})),e(i,"Core/Options.js",[i["Core/Globals.js"],i["Core/Color/Color.js"],i["Core/Color/Palette.js"],i["Core/Time.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){var r=t.isTouchDevice,n=t.svg;e=e.parse;var a=s.merge,h={colors:i.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:{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:i.highlightColor80,backgroundColor:i.backgroundColor,plotBorderColor:i.neutralColor20},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:i.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:i.neutralColor40,borderRadius:0,navigation:{activeColor:i.highlightColor100,inactiveColor:i.neutralColor20},itemStyle:{color:i.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:i.neutralColor100},itemHiddenStyle:{color:i.neutralColor20},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:i.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n,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:"",padding:8,snap:r?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(i.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:i.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:i.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};h.chart.styledMode=!1;var l=new o(a(h.global,h.time));return{defaultOptions:h,defaultTime:l,getOptions:function(){return h},setOptions:function(e){return a(!0,h,e),(e.time||e.global)&&(t.time?t.time.update(a(h.global,h.time,e.global,e.time)):t.time=l),h}}})),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,s=e.win,r=i.isNumber,n=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 s=0;s<t.length;s++){for(var n=e[s],a=t[s],h=[],l=0;l<a.length;l++){var c=n[l],d=a[l];r(c)&&r(d)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=c+i*(d-c):h[l]=d}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,n=r.options,a=function(t){return!a.stopped&&r.step(t)},h=s.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 n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,i=this.options,o=this.elem,s=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;n(a,(function(t){!0!==t&&(h=!1)})),h&&s&&s.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<p;){var i=t[0],o=e[p-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 s(t,e){for(;t.length<p;)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 n=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(n&&a&&a.length){for(t=0;t<n.length;t++){if(n[t]===a[0]){var c=t;break}if(n[0]===a[a.length-n.length+t]){c=t;var d=!0;break}if(n[n.length-1]===a[a.length-n.length+t]){c=n.length-t;break}}void 0===c&&(e=[])}if(e.length&&r(c)){var p=i.length+c*l;d?(o(e,i),s(i,e)):(o(i,e),s(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),null,!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 s=e.defined,r=e.getStyle,n=e.isArray,a=e.isNumber,h=e.isObject,l=e.merge,c=e.objectEach,d=e.pick;return{animate:function(e,i,s){var d,p,u,f="";if(!h(s)){var g=arguments;s={duration:g[2],easing:g[3],complete:g[4]}}a(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=l(i),c(i,(function(a,h){o(e,h),u=new t(e,s,h),p=void 0,"d"===h&&n(i.d)?(u.paths=u.initPath(e,e.pathArray,i.d),u.toD=i.d,d=0,p=1):e.attr?d=e.attr(h):(d=parseFloat(r(e,h))||0,"opacity"!==h&&(f="px")),p||(p=a),"string"==typeof p&&p.match("px")&&(p=p.replace(/px/g,"")),u.run(d,p,f)}))},animObject:i,getDeferredAnimation:function(t,e,o){var r=i(e),n=0,a=0;return(o?[o]:t.series).forEach((function(t){t=i(t.options.animation),n=e&&s(e.defer)?r.defer:Math.max(n,t.duration+t.defer),a=Math.min(r.duration,t.duration)})),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-a),duration:Math.min(n,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=d(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,s=e.createElement,r=e.discardElement,n=e.error,a=e.isString,h=e.objectEach,l=e.splat,c=!1;try{c=!!(new DOMParser).parseFromString("","text/html")}catch(t){}return function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return h(t,(function(i,o){var s=!0;-1===e.allowedAttributes.indexOf(o)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(s=a(i)&&e.allowedReferences.some((function(t){return 0===i.indexOf(t)}))),s||(n("Highcharts warning: Invalid attribute '"+o+"' in config"),delete t[o])})),t},e.setElementHTML=function(t,i){t.innerHTML="",i&&new e(i).addToDOM(t)},e.prototype.addToDOM=function(s){return function s(r,a){var c;return l(r).forEach((function(r){var l=r.tagName,d=r.textContent?t.doc.createTextNode(r.textContent):void 0;if(l)if("#text"===l)var p=d;else if(-1!==e.allowedTags.indexOf(l)){l=t.doc.createElementNS("svg"===l?i:a.namespaceURI||i,l);var u=r.attributes||{};h(r,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"textContent"!==e&&(u[e]=t)})),o(l,e.filterUserAttributes(u)),d&&l.appendChild(d),s(r.children||[],l),p=l}else n("Highcharts warning: Invalid tagName '"+l+"' in config");p&&a.appendChild(p),c=p})),c}(this.nodes,s)},e.prototype.parseMarkup=function(t){var e=[];if(c)t=(new DOMParser).parseFromString(t,"text/html");else{var i=s("div");i.innerHTML=t,t={body:i}}var o=function(t,e){var i=t.nodeName.toLowerCase(),s={tagName:i};if("#text"===i){if(i=t.textContent||"",/^[\s]*$/.test(i))return;s.textContent=i}if(i=t.attributes){var r={};[].forEach.call(i,(function(t){r[t.name]=t.value})),s.attributes=r}if(t.childNodes.length){var n=[];[].forEach.call(t.childNodes,(function(t){o(t,n)})),n.length&&(s.children=n)}e.push(s)};return[].forEach.call(t.body.childNodes,(function(t){return o(t,e)})),i&&r(i),e},e.allowedTags="a 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 thead tbody tspan td th tr u ul #text".split(" "),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 patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e}()})),e(i,"Core/FormatUtilities.js",[i["Core/Options.js"],i["Core/Utilities.js"]],(function(t,e){function i(t,e,i,s){t=+t||0,e=+e;var r=o.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),d=e;if(-1===e)e=Math.min(l,20);else if(n(e)){if(e&&c[1]&&0>c[1]){var p=e+ +c[1];0<=p?(c[0]=(+c[0]).toExponential(p).split("e")[0],e=p):(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;p=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var u=3<(l=String(h(p))).length?l.length%3:0;return i=a(i,r.decimalPoint),s=a(s,r.thousandsSep),t=(0>t?"-":"")+(u?l.substr(0,u)+s:""),t=0>+c[1]&&!d?"0":t+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+s),e&&(t+=i+p.slice(-e)),c[1]&&0!=+t&&(t+="e"+c[1]),t}var o=t.defaultOptions,s=t.defaultTime,r=e.getNestedProperty,n=e.isNumber,a=e.pick,h=e.pInt;return{dateFormat:function(t,e,i){return s.dateFormat(t,e,i)},format:function(t,e,n){var a="{",h=!1,l=/f$/,c=/\.([0-9])/,d=o.lang,p=n&&n.time||s;n=n&&n.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=n(a,m,d.decimalPoint,-1<g.indexOf(",")?d.thousandsSep:""))}else a=p.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/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){var n=t.animate,a=t.animObject,h=t.stop,l=o.deg2rad,c=o.doc,d=o.noop,p=o.svg,u=o.SVG_NS,f=o.win,g=r.addEvent,m=r.attr,y=r.createElement,v=r.css,x=r.defined,b=r.erase,k=r.extend,C=r.fireEvent,S=r.isArray,w=r.isFunction,M=r.isNumber,T=r.isString,A=r.merge,P=r.objectEach,O=r.pick,L=r.pInt,E=r.syncTimeout,D=r.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=u,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=O(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),this.parentInverted=t&&t.inverted,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,s,r,n={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||T(i))&&(this.alignTo=o=i||"renderer",b(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),i=O(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?s=1:"center"===o&&(s=2),s&&(a+=(i.width-(t.width||0))/s),n[e?"translateX":"x"]=Math.round(a),"bottom"===l?r=1:"middle"===l&&(r=2),r&&(h+=(i.height-(t.height||0))/r),n[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](n),this.placed=!0,this.alignAttr=n,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=a(O(e,this.renderer.globalAnimation,!0));return e=s.defer,O(c.hidden,c.msHidden,c.webkitHidden,!1)&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),E((function(){o.element&&n(o,t,s)}),e)):(this.attr(t,void 0,i),P(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 i=t.split(" ");if(t=i[i.length-1],(i=i[0])&&"none"!==i&&o.svg){this.fakeTS=!0,this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*Number(e)+i})),this.removeTextOutline();var s=c.createElementNS(u,"tspan");m(s,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":i,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),s.appendChild(e)}));var r=c.createElementNS(u,"tspan");r.textContent="",["x","y"].forEach((function(t){var i=e.getAttribute(t);i&&r.setAttribute(t,i)})),s.appendChild(r),e.insertBefore(s,e.firstChild)}},t.prototype.attr=function(t,e,i,o){var s,r,n,a=this.element,l=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,a):(P(t,(function(e,i){r=!1,o||h(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(t),s=!0),r=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),r||((n=this[i+"Setter"]||this._defaultSetter).call(this,e,i,a),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,n))}),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),x(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,o){var s,r,n,a,h,l,c,d,p,u,f,g=this.renderer,m=[];C(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],h=g.gradients,l=t.stops,p=o.radialReference,S(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&p&&!x(n.gradientUnits)&&(a=n,n=A(n,g.getRadialAttr(p,a),{gradientUnits:"userSpaceOnUse"})),P(n,(function(t,e){"id"!==e&&m.push(e,t)})),P(l,(function(t){m.push(t)})),m=m.join(","),h[m])u=h[m].attr("id");else{n.id=u=D();var y=h[m]=g.createElement(r).attr(n).add(g.defs);y.radAttr=a,y.stops=[],l.forEach((function(t){0===t[1].indexOf("rgba")?(s=i.parse(t[1]),c=s.get("rgb"),d=s.get("a")):(c=t[1],d=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(y),y.stops.push(t)}))}f="url("+g.url+"#"+u+")",o.setAttribute(e,f),o.gradient=m,t.toString=function(){return f}}}))},t.prototype.css=function(t){var e=this.styles,i={},o=this.element,s=["textOutline","textOverflow","width"],r="",n=!e;if(t&&t.color&&(t.fill=t.color),e&&P(t,(function(t,o){e&&e[o]!==t&&(i[o]=t,n=!0)})),n){if(e&&(t=k(e,i)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&t.width)var a=this.textWidth=L(t.width);if(this.styles=t,a&&!p&&this.renderer.forExport&&delete t.width,o.namespaceURI===this.SVG_NS){var h=function(t,e){return"-"+e.toLowerCase()};P(t,(function(t,e){-1===s.indexOf(e)&&(r+=e.replace(/([A-Z])/g,h)+":"+t+";")})),r&&m(o,"style",r)}else v(o,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&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]=""+L(i[t])*O(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,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,h(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.id)&&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();s&&s.div&&0===s.div.childNodes.length;)e=s.parentGroup,t.safeRemoveChild(s.div),delete s.div,s=e;t.alignTo&&b(i.alignedObjects,t),P(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.destroyTextPath=function(t,e){var i=t.getElementsByTagName("text")[0];if(i){if(i.removeAttribute("dx"),i.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&i.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)i.appendChild(t[0]);i.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},t.prototype.dSetter=function(t,e,i){S(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:O(t,150),complete:function(){e.attr({y:-9999}).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.renderer,s=this.element,r=this.styles,n=this.textStr,a=o.cache,h=o.cacheKeys,c=s.namespaceURI===this.SVG_NS;i=O(i,this.rotation,0);var d,p=o.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):r&&r.fontSize;if(x(n)){var u=n.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0")),u+=["",i,p,this.textWidth,r&&r.textOverflow,r&&r.fontWeight].join()}if(u&&!e&&(d=a[u]),!d){if(c||o.forExport){try{var f=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&v(e,{display:t})};w(f)&&f("none"),d=s.getBBox?k({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight},w(f)&&f("")}catch(t){}(!d||0>d.width)&&(d={width:0,height:0})}else d=this.htmlGetBBox();if(o.isSVG&&(e=d.width,o=d.height,c&&(d.height=o={"11px,17":14,"13px,20":16}[r&&r.fontSize+","+Math.round(o)]||o),i&&(r=i*l,d.width=Math.abs(o*Math.sin(r))+Math.abs(e*Math.cos(r)),d.height=Math.abs(o*Math.cos(r))+Math.abs(e*Math.sin(r)))),u&&0<d.height){for(;250<h.length;)delete a[h.shift()];a[u]||h.push(u),a[u]=d}}return d},t.prototype.getStyle=function(t){return f.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?y(e):c.createElementNS(this.SVG_NS,e),this.renderer=t,C(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=g(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(T(t)?new RegExp("(^| )"+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,i){var o=this.element,s=this.text?this.text.element:o,r={textAnchor:"text-anchor"},n=!1,a=this.textPathWrapper,h=!a;i=A(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i);var l=e.filterUserAttributes(i.attributes);if(t&&i&&i.enabled){a&&null===a.element.parentNode?(h=!0,a=a.destroy()):a&&this.removeTextOutline.call(a.parentGroup),this.options&&this.options.padding&&(l.dx=-this.options.padding),a||(this.textPathWrapper=a=this.renderer.createElement("textPath"),n=!0);var c=a.element;if((i=t.element.getAttribute("id"))||t.element.setAttribute("id",i=D()),h)for(s.setAttribute("y",0),M(l.dx)&&s.setAttribute("x",-l.dx),t=[].slice.call(s.childNodes),h=0;h<t.length;h++){var p=t[h];p.nodeType!==Node.TEXT_NODE&&"tspan"!==p.nodeName||c.appendChild(p)}n&&a&&a.add({element:s}),c.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),x(l.dy)&&(c.parentNode.setAttribute("dy",l.dy),delete l.dy),x(l.dx)&&(c.parentNode.setAttribute("dx",l.dx),delete l.dx),P(l,(function(t,e){c.setAttribute(r[e]||e,t)})),o.removeAttribute("transform"),this.removeTextOutline.call(a),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=d}else a&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(o,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},t.prototype.shadow=function(t,e,i){var o,r=[],n=this.element,a=this.oldShadowOptions,h={color:s.neutralColor100,offsetX:1,offsetY:1,opacity:.15,width:3},l=!1;if(!0===t?o=h:"object"==typeof t&&(o=k(h,t)),o&&(o&&a&&P(o,(function(t,e){t!==a[e]&&(l=!0)})),l&&this.destroyShadows(),this.oldShadowOptions=o),o){if(!this.shadows){var c=o.opacity/o.width,d=this.parentInverted?"translate(-1,-1)":"translate("+o.offsetX+", "+o.offsetY+")";for(h=1;h<=o.width;h++){var p=n.cloneNode(!1),u=2*o.width+1-2*h;m(p,{stroke:t.color||s.neutralColor100,"stroke-opacity":c*h,"stroke-width":u,transform:d,fill:"none"}),p.setAttribute("class",(p.getAttribute("class")||"")+" highcharts-shadow"),i&&(m(p,"height",Math.max(m(p,"height")-u,0)),p.cutHeight=u),e?e.element.appendChild(p):n.parentNode&&n.parentNode.insertBefore(p,n),r.push(p)}this.shadows=r}}else this.destroyShadows();return this},t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,i,o){this[i]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",o),o.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===e&&this.hasStroke?(o.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(o.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},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=L(t);else if(""!==t){var i=c.createElementNS(u,"rect");m(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]=O(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]||c.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(O(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 s=o.length;s--;)i.call(o[s],"height"===t?Math.max(e-(o[s].cutHeight||0),0):"d"===t?this.d:e,t,o[s])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,i=this.inverted,o=this.rotation,s=this.matrix,r=this.element,n=this.translateX||0,a=this.translateY||0;i&&(n+=this.width,a+=this.height),n=["translate("+n+","+a+")"],x(s)&&n.push("matrix("+s.join(",")+")"),i?n.push("rotate(90) scale(-1,1)"):o&&n.push("rotate("+o+" "+O(this.rotationOriginX,r.getAttribute("x"),0)+" "+O(this.rotationOriginY,r.getAttribute("y")||0)+")"),(x(t)||x(e))&&n.push("scale("+O(t,1)+" "+O(e,1)+")"),n.length&&r.setAttribute("transform",n.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,s=(o||i).element||i.box,r=this.element;i=s===i.box;var n,a=!1,h=this.added;if(x(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):x(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&o&&(o.handleZ=!0),n=(e=s.childNodes).length-1;0<=n&&!a;n--){h=(o=e[n]).getAttribute("data-z-index");var l=!x(h);o!==r&&(0>t&&l&&!i&&!n?(s.insertBefore(r,e[n]),a=!0):(L(h)<=t||l&&(!x(t)||0<=t))&&(s.insertBefore(r,e[n+1]||null),a=!0))}a||(s.insertBefore(r,e[i?3:0]||null),a=!0)}return a},t}(),t.prototype["stroke-widthSetter"]=t.prototype.strokeSetter,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/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e){function i(t,e){n(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}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)}}(),s=e.defined,r=e.extend,n=e.isNumber,a=e.merge,h=e.pick,l=e.removeEvent;return function(e){function c(t,o,s,r,n,a,h,l,d,p){var u=e.call(this)||this;if(u.paddingSetter=i,u.paddingLeftSetter=i,u.paddingRightSetter=i,u.init(t,"g"),u.textStr=o,u.x=s,u.y=r,u.anchorX=a,u.anchorY=h,u.baseline=d,u.className=p,"button"!==p&&u.addClass("highcharts-label"),p&&u.addClass("highcharts-"+p),u.text=t.text("",0,0,l).attr({zIndex:1}),"string"==typeof n){var f=/^url\((.*?)\)$/.test(n);(u.renderer.symbols[n]||f)&&(u.symbolKey=n)}return u.bBox=c.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||f,u.deferredAttr={},u.alignFactor=0,u}return o(c,e),c.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&n(this.xSetting)&&this.attr({x:this.xSetting}))},c.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},c.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},c.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},c.prototype.css=function(e){if(e){var i,o={};e=a(e),c.textProps.forEach((function(t){void 0!==e[t]&&(o[t]=e[t],delete e[t])})),this.text.css(o),i="width"in o,"fontSize"in o||"fontWeight"in o?this.updateTextPadding():i&&this.updateBoxSize()}return t.prototype.css.call(this,e)},c.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},c.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},c.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=h(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},c.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},c.prototype.heightSetter=function(t){this.heightSetting=t},c.prototype.on=function(e,i){var o=this,s=o.text,r=s&&"SPAN"===s.element.tagName?s:void 0;if(r){var n=function(t){("mouseenter"===e||"mouseleave"===e)&&t.relatedTarget instanceof Element&&(o.element.compareDocumentPosition(t.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||r.element.compareDocumentPosition(t.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||i.call(o.element,t)};r.on(e,n)}return t.prototype.on.call(o,e,n||i),o},c.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:s(t)?t:"",x:this.x,y:this.y}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},c.prototype.rSetter=function(t,e){this.boxAttr(e,t)},c.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},c.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},c.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},c.prototype["text-alignSetter"]=function(t){this.textAlign=t},c.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},c.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},i=this.padding,o=this.bBox=n(this.widthSetting)&&n(this.heightSetting)&&!this.textAlign||!s(this.text.textStr)?c.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*i,this.baselineOffset=i+Math.min(this.renderer.fontMetrics(t&&t.fontSize,this.text).b,o.height||1/0),this.needsBox&&(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(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(r(e,this.deferredAttr)),this.deferredAttr={})},c.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=h(this.paddingLeft,this.padding);s(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||(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e},c.prototype.widthSetter=function(t){this.widthSetting=n(t)?t:void 0},c.prototype.getPaddedWidth=function(){var t=this.padding,e=h(this.paddingLeft,t);return t=h(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},c.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)},c.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},c.emptyBBox={width:0,height:0,x:0,y:0},c.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),c}(t)})),e(i,"Core/Renderer/SVG/TextBuilder.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],(function(t,e,i){var o=t.doc,s=t.SVG_NS,r=e.attr,n=e.isString,a=e.objectEach,h=e.pick;return function(){function t(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 t.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,s=t.renderer,r=h(t.textStr,"").toString(),a=-1!==r.indexOf("<"),l=e.childNodes,c=l.length;s=this.width&&!t.added&&s.box;var d=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(d!==t.textCache){for(t.textCache=d,delete t.actualWidth;c--;)e.removeChild(l[c]);a||this.ellipsis||this.width||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))?""!==r&&(s&&s.appendChild(e),r=new i(r),this.modifyTree(r.nodes),r.addToDOM(t.element),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["<",">"])),s&&s.removeChild(e)):e.appendChild(o.createTextNode(this.unescapeEntities(r))),n(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t=this,e=this.svgElement,i=r(e.element,"x");[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(function(e){e.nextSibling&&e.previousSibling&&r(e,{dy:t.getLineHeight(e.nextSibling),x:i})}));var n=this.width||0;if(n){var a=function(a,h){var l=a.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!t.noWrap&&(1<c.length||1<e.element.childNodes.length),p=t.getLineHeight(h),u=0,f=e.actualWidth;if(t.ellipsis)l&&t.truncate(a,l,void 0,0,Math.max(0,n-parseInt(t.fontSize||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(d){for(l=[],d=[];h.firstChild&&h.firstChild!==a;)d.push(h.firstChild),h.removeChild(h.firstChild);for(;c.length;)c.length&&!t.noWrap&&0<u&&(l.push(a.textContent||""),a.textContent=c.join(" ").replace(/- /g,"-")),t.truncate(a,void 0,c,0===u&&f||0,n,(function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")})),f=e.actualWidth,u++;d.forEach((function(t){h.insertBefore(t,a)})),l.forEach((function(t){h.insertBefore(o.createTextNode(t),a),(t=o.createElementNS(s,"tspan")).textContent="",r(t,{dy:p,x:i}),h.insertBefore(t,a)}))}},h=function(t){[].slice.call(t.childNodes).forEach((function(i){i.nodeType===Node.TEXT_NODE?a(i,t):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),h(i))}))};h(e.element)}},t.prototype.getLineHeight=function(t){var e;return t=t.nodeType===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},t.prototype.modifyTree=function(t){var e=this,i=function(o,s){var r=o.tagName,a=e.renderer.styledMode,h=o.attributes||{};"b"===r||"strong"===r?a?h.class="highcharts-strong":h.style="font-weight:bold;"+(h.style||""):"i"!==r&&"em"!==r||(a?h.class="highcharts-emphasized":h.style="font-style:italic;"+(h.style||"")),n(h.style)&&(h.style=h.style.replace(/(;| |^)color([ :])/,"$1fill$2")),"br"===r&&(h.class="highcharts-br",o.textContent="",(s=t[s+1])&&s.textContent&&(s.textContent=s.textContent.replace(/^ +/gm,""))),"#text"!==r&&"a"!==r&&(o.tagName="tspan"),o.attributes=h,o.children&&o.children.filter((function(t){return"#text"!==t.tagName})).forEach(i)};for(t.forEach(i);t[0]&&"tspan"===t[0].tagName&&!t[0].children;)t.splice(0,1)},t.prototype.truncate=function(t,e,i,o,s,r){var n,a=this.svgElement,h=a.renderer,l=a.rotation,c=[],d=i?1:0,p=(e||i||"").length,u=p,f=function(s,n){n=n||s;var l=t.parentNode;if(l&&void 0===c[n])if(l.getSubStringLength)try{c[n]=o+l.getSubStringLength(0,i?n+1:n)}catch(t){}else h.getSpanWidth&&(t.textContent=r(e||i,s),c[n]=o+h.getSpanWidth(a,t));return c[n]};a.rotation=0;var g=f(t.textContent.length);if(o+g>s){for(;d<=p;)u=Math.ceil((d+p)/2),i&&(n=r(i,u)),g=f(u,n&&n.length-1),d===p?d=p+1:g>s?p=u-1:d=u;0===p?t.textContent="":e&&p===e.length-1||(t.textContent=n||r(e||i,u))}i&&i.splice(0,u),a.actualWidth=g,a.rotation=l},t.prototype.unescapeEntities=function(t,e){return a(this.renderer.escapes,(function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),o))})),t},t}()})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a){var h,l=a.addEvent,c=a.attr,d=a.createElement,p=a.css,u=a.defined,f=a.destroyObjectProperties,g=a.extend,m=a.isArray,y=a.isNumber,v=a.isObject,x=a.isString,b=a.merge,k=a.pick,C=a.pInt,S=a.uniqueKey,w=e.charts,M=e.deg2rad,T=e.doc,A=e.isFirefox,P=e.isMS,O=e.isWebKit,L=e.noop,E=e.SVG_NS,D=e.symbolSizes,j=e.win;a=function(){function e(t,e,i,o,s,r,n){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,s,r,n)}return e.prototype.init=function(t,e,i,o,s,r,n){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});n||h.css(this.getStyle(o)),o=h.element,t.appendChild(o),c(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&c(o,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=o,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(T.createTextNode("Created with Highcharts 9.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=s,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),A&&t.getBoundingClientRect&&((e=function(){p(t,{left:0,top:0}),a=t.getBoundingClientRect(),p(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=l(j,"resize",e))},e.prototype.definition=function(t){return new r([t]).addToDOM(this.defs.element)},e.prototype.getReferenceURL=function(){if((A||O)&&T.getElementsByTagName("base").length){if(!u(h)){var t=S();t=new r([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+t+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(T.body),p(t,{position:"fixed",top:0,left:0,zIndex:9e5});var e=T.elementFromPoint(6,6);h="hitme"===(e&&e.id),T.body.removeChild(t)}if(h)return j.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},e.prototype.getStyle=function(t){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},e.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),f(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},e.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]}},e.prototype.buildText=function(t){new n(t).buildSVG()},e.prototype.getContrast=function(e){return(e=t.parse(e).rgba)[0]*=1,e[1]*=1.2,e[2]*=.5,459<e[0]+e[1]+e[2]?"#000000":"#FFFFFF"},e.prototype.button=function(t,e,o,s,n,a,h,c,d,p){var u=this.label(t,e,o,d,void 0,void 0,p,void 0,"button"),f=0,m=this.styledMode,y=n?b(n):{};if(t=y&&y.style||{},y=r.filterUserAttributes(y),u.attr(b({padding:8,r:2},y)),!m){var v=(y=b({fill:i.neutralColor3,stroke:i.neutralColor20,"stroke-width":1,style:{color:i.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:t},y)).style;delete y.style;var x=(a=b(y,{fill:i.neutralColor10},r.filterUserAttributes(a||{}))).style;delete a.style;var k=(h=b(y,{fill:i.highlightColor10,style:{color:i.neutralColor100,fontWeight:"bold"}},r.filterUserAttributes(h||{}))).style;delete h.style;var C=(c=b(y,{style:{color:i.neutralColor20}},r.filterUserAttributes(c||{}))).style;delete c.style}return l(u.element,P?"mouseover":"mouseenter",(function(){3!==f&&u.setState(1)})),l(u.element,P?"mouseout":"mouseleave",(function(){3!==f&&u.setState(f)})),u.setState=function(t){1!==t&&(u.state=f=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),m||u.attr([y,a,h,c][t||0]).css([v,x,k,C][t||0])},m||u.attr(y).css(g({cursor:"default"},v)),u.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==f&&s.call(u,t)}))},e.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var o=t[0],s=t[1];return o[1]===s[1]&&(o[1]=s[1]=Math[i](o[1])-e%2/2),o[2]===s[2]&&(o[2]=s[2]=Math[i](o[2])+e%2/2),t},e.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return m(t)?e.d=t:v(t)&&g(e,t),this.createElement("path").attr(e)},e.prototype.circle=function(t,e,i){return t=v(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)},e.prototype.arc=function(t,e,i,o,s,r){return v(t)?(e=(o=t).y,i=o.r,t=o.x):o={innerR:o,start:s,end:r},(t=this.symbol("arc",t,e,i,i,o)).r=i,t},e.prototype.rect=function(t,e,i,o,s,r){s=v(t)?t.r:s;var n=this.createElement("rect");return t=v(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=n.crisp(t)),t.fill="none"),s&&(t.r=s),n.rSetter=function(t,e,i){n.r=t,c(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(t)},e.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:k(i,!0)?void 0:0}),this.alignElements()},e.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},e.prototype.image=function(t,e,i,o,s,r){var n={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},h=function(e){a(c.element,t),r.call(c,e)};1<arguments.length&&g(n,{x:e,y:i,width:o,height:s});var c=this.createElement("image").attr(n);return r?(a(c.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n=new j.Image,l(n,"load",h),n.src=t,n.complete&&h({})):a(c.element,t),c},e.prototype.symbol=function(t,e,i,o,s,r){var n,a=this,h=/^url\((.*?)\)$/,l=h.test(t),c=!l&&(this.symbols[t]?t:"circle"),f=c&&this.symbols[c];if(f){"number"==typeof e&&(n=f.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,s||0,r));var m=this.path(n);a.styledMode||m.attr("fill","none"),g(m,{symbolName:c,x:e,y:i,width:o,height:s}),r&&g(m,r)}else if(l){var y=t.match(h)[1];(m=this.image(y)).imgwidth=k(D[y]&&D[y].width,r&&r.width),m.imgheight=k(D[y]&&D[y].height,r&&r.height);var v=function(){m.attr({width:m.width,height:m.height})};["width","height"].forEach((function(t){m[t+"Setter"]=function(t,e){var i=this["img"+e];this[e]=t,u(i)&&(r&&"within"===r.backgroundSize&&this.width&&this.height&&(i=Math.round(i*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,i),this.alignByTranslate||(t=((this[e]||0)-i)/2,this.attr("width"===e?{translateX:t}:{translateY:t})))}})),u(e)&&m.attr({x:e,y:i}),m.isImg=!0,u(m.imgwidth)&&u(m.imgheight)?v():(m.attr({width:0,height:0}),d("img",{onload:function(){var t=w[a.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),T.body.appendChild(this)),D[y]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&v(),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:y}),this.imgCount++)}return m},e.prototype.clipRect=function(t,e,i,o){var s=S()+"-",r=this.createElement("clipPath").attr({id:s}).add(this.defs);return(t=this.rect(t,e,i,o,0).add(r)).id=s,t.clipPath=r,t.count=0,t},e.prototype.text=function(t,e,i,o){var s={};return!o||!this.allowHTML&&this.forExport?(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),u(t)&&(s.text=t),t=this.createElement("text").attr(s),o||(t.xSetter=function(t,e,i){var o,s=i.getElementsByTagName("tspan"),r=i.getAttribute(e);for(o=0;o<s.length;o++){var n=s[o];n.getAttribute(e)===r&&n.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},e.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!j.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&o.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?C(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},e.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*M),4)),{x:-t/3*Math.sin(e*M),y:o}},e.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},s=0;s<t.length;s++)x(i[0])&&y(t[s])&&i.length===o[i[0].toUpperCase()]&&t.splice(s,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[s]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[s]);return e.push(i.slice(0)),e},e.prototype.label=function(t,e,i,o,r,n,a,h,l){return new s(this,t,e,i,o,r,n,a,h,l)},e.prototype.alignElements=function(){this.alignedObjects.forEach((function(t){return t.align()}))},e}(),a.prototype.Element=o,a.prototype.SVG_NS=E,a.prototype.draw=L,a.prototype.escapes={"&":"&","<":"<",">":">","'":"'",'"':"""};var I=function(t,e,i,o,s){return[["M",t+(s=s&&s.r||0),e],["L",t+i-s,e],["C",t+i,e,t+i,e,t+i,e+s],["L",t+i,e+o-s],["C",t+i,e+o,t+i,e+o,t+i-s,e+o],["L",t+s,e+o],["C",t,e+o,t,e+o,t,e+o-s],["L",t,e+s],["C",t,e,t,e,t+s,e]]};return L=function(t,e,i,o,s){return s&&s.r?I(t,e,i,o,s):[["M",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},a.prototype.symbols={circle:function(t,e,i,o){return this.arc(t+i/2,e+o/2,i/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},rect:L,square:L,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"]]},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"]]},arc:function(t,e,i,o,s){var r=[];if(s){var n=s.start||0,a=k(s.r,i);i=k(s.r,o||i);var h=(s.end||0)-.001;o=s.innerR;var l=k(s.open,.001>Math.abs((s.end||0)-n-2*Math.PI)),c=Math.cos(n),d=Math.sin(n),p=Math.cos(h),f=Math.sin(h);n=k(s.longArc,.001>h-n-Math.PI?0:1),r.push(["M",t+a*c,e+i*d],["A",a,i,0,n,k(s.clockwise,1),t+a*p,e+i*f]),u(o)&&r.push(l?["M",t+o*p,e+o*f]:["L",t+o*p,e+o*f],["A",o,o,0,n,u(s.clockwise)?1-s.clockwise:0,t+o*c,e+o*d]),l||r.push(["Z"])}return r},callout:function(t,e,i,o,s){var r=Math.min(s&&s.r||0,i,o),n=r+6,a=s&&s.anchorX;s=s&&s.anchorY||0;var h=I(t,e,i,o,{r});return y(a)?(t+a>=i?s>e+n&&s<e+o-n?h.splice(3,1,["L",t+i,s-6],["L",t+i+6,s],["L",t+i,s+6],["L",t+i,e+o-r]):h.splice(3,1,["L",t+i,o/2],["L",a,s],["L",t+i,o/2],["L",t+i,e+o-r]):0>=t+a?s>e+n&&s<e+o-n?h.splice(7,1,["L",t,s+6],["L",t-6,s],["L",t,s-6],["L",t,e+r]):h.splice(7,1,["L",t,o/2],["L",a,s],["L",t,o/2],["L",t,e+r]):s&&s>o&&a>t+n&&a<t+i-n?h.splice(5,1,["L",a+6,e+o],["L",a,e+o+6],["L",a-6,e+o],["L",t+r,e+o]):s&&0>s&&a>t+n&&a<t+i-n&&h.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-r,e]),h):h}},e.SVGRenderer=a,e.Renderer=e.SVGRenderer,e.Renderer})),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=t.isFirefox,s=t.isMS,r=t.isWebKit,n=t.win,a=i.css,h=i.defined,l=i.extend,c=i.pick,d=i.pInt;return l(e.prototype,{htmlCss:function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=c(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=l(this.styles,t),a(this.element,t),o&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,s=this.x||0,r=this.y||0,n=this.textAlign||"left",l={left:0,center:.5,right:1}[n],c=this.styles;if(c=c&&c.whiteSpace,a(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){a(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=void 0;u=this.textWidth&&d(this.textWidth);var f,g=[p,n,e.innerHTML,this.textWidth,this.textAlign].join();(f=u!==this.oldTextWidth)&&!(f=u>this.oldTextWidth)&&((f=this.textPxLength)||(a(e,{width:"",whiteSpace:c||"nowrap"}),f=e.offsetWidth),f=f>u),f&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(a(e,{width:u+"px",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=u,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(u=t.fontMetrics(e.style.fontSize,e).b,!h(p)||p===(this.oldRotation||0)&&n===this.oldAlign||this.setSpanRotation(p,l,u),this.getSpanCorrection(!h(p)&&this.textPxLength||e.offsetWidth,u,l,p,n)),a(e,{left:s+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=p,this.oldAlign=n}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var h={},l=s&&!/Edge/.test(n.navigator.userAgent)?"-ms-transform":r?"-webkit-transform":o?"MozTransform":n.opera?"-o-transform":void 0;l&&(h[l]=h.transform="rotate("+t+"deg)",h[l+(o?"Origin":"-origin")]=h.transformOrigin=100*e+"% "+i+"px",a(this.element,h))},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-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 s=o.attr,r=o.createElement,n=o.extend,a=o.pick;return n(i.prototype,{html:function(i,o,h){var l=this.createElement("span"),c=l.element,d=l.renderer,p=d.isSVG,u=function(t,i){["opacity","visibility"].forEach((function(o){t[o+"Setter"]=function(s,r,n){var a=t.div?t.div.style:i;e.prototype[o+"Setter"].call(this,s,r,n),a&&(a[r]=s)}})),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,a(e,"")),this.textStr=e,l.doTransform=!0)},p&&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(h)}).css({position:"absolute"}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",l.css=l.htmlCss,p&&(l.add=function(t){var e=d.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 a(e,i){t[i]=e,"translateX"===i?d.left=e+"px":d.top=e+"px",t.doTransform=!0}var h=s(t.element,"class"),c=t.styles||{},d=(o=t.div=t.div||r("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},o||e)).style;n(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:l.onEvents},arguments),t},translateXSetter:a,translateYSetter:a}),t.addedSetters||u(t)}))}}else o=e;return o.appendChild(c),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l}}),i})),e(i,"Core/Axis/Tick.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=e.deg2rad,s=i.clamp,r=i.correctFloat,n=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,c=i.isNumber,d=i.merge,p=i.objectEach,u=i.pick;return i=function(){function e(t,e,i,o,s){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i||o||this.addLabel()}return e.prototype.addLabel=function(){var e,i,o=this,s=o.axis,a=s.options,d=s.chart,p=s.categories,f=s.logarithmic,g=s.names,m=o.pos,y=u(o.options&&o.options.labels,a.labels),v=s.tickPositions,x=m===v[0],b=m===v[v.length-1],k=o.label,C=(!y.step||1===y.step)&&1===s.tickInterval;if(v=v.info,p=this.parameters.category||(p?u(p[m],g[m],m):m),f&&c(p)&&(p=r(f.lin2log(p))),s.dateTime&&v)var S=d.time.resolveDTLFormat(a.dateTimeLabelFormats[!a.grid&&v.higherRanks[m]||v.unitName]),w=S.main;o.isFirst=x,o.isLast=b;var M={axis:s,chart:d,dateTimeLabelFormat:w,isFirst:x,isLast:b,pos:m,tick:o,tickPositionInfo:v,value:p};l(this,"labelFormat",M);var T=function(e){return y.formatter?y.formatter.call(e,e):y.format?(e.text=s.defaultLabelFormatter.call(e),t.format(y.format,e,d)):s.defaultLabelFormatter.call(e,e)};a=T.call(M,M),(i=S&&S.list)&&(o.shortenLabel=function(){for(e=0;e<i.length;e++)if(h(M,{dateTimeLabelFormat:i[e]}),k.attr({text:T.call(M,M)}),k.getBBox().width<s.getSlotWidth(o)-2*y.padding)return;k.attr({text:""})}),C&&s._addedPlotLB&&o.moveLabel(a,y),n(k)||o.movedLabel?k&&k.textStr!==a&&!C&&(!k.textWidth||y.style.width||k.styles.width||k.css({width:null}),k.attr({text:a}),k.textPxLength=k.getBBox().width):(o.label=k=o.createLabel({x:0,y:0},a,y),o.rotation=0)},e.prototype.createLabel=function(t,e,i){var o=this.axis,s=o.chart;return(t=n(e)&&i.enabled?s.renderer.text(e,t.x,t.y,i.useHTML).add(o.labelGroup):null)&&(s.styledMode||t.css(d(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 n=this.axis,a=n.chart,h=o&&a.oldChartHeight||a.chartHeight;return(t={x:t?r(n.translate(e+i,null,null,o)+n.transB):n.left+n.offset+(n.opposite?(o&&a.oldChartWidth||a.chartWidth)-n.right-n.left:0),y:t?h-n.bottom+n.offset-(n.opposite?n.height:0):r(h-n.translate(e+i,null,null,o)-n.transB)}).y=s(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,i,s,r,a,h,c){var d=this.axis,p=d.transA,u=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,f=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},m=r.y,y=s||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),v={};return n(m)||(m=0===d.side?i.rotation?-8:-i.getBBox().height:2===d.side?g.y+8:Math.cos(i.rotation*o)*(g.y-i.getBBox(!1,0).height/2)),t=t+r.x+y+g.x-(a&&s?a*p*(u?-1:1):0),e=e+m-(a&&!s?a*p*(u?1:-1):0),f&&(i=h/(c||1)%f,d.opposite&&(i=f-i-1),e+=d.labelOffset/f*i),v.x=t,v.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:a,index:h}),v},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,i,o,s,r){return r.crispLine([["M",t,e],["L",t+(s?0:-i),e+(s?i:0)]],o)},e.prototype.handleOverflow=function(t){var e=this.axis,i=e.options.labels,s=t.x,r=e.chart.chartWidth,n=e.chart.spacing,a=u(e.labelLeft,Math.min(e.pos,n[3]));n=u(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-n[1]));var h,l=this.label,c=this.rotation,d={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],p=l.getBBox().width,f=e.getSlotWidth(this),g=f,m=1,y={};c||"justify"!==i.overflow?0>c&&s-d*p<a?h=Math.round(s/Math.cos(c*o)-a):0<c&&s+d*p>n&&(h=Math.round((r-s)/Math.cos(c*o))):(r=s+(1-d)*p,s-d*p<a?g=t.x+g*(1-d)-a:r>n&&(g=n-t.x+g*d,m=-1),(g=Math.min(f,g))<f&&"center"===e.labelAlign&&(t.x+=m*(f-g-d*(f-Math.min(p,g)))),(p>g||e.autoRotation&&(l.styles||{}).width)&&(h=g)),h&&(this.shortenLabel?this.shortenLabel():(y.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(y.textOverflow="ellipsis"),l.css(y)))},e.prototype.moveLabel=function(t,e){var i=this,o=i.label,s=!1,r=i.axis,n=r.reversed;if(o&&o.textStr===t?(i.movedLabel=o,s=!0,delete i.label):p(r.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=r.horiz?n?0:r.width+r.left:a.x,r=r.horiz?a.y:n?r.width+r.left:0,i.movedLabel=i.createLabel({x:o,y:r},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,i){var o=this.axis,s=o.horiz,r=this.pos,n=u(this.tickmarkOffset,o.tickmarkOffset);n=(r=this.getPosition(s,r,n,e)).x;var a=r.y;o=s&&n===o.pos+o.len||!s&&a===o.pos?-1:1,s=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,s,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,i){var o=this.axis,s=o.options,r=this.gridLine,n={},a=this.pos,h=this.type,l=u(this.tickmarkOffset,o.tickmarkOffset),c=o.chart.renderer,d=s.gridLineWidth,p=s.gridLineColor,f=s.gridLineDashStyle;"minor"===this.type&&(d=s.minorGridLineWidth,p=s.minorGridLineColor,f=s.minorGridLineDashStyle),r||(o.chart.styledMode||(n.stroke=p,n["stroke-width"]=d||0,n.dashstyle=f),h||(n.zIndex=1),t&&(e=0),this.gridLine=r=c.path().attr(n).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(o.gridGroup)),r&&(i=o.getPlotLinePath({value:a+l,lineWidth:r.strokeWidth()*i,force:"pass",old:t}))&&r[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},e.prototype.renderMark=function(t,e,i){var o=this.axis,s=o.options,r=o.chart.renderer,n=this.type,a=o.tickSize(n?n+"Tick":"tick"),h=this.mark,l=!h,c=t.x;t=t.y;var d=u(s["minor"!==n?"tickWidth":"minorTickWidth"],!n&&o.isXAxis?1:0);s=s["minor"!==n?"tickColor":"minorTickColor"],a&&(o.opposite&&(a[0]=-a[0]),l&&(this.mark=h=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(o.axisGroup),o.chart.styledMode||h.attr({stroke:s,"stroke-width":d})),h[l?"attr":"animate"]({d:this.getMarkPath(c,t,a[0],h.strokeWidth()*i,o.horiz,r),opacity:e}))},e.prototype.renderLabel=function(t,e,i,o){var s=this.axis,r=s.horiz,n=s.options,a=this.label,h=n.labels,l=h.step;s=u(this.tickmarkOffset,s.tickmarkOffset);var d=!0,p=t.x;t=t.y,a&&c(p)&&(a.xy=t=this.getLabelPosition(p,t,a,r,h,s,o,l),this.isFirst&&!this.isLast&&!n.showFirstLabel||this.isLast&&!this.isFirst&&!n.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),this.isNewLabel=!1):(a.attr("y",-9999),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.Tick=i,e.Tick})),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Options.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n){var a=t.animObject,h=s.defaultOptions,l=n.addEvent,c=n.arrayMax,d=n.arrayMin,p=n.clamp,u=n.correctFloat,f=n.defined,g=n.destroyObjectProperties,m=n.erase,y=n.error,v=n.extend,x=n.fireEvent,b=n.getMagnitude,k=n.isArray,C=n.isFunction,S=n.isNumber,w=n.isString,M=n.merge,T=n.normalizeTickInterval,A=n.objectEach,P=n.pick,O=n.relativeLength,L=n.removeEvent,E=n.splat,D=n.syncTimeout,j=i.deg2rad;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.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX,o=this;o.chart=t,o.horiz=t.inverted&&!o.isZAxis?!i:i,o.isXAxis=i,o.coll=o.coll||(i?"xAxis":"yAxis"),x(this,"init",{userOptions:e}),o.opposite=P(e.opposite,o.opposite),o.side=P(e.side,o.side,o.horiz?o.opposite?0:2:o.opposite?1:3),o.setOptions(e);var s=this.options,r=s.labels,n=s.type;o.userOptions=e,o.minPixelPadding=0,o.reversed=P(s.reversed,o.reversed),o.visible=s.visible,o.zoomEnabled=s.zoomEnabled,o.hasNames="category"===n||!0===s.categories,o.categories=s.categories||o.hasNames,o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.positiveValuesOnly=!!o.logarithmic,o.isLinked=f(s.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len=0,o.minRange=o.userMinRange=s.minRange||s.maxZoom,o.range=s.range,o.offset=s.offset||0,o.max=null,o.min=null,e=P(s.crosshair,E(t.options.tooltip.crosshairs)[i?0:1]),o.crosshair=!0===e?{}:e,e=o.options.events,-1===t.axes.indexOf(o)&&(i?t.axes.splice(t.xAxis.length,0,o):t.axes.push(o),t[o.coll].push(o)),o.series=o.series||[],t.inverted&&!o.isZAxis&&i&&void 0===o.reversed&&(o.reversed=!0),o.labelRotation=S(r.rotation)?r.rotation:void 0,A(e,(function(t,e){C(t)&&l(o,e,t)})),x(this,"afterInit")},t.prototype.setOptions=function(e){this.options=M(t.defaultOptions,"yAxis"===this.coll&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],M(h[this.coll],e)),x(this,"afterSetOptions",{userOptions:e})},t.prototype.defaultLabelFormatter=function(){var t=this.axis,e=S(this.value)?this.value:NaN,i=t.chart.time,o=this.dateTimeLabelFormat,s=h.lang,r=s.numericSymbols;s=s.numericSymbolMagnitude||1e3;var n=r&&r.length,a=t.logarithmic?Math.abs(e):t.tickInterval,l=this.chart.numberFormatter;if(t.categories)var c=""+this.value;else if(o)c=i.dateFormat(o,e);else if(n&&1e3<=a)for(;n--&&void 0===c;)a>=(t=Math.pow(s,n+1))&&0==10*e%t&&null!==r[n]&&0!==e&&(c=l(e/t,-1)+r[n]);return void 0===c&&(c=1e4<=Math.abs(e)?l(e,-1):l(e,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;x(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(o){if(o.visible||!i.options.chart.ignoreHiddenSeries){var s=o.options,r=s.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((s=o.xData).length){s=e.logarithmic?s.filter(e.validatePositiveValue):s;var n=(t=o.getXExtremes(s)).min,a=t.max;S(n)||n instanceof Date||(s=s.filter(S),n=(t=o.getXExtremes(s)).min,a=t.max),s.length&&(e.dataMin=Math.min(P(e.dataMin,n),n),e.dataMax=Math.max(P(e.dataMax,a),a))}}else o=o.applyExtremes(),S(o.dataMin)&&(n=o.dataMin,e.dataMin=Math.min(P(e.dataMin,n),n)),S(o.dataMax)&&(a=o.dataMax,e.dataMax=Math.max(P(e.dataMax,a),a)),f(r)&&(e.threshold=r),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),x(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,s,r){var n=this.linkedParent||this,a=1,h=0,l=o&&n.old?n.old.transA:n.transA;o=o&&n.old?n.old.min:n.min;var c=n.minPixelPadding;return s=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&s)&&n.lin2val,l||(l=n.transA),i&&(a*=-1,h=n.len),n.reversed&&(h-=(a*=-1)*(n.sector||n.len)),e?(t=(t*a+h-c)/l+o,s&&(t=n.lin2val(t))):(s&&(t=n.val2lin(t)),t=S(o)?a*(t-o)*l+h+a*c+(S(r)?l*r:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==m&&t<e||t>i)&&(m?t=p(t,e,i):n=!0),t}var i,o,s,r,n,a=this,h=a.chart,l=a.left,c=a.top,d=t.old,u=t.value,f=t.translatedValue,g=t.lineWidth,m=t.force,y=d&&h.oldChartHeight||h.chartHeight,v=d&&h.oldChartWidth||h.chartWidth,b=a.transB;return t={value:u,lineWidth:g,old:d,force:m,acrossPanes:t.acrossPanes,translatedValue:f},x(this,"getPlotLinePath",t,(function(t){f=P(f,a.translate(u,null,null,d)),f=p(f,-1e5,1e5),i=s=Math.round(f+b),o=r=Math.round(y-f-b),S(f)?a.horiz?(o=c,r=y-a.bottom,i=s=e(i,l,l+a.width)):(i=l,s=v-a.right,o=r=e(o,c,c+a.height)):(n=!0,m=!1),t.path=n&&!m?null:h.renderer.crispLine([["M",i,o],["L",s,r]],g||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var o=u(Math.floor(e/t)*t);i=u(Math.ceil(i/t)*t);var s,r=[];if(u(o+t)===o&&(s=20),this.single)return[e];for(e=o;e<=i&&(r.push(e),(e=u(e+t,s))!==n);)var n=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=[],s=this.pointRangePadding||0,r=this.min-s,n=(s=this.max+s)-r;if(n&&n/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach((function(t,e,s){e&&o.push.apply(o,a.getLogTickPositions(i,s[e-1],s[e],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())o=o.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),r,s,t.startOfWeek));else for(t=r+(e[0]-r)%i;t<=s&&t!==o[0];t+=i)o.push(t)}return 0!==o.length&&this.trimTicks(o),o},t.prototype.adjustForMinRange=function(){var t,e,i,o,s=this.options,r=this.min,n=this.max,a=this.logarithmic,h=0;if(this.isXAxis&&void 0===this.minRange&&!a&&(f(s.min)||f(s.max)?this.minRange=null:(this.series.forEach((function(s){if(i=s.xData,o=s.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))),n-r<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,p=this.minRange,u=(p-n+r)/2;u=[r-u,P(s.min,r-u)],l&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),n=[(r=c(u))+p,P(s.max,r+p)],l&&(n[2]=a?a.log2lin(this.dataMax):this.dataMax),(n=d(n))-r<p&&(u[0]=n-p,u[1]=P(s.min,n-p),r=c(u))}this.min=r,this.max=n},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach((function(e){var i=e.closestPointRange,o=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&f(i)&&o&&(t=f(t)?Math.min(t,i):i)})),t},t.prototype.nameToX=function(t){var e=k(this.categories),i=e?this.categories:this.names,o=t.options.x;if(t.series.requireSorting=!1,f(o)||(o=this.options.uniqueNames?e?i.indexOf(t.name):P(i.keys[t.name],-1):t.series.autoIncrement()),-1===o){if(!e)var s=i.length}else s=o;return void 0!==s&&(this.names[s]=t.name,this.names.keys[t.name]=s),s},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 s=t.nameToX(i);void 0!==s&&s!==i.x&&(i.x=s,e.xData[o]=s)}}))})))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,i=t.axisPointRange||0,o=0,s=0,r=t.linkedParent,n=!!t.categories,a=t.transA,h=t.isXAxis;if(h||n||i){var l=t.getClosest();r?(o=r.minPointOffset,s=r.pointRangePadding):t.series.forEach((function(e){var r=n?1:h?P(e.options.pointRange,l,0):t.axisPointRange||0,a=e.options.pointPlacement;i=Math.max(i,r),t.single&&!n||(e=e.is("xrange")?!h:h,o=Math.max(o,e&&w(a)?0:r/2),s=Math.max(s,e&&"on"===a?0:r))})),r=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=o*=r,t.pointRangePadding=s*=r,t.pointRange=Math.min(i,t.single&&n?1:e),h&&(t.closestPointRange=l)}t.translationSlope=t.transA=a=t.staticScale||t.len/(e+s||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=a*o,x(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this,i=e.chart,o=e.logarithmic,s=e.options,r=e.isXAxis,n=e.isLinked,a=s.maxPadding,h=s.minPadding,l=s.tickInterval,c=s.tickPixelInterval,d=e.categories,p=S(e.threshold)?e.threshold:null,g=e.softThreshold;e.dateTime||d||n||this.getTickAmount();var m=P(e.userMin,s.min),v=P(e.userMax,s.max);if(n){e.linkedParent=i[e.coll][s.linkedTo];var k=e.linkedParent.getExtremes();e.min=P(k.min,k.dataMin),e.max=P(k.max,k.dataMax),s.type!==e.linkedParent.options.type&&y(11,1,i)}else{if(g&&f(p))if(e.dataMin>=p)k=p,h=0;else if(e.dataMax<=p){var C=p;a=0}e.min=P(m,k,e.dataMin),e.max=P(v,C,e.dataMax)}o&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,P(e.dataMin,e.min))&&y(10,1,i),e.min=u(o.log2lin(e.min),16),e.max=u(o.log2lin(e.max),16)),e.range&&f(e.max)&&(e.userMin=e.min=m=Math.max(e.dataMin,e.minFromRange()),e.userMax=v=e.max,e.range=null),x(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(d||e.axisPointRange||e.stacking&&e.stacking.usePercentage||n)&&f(e.min)&&f(e.max)&&(i=e.max-e.min)&&(!f(m)&&h&&(e.min-=i*h),!f(v)&&a&&(e.max+=i*a)),S(e.userMin)||(S(s.softMin)&&s.softMin<e.min&&(e.min=m=s.softMin),S(s.floor)&&(e.min=Math.max(e.min,s.floor))),S(e.userMax)||(S(s.softMax)&&s.softMax>e.max&&(e.max=v=s.softMax),S(s.ceiling)&&(e.max=Math.min(e.max,s.ceiling))),g&&f(e.dataMin)&&(p=p||0,!f(m)&&e.min<p&&e.dataMin>=p?e.min=e.options.minRange?Math.min(p,e.max-e.minRange):p:!f(v)&&e.max>p&&e.dataMax<=p&&(e.max=e.options.minRange?Math.max(p,e.min+e.minRange):p)),S(e.min)&&S(e.max)&&!this.chart.polar&&e.min>e.max&&(f(e.options.min)?e.max=e.min:f(e.options.max)&&(e.min=e.max)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:n&&e.linkedParent&&!l&&c===e.linkedParent.options.tickPixelInterval?l=e.linkedParent.tickInterval:P(l,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,d?1:(e.max-e.min)*c/Math.max(e.len,c)),r&&!t&&e.series.forEach((function(t){t.processData(e.min!==(e.old&&e.old.min)||e.max!==(e.old&&e.old.max))})),e.setAxisTranslation(),x(this,"initialAxisTranslation"),e.pointRange&&!l&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=P(s.minTickInterval,e.dateTime&&!e.series.some((function(t){return t.noSharedTooltip}))?e.closestPointRange:0),!l&&e.tickInterval<t&&(e.tickInterval=t),e.dateTime||e.logarithmic||l||(e.tickInterval=T(e.tickInterval,void 0,b(e.tickInterval),P(s.allowDecimals,.5>e.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),o=t.tickPositioner,s=this.hasVerticalPanning(),r="colorAxis"===this.coll,n=(r||!s)&&t.startOnTick;s=(r||!s)&&t.endOnTick,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&f(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],y(19,!1,this.chart)),i.length>this.len&&(i=[i[0],i.pop()])[0]===i[1]&&(i.length=1),this.tickPositions=i,o&&(o=o.apply(this,[this.min,this.max])))&&(this.tickPositions=i=o),this.paddedTicks=i.slice(0),this.trimTicks(i,n,s),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||o||this.adjustTickAmount()),x(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],s=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(x(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=s;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&f(o)&&!this.options.tickPositions&&t.push((s+o)/2)}},t.prototype.alignToOthers=function(){var t,e={},i=this.options;return!1!==this.chart.options.chart.alignTicks&&i.alignTicks&&!1!==i.startOnTick&&!1!==i.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach((function(i){var o=i.options;o=[i.horiz?o.left:o.top,o.width,o.height,o.pane].join(),i.series.length&&(e[o]?t=!0:e[o]=1)})),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!f(t.tickInterval)&&!e&&this.len<i&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,i=this.tickPositions,o=this.tickAmount,s=this.finalTickAmt,r=i&&i.length,n=P(this.threshold,this.softThreshold?0:null);if(this.hasData()&&S(this.min)&&S(this.max)){if(r<o){for(;i.length<o;)i.length%2||this.min===n?i.push(u(i[i.length-1]+e)):i.unshift(u(i[0]-e));this.transA*=(r-1)/(o-1),this.min=t.startOnTick?i[0]:Math.min(this.min,i[0]),this.max=t.endOnTick?i[i.length-1]:Math.max(this.max,i[i.length-1])}else r>o&&(this.tickInterval*=2,this.setTickPositions());if(f(s)){for(e=t=i.length;e--;)(3===s&&1==e%2||2>=s&&0<e&&e<t-1)&&i.splice(e,1);this.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e=!1,i=!1;this.series.forEach((function(t){e=e||t.isDirtyData||t.isDirty,i=i||t.xAxis&&t.xAxis.isDirty||!1})),this.setAxisSize(),(t=this.len!==(this.old&&this.old.len))||e||i||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.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=t||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),x(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,s){var r=this,n=r.chart;i=P(i,!0),r.series.forEach((function(t){delete t.kdTree})),s=v(s,{min:t,max:e}),x(r,"setExtremes",s,(function(){r.userMin=t,r.userMax=e,r.eventArgs=s,i&&n.redraw(o)}))},t.prototype.zoom=function(t,e){var i=this,o=this.dataMin,s=this.dataMax,r=this.options,n=Math.min(o,P(r.min,o)),a=Math.max(s,P(r.max,s));return x(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,r=t.newMax;e===i.min&&r===i.max||(i.allowZoomOutside||(f(o)&&(e<n&&(e=n),e>a&&(e=a)),f(s)&&(r<n&&(r=n),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,s=this.width=Math.round(O(P(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(O(P(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(O(P(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(O(P(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-s-e,this.len=Math.max(o?s:r,0),this.pos=o?e:n},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?u(t.lin2log(this.min)):this.min,max:t?u(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 x(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=e["tick"===t?"tickLength":"minorTickLength"],o=P(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(o&&i){"inside"===e[t+"Position"]&&(i=-i);var s=[i,o]}return x(this,"afterTickSize",t={tickSize:s}),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,e,i=this.options.labels,o=this.horiz,s=this.tickInterval,r=s,n=this.len/(((this.categories?1:0)+this.max-this.min)/s),a=i.rotation,h=this.labelMetrics(),l=Number.MAX_VALUE,c=Math.max(this.max-this.min,0),d=function(t){var e=t/(n||1);return(e=1<e?Math.ceil(e):1)*s>c&&1/0!==t&&1/0!==n&&c&&(e=Math.ceil(c/s)),u(e*s)};if(o){if(!i.staggerLines&&!i.step)if(S(a))var p=[a];else n<i.autoRotationLimit&&(p=i.autoRotation);p&&p.forEach((function(i){if(i===a||i&&-90<=i&&90>=i){var o=(e=d(Math.abs(h.h/Math.sin(j*i))))+Math.abs(i/360);o<l&&(l=o,t=i,r=e)}}))}else i.step||(r=d(h.h));return this.autoRotation=p,this.labelRotation=P(t,S(a)?a:0),r},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,s=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=e.margin[3];if(t&&S(t.slotWidth))return t.slotWidth;if(i&&2>o.step)return o.rotation?0:(this.staggerLines||1)*this.len/s;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,s=this.options.labels,r=s.style,n=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*s.padding)),l={},c=this.labelMetrics(),d=r.textOverflow,p=0;if(w(s.rotation)||(l.rotation=s.rotation||0),i.forEach((function(t){(t=o[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>p&&(p=t.label.textPxLength)})),this.maxLabelLength=p,this.autoRotation)p>h&&p>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!d){var f="clip";for(h=i.length;!n&&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=p>.5*t.chartHeight?.33*t.chartHeight:p,d||(f="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach((function(t){var e=(t=o[t])&&t.label,i=r.width,s={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u<e.textPxLength||"SPAN"===e.element.tagName)?(s.width=u+"px",d||(s.textOverflow=e.specificTextOverflow||f),e.css(s)):e.styles&&e.styles.width&&!s.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&&f(this.min)&&f(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,s=this.opposite,r=this.options.title,n=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:s?"right":"left",middle:"center",high:s?"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"),n||this.axisTitle.css(M(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||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 r(this,t)},t.prototype.getOffset=function(){var t,e=this,i=this,o=i.chart,s=o.renderer,r=i.options,n=i.tickPositions,a=i.ticks,h=i.horiz,l=i.side,c=o.inverted&&!i.isZAxis?[1,0,3,2][l]:l,d=0,p=0,u=r.title,g=r.labels,m=0,y=o.axisOffset;o=o.clipOffset;var v=[-1,1,1,-1][l],b=r.className,k=i.axisParent,C=i.hasData();if(i.showAxis=t=C||r.showEmpty,i.staggerLines=i.horiz&&g.staggerLines||void 0,!i.axisGroup){var S=function(t,i,o){return s.g(t).attr({zIndex:o}).addClass("highcharts-"+e.coll.toLowerCase()+i+" "+(e.isRadial?"highcharts-radial-axis"+i+" ":"")+(b||"")).add(k)};i.gridGroup=S("grid","-grid",r.gridZIndex),i.axisGroup=S("axis","",r.zIndex),i.labelGroup=S("axis-labels","-labels",g.zIndex)}if(C||i.isLinked?(n.forEach((function(t,e){i.generateTick(t,e)})),i.renderUnsquish(),i.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===i.labelAlign,P(g.reserveSpace,"center"===i.labelAlign||null,i.reserveSpaceDefault)&&n.forEach((function(t){m=Math.max(a[t].getLabelSize(),m)})),i.staggerLines&&(m*=i.staggerLines),i.labelOffset=m*(i.opposite?-1:1)):A(a,(function(t,e){t.destroy(),delete a[e]})),u&&u.text&&!1!==u.enabled&&(i.addTitle(t),t&&!1!==u.reserveSpace)){i.titleOffset=d=i.axisTitle.getBBox()[h?"height":"width"];var w=u.offset;p=f(w)?0:P(u.margin,h?5:10)}i.renderLine(),i.offset=v*P(r.offset,y[l]?y[l]+(r.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},u=0===l?-i.labelMetrics().h:2===l?i.tickRotCorr.y:0,p=Math.abs(m)+p,m&&(p=p-u+v*(h?P(g.y,i.tickRotCorr.y+8*v):g.x)),i.axisTitleMargin=P(w,p),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(a,n)),h=this.tickSize("tick"),y[l]=Math.max(y[l],(i.axisTitleMargin||0)+d+v*i.offset,p,n&&n.length&&h?h[0]+v*i.offset:0),r=r.offset?0:2*Math.floor(i.axisLine.strokeWidth()/2),o[c]=Math.max(o[c],r),x(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,s=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",s?this.left:r,s?o:this.top],["L",s?e.chartWidth-this.right:r,s?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,s=this.options.title,r=t?e:i,n=this.opposite,a=this.offset,h=s.x,l=s.y,c=this.axisTitle,d=this.chart.renderer.fontMetrics(s.style.fontSize,c);return c=Math.max(c.getBBox(null,0).height-d.h-1,0),o={low:r+(t?0:o),middle:r+o/2,high:r+(t?o:0)}[s.align],e=(t?i+this.height:e)+(t?1:-1)*(n?-1:1)*this.axisTitleMargin+[-c,c,d.f,-c][this.side],t={x:t?o+h:e+(n?this.width:0)+a+h,y:t?e+l-(n?this.height:0)+a:o+l},x(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t){var e=this.chart.hasRendered&&this.old,i=this.minorTicks;i[t]||(i[t]=new r(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e){var i=this.ticks,o=this.chart.hasRendered&&this.old;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(i[t]||(i[t]=new r(this,t)),o&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))},t.prototype.render=function(){var t,e,o=this,s=o.chart,n=o.logarithmic,h=o.options,l=o.isLinked,c=o.tickPositions,d=o.axisTitle,p=o.ticks,u=o.minorTicks,f=o.alternateBands,g=h.stackLabels,m=h.alternateGridColor,y=o.tickmarkOffset,v=o.axisLine,b=o.showAxis,k=a(s.renderer.globalAnimation);o.labelEdge.length=0,o.overlap=!1,[p,u,f].forEach((function(t){A(t,(function(t){t.isActive=!1}))})),(o.hasData()||l)&&(o.minorTickInterval&&!o.categories&&o.getMinorTickPositions().forEach((function(t){o.renderMinorTick(t)})),c.length&&(c.forEach((function(t,e){o.renderTick(t,e)})),y&&(0===o.min||o.single)&&(p[-1]||(p[-1]=new r(o,-1,null,!0)),p[-1].render(-1))),m&&c.forEach((function(r,a){e=void 0!==c[a+1]?c[a+1]+y:o.max-y,0==a%2&&r<o.max&&e<=o.max+(s.polar?-y:y)&&(f[r]||(f[r]=new i.PlotLineOrBand(o)),t=r+y,f[r].options={from:n?n.lin2log(t):t,to:n?n.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[r].render(),f[r].isActive=!0)})),o._addedPlotLB||(o._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach((function(t){o.addPlotBandOrLine(t)})))),[p,u,f].forEach((function(t){var e,i=[],o=k.duration;A(t,(function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))})),D((function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])}),t!==f&&s.hasRendered&&o?o:0)})),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[b?"show":"hide"](b)),d&&b&&(h=o.getTitlePosition(),S(h.y)?(d[d.isNew?"attr":"animate"](h),d.isNew=!1):(d.attr("y",-9999),d.isNew=!0)),g&&g.enabled&&o.stacking&&o.stacking.renderStackTotals(),o.old={len:o.len,max:o.max,min:o.min,transA:o.transA,userMax:o.userMax,userMin:o.userMin},o.isDirty=!1,x(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,i=this,o=i.plotLinesAndBands;if(x(this,"destroy",{keepEvents:t}),t||L(i),[i.ticks,i.minorTicks,i.alternateBands].forEach((function(t){g(t)})),o)for(t=o.length;t--;)o[t].destroy();for(e in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){i[t]&&(i[t]=i[t].destroy())})),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();A(i,(function(t,e){-1===i.getKeepProps().indexOf(e)&&delete i[e]}))},t.prototype.drawCrosshair=function(t,i){var s,r=this.crosshair,n=P(r&&r.snap,!0),a=this.cross,h=this.chart;if(x(this,"drawCrosshair",{e:t,point:i}),t||(t=this.cross&&this.cross.e),r&&!1!==(f(i)||!n)){if(n?f(i)&&(s=P("colorAxis"!==this.coll?i.crosshairPos:null,this.isXAxis?i.plotX:this.len-i.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),f(s)){var l={value:i&&(this.isXAxis?i.x:P(i.stackY,i.y)),translatedValue:s};h.polar&&v(l,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:i}),l=this.getPlotLinePath(l)||null}if(!f(l))return void this.hideCrosshair();n=this.categories&&!this.isRadial,a||(this.cross=a=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(n?"category ":"thin ")+(r.className||"")).attr({zIndex:P(r.zIndex,2)}).add(),h.styledMode||(a.attr({stroke:r.color||(n?e.parse(o.highlightColor20).setOpacity(.25).get():o.neutralColor20),"stroke-width":P(r.width,1)}).css({"pointer-events":"none"}),r.dashStyle&&a.attr({dashstyle:r.dashStyle}))),a.show().attr({d:l}),n&&!r.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();x(this,"afterDrawCrosshair",{e:t,point:i})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),x(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 S(t)&&0<t},t.prototype.update=function(t,e){var i=this.chart,o=t&&t.events||{};t=M(this.userOptions,t),A(i.options[this.coll].events,(function(t,e){void 0===o[e]&&(o[e]=void 0)})),this.destroy(!0),this.init(i,v(t,{events:o})),i.isDirtyBox=!0,P(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,s=o.length;s--;)o[s]&&o[s].remove(!1);m(e.axes,this),m(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={alignTicks:!0,allowDecimals:void 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:o.neutralColor60,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:o.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:o.neutralColor5,minorGridLineWidth:1,minorTickColor:o.neutralColor40,lineColor:o.highlightColor20,lineWidth:1,gridLineColor:o.neutralColor10,gridLineWidth:void 0,tickColor:o.highlightColor20},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,-1)},style:{color:o.neutralColor100,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.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),i.Axis=t,i.Axis})),e(i,"Core/Axis/DateTimeAxis.js",[i["Core/Axis/Axis.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.addEvent,o=e.getMagnitude,s=e.normalizeTickInterval,r=e.timeUnits,n=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 n,a=r[e[0]],h=e[1];for(n=0;n<i.length&&(e=i[n],a=r[e[0]],h=e[1],!(i[n+1]&&t<=(a*h[h.length-1]+r[i[n+1][0]])/2));n++);return a===r.year&&t<5*a&&(h=[1,2,5]),{unitRange:a,count:t=s(t/a,h,"year"===e[0]?Math.max(o(t/a),1):1),unitName:e[0]}},t}();return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("dateTime"),t.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},i(t,"init",(function(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new n(this))}))},t.AdditionsClass=n,t}(),e.compose(t),e})),e(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Axis/Axis.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.addEvent,o=e.getMagnitude,s=e.normalizeTickInterval,r=e.pick,n=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,n){var a=this.axis,h=a.len,l=a.options,c=[];if(n||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),c=a.getLinearTickPositions(t,e,i);else if(.08<=t){var d,p=Math.floor(e),u=l=void 0;for(h=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];p<i+1&&!u;p++){var f=h.length;for(d=0;d<f&&!u;d++){var g=this.log2lin(this.lin2log(p)*h[d]);g>e&&(!n||l<=i)&&void 0!==l&&c.push(l),l>i&&(u=!0),l=g}}}else e=this.lin2log(e),i=this.lin2log(i),t=n?a.getMinorTickInterval():l.tickInterval,t=r("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(n?5:1)*(i-e)/((n?h/a.tickPositions.length:h)||1)),t=s(t,void 0,o(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),n||(this.minorAutoInterval=t/5);return n||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic"),i(t,"init",(function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new n(this))})),i(t,"afterInit",(function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}))},t}(),e.compose(t),e})),e(i,"Core/Axis/PlotLineOrBand.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=o.arrayMax,r=o.arrayMin,n=o.defined,a=o.destroyObjectProperties,h=o.erase,l=o.extend,c=o.fireEvent,d=o.isNumber,p=o.merge,u=o.objectEach,f=o.pick;return o=function(){function t(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return t.prototype.render=function(){c(this,"render");var t=this,e=t.axis,o=e.horiz,s=e.logarithmic,r=t.options,a=r.label,h=t.label,l=r.to,d=r.from,g=r.value,m=n(d)&&n(l),y=n(g),v=t.svgElem,x=!v,b=[],k=r.color,C=f(r.zIndex,0),S=r.events;b={class:"highcharts-plot-"+(m?"band ":"line ")+(r.className||"")};var w={},M=e.chart.renderer,T=m?"bands":"lines";if(s&&(d=s.log2lin(d),l=s.log2lin(l),g=s.log2lin(g)),e.chart.styledMode||(y?(b.stroke=k||i.neutralColor40,b["stroke-width"]=f(r.width,1),r.dashStyle&&(b.dashstyle=r.dashStyle)):m&&(b.fill=k||i.highlightColor10,r.borderWidth&&(b.stroke=r.borderColor,b["stroke-width"]=r.borderWidth))),w.zIndex=C,T+="-"+C,(s=e.plotLinesAndBandsGroups[T])||(e.plotLinesAndBandsGroups[T]=s=M.g("plot-"+T).attr(w).add()),x&&(t.svgElem=v=M.path().attr(b).add(s)),y)b=e.getPlotLinePath({value:g,lineWidth:v.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!m)return;b=e.getPlotBandPath(d,l,r)}return!t.eventsAdded&&S&&(u(S,(function(e,i){v.on(i,(function(e){S[i].apply(t,[e])}))})),t.eventsAdded=!0),(x||!v.d)&&b&&b.length?v.attr({d:b}):v&&(b?(v.show(!0),v.animate({d:b})):v.d&&(v.hide(),h&&(t.label=h=h.destroy()))),a&&(n(a.text)||n(a.formatter))&&b&&b.length&&0<e.width&&0<e.height&&!b.isFlat?(a=p({align:o&&m&&"center",x:o?!m&&4:10,verticalAlign:!o&&m&&"middle",y:o?m?16:10:m?6:-4,rotation:o&&!m&&90},a),this.renderLabel(a,b,m,C)):h&&h.hide(),t},t.prototype.renderLabel=function(t,e,i,o){var n=this.label,a=this.axis.chart.renderer;n||((n={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=o,o=this.getLabelText(t),this.label=n=a.text(o,0,0,t.useHTML).attr(n).add(),this.axis.chart.styledMode||n.css(t.style)),a=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],i=r(a),o=r(e),n.align(t,!1,{x:i,y:o,width:s(a)-i,height:s(e)-o}),n.show(!0)},t.prototype.getLabelText=function(t){return n(t.formatter)?t.formatter.call(this):t.text},t.prototype.destroy=function(){h(this.axis.plotLinesAndBands,this),delete this.axis,a(this)},t}(),l(t.prototype,{getPlotBandPath:function(t,e,i){void 0===i&&(i=this.options);var o=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes});i=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes});var s=[],r=this.horiz,n=1;if(t=!d(this.min)||!d(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,i&&o){if(t){var a=i.toString()===o.toString();n=0}for(t=0;t<i.length;t+=2){e=i[t];var h=i[t+1],l=o[t],c=o[t+1];"M"!==e[0]&&"L"!==e[0]||"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||(r&&l[1]===e[1]?(l[1]+=n,c[1]+=n):r||l[2]!==e[2]||(l[2]+=n,c[2]+=n),s.push(["M",e[1],e[2]],["L",h[1],h[2]],["L",c[1],c[2]],["L",l[1],l[2]],["Z"])),s.isFlat=a}}return s},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,i){var o=this,s=new e.PlotLineOrBand(this,t),r=this.userOptions;if(this.visible&&(s=s.render()),s){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach((function(t){o.addPlotBandOrLine(t)}))),i){var n=r[i]||[];n.push(t),r[i]=n}this.plotLinesAndBands.push(s)}return s},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,o=this.userOptions,s=e.length;s--;)e[s].id===t&&e[s].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach((function(e){for(s=e.length;s--;)(e[s]||{}).id===t&&h(e,e[s])}))},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}}),e.PlotLineOrBand=o,e.PlotLineOrBand})),e(i,"Core/Tooltip.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=t.format,r=e.doc,n=o.clamp,a=o.css,h=o.defined,l=o.discardElement,c=o.extend,d=o.fireEvent,p=o.isArray,u=o.isNumber,f=o.isString,g=o.merge,m=o.pick,y=o.splat,v=o.syncTimeout,x=o.timeUnits;return t=function(){function t(t,e){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.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},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"]||"")}))},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||y(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(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),l(this.container)),o.clearTimeout(this.hideTimer),o.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var i,o,s=this.chart,r=s.pointer,n=s.inverted,a=s.plotTop,h=s.plotLeft,l=0,c=0;return t=y(t),this.followPointer&&e?(void 0===e.chartX&&(e=r.normalize(e)),r=[e.chartX-h,e.chartY-a]):t[0].tooltipPos?r=t[0].tooltipPos:(t.forEach((function(t){i=t.series.yAxis,o=t.series.xAxis,l+=t.plotX||0,c+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,o&&i&&(n?(l+=a+s.plotHeight-o.len-o.pos,c+=h+s.plotWidth-i.len-i.pos):(l+=o.pos-h,c+=i.pos-a))})),l/=t.length,c/=t.length,r=[n?s.plotWidth-c:l,n?s.plotHeight-l:c],this.shared&&1<t.length&&e&&(n?r[0]=e.chartX-h:r[1]=e.chartY-a)),r.map(Math.round)},t.prototype.getDateFormat=function(t,e,i,o){var s=this.chart.time,r=s.dateFormat("%m-%d %H:%M:%S.%L",e),n={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(h in x){if(t===x.week&&+s.dateFormat("%w",e)===i&&"00:00:00.000"===r.substr(6)){var h="week";break}if(x[h]>t){h=a;break}if(n[h]&&r.substr(n[h])!=="01-01 00:00:00.000".substr(n[h]))break;"week"!==h&&(a=h)}if(h)var l=s.resolveDTLFormat(o[h]).main;return l},t.prototype.getLabel=function(){var t,i=this,o=this.chart.renderer,s=this.chart.styledMode,r=this.options,n="tooltip"+(h(r.className)?" "+r.className:""),l=r.style&&r.style.pointerEvents||(!this.followPointer&&r.stickOnContact?"auto":"none");if(!this.label){if(this.outside){var c=this.chart.options.chart.style;this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",a(t,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max(this.options.style&&this.options.style.zIndex||0,(c&&c.zIndex||0)+3)}),e.doc.body.appendChild(t),this.renderer=o=new e.Renderer(t,0,0,c,void 0,void 0,o.styledMode)}if(this.split?this.label=o.g(n):(this.label=o.label("",0,0,r.shape||"callout",null,null,r.useHTML,null,n).attr({padding:r.padding,r:r.borderRadius}),s||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).css({pointerEvents:l}).shadow(r.shadow)),s&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),i.outside&&!i.split){var d=this.label,p=d.xSetter,u=d.ySetter;d.xSetter=function(e){p.call(d,i.distance),t.style.left=e+"px"},d.ySetter=function(e){u.call(d,i.distance),t.style.top=e+"px"}}this.label.on("mouseenter",(function(){i.inContact=!0})).on("mouseleave",(function(){var t=i.chart.hoverSeries;i.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()})).attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,i){var o,s=this.chart,n=this.distance,a={},h=s.inverted&&i.h||0,l=this.outside,c=l?r.documentElement.clientWidth-2*n:s.chartWidth,d=l?Math.max(r.body.scrollHeight,r.documentElement.scrollHeight,r.body.offsetHeight,r.documentElement.offsetHeight,r.documentElement.clientHeight):s.chartHeight,p=s.pointer.getChartPosition(),u=function(o){var r="x"===o;return[o,r?c:d,r?t:e].concat(l?[r?t*p.scaleX:e*p.scaleY,r?p.left-n+(i.plotX+s.plotLeft)*p.scaleX:p.top-n+(i.plotY+s.plotTop)*p.scaleY,0,r?c:d]:[r?t:e,r?i.plotX+s.plotLeft:i.plotY+s.plotTop,r?s.plotLeft:s.plotTop,r?s.plotLeft+s.plotWidth:s.plotTop+s.plotHeight])},f=u("y"),g=u("x"),y=!this.followPointer&&m(i.ttBelow,!s.inverted==!!i.negative),v=function(t,e,i,o,s,r,c){var d=l?"y"===t?n*p.scaleY:n*p.scaleX:n,u=(i-o)/2,f=o<s-n,g=s+n+o<e,m=s-d-i+u;if(s=s+d-u,y&&g)a[t]=s;else if(!y&&f)a[t]=m;else if(f)a[t]=Math.min(c-o,0>m-h?m:m-h);else{if(!g)return!1;a[t]=Math.max(r,s+h+i>e?s:s+h)}},x=function(t,e,i,o,s){var r;return s<n||s>e-n?r=!1:a[t]=s<i/2?1:s>e-o/2?e-o-2:s-i/2,r},b=function(t){var e=f;f=g,g=e,o=t},k=function(){!1!==v.apply(0,f)?!1!==x.apply(0,g)||o||(b(!0),k()):o?a.x=a.y=0:(b(!0),k())};return(s.inverted||1<this.len)&&b(),k(),a},t.prototype.getXDateFormat=function(t,e,i){e=e.dateTimeLabelFormats;var o=i&&i.closestPointRange;return(o?this.getDateFormat(o,t.x,i.options.startOfWeek,e):e.day)||e.year},t.prototype.hide=function(t){var e=this;o.clearTimeout(this.hideTimer),t=m(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=v((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=m(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)},t.prototype.move=function(t,e,i,s){var r=this,n=r.now,a=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-n.x)||1<Math.abs(e-n.y)),h=r.followPointer||1<r.len;c(n,{x:a?(2*n.x+t)/3:t,y:a?(n.y+e)/2:e,anchorX:h?void 0:a?(2*n.anchorX+i)/3:i,anchorY:h?void 0:a?(n.anchorY+s)/2:s}),r.getLabel().attr(n),r.drawTracker(),a&&(o.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){r&&r.move(t,e,i,s)}),32))},t.prototype.refresh=function(t,e){var s=this.chart,r=this.options,n=y(t),a=n[0],h={},l=[],c=r.formatter||this.defaultFormatter;h=this.shared;var u=s.styledMode;if(r.enabled){o.clearTimeout(this.hideTimer),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var f=this.getAnchor(t,e),g=f[0],v=f[1];if(!h||!p(t)&&t.series&&t.series.noSharedTooltip?h=a.getLabelConfig():(s.pointer.applyInactiveState(n),n.forEach((function(t){t.setState("hover"),l.push(t.getLabelConfig())})),(h={x:a.category,y:a.y}).points=l),this.len=l.length,t=c.call(h,this),c=a.series,this.distance=m(c.tooltipOptions.distance,16),!1===t)this.hide();else{if(this.split)this.renderSplit(t,n);else{if(n=g,h=v,e&&s.pointer.isDirectTouch&&(n=e.chartX-s.plotLeft,h=e.chartY-s.plotTop),!s.polar&&!1!==c.options.clip&&!c.shouldShowTooltip(n,h))return void this.hide();e=this.getLabel(),r.style.width&&!u||e.css({width:this.chart.spacingBox.width+"px"}),e.attr({text:t&&t.join?t.join(""):t}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+m(a.colorIndex,c.colorIndex)),u||e.attr({stroke:r.borderColor||a.color||c.color||i.neutralColor60}),this.updatePosition({plotX:g,plotY:v,negative:a.negative,ttBelow:a.ttBelow,h:f[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}d(this,"refresh")}},t.prototype.renderSplit=function(t,o){function s(t,e,i,o,s){return void 0===s&&(s=!0),i?(e=L?0:I,t=n(t-o/2,A.left,A.right-o-(a.outside?E:0))):(e-=D,t=n(t=s?t-o-w:t+w,s?t:A.left,A.right)),{x:t,y:e}}var a=this,h=a.chart,l=a.chart,d=l.chartWidth,p=l.chartHeight,u=l.plotHeight,g=l.plotLeft,y=l.plotTop,v=l.pointer,x=l.scrollablePixelsY;x=void 0===x?0:x;var b=l.scrollablePixelsX,k=l.scrollingContainer,C=(k=void 0===k?{scrollLeft:0,scrollTop:0}:k).scrollLeft;k=k.scrollTop;var S=l.styledMode,w=a.distance,M=a.options,T=a.options.positioner,A=a.outside&&"number"!=typeof b?r.documentElement.getBoundingClientRect():{left:C,right:C+d,top:k,bottom:k+p},P=a.getLabel(),O=this.renderer||h.renderer,L=!(!h.xAxis[0]||!h.xAxis[0].opposite),E=(h=v.getChartPosition()).left;h=h.top;var D=y+k,j=0,I=u-x;f(t)&&(t=[!1,t]),t=t.slice(0,o.length+1).reduce((function(t,e,r){if(!1!==e&&""!==e){var h=(r=o[r-1]||{isHeader:!0,plotX:o[0].plotX,plotY:u,series:{}}).isHeader,l=h?a:r.series;e=e.toString();var c=l.tt,d=r.isHeader,p=r.series,f="highcharts-color-"+m(r.colorIndex,p.colorIndex,"none");if(c||(c={padding:M.padding,r:M.borderRadius},S||(c.fill=M.backgroundColor,c["stroke-width"]=M.borderWidth),c=O.label("",0,0,M[d?"headerShape":"shape"]||"callout",void 0,void 0,M.useHTML).addClass((d?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+f).attr(c).add(P)),c.isActive=!0,c.attr({text:e}),S||c.css(M.style).shadow(M.shadow).attr({stroke:M.borderColor||r.color||p.color||i.neutralColor80}),e=(d=(l=l.tt=c).getBBox()).width+l.strokeWidth(),h&&(j=d.height,I+=j,L&&(D-=j)),p=void 0===(p=r.plotX)?0:p,f=void 0===(f=r.plotY)?0:f,c=r.series,r.isHeader){p=g+p;var v=y+u/2}else{var x=c.xAxis,b=c.yAxis;p=x.pos+n(p,-w,x.len+w),c.shouldShowTooltip(0,b.pos-y+f,{ignoreX:!0})&&(v=b.pos+f)}p=n(p,A.left-w,A.right+w),"number"==typeof v?(d=d.height+1,f=T?T.call(a,e,d,r):s(p,v,h,e),t.push({align:T?0:void 0,anchorX:p,anchorY:v,boxWidth:e,point:r,rank:m(f.rank,h?1:0),size:d,target:f.y,tt:l,x:f.x})):l.isActive=!1}return t}),[]),!T&&t.some((function(t){var e=(a.outside?E:0)+t.anchorX;return e<A.left&&e+t.boxWidth<A.right||e<E-A.left+t.boxWidth&&A.right-e>e}))&&(t=t.map((function(t){var e=s(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return c(t,{target:e.y,x:e.x})}))),a.cleanSplit(),e.distribute(t,I);var B=E,z=E;t.forEach((function(t){var e=t.x,i=t.boxWidth;(t=t.isHeader)||(a.outside&&E+e<B&&(B=E+e),!t&&a.outside&&B+i>z&&(z=E+e))})),t.forEach((function(t){var e=t.x,i=t.anchorX,o=t.pos,s=t.point.isHeader;if(o={visibility:void 0===o?"hidden":"inherit",x:e,y:o+D,anchorX:i,anchorY:t.anchorY},a.outside&&e<i){var r=E-B;0<r&&(s||(o.x=e+r,o.anchorX=i+r),s&&(o.x=(z-B)/2,o.anchorX=i+r))}t.tt.attr(o)})),t=a.container,x=a.renderer,a.outside&&t&&x&&(l=P.getBBox(),x.setSize(l.width+l.x,l.height+l.y,!1),t.style.left=B+"px",t.style.top=h+"px")},t.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,i=t.hoverPoint;if(e&&i){var o={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var s=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]),s.width-i[0]):Math.max(Math.abs(i[0]),s.width),o.height=0>i[1]?Math.max(Math.abs(i[1]),s.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),s.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)"}))}}},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}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=e?"footer":"header",o=t.series,r=o.tooltipOptions,n=r.xDateFormat,a=o.xAxis,h=a&&"datetime"===a.options.type&&u(t.key),l=r[i+"Format"];return d(this,"headerFormatter",e={isFooter:e,labelConfig:t},(function(e){h&&!n&&(n=this.getXDateFormat(t,r,a)),h&&n&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+n+"}")})),o.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=s(l,{point:t,series:o},this.chart)})),e.text},t.prototype.update=function(t){this.destroy(),g(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,g(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,i=e.pointer,o=this.getLabel(),s=t.plotX+e.plotLeft;if(e=t.plotY+e.plotTop,i=i.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,o.width,o.height,t),this.outside){var r=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(o.width+r,o.height+r,!1),1===i.scaleX&&1===i.scaleY||(a(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),s*=i.scaleX,e*=i.scaleY),s+=i.left-t.x,e+=i.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),s,e)},t}(),e.Tooltip=t,e.Tooltip})),e(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){var r=t.parse,n=e.charts,a=e.noop,h=s.addEvent,l=s.attr,c=s.css,d=s.defined,p=s.extend,u=s.find,f=s.fireEvent,g=s.isNumber,m=s.isObject,y=s.objectEach,v=s.offset,x=s.pick,b=s.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 t=this;this.eventsToUnbind.forEach((function(t){return t()})),this.eventsToUnbind=[],e.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),y(t,(function(e,i){t[i]=void 0}))},t.prototype.drag=function(t){var e=this.chart,o=e.options.chart,s=t.chartX,n=t.chartY,a=this.zoomHor,h=this.zoomVert,l=e.plotLeft,c=e.plotTop,d=e.plotWidth,p=e.plotHeight,u=this.selectionMarker,f=this.mouseDownX||0,g=this.mouseDownY||0,y=m(o.panning)?o.panning&&o.panning.enabled:o.panning,v=o.panKey&&t[o.panKey+"Key"];if((!u||!u.touch)&&(s<l?s=l:s>l+d&&(s=l+d),n<c?n=c:n>c+p&&(n=c+p),this.hasDragged=Math.sqrt(Math.pow(f-s,2)+Math.pow(g-n,2)),10<this.hasDragged)){var x=e.isInsidePlot(f-l,g-c,{visiblePlotOnly:!0});e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&x&&!v&&!u&&(this.selectionMarker=u=e.renderer.rect(l,c,a?1:d,h?1:p,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||u.attr({fill:o.selectionMarkerFill||r(i.highlightColor80).setOpacity(.25).get()})),u&&a&&(s-=f,u.attr({width:Math.abs(s),x:(0<s?0:s)+f})),u&&h&&(s=n-g,u.attr({height:Math.abs(s),y:(0<s?0:s)+g})),x&&!u&&y&&e.pan(t,o.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.drop=function(t){var e=this,i=this.chart,o=this.hasPinched;if(this.selectionMarker){var s,r={originalEvent:t,xAxis:[],yAxis:[]},n=this.selectionMarker,a=n.attr?n.attr("x"):n.x,h=n.attr?n.attr("y"):n.y,l=n.attr?n.attr("width"):n.width,u=n.attr?n.attr("height"):n.height;(this.hasDragged||o)&&(i.axes.forEach((function(i){if(i.zoomEnabled&&d(i.min)&&(o||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&g(a)&&g(h)){var n=i.horiz,c="touchend"===t.type?i.minPixelPadding:0,p=i.toValue((n?a:h)+c);n=i.toValue((n?a+l:h+u)-c),r[i.coll].push({axis:i,min:Math.min(p,n),max:Math.max(p,n)}),s=!0}})),s&&f(i,"selection",r,(function(t){i.zoom(p(t,o?{animation:!1}:null))}))),g(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),o&&this.scaleGroups()}i&&g(i.index)&&(c(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,s=this.chart,r=s.hoverPoint;return s=s.tooltip,r&&s&&s.isStickyOnContact()?r:(t.forEach((function(t){var s=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,s),(s=m(t,!0)&&t.series)&&!(s=!m(o,!0))){s=o.distX-t.distX;var r=o.dist-t.dist,n=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);s=0<(0!==s&&e?s:0!==r?r:0!==n?n:o.series.index>t.series.index?-1:1)}s&&(o=t)})),o)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,o=i.xAxis;i=i.yAxis;var s=t.shapeArgs;if(o&&i){var r=x(t.clientX,t.plotX),n=t.plotY||0;return t.isNode&&s&&g(s.x)&&g(s.y)&&(r=s.x,n=s.y),e?{chartX:i.len+i.pos-n,chartY:o.len+o.pos-r}:{chartX:r+o.pos,chartY:n+i.pos}}if(s&&s.x&&s.y)return{chartX:s.x,chartY:s.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=v(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,s,r){var n,a=[];o=!(!o||!t);var h=e&&!e.stickyTracking,l={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:s};return f(this,"beforeGetHoverData",l),h=h?[e]:i.filter((function(t){return l.filter?l.filter(t):t.visible&&!(!s&&t.directTouch)&&x(t.options.enableMouseTracking,!0)&&t.stickyTracking})),e=(n=o||!r?t:this.findNearestKDPoint(h,s,r))&&n.series,n&&(s&&!e.noSharedTooltip?(h=i.filter((function(t){return l.filter?l.filter(t):t.visible&&!(!s&&t.directTouch)&&x(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=u(t.points,(function(t){return t.x===n.x&&!t.isNull}));m(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))})):a.push(n)),f(this,"afterGetHoverData",l={hoverPoint:n}),{hoverPoint:l.hoverPoint,hoverSeries:e,hoverPoints:a}},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=l(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},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={},o&&(t.tooltip=new o(t,e.tooltip),this.followTouchMove=x(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):x(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,s=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(f(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-s,{visiblePlotOnly:!0})&&f(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(t){var i=n[x(e.hoverChartIndex,-1)],o=this.chart.tooltip;t=this.normalize(t),i&&(t.relatedTarget||t.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;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})||this.runPointActions(t)},t.prototype.onDocumentTouchEnd=function(t){n[e.hoverChartIndex]&&n[e.hoverChartIndex].pointer.drop(t)},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=this.chartPosition;t=this.normalize(t,i);var o=e.tooltip;!i||o&&o.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(t){var i=n[x(e.hoverChartIndex,-1)];i&&i.pointer.drop(t)},t.prototype.pinch=function(t){var e=this,i=e.chart,o=e.pinchDown,s=t.touches||[],r=s.length,n=e.lastValidTouch,h=e.hasZoom,l=e.selectionMarker,c={},d=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),u={};1<r&&(e.initiated=!0),h&&e.initiated&&!d&&!1!==t.cancelable&&t.preventDefault(),[].map.call(s,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(s,(function(t,e){o[e]={chartX:t.chartX,chartY:t.chartY}})),n.x=[o[0].chartX,o[1]&&o[1].chartX],n.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,s=t.toPixels(Math.min(x(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(x(t.options.max,t.dataMax),t.dataMax)),n=Math.max(s,r);e.min=Math.min(t.pos,Math.min(s,r)-o),e.max=Math.max(t.pos+t.len,n+o)}})),e.res=!0):e.followTouchMove&&1===r?this.runPointActions(e.normalize(t)):o.length&&(l||(e.selectionMarker=l=p({destroy:a,touch:!0},i.plotBox)),e.pinchTranslate(o,s,c,l,u,n),e.hasPinched=h,e.scaleGroups(c,u),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,o,s,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,o,s,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,o,s,r)},t.prototype.pinchTranslateDirection=function(t,e,i,o,s,r,n,a){var h,l,c=this.chart,d=t?"x":"y",p=t?"X":"Y",u="chart"+p,f=t?"width":"height",g=c["plot"+(t?"Left":"Top")],m=a||1,y=c.inverted,v=c.bounds[t?"h":"v"],x=1===e.length,b=e[0][u],k=i[0][u],C=!x&&e[1][u],S=!x&&i[1][u];if((i=function(){"number"==typeof S&&20<Math.abs(b-C)&&(m=a||Math.abs(k-S)/Math.abs(b-C)),l=(g-k)/m+b,h=c["plot"+(t?"Width":"Height")]/m})(),(e=l)<v.min){e=v.min;var w=!0}else e+h>v.max&&(e=v.max-h,w=!0);w?(k-=.8*(k-n[d][0]),"number"==typeof S&&(S-=.8*(S-n[d][1])),i()):n[d]=[k,S],y||(r[d]=l-g,r[f]=h),r=y?1/m:m,s[f]=h,s[d]=e,o[y?t?"scaleY":"scaleX":"scale"+p]=m,o["translate"+p]=r*g+(k-r*b)},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,s=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:s;t&&a&&b(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?n&&a&&b(a).length&&(n.refresh(a),n.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))})):s&&(s.setState(s.state,!0),i.axes.forEach((function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)})))):(s&&s.onMouseOut(),r&&r.forEach((function(t){t.setState()})),o&&o.onMouseOut(),n&&n.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(t,i){var o=this.chart,s=o.tooltip&&o.tooltip.options.enabled?o.tooltip:void 0,r=!!s&&s.shared,a=i||o.hoverPoint,l=a&&a.series||o.hoverSeries;a=(l=this.getHoverData(a,l,o.series,(!t||"touchmove"!==t.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),r,t)).hoverPoint;var c=l.hoverPoints;if(i=(l=l.hoverSeries)&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,r=r&&l&&!l.noSharedTooltip,a&&(a!==o.hoverPoint||s&&s.isHidden)){if((o.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),o.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!a.series)return;o.hoverPoints=c,o.hoverPoint=a,a.firePointEvent("mouseOver"),s&&s.refresh(r?c:a,t)}else i&&s&&!s.isHidden&&(a=s.getAnchor([{}],t),o.isInsidePlot(a[0],a[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:a[0],plotY:a[1]}));this.unDocMouseMove||(this.unDocMouseMove=h(o.container.ownerDocument,"mousemove",(function(t){var i=n[e.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(t)})),this.eventsToUnbind.push(this.unDocMouseMove)),o.axes.forEach((function(e){var i,s=x((e.crosshair||{}).snap,!0);s&&((i=o.hoverPoint)&&i.series[e.coll]===e||(i=u(c,(function(t){return t.series[e.coll]===e})))),i||!s?e.drawCrosshair(t,i):e.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var i,o=this.chart;o.series.forEach((function(s){i=t||s.getPlotBox(),s.xAxis&&s.xAxis.zoomEnabled&&s.group&&(s.group.attr(i),s.markerGroup&&(s.markerGroup.attr(i),s.markerGroup.clip(e?o.clipRect:null)),s.dataLabelsGroup&&s.dataLabelsGroup.attr(i))})),o.clipRect.attr(e||o.clipBox)},t.prototype.setDOMEvents=function(){var t=this,i=this.chart.container,o=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(h(i,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(h(i,"mouseleave",this.onContainerMouseLeave.bind(this))),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=h(o,"mouseup",this.onDocumentMouseUp.bind(this)));for(var s=this.chart.renderTo.parentElement;s&&"BODY"!==s.tagName;)this.eventsToUnbind.push(h(s,"scroll",(function(){delete t.chartPosition}))),s=s.parentElement;e.hasTouch&&(this.eventsToUnbind.push(h(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(h(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=h(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var t=this.chart,i=e.charts[x(e.hoverChartIndex,-1)];i&&i!==t&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(e.hoverChartIndex=t.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));x(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.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,o=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(o=x(i.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=o=/y/.test(o),this.zoomHor=t&&!e||o&&e,this.zoomVert=o&&!e||t&&e,this.hasZoom=t||o},t}(),e.Pointer=t})),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],(function(t,e,i){function o(){var t=[];return t.item=function(t){return this[t]},d(u,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function s(e,i,s,r){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!n[t.hoverChartIndex]||(r(e),(r=n[t.hoverChartIndex].pointer)[i]({type:s,target:e.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)}}(),n=t.charts,a=t.doc,h=t.noop,l=i.addEvent,c=i.css,d=i.objectEach,p=i.removeEvent,u={},f=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(p),t.prototype.destroy.call(this)},e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this.hasZoom&&c(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){s(t,"onContainerTouchStart","touchstart",(function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},e.prototype.onContainerPointerMove=function(t){s(t,"onContainerTouchMove","touchmove",(function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY},u[t.pointerId].target||(u[t.pointerId].target=t.currentTarget)}))},e.prototype.onDocumentPointerUp=function(t){s(t,"onDocumentTouchEnd","touchend",(function(t){delete u[t.pointerId]}))},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(l)},e}(e)})),e(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Options.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){var n=e.animObject,a=i.format,h=s.defaultOptions,l=r.addEvent,c=r.defined,d=r.erase,p=r.extend,u=r.fireEvent,f=r.getNestedProperty,g=r.isArray,m=r.isFunction,y=r.isNumber,v=r.isObject,x=r.merge,b=r.objectEach,k=r.pick,C=r.syncTimeout,S=r.removeEvent,w=r.uniqueKey;return e=function(){function e(){this.colorIndex=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.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t,e=this,i={x:e.startXPos,opacity:0},o=e.getGraphicalProps();o.singular.forEach((function(o){t="dataLabel"===o,e[o]=e[o].animate(t?{x:e[o].startXPos,y:e[o].startYPos,opacity:0}:i)})),o.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.animate(p({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,i){var o=this.series,s=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,s&&(this.y=e.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=k(this.isValid&&!this.isValid(),null===this.x||!y(this.y)))?"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(this):i),this},e.prototype.destroy=function(){function t(){for(s in(e.graphic||e.dataLabel||e.dataLabels)&&(S(e),e.destroyElements()),e)e[s]=null}var e=this,i=e.series,o=i.chart;i=i.options.dataSorting;var s,r=o.hoverPoints,a=n(e.series.chart.renderer.globalAnimation);e.legendItem&&o.legend.destroyItem(e),r&&(e.setState(),d(r,e),r.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),C(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.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,i){var o=this,s=this.series.options;(s.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),u(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=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&o.push("dataLabel","dataLabelUpper","connector"),e=o.length;e--;){var r=o[e];i[r]&&s.singular.push(r)}return["dataLabel","connector"].forEach((function(e){var o=e+"s";t[e]&&i[o]&&s.plural.push(o)})),s},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.")?f(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=c(this.id)?this.id:w(),this.resolveColor(),t.chart.pointCount++,u(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var i={},o=this.series,s=o.options.keys,r=s||o.pointArrayMap||["y"],n=r.length,a=0,h=0;if(y(t)||null===t)i[r[0]]=t;else if(g(t))for(!s&&t.length>n&&("string"==(o=typeof t[0])?i.name=t[0]:"number"===o&&(i.x=t[0]),a++);h<n;)s&&void 0===t[a]||(0<r[h].indexOf(".")?e.prototype.setNestedProperty(i,t[a],r[h]):i[r[h]]=t[a]),a++,h++;else"object"==typeof t&&(i=t,t.dataLabels&&(o._hasPointLabels=!0),t.marker&&(o._hasPointMarkers=!0));return i},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;if(delete this.nonZonedColor,t.options.colorByPoint){if(!i){var o=(e=t.options.colors||t.chart.options.colors)[t.colorCounter];e=e.length}i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)}else i||(o=t.color),i=t.colorIndex;this.colorIndex=k(this.options.colorIndex,i),this.color=k(this.options.color,o)},e.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce((function(t,i,o,s){return t[i]=s.length-1===o?e:v(t[i],!0)?t[i]:{},t[i]}),t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,o=k(i.valueDecimals,""),s=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(s||r)&&(t=t.replace(RegExp(e+"}","g"),s+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 s(){n.applyOptions(t);var o=h&&n.hasDummyGraphic;o=null===n.y?!o:o,h&&o&&(n.graphic=h.destroy(),delete n.hasDummyGraphic),v(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(n.graphic=h.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),r=n.index,a.updateParallelArrays(n,r),c.data[r]=v(c.data[r],!0)||v(t,!0)?n.options:k(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,n=this,a=n.series,h=n.graphic,l=a.chart,c=a.options;e=k(e,!0),!1===o?s():n.firePointEvent("update",{options:t},s)},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,s=o.chart;this.selectedStaging=t=k(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||s.getSelectedPoints().forEach((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(s.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=x(t.series.options.point,t.options).events;t.events=e,b(e,(function(e,i){m(e)&&l(t,i,e)})),this.hasImportedEvents=!0}},e.prototype.setState=function(e,i){var o,s=this.series,r=this.state,n=s.options.states[e||"normal"]||{},a=h.plotOptions[s.type].marker&&s.options.marker,l=a&&!1===a.enabled,c=a&&a.states&&a.states[e||"normal"]||{},d=!1===c.enabled,f=s.stateMarkerGraphic,g=this.marker||{},m=s.chart,v=s.halo,x=a&&s.markerAttribs;if(!((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===n.enabled||e&&(d||l&&!1===c.enabled)||e&&g.states&&g.states[e]&&!1===g.states[e].enabled)){if(this.state=e,x&&(o=s.markerAttribs(this,e)),this.graphic&&!this.hasDummyGraphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),e&&this.graphic.addClass("highcharts-point-"+e),!m.styledMode){var b=s.pointAttribs(this,e),C=k(m.options.chart.animation,n.animation);s.options.inactiveOtherPoints&&y(b.opacity)&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:b.opacity},C)})),this.connector&&this.connector.animate({opacity:b.opacity},C)),this.graphic.animate(b,C)}o&&this.graphic.animate(o,k(m.options.chart.animation,c.animation,a.animation)),f&&f.hide()}else e&&c&&(r=g.symbol||s.symbol,f&&f.currentSymbol!==r&&(f=f.destroy()),o&&(f?f[i?"animate":"attr"]({x:o.x,y:o.y}):r&&(s.stateMarkerGraphic=f=m.renderer.symbol(r,o.x,o.y,o.width,o.height).add(s.markerGroup),f.currentSymbol=r)),!m.styledMode&&f&&f.attr(s.pointAttribs(this,e))),f&&(f[e&&this.isInside?"show":"hide"](),f.element.point=this);n=n.halo,o=(f=this.graphic||f)&&f.visibility||"inherit",n&&n.size&&f&&"hidden"!==o&&!this.isCluster?(v||(s.halo=v=m.renderer.path().add(f.parentGroup)),v.show()[i?"animate":"attr"]({d:this.haloPath(n.size)}),v.attr({class:"highcharts-halo highcharts-color-"+k(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),v.point=this,m.styledMode||v.attr(p({fill:this.color||s.color,"fill-opacity":n.opacity},t.filterUserAttributes(n.attributes||{})))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),u(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)},e}(),o.Point=e})),e(i,"Core/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){var r=t.animObject,n=t.setAnimation,a=e.format;t=i.isFirefox;var h=i.marginNames;e=i.win;var l=s.addEvent,c=s.createElement,d=s.css,p=s.defined,u=s.discardElement,f=s.find,g=s.fireEvent,m=s.isNumber,y=s.merge,v=s.pick,x=s.relativeLength,b=s.stableSort,k=s.syncTimeout;s=s.wrap;var C=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={},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(),l(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=l(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=v(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=y(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=v(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(y(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,v(e,!0)&&i.redraw(),g(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,o=t.legendItem,s=t.legendLine,r=t.legendSymbol,n=this.itemHiddenStyle.color;i=e?i.itemStyle.color:n;var a=e&&t.color||n,h=t.options&&t.options.marker,l={fill:a};o&&o.css({fill:i,color:i}),s&&s.attr({stroke:a}),r&&(h&&r.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=n)),r.attr(l))}g(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=this.options,o=i.symbolPadding,s=!i.rtl,r=t._legendItemPos;i=r[0],r=r[1];var n=t.checkbox,a=t.legendGroup;a&&a.element&&(o={translateX:s?i:this.legendWidth-i-2*o-4,translateY:r},s=function(){g(e,"afterPositionItem",{item:t})},p(a.translateY)?a.animate(o,void 0,s):(a.attr(o),s())),n&&(n.x=i,n.y=r)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&u(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),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(s){var r=s.checkbox;if(r){var n=o+i+r.y+(this.scrollOffset||0)+3;d(r,{left:t.translateX+s.checkboxOffset+r.x-20+"px",top:n+"px",display:this.proximate||n>o-6&&n<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,null,null,null,t.useHTML,null,"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.attr({text:e.labelFormat?a(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,i=e.renderer,o=this.options,s=this.symbolWidth,r=o.symbolPadding||0,n=this.itemStyle,a=this.itemHiddenStyle,h="horizontal"===o.layout?v(o.itemDistance,20):0,l=!o.rtl,c=t.legendItem,d=!t.series,p=!d&&t.series.drawLegendSymbol?t.series:t,u=p.options,f=this.createCheckboxForItem&&u&&u.showCheckbox;u=s+r+h+(f?20:0);var g=o.useHTML,m=t.options.className;c||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=c=i.text("",l?s+r:-r,this.baseline||0,g),e.styledMode||c.css(y(t.visible?n:a)),c.attr({align:l?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:n.fontSize,c),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,c.attr("y",this.baseline),this.symbolHeight=o.symbolHeight||this.fontMetrics.f,o.squareSymbol&&(this.symbolWidth=v(o.symbolWidth,Math.max(this.symbolHeight,16)),u=this.symbolWidth+r+h+(f?20:0),l&&c.attr("x",this.symbolWidth+r))),p.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,c,g)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&n.width||c.css({width:(o.itemWidth||this.widthOption||e.spacingBox.width)-u+"px"}),this.setText(t),e=c.getBBox(),t.itemWidth=t.checkboxOffset=o.itemWidth||t.legendItemWidth||e.width+u,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,s=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=o?v(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,o&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=n+this.itemY+r,this.lastLineHeight=Math.max(s,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=e:(this.itemY+=n+s+r,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var i=e&&e.options;e&&v(i.showInLegend,!p(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))})),g(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,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(r,n){r.test(s)&&!p(t[n])&&(i[h[n]]=Math.max(i[h[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*o[n%2?"x":"y"]+v(o.margin,12)+e[n]+(i.titleOffset[n]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],o="left"===this.options.align;this.allItems.forEach((function(i){var s,r=o;if(i.yAxis){i.xAxis.options.reversed&&(r=!r),i.points&&(s=f(r?i.points:i.points.slice(0).reverse(),(function(t){return m(t.plotY)}))),r=this.itemMarginTop+i.legendItem.getBBox().height+this.itemMarginBottom;var n=i.yAxis.top-t.plotTop;i.visible?(s=s?s.plotY:i.yAxis.height,s+=n-.3*r):s=n+i.yAxis.height,e.push({target:s,size:r,item:i})}}),this),i.distribute(e,t.plotHeight),e.forEach((function(e){e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,o=this.box,s=this.options,r=this.padding;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=x(s.width,t.spacingBox.width-r);var n=t.spacingBox.width-2*r-s.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2),this.maxLegendWidth=this.widthOption||n,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var a=this.getAllItems();b(a,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),s.reversed&&a.reverse(),this.allItems=a,this.display=n=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+r;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=r,o||(this.box=o=e.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(i),o.isNew=!0),t.styledMode||o.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),0<a&&0<h&&(o[o.isNew?"attr":"animate"](o.crisp.call({},{x:0,y:0,width:a,height:h},o.strokeWidth())),o.isNew=!1),o[n?"show":"hide"](),t.styledMode&&"none"===i.getStyle("display")&&(a=h=0),this.legendWidth=a,this.legendHeight=h,n&&this.align(),this.proximate||this.positionItems(),g(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=y(t,{y:o})),this.group.align(y(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e=this,i=this.chart,o=i.renderer,s=this.options,r=s.y,n=this.padding;r=i.spacingBox.height+("top"===s.verticalAlign?-r:r)-n;var a,h,l=s.maxHeight,c=this.clipRect,d=s.navigation,p=v(d.animation,!0),u=d.arrowSize||12,f=this.nav,g=this.pages,m=this.allItems,y=function(t){"number"==typeof t?c.attr({height:t}):c&&(e.clipRect=c.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+n+"px,9999px,"+(n+t)+"px,0)":"auto")},x=function(t){return e[t]=o.circle(0,0,1.3*u).translate(u/2,u/2).add(f),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]};return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(r/=2),l&&(r=Math.min(r,l)),g.length=0,t&&0<r&&t>r&&!1!==d.enabled?(this.clipHeight=a=Math.max(r-20-this.titleHeight-n,0),this.currentPage=v(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,e){var i=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),s=g.length;(!s||i-g[s-1]>a&&(h||i)!==g[s-1])&&(g.push(h||i),s++),t.pageIx=s-1,h&&(m[e-1].pageIx=s-1),e===m.length-1&&i+o-g[s-1]>a&&i!==h&&(g.push(i),t.pageIx=s),i!==h&&(h=i)})),c||(c=e.clipRect=o.clipRect(0,n,9999,0),e.contentGroup.clip(c)),y(a),f||(this.nav=f=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,u,u).add(f),x("upTracker").on("click",(function(){e.scroll(-1,p)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(d.style),this.pager.add(f),this.down=o.symbol("triangle-down",0,0,u,u).add(f),x("downTracker").on("click",(function(){e.scroll(1,p)}))),e.scroll(0),t=r):f&&(y(),this.nav=f.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,s=this.pages,a=s.length,h=this.currentPage+t;t=this.clipHeight;var l=this.options.navigation,c=this.pager,d=this.padding;h>a&&(h=a),0<h&&(void 0!==e&&n(e,o),this.nav.attr({translateX:d,translateY:t+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),c.attr({text:h+"/"+a}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:h===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),o.styledMode||(this.up.attr({fill:1===h?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===a?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:h===a?"default":"pointer"})),this.scrollOffset=-s[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),e=r(v(e,o.renderer.globalAnimation,!0)),k((function(){g(i,"afterScroll",{currentPage:h})}),e.duration))},t.prototype.setItemEvents=function(t,e,i){var s=this,r=s.chart.renderer.boxWrapper,n=t instanceof o,a="highcharts-legend-"+(n?"point":"series")+"-active",h=s.chart.styledMode;(i?[e,t.legendSymbol]:[t.legendGroup]).forEach((function(i){i&&i.on("mouseover",(function(){t.visible&&s.allItems.forEach((function(e){t!==e&&e.setState("inactive",!n)})),t.setState("hover"),t.visible&&r.addClass(a),h||e.css(s.options.itemHoverStyle)})).on("mouseout",(function(){s.chart.styledMode||e.css(y(t.visible?s.itemStyle:s.itemHiddenStyle)),s.allItems.forEach((function(e){t!==e&&e.setState("",!n)})),r.removeClass(a),t.setState()})).on("click",(function(e){var i=function(){t.setVisible&&t.setVisible(),s.allItems.forEach((function(e){t!==e&&e.setState(t.visible?"inactive":"",!n)}))};r.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):g(t,"legendItemClick",e,i)}))}))},t.prototype.createCheckboxForItem=function(t){t.checkbox=c("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),l(t.checkbox,"click",(function(e){g(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))},t}();return(/Trident\/7\.0/.test(e.navigator&&e.navigator.userAgent)||t)&&s(C.prototype,"positionItem",(function(t,e){var i=this,o=function(){e._legendItemPos&&t.call(i,e)};o(),i.bubbleLegend||setTimeout(o)})),i.Legend=C,i.Legend})),e(i,"Core/Series/SeriesRegistry.js",[i["Core/Globals.js"],i["Core/Options.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s,r=e.defaultOptions,n=o.error,a=o.extendClass,h=o.merge;return function(e){function o(t,o){var s=r.plotOptions||{},n=o.defaultOptions;o.prototype.pointClass||(o.prototype.pointClass=i),o.prototype.type=t,n&&(s[t]=n),e.seriesTypes[t]=o}e.seriesTypes=t.seriesTypes,e.getSeries=function(t,i){void 0===i&&(i={});var o=t.options.chart;o=i.type||o.type||o.defaultSeriesType||"";var s=e.seriesTypes[o];return e||n(17,!0,t,{missingModuleFor:o}),"function"==typeof(o=new s).init&&o.init(t,i),o},e.registerSeriesType=o,e.seriesType=function(t,s,n,l,c){var d=r.plotOptions||{};return s=s||"",d[t]=h(d[s],n),o(t,a(e.seriesTypes[s]||function(){},l)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=a(i,c)),e.seriesTypes[t]}}(s||(s={})),t.seriesType=s.seriesType,s})),e(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Legend.js"],i["Core/MSPointer.js"],i["Core/Options.js"],i["Core/Color/Palette.js"],i["Core/Pointer.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Time.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],(function(t,e,i,o,s,r,n,a,h,l,c,d,p){var u=t.animate,f=t.animObject,g=t.setAnimation,m=i.numberFormat,y=o.charts,v=o.doc,x=o.win,b=n.defaultOptions,k=n.defaultTime,C=l.seriesTypes,S=d.addEvent,w=d.attr,M=d.cleanRecursively,T=d.createElement,A=d.css,P=d.defined,O=d.discardElement,L=d.erase,E=d.error,D=d.extend,j=d.find,I=d.fireEvent,B=d.getStyle,z=d.isArray,N=d.isFunction,R=d.isNumber,W=d.isObject,G=d.isString,H=d.merge,X=d.objectEach,Y=d.pick,F=d.pInt,_=d.relativeLength,U=d.removeEvent,V=d.splat,K=d.syncTimeout,Z=d.uniqueKey,q=o.marginNames,$=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.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.prototype.getArgs=function(t,e,i){G(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var i=t.plotOptions||{};I(this,"init",{args:arguments},(function(){var s=H(b,t),r=s.chart;X(s.plotOptions,(function(t,e){W(t)&&(t.tooltip=i[e]&&H(i[e].tooltip)||void 0)})),s.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t;var n=r.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=s,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new c(t.time):o.time,this.numberFormatter=r.numberFormatter||m,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes;var a=this;a.index=y.length,y.push(a),o.chartCount++,n&&X(n,(function(t,e){N(t)&&S(a,e,t)})),a.xAxis=[],a.yAxis=[],a.pointCount=a.colorCounter=a.symbolCounter=0,I(a,"afterInit"),a.firstRender()}))},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var i=C[e];return i||E(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;for(t=t||0;t<e.length;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,s=this.plotBox,r=this.plotLeft,n=this.plotTop,a=this.scrollablePlotBox,h=this.scrollingContainer,l=(h=void 0===h?{scrollLeft:0,scrollTop:0}:h).scrollLeft;h=h.scrollTop;var c=i.series;if(s=i.visiblePlotOnly&&a||s,t={x:a=i.inverted?e:t,y:e=i.inverted?t:e,isInsidePlot:!0},!i.ignoreX){var d=c&&(o?c.yAxis:c.xAxis)||{pos:r,len:1/0};(a=i.paneCoordinates?d.pos+a:r+a)>=Math.max(l+r,d.pos)&&a<=Math.min(l+r+s.width,d.pos+d.len)||(t.isInsidePlot=!1)}return!i.ignoreY&&t.isInsidePlot&&(o=c&&(o?c.xAxis:c.yAxis)||{pos:n,len:1/0},(i=i.paneCoordinates?o.pos+e:n+e)>=Math.max(h+n,o.pos)&&i<=Math.min(h+n+s.height,o.pos+o.len)||(t.isInsidePlot=!1)),I(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){I(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,o=this.pointer,s=this.legend,r=this.userOptions.legend,n=this.isDirtyLegend,a=this.isDirtyBox,h=this.renderer,l=h.isHidden(),c=[];for(this.setResponsive&&this.setResponsive(!1),g(!!this.hasRendered&&t,this),l&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var d=i[t];if(d.options.stacking||d.options.centerInCategory){var p=!0;if(d.isDirty){var u=!0;break}}}if(u)for(t=i.length;t--;)(d=i[t]).options.stacking&&(d.isDirty=!0);i.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),n=!0):r&&(r.labelFormatter||r.labelFormat)&&(n=!0)),t.isDirtyData&&I(t,"updatedData")})),n&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),p&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(a=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,c.push((function(){I(t,"afterSetExtremes",D(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(a||p)&&t.redraw()})),a&&this.drawChartBox(),I(this,"predraw"),i.forEach((function(t){(a||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),o&&o.reset(!0),h.draw(),I(this,"redraw"),I(this,"render"),l&&this.temporaryDisplay(!0),c.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,o=this.series,s=j(this.axes,e)||j(this.series,e);for(i=0;!s&&i<o.length;i++)s=j(o[i].points||[],e);return s},t.prototype.getAxes=function(){var t=this,i=this.options,o=i.xAxis=V(i.xAxis||{});i=i.yAxis=V(i.yAxis||{}),I(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)})),I(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){var t=[];return this.series.forEach((function(e){t=t.concat(e.getPointsCollection().filter((function(t){return Y(t.selectedStaging,t.selected)})))})),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:a.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:a.neutralColor60};o=this.options[t]=H(!this.styledMode&&{style:o},this.options[t],e);var s=this[t];s&&e&&(this[t]=s=s.destroy()),o&&!s&&((s=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+t,zIndex:o.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||s.css(o.style),this[t]=s)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,o=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var s=this[t],r=this.options[t],n=r.verticalAlign||"top";if(t="title"===t?-3:"top"===n?e[0]+2:0,s){if(!this.styledMode)var a=r.style.fontSize;a=i.fontMetrics(a,s).b,s.css({width:(r.width||o.width+(r.widthAdjust||0))+"px"});var h=Math.round(s.getBBox(r.useHTML).height);s.align(D({y:"bottom"===n?a:t+a,height:h},r),!1,"spacingBox"),r.floating||("top"===n?e[0]=Math.ceil(e[0]+h):"bottom"===n&&(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 s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,I(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&Y(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;P(e)||(this.containerWidth=B(i,"width")),P(t)||(this.containerHeight=B(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,_(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&&(A(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(v.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(v.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,v.body.appendChild(e)),("none"===B(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),A(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==v.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i=this.options,s=i.chart,r=this.renderTo,n=Z();r||(this.renderTo=r=s.renderTo),G(r)&&(this.renderTo=r=v.getElementById(r)),r||E(13,!0,this);var a=F(w(r,"data-highcharts-chart"));R(a)&&y[a]&&y[a].hasRendered&&y[a].destroy(),w(r,"data-highcharts-chart",this.index),r.innerHTML="",s.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize(),a=this.chartWidth;var h=this.chartHeight;if(A(r,{overflow:"hidden"}),this.styledMode||(t=D({position:"relative",overflow:"hidden",width:a+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},s.style||{})),this.container=r=T("div",{id:n},t,r),this._cursor=r.style.cursor,this.renderer=new(o[s.renderer]||o.Renderer)(r,a,h,null,s.forExport,i.exporting&&i.exporting.allowHTML,this.styledMode),g(void 0,this),this.setClassName(s.className),this.styledMode)for(e in i.defs)this.renderer.definition(i.defs[e]);else this.renderer.setStyle(s.style);this.renderer.chartIndex=this.index,I(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!P(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!P(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),I(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,s=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?s(t.axes):i&&i.length&&s(i),q.forEach((function(i,s){P(o[s])||(t[i]+=e[s])})),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,o=e.renderTo,s=P(i.width)&&P(i.height),r=i.width||B(o,"width");i=i.height||B(o,"height"),o=t?t.target:x,delete e.pointer.chartPosition,s||e.isPrinting||!r||!i||o!==x&&o!==v||(r===e.containerWidth&&i===e.containerHeight||(d.clearTimeout(e.reflowTimeout),e.reflowTimeout=K((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=S(x,"resize",(function(t){e.options&&e.reflow(t)})),S(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var o=this,s=o.renderer;o.isResizing+=1,g(i,o),i=s.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?u:A)(o.container,{width:o.chartWidth+"px",height:o.chartHeight+"px"},i),o.setChartSize(!0),s.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,I(o,"resize"),K((function(){o&&I(o,"endResize",null,(function(){--o.isResizing}))}),f(i).duration)},t.prototype.setChartSize=function(t){var e,i,o,s,r=this.inverted,n=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,c=this.spacing,d=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=s=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=r?s:o,this.plotSizeY=r?o:s,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=n.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:h-c[0]-c[2]},this.plotBox=n.plotBox={x:e,y:i,width:o,height:s},h=2*Math.floor(this.plotBorderWidth/2),r=Math.ceil(Math.max(h,d[3])/2),a=Math.ceil(Math.max(h,d[0])/2),this.clipBox={x:r,y:a,width:Math.floor(this.plotSizeX-Math.max(h,d[1])/2-r),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(h,d[2])/2-a))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),n.alignElements()),I(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){I(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(i){var o=e[i],s=W(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach((function(o,r){t[i][r]=Y(e[i+o],s[r])}))})),q.forEach((function(e,i){t[e]=Y(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,s=this.chartHeight,r=this.chartBackground,n=this.plotBackground,a=this.plotBorder,h=this.styledMode,l=this.plotBGImage,c=e.backgroundColor,d=e.plotBackgroundColor,p=e.plotBackgroundImage,u=this.plotLeft,f=this.plotTop,g=this.plotWidth,m=this.plotHeight,y=this.plotBox,v=this.clipRect,x=this.clipBox,b="animate";if(r||(this.chartBackground=r=i.rect().addClass("highcharts-background").add(),b="attr"),h)var k=t=r.strokeWidth();else t=(k=e.borderWidth||0)+(e.shadow?8:0),c={fill:c||"none"},(k||r["stroke-width"])&&(c.stroke=e.borderColor,c["stroke-width"]=k),r.attr(c).shadow(e.shadow);r[b]({x:t/2,y:t/2,width:o-t-k%2,height:s-t-k%2,r:e.borderRadius}),b="animate",n||(b="attr",this.plotBackground=n=i.rect().addClass("highcharts-plot-background").add()),n[b](y),h||(n.attr({fill:d||"none"}).shadow(e.plotShadow),p&&(l?(p!==l.attr("href")&&l.attr("href",p),l.animate(y)):this.plotBGImage=i.image(p,u,f,g,m).add())),v?v.animate({width:x.width,height:x.height}):this.clipRect=i.clipRect(x),b="animate",a||(b="attr",this.plotBorder=a=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),h||a.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),a[b](a.crisp({x:u,y:f,width:g,height:m},-a.strokeWidth())),this.isDirtyBox=!1,I(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,s=o.options.chart,r=o.options.series;["inverted","angular","polar"].forEach((function(n){for(t=C[s.type||s.defaultSeriesType],i=s[n]||t&&t.prototype[n],e=r&&r.length;!i&&e--;)(t=C[r[e].type])&&t.prototype[n]&&(i=!0);o[n]=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;G(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=Y(e.options.visible,i.options.visible,e.visible))})),I(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=D(e.style,i.style),s=F(o.left)+t.plotLeft,r=F(o.top)+t.plotTop+12;delete o.left,delete o.top,t.renderer.text(i.html,s,r).attr({zIndex:2}).css(o).add()}))},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,o=this.options,r=0,n=function(t){t.forEach((function(t){t.visible&&t.render()}))};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=H(!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&&(x.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,s=e.series,r=e.container,n=r&&r.parentNode;for(I(e,"destroy"),e.renderer.forExport?L(y,e):y[e.index]=void 0,o.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),U(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=s.length;t--;)s[t]=s[t].destroy();"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())})),r&&(r.innerHTML="",U(r),n&&O(r)),X(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(),(z(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),I(t,"beforeRender"),h&&(t.pointer=o.hasTouch||!x.PointerEvent&&!x.MSPointerEvent?new h(t,e):new r(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),I(this,"load"),I(this,"render"),P(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},t.prototype.addSeries=function(t,e,i){var o,s=this;return t&&(e=Y(e,!0),I(s,"addSeries",{options:t},(function(){o=s.initSeries(t),s.isDirtyLegend=!0,s.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),I(s,"afterAddSeries",{series:o}),e&&s.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){var s="colorAxis"===t,r=i.redraw,n=i.animation;return t=H(i.axis,{index:this[t].length,isX:"xAxis"===t}),t=s?new o.ColorAxis(this,t):new e(this,t),s&&(this.isDirtyLegend=!0,this.axes.forEach((function(t){t.series=[]})),this.series.forEach((function(t){t.bindAxes(),t.isDirtyData=!0}))),Y(r,!0)&&this.redraw(n),t},t.prototype.showLoading=function(t){var e=this,i=e.options,o=e.loadingDiv,s=e.loadingSpan,r=i.loading,n=function(){o&&A(o,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};o||(e.loadingDiv=o=T("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=T("span",{className:"highcharts-loading-inner"},null,o),S(e,"redraw",n)),o.className="highcharts-loading",p.setElementHTML(s,Y(t,i.lang.loading,"")),e.styledMode||(A(o,D(r.style,{zIndex:10})),A(s,r.labelStyle),e.loadingShown||(A(o,{opacity:0,display:""}),u(o,{opacity:r.style.opacity||.5},{duration:r.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||u(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){A(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var s,r,n,a=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,d=[];if(I(a,"update",{options:t}),l||a.setResponsive(!1,!0),t=M(t,a.options),a.userOptions=H(a.userOptions,t),s=t.chart){if(H(!0,a.options.chart,s),"className"in s&&a.setClassName(s.className),"reflow"in s&&a.setReflow(s.reflow),"inverted"in s||"polar"in s||"type"in s){a.propFromSeries();var p=!0}"alignTicks"in s&&(p=!0),X(s,(function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(l?a.isDirtyBox=!0:n=!0)})),!a.styledMode&&"style"in s&&a.renderer.setStyle(s.style)}!a.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===k&&(this.time=new c(t.time)),H(!0,a.options.time,t.time)),X(t,(function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[h[i]]?a[h[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&H(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(r=!0)})),this.collectionsWithUpdate.forEach((function(e){if(t[e]){var o=[];a[e].forEach((function(t,e){t.options.isInternal||o.push(Y(t.options.index,e))})),V(t[e]).forEach((function(t,s){var r,n=P(t.id);n&&(r=a.get(t.id)),!r&&a[e]&&(r=a[e][o?o[s]:s])&&n&&P(r.options.id)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)})),i&&a[e].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}})),d.forEach((function(t){t.chart&&t.remove(!1)})),p&&a.axes.forEach((function(t){t.update({},!1)})),r&&a.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),p=s&&s.width,s=s&&s.height,G(s)&&(s=_(s,p||a.chartWidth)),n||R(p)&&p!==a.chartWidth||R(s)&&s!==a.chartHeight?a.setSize(p,s,o):Y(e,!0)&&a.redraw(o),I(a,"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=b.lang,o=e.options.chart.resetZoomButton,s=o.theme,r=s.states,n="chart"===o.relativeTo||"spacingBox"===o.relativeTo?null:"scrollablePlotBox";I(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,s,r&&r.hover).attr({align:o.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(o.position,!1,n)})),I(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){I(this,"selection",{resetSelection:!0},this.zoom)},t.prototype.zoom=function(t){var e,i=this,o=i.pointer,s=!1,r=i.inverted?o.mouseDownX:o.mouseDownY;!t||t.resetSelection?(i.axes.forEach((function(t){e=t.zoom()})),o.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var n=t.axis,a=i.inverted?n.left:n.top,h=i.inverted?a+n.width:a+n.height,l=n.isXAxis,c=!1;(!l&&r>=a&&r<=h||l||!P(r))&&(c=!0),o[l?"zoomX":"zoomY"]&&c&&(e=n.zoom(t.min,t.max),n.displayBtn&&(s=!0))}));var n=i.resetZoomButton;s&&!n?i.showResetZoom():!s&&W(n)&&(i.resetZoomButton=n.destroy()),e&&i.redraw(Y(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i,o=this,s=o.hoverPoints,r=o.options.chart,n=o.options.mapNavigation&&o.options.mapNavigation.enabled;e="object"==typeof e?e:{enabled:e,type:"x"},r&&r.panning&&(r.panning=e);var a=e.type;I(this,"pan",{originalEvent:t},(function(){s&&s.forEach((function(t){t.setState()}));var e=[1];"xy"===a?e=[1,0]:"y"===a&&(e=[0]),e.forEach((function(e){var s=o[e?"xAxis":"yAxis"][0],r=s.horiz,h=t[r?"chartX":"chartY"],l=o[r=r?"mouseDownX":"mouseDownY"],c=(s.pointRange||0)/2,d=s.reversed&&!o.inverted||!s.reversed&&o.inverted?-1:1,p=s.getExtremes(),u=s.toValue(l-h,!0)+c*d,f=(d=s.toValue(l+s.len-h,!0)-c*d)<u;l=f?d:u,u=f?u:d,d=s.hasVerticalPanning();var g=s.panningState;!d||e||g&&!g.isDirty||s.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}),R(e.dataMin)&&R(e.dataMax)&&(g.startMin=Math.min(Y(t.options.threshold,1/0),e.dataMin,g.startMin),g.startMax=Math.max(Y(t.options.threshold,-1/0),e.dataMax,g.startMax))})),e=Math.min(Y(g&&g.startMin,p.dataMin),c?p.min:s.toValue(s.toPixels(p.min)-s.minPixelPadding)),c=Math.max(Y(g&&g.startMax,p.dataMax),c?p.max:s.toValue(s.toPixels(p.max)+s.minPixelPadding)),s.panningState=g,s.isOrdinal||(0<(d=e-l)&&(u+=d,l=e),0<(d=u-c)&&(u=c,l-=d),s.series.length&&l!==p.min&&u!==p.max&&l>=e&&u<=c&&(s.setExtremes(l,u,!1,!1,{trigger:"pan"}),o.resetZoomButton||n||l===e||u===c||!a.match("y")||(o.showResetZoom(),s.displayBtn=!1),i=!0),o[r]=h)})),i&&o.redraw(!1),A(o.container,{cursor:"move"})}))},t}();return D($.prototype,{callbacks:[],collectionsWithInit:{xAxis:[$.prototype.addAxis,[!0]],yAxis:[$.prototype.addAxis,[!1]],series:[$.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","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(" ")}),o.chart=function(t,e,i){return new $(t,e,i)},o.Chart=$,$})),e(i,"Mixins/LegendSymbol.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.merge,o=e.pick;return t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,s=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(s?(t.symbolWidth-i)/2:0,t.baseline-i+1,s?i:t.symbolWidth,i,o(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,s=e.marker,r=t.symbolWidth,n=t.symbolHeight,a=n/2,h=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={};this.chart.styledMode||(c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle)),this.legendLine=h.path([["M",0,t],["L",r,t]]).addClass("highcharts-graph").attr(c).add(l),s&&!1!==s.enabled&&r&&(e=Math.min(o(s.radius,a),a),0===this.symbol.indexOf("url")&&(s=i(s,{width:n,height:n}),e=0),this.legendSymbol=s=h.symbol(this.symbol,r/2-e,t-e,2*e,2*e,s).addClass("highcharts-point").add(l),s.isMarker=!0)}}})),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Options.js"],i["Core/Color/Palette.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h){var l=t.animObject,c=t.setAnimation,d=e.hasTouch,p=e.svg,u=e.win,f=o.defaultOptions,g=n.seriesTypes,m=h.addEvent,y=h.arrayMax,v=h.arrayMin,x=h.clamp,b=h.cleanRecursively,k=h.correctFloat,C=h.defined,S=h.erase,w=h.error,M=h.extend,T=h.find,A=h.fireEvent,P=h.getNestedProperty,O=h.isArray,L=h.isFunction,E=h.isNumber,D=h.isString,j=h.merge,I=h.objectEach,B=h.pick,z=h.removeEvent,N=h.splat,R=h.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){A(this,"init",{options:e});var i,o=this,s=t.series;this.eventOptions=this.eventOptions||{},this.eventsToUnbind=[],o.chart=t,o.options=o.setOptions(e);var r=o.options;o.linkedSeries=[],o.bindAxes(),M(o,{name:r.name,state:"",visible:!1!==r.visible,selected:!0===r.selected}),e=r.events,I(e,(function(t,e){L(t)&&o.eventOptions[e]!==t&&(L(o.eventOptions[e])&&z(o,e,o.eventOptions[e]),o.eventOptions[e]=t,m(o,e,t))})),(e&&e.click||r.point&&r.point.events&&r.point.events.click||r.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),o.parallelArrays.forEach((function(t){o[t+"Data"]||(o[t+"Data"]=[])})),o.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),o._i=B(i&&i._i,-1)+1,o.opacity=o.options.opacity,t.orderSeries(this.insert(s)),r.dataSorting&&r.dataSorting.enabled?o.setDataSortingOptions():o.points||o.data||o.setData(r.data,!1),A(this,"afterInit")},t.prototype.is=function(t){return g[t]&&this instanceof g[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(E(i)){for(e=t.length;e--;)if(i>=B(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return B(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;A(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(s){var r=0;o[s].forEach((function(o){t=o.options,(i[s]===r&&!t.isInternal||void 0!==i[s]&&i[s]===t.id||void 0===i[s]&&0===t.index)&&(e.insert(o.series),e[s]=o,o.isDirty=!0),t.isInternal||r++})),e[s]||e.optionalAxis===s||w(18,!0,o)}))})),A(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,o=arguments,s=E(e)?function(o){var s="y"===o&&i.toYData?i.toYData(t):t[o];i[o+"Data"][e]=s}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(o,2))};i.parallelArrays.forEach(s)},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(){var t,e=this.options,i=this.xIncrement,o=e.pointIntervalUnit,s=this.chart.time;return i=B(i,e.pointStart,0),this.pointInterval=t=B(this.pointInterval,e.pointInterval,1),o&&(e=new s.Date(i),"day"===o?s.set("Date",e,s.get("Date",e)+t):"month"===o?s.set("Month",e,s.get("Month",e)+t):"year"===o&&s.set("FullYear",e,s.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},t.prototype.setDataSortingOptions=function(){var t=this.options;M(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),C(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,i=e.options,o=i.plotOptions,s=e.userOptions||{};t=j(t),e=e.styledMode;var r={plotOptions:o,userOptions:t};A(this,"setOptions",r);var n=r.plotOptions[this.type],a=s.plotOptions||{};return this.userOptions=r.userOptions,s=j(n,o.series,s.plotOptions&&s.plotOptions[this.type],t),this.tooltipOptions=j(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,i.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,t.tooltip),this.stickyTracking=B(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||s.stickyTracking),null===n.marker&&delete s.marker,this.zoneAxis=s.zoneAxis,i=this.zones=(s.zones||[]).slice(),!s.negativeColor&&!s.negativeFillColor||s.zones||(o={value:s[this.zoneAxis+"Threshold"]||s.threshold||0,className:"highcharts-negative"},e||(o.color=s.negativeColor,o.fillColor=s.negativeFillColor),i.push(o)),i.length&&C(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),A(this,"afterSetOptions",{options:s}),s},t.prototype.getName=function(){return B(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var o=this.chart,s=this.userOptions,r=t+"Index",n=t+"Counter",a=i?i.length:B(o.options.chart[t+"Count"],o[t+"Count"]);if(!e){var h=B(s[r],s["_"+r]);C(h)||(o.series.length||(o[n]=0),s["_"+r]=h=o[n]%a,o[n]+=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=s.neutralColor20:this.getCyclic("color",this.options.color||f.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=t.id,s=t.x,r=this.points,n=this.options.dataSorting;if(o)var a=this.chart.get(o);else if(this.linkedParent||this.enabledDataSorting){var h=n&&n.matchByName?"name":"index";if(a=T(r,(function(e){return!e.touched&&e[h]===t[h]})),!a)return}if(a){var l=a&&a.index;void 0!==l&&(i=!0)}return void 0===l&&E(s)&&(l=this.xData.indexOf(s,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!i&&r[l]&&r[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,o,s,r=this.options,n=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,e){var o=C(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=o.x;o.id||E(d)?(-1===(d=this.findPointIndex(o,s))||void 0===d?h.push(t):a[d]&&t!==r.data[d]?(a[d].update(t,!1,null,!1),a[d].touched=!0,l&&(s=d+1)):a[d]&&(a[d].touched=!0),(!c||e!==d||n&&n.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||n&&n.enabled?d=!1:(t.forEach((function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)})),h.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!d&&(h.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,o){var s,r=this,n=r.points,a=n&&n.length||0,h=r.options,l=r.chart,c=h.dataSorting,d=null,p=r.xAxis;d=h.turboThreshold;var u,f=this.xData,g=this.yData,m=(s=r.pointArrayMap)&&s.length,y=h.keys,v=0,x=1;if(s=(t=t||[]).length,e=B(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==o&&s&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(u=this.updateData(t,i)),!u){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),d&&s>d)if(d=r.getFirstValidPoint(t),E(d))for(i=0;i<s;i++)f[i]=this.autoIncrement(),g[i]=t[i];else if(O(d))if(m)for(i=0;i<s;i++)o=t[i],f[i]=o[0],g[i]=o.slice(1,m+1);else for(y&&(v=0<=(v=y.indexOf("x"))?v:0,x=0<=(x=y.indexOf("y"))?x:1),i=0;i<s;i++)o=t[i],f[i]=o[v],g[i]=o[x];else w(12,!1,l);else for(i=0;i<s;i++)void 0!==t[i]&&(o={series:r},r.pointClass.prototype.applyOptions.apply(o,[t[i]]),r.updateParallelArrays(o,i));for(g&&D(g[0])&&w(14,!0,l),r.data=[],r.options.data=r.userOptions.data=t,i=a;i--;)n[i]&&n[i].destroy&&n[i].destroy();p&&(p.minRange=p.userMinRange),r.isDirty=l.isDirtyBox=!0,r.isDirtyData=!!n,i=!1}"point"===h.legendType&&(this.processData(),this.generatePoints()),e&&l.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return C(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(i,s){t[s]=o(e,i),t[s].index=s}),this),t.concat().sort((function(t,e){return t=P(i,t),(e=P(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,s=i.data;i.dataSorting&&i.dataSorting.enabled||!s||(s.forEach((function(i,r){s[r]=o(e,i),t[r]&&(s[r].x=t[r].x,s[r].index=r)})),e.setData(s,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xData,i=this.yData,o=e.length,s=0,r=this.xAxis,n=this.options,a=n.cropThreshold,h=t||this.getExtremesFromAll||n.getExtremesFromAll,l=this.isCartesian;t=r&&r.val2lin,n=!(!r||!r.logarithmic);var c=this.requireSorting;if(r)var d=(r=r.getExtremes()).min,p=r.max;if(l&&this.sorted&&!h&&(!a||o>a||this.forceCrop))if(e[o-1]<d||e[0]>p)e=[],i=[];else if(this.yData&&(e[0]<d||e[o-1]>p)){e=(s=this.cropData(this.xData,this.yData,d,p)).xData,i=s.yData,s=s.start;var u=!0}for(a=e.length||1;--a;)if(0<(o=n?t(e[a])-t(e[a-1]):e[a]-e[a-1])&&(void 0===f||o<f))var f=o;else 0>o&&c&&(w(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:u,cropStart:s,closestPointRange:f}},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},t.prototype.cropData=function(t,e,i,o,s){var r,n=t.length,a=0,h=n;for(s=B(s,this.cropShoulder),r=0;r<n;r++)if(t[r]>=i){a=Math.max(0,r-s);break}for(i=r;i<n;i++)if(t[i]>o){h=i+s;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t,e,i=this.options,o=i.data,s=this.data,r=this.processedXData,n=this.processedYData,a=this.pointClass,h=r.length,l=this.cropStart||0,c=this.hasGroupedData,d=i.keys,p=[];for(i=i.dataGrouping&&i.dataGrouping.groupAll?l:0,s||c||((s=[]).length=o.length,s=this.data=s),d&&c&&(this.options.keys=!1),e=0;e<h;e++){var u=l+e;if(c){var f=(new a).init(this,[r[e]].concat(N(n[e])));f.dataGroup=this.groupMap[i+e],f.dataGroup.options&&(f.options=f.dataGroup.options,M(f,f.dataGroup.options),delete f.dataLabels)}else(f=s[u])||void 0===o[u]||(s[u]=f=(new a).init(this,o[u],r[e]));f&&(f.index=c?i+e:u,p[e]=f)}if(this.options.keys=d,s&&(h!==(t=s.length)||c))for(e=0;e<t;e++)e!==l||c||(e+=h),s[e]&&(s[e].destroyElements(),s[e].plotX=void 0);this.data=s,this.points=p,A(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:v(t),max:y(t)}},t.prototype.getExtremes=function(t,e){var i,o=this.xAxis,s=this.yAxis,r=this.processedXData||this.xData,n=[],a=0,h=0,l=0,c=this.requireSorting?this.cropShoulder:0,d=!!s&&s.positiveValuesOnly;for(s=(t=t||this.stackedYData||this.processedYData||[]).length,o&&(h=(l=o.getExtremes()).min,l=l.max),i=0;i<s;i++){var p=r[i],u=t[i],f=(E(u)||O(u))&&(u.length||0<u||!d);if(p=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!o||(r[i+c]||p)>=h&&(r[i-c]||p)<=l,f&&p)if(f=u.length)for(;f--;)E(u[f])&&(n[a++]=u[f]);else n[a++]=u}return t={dataMin:v(n),dataMax:y(n)},A(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=null,i=t.length,o=0;null===e&&o<i;)e=t[o],o++;return e},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,o=i.stacking,s=this.xAxis,r=s.categories,n=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,c=!!this.modifyValue,d=this.pointPlacementToXValue(),p=!!d,u=i.threshold,f=i.startFromThreshold?u:0,g=this.zoneAxis||"y",m=Number.MAX_VALUE;for(t=0;t<l;t++){var y=h[t],v=y.x,b=y.y,S=y.low,w=o&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(f?0:u)?"-":"")+this.stackKey],M=void 0,T=void 0;if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||s.positiveValuesOnly&&!s.validatePositiveValue(v))&&(y.isNull=!0),y.plotX=e=k(x(s.translate(v,0,0,0,1,d,"flags"===this.type),-1e5,1e5)),o&&this.visible&&w&&w[v]){var P=this.getStackIndicator(P,v,this.index);y.isNull||(T=(M=w[v]).points[P.key])}if(O(T)&&(S=T[0],b=T[1],S===f&&P.key===w[v].base&&(S=B(E(u)&&u,a.min)),a.positiveValuesOnly&&0>=S&&(S=null),y.total=y.stackTotal=M.total,y.percentage=M.total&&y.y/M.total*100,y.stackY=b,this.irregularWidths||M.setOffset(this.pointXOffset||0,this.barW||0)),y.yBottom=C(S)?x(a.translate(S,0,1,0,1),-1e5,1e5):null,c&&(b=this.modifyValue(b,y)),y.plotY=void 0,E(b)&&void 0!==(b=a.translate(b,!1,!0,!1,!0))&&(y.plotY=x(b,-1e5,1e5)),y.isInside=this.isPointInside(y),y.clientX=p?k(s.translate(v,0,0,0,1,d)):e,y.negative=y[g]<(i[g+"Threshold"]||u||0),y.category=r&&void 0!==r[y.x]?r[y.x]:y.x,!y.isNull&&!1!==y.visible){void 0!==L&&(m=Math.min(m,Math.abs(e-L)));var L=e}y.zone=this.zones.length&&y.getZone(),!y.graphic&&this.group&&n&&(y.isNew=!0)}this.closestPointRangePx=m,A(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(t,e){var i=this.options,o=this.chart,s=o.inverted,r=this.xAxis,n=r&&this.yAxis,a=o.options.chart.scrollablePlotArea||{};return t&&!1===i.clip&&n?t=s?{y:-o.chartWidth+n.len+n.pos,height:o.chartWidth,width:o.chartHeight,x:-o.chartHeight+r.len+r.pos}:{y:-n.pos,height:o.chartHeight,width:o.chartWidth,x:-r.pos}:(t=this.clipBox||o.clipBox,e&&(t.width=o.plotSizeX,t.x=(o.scrollablePixelsX||0)*(a.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},t.prototype.getSharedClipKey=function(t){if(this.sharedClipKey)return this.sharedClipKey;var e=[t&&t.duration,t&&t.easing,t&&t.defer,this.getClipBox(t).height,this.options.xAxis,this.options.yAxis].join();return(!1!==this.options.clip||t)&&(this.sharedClipKey=e),e},t.prototype.setClip=function(t){var e=this.chart,i=this.options,o=e.renderer,s=e.inverted,r=this.clipBox,n=this.getClipBox(t),a=this.getSharedClipKey(t),h=e.sharedClips[a],l=e.sharedClips[a+"m"];t&&(n.width=0,s&&(n.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),h?e.hasLoaded||h.attr(n):(t&&(e.sharedClips[a+"m"]=l=o.clipRect(s?(e.plotSizeX||0)+99:-99,s?-e.plotLeft:-e.plotTop,99,s?e.chartWidth:e.chartHeight)),e.sharedClips[a]=h=o.clipRect(n),h.count={length:0}),t&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||r?h:e.clipRect),this.markerGroup.clip(l)),t||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&(r||(e.sharedClips[a]=h.destroy()),l&&(e.sharedClips[a+"m"]=l.destroy())))},t.prototype.animate=function(t){var e=this.chart,i=l(this.options.animation),o=this.sharedClipKey;if(t)this.setClip(i);else if(o){t=e.sharedClips[o],o=e.sharedClips[o+"m"];var s=this.getClipBox(i,!0);t&&t.animate(s,i),o&&o.animate({width:s.width+99,x:s.x-(e.inverted?0:99)},i)}},t.prototype.afterAnimate=function(){this.setClip(),A(this,"afterAnimate"),this.finishedAnimating=!0},t.prototype.drawPoints=function(){var t,e,i=this.points,o=this.chart,s=this.options.marker,r=this[this.specialGroup]||this.markerGroup,n=this.xAxis,a=B(s.enabled,!(n&&!n.isRadial)||null,this.closestPointRangePx>=s.enabledThreshold*s.radius);if(!1!==s.enabled||this._hasPointMarkers)for(t=0;t<i.length;t++){var h=i[t],l=(e=h.graphic)?"animate":"attr",c=h.marker||{},d=!!h.marker;if((a&&void 0===c.enabled||c.enabled)&&!h.isNull&&!1!==h.visible){var p=B(c.symbol,this.symbol),u=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=n.reversed?-(u.width||0):n.width);var f=!1!==h.isInside;e?e[f?"show":"hide"](f).animate(u):f&&(0<(u.width||0)||h.hasImage)&&(h.graphic=e=o.renderer.symbol(p,u.x,u.y,u.width,u.height,d?c:s).add(r),this.enabledDataSorting&&o.hasRendered&&(e.attr({x:h.startXPos}),l="animate")),e&&"animate"===l&&e[f?"show":"hide"](f).animate(u),e&&!o.styledMode&&e[l](this.pointAttribs(h,h.selected&&"select")),e&&e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var i=this.options,o=i.marker,s=t.marker||{},r=s.symbol||o.symbol,n=B(s.radius,o.radius);return e&&(o=o.states[e],e=s.states&&s.states[e],n=B(e&&e.radius,o&&o.radius,n+(o&&o.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(n=0),t={x:i.crisp?Math.floor(t.plotX-n):t.plotX-n,y:t.plotY-n},n&&(t.width=t.height=2*n),t},t.prototype.pointAttribs=function(t,e){var i=this.options.marker,o=t&&t.options,s=o&&o.marker||{},r=this.color,n=o&&o.color,a=t&&t.color;o=B(s.lineWidth,i.lineWidth);var h=t&&t.zone&&t.zone.color;return t=1,r=n||h||a||r,n=s.fillColor||i.fillColor||r,r=s.lineColor||i.lineColor||r,e=e||"normal",i=i.states[e],e=s.states&&s.states[e]||{},o=B(e.lineWidth,i.lineWidth,o+B(e.lineWidthPlus,i.lineWidthPlus,0)),n=e.fillColor||i.fillColor||n,{stroke:r=e.lineColor||i.lineColor||r,"stroke-width":o,fill:n,opacity:t=B(e.opacity,i.opacity,t)}},t.prototype.destroy=function(t){var e,i,o,s=this,r=s.chart,n=/AppleWebKit\/533/.test(u.navigator.userAgent),l=s.data||[];for(A(s,"destroy"),this.removeEvents(t),(s.axisTypes||[]).forEach((function(t){(o=s[t])&&o.series&&(S(o.series,s),o.isDirty=o.forceRedraw=!0)})),s.legendItem&&s.chart.legend.destroyItem(s),e=l.length;e--;)(i=l[e])&&i.destroy&&i.destroy();s.clips&&s.clips.forEach((function(t){return t.destroy()})),h.clearTimeout(s.animationTimeout),I(s,(function(t,e){t instanceof a&&!t.survive&&t[n&&"group"===e?"hide":"destroy"]()})),r.hoverSeries===s&&(r.hoverSeries=void 0),S(r.series,s),r.orderSeries(),I(s,(function(e,i){t&&"hcEvents"===i||delete s[i]}))},t.prototype.applyZones=function(){var t,e,i,o,s,r,n,a,h=this,l=this.chart,c=l.renderer,d=this.zones,p=this.clips||[],u=this.graph,f=this.area,g=Math.max(l.chartWidth,l.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],y=l.inverted,v=!1;if(d.length&&(u||f)&&m&&void 0!==m.min){var b=m.reversed,k=m.horiz;u&&!this.showLine&&u.hide(),f&&f.hide();var C=m.getExtremes();d.forEach((function(d,S){t=b?k?l.plotWidth:0:k?0:m.toPixels(C.min)||0,t=x(B(e,t),0,g),e=x(Math.round(m.toPixels(B(d.value,C.max),!0)||0),0,g),v&&(t=e=m.toPixels(C.max)),o=Math.abs(t-e),s=Math.min(t,e),r=Math.max(t,e),m.isXAxis?(i={x:y?r:s,y:0,width:o,height:g},k||(i.x=l.plotHeight-i.x)):(i={x:0,y:y?r:s,width:g,height:o},k&&(i.y=l.plotWidth-i.y)),y&&c.isVML&&(i=m.isXAxis?{x:0,y:b?s:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),p[S]?p[S].animate(i):p[S]=c.clipRect(i),n=h["zone-area-"+S],a=h["zone-graph-"+S],u&&a&&a.clip(p[S]),f&&n&&n.clip(p[S]),v=d.value>C.max,h.resetZones&&0===e&&(e=void 0)})),this.clips=p}else h.visible&&(u&&u.show(!0),f&&f.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){i[e]&&(o.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))}))}var i=this,o=i.chart;i.xAxis&&(i.eventsToUnbind.push(m(o,"resize",e)),e(),i.invertGroups=e)},t.prototype.plotGroup=function(t,e,i,o,s){var r=this[t],n=!r;return i={visibility:i,zIndex:o||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),n&&(this[t]=r=this.chart.renderer.g().add(s)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[n?"attr":"animate"](this.getPlotBox()),r},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||z(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=l(i.animation),s=!t.finishedAnimating&&e.renderer.isSVG&&o.duration,r=t.visible?"inherit":"hidden",n=i.zIndex,a=t.hasRendered,h=e.seriesGroup,c=e.inverted;A(this,"render");var d=t.plotGroup("group","series",r,n,h);t.markerGroup=t.plotGroup("markerGroup","markers",r,n,h),s&&t.animate&&t.animate(!0),d.inverted=!!B(t.invertible,t.isCartesian)&&c,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.invertGroups(c),!1===i.clip||t.sharedClipKey||a||d.clip(e.clipRect),s&&t.animate&&t.animate(),a||(s&&o.defer&&(s+=o.defer),t.animationTimeout=R((function(){t.afterAnimate()}),s||0)),t.isDirty=!1,t.hasRendered=!0,A(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,o=this.xAxis,s=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:B(o&&o.left,t.plotLeft),translateY:B(s&&s.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,o,s){var r;if(r=t&&t.length){var n=i.kdAxisArray[o%s];return t.sort((function(t,e){return t[n]-e[n]})),{point:t[r=Math.floor(r/2)],left:e(t.slice(0,r),o+1,s),right:e(t.slice(r+1),o+1,s)}}}this.buildingKdTree=!0;var i=this,o=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,R((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,s=this.kdAxisArray[0],r=this.kdAxisArray[1],n=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],d=l,p=C(e[s])&&C(l[s])?Math.pow(e[s]-l[s],2):null,u=C(e[r])&&C(l[r])?Math.pow(e[r]-l[r],2):null;return u=(p||0)+(u||0),l.dist=C(u)?Math.sqrt(u):Number.MAX_VALUE,l.distX=C(p)?Math.sqrt(p):Number.MAX_VALUE,p=0>(c=e[c]-l[c])?"right":"left",i[u=0>c?"left":"right"]&&(d=(u=t(e,i[u],a+1,h))[n]<d[n]?u:l),i[p]&&Math.sqrt(c*c)<d[n]&&(d=(e=t(e,i[p],a+1,h))[n]<d[n]?e:d),d}(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),E(t)?t*(e||i.pointRange):0},t.prototype.isPointInside=function(t){return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=this.yAxis.len&&0<=t.plotX&&t.plotX<=this.xAxis.len},t.prototype.drawTracker=function(){var t=this,e=t.options,i=e.trackByArea,o=[].concat(i?t.areaPath:t.graphPath),s=t.chart,r=s.pointer,n=s.renderer,a=s.options.tooltip.snap,h=t.tracker,l=function(e){s.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(p?1e-4:.002)+")";h?h.attr({d:o}):t.graph&&(t.tracker=n.path(o).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),s.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)}),[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&&!s.styledMode&&t.css({cursor:e.cursor}),d)&&t.on("touchstart",l)}))),A(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,s){var r=this.options,n=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,c=r.data,d=this.xData;e=B(e,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[t]);var u=p.x,f=d.length;if(this.requireSorting&&u<d[f-1])for(l=!0;f&&d[f-1]>u;)f--;this.updateParallelArrays(p,"splice",f,0,0),this.updateParallelArrays(p,f),h&&p.name&&(h[u]=p.name),c.splice(f,0,t),l&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(n[0]&&n[0].remove?n[0].remove(!1):(n.shift(),this.updateParallelArrays(p,"shift"),c.shift())),!1!==s&&A(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,s=o.data,r=s[t],n=o.points,a=o.chart,h=function(){n&&n.length===s.length&&n.splice(t,1),s.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()};c(i,a),e=B(e,!0),r?r.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),B(t,!0)&&n.redraw(e)}var r=this,n=r.chart;!1!==i?A(r,"remove",null,s):s()},t.prototype.update=function(t,e){t=b(t,this.userOptions),A(this,"update",{options:t});var i,o=this,s=o.chart,r=o.userOptions,n=o.initialType||o.type,a=s.options.plotOptions,h=t.type||r.type||s.options.chart.type,l=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||o.hasOptionChanged("dataGrouping")||o.hasOptionChanged("pointStart")||o.hasOptionChanged("pointInterval")||o.hasOptionChanged("pointIntervalUnit")||o.hasOptionChanged("keys")),c=g[n].prototype,d=["eventOptions","navigatorSeries","baseSeries"],p=o.finishedAnimating&&{animation:!1},u={};if(h=h||n,l&&(d.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&d.push("area","graph"),o.parallelArrays.forEach((function(t){d.push(t+"Data")})),t.data&&(t.dataSorting&&M(o.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=j(r,p,{index:void 0===r.index?o.index:r.index,pointStart:B(a&&a.series&&a.series.pointStart,r.pointStart,o.xData[0])},!l&&{data:o.options.data},t),l&&t.data&&(t.data=o.options.data),(d=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(d)).forEach((function(t){d[t]=o[t],delete o[t]})),r=!1,g[h]){if(r=h!==o.type,o.remove(!1,!1,!1,!0),r)if(Object.setPrototypeOf)Object.setPrototypeOf(o,g[h].prototype);else{for(i in a=Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents,c)o[i]=void 0;M(o,g[h].prototype),a?o.hcEvents=a:delete o.hcEvents}}else w(17,!0,s,{missingModuleFor:h});if(d.forEach((function(t){o[t]=d[t]})),o.init(s,t),l&&this.points){var f=o.options;!1===f.visible?(u.graphic=1,u.dataLabel=1):o._hasPointLabels||(t=f.marker,h=f.dataLabels,t&&(!1===t.enabled||"symbol"in t)&&(u.graphic=1),h&&!1===h.enabled&&(u.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(u).length&&t.destroyElements(u),!1===f.showInLegend&&t.legendItem&&s.legend.destroyItem(t))}),this)}o.initialType=n,s.linkSeries(),r&&o.linkedSeries.length&&(o.isDirtyData=!0),A(this,"afterUpdate"),B(e,!0)&&s.redraw(!!l&&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!==B(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&&A(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&&A(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var i=this,o=i.options,s=i.graph,r=o.inactiveOtherPoints,n=o.states,a=o.lineWidth,h=o.opacity,l=B(n[t||"normal"]&&n[t||"normal"].animation,i.chart.options.chart.animation);if(o=0,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(n[t]&&!1===n[t].enabled)return;if(t&&(a=n[t].lineWidth||a+(n[t].lineWidthPlus||0),h=B(n[t].opacity,h)),s&&!s.dashstyle)for(n={"stroke-width":a},s.animate(n,l);i["zone-graph-"+o];)i["zone-graph-"+o].animate(n,l),o+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:h},l)}))}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,s=i.legendItem,r=o.options.chart.ignoreHiddenSeries,n=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!n:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][a]()})),o.hoverSeries!==i&&(o.hoverPoint&&o.hoverPoint.series)!==i||i.onMouseOut(),s&&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)})),r&&(o.isDirtyBox=!0),A(i,a),!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),A(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={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:s.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:s.neutralColor20,lineColor:s.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",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"},t}(),M(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),n.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/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){var n=t.stop,a=r.addEvent,h=r.createElement,l=r.merge,c=r.pick;a(i,"afterSetChartSize",(function(t){var e=this.options.chart.scrollablePlotArea,i=e&&e.minWidth;if(e=e&&e.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i;var o={1:{name:"right",value:i}}}}else e&&(this.scrollablePixelsY=i=Math.max(0,e-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,o={2:{name:"bottom",value:i}});o&&!t.skipAxes&&this.axes.forEach((function(t){o[t.side]?t.getPlotLinePath=function(){var e=o[t.side].name,i=this[e];this[e]=i-o[t.side].value;var r=s.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[e]=i,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=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=h("div",{className:"highcharts-scrolling"},e,this.scrollingParent),a(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),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-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;t?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new s.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterDrilldown",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);var o=this.chartHeight+(this.scrollablePixelsY||0);n(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/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.getDeferredAnimation,o=e.addEvent,s=e.destroyObjectProperties,r=e.fireEvent,n=e.isNumber,a=e.objectEach,h=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,s=i.length;if(!e.isXAxis){for(this.usePercentage=!1,t=s;t--;){var n=i[o?t:s-t-1];n.setStackedPoints(),n.setGroupedPoints()}for(t=0;t<s;t++)i[t].modifyStacks();r(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;a(t,(function(t){a(t,(function(t){t.cumulative=t.total}))}))}},t.prototype.resetStacks=function(){var t=this,e=this.stacks;this.axis.isXAxis||a(e,(function(e){a(e,(function(i,o){n(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,o=e.renderer,s=this.stacks;t=i(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var r=this.stackTotalGroup=this.stackTotalGroup||o.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),a(s,(function(t){a(t,(function(t){t.render(r)}))})),r.animate({opacity:1},t)},t}();return function(){function t(){}return t.compose=function(e){o(e,"init",t.onInit),o(e,"destroy",t.onDestroy)},t.onDestroy=function(){var t=this.stacking;if(t){var e=t.stacks;a(e,(function(t,i){s(t),e[i]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}},t.onInit=function(){this.stacking||(this.stacking=new h(this))},t}()})),e(i,"Extensions/Stacking.js",[i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Axis/StackingAxis.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n){var a=i.format,h=n.correctFloat,l=n.defined,c=n.destroyObjectProperties,d=n.isArray,p=n.isNumber,u=n.objectEach,f=n.pick,g=function(){function t(t,e,i,o,s){var r=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=o,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(r?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?i?"right":"left":"center")}return t.prototype.destroy=function(){c(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,o=i.format;o=o?a(o,this,e):i.formatter.call(this),this.label?this.label.attr({text:o,visibility:"hidden"}):(this.label=e.renderer.label(o,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),o={r:i.borderRadius||0,text:o,rotation:i.rotation,padding:f(i.padding,5),visibility:"hidden"},e.styledMode||(o.fill=i.backgroundColor,o.stroke=i.borderColor,o["stroke-width"]=i.borderWidth,this.label.css(i.style)),this.label.attr(o),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,i,o,r){var n=this.axis,a=n.chart;o=n.translate(n.stacking.usePercentage?100:o||this.total,0,0,0,1),i=n.translate(i||0),i=l(o)&&Math.abs(o-i),t=f(r,a.xAxis[0].translate(this.x))+t,n=l(o)&&this.getStackBox(a,this,t,o,e,i,n),e=this.label,i=this.isNegative,t="justify"===f(this.options.overflow,"justify");var h=this.textAlign;e&&n&&(r=e.getBBox(),o=e.padding,h="left"===h?a.inverted?-o:o:"right"===h?r.width:a.inverted&&"center"===h?r.width/2:a.inverted?i?r.width+o:-o:r.width/2,i=a.inverted?r.height/2:i?-o:r.height,this.alignOptions.x=f(this.options.x,0),this.alignOptions.y=f(this.options.y,0),n.x-=h,n.y-=i,e.align(this.alignOptions,null,n),a.isInsidePlot(e.alignAttr.x+h-this.alignOptions.x,e.alignAttr.y+i-this.alignOptions.y)?e.show():(e.alignAttr.y=-9999,t=!1),t&&s.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,r,n),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),f(!t&&this.options.crop,!0)&&((a=p(e.x)&&p(e.y)&&a.isInsidePlot(e.x-o+e.width,e.y)&&a.isInsidePlot(e.x+o,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,i,o,s,r,n){var a=e.axis.reversed,h=t.inverted,l=n.height+n.pos-(h?t.plotLeft:t.plotTop);return e=e.isNegative&&!a||!e.isNegative&&a,{x:h?e?o-n.right:o-r+n.pos-t.plotLeft:i+t.xAxis[0].transB-t.plotLeft,y:h?n.height-i-s:e?l-o-r:l-o,width:h?r:s,height:h?s:r}},t}();return e.prototype.getStacks=function(){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,f(i.options.stack,""),e?o.top:o.left,e?o.height:o.width].join())}))},r.compose(t),s.prototype.setGroupedPoints=function(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?s.prototype.setStackedPoints.call(this,"group"):t&&u(t.stacks,(function(e,i){"group"===i.slice(-5)&&(u(e,(function(t){return t.destroy()})),delete t.stacks[i])}))},s.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var i=this.processedXData,o=this.processedYData,s=[],r=o.length,n=this.options,a=n.threshold,c=f(n.startFromThreshold&&a,0);n=n.stack;var p,u,m="-"+(t=t?this.type+","+e:this.stackKey),y=this.negStacks,v=this.yAxis,x=v.stacking.stacks,b=v.stacking.oldStacks;for(v.stacking.stacksTouched+=1,u=0;u<r;u++){var k=i[u],C=o[u],S=this.getStackIndicator(S,k,this.index),w=S.key,M=(p=y&&C<(c?0:a))?m:t;x[M]||(x[M]={}),x[M][k]||(b[M]&&b[M][k]?(x[M][k]=b[M][k],x[M][k].total=null):x[M][k]=new g(v,v.options.stackLabels,p,k,n)),M=x[M][k],null!==C?(M.points[w]=M.points[this.index]=[f(M.cumulative,c)],l(M.cumulative)||(M.base=w),M.touched=v.stacking.stacksTouched,0<S.index&&!1===this.singleStacks&&(M.points[w][0]=M.points[this.index+","+k+",0"][0])):M.points[w]=M.points[this.index]=null,"percent"===e?(p=p?t:m,y&&x[p]&&x[p][k]?(p=x[p][k],M.total=p.total=Math.max(p.total,M.total)+Math.abs(C)||0):M.total=h(M.total+(Math.abs(C)||0))):"group"===e?(d(C)&&(C=C[0]),null!==C&&(M.total=(M.total||0)+1)):M.total=h(M.total+(C||0)),M.cumulative="group"===e?(M.total||1)-1:f(M.cumulative,c)+(C||0),null!==C&&(M.points[w].push(M.cumulative),s[u]=M.cumulative,M.hasValidPoints=!0)}"percent"===e&&(v.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=s),v.stacking.oldStacks={}}},s.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,o=e.yAxis.stacking.stacks,s=e.processedXData,r=e.options.stacking;e[r+"Stacker"]&&[i,"-"+i].forEach((function(i){for(var n,a,h=s.length;h--;)n=s[h],t=e.getStackIndicator(t,n,e.index,i),(a=(n=o[i]&&o[i][n])&&n.points[t.key])&&e[r+"Stacker"](a,n,h)}))},s.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=h(t[0]*e),t[1]=h(t[1]*e),this.stackedYData[i]=t[1]},s.prototype.getStackIndicator=function(t,e,i,o){return!l(t)||t.x!==e||o&&t.key!==o?t={x:e,index:0,key:o}:t.index++,t.key=[i,e,t.index].join(),t},o.StackItem=g,o.StackItem})),e(i,"Series/Line/LineSeries.js",[i["Core/Color/Palette.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){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)}}(),r=o.defined,n=o.merge;return o=function(i){function o(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(o,i),o.prototype.drawGraph=function(){var e=this,i=this.options,o=(this.gappedPath||this.getGraphPath).call(this),s=this.chart.styledMode,r=[["graph","highcharts-graph"]];s||r[0].push(i.lineColor||this.color||t.neutralColor20,i.dashStyle),(r=e.getZonesGraphs(r)).forEach((function(t,r){var n=t[0],a=e[n],h=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:o.xMap,a.animate({d:o})):o.length&&(e[n]=a=e.chart.renderer.path(o).addClass(t[1]).attr({zIndex:1}).add(e.group)),a&&!s&&(n={stroke:t[2],"stroke-width":i.lineWidth,fill:e.fillGraph&&e.color||"none"},t[3]?n.dashstyle=t[3]:"square"!==i.linecap&&(n["stroke-linecap"]=n["stroke-linejoin"]="round"),a[h](n).shadow(2>r&&i.shadow)),a&&(a.startX=o.xMap,a.isArea=o.isArea)}))},o.prototype.getGraphPath=function(t,e,i){var o,s,n=this,a=n.options,h=a.step,l=[],c=[];return(o=(t=t||n.points).reversed)&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&o&&(h=4-h),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!i))).forEach((function(o,d){var p=o.plotX,u=o.plotY,f=t[d-1];(o.leftCliff||f&&f.rightCliff)&&!i&&(s=!0),o.isNull&&!r(e)&&0<d?s=!a.connectNulls:o.isNull&&!e?s=!0:(0===d||s?d=[["M",o.plotX,o.plotY]]:n.getPointSpline?d=[n.getPointSpline(t,o,d)]:h?(d=1===h?[["L",f.plotX,u]]:2===h?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):d=[["L",p,u]],c.push(o.x),h&&(c.push(o.x),2===h&&c.push(o.x)),l.push.apply(l,d),s=!1)})),l.xMap=c,n.graphPath=l},o.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},o.defaultOptions=n(e.defaultOptions,{}),o}(e),i.registerSeriesType("line",o),o})),e(i,"Series/Area/AreaSeries.js",[i["Core/Color/Color.js"],i["Mixins/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){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)}}(),r=t.parse,n=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;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,i=this.areaPath,o=this.options,s=[["area","highcharts-area",this.color,o.fillColor]];this.zones.forEach((function(t,i){s.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||e.color,t.fillColor||o.fillColor])})),s.forEach((function(t){var s=t[0],n=e[s],a=n?"animate":"attr",h={};n?(n.endX=e.preventGraphAnimation?null:i.xMap,n.animate({d:i})):(h.zIndex=0,(n=e[s]=e.chart.renderer.path(i).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(h.fill=l(t[3],r(t[2]).setOpacity(l(o.fillOpacity,.75)).get())),n[a](h),n.startX=i.xMap,n.shiftUnit=o.step?2:1}))},e.prototype.getGraphPath=function(t){var e,i=n.prototype.getGraphPath,o=this.options,s=o.stacking,r=this.yAxis,a=[],h=[],c=this.index,d=r.stacking.stacks[this.stackKey],p=o.threshold,u=Math.round(r.getThreshold(o.threshold));o=l(o.connectNulls,"percent"===s);var f=function(e,i,o){var n=t[e];e=s&&d[n.x].points[c];var l=n[o+"Null"]||0;if(o=n[o+"Cliff"]||0,n=!0,o||l){var f=(l?e[0]:e[1])+o,g=e[0]+o;n=!!l}else!s&&t[i]&&t[i].isNull&&(f=g=p);void 0!==f&&(h.push({plotX:m,plotY:null===f?u:r.getThreshold(f),isNull:n,isCliff:!0}),a.push({plotX:m,plotY:null===g?u:r.getThreshold(g),doCurve:!1}))};for(t=t||this.points,s&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){s||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=l(t[e].rectPlotX,t[e].plotX),y=s?l(t[e].yBottom,u):u;g&&!o||(o||f(e,e-1,"left"),g&&!s&&o||(h.push(t[e]),a.push({x:e,plotX:m,plotY:y})),o||f(e,e+1,"right"))}return e=i.call(this,h,!0,!0),a.reversed=!0,(y=(g=i.call(this,a,!0,!0))[0])&&"M"===y[0]&&(g[0]=["L",y[1],y[2]]),(g=e.concat(g)).length&&g.push(["Z"]),i=i.call(this,h,!1,o),g.xMap=e.xMap,this.areaPath=g,i},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],s=this.xAxis,r=this.yAxis,n=r.stacking.stacks[this.stackKey],a={},c=r.series,d=c.length,p=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(n,(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 s=1===i?"rightNull":"leftNull",r=0,l=n[o[h+i]];if(l)for(var y=u;0<=y&&y<d;){var v=c[y].index;(f=l.points[v])||(v===e.index?a[t][s]=!0:g[y]&&(m=n[t].points[v])&&(r-=m[1]-m[0])),y+=p}a[t][1===i?"rightCliff":"leftCliff"]=r}));else{for(var v=u;0<=v&&v<d;){if(f=n[t].points[c[v].index]){y=f[1];break}v+=p}y=l(y,0),y=r.translate(y,0,1,0,1),i.push({isNull:!0,plotX:s.translate(t,0,0,0,1),x:t,plotY:y,yBottom:y})}}))}return i},e.defaultOptions=a(n.defaultOptions,{threshold:0}),e}(n),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])},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=t.seriesTypes.line,s=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,s=e.plotY||0,n=t[i-1];if(i=t[i+1],n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!e.isCliff){t=n.plotY||0;var a=i.plotX||0;i=i.plotY||0;var h=0,l=(1.5*o+(n.plotX||0))/2.5,c=(1.5*s+t)/2.5,d=(1.5*s+i)/2.5;(a=(1.5*o+a)/2.5)!==l&&(h=(d-c)*(a-o)/(a-l)+s-d),d+=h,(c+=h)>t&&c>s?d=2*s-(c=Math.max(t,s)):c<t&&c<s&&(d=2*s-(c=Math.min(t,s))),d>i&&d>s?c=2*s-(d=Math.max(i,s)):d<i&&d<s&&(c=2*s-(d=Math.min(i,s))),e.rightContX=a,e.rightContY=d}return e=["C",r(n.rightContX,n.plotX,0),r(n.rightContY,n.plotY,0),r(l,o,0),r(c,s,0),o,s],n.rightContX=n.rightContY=void 0,e},e.defaultOptions=s(o.defaultOptions),e}(o),t.registerSeriesType("spline",e),e})),e(i,"Series/AreaSpline/AreaSplineSeries.js",[i["Series/Area/AreaSeries.js"],i["Series/Spline/SplineSeries.js"],i["Mixins/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){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)}}(),n=t.prototype,a=s.extend,h=s.merge;return s=function(i){function o(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return r(o,i),o.defaultOptions=h(e.defaultOptions,t.defaultOptions),o}(e),a(s.prototype,{getGraphPath:n.getGraphPath,getStackPoints:n.getStackPoints,drawGraph:n.drawGraph,drawLegendSymbol:i.drawRectangle}),o.registerSeriesType("areaspline",s),s})),e(i,"Series/Column/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Color/Palette.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a){var h,l=this&&this.__extends||(h=function(t,e){return h=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])},h(t,e)},function(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=t.animObject,d=e.parse,p=i.hasTouch;t=i.noop;var u=a.clamp,f=a.css,g=a.defined,m=a.extend,y=a.fireEvent,v=a.isArray,x=a.isNumber,b=a.merge,k=a.pick,C=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 l(e,t),e.prototype.animate=function(t){var e=this,i=this.yAxis,o=e.options,s=this.chart.inverted,r={},n=s?"translateX":"translateY";if(t)r.scaleY=.001,t=u(i.toPixels(o.threshold),i.pos,i.pos+i.len),s?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var a=Number(e.group.attr(n));e.group.animate({scaleY:1},m(c(e.options.animation),{step:function(t,o){e.group&&(r[n]=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,s=i.options.reversedStacks;s=i.reversed&&!s||!i.reversed&&s;var r,n={},a=0;!1===e.grouping?a=1:t.chart.series.forEach((function(e){var i=e.yAxis,s=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&o.len===i.len&&o.pos===i.pos){if(s.stacking&&"group"!==s.stacking){r=e.stackKey,void 0===n[r]&&(n[r]=a++);var h=n[r]}else!1!==s.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,k(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(s?1:0))*c-h/2)*(s?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var s=this.chart,r=this.borderWidth,n=-(r%2?.5:0);return r=r%2?.5:1,s.inverted&&s.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(t+i)+n,i-=t=Math.round(t)+n),o=Math.round(e+o)+r,n=.5>=Math.abs(e)&&.5<o,o-=e=Math.round(e)+r,n&&o&&(--e,o+=1),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var s=this,r=this.options.stacking;if(!i.isNull&&1<o.columnCount){var n=0,a=0;C(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(t){if("number"==typeof i.x&&(t=t[i.x.toString()])){var e=t.points[s.index],o=t.total;r?(e&&(n=a),t.hasValidPoints&&a++):v(e)&&(n=e[1],a=o||0)}})),t=(i.plotX||0)+((a-1)*o.paddedWidth+e)/2-e-n*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=k(i.borderWidth,o?0:1);var s=t.xAxis,n=t.yAxis,a=i.threshold,h=t.translatedThreshold=n.getThreshold(a),l=k(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,p=t.barW=Math.max(d,1+2*o),f=t.pointXOffset=c.offset,m=t.dataMin,y=t.dataMax;e.inverted&&(h-=.5),i.pointPadding&&(p=Math.ceil(p)),r.prototype.translate.apply(t),t.points.forEach((function(o){var r=k(o.yBottom,h),v=999+Math.abs(r),b=d,C=o.plotX||0;v=u(o.plotY,-v,n.len+v),C+=f;var S=p,w=Math.min(v,r),M=Math.max(v,r)-w;if(l&&Math.abs(M)<l){M=l;var T=!n.reversed&&!o.negative||n.reversed&&o.negative;x(a)&&x(y)&&o.y===a&&y<=a&&(n.min||0)<a&&(m!==y||(n.max||0)<=a)&&(T=!T),w=Math.abs(w-h)>l?r-l:h-(T?l:0)}g(o.options.pointWidth)&&(b=S=Math.ceil(o.options.pointWidth),C-=Math.round((b-d)/2)),i.centerInCategory&&(C=t.adjustForMissingColumns(C,b,o,c)),o.barX=C,o.pointWidth=b,o.tooltipPos=e.inverted?[u(n.len+n.pos-e.plotLeft-v,n.pos-e.plotLeft,n.len+n.pos-e.plotLeft),s.len+s.pos-e.plotTop-C-S/2,M]:[s.left-e.plotLeft+C+S/2,u(v+n.pos-e.plotTop,n.pos-e.plotTop,n.len+n.pos-e.plotTop),M],o.shapeType=t.pointClass.prototype.shapeType||"rect",o.shapeArgs=t.crispCol.apply(t,o.isNull?[C,h,S,0]:[C,w,S,M])}))},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||{},s=o.stroke||"borderColor",r=o["stroke-width"]||"borderWidth",n=t&&t.color||this.color,a=t&&t[s]||i[s]||n,h=t&&t[r]||i[r]||this[r]||0;o=t&&t.options.dashStyle||i.dashStyle;var l=k(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var c=t.getZone();n=t.options.color||c&&(c.color||t.nonZonedColor)||this.color,c&&(a=c.borderColor||a,o=c.dashStyle||o,h=c.borderWidth||h)}return e&&t&&(e=(t=b(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=t.color||void 0!==e&&d(n).brighten(t.brightness).get()||n,a=t[s]||a,h=t[r]||h,o=t.dashStyle||o,l=k(t.opacity,l)),s={fill:n,stroke:a,"stroke-width":h,opacity:l},o&&(s.dashstyle=o),s},e.prototype.drawPoints=function(){var t,e=this,i=this.chart,o=e.options,s=i.renderer,r=o.animationLimit||250;e.points.forEach((function(n){var a=n.graphic,h=!!a,l=a&&i.pointCount<r?"animate":"attr";x(n.plotY)&&null!==n.y?(t=n.shapeArgs,a&&n.hasNewShapeType()&&(a=a.destroy()),e.enabledDataSorting&&(n.startXPos=e.xAxis.reversed?-(t&&t.width||0):e.xAxis.width),a||(n.graphic=a=s[n.shapeType](t).add(n.group||e.group))&&e.enabledDataSorting&&i.hasRendered&&i.pointCount<r&&(a.attr({x:n.startXPos}),h=!0,l="animate"),a&&h&&a[l](b(t)),o.borderRadius&&a[l]({r:o.borderRadius}),i.styledMode||a[l](e.pointAttribs(n,n.selected&&"select")).shadow(!1!==n.allowShadow&&o.shadow,null,o.stacking&&!o.borderRadius),a&&(a.addClass(n.getClassName(),!0),a.attr({visibility:n.visible?"inherit":"hidden"}))):a&&(n.graphic=a.destroy())}))},e.prototype.drawTracker=function(){var t,e=this,i=e.chart,o=i.pointer,s=function(t){var e=o.getPointFromEvent(t);void 0!==e&&(o.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=v(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",(function(t){o.onTrackerMouseOut(t)})),p&&e[t].on("touchstart",s),!i.styledMode&&e.options.cursor&&e[t].css(f).css({cursor:e.options.cursor}))})),e._hasTracking=!0),y(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=b(r.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:s.neutralColor20,borderColor:s.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:s.backgroundColor}),e}(r),m(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:o.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("column",a),a})),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])},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=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),s(i.prototype,{inverted:!0}),e.registerSeriesType("bar",i),i})),e(i,"Series/Scatter/ScatterSeries.js",[i["Series/Column/ColumnSeries.js"],i["Series/Line/LineSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){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)}}(),r=o.addEvent,n=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}return s(i,t),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(o,s){["x","y"].forEach((function(r,n){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),n=1e4*Math.sin(s+n*i),o[a]=c+(h-c)*(n-Math.floor(n)),"x"===r&&(o.clientX=o.plotX)}}}))}))},i.prototype.drawGraph=function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&t.prototype.drawGraph.call(this)},i.defaultOptions=a(e.defaultOptions,{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/>"}}),i}(e),n(o.prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),r(o,"afterTranslate",(function(){this.applyJitter()})),i.registerSeriesType("scatter",o),o})),e(i,"Mixins/CenteredSeries.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=i.isNumber,s=i.pick,r=i.relativeLength,n=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var t=this.options,i=this.chart,o=2*(t.slicedOffset||0),n=i.plotWidth-2*o,a=i.plotHeight-2*o,h=t.center,l=Math.min(n,a),c=t.size,d=t.innerSize||0;for("string"==typeof c&&(c=parseFloat(c)),"string"==typeof d&&(d=parseFloat(d)),t=[s(h[0],"50%"),s(h[1],"50%"),s(c&&0>c?void 0:t.size,"100%"),s(d&&0>d?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),h=0;4>h;++h)c=t[h],i=2>h||2===h&&/%$/.test(c),t[h]=r(c,[n,a,l,t[2]][h])+(i?o:0);return t[3]>t[2]&&(t[3]=t[2]),t},getStartAndEndRadians:function(t,e){return t=o(t)?t:0,e=o(e)&&e>t&&360>e-t?e:t+360,{start:n*(t+-90),end:n*(e+-90)}}}})),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)}}(),s=t.setAnimation,r=i.addEvent,n=i.defined;t=i.extend;var a=i.isNumber,h=i.pick,l=i.relativeLength;return i=function(t){function i(){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(i,t),i.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,o=this.connectorShapes;return o[i]&&(i=o[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},i.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},i.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})},i.prototype.init=function(){e.prototype.init.apply(this,arguments);var t=this;t.name=h(t.name,"Slice");var i=function(e){t.slice("select"===e.type)};return r(t,"select",i),r(t,"unselect",i),t},i.prototype.isValid=function(){return a(this.y)&&0<=this.y},i.prototype.setVisible=function(t,e){var i=this,o=i.series,s=o.chart,r=o.options.ignoreHiddenPoint;e=h(e,r),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,o.options.data[o.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](t)})),i.legendItem&&s.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),r&&(o.isDirty=!0),e&&s.redraw())},i.prototype.slice=function(t,e,i){var o=this.series;s(i,o.chart),h(e,!0),this.sliced=this.options.sliced=n(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())},i}(e),t(i.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,s=o.center[0],r=o.chart.plotWidth,n=o.chart.plotLeft;o=t.alignment;var a=this.shapeArgs.r;return i=l(i.crookDistance,1),i=["L",r="left"===o?s+a+(r+n-s-a)*(1-i):n+(s-a)*i,t.y],s=!0,("left"===o?r>t.x||r<e.x:r<t.x||r>e.x)&&(s=!1),t=[["M",t.x,t.y]],s&&t.push(i),t.push(["L",e.x,e.y]),t}}}),i})),e(i,"Series/Pie/PieSeries.js",[i["Mixins/CenteredSeries.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Color/Palette.js"],i["Series/Pie/PiePoint.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,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)}}(),d=t.getStartAndEndRadians;i=i.noop;var p=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,s=t.shapeArgs;i&&s&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:s.r,start:s.start,end:s.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],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,r,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.prototype.symbols.arc(o,r,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||s.neutralColor20})}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,s=this.radii?this.radii[i.index]||0:o[2]/2;return t=Math.asin(p((t-o[1])/(s+i.labelDistance),-1,1)),o[0]+(e?-1:1)*Math.cos(t)*(s+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,s=this,r=s.chart,n=r.renderer,a=s.options.shadow;this.drawEmpty(),!a||s.shadowGroup||r.styledMode||(s.shadowGroup=n.g("shadow").attr({zIndex:-1}).add(s.group)),s.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=n.g("shadow").add(s.shadowGroup)),c&&c.attr(t),i=s.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(e.setRadialReference(s.center).attr(o).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(s.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){this.generatePoints();var e=0,i=this.options,o=i.slicedOffset,s=o+(i.borderWidth||0),r=d(i.startAngle,i.endAngle),n=this.startAngleRad=r.start;r=(this.endAngleRad=r.end)-n;var a=this.points,h=i.dataLabels.distance;i=i.ignoreHiddenPoint;var l,c=a.length;for(t||(this.center=t=this.getCenter()),l=0;l<c;l++){var p=a[l],u=n+e*r;!p.isValid()||i&&!p.visible||(e+=p.percentage/100);var g=n+e*r,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};p.shapeType="arc",p.shapeArgs=v,p.labelDistance=m(p.options.dataLabels&&p.options.dataLabels.distance,h),p.labelDistance=y(p.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,p.labelDistance),(g=(g+u)/2)>1.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),p.slicedTranslation={translateX:Math.round(Math.cos(g)*o),translateY:Math.round(Math.sin(g)*o)},v=Math.cos(g)*t[2]/2;var x=Math.sin(g)*t[2]/2;p.tooltipPos=[t[0]+.7*v,t[1]+.7*x],p.half=g<-Math.PI/2||g>Math.PI/2?1:0,p.angle=g,u=Math.min(s,p.labelDistance/5),p.labelPosition={natural:{x:t[0]+v+Math.cos(g)*p.labelDistance,y:t[1]+x+Math.sin(g)*p.labelDistance},final:{},alignment:0>p.labelDistance?"center":p.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=0,i=this.points,o=i.length,s=this.options.ignoreHiddenPoint;for(t=0;t<o;t++){var r=i[t];!r.isValid()||s&&!r.visible||(e+=r.y)}for(this.total=e,t=0;t<o;t++)(r=i[t]).percentage=0<e&&(r.visible||!s)?r.y/e*100:0,r.total=e},e.defaultOptions=g(n.defaultOptions,{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,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:s.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),e}(n),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:r,requireSorting:!1,searchPoint:i,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l})),e(i,"Core/Series/DataLabels.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n){var a=t.getDeferredAnimation,h=e.format;t=i.noop,r=r.seriesTypes;var l=n.arrayMax,c=n.clamp,d=n.defined,p=n.extend,u=n.fireEvent,f=n.isArray,g=n.merge,m=n.objectEach,y=n.pick,v=n.relativeLength,x=n.splat,b=n.stableSort;i.distribute=function(t,e,o){function s(t,e){return t.target-e.target}var r,n=!0,a=t,h=[],l=0,d=a.reducedLen||e;for(r=t.length;r--;)l+=t[r].size;if(l>d){for(b(t,(function(t,e){return(e.rank||0)-(t.rank||0)})),l=r=0;l<=d;)l+=t[r].size,r++;h=t.splice(r-1,t.length)}for(b(t,s),t=t.map((function(t){return{size:t.size,targets:[t.target],align:y(t.align,.5)}}));n;){for(r=t.length;r--;)n=t[r],l=(Math.min.apply(0,n.targets)+Math.max.apply(0,n.targets))/2,n.pos=c(l-n.size*n.align,0,e-n.size);for(r=t.length,n=!1;r--;)0<r&&t[r-1].pos+t[r-1].size>t[r].pos&&(t[r-1].size+=t[r].size,t[r-1].targets=t[r-1].targets.concat(t[r].targets),t[r-1].align=.5,t[r-1].pos+t[r-1].size>e&&(t[r-1].pos=e-t[r-1].size),t.splice(r,1),n=!0)}a.push.apply(a,h),r=0,t.some((function(t){var s=0;if(t.targets.some((function(){if(a[r].pos=t.pos+s,void 0!==o&&Math.abs(a[r].pos-a[r].target)>o)return a.slice(0,r+1).forEach((function(t){delete t.pos})),a.reducedLen=(a.reducedLen||e)-.1*e,a.reducedLen>.1*e&&i.distribute(a,e,o),!0;s+=a[r].size,r++})))return!0})),b(a,s)},s.prototype.drawDataLabels=function(){function t(t,e){var i,o=[];if(f(t)&&!f(e))o=t.map((function(t){return g(t,e)}));else if(f(e)&&!f(t))o=e.map((function(e){return g(t,e)}));else if(f(t)||f(e))for(i=Math.max(t.length,e.length);i--;)o[i]=g(t[i],e[i]);else o=g(t,e);return o}var e=this,i=e.chart,s=e.options,r=s.dataLabels,n=e.points,l=e.hasRendered||0,c=r.animation;c=r.defer?a(i,c,e):{defer:0,duration:0};var p=i.renderer;if(r=t(t(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),r),u(this,"drawDataLabels"),f(r)||r.enabled||e._hasPointLabels){var v=e.plotGroup("dataLabelsGroup","data-labels",l?"inherit":"hidden",r.zIndex||6);v.attr({opacity:+l}),!l&&(l=e.dataLabelsGroup)&&(e.visible&&v.show(!0),l[s.animation?"animate":"attr"]({opacity:1},c)),n.forEach((function(n){x(t(r,n.dlOptions||n.options&&n.options.dataLabels)).forEach((function(t,r){var a=t.enabled&&(!n.isNull||n.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)}(n,t),l=n.dataLabels?n.dataLabels[r]:n.dataLabel,c=n.connectors?n.connectors[r]:n.connector,u=y(t.distance,n.labelDistance),f=!l;if(a){var g=n.getLabelConfig(),x=y(t[n.formatPrefix+"Format"],t.format);g=d(x)?h(x,g,i):(t[n.formatPrefix+"Formatter"]||t.formatter).call(g,t),x=t.style;var b=t.rotation;i.styledMode||(x.color=y(t.color,x.color,e.color,o.neutralColor100),"contrast"===x.color?(n.contrastColor=p.getContrast(n.color||e.color),x.color=!d(u)&&t.inside||0>u||s.stacking?n.contrastColor:o.neutralColor100):delete n.contrastColor,s.cursor&&(x.cursor=s.cursor));var k={r:t.borderRadius||0,rotation:b,padding:t.padding,zIndex:1};i.styledMode||(k.fill=t.backgroundColor,k.stroke=t.borderColor,k["stroke-width"]=t.borderWidth),m(k,(function(t,e){void 0===t&&delete k[e]}))}!l||a&&d(g)?a&&d(g)&&(l?k.text=g:(n.dataLabels=n.dataLabels||[],l=n.dataLabels[r]=b?p.text(g,0,-9999,t.useHTML).addClass("highcharts-data-label"):p.label(g,0,-9999,t.shape,null,null,t.useHTML,null,"data-label"),r||(n.dataLabel=l),l.addClass(" highcharts-data-label-color-"+n.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":""))),l.options=t,l.attr(k),i.styledMode||l.css(x).shadow(t.shadow),l.added||l.add(v),t.textPath&&!t.useHTML&&(l.setTextPath(n.getDataLabelPath&&n.getDataLabelPath(l)||n.graphic,t.textPath),n.dataLabelPath&&!t.textPath.enabled&&(n.dataLabelPath=n.dataLabelPath.destroy())),e.alignDataLabel(n,l,t,null,f)):(n.dataLabel=n.dataLabel&&n.dataLabel.destroy(),n.dataLabels&&(1===n.dataLabels.length?delete n.dataLabels:delete n.dataLabels[r]),r||delete n.dataLabel,c&&(n.connector=n.connector.destroy(),n.connectors&&(1===n.connectors.length?delete n.connectors:delete n.connectors[r])))}))}))}u(this,"afterDrawDataLabels")},s.prototype.alignDataLabel=function(t,e,i,o,s){var r=this,n=this.chart,a=this.isCartesian&&n.inverted,h=this.enabledDataSorting,l=y(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),c=y(t.plotY,-9999),d=e.getBBox(),u=i.rotation,f=i.align,g=n.isInsidePlot(l,Math.round(c),{inverted:a,paneCoordinates:!0,series:r}),m="justify"===y(i.overflow,h?"none":"justify"),v=this.visible&&!1!==t.visible&&(t.series.forceDL||h&&!m||g||y(i.inside,!!this.options.stacking)&&o&&n.isInsidePlot(l,a?o.x+1:o.y+o.height-1,{inverted:a,paneCoordinates:!0,series:r})),x=function(i){h&&r.xAxis&&!m&&r.setDataLabelStartPos(t,e,s,g,i)};if(v){var b=n.renderer.fontMetrics(n.styledMode?void 0:i.style.fontSize,e).b;o=p({x:a?this.yAxis.len-c:l,y:Math.round(a?this.xAxis.len-l:c),width:0,height:0},o),p(i,{width:d.width,height:d.height}),u?(m=!1,l=n.renderer.rotCorr(b,u),x(l={x:o.x+(i.x||0)+o.width/2+l.x,y:o.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*o.height}),e[s?"attr":"animate"](l).attr({align:f}),x=180<(x=(u+720)%360)&&360>x,"left"===f?l.y-=x?d.height:0:"center"===f?(l.x-=d.width/2,l.y-=d.height/2):"right"===f&&(l.x-=d.width,l.y-=x?0:d.height),e.placed=!0,e.alignAttr=l):(x(o),e.align(i,void 0,o),l=e.alignAttr),m&&0<=o.height?this.justifyDataLabel(e,i,l,d,o,s):y(i.crop,!0)&&(v=n.isInsidePlot(l.x,l.y,{paneCoordinates:!0,series:r})&&n.isInsidePlot(l.x+d.width,l.y+d.height,{paneCoordinates:!0,series:r})),i.shape&&!u&&e[s?"attr":"animate"]({anchorX:a?n.plotWidth-t.plotY:t.plotX,anchorY:a?n.plotHeight-t.plotX:t.plotY})}s&&h&&(e.placed=!1),v||h&&!m||(e.hide(!0),e.placed=!1)},s.prototype.setDataLabelStartPos=function(t,e,i,o,s){var r=this.chart,n=r.inverted,a=this.xAxis,h=a.reversed,l=n?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=n?s.x:h?-l-t:a.width-l+t,s=n?h?this.yAxis.height-l+t:-l-t:s.y,e.startXPos=a,e.startYPos=s,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},s.prototype.justifyDataLabel=function(t,e,i,o,s,r){var n=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 d=e.y,p=void 0===d?0:d;if(0>(d=(i.x||0)+l)){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=d;var u=!0}return(d=(i.x||0)+o.width-l)>n.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=n.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)>n.plotHeight&&("top"===h&&0>=p?(e.verticalAlign="bottom",e.inside=!0):p+=n.plotHeight-d,u=!0),u&&(e.x=c,e.y=p,t.placed=!r,t.align(e,void 0,s)),u},r.pie&&(r.pie.prototype.dataLabelPositioners={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 s,r=0;return t.forEach((function(t){(s=t.dataLabel.getBBox().width)>r&&(r=s)})),e?r+o:i-r-o}},r.pie.prototype.drawDataLabels=function(){var t,e,r,n,a,h,c,p,u,f,m,v,x=this,b=x.data,k=x.chart,C=x.options.dataLabels||{},S=C.connectorPadding,w=k.plotWidth,M=k.plotHeight,T=k.plotLeft,A=Math.round(k.chartWidth/3),P=x.center,O=P[2]/2,L=P[1],E=[[],[]],D=[0,0,0,0],j=x.dataLabelPositioners;x.visible&&(C.enabled||x._hasPointLabels)&&(b.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),s.prototype.drawDataLabels.apply(x),b.forEach((function(t){t.dataLabel&&(t.visible?(E[t.half].push(t),t.dataLabel._pos=null,!d(C.style.width)&&!d(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>A&&(t.dataLabel.css({width:Math.round(.7*A)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),E.forEach((function(e,o){var s,r=e.length,l=[];if(r){if(x.sortByAngle(e,o-.5),0<x.maxLabelDistance){var g=Math.max(0,L-O-x.maxLabelDistance),b=Math.min(L+O+x.maxLabelDistance,k.plotHeight);e.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,L-O-t.labelDistance),t.bottom=Math.min(L+O+t.labelDistance,k.plotHeight),s=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+s/2,size:s,rank:t.y},l.push(t.distributeBox))})),g=b+s-g,i.distribute(l,g,g/5)}for(m=0;m<r;m++){if(t=e[m],h=t.labelPosition,n=t.dataLabel,f=!1===t.visible?"hidden":"inherit",u=g=h.natural.y,l&&d(t.distributeBox)&&(void 0===t.distributeBox.pos?f="hidden":(c=t.distributeBox.size,u=j.radialDistributionY(t))),delete t.positionIndex,C.justify)p=j.justify(t,O,P);else switch(C.alignTo){case"connectors":p=j.alignToConnectors(e,o,w,T);break;case"plotEdges":p=j.alignToPlotEdges(n,o,w,T);break;default:p=j.radialDistributionX(x,t,u,g)}n._attr={visibility:f,align:h.alignment},v=t.options.dataLabels||{},n._pos={x:p+y(v.x,C.x)+({left:S,right:-S}[h.alignment]||0),y:u+y(v.y,C.y)-10},h.final.x=p,h.final.y=u,y(C.crop,!0)&&(a=n.getBBox().width,g=null,p-a<S&&1===o?(g=Math.round(a-p+S),D[3]=Math.max(g,D[3])):p+a>w-S&&0===o&&(g=Math.round(p+a-w+S),D[1]=Math.max(g,D[1])),0>u-c/2?D[0]=Math.max(Math.round(c/2-u),D[0]):u+c/2>M&&(D[2]=Math.max(Math.round(u+c/2-M),D[2])),n.sideOverflow=g)}}})),0===l(D)||this.verifyDataLabelOverflow(D))&&(this.placeDataLabels(),this.points.forEach((function(t){var i;v=g(C,t.options.dataLabels),(e=y(v.connectorWidth,1))&&(r=t.connector,(n=t.dataLabel)&&n._pos&&t.visible&&0<t.labelDistance?(f=n._attr.visibility,(i=!r)&&(t.connector=r=k.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(x.dataLabelsGroup),k.styledMode||r.attr({"stroke-width":e,stroke:v.connectorColor||t.color||o.neutralColor60})),r[i?"attr":"animate"]({d:t.getConnectorPath()}),r.attr("visibility",f)):r&&(t.connector=r.destroy()))})))},r.pie.prototype.placeDataLabels=function(){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)},r.pie.prototype.alignDataLabel=t,r.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,o=i.center,s=i.minSize||80,r=null!==i.size;if(!r){if(null!==o[0])var n=Math.max(e[2]-Math.max(t[1],t[3]),s);else n=Math.max(e[2]-t[1]-t[3],s),e[0]+=(t[3]-t[1])/2;null!==o[1]?n=c(n,s,e[2]-Math.max(t[0],t[2])):(n=c(n,s,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(v(i.innerSize||0,n),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}),r.column&&(r.column.prototype.alignDataLabel=function(t,e,i,o,r){var n=this.chart.inverted,a=t.series,h=t.dlBox||t.shapeArgs,l=y(t.below,t.plotY>y(this.translatedThreshold,a.yAxis.len)),c=y(i.inside,!!this.options.stacking);h&&(0>(o=g(h)).y&&(o.height+=o.y,o.y=0),0<(h=o.y+o.height-a.yAxis.len)&&h<o.height&&(o.height-=h),n&&(o={x:a.yAxis.len-o.y-o.height,y:a.xAxis.len-o.x-o.width,width:o.height,height:o.width}),c||(n?(o.x+=l?0:o.width,o.width=0):(o.y+=l?o.height:0,o.height=0))),i.align=y(i.align,!n||c?"center":l?"right":"left"),i.verticalAlign=y(i.verticalAlign,n||c?"middle":l?"top":"bottom"),s.prototype.alignDataLabel.call(this,t,e,i,o,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})})),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"}),t.visibility=o?"inherit":"hidden"})),s(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0}return i}var o=e.addEvent,s=e.fireEvent,r=e.isArray,n=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){e.push(t.label)}))}))})),(this.series||[]).forEach((function(o){var s=o.options.dataLabels;o.visible&&(!1!==s.enabled||o._hasPointLabels)&&(s=function(o){return o.forEach((function(o){o.visible&&(r(o.dataLabels)?o.dataLabels:o.dataLabel?[o.dataLabel]:[]).forEach((function(s){var r=s.options;s.labelrank=h(r.labelrank,o.labelrank,o.shapeArgs&&o.shapeArgs.height),r.allowOverlap?(s.oldOpacity=s.opacity,s.newOpacity=1,i(s,t)):e.push(s)}))}))},s(o.nodes||[]),s(o.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,o,r,a=this,h=t.length,l=a.renderer,c=!1,d=function(t){var e,i,o=t.box?0:t.padding||0,s=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])?s=+i*h:n(t.x)&&Math.round(t.x)!==t.translateX&&(s=t.x-t.translateX),{x:r.x+(a.translateX||0)+o-(s||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=d(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),o=0;o<h;o++){var p=(d=t[o])&&d.absoluteBox;for(e=o+1;e<h;++e){var u=(r=t[e])&&r.absoluteBox;!p||!u||d===r||0===d.newOpacity||0===r.newOpacity||u.x>=p.x+p.width||u.x+u.width<=p.x||u.y>=p.y+p.height||u.y+u.height<=p.y||((d.labelrank<r.labelrank?d:r).newOpacity=0)}}t.forEach((function(t){i(t,a)&&(c=!0)})),c&&s(a,"afterHideAllOverlappingLabels")}})),e(i,"Core/Responsive.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.find,o=e.isArray,s=e.isObject,r=e.merge,n=e.objectEach,a=e.pick,h=e.splat,l=e.uniqueKey;t.prototype.setResponsive=function(t,e){var o=this.options.responsive,s=[],n=this.currentResponsive;!e&&o&&o.rules&&o.rules.forEach((function(t){void 0===t._id&&(t._id=l()),this.matchResponsiveRule(t,s)}),this),e=r.apply(0,s.map((function(t){return i(o.rules,(function(e){return e._id===t})).chartOptions}))),e.isResponsiveOptions=!0,(s=s.toString()||void 0)!==(n&&n.ruleIds)&&(n&&this.update(n.undoOptions,t,!0),s?((n=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:n},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=a(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,r,a,l){var c;n(i,(function(i,n){if(!l&&-1<e.collectionsWithUpdate.indexOf(n)&&r[n])for(i=h(i),a[n]=[],c=0;c<Math.max(i.length,r[n].length);c++)r[n][c]&&(void 0===i[c]?a[n][c]=r[n][c]:(a[n][c]={},t(i[c],r[n][c],a[n][c],l+1)));else s(i)?(a[n]=o(i)?[]:{},t(i,r[n]||{},a[n],l+1)):a[n]=void 0===r[n]?null:r[n]}))}(t,this.options,i,0),i}})),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Options.js"],i["Core/Animation/Fx.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/FormatUtilities.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Series/Series.js"]],(function(t,e,i,o,s,r,n,a,h){return t.animate=s.animate,t.animObject=s.animObject,t.getDeferredAnimation=s.getDeferredAnimation,t.setAnimation=s.setAnimation,t.stop=s.stop,t.timers=o.timers,t.AST=r,t.Fx=o,t.Series=h,t.SVGElement=a,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,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.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.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,t})),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]},t.exports?(r.default=r,t.exports=s.document?r(s):r):void 0===(o=function(){return r(s)}.call(e,i,e,t))||(t.exports=o)}}]);
|