@sisense/sdk-ui 2.24.0 → 2.26.0
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/ai.cjs +59 -59
- package/dist/ai.js +1097 -1171
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +587 -616
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{execute-query-b9oy2Egy.js → apply-styled-options-to-query-Bzt2GrgO.js} +1635 -1530
- package/dist/apply-styled-options-to-query-COD9fRYD.cjs +1 -0
- package/dist/{dimensions-C1R5YRt-.js → dimensions-Ce2zWFrs.js} +1 -1
- package/dist/dimensions-u3w5qNF0.cjs +1 -0
- package/dist/{index-Ck-0gJC9.cjs → index-BX9p-XrU.cjs} +1 -1
- package/dist/{index-r66Tjiqj.js → index-D7mHzfx0.js} +9 -0
- package/dist/index.cjs +467 -452
- package/dist/index.js +27214 -34168
- package/dist/index.umd.js +718 -706
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +12 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +17 -5
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +16 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +5 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/persistence-manager.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +52 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +5 -28
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +6 -5
- package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/drilldown/components/drilldown-widget/drilldown-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +40 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +29 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +62 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +39 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/core/date-formats/simple-date-format-replacers.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-pivot-query/use-execute-pivot-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query/use-execute-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/area-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/areamap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/bar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/column-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/funnel-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/line-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pie-chart/pie-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/polar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/scatter-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/scattermap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/sunburst-chart/sunburst-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/table.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/treemap-chart/treemap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +87 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-data-options.d.ts +13 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +6 -6
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +6 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/plot-bands.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/axis-section.d.ts +29 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/tooltip-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/compose-code-to-readable.d.ts +32 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +26 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-params-to-view-model.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill-bubble-tooltip.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/types.d.ts +51 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +166 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/use-scroller-location-save.d.ts +8 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/widget-by-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/use-get-widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/to-widget-dto-panels.d.ts +170 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/utils.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +13 -16
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-api-types.d.ts +32 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-constants.d.ts +6 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +26 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/send-ai-feedback.d.ts +8 -0
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +12 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +10 -2
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts +10 -3
- package/dist/packages/sdk-ui/src/infra/contexts/emotion-cache-provider/emotion-cache-provider.d.ts +31 -3
- package/dist/packages/sdk-ui/src/infra/contexts/emotion-cache-provider/stylis-plugins/css-selector-prefix-plugin.d.ts +18 -0
- package/dist/packages/sdk-ui/src/infra/plugins/plugin-context.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +18 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +3 -4
- package/dist/packages/sdk-ui/src/modules/ai/api/types.d.ts +5 -18
- package/dist/packages/sdk-ui/src/modules/ai/chart/nlq-chart-widget.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +3 -0
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +5 -13
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/modules/ai/use-get-nlg-insights.d.ts +4 -26
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +3 -7
- package/dist/packages/sdk-ui/src/props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +7 -1
- package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +2 -0
- package/dist/packages/sdk-ui/src/types.d.ts +8 -8
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +10 -1
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +10 -1
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +10 -1
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +10 -1
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +12 -3
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +12 -3
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +12 -3
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +12 -3
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +10 -1
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +12 -3
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +10 -1
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +12 -3
- package/dist/types-COBvZZm_.cjs +1 -0
- package/dist/{types-DJtC8_5_.js → types-D6jCGncV.js} +1 -1
- package/dist/{quota-notification-CeKnEyQG.js → use-hover-B1HPf4hF.js} +27827 -19390
- package/dist/use-hover-CaQrW_gv.cjs +721 -0
- package/dist/{utils-BCp2ISWh.js → utils-BQtueE3Z.js} +13632 -13251
- package/dist/utils-CAubp1g1.cjs +179 -0
- package/dist/{widget-composer-CDNL9_XF.js → widget-composer-BAJFWk3t.js} +3 -3
- package/dist/{widget-composer-BkHZISs7.cjs → widget-composer-C75b-E6W.cjs} +1 -1
- package/package.json +11 -10
- package/dist/dimensions-C7yXAoZs.cjs +0 -1
- package/dist/execute-query-0Y9Fn9Pf.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/index.d.ts +0 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/table-widget.d.ts +0 -22
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/types.d.ts +0 -61
- package/dist/packages/sdk-ui/src/infra/styled/index.d.ts +0 -4
- package/dist/packages/sdk-ui/src/infra/styled/with-css-selector-prefix.d.ts +0 -2
- package/dist/packages/sdk-ui/src/modules/ai/api/narration-endpoints.d.ts +0 -25
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +0 -8
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/parse-compose-code.d.ts +0 -34
- package/dist/quota-notification-BqRYSJ7r.cjs +0 -713
- package/dist/types-C0QU2tsE.cjs +0 -1
- package/dist/utils-D8O1_kl3.cjs +0 -190
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";var xc=Object.defineProperty,Cc=Object.defineProperties;var Sc=Object.getOwnPropertyDescriptors;var So=Object.getOwnPropertySymbols;var Kn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable;var Wt=Math.pow,Mr=(l,w,R)=>w in l?xc(l,w,{enumerable:!0,configurable:!0,writable:!0,value:R}):l[w]=R,kt=(l,w)=>{for(var R in w||(w={}))Kn.call(w,R)&&Mr(l,R,w[R]);if(So)for(var R of So(w))qn.call(w,R)&&Mr(l,R,w[R]);return l},Nt=(l,w)=>Cc(l,Sc(w));var Te=(l,w)=>{var R={};for(var K in l)Kn.call(l,K)&&w.indexOf(K)<0&&(R[K]=l[K]);if(l!=null&&So)for(var K of So(l))w.indexOf(K)<0&&qn.call(l,K)&&(R[K]=l[K]);return R};var Ie=(l,w,R)=>Mr(l,typeof w!="symbol"?w+"":w,R);const Rt=require("./apply-styled-options-to-query-COD9fRYD.cjs"),wc=require("react/jsx-runtime"),ze=require("react"),xa=require("react-dom/server");function Ca(l){const w=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const R in l)if(R!=="default"){const K=Object.getOwnPropertyDescriptor(l,R);Object.defineProperty(w,R,K.get?K:{enumerable:!0,get:()=>l[R]})}}return w.default=l,Object.freeze(w)}const eo=Ca(wc),qe=Ca(ze);var Ki=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function fn(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function Mc(l){if(l.__esModule)return l;var w=l.default;if(typeof w=="function"){var R=function K(){return this instanceof K?Reflect.construct(w,arguments,this.constructor):w.apply(this,arguments)};R.prototype=w.prototype}else R={};return Object.defineProperty(R,"__esModule",{value:!0}),Object.keys(l).forEach(function(K){var Q=Object.getOwnPropertyDescriptor(l,K);Object.defineProperty(R,K,Q.get?Q:{enumerable:!0,get:function(){return l[K]}})}),R}function Ac(){if(console&&console.warn){for(var l=arguments.length,w=new Array(l),R=0;R<l;R++)w[R]=arguments[R];typeof w[0]=="string"&&(w[0]=`react-i18next:: ${w[0]}`),console.warn(...w)}}const Jn={};function Wr(){for(var l=arguments.length,w=new Array(l),R=0;R<l;R++)w[R]=arguments[R];typeof w[0]=="string"&&Jn[w[0]]||(typeof w[0]=="string"&&(Jn[w[0]]=new Date),Ac(...w))}const Sa=(l,w)=>()=>{if(l.isInitialized)w();else{const R=()=>{setTimeout(()=>{l.off("initialized",R)},0),w()};l.on("initialized",R)}};function Qn(l,w,R){l.loadNamespaces(w,Sa(l,R))}function ts(l,w,R,K){typeof R=="string"&&(R=[R]),R.forEach(Q=>{l.options.ns.indexOf(Q)<0&&l.options.ns.push(Q)}),l.loadLanguages(w,Sa(l,K))}function Tc(l,w){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=w.languages[0],Q=w.options?w.options.fallbackLng:!1,it=w.languages[w.languages.length-1];if(K.toLowerCase()==="cimode")return!0;const rt=(st,ht)=>{const ct=w.services.backendConnector.state[`${st}|${ht}`];return ct===-1||ct===2};return R.bindI18n&&R.bindI18n.indexOf("languageChanging")>-1&&w.services.backendConnector.backend&&w.isLanguageChangingTo&&!rt(w.isLanguageChangingTo,l)?!1:!!(w.hasResourceBundle(K,l)||!w.services.backendConnector.backend||w.options.resources&&!w.options.partialBundledLanguages||rt(K,l)&&(!Q||rt(it,l)))}function kc(l,w){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!w.languages||!w.languages.length?(Wr("i18n.languages were undefined or empty",w.languages),!0):w.options.ignoreJSONStructure!==void 0?w.hasLoadedNamespace(l,{lng:R.lng,precheck:(Q,it)=>{if(R.bindI18n&&R.bindI18n.indexOf("languageChanging")>-1&&Q.services.backendConnector.backend&&Q.isLanguageChangingTo&&!it(Q.isLanguageChangingTo,l))return!1}}):Tc(l,w,R)}const wa=ze.createContext();class Pc{constructor(){this.usedNamespaces={}}addUsedNamespaces(w){w.forEach(R=>{this.usedNamespaces[R]||(this.usedNamespaces[R]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Lc=(l,w)=>{const R=ze.useRef();return ze.useEffect(()=>{R.current=l},[l,w]),R.current};function gn(l){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:R}=w,{i18n:K,defaultNS:Q}=ze.useContext(wa)||{},it=R||K||Rt.getI18n();if(it&&!it.reportNamespaces&&(it.reportNamespaces=new Pc),!it){Wr("You will need to pass in an i18next instance by using initReactI18next");const Z=(F,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(F)?F[F.length-1]:F,V=[Z,{},!1];return V.t=Z,V.i18n={},V.ready=!1,V}it.options.react&&it.options.react.wait!==void 0&&Wr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const rt=kt(kt(kt({},Rt.getDefaults()),it.options.react),w),{useSuspense:st,keyPrefix:ht}=rt;let ct=Q||it.options&&it.options.defaultNS;ct=typeof ct=="string"?[ct]:ct||["translation"],it.reportNamespaces.addUsedNamespaces&&it.reportNamespaces.addUsedNamespaces(ct);const pt=(it.isInitialized||it.initializedStoreOnce)&&ct.every(Z=>kc(Z,it,rt));function ft(){return it.getFixedT(w.lng||null,rt.nsMode==="fallback"?ct:ct[0],ht)}const[_,et]=ze.useState(ft);let G=ct.join();w.lng&&(G=`${w.lng}${G}`);const B=Lc(G),X=ze.useRef(!0);ze.useEffect(()=>{const{bindI18n:Z,bindI18nStore:V}=rt;X.current=!0,!pt&&!st&&(w.lng?ts(it,w.lng,ct,()=>{X.current&&et(ft)}):Qn(it,ct,()=>{X.current&&et(ft)})),pt&&B&&B!==G&&X.current&&et(ft);function F(){X.current&&et(ft)}return Z&&it&&it.on(Z,F),V&&it&&it.store.on(V,F),()=>{X.current=!1,Z&&it&&Z.split(" ").forEach(I=>it.off(I,F)),V&&it&&V.split(" ").forEach(I=>it.store.off(I,F))}},[it,G]);const U=ze.useRef(!0);ze.useEffect(()=>{X.current&&!U.current&&et(ft),U.current=!1},[it,ht]);const $=[_,it,pt];if($.t=_,$.i18n=it,$.ready=pt,pt||!pt&&!st)return $;throw new Promise(Z=>{w.lng?ts(it,w.lng,ct,()=>Z()):Qn(it,ct,()=>Z())})}var Ec=!1;function Oc(l){if(l.sheet)return l.sheet;for(var w=0;w<document.styleSheets.length;w++)if(document.styleSheets[w].ownerNode===l)return document.styleSheets[w]}function Dc(l){var w=document.createElement("style");return w.setAttribute("data-emotion",l.key),l.nonce!==void 0&&w.setAttribute("nonce",l.nonce),w.appendChild(document.createTextNode("")),w.setAttribute("data-s",""),w}var jc=function(){function l(R){var K=this;this._insertTag=function(Q){var it;K.tags.length===0?K.insertionPoint?it=K.insertionPoint.nextSibling:K.prepend?it=K.container.firstChild:it=K.before:it=K.tags[K.tags.length-1].nextSibling,K.container.insertBefore(Q,it),K.tags.push(Q)},this.isSpeedy=R.speedy===void 0?!Ec:R.speedy,this.tags=[],this.ctr=0,this.nonce=R.nonce,this.key=R.key,this.container=R.container,this.prepend=R.prepend,this.insertionPoint=R.insertionPoint,this.before=null}var w=l.prototype;return w.hydrate=function(K){K.forEach(this._insertTag)},w.insert=function(K){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Dc(this));var Q=this.tags[this.tags.length-1];if(this.isSpeedy){var it=Oc(Q);try{it.insertRule(K,it.cssRules.length)}catch(rt){}}else Q.appendChild(document.createTextNode(K));this.ctr++},w.flush=function(){this.tags.forEach(function(K){var Q;return(Q=K.parentNode)==null?void 0:Q.removeChild(K)}),this.tags=[],this.ctr=0},l}(),te="-ms-",ai="-moz-",Yt="-webkit-",Ma="comm",sr="rule",ar="decl",Ic="@import",lr="@keyframes",_c="@layer",Nc=Math.abs,hr=String.fromCharCode,Bc=Object.assign;function Aa(l,w){return ae(l,0)^45?(((w<<2^ae(l,0))<<2^ae(l,1))<<2^ae(l,2))<<2^ae(l,3):0}function Ta(l){return l.trim()}function ri(l,w){return(l=w.exec(l))?l[0]:l}function Ht(l,w,R){return l.replace(w,R)}function Di(l,w){return l.indexOf(w)}function ae(l,w){return l.charCodeAt(w)|0}function ji(l,w,R){return l.slice(w,R)}function Ye(l){return l.length}function mn(l){return l.length}function wo(l,w){return w.push(l),l}function ka(l,w){return l.map(w).join("")}var cr=1,Ii=1,Pa=0,De=0,ye=0,Ri="";function pr(l,w,R,K,Q,it,rt){return{value:l,root:w,parent:R,type:K,props:Q,children:it,line:cr,column:Ii,length:rt,return:""}}function Je(l,w){return Bc(pr("",null,null,"",null,null,0),l,{length:-l.length},w)}function Rc(){return ye}function zc(){return ye=De>0?ae(Ri,--De):0,Ii--,ye===10&&(Ii=1,cr--),ye}function Re(){return ye=De<Pa?ae(Ri,De++):0,Ii++,ye===10&&(Ii=1,cr++),ye}function ei(){return ae(Ri,De)}function Ro(){return De}function uo(l,w){return ji(Ri,l,w)}function io(l){switch(l){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function La(l){return cr=Ii=1,Pa=Ye(Ri=l),De=0,[]}function Ea(l){return Ri="",l}function zo(l){return Ta(uo(De-1,Xr(l===91?l+2:l===40?l+1:l)))}function Fc(l){for(;(ye=ei())&&ye<33;)Re();return io(l)>2||io(ye)>3?"":" "}function Gc(l,w){for(;--w&&Re()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return uo(l,Ro()+(w<6&&ei()==32&&Re()==32))}function Xr(l){for(;Re();)switch(ye){case l:return De;case 34:case 39:l!==34&&l!==39&&Xr(ye);break;case 40:l===41&&Xr(l);break;case 92:Re();break}return De}function Wc(l,w){for(;Re()&&l+ye!==57;)if(l+ye===84&&ei()===47)break;return"/*"+uo(w,De-1)+"*"+hr(l===47?l:Re())}function Xc(l){for(;!io(ei());)Re();return uo(l,De)}function Hc(l){return Ea(Fo("",null,null,null,[""],l=La(l),0,[0],l))}function Fo(l,w,R,K,Q,it,rt,st,ht){for(var ct=0,pt=0,ft=rt,_=0,et=0,G=0,B=1,X=1,U=1,$=0,Z="",V=Q,F=it,I=K,E=Z;X;)switch(G=$,$=Re()){case 40:if(G!=108&&ae(E,ft-1)==58){Di(E+=Ht(zo($),"&","&\f"),"&\f")!=-1&&(U=-1);break}case 34:case 39:case 91:E+=zo($);break;case 9:case 10:case 13:case 32:E+=Fc(G);break;case 92:E+=Gc(Ro()-1,7);continue;case 47:switch(ei()){case 42:case 47:wo(Yc(Wc(Re(),Ro()),w,R),ht);break;default:E+="/"}break;case 123*B:st[ct++]=Ye(E)*U;case 125*B:case 59:case 0:switch($){case 0:case 125:X=0;case 59+pt:U==-1&&(E=Ht(E,/\f/g,"")),et>0&&Ye(E)-ft&&wo(et>32?is(E+";",K,R,ft-1):is(Ht(E," ","")+";",K,R,ft-2),ht);break;case 59:E+=";";default:if(wo(I=es(E,w,R,ct,pt,Q,st,Z,V=[],F=[],ft),it),$===123)if(pt===0)Fo(E,w,I,I,V,it,ft,st,F);else switch(_===99&&ae(E,3)===110?100:_){case 100:case 108:case 109:case 115:Fo(l,I,I,K&&wo(es(l,I,I,0,0,Q,st,Z,Q,V=[],ft),F),Q,F,ft,st,K?V:F);break;default:Fo(E,I,I,I,[""],F,0,st,F)}}ct=pt=et=0,B=U=1,Z=E="",ft=rt;break;case 58:ft=1+Ye(E),et=G;default:if(B<1){if($==123)--B;else if($==125&&B++==0&&zc()==125)continue}switch(E+=hr($),$*B){case 38:U=pt>0?1:(E+="\f",-1);break;case 44:st[ct++]=(Ye(E)-1)*U,U=1;break;case 64:ei()===45&&(E+=zo(Re())),_=ei(),pt=ft=Ye(Z=E+=Xc(Ro())),$++;break;case 45:G===45&&Ye(E)==2&&(B=0)}}return it}function es(l,w,R,K,Q,it,rt,st,ht,ct,pt){for(var ft=Q-1,_=Q===0?it:[""],et=mn(_),G=0,B=0,X=0;G<K;++G)for(var U=0,$=ji(l,ft+1,ft=Nc(B=rt[G])),Z=l;U<et;++U)(Z=Ta(B>0?_[U]+" "+$:Ht($,/&\f/g,_[U])))&&(ht[X++]=Z);return pr(l,w,R,Q===0?sr:st,ht,ct,pt)}function Yc(l,w,R){return pr(l,w,R,Ma,hr(Rc()),ji(l,2,-2),0)}function is(l,w,R,K){return pr(l,w,R,ar,ji(l,0,K),ji(l,K+1,-1),K)}function Oa(l,w,R){switch(Aa(l,w)){case 5103:return Yt+"print-"+l+l;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yt+l+l;case 4789:return ai+l+l;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+l+ai+l+te+l+l;case 5936:switch(ae(l,w+11)){case 114:return Yt+l+te+Ht(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return Yt+l+te+Ht(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return Yt+l+te+Ht(l,/[svh]\w+-[tblr]{2}/,"lr")+l}case 6828:case 4268:case 2903:return Yt+l+te+l+l;case 6165:return Yt+l+te+"flex-"+l+l;case 5187:return Yt+l+Ht(l,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+te+"flex-$1$2")+l;case 5443:return Yt+l+te+"flex-item-"+Ht(l,/flex-|-self/g,"")+(ri(l,/flex-|baseline/)?"":te+"grid-row-"+Ht(l,/flex-|-self/g,""))+l;case 4675:return Yt+l+te+"flex-line-pack"+Ht(l,/align-content|flex-|-self/g,"")+l;case 5548:return Yt+l+te+Ht(l,"shrink","negative")+l;case 5292:return Yt+l+te+Ht(l,"basis","preferred-size")+l;case 6060:return Yt+"box-"+Ht(l,"-grow","")+Yt+l+te+Ht(l,"grow","positive")+l;case 4554:return Yt+Ht(l,/([^-])(transform)/g,"$1"+Yt+"$2")+l;case 6187:return Ht(Ht(Ht(l,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),l,"")+l;case 5495:case 3959:return Ht(l,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Ht(Ht(l,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+l+l;case 4200:if(!ri(l,/flex-|baseline/))return te+"grid-column-align"+ji(l,w)+l;break;case 2592:case 3360:return te+Ht(l,"template-","")+l;case 4384:case 3616:return R&&R.some(function(K,Q){return w=Q,ri(K.props,/grid-\w+-end/)})?~Di(l+(R=R[w].value),"span")?l:te+Ht(l,"-start","")+l+te+"grid-row-span:"+(~Di(R,"span")?ri(R,/\d+/):+ri(R,/\d+/)-+ri(l,/\d+/))+";":te+Ht(l,"-start","")+l;case 4896:case 4128:return R&&R.some(function(K){return ri(K.props,/grid-\w+-start/)})?l:te+Ht(Ht(l,"-end","-span"),"span ","")+l;case 4095:case 3583:case 4068:case 2532:return Ht(l,/(.+)-inline(.+)/,Yt+"$1$2")+l;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ye(l)-1-w>6)switch(ae(l,w+1)){case 109:if(ae(l,w+4)!==45)break;case 102:return Ht(l,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+ai+(ae(l,w+3)==108?"$3":"$2-$3"))+l;case 115:return~Di(l,"stretch")?Oa(Ht(l,"stretch","fill-available"),w,R)+l:l}break;case 5152:case 5920:return Ht(l,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(K,Q,it,rt,st,ht,ct){return te+Q+":"+it+ct+(rt?te+Q+"-span:"+(st?ht:+ht-+it)+ct:"")+l});case 4949:if(ae(l,w+6)===121)return Ht(l,":",":"+Yt)+l;break;case 6444:switch(ae(l,ae(l,14)===45?18:11)){case 120:return Ht(l,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yt+(ae(l,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+te+"$2box$3")+l;case 100:return Ht(l,":",":"+te)+l}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ht(l,"scroll-","scroll-snap-")+l}return l}function li(l,w){for(var R="",K=mn(l),Q=0;Q<K;Q++)R+=w(l[Q],Q,l,w)||"";return R}function Uc(l,w,R,K){switch(l.type){case _c:if(l.children.length)break;case Ic:case ar:return l.return=l.return||l.value;case Ma:return"";case lr:return l.return=l.value+"{"+li(l.children,K)+"}";case sr:l.value=l.props.join(",")}return Ye(R=li(l.children,K))?l.return=l.value+"{"+R+"}":""}function Vc(l){var w=mn(l);return function(R,K,Q,it){for(var rt="",st=0;st<w;st++)rt+=l[st](R,K,Q,it)||"";return rt}}function $c(l){return function(w){w.root||(w=w.return)&&l(w)}}function Zc(l,w,R,K){if(l.length>-1&&!l.return)switch(l.type){case ar:l.return=Oa(l.value,l.length,R);return;case lr:return li([Je(l,{value:Ht(l.value,"@","@"+Yt)})],K);case sr:if(l.length)return ka(l.props,function(Q){switch(ri(Q,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return li([Je(l,{props:[Ht(Q,/:(read-\w+)/,":"+ai+"$1")]})],K);case"::placeholder":return li([Je(l,{props:[Ht(Q,/:(plac\w+)/,":"+Yt+"input-$1")]}),Je(l,{props:[Ht(Q,/:(plac\w+)/,":"+ai+"$1")]}),Je(l,{props:[Ht(Q,/:(plac\w+)/,te+"input-$1")]})],K)}return""})}}function Da(l){var w=Object.create(null);return function(R){return w[R]===void 0&&(w[R]=l(R)),w[R]}}var Kc=function(w,R,K){for(var Q=0,it=0;Q=it,it=ei(),Q===38&&it===12&&(R[K]=1),!io(it);)Re();return uo(w,De)},qc=function(w,R){var K=-1,Q=44;do switch(io(Q)){case 0:Q===38&&ei()===12&&(R[K]=1),w[K]+=Kc(De-1,R,K);break;case 2:w[K]+=zo(Q);break;case 4:if(Q===44){w[++K]=ei()===58?"&\f":"",R[K]=w[K].length;break}default:w[K]+=hr(Q)}while(Q=Re());return w},Jc=function(w,R){return Ea(qc(La(w),R))},os=new WeakMap,Qc=function(w){if(!(w.type!=="rule"||!w.parent||w.length<1)){for(var R=w.value,K=w.parent,Q=w.column===K.column&&w.line===K.line;K.type!=="rule";)if(K=K.parent,!K)return;if(!(w.props.length===1&&R.charCodeAt(0)!==58&&!os.get(K))&&!Q){os.set(w,!0);for(var it=[],rt=Jc(R,it),st=K.props,ht=0,ct=0;ht<rt.length;ht++)for(var pt=0;pt<st.length;pt++,ct++)w.props[ct]=it[ht]?rt[ht].replace(/&\f/g,st[pt]):st[pt]+" "+rt[ht]}}},tp=function(w){if(w.type==="decl"){var R=w.value;R.charCodeAt(0)===108&&R.charCodeAt(2)===98&&(w.return="",w.value="")}};function ja(l,w){switch(Aa(l,w)){case 5103:return Yt+"print-"+l+l;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yt+l+l;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+l+ai+l+te+l+l;case 6828:case 4268:return Yt+l+te+l+l;case 6165:return Yt+l+te+"flex-"+l+l;case 5187:return Yt+l+Ht(l,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+te+"flex-$1$2")+l;case 5443:return Yt+l+te+"flex-item-"+Ht(l,/flex-|-self/,"")+l;case 4675:return Yt+l+te+"flex-line-pack"+Ht(l,/align-content|flex-|-self/,"")+l;case 5548:return Yt+l+te+Ht(l,"shrink","negative")+l;case 5292:return Yt+l+te+Ht(l,"basis","preferred-size")+l;case 6060:return Yt+"box-"+Ht(l,"-grow","")+Yt+l+te+Ht(l,"grow","positive")+l;case 4554:return Yt+Ht(l,/([^-])(transform)/g,"$1"+Yt+"$2")+l;case 6187:return Ht(Ht(Ht(l,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),l,"")+l;case 5495:case 3959:return Ht(l,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Ht(Ht(l,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+l+l;case 4095:case 3583:case 4068:case 2532:return Ht(l,/(.+)-inline(.+)/,Yt+"$1$2")+l;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ye(l)-1-w>6)switch(ae(l,w+1)){case 109:if(ae(l,w+4)!==45)break;case 102:return Ht(l,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+ai+(ae(l,w+3)==108?"$3":"$2-$3"))+l;case 115:return~Di(l,"stretch")?ja(Ht(l,"stretch","fill-available"),w)+l:l}break;case 4949:if(ae(l,w+1)!==115)break;case 6444:switch(ae(l,Ye(l)-3-(~Di(l,"!important")&&10))){case 107:return Ht(l,":",":"+Yt)+l;case 101:return Ht(l,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(ae(l,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+te+"$2box$3")+l}break;case 5936:switch(ae(l,w+11)){case 114:return Yt+l+te+Ht(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return Yt+l+te+Ht(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return Yt+l+te+Ht(l,/[svh]\w+-[tblr]{2}/,"lr")+l}return Yt+l+te+l+l}return l}var ep=function(w,R,K,Q){if(w.length>-1&&!w.return)switch(w.type){case ar:w.return=ja(w.value,w.length);break;case lr:return li([Je(w,{value:Ht(w.value,"@","@"+Yt)})],Q);case sr:if(w.length)return ka(w.props,function(it){switch(ri(it,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return li([Je(w,{props:[Ht(it,/:(read-\w+)/,":"+ai+"$1")]})],Q);case"::placeholder":return li([Je(w,{props:[Ht(it,/:(plac\w+)/,":"+Yt+"input-$1")]}),Je(w,{props:[Ht(it,/:(plac\w+)/,":"+ai+"$1")]}),Je(w,{props:[Ht(it,/:(plac\w+)/,te+"input-$1")]})],Q)}return""})}},ip=[ep],Ia=function(w){var R=w.key;if(R==="css"){var K=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(K,function(B){var X=B.getAttribute("data-emotion");X.indexOf(" ")!==-1&&(document.head.appendChild(B),B.setAttribute("data-s",""))})}var Q=w.stylisPlugins||ip,it={},rt,st=[];rt=w.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+R+' "]'),function(B){for(var X=B.getAttribute("data-emotion").split(" "),U=1;U<X.length;U++)it[X[U]]=!0;st.push(B)});var ht,ct=[Qc,tp];{var pt,ft=[Uc,$c(function(B){pt.insert(B)})],_=Vc(ct.concat(Q,ft)),et=function(X){return li(Hc(X),_)};ht=function(X,U,$,Z){pt=$,et(X?X+"{"+U.styles+"}":U.styles),Z&&(G.inserted[U.name]=!0)}}var G={key:R,sheet:new jc({key:R,container:rt,nonce:w.nonce,speedy:w.speedy,prepend:w.prepend,insertionPoint:w.insertionPoint}),nonce:w.nonce,inserted:it,registered:{},insert:ht};return G.sheet.hydrate(st),G},op=!0;function _a(l,w,R){var K="";return R.split(" ").forEach(function(Q){l[Q]!==void 0?w.push(l[Q]+";"):Q&&(K+=Q+" ")}),K}var yn=function(w,R,K){var Q=w.key+"-"+R.name;(K===!1||op===!1)&&w.registered[Q]===void 0&&(w.registered[Q]=R.styles)},Na=function(w,R,K){yn(w,R,K);var Q=w.key+"-"+R.name;if(w.inserted[R.name]===void 0){var it=R;do w.insert(R===it?"."+Q:"",it,w.sheet,!0),it=it.next;while(it!==void 0)}};function rp(l){for(var w=0,R,K=0,Q=l.length;Q>=4;++K,Q-=4)R=l.charCodeAt(K)&255|(l.charCodeAt(++K)&255)<<8|(l.charCodeAt(++K)&255)<<16|(l.charCodeAt(++K)&255)<<24,R=(R&65535)*1540483477+((R>>>16)*59797<<16),R^=R>>>24,w=(R&65535)*1540483477+((R>>>16)*59797<<16)^(w&65535)*1540483477+((w>>>16)*59797<<16);switch(Q){case 3:w^=(l.charCodeAt(K+2)&255)<<16;case 2:w^=(l.charCodeAt(K+1)&255)<<8;case 1:w^=l.charCodeAt(K)&255,w=(w&65535)*1540483477+((w>>>16)*59797<<16)}return w^=w>>>13,w=(w&65535)*1540483477+((w>>>16)*59797<<16),((w^w>>>15)>>>0).toString(36)}var np={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sp=!1,ap=/[A-Z]|^ms/g,lp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ba=function(w){return w.charCodeAt(1)===45},rs=function(w){return w!=null&&typeof w!="boolean"},Ar=Da(function(l){return Ba(l)?l:l.replace(ap,"-$&").toLowerCase()}),ns=function(w,R){switch(w){case"animation":case"animationName":if(typeof R=="string")return R.replace(lp,function(K,Q,it){return Ke={name:Q,styles:it,next:Ke},Q})}return np[w]!==1&&!Ba(w)&&typeof R=="number"&&R!==0?R+"px":R},hp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function oo(l,w,R){if(R==null)return"";var K=R;if(K.__emotion_styles!==void 0)return K;switch(typeof R){case"boolean":return"";case"object":{var Q=R;if(Q.anim===1)return Ke={name:Q.name,styles:Q.styles,next:Ke},Q.name;var it=R;if(it.styles!==void 0){var rt=it.next;if(rt!==void 0)for(;rt!==void 0;)Ke={name:rt.name,styles:rt.styles,next:Ke},rt=rt.next;var st=it.styles+";";return st}return cp(l,w,R)}case"function":{if(l!==void 0){var ht=Ke,ct=R(l);return Ke=ht,oo(l,w,ct)}break}}var pt=R;if(w==null)return pt;var ft=w[pt];return ft!==void 0?ft:pt}function cp(l,w,R){var K="";if(Array.isArray(R))for(var Q=0;Q<R.length;Q++)K+=oo(l,w,R[Q])+";";else for(var it in R){var rt=R[it];if(typeof rt!="object"){var st=rt;w!=null&&w[st]!==void 0?K+=it+"{"+w[st]+"}":rs(st)&&(K+=Ar(it)+":"+ns(it,st)+";")}else{if(it==="NO_COMPONENT_SELECTOR"&&sp)throw new Error(hp);if(Array.isArray(rt)&&typeof rt[0]=="string"&&(w==null||w[rt[0]]===void 0))for(var ht=0;ht<rt.length;ht++)rs(rt[ht])&&(K+=Ar(it)+":"+ns(it,rt[ht])+";");else{var ct=oo(l,w,rt);switch(it){case"animation":case"animationName":{K+=Ar(it)+":"+ct+";";break}default:K+=it+"{"+ct+"}"}}}}return K}var ss=/label:\s*([^\s;{]+)\s*(;|$)/g,Ke;function Ra(l,w,R){if(l.length===1&&typeof l[0]=="object"&&l[0]!==null&&l[0].styles!==void 0)return l[0];var K=!0,Q="";Ke=void 0;var it=l[0];if(it==null||it.raw===void 0)K=!1,Q+=oo(R,w,it);else{var rt=it;Q+=rt[0]}for(var st=1;st<l.length;st++)if(Q+=oo(R,w,l[st]),K){var ht=it;Q+=ht[st]}ss.lastIndex=0;for(var ct="",pt;(pt=ss.exec(Q))!==null;)ct+="-"+pt[1];var ft=rp(Q)+ct;return{name:ft,styles:Q,next:Ke}}var pp=function(w){return w()},za=qe[`useInsertionEffect${Math.random()}`.slice(0,18)]?qe[`useInsertionEffect${Math.random()}`.slice(0,18)]:!1,Fa=za||pp,dp=za||qe.useLayoutEffect,up=!1,Ga=qe.createContext(typeof HTMLElement!="undefined"?Ia({key:"css"}):null),fp=Ga.Provider,Wa=function(w){return ze.forwardRef(function(R,K){var Q=ze.useContext(Ga);return w(R,Q,K)})},Xa=qe.createContext({}),fo={}.hasOwnProperty,Hr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vn=function(w,R){var K={};for(var Q in R)fo.call(R,Q)&&(K[Q]=R[Q]);return K[Hr]=w,K},gp=function(w){var R=w.cache,K=w.serialized,Q=w.isStringTag;return yn(R,K,Q),Fa(function(){return Na(R,K,Q)}),null},mp=Wa(function(l,w,R){var K=l.css;typeof K=="string"&&w.registered[K]!==void 0&&(K=w.registered[K]);var Q=l[Hr],it=[K],rt="";typeof l.className=="string"?rt=_a(w.registered,it,l.className):l.className!=null&&(rt=l.className+" ");var st=Ra(it,void 0,qe.useContext(Xa));rt+=w.key+"-"+st.name;var ht={};for(var ct in l)fo.call(l,ct)&&ct!=="css"&&ct!==Hr&&!up&&(ht[ct]=l[ct]);return ht.className=rt,R&&(ht.ref=R),qe.createElement(qe.Fragment,null,qe.createElement(gp,{cache:w,serialized:st,isStringTag:typeof Q=="string"}),qe.createElement(Q,ht))}),bn=mp,Ha=eo.Fragment,ge=function(w,R,K){return fo.call(R,"css")?eo.jsx(bn,vn(w,R),K):eo.jsx(w,R,K)},gi=function(w,R,K){return fo.call(R,"css")?eo.jsxs(bn,vn(w,R),K):eo.jsxs(w,R,K)};const yp=2e4,vp="system",xn="#5B6372",bp="#F4F4F8",xp="#FA5656",Cn="N\\A",Cp="N/A",Sp={minWidth:"24px",minHeight:"24px"};var Ya=6e4,Ua=36e5;function Va(l,w){if(w.length<l)throw new TypeError(l+" argument"+(l>1?"s":"")+" required, but only "+w.length+" present")}function $a(l){if(l===null||l===!0||l===!1)return NaN;var w=Number(l);return isNaN(w)?w:w<0?Math.ceil(w):Math.floor(w)}function wp(l,w){var R;Va(1,arguments);var K=$a((R=void 0)!==null&&R!==void 0?R:2);if(K!==2&&K!==1&&K!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof l=="string"||Object.prototype.toString.call(l)==="[object String]"))return new Date(NaN);var Q=kp(l),it;if(Q.date){var rt=Pp(Q.date,K);it=Lp(rt.restDateString,rt.year)}if(!it||isNaN(it.getTime()))return new Date(NaN);var st=it.getTime(),ht=0,ct;if(Q.time&&(ht=Ep(Q.time),isNaN(ht)))return new Date(NaN);if(Q.timezone){if(ct=Op(Q.timezone),isNaN(ct))return new Date(NaN)}else{var pt=new Date(st+ht),ft=new Date(0);return ft.setFullYear(pt.getUTCFullYear(),pt.getUTCMonth(),pt.getUTCDate()),ft.setHours(pt.getUTCHours(),pt.getUTCMinutes(),pt.getUTCSeconds(),pt.getUTCMilliseconds()),ft}return new Date(st+ht+ct)}var Mo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Mp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ap=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Tp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kp(l){var w={},R=l.split(Mo.dateTimeDelimiter),K;if(R.length>2)return w;if(/:/.test(R[0])?K=R[0]:(w.date=R[0],K=R[1],Mo.timeZoneDelimiter.test(w.date)&&(w.date=l.split(Mo.timeZoneDelimiter)[0],K=l.substr(w.date.length,l.length))),K){var Q=Mo.timezone.exec(K);Q?(w.time=K.replace(Q[1],""),w.timezone=Q[1]):w.time=K}return w}function Pp(l,w){var R=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+w)+"})|(\\d{2}|[+-]\\d{"+(2+w)+"})$)"),K=l.match(R);if(!K)return{year:NaN,restDateString:""};var Q=K[1]?parseInt(K[1]):null,it=K[2]?parseInt(K[2]):null;return{year:it===null?Q:it*100,restDateString:l.slice((K[1]||K[2]).length)}}function Lp(l,w){if(w===null)return new Date(NaN);var R=l.match(Mp);if(!R)return new Date(NaN);var K=!!R[4],Q=Wi(R[1]),it=Wi(R[2])-1,rt=Wi(R[3]),st=Wi(R[4]),ht=Wi(R[5])-1;if(K)return Np(w,st,ht)?Dp(w,st,ht):new Date(NaN);var ct=new Date(0);return!Ip(w,it,rt)||!_p(w,Q)?new Date(NaN):(ct.setUTCFullYear(w,it,Math.max(Q,rt)),ct)}function Wi(l){return l?parseInt(l):1}function Ep(l){var w=l.match(Ap);if(!w)return NaN;var R=Tr(w[1]),K=Tr(w[2]),Q=Tr(w[3]);return Bp(R,K,Q)?R*Ua+K*Ya+Q*1e3:NaN}function Tr(l){return l&&parseFloat(l.replace(",","."))||0}function Op(l){if(l==="Z")return 0;var w=l.match(Tp);if(!w)return 0;var R=w[1]==="+"?-1:1,K=parseInt(w[2]),Q=w[3]&&parseInt(w[3])||0;return Rp(K,Q)?R*(K*Ua+Q*Ya):NaN}function Dp(l,w,R){var K=new Date(0);K.setUTCFullYear(l,0,4);var Q=K.getUTCDay()||7,it=(w-1)*7+R+1-Q;return K.setUTCDate(K.getUTCDate()+it),K}var jp=[31,null,31,30,31,30,31,31,30,31,30,31];function Za(l){return l%400===0||l%4===0&&l%100!==0}function Ip(l,w,R){return w>=0&&w<=11&&R>=1&&R<=(jp[w]||(Za(l)?29:28))}function _p(l,w){return w>=1&&w<=(Za(l)?366:365)}function Np(l,w,R){return w>=1&&w<=53&&R>=0&&R<=6}function Bp(l,w,R){return l===24?w===0&&R===0:R>=0&&R<60&&w>=0&&w<60&&l>=0&&l<25}function Rp(l,w){return w>=0&&w<=59}function dr(l){const w=/([+-]\d{2}:?\d{2}|Z)$/i.test(l);return wp(w?l:l+"Z")}const ro=(l,w)=>{const R=!l||l==="";let K,Q,it;return Rt.isNumber(w)?(K=parseFloat(l),Q=isNaN(K)):Rt.isDatetime(w)?l===Cn?(K=l,Q=!0):(K=dr(l).valueOf(),Q=isNaN(K)):(K=l,it=l==null?void 0:l.toLowerCase(),Q=!1),kt({value:K,valueUndefined:R,valueIsNaN:Q},it&&{lowercaseValue:it})};function as(l,w){const R=Rt.isObject(l)?l:{displayValue:l==null?void 0:l.toString()};return R.compareValue||(R.compareValue=ro(R.displayValue,w)),R}var Ka=(l=>(l[l.ASC=1]="ASC",l[l.DESC=-1]="DESC",l[l.NONE=0]="NONE",l))(Ka||{});function qa(l,w,R=1,K="string"){const Q=as(l,K),it=as(w,K),rt=Q.compareValue,st=it.compareValue;if(rt.valueUndefined&&st.valueUndefined)return 0;if(rt.valueUndefined)return 1;if(st.valueUndefined)return-1;if(rt.valueIsNaN&&st.valueIsNaN)return 0;if(rt.valueIsNaN)return 1;if(st.valueIsNaN)return-1;const ht=rt.lowercaseValue,ct=st.lowercaseValue;if(ht!==void 0&&ct!==void 0){if(ht<ct)return-1*R;if(ht>ct)return 1*R}return rt.value<st.value?-1*R:rt.value>st.value?1*R:0}class Ja{constructor(w){Ie(this,"columns",[]);this.columns=w}compare(w,R){for(let K=0;K<this.columns.length;K++){const Q=this.columns[K],it=w[Q.index],rt=R[Q.index],st=Q.direction||1,ht=qa(it,rt,st,Q.type);if(ht!==0)return ht}return 0}}const Qa=l=>l instanceof Object&&"data"in l,zp=l=>l.rows.length===0,Sn="$rownum",Fp=l=>{let w=0;const R=l.rows.map(Q=>{const it=l.columns.map((rt,st)=>{var ft;const ht=Q[st];if(Qa(ht)){let _=ht.data.toString();if(Rt.isDatetime(rt.type)){const et="1111-11-11T";_.startsWith(et)&&(_=_.replace(et,"1970-01-01T"))}return kt(kt({rawValue:ht.data,displayValue:(ft=ht.text)!=null?ft:_,compareValue:ro(_,rt.type)},ht.blur!==void 0?{blur:ht.blur}:{}),ht.color?{color:ht.color}:{})}let ct,pt;return Rt.isDatetime(rt.type)&&(ht===Cn?(ct={value:ht,valueUndefined:!1,valueIsNaN:!0},pt=ht):(ct=ro(`${ht}`,rt.type),pt=new Date(ct.value).toISOString())),{rawValue:pt!=null?pt:ht,displayValue:`${ht!=null?ht:""}`,compareValue:ct}});return w++,it.push({displayValue:`${w}`,rawValue:w}),it}),K=l.columns.map((Q,it)=>({name:Q.name,type:Q.type,index:it,direction:0}));return K.push({name:Sn,type:"number",index:K.length,direction:0}),{columns:K,rows:R}};class Gp{constructor(w){Ie(this,"data");Ie(this,"countDistinct");this.data=w}getStat(w){switch(w){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((w,R,K)=>K.indexOf(w)===R).length}}class ls{constructor(w){Ie(this,"data");Ie(this,"sum");Ie(this,"max");Ie(this,"min");Ie(this,"avg");Ie(this,"variance");Ie(this,"stddev");this.data=w}getStat(w){switch(w){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const w of this.data)this.sum+=w;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const w of this.data)w>this.max&&(this.max=w);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const w of this.data)w<this.min&&(this.min=w);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((w,R,K)=>K.indexOf(w)===R).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const w=this.getMean();this.variance=this.data.reduce((R,K)=>R.concat(Wt(K-w,2)),[]).reduce((R,K)=>R+K,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}const tl=(l,w)=>l.slice(0).sort((R,K)=>w.compare(R,K)),wn=(l,w)=>{if(!(l&&l.length>0))return[];const R=new Ja(w),K=tl(l,R);let Q=[];const it=[];let rt=K[0];for(const st of Array.from(K))R.compare(st,rt)!==0&&(it.push(Q),Q=[]),Q.push(st),rt=st;return it.push(Q),it},Wp=(l,w)=>{var K,Q;const R=[];for(const it of w){let rt;const st=it.column,{aggFunc:ht}=it,ct=l.filter(_=>!!_[st.index]&&_[st.index].displayValue!==""),pt=(Q=(K=ct.find(_=>{var et;return _!==void 0&&((et=_==null?void 0:_[st.index])==null?void 0:et.color)}))==null?void 0:K[st.index])==null?void 0:Q.color,ft=ct.some(_=>_[st.index].blur);if(Rt.isDatetime(st.type)){const _=ct.map(et=>dr(et[st.index].displayValue).valueOf());rt=new ls(_).getStat(ht)}else if(Rt.isNumber(st.type)){const _=ct.map(et=>parseFloat(et[st.index].displayValue));rt=new ls(_).getStat(ht)}else{const _=ct.map(et=>et[st.index].displayValue);rt=new Gp(_).getStat(ht)}R.push(kt(kt({displayValue:`${rt}`},pt&&{color:pt}),ft&&{blur:ft}))}return R},el=(l,w)=>{if(An(l))return{columns:[],rows:[]};const R=new Ja(w);return{columns:l.columns,rows:tl(l.rows,R)}},il=(l,w,R)=>{if(An(l))return{rows:[],columns:[]};const K={name:"n/a",type:"n/a",index:-1,direction:0},Q=R.map(ct=>({aggFunc:ct.agg,aggName:ct.title,column:ui(l,ct.column)||K})).filter(ct=>ct.column.index!==-1),it=wn(l.rows,w),rt=Q.map(ct=>ct.aggName),st=[];for(const ct of it){const pt=zi(ct[0],w),ft=Wp(ct,Q),_=pt.slice(0).concat(ft);st.push(_)}const ht=w.slice(0).concat(rt.map(ct=>({name:ct,type:"number",index:0,direction:0})));return{rows:st,columns:ht.map((ct,pt)=>Nt(kt({},ct),{index:pt}))}},ui=(l,w)=>l.columns.find(R=>R.name===w),no=(l,w)=>{const R={name:"foo",type:"string",index:-1,direction:0};return w.map(K=>ui(l,K)||R).filter(K=>K!==R)},ol=(l,w)=>{const R=l.rows.map(Q=>w.map(it=>Q[it.index]));return{columns:w.map((Q,it)=>Nt(kt({},Q),{index:it})),rows:R}},rl=(l,w)=>{if(!(l&&w.index<l.length))return;const R=l[w.index];return R.compareValue||(R.compareValue=ro(R.displayValue,w.type)),R.compareValue.value},nl=(l,w)=>{var R;return(R=l[w.index])==null?void 0:R.blur},zi=(l,w)=>{const R=[];for(const K of w)R.push(l[K.index]);return R},Xp=(l,w)=>zi(l,w).map(R=>R.rawValue||R.displayValue).join(","),Mn=(l,w)=>{if(!(l&&l.length>0))return{};const R=wn(l,w),K={};for(const Q of R){const it=Xp(Q[0],w);K[it]=Q}return K},An=l=>!(l.rows&&l.columns&&l.rows.length>0&&l.columns.length>0);function Tn(l){return l===void 0}const Uo=(l,w)=>Object.assign(Object.create(l),w),Hp=(l,w)=>Object.assign(Object.create(Object.getPrototypeOf(l)),l,w),go=l=>{if(kn(l)){const w=l,{column:R}=w,K=Te(w,["column"]);return{column:R,style:K}}return{column:l,style:{}}};function oi(l){const w="column"in l?l.column:l,R="aggregation"in w&&!!w.aggregation,K="context"in w&&!!w.context,Q="formula"in w&&!!w.formula;return R||K||Q?!0:!("type"in w)}const Ce=l=>{if(!l)return"";const{column:w,name:R}=l;return R||("title"in w&&w.title?w.title:w.name)},ur=({column:l,granularity:w})=>w||l.granularity||Rt.DateLevels.Years,Yp=l=>{const{column:w}=go(l);return w},Up=l=>{const{column:w}=go(l);return w};function kn(l){return"column"in l&&l.column!==void 0}function Vp(l){return!("column"in l)}function sl(l,w){var it;const{column:R,style:K}=go(l),Q=Nt(kt(kt({},w),K),{column:R});return Rt.isDatetime(R.type)&&Tn(Q.dateFormat)&&(Q.dateFormat=(it=R==null?void 0:R.getFormat)==null?void 0:it.call(R)),Q}function al(l,w){var Q,it;const{column:R,style:K}=go(l);return Nt(kt(kt({},w),K),{column:Uo(R,{title:(Q=R.title)!=null?Q:R.name,aggregation:(it=R.aggregation)!=null?it:"sum"}),enabled:!0})}function $p(l,w){return oi(l)?al(l,w):sl(l,w)}var hs;(function(l){l.event="event",l.props="prop"})(hs||(hs={}));function Zp(l){switch(l){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Kp(l,w,R){var K=Zp(R),Q=l.search(/[1-9]/);return Q=Q===-1?l.length:Q,l.substring(0,Q)+l.substring(Q,l.length).replace(K,"$1"+w)}function qp(l,w){w===void 0&&(w=!0);var R=l[0]==="-",K=R&&w;l=l.replace("-","");var Q=l.split("."),it=Q[0],rt=Q[1]||"";return{beforeDecimal:it,afterDecimal:rt,hasNegation:R,addNegation:K}}function Jp(l,w,R){for(var K="",Q=R?"0":"",it=0;it<=w-1;it++)K+=l[it]||Q;return K}function Qp(l,w){var R=w.decimalScale,K=w.fixedDecimalScale,Q=w.prefix;Q===void 0&&(Q="");var it=w.suffix;it===void 0&&(it="");var rt=w.allowNegative,st=w.thousandsGroupStyle;if(st===void 0&&(st="thousand"),l===""||l==="-")return l;var ht=td(w),ct=ht.thousandSeparator,pt=ht.decimalSeparator,ft=R!==0&&l.indexOf(".")!==-1||R&&K,_=qp(l,rt),et=_.beforeDecimal,G=_.afterDecimal,B=_.addNegation;return R!==void 0&&(G=Jp(G,R,!!K)),ct&&(et=Kp(et,ct,st)),Q&&(et=Q+et),it&&(G=G+it),B&&(et="-"+et),l=et+(ft&&pt||"")+G,l}function td(l){var w=l.decimalSeparator;w===void 0&&(w=".");var R=l.thousandSeparator,K=l.allowedDecimalSeparators;return R===!0&&(R=","),K||(K=[w,"."]),{decimalSeparator:w,thousandSeparator:R,allowedDecimalSeparators:K}}var ed=/\s/;function id(l){for(var w=l.length;w--&&ed.test(l.charAt(w)););return w}var od=/^\s+/;function ll(l){return l&&l.slice(0,id(l)+1).replace(od,"")}var cs=NaN,rd=/^[-+]0x[0-9a-f]+$/i,nd=/^0b[01]+$/i,sd=/^0o[0-7]+$/i,ad=parseInt;function Pn(l){if(typeof l=="number")return l;if(Rt.isSymbol(l))return cs;if(Rt.isObject(l)){var w=typeof l.valueOf=="function"?l.valueOf():l;l=Rt.isObject(w)?w+"":w}if(typeof l!="string")return l===0?l:+l;l=ll(l);var R=nd.test(l);return R||sd.test(l)?ad(l.slice(2),R?2:8):rd.test(l)?cs:+l}var ps=1/0,ld=17976931348623157e292;function hl(l){if(!l)return l===0?l:0;if(l=Pn(l),l===ps||l===-ps){var w=l<0?-1:1;return w*ld}return l===l?l:0}function cl(l){var w=hl(l),R=w%1;return w===w?R?w-R:w:0}var hd=Rt.root.isFinite,cd=Math.min;function pd(l){var w=Math[l];return function(R,K){if(R=Pn(R),K=K==null?0:cd(cl(K),292),K&&hd(R)){var Q=(Rt.toString(R)+"e").split("e"),it=w(Q[0]+"e"+(+Q[1]+K));return Q=(Rt.toString(it)+"e").split("e"),+(Q[0]+"e"+(+Q[1]-K))}return w(R)}}var dd=pd("round");const Yr=1e3,Ur=Yr*1e3,Vr=Ur*1e3,ds=Vr*1e3,pl=1000.1.toLocaleString().replace(/\d/g,""),ud=pl[0],fd=pl[1],gd={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},pe=l=>kt(kt({},gd),l||{}),md=(l,w)=>isNaN(w)?"":`<span>${Ai(l,w)}</span>`,yd=(l,w)=>Math.sign(l)*dd(Math.abs(l),w),Ai=(l,w)=>{const{t:R}=Rt.i18nextInstance,K=l.decimalScale!==0&&l.decimalScale!=="auto",Q=l.decimalScale==="auto"?2:l.decimalScale;let it=!0;l.name==="Numbers"&&!l.thousandSeparator&&(it=void 0);let rt,st,ht=w;return l.name==="Percent"&&(st="%",ht=w*100),(l.name==="Numbers"||l.name==="Currency")&&(l.trillion&&Math.abs(w)/ds>=1?(ht=w/ds,st=R("formatting.number.abbreviations.trillion")):l.billion&&Math.abs(w)/Vr>=1?(ht=w/Vr,st=R("formatting.number.abbreviations.billion")):l.million&&Math.abs(w)/Ur>=1?(ht=w/Ur,st=R("formatting.number.abbreviations.million")):l.kilo&&Math.abs(w)/Yr>=1&&(ht=w/Yr,st=R("formatting.number.abbreviations.thousand"))),l.name==="Currency"&&(l.prefix?rt=l.symbol:st?st=`${st}${l.symbol}`:st=l.symbol),Qp(`${yd(ht,Q)}`,{displayType:"text",thousandSeparator:it?ud:void 0,fixedDecimalScale:K,decimalScale:Q,decimalSeparator:fd,prefix:rt,suffix:st})},Se=(l,w)=>{let R=md(l,w);return R=R.replace("<span>",""),R=R.replace("</span>",""),R},Vo="#dcdcdc",ci="#CCCCCC",pi="#FFFFFF",vd=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],Ln=l=>({type:"uniform",color:l});function bd(l){return()=>l.color}const dl=l=>{if(l!==void 0)return typeof l=="string"?Ln(l).color:l.type==="uniform"?l.color:Vo};function xd(l){var R;const w=((R=l.conditions)!=null?R:[]).map(K=>({match:Cd(K),color:K.color}));return K=>{const Q=w.find(it=>it.match(K));return Q?Q.color:l.defaultColor}}function Cd(l){const w=Number(l.expression);switch(l.operator){case"<":return R=>R<w;case">":return R=>R>w;case"≤":case"<=":return R=>R<=w;case"≥":case">=":return R=>R>=w;case"=":return R=>R==w;case"≠":case"!=":return R=>R!=w;default:return()=>!0}}function ve(l,w){let R=l.length;Array.isArray(l[0])||(l=[l]),Array.isArray(w[0])||(w=w.map(rt=>[rt]));let K=w[0].length,Q=w[0].map((rt,st)=>w.map(ht=>ht[st])),it=l.map(rt=>Q.map(st=>{let ht=0;if(!Array.isArray(rt)){for(let ct of st)ht+=rt*ct;return ht}for(let ct=0;ct<rt.length;ct++)ht+=rt[ct]*(st[ct]||0);return ht}));return R===1&&(it=it[0]),K===1?it.map(rt=>rt[0]):it}function mo(l){return fi(l)==="string"}function fi(l){return(Object.prototype.toString.call(l).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function $o(l,w){l=+l,w=+w;let R=(Math.floor(l)+"").length;if(w>R)return+l.toFixed(w-R);{let K=Wt(10,R-w);return Math.round(l/K)*K}}function ul(l){if(!l)return;l=l.trim();const w=/^([a-z]+)\((.+?)\)$/i,R=/^-?[\d.]+$/;let K=l.match(w);if(K){let Q=[];return K[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(it,rt)=>{/%$/.test(rt)?(rt=new Number(rt.slice(0,-1)/100),rt.type="<percentage>"):/deg$/.test(rt)?(rt=new Number(+rt.slice(0,-3)),rt.type="<angle>",rt.unit="deg"):R.test(rt)&&(rt=new Number(rt),rt.type="<number>"),it.startsWith("/")&&(rt=rt instanceof Number?rt:new Number(rt),rt.alpha=!0),Q.push(rt)}),{name:K[1].toLowerCase(),rawName:K[1],rawArgs:K[2],args:Q}}}function fl(l){return l[l.length-1]}function Zo(l,w,R){return isNaN(l)?w:isNaN(w)?l:l+(w-l)*R}function gl(l,w,R){return(R-l)/(w-l)}function En(l,w,R){return Zo(w[0],w[1],gl(l[0],l[1],R))}function ml(l){return l.map(w=>w.split("|").map(R=>{R=R.trim();let K=R.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(K){let Q=new String(K[1]);return Q.range=[+K[2],+K[3]],Q}return R}))}var Sd=Object.freeze({__proto__:null,interpolate:Zo,interpolateInv:gl,isString:mo,last:fl,mapRange:En,multiplyMatrices:ve,parseCoordGrammar:ml,parseFunction:ul,toPrecision:$o,type:fi});class wd{add(w,R,K){if(typeof arguments[0]!="string"){for(var w in arguments[0])this.add(w,arguments[0][w],arguments[1]);return}(Array.isArray(w)?w:[w]).forEach(function(Q){this[Q]=this[Q]||[],R&&this[Q][K?"unshift":"push"](R)},this)}run(w,R){this[w]=this[w]||[],this[w].forEach(function(K){K.call(R&&R.context?R.context:R,R)})}}const mi=new wd;var ii={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const Ue={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function $r(l){return Array.isArray(l)?l:Ue[l]}function Ko(l,w,R,K={}){if(l=$r(l),w=$r(w),!l||!w)throw new TypeError(`Missing white point to convert ${l?"":"from"}${!l&&!w?"/":""}${w?"":"to"}`);if(l===w)return R;let Q={W1:l,W2:w,XYZ:R,options:K};if(mi.run("chromatic-adaptation-start",Q),Q.M||(Q.W1===Ue.D65&&Q.W2===Ue.D50?Q.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:Q.W1===Ue.D50&&Q.W2===Ue.D65&&(Q.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),mi.run("chromatic-adaptation-end",Q),Q.M)return ve(Q.M,Q.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const Md=75e-6,Ne=class Ne{constructor(w){var Q,it,rt,st,ht,ct,pt;this.id=w.id,this.name=w.name,this.base=w.base?Ne.get(w.base):null,this.aliases=w.aliases,this.base&&(this.fromBase=w.fromBase,this.toBase=w.toBase);let R=(Q=w.coords)!=null?Q:this.base.coords;for(let ft in R)"name"in R[ft]||(R[ft].name=ft);this.coords=R;let K=(rt=(it=w.white)!=null?it:this.base.white)!=null?rt:"D65";this.white=$r(K),this.formats=(st=w.formats)!=null?st:{};for(let ft in this.formats){let _=this.formats[ft];_.type||(_.type="function"),_.name||(_.name=ft)}w.cssId&&!((ht=this.formats.functions)!=null&&ht.color)?(this.formats.color={id:w.cssId},Object.defineProperty(this,"cssId",{value:w.cssId})):(ct=this.formats)!=null&&ct.color&&!((pt=this.formats)!=null&&pt.color.id)&&(this.formats.color.id=this.id),this.referred=w.referred,Object.defineProperty(this,"path",{value:Ad(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),mi.run("colorspace-init-end",this)}inGamut(w,{epsilon:R=Md}={}){if(this.isPolar)return w=this.toBase(w),this.base.inGamut(w,{epsilon:R});let K=Object.values(this.coords);return w.every((Q,it)=>{let rt=K[it];if(rt.type!=="angle"&&rt.range){if(Number.isNaN(Q))return!0;let[st,ht]=rt.range;return(st===void 0||Q>=st-R)&&(ht===void 0||Q<=ht+R)}return!0})}get cssId(){var w,R;return((R=(w=this.formats.functions)==null?void 0:w.color)==null?void 0:R.id)||this.id}get isPolar(){for(let w in this.coords)if(this.coords[w].type==="angle")return!0;return!1}getFormat(w){if(typeof w=="object")return w=us(w,this),w;let R;return w==="default"?R=Object.values(this.formats)[0]:R=this.formats[w],R?(R=us(R,this),R):null}equals(w){return w?this===w||this.id===w.id:!1}to(w,R){if(arguments.length===1&&([w,R]=[w.space,w.coords]),w=Ne.get(w),this.equals(w))return R;R=R.map(st=>Number.isNaN(st)?0:st);let K=this.path,Q=w.path,it,rt;for(let st=0;st<K.length&&K[st].equals(Q[st]);st++)it=K[st],rt=st;if(!it)throw new Error(`Cannot convert between color spaces ${this} and ${w}: no connection space was found`);for(let st=K.length-1;st>rt;st--)R=K[st].toBase(R);for(let st=rt+1;st<Q.length;st++)R=Q[st].fromBase(R);return R}from(w,R){return arguments.length===1&&([w,R]=[w.space,w.coords]),w=Ne.get(w),w.to(this,R)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var R;let w=[];for(let K in this.coords){let Q=this.coords[K],it=Q.range||Q.refRange;w.push((R=it==null?void 0:it.min)!=null?R:0)}return w}static get all(){return[...new Set(Object.values(Ne.registry))]}static register(w,R){if(arguments.length===1&&(R=arguments[0],w=R.id),R=this.get(R),this.registry[w]&&this.registry[w]!==R)throw new Error(`Duplicate color space registration: '${w}'`);if(this.registry[w]=R,arguments.length===1&&R.aliases)for(let K of R.aliases)this.register(K,R);return R}static get(w,...R){if(!w||w instanceof Ne)return w;if(fi(w)==="string"){let Q=Ne.registry[w.toLowerCase()];if(!Q)throw new TypeError(`No color space found with id = "${w}"`);return Q}if(R.length)return Ne.get(...R);throw new TypeError(`${w} is not a valid color space`)}static resolveCoord(w,R){var ht;let K=fi(w),Q,it;if(K==="string"?w.includes(".")?[Q,it]=w.split("."):[Q,it]=[,w]:Array.isArray(w)?[Q,it]=w:(Q=w.space,it=w.coordId),Q=Ne.get(Q),Q||(Q=R),!Q)throw new TypeError(`Cannot resolve coordinate reference ${w}: No color space specified and relative references are not allowed here`);if(K=fi(it),K==="number"||K==="string"&&it>=0){let ct=Object.entries(Q.coords)[it];if(ct)return kt({space:Q,id:ct[0],index:it},ct[1])}Q=Ne.get(Q);let rt=it.toLowerCase(),st=0;for(let ct in Q.coords){let pt=Q.coords[ct];if(ct.toLowerCase()===rt||((ht=pt.name)==null?void 0:ht.toLowerCase())===rt)return kt({space:Q,id:ct,index:st},pt);st++}throw new TypeError(`No "${it}" coordinate found in ${Q.name}. Its coordinates are: ${Object.keys(Q.coords).join(", ")}`)}};Ie(Ne,"registry",{}),Ie(Ne,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Zt=Ne;function Ad(l){let w=[l];for(let R=l;R=R.base;)w.push(R);return w}function us(l,{coords:w}={}){if(l.coords&&!l.coordGrammar){l.type||(l.type="function"),l.name||(l.name="color"),l.coordGrammar=ml(l.coords);let R=Object.entries(w).map(([K,Q],it)=>{let rt=l.coordGrammar[it][0],st=Q.range||Q.refRange,ht=rt.range,ct="";return rt=="<percentage>"?(ht=[0,100],ct="%"):rt=="<angle>"&&(ct="deg"),{fromRange:st,toRange:ht,suffix:ct}});l.serializeCoords=(K,Q)=>K.map((it,rt)=>{let{fromRange:st,toRange:ht,suffix:ct}=R[rt];return st&&ht&&(it=En(st,ht,it)),it=$o(it,Q),ct&&(it+=ct),it})}return l}var We=new Zt({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class je extends Zt{constructor(w){var R,K,Q;w.coords||(w.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),w.base||(w.base=We),w.toXYZ_M&&w.fromXYZ_M&&((R=w.toBase)!=null||(w.toBase=it=>{let rt=ve(w.toXYZ_M,it);return this.white!==this.base.white&&(rt=Ko(this.white,this.base.white,rt)),rt}),(K=w.fromBase)!=null||(w.fromBase=it=>(it=Ko(this.base.white,this.white,it),ve(w.fromXYZ_M,it)))),(Q=w.referred)!=null||(w.referred="display"),super(w)}}function yl(l,{meta:w}={}){var K,Q,it,rt,st,ht;let R={str:(K=String(l))==null?void 0:K.trim()};if(mi.run("parse-start",R),R.color)return R.color;if(R.parsed=ul(R.str),R.parsed){let ct=R.parsed.name;if(ct==="color"){let pt=R.parsed.args.shift(),ft=R.parsed.rawArgs.indexOf("/")>0?R.parsed.args.pop():1;for(let et of Zt.all){let G=et.getFormat("color");if(G&&(pt===G.id||(Q=G.ids)!=null&&Q.includes(pt))){const B=Object.keys(et.coords).map((X,U)=>R.parsed.args[U]||0);return w&&(w.formatId="color"),{spaceId:et.id,coords:B,alpha:ft}}}let _="";if(pt in Zt.registry){let et=(st=(rt=(it=Zt.registry[pt].formats)==null?void 0:it.functions)==null?void 0:rt.color)==null?void 0:st.id;et&&(_=`Did you mean color(${et})?`)}throw new TypeError(`Cannot parse color(${pt}). `+(_||"Missing a plugin?"))}else for(let pt of Zt.all){let ft=pt.getFormat(ct);if(ft&&ft.type==="function"){let _=1;(ft.lastAlpha||fl(R.parsed.args).alpha)&&(_=R.parsed.args.pop());let et=R.parsed.args,G;return ft.coordGrammar&&(G=Object.entries(pt.coords).map(([B,X],U)=>{var E;let $=ft.coordGrammar[U],Z=(E=et[U])==null?void 0:E.type,V=$.find(A=>A==Z);if(!V){let A=X.name||B;throw new TypeError(`${Z} not allowed for ${A} in ${ct}()`)}let F=V.range;Z==="<percentage>"&&(F||(F=[0,1]));let I=X.range||X.refRange;return F&&I&&(et[U]=En(F,I,et[U])),V})),w&&Object.assign(w,{formatId:ft.name,types:G}),{spaceId:pt.id,coords:et,alpha:_}}}}else for(let ct of Zt.all)for(let pt in ct.formats){let ft=ct.formats[pt];if(ft.type!=="custom"||ft.test&&!ft.test(R.str))continue;let _=ft.parse(R.str);if(_)return(ht=_.alpha)!=null||(_.alpha=1),w&&(w.formatId=pt),_}throw new TypeError(`Could not parse ${l} as a color. Missing a plugin?`)}function re(l){if(!l)throw new TypeError("Empty color reference");mo(l)&&(l=yl(l));let w=l.space||l.spaceId;return w instanceof Zt||(l.space=Zt.get(w)),l.alpha===void 0&&(l.alpha=1),l}function yo(l,w){return w=Zt.get(w),w.from(l)}function Xe(l,w){let{space:R,index:K}=Zt.resolveCoord(w,l.space);return yo(l,R)[K]}function vl(l,w,R){return w=Zt.get(w),l.coords=w.to(l.space,R),l}function yi(l,w,R){if(l=re(l),arguments.length===2&&fi(arguments[1])==="object"){let K=arguments[1];for(let Q in K)yi(l,Q,K[Q])}else{typeof R=="function"&&(R=R(Xe(l,w)));let{space:K,index:Q}=Zt.resolveCoord(w,l.space),it=yo(l,K);it[Q]=R,vl(l,K,it)}return l}var On=new Zt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:We,fromBase:l=>Ko(We.white,"D50",l),toBase:l=>Ko("D50",We.white,l),formats:{color:{}}});const Td=216/24389,fs=24/116,Ao=24389/27;let kr=Ue.D50;var Be=new Zt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:kr,base:On,fromBase(l){let R=l.map((K,Q)=>K/kr[Q]).map(K=>K>Td?Math.cbrt(K):(Ao*K+16)/116);return[116*R[1]-16,500*(R[0]-R[1]),200*(R[1]-R[2])]},toBase(l){let w=[];return w[1]=(l[0]+16)/116,w[0]=l[1]/500+w[1],w[2]=w[1]-l[2]/200,[w[0]>fs?Math.pow(w[0],3):(116*w[0]-16)/Ao,l[0]>8?Math.pow((l[0]+16)/116,3):l[0]/Ao,w[2]>fs?Math.pow(w[2],3):(116*w[2]-16)/Ao].map((K,Q)=>K*kr[Q])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function fr(l){return(l%360+360)%360}function kd(l,w){if(l==="raw")return w;let[R,K]=w.map(fr),Q=K-R;return l==="increasing"?Q<0&&(K+=360):l==="decreasing"?Q>0&&(R+=360):l==="longer"?-180<Q&&Q<180&&(Q>0?R+=360:K+=360):l==="shorter"&&(Q>180?R+=360:Q<-180&&(K+=360)),[R,K]}var so=new Zt({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:Be,fromBase(l){let[w,R,K]=l,Q;const it=.02;return Math.abs(R)<it&&Math.abs(K)<it?Q=NaN:Q=Math.atan2(K,R)*180/Math.PI,[w,Math.sqrt(Wt(R,2)+Wt(K,2)),fr(Q)]},toBase(l){let[w,R,K]=l;return R<0&&(R=0),isNaN(K)&&(K=0),[w,R*Math.cos(K*Math.PI/180),R*Math.sin(K*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const gs=Wt(25,7),qo=Math.PI,ms=180/qo,Ei=qo/180;function Zr(l,w,{kL:R=1,kC:K=1,kH:Q=1}={}){let[it,rt,st]=Be.from(l),ht=so.from(Be,[it,rt,st])[1],[ct,pt,ft]=Be.from(w),_=so.from(Be,[ct,pt,ft])[1];ht<0&&(ht=0),_<0&&(_=0);let et=(ht+_)/2,G=Wt(et,7),B=.5*(1-Math.sqrt(G/(G+gs))),X=(1+B)*rt,U=(1+B)*pt,$=Math.sqrt(Wt(X,2)+Wt(st,2)),Z=Math.sqrt(Wt(U,2)+Wt(ft,2)),V=X===0&&st===0?0:Math.atan2(st,X),F=U===0&&ft===0?0:Math.atan2(ft,U);V<0&&(V+=2*qo),F<0&&(F+=2*qo),V*=ms,F*=ms;let I=ct-it,E=Z-$,A=F-V,P=V+F,y=Math.abs(A),c;$*Z===0?c=0:y<=180?c=A:A>180?c=A-360:A<-180?c=A+360:console.log("the unthinkable has happened");let f=2*Math.sqrt(Z*$)*Math.sin(c*Ei/2),m=(it+ct)/2,u=($+Z)/2,v=Math.pow(u,7),S;$*Z===0?S=P:y<=180?S=P/2:P<360?S=(P+360)/2:S=(P-360)/2;let M=Wt(m-50,2),x=1+.015*M/Math.sqrt(20+M),p=1+.045*u,g=1;g-=.17*Math.cos((S-30)*Ei),g+=.24*Math.cos(2*S*Ei),g+=.32*Math.cos((3*S+6)*Ei),g-=.2*Math.cos((4*S-63)*Ei);let r=1+.015*u*g,a=30*Math.exp(-1*Wt((S-275)/25,2)),t=2*Math.sqrt(v/(v+gs)),i=-1*Math.sin(2*a*Ei)*t,o=Wt(I/(R*x),2);return o+=Wt(E/(K*p),2),o+=Wt(f/(Q*r),2),o+=i*(E/(K*p))*(f/(Q*r)),Math.sqrt(o)}const Pd=75e-6;function Ji(l,w=l.space,{epsilon:R=Pd}={}){l=re(l),w=Zt.get(w);let K=l.coords;return w!==l.space&&(K=w.from(l)),w.inGamut(K,{epsilon:R})}function ao(l){return{space:l.space,coords:l.coords.slice(),alpha:l.alpha}}function vi(l,{method:w=ii.gamut_mapping,space:R=l.space}={}){if(mo(arguments[1])&&(R=arguments[1]),R=Zt.get(R),Ji(l,R,{epsilon:0}))return re(l);let K=Ge(l,R);if(w!=="clip"&&!Ji(l,R)){let Q=vi(ao(K),{method:"clip",space:R});if(Zr(l,Q)>2){let it=Zt.resolveCoord(w),rt=it.space,st=it.id,ht=Ge(K,rt),pt=(it.range||it.refRange)[0],ft=.01,_=pt,et=Xe(ht,st);for(;et-_>ft;){let G=ao(ht);G=vi(G,{space:R,method:"clip"}),Zr(ht,G)-2<ft?_=Xe(ht,st):et=Xe(ht,st),yi(ht,st,(_+et)/2)}K=Ge(ht,R)}else K=Q}if(w==="clip"||!Ji(K,R,{epsilon:0})){let Q=Object.values(R.coords).map(it=>it.range||[]);K.coords=K.coords.map((it,rt)=>{let[st,ht]=Q[rt];return st!==void 0&&(it=Math.max(st,it)),ht!==void 0&&(it=Math.min(it,ht)),it})}return R!==l.space&&(K=Ge(K,l.space)),l.coords=K.coords,l}vi.returns="color";function Ge(l,w,{inGamut:R}={}){l=re(l),w=Zt.get(w);let K=w.from(l),Q={space:w,coords:K,alpha:l.alpha};return R&&(Q=vi(Q)),Q}Ge.returns="color";function Jo(l,it={}){var rt=it,{precision:w=ii.precision,format:R="default",inGamut:K=!0}=rt,Q=Te(rt,["precision","format","inGamut"]);var pt,ft,_;let st;l=re(l);let ht=R;R=(ft=(pt=l.space.getFormat(R))!=null?pt:l.space.getFormat("default"))!=null?ft:Zt.DEFAULT_FORMAT,K||(K=R.toGamut);let ct=l.coords;if(ct=ct.map(et=>et||0),K&&!Ji(l)&&(ct=vi(ao(l),K===!0?void 0:K).coords),R.type==="custom")if(Q.precision=w,R.serialize)st=R.serialize(ct,l.alpha,Q);else throw new TypeError(`format ${ht} can only be used to parse colors, not for serialization`);else{let et=R.name||"color";R.serializeCoords?ct=R.serializeCoords(ct,w):w!==null&&(ct=ct.map(U=>$o(U,w)));let G=[...ct];if(et==="color"){let U=R.id||((_=R.ids)==null?void 0:_[0])||l.space.id;G.unshift(U)}let B=l.alpha;w!==null&&(B=$o(B,w));let X=l.alpha<1&&!R.noAlpha?`${R.commas?",":" /"} ${B}`:"";st=`${et}(${G.join(R.commas?", ":" ")}${X})`}return st}const Ld=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Ed=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var gr=new je({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Ld,fromXYZ_M:Ed,formats:{color:{}}});const To=1.09929682680944,ys=.018053968510807;var bl=new je({id:"rec2020",name:"REC.2020",base:gr,toBase(l){return l.map(function(w){return w<ys*4.5?w/4.5:Math.pow((w+To-1)/To,1/.45)})},fromBase(l){return l.map(function(w){return w>=ys?To*Math.pow(w,.45)-(To-1):4.5*w})},formats:{color:{}}});const Od=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Dd=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var xl=new je({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Od,fromXYZ_M:Dd});const jd=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Id=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Cl=new je({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:jd,fromXYZ_M:Id,formats:{color:{}}}),vs={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let bs=Array(3).fill("<percentage> | <number>[0, 255]"),xs=Array(3).fill("<number>[0, 255]");var lo=new je({id:"srgb",name:"sRGB",base:Cl,fromBase:l=>l.map(w=>{let R=w<0?-1:1,K=w*R;return K>.0031308?R*(1.055*Wt(K,1/2.4)-.055):12.92*w}),toBase:l=>l.map(w=>{let R=w<0?-1:1,K=w*R;return K<.04045?w/12.92:R*Wt((K+.055)/1.055,2.4)}),formats:{rgb:{coords:bs},rgb_number:{name:"rgb",commas:!0,coords:xs,noAlpha:!0},color:{},rgba:{coords:bs,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:xs},hex:{type:"custom",toGamut:!0,test:l=>/^#([a-f0-9]{3,4}){1,2}$/i.test(l),parse(l){l.length<=5&&(l=l.replace(/[a-f0-9]/gi,"$&$&"));let w=[];return l.replace(/[a-f0-9]{2}/gi,R=>{w.push(parseInt(R,16)/255)}),{spaceId:"srgb",coords:w.slice(0,3),alpha:w.slice(3)[0]}},serialize:(l,w,{collapse:R=!0}={})=>{w<1&&l.push(w),l=l.map(it=>Math.round(it*255));let K=R&&l.every(it=>it%17===0);return"#"+l.map(it=>K?(it/17).toString(16):it.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:l=>/^[a-z]+$/i.test(l),parse(l){l=l.toLowerCase();let w={spaceId:"srgb",coords:null,alpha:1};if(l==="transparent"?(w.coords=vs.black,w.alpha=0):w.coords=vs[l],w.coords)return w}}}}),Sl=new je({id:"p3",name:"P3",base:xl,fromBase:lo.fromBase,toBase:lo.toBase,formats:{color:{id:"display-p3"}}});ii.display_space=lo;if(typeof CSS!="undefined"&&CSS.supports)for(let l of[Be,bl,Sl]){let w=l.getMinCoords(),K=Jo({space:l,coords:w,alpha:1});if(CSS.supports("color",K)){ii.display_space=l;break}}function _d(l,K={}){var Q=K,{space:w=ii.display_space}=Q,R=Te(Q,["space"]);let it=Jo(l,R);if(typeof CSS=="undefined"||CSS.supports("color",it)||!ii.display_space)it=new String(it),it.color=l;else{let rt=Ge(l,w);it=new String(Jo(rt,R)),it.color=rt}return it}function wl(l,w,R="lab"){R=Zt.get(R);let K=R.from(l),Q=R.from(w);return Math.sqrt(K.reduce((it,rt,st)=>{let ht=Q[st];return isNaN(rt)||isNaN(ht)?it:it+Wt(ht-rt,2)},0))}function Nd(l,w){return l=re(l),w=re(w),l.space===w.space&&l.alpha===w.alpha&&l.coords.every((R,K)=>R===w.coords[K])}function bi(l){return Xe(l,[We,"y"])}function Ml(l,w){yi(l,[We,"y"],w)}function Bd(l){Object.defineProperty(l.prototype,"luminance",{get(){return bi(this)},set(w){Ml(this,w)}})}var Rd=Object.freeze({__proto__:null,getLuminance:bi,register:Bd,setLuminance:Ml});function zd(l,w){l=re(l),w=re(w);let R=Math.max(bi(l),0),K=Math.max(bi(w),0);return K>R&&([R,K]=[K,R]),(R+.05)/(K+.05)}const Fd=.56,Gd=.57,Wd=.62,Xd=.65,Cs=.022,Hd=1.414,Yd=.1,Ud=5e-4,Vd=1.14,Ss=.027,$d=1.14;function ws(l){return l>=Cs?l:l+Wt(Cs-l,Hd)}function Oi(l){let w=l<0?-1:1,R=Math.abs(l);return w*Math.pow(R,2.4)}function Zd(l,w){w=re(w),l=re(l);let R,K,Q,it,rt,st;w=Ge(w,"srgb"),[it,rt,st]=w.coords;let ht=Oi(it)*.2126729+Oi(rt)*.7151522+Oi(st)*.072175;l=Ge(l,"srgb"),[it,rt,st]=l.coords;let ct=Oi(it)*.2126729+Oi(rt)*.7151522+Oi(st)*.072175,pt=ws(ht),ft=ws(ct),_=ft>pt;return Math.abs(ft-pt)<Ud?K=0:_?(R=Wt(ft,Fd)-Wt(pt,Gd),K=R*Vd):(R=Wt(ft,Xd)-Wt(pt,Wd),K=R*$d),Math.abs(K)<Yd?Q=0:K>0?Q=K-Ss:Q=K+Ss,Q*100}function Kd(l,w){l=re(l),w=re(w);let R=Math.max(bi(l),0),K=Math.max(bi(w),0);K>R&&([R,K]=[K,R]);let Q=R+K;return Q===0?0:(R-K)/Q}const qd=5e4;function Jd(l,w){l=re(l),w=re(w);let R=Math.max(bi(l),0),K=Math.max(bi(w),0);return K>R&&([R,K]=[K,R]),K===0?qd:(R-K)/K}function Qd(l,w){l=re(l),w=re(w);let R=Xe(l,[Be,"l"]),K=Xe(w,[Be,"l"]);return Math.abs(R-K)}const tu=216/24389,Ms=24/116,ko=24389/27;let Pr=Ue.D65;var Kr=new Zt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:Pr,base:We,fromBase(l){let R=l.map((K,Q)=>K/Pr[Q]).map(K=>K>tu?Math.cbrt(K):(ko*K+16)/116);return[116*R[1]-16,500*(R[0]-R[1]),200*(R[1]-R[2])]},toBase(l){let w=[];return w[1]=(l[0]+16)/116,w[0]=l[1]/500+w[1],w[2]=w[1]-l[2]/200,[w[0]>Ms?Math.pow(w[0],3):(116*w[0]-16)/ko,l[0]>8?Math.pow((l[0]+16)/116,3):l[0]/ko,w[2]>Ms?Math.pow(w[2],3):(116*w[2]-16)/ko].map((K,Q)=>K*Pr[Q])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const Lr=Math.pow(5,.5)*.5+.5;function eu(l,w){l=re(l),w=re(w);let R=Xe(l,[Kr,"l"]),K=Xe(w,[Kr,"l"]),Q=Math.abs(Math.pow(R,Lr)-Math.pow(K,Lr)),it=Math.pow(Q,1/Lr)*Math.SQRT2-40;return it<7.5?0:it}var Go=Object.freeze({__proto__:null,contrastAPCA:Zd,contrastDeltaPhi:eu,contrastLstar:Qd,contrastMichelson:Kd,contrastWCAG21:zd,contrastWeber:Jd});function iu(l,w,R={}){mo(R)&&(R={algorithm:R});let it=R,{algorithm:K}=it,Q=Te(it,["algorithm"]);if(!K){let rt=Object.keys(Go).map(st=>st.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${rt}`)}l=re(l),w=re(w);for(let rt in Go)if("contrast"+K.toLowerCase()===rt.toLowerCase())return Go[rt](l,w,Q);throw new TypeError(`Unknown contrast algorithm: ${K}`)}function Al(l){let[w,R,K]=yo(l,We),Q=w+15*R+3*K;return[4*w/Q,9*R/Q]}function Tl(l){let[w,R,K]=yo(l,We),Q=w+R+K;return[w/Q,R/Q]}function ou(l){Object.defineProperty(l.prototype,"uv",{get(){return Al(this)}}),Object.defineProperty(l.prototype,"xy",{get(){return Tl(this)}})}var ru=Object.freeze({__proto__:null,register:ou,uv:Al,xy:Tl});function nu(l,w){return wl(l,w,"lab")}const su=Math.PI,As=su/180;function au(l,w,{l:R=2,c:K=1}={}){let[Q,it,rt]=Be.from(l),[,st,ht]=so.from(Be,[Q,it,rt]),[ct,pt,ft]=Be.from(w),_=so.from(Be,[ct,pt,ft])[1];st<0&&(st=0),_<0&&(_=0);let et=Q-ct,G=st-_,B=it-pt,X=rt-ft,U=Wt(B,2)+Wt(X,2)-Wt(G,2),$=.511;Q>=16&&($=.040975*Q/(1+.01765*Q));let Z=.0638*st/(1+.0131*st)+.638,V;Number.isNaN(ht)&&(ht=0),ht>=164&&ht<=345?V=.56+Math.abs(.2*Math.cos((ht+168)*As)):V=.36+Math.abs(.4*Math.cos((ht+35)*As));let F=Math.pow(st,4),I=Math.sqrt(F/(F+1900)),E=Z*(I*V+1-I),A=Wt(et/(R*$),2);return A+=Wt(G/(K*Z),2),A+=U/Wt(E,2),Math.sqrt(A)}const Ts=203;var Dn=new Zt({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:We,fromBase(l){return l.map(w=>Math.max(w*Ts,0))},toBase(l){return l.map(w=>Math.max(w/Ts,0))}});const Po=1.15,Lo=.66,ks=2610/Wt(2,14),lu=Wt(2,14)/2610,Ps=3424/Wt(2,12),Ls=2413/Wt(2,7),Es=2392/Wt(2,7),hu=1.7*2523/Wt(2,5),Os=Wt(2,5)/(1.7*2523),Eo=-.56,Er=16295499532821565e-27,cu=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],pu=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],du=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],uu=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var kl=new Zt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Dn,fromBase(l){let[w,R,K]=l,Q=Po*w-(Po-1)*K,it=Lo*R-(Lo-1)*w,st=ve(cu,[Q,it,K]).map(function(_){let et=Ps+Ls*Wt(_/1e4,ks),G=1+Es*Wt(_/1e4,ks);return Wt(et/G,hu)}),[ht,ct,pt]=ve(du,st);return[(1+Eo)*ht/(1+Eo*ht)-Er,ct,pt]},toBase(l){let[w,R,K]=l,Q=(w+Er)/(1+Eo-Eo*(w+Er)),rt=ve(uu,[Q,R,K]).map(function(_){let et=Ps-Wt(_,Os),G=Es*Wt(_,Os)-Ls;return 1e4*Wt(et/G,lu)}),[st,ht,ct]=ve(pu,rt),pt=(st+(Po-1)*ct)/Po,ft=(ht+(Lo-1)*pt)/Lo;return[pt,ft,ct]},formats:{color:{}}}),qr=new Zt({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:kl,fromBase(l){let[w,R,K]=l,Q;const it=2e-4;return Math.abs(R)<it&&Math.abs(K)<it?Q=NaN:Q=Math.atan2(K,R)*180/Math.PI,[w,Math.sqrt(Wt(R,2)+Wt(K,2)),fr(Q)]},toBase(l){return[l[0],l[1]*Math.cos(l[2]*Math.PI/180),l[1]*Math.sin(l[2]*Math.PI/180)]},formats:{color:{}}});function fu(l,w){let[R,K,Q]=qr.from(l),[it,rt,st]=qr.from(w),ht=R-it,ct=K-rt;Number.isNaN(Q)&&Number.isNaN(st)?(Q=0,st=0):Number.isNaN(Q)?Q=st:Number.isNaN(st)&&(st=Q);let pt=Q-st,ft=2*Math.sqrt(K*rt)*Math.sin(pt/2*(Math.PI/180));return Math.sqrt(Wt(ht,2)+Wt(ct,2)+Wt(ft,2))}const Pl=3424/4096,Ll=2413/128,El=2392/128,Ds=2610/16384,gu=2523/32,mu=16384/2610,js=32/2523,yu=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],vu=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],bu=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],xu=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var Jr=new Zt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Dn,fromBase(l){let w=ve(yu,l);return Cu(w)},toBase(l){let w=Su(l);return ve(xu,w)},formats:{color:{}}});function Cu(l){let w=l.map(function(R){let K=Pl+Ll*Wt(R/1e4,Ds),Q=1+El*Wt(R/1e4,Ds);return Wt(K/Q,gu)});return ve(vu,w)}function Su(l){return ve(bu,l).map(function(K){let Q=Math.max(Wt(K,js)-Pl,0),it=Ll-El*Wt(K,js);return 1e4*Wt(Q/it,mu)})}function wu(l,w){let[R,K,Q]=Jr.from(l),[it,rt,st]=Jr.from(w);return 720*Math.sqrt(Wt(R-it,2)+.25*Wt(K-rt,2)+Wt(Q-st,2))}const Mu=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],Au=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],Tu=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],ku=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var Qo=new Zt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:We,fromBase(l){let R=ve(Mu,l).map(K=>Math.cbrt(K));return ve(Tu,R)},toBase(l){let R=ve(ku,l).map(K=>Wt(K,3));return ve(Au,R)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Pu(l,w){let[R,K,Q]=Qo.from(l),[it,rt,st]=Qo.from(w),ht=R-it,ct=K-rt,pt=Q-st;return Math.sqrt(Wt(ht,2)+Wt(ct,2)+Wt(pt,2))}var tr={deltaE76:nu,deltaECMC:au,deltaE2000:Zr,deltaEJz:fu,deltaEITP:wu,deltaEOK:Pu};function qi(l,w,R={}){mo(R)&&(R={method:R});let it=R,{method:K=ii.deltaE}=it,Q=Te(it,["method"]);l=re(l),w=re(w);for(let rt in tr)if("deltae"+K.toLowerCase()===rt.toLowerCase())return tr[rt](l,w,Q);throw new TypeError(`Unknown deltaE method: ${K}`)}function Lu(l,w=.25){let K=[Zt.get("oklch","lch"),"l"];return yi(l,K,Q=>Q*(1+w))}function Eu(l,w=.25){let K=[Zt.get("oklch","lch"),"l"];return yi(l,K,Q=>Q*(1-w))}var Ou=Object.freeze({__proto__:null,darken:Eu,lighten:Lu});function Ol(l,w,R=.5,K={}){[l,w]=[re(l),re(w)],fi(R)==="object"&&([R,K]=[.5,R]);let{space:Q,outputSpace:it,premultiplied:rt}=K;return vo(l,w,{space:Q,outputSpace:it,premultiplied:rt})(R)}function Dl(l,w,R={}){let K;jn(l)&&([K,R]=[l,w],[l,w]=K.rangeArgs.colors);let _=R,{maxDeltaE:Q,deltaEMethod:it,steps:rt=2,maxSteps:st=1e3}=_,ht=Te(_,["maxDeltaE","deltaEMethod","steps","maxSteps"]);K||([l,w]=[re(l),re(w)],K=vo(l,w,ht));let ct=qi(l,w),pt=Q>0?Math.max(rt,Math.ceil(ct/Q)+1):rt,ft=[];if(st!==void 0&&(pt=Math.min(pt,st)),pt===1)ft=[{p:.5,color:K(.5)}];else{let et=1/(pt-1);ft=Array.from({length:pt},(G,B)=>{let X=B*et;return{p:X,color:K(X)}})}if(Q>0){let et=ft.reduce((G,B,X)=>{if(X===0)return 0;let U=qi(B.color,ft[X-1].color,it);return Math.max(G,U)},0);for(;et>Q;){et=0;for(let G=1;G<ft.length&&ft.length<st;G++){let B=ft[G-1],X=ft[G],U=(X.p+B.p)/2,$=K(U);et=Math.max(et,qi($,B.color),qi($,X.color)),ft.splice(G,0,{p:U,color:K(U)}),G++}}}return ft=ft.map(et=>et.color),ft}function vo(l,w,R={}){if(jn(l)){let[ht,ct]=[l,w];return vo(...ht.rangeArgs.colors,kt(kt({},ht.rangeArgs.options),ct))}let{space:K,outputSpace:Q,progression:it,premultiplied:rt}=R;l=re(l),w=re(w),l=ao(l),w=ao(w);let st={colors:[l,w],options:R};if(K?K=Zt.get(K):K=Zt.registry[ii.interpolationSpace]||l.space,Q=Q?Zt.get(Q):K,l=Ge(l,K),w=Ge(w,K),l=vi(l),w=vi(w),K.coords.h&&K.coords.h.type==="angle"){let ht=R.hue=R.hue||"shorter",ct=[K,"h"],[pt,ft]=[Xe(l,ct),Xe(w,ct)];[pt,ft]=kd(ht,[pt,ft]),yi(l,ct,pt),yi(w,ct,ft)}return rt&&(l.coords=l.coords.map(ht=>ht*l.alpha),w.coords=w.coords.map(ht=>ht*w.alpha)),Object.assign(ht=>{ht=it?it(ht):ht;let ct=l.coords.map((_,et)=>{let G=w.coords[et];return Zo(_,G,ht)}),pt=Zo(l.alpha,w.alpha,ht),ft={space:K,coords:ct,alpha:pt};return rt&&(ft.coords=ft.coords.map(_=>_/pt)),Q!==K&&(ft=Ge(ft,Q)),ft},{rangeArgs:st})}function jn(l){return fi(l)==="function"&&!!l.rangeArgs}ii.interpolationSpace="lab";function Du(l){l.defineFunction("mix",Ol,{returns:"color"}),l.defineFunction("range",vo,{returns:"function<color>"}),l.defineFunction("steps",Dl,{returns:"array<color>"})}var ju=Object.freeze({__proto__:null,isRange:jn,mix:Ol,range:vo,register:Du,steps:Dl}),jl=new Zt({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:lo,fromBase:l=>{let w=Math.max(...l),R=Math.min(...l),[K,Q,it]=l,[rt,st,ht]=[NaN,0,(R+w)/2],ct=w-R;if(ct!==0){switch(st=ht===0||ht===1?0:(w-ht)/Math.min(ht,1-ht),w){case K:rt=(Q-it)/ct+(Q<it?6:0);break;case Q:rt=(it-K)/ct+2;break;case it:rt=(K-Q)/ct+4}rt=rt*60}return[rt,st*100,ht*100]},toBase:l=>{let[w,R,K]=l;w=w%360,w<0&&(w+=360),R/=100,K/=100;function Q(it){let rt=(it+w/30)%12,st=R*Math.min(K,1-K);return K-st*Math.max(-1,Math.min(rt-3,9-rt,1))}return[Q(0),Q(8),Q(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Il=new Zt({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:jl,fromBase(l){let[w,R,K]=l;R/=100,K/=100;let Q=K+R*Math.min(K,1-K);return[w,Q===0?0:200*(1-K/Q),100*Q]},toBase(l){let[w,R,K]=l;R/=100,K/=100;let Q=K*(1-R/2);return[w,Q===0||Q===1?0:(K-Q)/Math.min(Q,1-Q)*100,Q*100]},formats:{color:{toGamut:!0}}}),Iu=new Zt({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Il,fromBase(l){let[w,R,K]=l;return[w,K*(100-R)/100,100-K]},toBase(l){let[w,R,K]=l;R/=100,K/=100;let Q=R+K;if(Q>=1){let st=R/Q;return[w,0,st*100]}let it=1-K,rt=it===0?0:1-R/it;return[w,rt*100,it*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const _u=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Nu=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var _l=new je({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:_u,fromXYZ_M:Nu}),Bu=new je({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:_l,toBase:l=>l.map(w=>Math.pow(Math.abs(w),563/256)*Math.sign(w)),fromBase:l=>l.map(w=>Math.pow(Math.abs(w),256/563)*Math.sign(w)),formats:{color:{id:"a98-rgb"}}});const Ru=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],zu=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var Nl=new je({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:On,toXYZ_M:Ru,fromXYZ_M:zu});const Fu=1/512,Gu=16/512;var Wu=new je({id:"prophoto",name:"ProPhoto",base:Nl,toBase(l){return l.map(w=>w<Gu?w/16:Wt(w,1.8))},fromBase(l){return l.map(w=>w>=Fu?Wt(w,1/1.8):16*w)},formats:{color:{id:"prophoto-rgb"}}}),Xu=new Zt({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:Qo,fromBase(l){let[w,R,K]=l,Q;const it=2e-4;return Math.abs(R)<it&&Math.abs(K)<it?Q=NaN:Q=Math.atan2(K,R)*180/Math.PI,[w,Math.sqrt(Wt(R,2)+Wt(K,2)),fr(Q)]},toBase(l){let[w,R,K]=l,Q,it;return isNaN(K)?(Q=0,it=0):(Q=R*Math.cos(K*Math.PI/180),it=R*Math.sin(K*Math.PI/180)),[w,Q,it]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const Is=203,_s=2610/Wt(2,14),Hu=Wt(2,14)/2610,Yu=2523/Wt(2,5),Ns=Wt(2,5)/2523,Bs=3424/Wt(2,12),Rs=2413/Wt(2,7),zs=2392/Wt(2,7);var Uu=new je({id:"rec2100pq",name:"REC.2100-PQ",base:gr,toBase(l){return l.map(function(w){return Wt(Math.max(Wt(w,Ns)-Bs,0)/(Rs-zs*Wt(w,Ns)),Hu)*1e4/Is})},fromBase(l){return l.map(function(w){let R=Math.max(w*Is/1e4,0),K=Bs+Rs*Wt(R,_s),Q=1+zs*Wt(R,_s);return Wt(K/Q,Yu)})},formats:{color:{id:"rec2100-pq"}}});const Fs=.17883277,Gs=.28466892,Ws=.55991073,Or=3.7743;var Vu=new je({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:gr,toBase(l){return l.map(function(w){return w<=.5?Wt(w,2)/3*Or:(Math.exp((w-Ws)/Fs)+Gs)/12*Or})},fromBase(l){return l.map(function(w){return w/=Or,w<=1/12?Math.sqrt(3*w):Fs*Math.log(12*w-Gs)+Ws})},formats:{color:{id:"rec2100-hlg"}}});const Bl={};mi.add("chromatic-adaptation-start",l=>{l.options.method&&(l.M=Rl(l.W1,l.W2,l.options.method))});mi.add("chromatic-adaptation-end",l=>{l.M||(l.M=Rl(l.W1,l.W2,l.options.method))});function mr({id:l,toCone_M:w,fromCone_M:R}){Bl[l]=arguments[0]}function Rl(l,w,R="Bradford"){let K=Bl[R],[Q,it,rt]=ve(K.toCone_M,l),[st,ht,ct]=ve(K.toCone_M,w),pt=[[st/Q,0,0],[0,ht/it,0],[0,0,ct/rt]],ft=ve(pt,K.toCone_M);return ve(K.fromCone_M,ft)}mr({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});mr({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});mr({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});mr({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(Ue,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});Ue.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const $u=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],Zu=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var zl=new je({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:Ue.ACES,toXYZ_M:$u,fromXYZ_M:Zu,formats:{color:{}}});const Oo=Wt(2,-16),Dr=-.35828683,Do=(Math.log2(65504)+9.72)/17.52;var Ku=new je({id:"acescc",name:"ACEScc",coords:{r:{range:[Dr,Do],name:"Red"},g:{range:[Dr,Do],name:"Green"},b:{range:[Dr,Do],name:"Blue"}},referred:"scene",base:zl,toBase(l){const w=-.3013698630136986;return l.map(function(R){return R<=w?(Wt(2,R*17.52-9.72)-Oo)*2:R<Do?Wt(2,R*17.52-9.72):65504})},fromBase(l){return l.map(function(w){return w<=0?(Math.log2(Oo)+9.72)/17.52:w<Oo?(Math.log2(Oo+w*.5)+9.72)/17.52:(Math.log2(w)+9.72)/17.52})},formats:{color:{}}}),Xs=Object.freeze({__proto__:null,A98RGB:Bu,A98RGB_Linear:_l,ACEScc:Ku,ACEScg:zl,HSL:jl,HSV:Il,HWB:Iu,ICTCP:Jr,JzCzHz:qr,Jzazbz:kl,LCH:so,Lab:Be,Lab_D65:Kr,OKLCH:Xu,OKLab:Qo,P3:Sl,P3_Linear:xl,ProPhoto:Wu,ProPhoto_Linear:Nl,REC_2020:bl,REC_2020_Linear:gr,REC_2100_HLG:Vu,REC_2100_PQ:Uu,XYZ_ABS_D65:Dn,XYZ_D50:On,XYZ_D65:We,sRGB:lo,sRGB_Linear:Cl});class oe{constructor(...w){let R;w.length===1&&(R=re(w[0]));let K,Q,it;R?(K=R.space||R.spaceId,Q=R.coords,it=R.alpha):[K,Q,it]=w,Object.defineProperty(this,"space",{value:Zt.get(K),writable:!1,enumerable:!0,configurable:!0}),this.coords=Q?Q.slice():[0,0,0],this.alpha=it<1?it:1;for(let rt=0;rt<this.coords.length;rt++)this.coords[rt]==="NaN"&&(this.coords[rt]=NaN);for(let rt in this.space.coords)Object.defineProperty(this,rt,{get:()=>this.get(rt),set:st=>this.set(rt,st)})}get spaceId(){return this.space.id}clone(){return new oe(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...w){let R=_d(this,...w);return R.color=new oe(R.color),R}static get(w,...R){return w instanceof oe?w:new oe(w,...R)}static defineFunction(w,R,K=R){let{instance:Q=!0,returns:it}=K,rt=function(...st){let ht=R(...st);if(it==="color")ht=oe.get(ht);else if(it==="function<color>"){let ct=ht;ht=function(...pt){let ft=ct(...pt);return oe.get(ft)},Object.assign(ht,ct)}else it==="array<color>"&&(ht=ht.map(ct=>oe.get(ct)));return ht};w in oe||(oe[w]=rt),Q&&(oe.prototype[w]=function(...st){return rt(this,...st)})}static defineFunctions(w){for(let R in w)oe.defineFunction(R,w[R],w[R])}static extend(w){if(w.register)w.register(oe);else for(let R in w)oe.defineFunction(R,w[R])}}oe.defineFunctions({get:Xe,getAll:yo,set:yi,setAll:vl,to:Ge,equals:Nd,inGamut:Ji,toGamut:vi,distance:wl,toString:Jo});Object.assign(oe,{util:Sd,hooks:mi,WHITES:Ue,Space:Zt,spaces:Zt.registry,parse:yl,defaults:ii});for(let l of Object.keys(Xs))Zt.register(Xs[l]);for(let l in Zt.registry)Qr(l,Zt.registry[l]);mi.add("colorspace-init-end",l=>{var w;Qr(l.id,l),(w=l.aliases)==null||w.forEach(R=>{Qr(R,l)})});function Qr(l,w){Object.values(w.coords).map(K=>K.name);let R=l.replace(/-/g,"_");Object.defineProperty(oe.prototype,R,{get(){let K=this.getAll(l);return typeof Proxy=="undefined"?K:new Proxy(K,{has:(Q,it)=>{try{return Zt.resolveCoord([w,it]),!0}catch(rt){}return Reflect.has(Q,it)},get:(Q,it,rt)=>{if(it&&typeof it!="symbol"&&!(it in Q)){let{index:st}=Zt.resolveCoord([w,it]);if(st>=0)return Q[st]}return Reflect.get(Q,it,rt)},set:(Q,it,rt,st)=>{if(it&&typeof it!="symbol"&&!(it in Q)||it>=0){let{index:ht}=Zt.resolveCoord([w,it]);if(ht>=0)return Q[ht]=rt,this.setAll(l,Q),!0}return Reflect.set(Q,it,rt,st)}})},set(K){this.setAll(l,K)},configurable:!0,enumerable:!0})}oe.extend(tr);oe.extend({deltaE:qi});Object.assign(oe,{deltaEMethods:tr});oe.extend(Ou);oe.extend({contrast:iu});oe.extend(ru);oe.extend(Rd);oe.extend(ju);oe.extend(Go);const qu=.15,Ve=l=>typeof l=="string"?new oe(l):l,ni=l=>l.toString({format:"hex"}),Fl=(...l)=>{const w=l.map(Ve);if(w.length<2)return()=>ni(w[0]);const K=w.slice(0,-1).map((Q,it)=>[Q,w[it+1]]).map(([Q,it])=>{const rt=oe.range(Q,it,{outputSpace:"srgb"});return st=>ni(rt(st))});return Q=>{if(Q<=0)return ni(w[0]);if(Q>=1)return ni(w[w.length-1]);const it=Math.floor(Q*K.length);return K[it](Q*K.length-it)}},Ju=(l,...w)=>{const R=w.map(Ve);if(R.length<2)return Array(l).fill(ni(R[0]));const K=Fl(...R);return Array(l).fill(0).map((Q,it)=>K(it/(l-1)))},Gl=l=>ni(Ve(l).set("hsl.s",0)),Qu=(l,w)=>ni(oe.mix(l,w,.5,{outputSpace:"srgb"})),tf=(l,w)=>Math.abs(Ve(w).hsl.h-Ve(l).hsl.h),ho=(l,w)=>{const R=Ve(l);return R.hsv.v=R.hsv.v+R.hsv.v*w,R.hsv.v>100&&(R.hsv.s=R.hsv.s-(R.hsv.v-100)/1.677),R.hsv.s=Math.max(0,Math.min(100,R.hsv.s)),R.hsv.v=Math.max(0,Math.min(100,R.hsv.v)),ni(R)},Wl=l=>({R:l.srgb[0]*255,G:l.srgb[1]*255,B:l.srgb[2]*255}),bo=l=>{const{R:w,G:R,B:K}=Wl(l);return 1-(.299*w+.587*R+.114*K)/255};function ef(l){return bo(l)<.9}const of=(l,w=.05,R=1)=>{const K=Ve(l),{R:Q,G:it,B:rt}=Wl(K),st=bo(K);let ht=w;ef(K)&&(ht*=-.6),ht*=Math.exp(st*1.2);const ct=Math.min(Math.max(Math.round(255*ht)+Q,0),255),pt=Math.min(Math.max(Math.round(255*ht)+it,0),255),ft=Math.min(Math.max(Math.round(255*ht)+rt,0),255);return`rgba(${ct}, ${pt}, ${ft}, ${R})`},Xl=(l,w)=>{const R=Ve(l);return R.alpha=w,ni(R)},rf=(l,w,R)=>oe.steps(new oe(l),new oe(w),{steps:R}).map(K=>new oe(K).to("srgb").toString());function nf(l){return w=>{var ct,pt,ft;const{steps:R,minColor:K,maxColor:Q}=l,it=(ct=l.minValue)!=null?ct:Math.min(...w),rt=(pt=l.maxValue)!=null?pt:Math.max(...w),st=(ft=l.midValue)!=null?ft:it<0&&rt>0?0:(it+rt)/2,ht=Hl(K!=null?K:Vo,Q!=null?Q:Vo,it,st,rt,R);return _=>ht(_)}}const Hl=(l,w,R,K,Q,it=0)=>{const rt=lf(R,K,Q),st=tf(l,w)>90?[l,Gl(Qu(l,w)),w]:[l,w];return it<=0?sf(rt,st):af(rt,it,st)},sf=(l,w)=>{const R=Fl(...w);return K=>R(l(K))},af=(l,w,R)=>{const K=Ju(w,...R);return Q=>{const it=Math.floor(l(Q)*w);return K[Math.min(Math.max(it,0),w-1)]}},lf=(l,w,R)=>K=>K==l&&K==R?.5:K<w?.5*((K-l)/(w-l)):.5+.5*(K-w)/(R-w);function Yl(l){let w;switch(typeof l=="string"?w=Ln(l):w=l,w.type){case"uniform":return{type:"Static",getColor:bd(w)};case"conditional":return{type:"Absolute",getColor:xd(w)};case"range":return{type:"Relative",getColor:nf(w)}}}const In=l=>{const{getValueFromDataStructure:w,applyColorToDataStructure:R}=l;return(K,Q)=>{const it=Yl(Q);let rt;switch(it.type){case"Static":rt=()=>it.getColor();break;case"Absolute":rt=st=>it.getColor(st);break;case"Relative":{const st=K.map(w),ht=it.getColor(st);rt=ct=>ht(ct);break}}return K.map(st=>{const ht=w(st),ct=rt(ht);return R(st,ct)})}},hf=In({getValueFromDataStructure:l=>l.value,applyColorToDataStructure:(l,w)=>Nt(kt({},l),{color:w})}),Ul=({x:l,y:w,breakBy:R})=>$l(w)&&Vl(l)&&R.length===0,cf=({x:l,y:w,breakBy:R})=>Vl(l)&&$l(w)&&R.length>0,Vl=l=>l.length===0,$l=l=>l.length>0,pf=(l,w)=>l*(w/100),df=(l,w)=>l===0?0:Math.abs(w)/Math.abs(l)*100,Wo=l=>`${l}%`,tn=(l,w)=>{var ft;if(w.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const R=l.x.length;let K=no(w,l.x.map(({column:{name:_}})=>_));K=K.map((_,et)=>Nt(kt({},_),{direction:Zl(l.x[et].sortType)}));const Q=no(w,l.breakBy.map(({column:{name:_}})=>_)),it=l.y.filter(({sortType:_})=>_&&_!=="sortNone"),rt=K.length>1?1:0,st=Kl(w,it,K,((ft=K[rt])==null?void 0:ft.direction)===0?Sn:void 0),ht=l.y.map(({column:{name:_}})=>_),ct=l.breakBy.length>0?mf(w,st,K,ht[0],Q,l.breakBy):uf(w,st,K,ht,l.y);return Nt(kt({},ct),{xAxisCount:R,type:"cartesian"})},Zl=l=>{switch(l){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},Kl=(l,w,R,K)=>{if(R.length===0)return[{key:"",xValues:[""],rawValues:[]}];const Q=w.map(({column:{name:ft}})=>({column:ft,agg:"sum",title:ft}));if(K){const ft={column:K,title:K,agg:"min"};Q.push(ft)}const it=il(l,R,Q),rt=[];let st=0;if(R.length===2){st=1;const _=ui(it,R[0].name);_&&rt.push(_)}if(w.map(ft=>{const _=ui(it,ft.column.name);return _&&rt.push(Nt(kt({},_),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),K){const ft=ui(it,K);ft&&rt.push(ft)}if(R.length>0){const ft=ui(it,R[st].name);ft&&rt.push(ft)}const ht=el(it,rt),ct=no(ht,R.map(ft=>ft.name)),pt=ol(ht,ct);return pt.rows.map(ft=>{const _=zi(ft,pt.columns),et=_.map(U=>U.displayValue),G=_.map(U=>{var $;return($=U.rawValue)!=null?$:U.displayValue}),B=_.map(U=>{var $;return($=U==null?void 0:U.compareValue)==null?void 0:$.value});return{key:G.join(","),xValues:et,rawValues:G,compareValues:B}})},ql=(l,w,R)=>{var st,ht;const K=R?rl(l,R):1e-5,{color:Q,rawValue:it}=(ht=l[(st=R==null?void 0:R.index)!=null?st:0])!=null?ht:{},rt=K===void 0?NaN:K;return kt({rawValue:it!=null?it:rt,xValue:w.rawValues,xDisplayValue:w.xValues,xCompareValue:w.compareValues,value:rt,blur:R?nl(l,R):void 0},Q&&{color:Q})},uf=(l,w,R,K,Q)=>{const it=K.length>0?no(l,K):[void 0],rt=Q.reduce((ct,pt)=>(ct[pt.column.name]=pt,ct),{}),st=Mn(l.rows,R),ht=it.map(ct=>{var G,B;let pt=w.map(X=>{const U=st[X.key],$=U?U[0]:[];return ql($,X,ct)});const ft=(G=ct==null?void 0:ct.name)!=null?G:"",_=ft?Ce(rt[ft]):"",et=(B=rt[ft])==null?void 0:B.color;return et&&(pt=hf(pt,et)),{name:ft,title:_,data:pt}});return{xValues:w,series:ht}},ff=(l,w,R)=>zi(l,w).map((K,Q)=>{const it=pe(R[Q].numberFormatConfig);return Rt.isNumber(w[Q].type)?Se(it,parseFloat(K.displayValue)):K.displayValue}).join(","),gf=(l,w)=>zi(l,w).map(({rawValue:R})=>R),mf=(l,w,R,K,Q,it)=>{const rt=ui(l,K),ct=wn(l.rows,Q).map(pt=>{const ft=pt[0];return{seriesName:ff(ft,Q,it),seriesValues:gf(ft,Q),rowsByXColumns:Mn(pt,R)}}).map(pt=>{const ft=w.map(_=>{const et=pt.rowsByXColumns[_.key],G=et?et[0]:[];return ql(G,_,rt)});return{name:pt.seriesName,data:ft,custom:{rawValue:pt.seriesValues}}});return{xValues:w,series:ct}},Hs=l=>{if(typeof l=="object"&&l!==null){if(typeof Object.getPrototypeOf=="function"){const w=Object.getPrototypeOf(l);return w===Object.prototype||w===null}return Object.prototype.toString.call(l)==="[object Object]"}return!1},si=(...l)=>l.reduce((w,R)=>{if(Array.isArray(R))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(R).forEach(K=>{["__proto__","constructor","prototype"].includes(K)||(Array.isArray(w[K])&&Array.isArray(R[K])?w[K]=si.options.mergeArrays?Array.from(new Set(w[K].concat(R[K]))):R[K]:Hs(w[K])&&Hs(R[K])?w[K]=si(w[K],R[K]):w[K]=R[K])}),w},{}),Jl={mergeArrays:!0};si.options=Jl;si.withOptions=(l,...w)=>{si.options=Object.assign({mergeArrays:!0},l);const R=si(...w);return si.options=Jl,R};function _n(){}function xi(l,w){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!w,this.__index__=0,this.__values__=void 0}xi.prototype=Rt.baseCreate(_n.prototype);xi.prototype.constructor=xi;var en=Rt.WeakMap&&new Rt.WeakMap;function Ql(){}var Nn=en?function(l){return en.get(l)}:Ql,Ys={},yf=Object.prototype,vf=yf.hasOwnProperty;function Xo(l){for(var w=l.name+"",R=Ys[w],K=vf.call(Ys,w)?R.length:0;K--;){var Q=R[K],it=Q.func;if(it==null||it==l)return Q.name}return w}var bf=4294967295;function _i(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=bf,this.__views__=[]}_i.prototype=Rt.baseCreate(_n.prototype);_i.prototype.constructor=_i;function xf(l){if(l instanceof _i)return l.clone();var w=new xi(l.__wrapped__,l.__chain__);return w.__actions__=Rt.copyArray(l.__actions__),w.__index__=l.__index__,w.__values__=l.__values__,w}var Cf=Object.prototype,Sf=Cf.hasOwnProperty;function er(l){if(Rt.isObjectLike(l)&&!Rt.isArray(l)&&!(l instanceof _i)){if(l instanceof xi)return l;if(Sf.call(l,"__wrapped__"))return xf(l)}return new xi(l)}er.prototype=_n.prototype;er.prototype.constructor=er;function on(l){var w=Xo(l),R=er[w];if(typeof R!="function"||!(w in _i.prototype))return!1;if(l===R)return!0;var K=Nn(R);return!!K&&l===K[0]}var wf="Expected a function",Mf=8,Af=32,Tf=128,kf=256;function Pf(l){return Rt.flatRest(function(w){for(var R=w.length,K=R,Q=xi.prototype.thru;K--;){var it=w[K];if(typeof it!="function")throw new TypeError(wf);if(Q&&!rt&&Xo(it)=="wrapper")var rt=new xi([],!0)}for(K=rt?K:R;++K<R;){it=w[K];var st=Xo(it),ht=st=="wrapper"?Nn(it):void 0;ht&&on(ht[0])&&ht[1]==(Tf|Mf|Af|kf)&&!ht[4].length&&ht[9]==1?rt=rt[Xo(ht[0])].apply(rt,ht[3]):rt=it.length==1&&on(it)?rt[st]():rt.thru(it)}return function(){var ct=arguments,pt=ct[0];if(rt&&ct.length==1&&Rt.isArray(pt))return rt.plant(pt).value();for(var ft=0,_=R?w[ft].apply(this,ct):pt;++ft<R;)_=w[ft].call(this,_);return _}})}var yr=Pf();const $e=(l,w)=>{var K;const R=l==null?void 0:l.filter(Q=>Q);return(K=R&&R[w%R.length])!=null?K:vd[w%10]},th=l=>typeof l=="object"&&l!==null&&"type"in l&&l.type==="linear",eh=l=>typeof l=="object"&&l!==null&&"type"in l&&l.type==="radial",ih=l=>th(l)||eh(l),Lf={topToBottom:{x1:0,y1:0,x2:0,y2:1},bottomToTop:{x1:0,y1:1,x2:0,y2:0},leftToRight:{x1:0,y1:0,x2:1,y2:0},rightToLeft:{x1:1,y1:0,x2:0,y2:0},diagonalTopLeft:{x1:0,y1:0,x2:1,y2:1},diagonalTopRight:{x1:1,y1:0,x2:0,y2:1}},Ef={center:{centerX:.5,centerY:.5,radius:.8},topLeft:{centerX:0,centerY:0,radius:1},topRight:{centerX:1,centerY:0,radius:1},bottomLeft:{centerX:0,centerY:1,radius:1},bottomRight:{centerX:1,centerY:1,radius:1}},Of=(l,w)=>({type:"linear",direction:l,stops:w}),Df=(l,w)=>({type:"radial",center:l,stops:w}),oh=l=>l.type==="linear"?{linearGradient:{x1:l.direction.x1,y1:l.direction.y1,x2:l.direction.x2,y2:l.direction.y2},stops:l.stops.map(w=>[w.position,w.color])}:{radialGradient:{cx:l.center.centerX,cy:l.center.centerY,r:l.center.radius},stops:l.stops.map(w=>[w.position,w.color])},jf=l=>{if(l.linearGradient)return{type:"linear",direction:{x1:l.linearGradient.x1,y1:l.linearGradient.y1,x2:l.linearGradient.x2,y2:l.linearGradient.y2},stops:l.stops.map(([w,R])=>({position:w,color:R}))};if(l.radialGradient)return{type:"radial",center:{centerX:l.radialGradient.cx,centerY:l.radialGradient.cy,radius:l.radialGradient.r},stops:l.stops.map(([w,R])=>({position:w,color:R}))};throw new Error("Invalid inner gradient format: must have either linearGradient or radialGradient")},Ti=l=>ih(l)?oh(l):l,If=l=>{const R=[...l.stops].sort((K,Q)=>K.position-Q.position).map(K=>`${K.color} ${K.position*100}%`).join(", ");if(l.type==="linear"){const{direction:K}=l,Q=K.x2-K.x1,it=K.y2-K.y1;return`linear-gradient(${Math.atan2(it,Q)*180/Math.PI+90}deg, ${R})`}else{const{center:K}=l,Q=K.centerX*100,it=K.centerY*100;return`radial-gradient(circle ${K.radius*100}% at ${Q}% ${it}%, ${R})`}};function _f(l){return typeof l!="object"||l===null||Array.isArray(l)||l instanceof Date||l instanceof RegExp||l instanceof Function?!0:Object.keys(l).length>0}function ki(l){if(l==null)return l;if(Array.isArray(l))return l.filter(w=>w!==void 0).map(w=>ki(w)).filter(w=>typeof w=="object"&&w!==null&&!Array.isArray(w)?Object.keys(w).length>0:!0);if(typeof l=="object"){if(l instanceof Date||l instanceof RegExp||l instanceof Function)return l;const w={};for(const[R,K]of Object.entries(l)){if(K===void 0)continue;const Q=ki(K);_f(Q)&&(w[R]=Q)}return w}return l}const Oe=l=>{var et;const{rotation:w,alignInside:R,align:K,verticalAlign:Q,textStyle:it,backgroundColor:rt,borderColor:st,borderRadius:ht,borderWidth:ct,padding:pt,xOffset:ft,yOffset:_}=l!=null?l:{};return ki({enabled:(et=l==null?void 0:l.enabled)!=null?et:!1,rotation:w,inside:R,align:K,verticalAlign:Q,style:it,backgroundColor:Ti(rt),borderColor:Ti(st),borderRadius:ht,borderWidth:ct,padding:pt,x:ft,y:_})};var Nf=function(w){return Bf(w)&&!Rf(w)};function Bf(l){return!!l&&typeof l=="object"}function Rf(l){var w=Object.prototype.toString.call(l);return w==="[object RegExp]"||w==="[object Date]"||Gf(l)}var zf=typeof Symbol=="function"&&Symbol.for,Ff=zf?Symbol.for("react.element"):60103;function Gf(l){return l.$$typeof===Ff}function Wf(l){return Array.isArray(l)?[]:{}}function co(l,w){return w.clone!==!1&&w.isMergeableObject(l)?Ni(Wf(l),l,w):l}function Xf(l,w,R){return l.concat(w).map(function(K){return co(K,R)})}function Hf(l,w){if(!w.customMerge)return Ni;var R=w.customMerge(l);return typeof R=="function"?R:Ni}function Yf(l){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(l).filter(function(w){return Object.propertyIsEnumerable.call(l,w)}):[]}function Us(l){return Object.keys(l).concat(Yf(l))}function rh(l,w){try{return w in l}catch(R){return!1}}function Uf(l,w){return rh(l,w)&&!(Object.hasOwnProperty.call(l,w)&&Object.propertyIsEnumerable.call(l,w))}function Vf(l,w,R){var K={};return R.isMergeableObject(l)&&Us(l).forEach(function(Q){K[Q]=co(l[Q],R)}),Us(w).forEach(function(Q){Uf(l,Q)||(rh(l,Q)&&R.isMergeableObject(w[Q])?K[Q]=Hf(Q,R)(l[Q],w[Q],R):K[Q]=co(w[Q],R))}),K}function Ni(l,w,R){R=R||{},R.arrayMerge=R.arrayMerge||Xf,R.isMergeableObject=R.isMergeableObject||Nf,R.cloneUnlessOtherwiseSpecified=co;var K=Array.isArray(w),Q=Array.isArray(l),it=K===Q;return it?K?R.arrayMerge(l,w,R):Vf(l,w,R):co(w,R)}Ni.all=function(w,R){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(K,Q){return Ni(K,Q,R)},{})};var $f=Ni,Zf=$f;const Fe=fn(Zf),Kf={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},qf=l=>{switch(l){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},Jf=l=>{if((l==null?void 0:l.enabled)===!1||!l)return;const{text:w,textStyle:R}=l;return{title:{text:w,style:R}}},Qf=l=>{if(!l)return;const{layout:w,textStyle:R,marginBottom:K,marginTop:Q,distance:it,width:rt,hoverTextStyle:st,hiddenTextStyle:ht}=l||{};return{layout:w,itemStyle:R,itemMarginBottom:K,itemMarginTop:Q,itemDistance:it,itemWidth:rt,itemHoverStyle:st,itemHiddenStyle:ht}},tg=l=>{if(!l)return;const{radius:w,height:R,width:K,padding:Q,squared:it}=l;return{symbolRadius:w,symbolHeight:R,symbolWidth:K,symbolPadding:Q,squareSymbol:it}},eg=l=>{const ct=l,{title:w,items:R,symbols:K,xOffset:Q,yOffset:it,backgroundColor:rt,borderColor:st}=ct,ht=Te(ct,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return ki(Nt(kt(kt(kt(kt({},ht),Jf(w)),Qf(R)),tg(K)),{x:Q,y:it,backgroundColor:Ti(rt),borderColor:Ti(st)}))},Ci=l=>{const w={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!l)return w;const rt=l,{position:R}=rt,K=Te(rt,["position"]),Q=qf(R||null),it=eg(K);return ki(Nt(kt(kt(kt({},w),Q),it),{itemStyle:kt(kt({},Kf),it.itemStyle)}))},Bn=l=>{var w;return(l==null?void 0:l.position)==="right"||(l==null?void 0:l.align)==="right"&&((w=l==null?void 0:l.items)==null?void 0:w.layout)==="vertical"&&(l==null?void 0:l.verticalAlign)==="middle"},Ae="#d1d1d7",nh=25,sh=[-10,-20,-30,-40,-50,-60,-70,-80,-90],we={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"none"},po={fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},rn={labels:{overflow:"none",enabled:!0,autoRotation:sh,style:we},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:nh,style:we},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae},Vs={labels:{autoRotation:sh,style:we},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:nh,enabled:!1,style:we},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae,minorGridLineDashStyle:"Dot",stackLabels:{style:po,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999,x:0,y:0},showLastLabel:!0},ig=(l,w,R)=>{switch(l){case"line":return Si;case"area":return Fe(Si,$s(R));case"bar":return Fe(Si,rg(R));case"column":return Fe(Si,og(R));case"polar":return Fe(Si,ng(w));case"arearange":return Fe(Si,$s(R));default:return Si}},Si={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:Ci(),credits:{enabled:!1},exporting:{enabled:!0},plotOptions:{area:{className:"area-series--without-pointer-events",states:{inactive:{enabled:!0,opacity:.3}}},series:{dataLabels:{enabled:!1,crop:!1,style:Nt(kt({},we),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},$s=l=>({plotOptions:{area:kt({},l&&{lineColor:"#ffffff"}),series:kt({},l&&{stacking:l})}}),og=l=>({plotOptions:{column:kt({groupPadding:.1,pointPadding:.01},l&&{borderWidth:0}),series:kt({},l&&{stacking:l})}}),rg=l=>({plotOptions:{bar:kt({groupPadding:.1,pointPadding:.01},l&&{borderWidth:0}),series:kt({},l&&{stacking:l})}});function ng(l){return{plotOptions:{series:Nt(kt({},l!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const ah={enabled:!0,showCategory:!0,showValue:!0,showPercentage:!0,showPercentDecimals:!1},lh="regular",hh="regular",ch="regular",sg=l=>l!=="regular",ag=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:we},reversed:!0,neckWidth:dg,neckHeight:0,width:ph}),lg=l=>{const{enabled:w,showCategory:R,showValue:K,showPercentage:Q}=l;return Nt(kt({},Oe(l)),{enabled:w&&[R,K,Q].find(Boolean)!==void 0})},hg=(l,w)=>w.showCategory?l.point.name||l.series.name:"",cg=(l,w,R)=>{if(!w.showValue)return"";const K=Se(R,l.y);return w.showValue&&w.showCategory?`<br />${K}`:K},pg=(l,w)=>{var Q,it;if(!w.showPercentage)return"";const R=((it=(Q=l.point)==null?void 0:Q.custom)==null?void 0:it.number1)||0,K=w.showPercentDecimals?R.toFixed(1):`${Math.round(R)}`;return` <b>${Wo(K)}</b>`},ph=66.6,dg=15,ug=l=>ph,fg={wide:60,regular:30,narrow:15},gg=(l,w)=>Math.round(pf(l,fg[w])),mg=l=>l==="pinched"?30:0,dh=(l,w)=>{var pt;const{funnelType:R=hh,funnelSize:K=lh,funnelDirection:Q=ch,seriesLabels:it=ah}=l,rt=pe((pt=w.y[0])==null?void 0:pt.numberFormatConfig),st=ug(),ht={dataLabels:Nt(kt({},lg(it)),{formatter:function(){var G,B;const ft=hg(this,it),_=cg(this,it,rt),et=pg(this,it);return`${(G=it==null?void 0:it.prefix)!=null?G:""}${ft}${_}${et}${(B=it==null?void 0:it.suffix)!=null?B:""}`}}),reversed:sg(Q),neckWidth:Wo(gg(st,K)),neckHeight:Wo(mg(R)),width:Wo(st)};return{funnel:si(ag(),ht),series:{}}},yg={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},uh="classic",vg={classic:"0%",donut:"40%",ring:"80%"},bg=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:we},innerSize:"0%"}),xg=()=>({dataLabels:{enabled:!1}}),fh=({pieType:l=uh,seriesLabels:w=yg,chartDataOptions:R,themeSettings:K,semiCircle:Q})=>{var st,ht,ct,pt,ft;const it=bg(),rt=xg();if(it.innerSize=vg[l],K&&(it.dataLabels.style={color:K.chart.textColor,fontFamily:K.typography.fontFamily,textOutline:"none"}),w.enabled){const _=pe((st=R.y[0])==null?void 0:st.numberFormatConfig),et=w.enabled&&(w.showCategory||w.showValue),G=Oe(w);it.dataLabels=Nt(kt(kt({},it.dataLabels),G),{enabled:et,style:kt(kt({},it.dataLabels.style),G.style),formatter:function(){var U,$;const B=this.point.name||this.series.name,X=this.y;return"<div>"+((U=w.prefix)!=null?U:"")+(w.showCategory?B:"")+(w.showCategory&&w.showValue?"<br />":"")+(w.showValue?Se(_,X):"")+(($=w.suffix)!=null?$:"")+"</div>"},showPercentLabels:(ct=(ht=w==null?void 0:w.percentageLabels)==null?void 0:ht.enabled)!=null?ct:!1,showDecimals:(ft=(pt=w==null?void 0:w.percentageLabels)==null?void 0:pt.showDecimals)!=null?ft:!1})}return rt.dataLabels&&(rt.dataLabels.enabled=w.enabled),Q&&(it.startAngle=-90,it.endAngle=90,it.center=["50%","75%"]),{pie:it,series:rt}},gh=l=>l.compareValues?l.compareValues[0]:NaN,Cg=(l,w)=>{var Q;if(l.length===0)return[...l];const R=l[0],K=(Q=R.events)==null?void 0:Q.afterSetExtremes;return[Nt(kt({},R),{events:Nt(kt({},R.events),{afterSetExtremes:it=>{K==null||K(it),it.trigger==="navigator"&&typeof it.min=="number"&&typeof it.max=="number"&&w(Math.round(it.min),Math.round(it.max))}})}),...l.slice(1)]},Rn=l=>w=>l?Cg(w,l):[...w],vr=l=>{if(l!==void 0){switch(l){case Rt.DateLevels.Years:return"yyyy";case Rt.DateLevels.Quarters:return"yyyy Q";case Rt.DateLevels.Months:return"MM/yyyy";case Rt.DateLevels.Weeks:return"ww yyyy";case Rt.DateLevels.Days:return"M/d/yy";case Rt.DateLevels.AggHours:return"HH";case Rt.DateLevels.Hours:return"M/d/yy HH";case Rt.DateLevels.AggMinutesRoundTo30:return"HH:mm";case Rt.DateLevels.MinutesRoundTo30:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo15:return"HH:mm";case Rt.DateLevels.MinutesRoundTo15:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo1:return"HH:mm";case Rt.DateLevels.Minutes:return"HH:mm";case Rt.DateLevels.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}};var zn=(l=>(l.MONTH="month",l.QUARTER="quarter",l.HALF_YEAR="half-year",l.YEAR="year",l))(zn||{});const Sg={VIEW_TYPE:zn.MONTH,SUBTYPE:"calendar-heatmap/split",NO_DATA_COLOR:"#f5f5f5",BORDER_WIDTH:0,MIN_CELL_SIZE_FOR_LABELS:20,TOTAL_CALENDAR_CELLS:42,DAYS_IN_WEEK:7,MAX_CALENDAR_ROWS:6,SHOW_CELL_LABEL:!0,SHOW_DAY_LABEL:!0,SHOW_MONTH_LABEL:!0,SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD:120,SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD:70,SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD:120,SHOW_CELL_LABEL_SIZE_THRESHOLD:16,WEEKEND_ENABLED:!1,WEEKEND_DAYS:["saturday","sunday"],WEEKEND_CELL_COLOR:"#e6e6e6",WEEKEND_HIDE_VALUES:!0,START_OF_WEEK:"sunday",SHOW_PAGINATION:!0},wg={MIN_COLOR_BRIGHTNESS_PERCENT:.5,MAX_COLOR_BRIGHTNESS_PERCENT:-.3,TOOLTIP_COLOR_BRIGHTNESS_PERCENT:-.2,TOOLTIP_BORDER_COLOR:"#c0c0c0"},Mg={GAP_WIDTH:30,GAP_HEIGHT:10,MARGINS:{TOP:20,RIGHT:40,BOTTOM:20,LEFT:40},COLUMNS:7,ROWS:7,MIN_CELL_SIZE:4,MAX_CELL_SIZE:80,TITLE_HEIGHT:20,PAGINATION_HEIGHT:45,PAGINATION_BUTTON_SIZE:{WIDTH:30,HEIGHT:30},MIN_TOOLTIP_WIDTH:110},Ag={FONT_SIZE_RATIO:.3,MIN_FONT_SIZE:10,MAX_FONT_SIZE:13,LABEL_Y_OFFSET_RATIO:.08,AXIS_LABEL_Y_RATIO:.3,AXIS_OFFSET_RATIO:.4,MIN_AXIS_FONT_SIZE:12},Tg="calendar-heatmap",kg="MMMM",Pg="MMM",Lg="EEEEE",Eg="EEE",Og="2023-01-01T00:00:00Z";var nn={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(l,w){(function(R,K){l.exports=K()})(self,()=>(()=>{var R={2:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(2807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},50:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(4501));rt.default=function(pt){var ft,_,et=pt.objectEach,G=pt.pick,B="legend-hovered",X=document.documentElement.ontouchstart!==void 0;function U(){clearTimeout(ft),clearTimeout(_),ft=null,_=null}pt.wrap(pt.Legend.prototype,"renderItem",function($,Z){$.call(this,Z);var V=Z.chart?Z.chart:Z.series.chart,F=!!Z.series,I=V.options.$familyType==="pie",E=F?["graphic"]:["group","markerGroup"],A=Z.legendItem.group.element,P=F?Z.series.points:this.chart.series;function y(M){var x=[];return(M.yAxis||[]).forEach(function(p){p.options.stackLabels&&!p.options.stackLabels.allowOverlap&&et(p.stacking.stacks,function(g){et(g,function(r){r&&r.label&&(r.label.isStackLabel=!0),x.push(r.label)})})}),x}function c(){if(_=null,!ft){var M=S(Z),x={totalsRank:Number.MIN_SAFE_INTEGER};v(Z),m(M,x)}}function f(){ft=null,_||function(M){var x=[],p=[],g={totalsRank:Number.MIN_SAFE_INTEGER};(V.series||[]).forEach(function(a){x=x.concat(S(a)),a!==M&&a.visible&&v(a)});var r=y(V);m(p=p.concat(x,r),g)}(Z)}function m(M,x){V.hideOverlappingLabels(M,x)}function u(M){(V.series||[]).forEach(function(x){x===M&&(x.dataLabelCollections||["dataLabel"]).forEach(function(p){x.points.forEach(function(g){var r=g[String(p)];r&&r.visibility!=="hidden"&&(r.prevOpacity=r.opacity,r.opacitySetter(0,"opacity",r.element),r.prevVisibility=r.visibility,r.visibilitySetter("hidden","visibility",r.element))})})})}function v(M){var x=M.xAxis,p=x==null?void 0:x.min,g=x==null?void 0:x.max;(V.series||[]).forEach(function(r){r===M&&(r.dataLabelCollections||["dataLabel"]).forEach(function(a){r.points.forEach(function(t){var i=t[String(a)];x&&(t.x<p||t.x>g)||i&&i.visibility==="hidden"&&(i.prevOpacity=i.opacity,i.opacitySetter(1,"opacity",i.element),i.prevVisibility=i.visibility,i.visibilitySetter("visible","visibility",i.element))})})})}function S(M){var x=[],p=M.options.dataLabels,g=M.dataLabelCollections||["dataLabel","dataLabelsGroup"];return p&&(p.enabled||M._hasPointLabels)&&!p.allowOverlap&&M.visible&&g.forEach(function(r){M.points&&M.points.forEach(function(a){a[r]&&(a[r].labelrank=G(a.labelrank,a.shapeArgs&&a.shapeArgs.height),x.push(a[r]))})}),x}(0,ct.default)(P)&&(P=[]),X||(A.onmouseover=function(){if(Z.visible){U();var M=F&&Z.series.halo;M&&M.attr({d:"M 0 0"}),P.forEach(function(x){x!==Z&&x.visible&&(E.forEach(function(p){x[p]&&x[p].animate({opacity:.15},{duration:400})}),u(x))}),E.forEach(function(x){Z[x]&&Z[x].addClass(B)}),I||(_=setTimeout(c,100))}},A.onmouseout=function(){Z.visible&&(U(),P.forEach(function(M){M.visible&&M!==Z&&E.forEach(function(x){M[x]&&M[x].animate({opacity:1},{duration:400})})}),E.forEach(function(M){Z[M]&&Z[M].removeClass(B)}),I||(ft=setTimeout(f,100)))},A.addEventListener("click",function(){U();var M=[];P.forEach(function(p){p.visible?(E.forEach(function(g){p[g]&&p[g].animate({opacity:1},{duration:50})}),M=M.concat(S(p))):(E.forEach(function(g){p[g]&&p[g].animate({opacity:.25},{duration:150})}),u(p))});var x=y(V);m(M=M.concat(x))}))})}},123:(it,rt,st)=>{st.d(rt,{A:()=>F});var ht=st(405);const ct=st(9600).A["__core-js_shared__"];var pt,ft=(pt=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",_=st(7942),et=st(1548),G=/^\[object .+?Constructor\]$/,B=Function.prototype,X=Object.prototype,U=B.toString,$=X.hasOwnProperty,Z=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(I){return!(!(0,_.A)(I)||(E=I,ft&&ft in E))&&((0,ht.A)(I)?Z:G).test((0,et.A)(I));var E},F=function(I,E){var A=function(P,y){return P==null?void 0:P[y]}(I,E);return V(A)?A:void 0}},362:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},368:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(U){for(var $,Z=1,V=arguments.length;Z<V;Z++)for(var F in $=arguments[Z])Object.prototype.hasOwnProperty.call($,F)&&(U[F]=$[F]);return U},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(605)),ft=ct(st(710)),_=ct(st(9681)),et=ct(st(9170)),G=ct(st(6545)),B={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:pt.default.textColor,fontSize:"9px"}},X=ht({boost:{allowForce:!0,debug:{showSkipSummary:!0,timeBufferCopy:!0,timeKDTree:!0,timeRendering:!0,timeSeriesProcessing:!0,timeSetup:!0},enabled:!0,seriesThreshold:null,useGPUTranslations:!0},chart:{spacing:[10,10,10,10],backgroundColor:"rgba(222,222,222,0)"},credits:B,drilldown:{breadcrumbs:{buttonTheme:{fill:"#ffcb05","stroke-width":4,"stroke-linejoin":"round",stroke:"#ffcb05",padding:5,states:{hover:{fill:"#f2b900",stroke:"#f2b900"}},style:{color:"#3a4356"}},format:"Back",floating:!0,position:{align:"right"},showFullPath:!1}},exporting:{enabled:!1},global:{useUTC:!1},lang:{contextButtonTitle:"Chart context menu",decimalPoint:".",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadPNG:"Download PNG image",downloadSVG:"Download SVG vector image",drillUpText:"Back",invalidDate:"",loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],noData:"No data to display",numericSymbolMagnitude:1e3,numericSymbols:["k","M","G","T","P","E"],printChart:"Print chart",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],shortWeekdays:void 0,thousandsSep:" ",weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},legend:_.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:et.default,title:{margin:0},tooltip:ft.default},G.default);rt.default=X},405:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7942);const pt=function(ft){if(!(0,ct.A)(ft))return!1;var _=(0,ht.A)(ft);return _=="[object Function]"||_=="[object GeneratorFunction]"||_=="[object AsyncFunction]"||_=="[object Proxy]"}},605:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},622:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.arrayMax=rt.arrayMin=rt.correctFloat=rt.radiansToDegrees=rt.defined=rt.wrap=void 0;var ct=ht(st(8552));rt.wrap=function(pt,ft,_){var et=pt[ft];pt[ft]=function(){var G=Array.prototype.slice.call(arguments);return G.unshift(et),_.apply(this,G)}},rt.defined=function(pt,ft){return ft===void 0||ft==="null"||ft===""?pt!=null:(0,ct.default)(pt,ft)!==void 0},rt.radiansToDegrees=function(pt){return 180*pt/Math.PI},rt.correctFloat=function(pt){return parseFloat(pt.toPrecision(14))},rt.arrayMin=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]<_&&(_=pt[ft]);return _},rt.arrayMax=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]>_&&(_=pt[ft]);return _}},710:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(2805));rt.default=ct.default},807:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5860)),pt=ht(st(2382));rt.default=function(ft){var _=ft.wrap;function et(G){this.hasCartesianSeries&&this.series.forEach(function(B){B.options&&B.options.stacking==="percent"&&(B.userOptions.data.forEach(function(X){X&&(X.originalY=X.y,X.y=Math.abs(X.y))}),B.yData=B.yData.map(Math.abs))}),G.apply(this,[].slice.call(arguments,1))}(0,pt.default)(ft),_(ft.Chart.prototype,"render",et),_(ft.Chart.prototype,"redraw",et),ft.Axis.prototype.renderUnsquish=function(){var G,B,X,U,$,Z=this.chart,V=Z.renderer,F=this.tickPositions,I=this.ticks,E=this.options.labels,A=E.style,P=this.horiz,y=this.getSlotWidth(),c=Math.max(1,Math.round(y-2*E.padding)),f={},m=this.labelMetrics(),u=A.textOverflow,v=0;if((0,ct.default)(E.rotation)||(f.rotation=E.rotation||0),F.forEach(function(S){var M=I[S];M.movedLabel&&M.replaceMovedLabel(),M&&M.label&&M.label.textPxLength>v&&(v=M.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>c&&v>m.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(y&&(G=c,!u))for(B="clip",U=F.length;!P&&U--;)$=F[U],(X=I[$].label)&&(X.styles&&X.styles.textOverflow==="ellipsis"?X.css({textOverflow:"clip"}):X.textPxLength>y&&X.css({width:y+"px"}),X.getBBox().height>this.len/F.length-(m.h-m.f)&&(X.specificTextOverflow="ellipsis"));f.rotation&&(G=v>.33*Z.chartHeight?.28*Z.chartHeight:v,u||(B="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(f.align=this.labelAlign),F.forEach(function(S){var M=I[S],x=M&&M.label,p=A.width,g={};x&&(x.attr(f),M.shortenLabel?M.shortenLabel():G&&!p&&A.whiteSpace!=="nowrap"&&(G<x.textPxLength||x.element.tagName==="SPAN")?(g.width=G+"px",u||(g.textOverflow=x.specificTextOverflow||B),x.css(g)):x.styles&&x.styles.width&&!g.width&&!p&&x.css({width:null}),delete x.specificTextOverflow,M.rotation=f.rotation)},this),this.tickRotCorr=V.rotCorr(m.b,this.labelRotation||0,this.side!==0)}}},938:function(it,rt,st){var ht=this&&this.__createBinding||(Object.create?function(_,et,G,B){B===void 0&&(B=G);var X=Object.getOwnPropertyDescriptor(et,G);X&&!("get"in X?!et.__esModule:X.writable||X.configurable)||(X={enumerable:!0,get:function(){return et[G]}}),Object.defineProperty(_,B,X)}:function(_,et,G,B){B===void 0&&(B=G),_[B]=et[G]}),ct=this&&this.__exportStar||function(_,et){for(var G in _)G==="default"||Object.prototype.hasOwnProperty.call(et,G)||ht(et,_,G)},pt=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0,ct(st(7783),rt);var ft=st(7783);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return pt(ft).default}})},1039:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/Math3D.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.deg2rad,U=B.pick;function $(F,I,E,A){var P=I.options.chart.options3d,y=U(A,!!E&&I.inverted),c={x:I.plotWidth/2,y:I.plotHeight/2,z:P.depth/2,vd:U(P.depth,1)*U(P.viewDistance,0)},f=I.scale3d||1,m=X*P.beta*(y?-1:1),u=X*P.alpha*(y?-1:1),v={cosA:Math.cos(u),cosB:Math.cos(-m),sinA:Math.sin(u),sinB:Math.sin(-m)};return E||(c.x+=I.plotLeft,c.y+=I.plotTop),F.map(function(S){var M=function(p,g,r,a){return{x:a.cosB*p-a.sinB*r,y:-a.sinA*a.sinB*p+a.cosA*g-a.cosB*a.sinA*r,z:a.cosA*a.sinB*p+a.sinA*g+a.cosA*a.cosB*r}}((y?S.y:S.x)-c.x,(y?S.x:S.y)-c.y,(S.z||0)-c.z,v),x=Z(M,c,c.vd);return x.x=x.x*f+c.x,x.y=x.y*f+c.y,x.z=M.z*f+c.z,{x:y?x.y:x.x,y:y?x.x:x.y,z:x.z}})}function Z(F,I,E){var A=E>0&&E<Number.POSITIVE_INFINITY?E/(F.z+I.z+E):1;return{x:F.x*A,y:F.y*A}}function V(F){var I,E,A=0;for(I=0;I<F.length;I++)E=(I+1)%F.length,A+=F[I].x*F[E].y-F[E].x*F[I].y;return A/2}return{perspective:$,perspective3D:Z,pointCameraDistance:function(F,I){var E=I.options.chart.options3d,A=I.plotWidth/2,P=I.plotHeight/2,y=U(E.depth,1)*U(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(A-U(F.plotX,F.x),2)+Math.pow(P-U(F.plotY,F.y),2)+Math.pow(y-U(F.plotZ,F.z),2))},shapeArea:V,shapeArea3D:function(F,I,E){return V($(F,I,E))}}}),et(_,"Core/Renderer/SVG/SVGElement3D.js",[_["Core/Color/Color.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.parse,$=X.defined,Z=X.merge,V=X.objectEach,F=X.pick,I={};return I.base={initArgs:function(E){var A=this,P=A.renderer,y=P[A.pathType+"Path"](E),c=y.zIndexes;A.parts.forEach(function(f){var m={class:"highcharts-3d-"+f,zIndex:c[f]||0};P.styledMode&&(f==="top"?m.filter="url(#highcharts-brighter)":f==="side"&&(m.filter="url(#highcharts-darker)")),A[f]=P.path(y[f]).attr(m).add(A)}),A.attr({"stroke-linejoin":"round",zIndex:c.group}),A.originalDestroy=A.destroy,A.destroy=A.destroyParts,A.forcedSides=y.forcedSides},singleSetterForParts:function(E,A,P,y,c,f){var m={},u=[null,null,y||"attr",c,f],v=P&&P.zIndexes;return P?(v&&v.group&&this.attr({zIndex:v.group}),V(P,function(S,M){m[M]={},m[M][E]=S,v&&(m[M].zIndex=P.zIndexes[M]||0)}),u[1]=m):(m[E]=A,u[0]=m),this.processParts.apply(this,u)},processParts:function(E,A,P,y,c){var f=this;return f.parts.forEach(function(m){A&&(E=F(A[m],!1)),E!==!1&&f[m][P](E,y,c)}),f},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},I.cuboid=Z(I.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,A,P,y){if(typeof E=="string"&&A!==void 0){var c=E;(E={})[c]=A}return E.shapeArgs||$(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):B.prototype.attr.call(this,E,void 0,P,y)},animate:function(E,A,P){if($(E.x)&&$(E.y)){var y=this.renderer[this.pathType+"Path"](E),c=y.forcedSides;this.singleSetterForParts("d",null,y,"animate",A,P),this.attr({zIndex:y.zIndexes.group}),c!==this.forcedSides&&(this.forcedSides=c,this.renderer.styledMode||I.cuboid.fillSetter.call(this,this.fill))}else B.prototype.animate.call(this,E,A,P);return this},fillSetter:function(E){var A=this;return A.forcedSides=A.forcedSides||[],A.singleSetterForParts("fill",null,{front:E,top:U(E).brighten(A.forcedSides.indexOf("top")>=0?0:.1).get(),side:U(E).brighten(A.forcedSides.indexOf("side")>=0?0:-.1).get()}),A.color=A.fill=E,A}}),I}),et(_,"Core/Renderer/SVG/SVGRenderer3D.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGElement3D.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(t,i){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},I(t,i)},function(t,i){function o(){this.constructor=t}I(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),A=G.animObject,P=B.parse,y=X.charts,c=X.deg2rad,f=U.perspective,m=U.shapeArea,u=F.defined,v=F.extend,S=F.merge,M=F.pick,x=Math.cos,p=Math.sin,g=Math.PI,r=4*(Math.sqrt(2)-1)/3/(g/2),a=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return E(i,t),i.compose=function(o){var e=o.prototype,s=i.prototype;e.elements3d=Z,e.arc3d=s.arc3d,e.arc3dPath=s.arc3dPath,e.cuboid=s.cuboid,e.cuboidPath=s.cuboidPath,e.element3d=s.element3d,e.face3d=s.face3d,e.polyhedron=s.polyhedron,e.toLinePath=s.toLinePath,e.toLineSegments=s.toLineSegments},i.curveTo=function(o,e,s,n,h,b,k,D){var d=[],C=b-h;return b>h&&b-h>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,h,h+Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,h+Math.PI/2,b,k,D)):b<h&&h-b>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,h,h-Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,h-Math.PI/2,b,k,D)):[["C",o+s*Math.cos(h)-s*r*C*Math.sin(h)+k,e+n*Math.sin(h)+n*r*C*Math.cos(h)+D,o+s*Math.cos(b)+s*r*C*Math.sin(b)+k,e+n*Math.sin(b)-n*r*C*Math.cos(b)+D,o+s*Math.cos(b)+k,e+n*Math.sin(b)+D]]},i.prototype.toLinePath=function(o,e){var s=[];return o.forEach(function(n){s.push(["L",n.x,n.y])}),o.length&&(s[0][0]="M",e&&s.push(["Z"])),s},i.prototype.toLineSegments=function(o){var e=[],s=!0;return o.forEach(function(n){e.push(s?["M",n.x,n.y]:["L",n.x,n.y]),s=!s}),e},i.prototype.face3d=function(o){var e=this,s=this.createElement("path");return s.vertexes=[],s.insidePlotArea=!1,s.enabled=!0,s.attr=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=M(n.enabled,this.enabled),this.vertexes=M(n.vertexes,this.vertexes),this.insidePlotArea=M(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var h=y[e.chartIndex],b=f(this.vertexes,h,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b);n.d=k,n.visibility=this.enabled&&D>0?"inherit":"hidden"}return $.prototype.attr.apply(this,arguments)},s.animate=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=M(n.enabled,this.enabled),this.vertexes=M(n.vertexes,this.vertexes),this.insidePlotArea=M(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var h=y[e.chartIndex],b=f(this.vertexes,h,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b),d=this.enabled&&D>0?"visible":"hidden";n.d=k,this.attr("visibility",d)}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.polyhedron=function(o){var e=this,s=this.g(),n=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(var h=0;h<s.faces.length;h++)s.faces[h].destroy();return n.call(this)},s.attr=function(h,b,k,D){if(typeof h=="object"&&u(h.faces)){for(;s.faces.length>h.faces.length;)s.faces.pop().destroy();for(;s.faces.length<h.faces.length;)s.faces.push(e.face3d().add(s));for(var d=0;d<h.faces.length;d++)e.styledMode&&delete h.faces[d].fill,s.faces[d].attr(h.faces[d],null,k,D);delete h.faces}return $.prototype.attr.apply(this,arguments)},s.animate=function(h,b,k){if(h&&h.faces){for(;s.faces.length>h.faces.length;)s.faces.pop().destroy();for(;s.faces.length<h.faces.length;)s.faces.push(e.face3d().add(s));for(var D=0;D<h.faces.length;D++)s.faces[D].animate(h.faces[D],b,k);delete h.faces}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.element3d=function(o,e){var s=this.g();return v(s,this.elements3d[o]),s.initArgs(e),s},i.prototype.cuboid=function(o){return this.element3d("cuboid",o)},i.prototype.cuboidPath=function(o){var e,s,n,h,b,k,D,d,C=o.x||0,T=o.y||0,N=o.z||0,z=o.height||0,L=o.width||0,O=o.depth||0,j=y[this.chartIndex],Y=j.options.chart.options3d.alpha,H=1e6,W=0,q=[{x:C,y:T,z:N},{x:C+L,y:T,z:N},{x:C+L,y:T+z,z:N},{x:C,y:T+z,z:N},{x:C,y:T+z,z:N+O},{x:C+L,y:T+z,z:N+O},{x:C+L,y:T,z:N+O},{x:C,y:T,z:N+O}],tt=[];function J(lt){return z===0&<>1&<<6?{x:q[lt].x,y:q[lt].y+10,z:q[lt].z}:q[0].x===q[7].x&<>=4?{x:q[lt].x+10,y:q[lt].y,z:q[lt].z}:O===0&<<2||lt>5?{x:q[lt].x,y:q[lt].y,z:q[lt].z+10}:q[lt]}function nt(lt){return q[lt]}return q=f(q,j,o.insidePlotArea),s=(e=(d=function(lt,gt,mt){var bt=[[],-1],yt=lt.map(nt),dt=gt.map(nt),ot=lt.map(J),at=gt.map(J);return m(yt)<0?bt=[yt,0]:m(dt)<0?bt=[dt,1]:mt&&(tt.push(mt),bt=m(ot)<0?[yt,0]:m(at)<0?[dt,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],b=e[1],n=(e=d([1,6,7,0],[4,5,2,3],"top"))[0],k=e[1],h=(e=d([1,2,5,6],[0,7,4,3],"side"))[0],(D=e[1])===1?W+=H*(j.plotWidth-C):D||(W+=H*C),W+=10*(!k||Y>=0&&Y<=180||Y<360&&Y>357.5?j.plotHeight-T:10+T),b===1?W+=100*N:b||(W+=100*(1e3-N)),{front:this.toLinePath(s,!0),top:this.toLinePath(n,!0),side:this.toLinePath(h,!0),zIndexes:{group:Math.round(W)},forcedSides:tt,isFront:b,isTop:k}},i.prototype.arc3d=function(o){var e=this.g(),s=e.renderer,n=["x","y","r","innerR","start","end","depth"];function h(b){var k,D=!1,d={};for(k in b=S(b))n.indexOf(k)!==-1&&(d[k]=b[k],delete b[k],D=!0);return!!D&&[d,b]}return(o=S(o)).alpha=(o.alpha||0)*c,o.beta=(o.beta||0)*c,e.top=s.path(),e.side1=s.path(),e.side2=s.path(),e.inn=s.path(),e.out=s.path(),e.onAdd=function(){var b=e.parentGroup,k=e.attr("class");e.top.add(e),["out","inn","side1","side2"].forEach(function(D){e[D].attr({class:k+" highcharts-3d-side"}).add(b)})},["addClass","removeClass"].forEach(function(b){e[b]=function(){var k=arguments;["top","out","inn","side1","side2"].forEach(function(D){e[D][b].apply(e[D],k)})}}),e.setPaths=function(b){var k=e.renderer.arc3dPath(b),D=100*k.zTop;e.attribs=b,e.top.attr({d:k.top,zIndex:k.zTop}),e.inn.attr({d:k.inn,zIndex:k.zInn}),e.out.attr({d:k.out,zIndex:k.zOut}),e.side1.attr({d:k.side1,zIndex:k.zSide1}),e.side2.attr({d:k.side2,zIndex:k.zSide2}),e.zIndex=D,e.attr({zIndex:D}),b.center&&(e.top.setRadialReference(b.center),delete b.center)},e.setPaths(o),e.fillSetter=function(b){var k=P(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:k}),this.side2.attr({fill:k}),this.inn.attr({fill:k}),this.out.attr({fill:k}),this.top.attr({fill:b}),this},["opacity","translateX","translateY","visibility"].forEach(function(b){e[b+"Setter"]=function(k,D){e[D]=k,["out","inn","side1","side2","top"].forEach(function(d){e[d].attr(D,k)})}}),e.attr=function(b){var k,D;return typeof b=="object"&&(D=h(b))&&(k=D[0],arguments[0]=D[1],v(e.attribs,k),e.setPaths(e.attribs)),$.prototype.attr.apply(e,arguments)},e.animate=function(b,k,D){var d,C,T,N=this.attribs,z="data-"+Math.random().toString(26).substring(2,9);return delete b.center,delete b.z,delete b.alpha,delete b.beta,(T=A(M(k,this.renderer.globalAnimation))).duration&&(d=h(b),e[z]=0,b[z]=1,e[z+"Setter"]=X.noop,d&&(C=d[0],T.step=function(L,O){function j(Y){return N[Y]+(M(C[Y],N[Y])-N[Y])*O.pos}O.prop===z&&O.elem.setPaths(S(N,{x:j("x"),y:j("y"),r:j("r"),innerR:j("innerR"),start:j("start"),end:j("end"),depth:j("depth")}))}),k=T),$.prototype.animate.call(this,b,k,D)},e.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),$.prototype.destroy.call(this)},e.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},e.show=function(b){this.top.show(b),this.out.show(b),this.inn.show(b),this.side1.show(b),this.side2.show(b)},e},i.prototype.arc3dPath=function(o){var e=o.x||0,s=o.y||0,n=o.start||0,h=(o.end||0)-1e-5,b=o.r||0,k=o.innerR||0,D=o.depth||0,d=o.alpha||0,C=o.beta||0,T=Math.cos(n),N=Math.sin(n),z=Math.cos(h),L=Math.sin(h),O=b*Math.cos(C),j=b*Math.cos(d),Y=k*Math.cos(C),H=k*Math.cos(d),W=D*Math.sin(C),q=D*Math.sin(d),tt=[["M",e+O*T,s+j*N]];(tt=tt.concat(i.curveTo(e,s,O,j,n,h,0,0))).push(["L",e+Y*z,s+H*L]),(tt=tt.concat(i.curveTo(e,s,Y,H,h,n,0,0))).push(["Z"]);var J=C>0?Math.PI/2:0,nt=d>0?0:Math.PI/2,lt=n>-J?n:h>-J?-J:n,gt=h<g-nt?h:n<g-nt?g-nt:h,mt=2*g-nt,bt=[["M",e+O*x(lt),s+j*p(lt)]];bt=bt.concat(i.curveTo(e,s,O,j,lt,gt,0,0)),h>mt&&n<mt?(bt.push(["L",e+O*x(gt)+W,s+j*p(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,mt,W,q))).push(["L",e+O*x(mt),s+j*p(mt)]),(bt=bt.concat(i.curveTo(e,s,O,j,mt,h,0,0))).push(["L",e+O*x(h)+W,s+j*p(h)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,h,mt,W,q))).push(["L",e+O*x(mt),s+j*p(mt)]),bt=bt.concat(i.curveTo(e,s,O,j,mt,gt,0,0))):h>g-nt&&n<g-nt&&(bt.push(["L",e+O*Math.cos(gt)+W,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,h,W,q))).push(["L",e+O*Math.cos(h),s+j*Math.sin(h)]),bt=bt.concat(i.curveTo(e,s,O,j,h,gt,0,0))),bt.push(["L",e+O*Math.cos(gt)+W,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,lt,W,q))).push(["Z"]);var yt=[["M",e+Y*T,s+H*N]];(yt=yt.concat(i.curveTo(e,s,Y,H,n,h,0,0))).push(["L",e+Y*Math.cos(h)+W,s+H*Math.sin(h)+q]),(yt=yt.concat(i.curveTo(e,s,Y,H,h,n,W,q))).push(["Z"]);var dt=[["M",e+O*T,s+j*N],["L",e+O*T+W,s+j*N+q],["L",e+Y*T+W,s+H*N+q],["L",e+Y*T,s+H*N],["Z"]],ot=[["M",e+O*z,s+j*L],["L",e+O*z+W,s+j*L+q],["L",e+Y*z+W,s+H*L+q],["L",e+Y*z,s+H*L],["Z"]],at=Math.atan2(q,-W),ut=Math.abs(h+at),vt=Math.abs(n+at),Ct=Math.abs((n+h)/2+at);function xt(Lt){return(Lt%=2*Math.PI)>Math.PI&&(Lt=2*Math.PI-Lt),Lt}ut=xt(ut),vt=xt(vt);var St=1e5,wt=(Ct=xt(Ct))*St,Mt=vt*St,Tt=ut*St;return{top:tt,zTop:Math.PI*St+1,out:bt,zOut:Math.max(wt,Mt,Tt),inn:yt,zInn:Math.max(wt,Mt,Tt),side1:dt,zSide1:.99*Tt,side2:ot,zSide2:.99*Mt}},i}(V);return a}),et(_,"Core/Chart/Chart3D.js",[_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Math3D.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=G.parse,V=B.defaultOptions,F=X.perspective,I=X.shapeArea3D,E=U.addEvent,A=U.isArray,P=U.merge,y=U.pick,c=U.wrap;return function(f){var m=function(){function o(e){this.frame3d=void 0,this.chart=e}return o.prototype.get3dFrame=function(){var e=this.chart,s=e.options.chart.options3d,n=s.frame,h=e.plotLeft,b=e.plotLeft+e.plotWidth,k=e.plotTop,D=e.plotTop+e.plotHeight,d=s.depth,C=function(ot){var at=I(ot,e);return at>.5?1:at<-.5?-1:0},T=C([{x:h,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:h,y:D,z:0}]),N=C([{x:h,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:h,y:k,z:d}]),z=C([{x:h,y:k,z:0},{x:h,y:k,z:d},{x:h,y:D,z:d},{x:h,y:D,z:0}]),L=C([{x:b,y:k,z:d},{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d}]),O=C([{x:h,y:D,z:0},{x:b,y:D,z:0},{x:b,y:k,z:0},{x:h,y:k,z:0}]),j=C([{x:h,y:k,z:d},{x:b,y:k,z:d},{x:b,y:D,z:d},{x:h,y:D,z:d}]),Y=!1,H=!1,W=!1,q=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach(function(ot){ot&&(ot.horiz?ot.opposite?H=!0:Y=!0:ot.opposite?q=!0:W=!0)});var tt=function(ot,at,ut){for(var vt=["size","color","visible"],Ct={},xt=0;xt<vt.length;xt++)for(var St=vt[xt],wt=0;wt<ot.length;wt++)if(typeof ot[wt]=="object"){var Mt=ot[wt][St];if(Mt!=null){Ct[St]=Mt;break}}var Tt=ut;return Ct.visible===!0||Ct.visible===!1?Tt=Ct.visible:Ct.visible==="auto"&&(Tt=at>0),{size:y(Ct.size,1),color:y(Ct.color,"none"),frontFacing:at>0,visible:Tt}},J={axes:{},bottom:tt([n.bottom,n.top,n],T,Y),top:tt([n.top,n.bottom,n],N,H),left:tt([n.left,n.right,n.side,n],z,W),right:tt([n.right,n.left,n.side,n],L,q),back:tt([n.back,n.front,n],j,!0),front:tt([n.front,n.back,n],O,!1)};if(s.axisLabelPosition==="auto"){var nt=function(ot,at){return ot.visible!==at.visible||ot.visible&&at.visible&&ot.frontFacing!==at.frontFacing},lt=[];nt(J.left,J.front)&<.push({y:(k+D)/2,x:h,z:0,xDir:{x:1,y:0,z:0}}),nt(J.left,J.back)&<.push({y:(k+D)/2,x:h,z:d,xDir:{x:0,y:0,z:-1}}),nt(J.right,J.front)&<.push({y:(k+D)/2,x:b,z:0,xDir:{x:0,y:0,z:1}}),nt(J.right,J.back)&<.push({y:(k+D)/2,x:b,z:d,xDir:{x:-1,y:0,z:0}});var gt=[];nt(J.bottom,J.front)&>.push({x:(h+b)/2,y:D,z:0,xDir:{x:1,y:0,z:0}}),nt(J.bottom,J.back)&>.push({x:(h+b)/2,y:D,z:d,xDir:{x:-1,y:0,z:0}});var mt=[];nt(J.top,J.front)&&mt.push({x:(h+b)/2,y:k,z:0,xDir:{x:1,y:0,z:0}}),nt(J.top,J.back)&&mt.push({x:(h+b)/2,y:k,z:d,xDir:{x:-1,y:0,z:0}});var bt=[];nt(J.bottom,J.left)&&bt.push({z:(0+d)/2,y:D,x:h,xDir:{x:0,y:0,z:-1}}),nt(J.bottom,J.right)&&bt.push({z:(0+d)/2,y:D,x:b,xDir:{x:0,y:0,z:1}});var yt=[];nt(J.top,J.left)&&yt.push({z:(0+d)/2,y:k,x:h,xDir:{x:0,y:0,z:-1}}),nt(J.top,J.right)&&yt.push({z:(0+d)/2,y:k,x:b,xDir:{x:0,y:0,z:1}});var dt=function(ot,at,ut){if(ot.length===0)return null;if(ot.length===1)return ot[0];for(var vt=F(ot,e,!1),Ct=0,xt=1;xt<vt.length;xt++)(ut*vt[xt][at]>ut*vt[Ct][at]||ut*vt[xt][at]===ut*vt[Ct][at]&&vt[xt].z<vt[Ct].z)&&(Ct=xt);return ot[Ct]};J.axes={y:{left:dt(lt,"x",-1),right:dt(lt,"x",1)},x:{top:dt(mt,"y",-1),bottom:dt(gt,"y",1)},z:{top:dt(yt,"y",-1),bottom:dt(bt,"y",1)}}}else J.axes={y:{left:{x:h,z:0,xDir:{x:1,y:0,z:0}},right:{x:b,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:k,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:D,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:W?b:h,y:k,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:W?b:h,y:D,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return J},o.prototype.getScale=function(e){var s,n=this.chart,h=n.plotLeft,b=n.plotWidth+h,k=n.plotTop,D=n.plotHeight+k,d=h+n.plotWidth/2,C=k+n.plotHeight/2,T={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},N=1;return s=[{x:h,y:k,z:0},{x:h,y:k,z:e}],[0,1].forEach(function(z){s.push({x:b,y:s[z].y,z:s[z].z})}),[0,1,2,3].forEach(function(z){s.push({x:s[z].x,y:D,z:s[z].z})}),(s=F(s,n,!1)).forEach(function(z){T.minX=Math.min(T.minX,z.x),T.maxX=Math.max(T.maxX,z.x),T.minY=Math.min(T.minY,z.y),T.maxY=Math.max(T.maxY,z.y)}),h>T.minX&&(N=Math.min(N,1-Math.abs((h+d)/(T.minX+d))%1)),b<T.maxX&&(N=Math.min(N,(b-d)/(T.maxX-d))),k>T.minY&&(N=T.minY<0?Math.min(N,(k+C)/(-T.minY+k+C)):Math.min(N,1-(k+C)/(T.minY+C)%1)),D<T.maxY&&(N=Math.min(N,Math.abs((D-C)/(T.maxY-C)))),N},o}();function u(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function v(){if(this.chart3d&&this.is3d()){var o=this,e=o.renderer,s=o.options.chart.options3d,n=o.chart3d.get3dFrame(),h=o.plotLeft,b=o.plotLeft+o.plotWidth,k=o.plotTop,D=o.plotTop+o.plotHeight,d=s.depth,C=h-(n.left.visible?n.left.size:0),T=b+(n.right.visible?n.right.size:0),N=k-(n.top.visible?n.top.size:0),z=D+(n.bottom.visible?n.bottom.size:0),L=0-(n.front.visible?n.front.size:0),O=d+(n.back.visible?n.back.size:0),j=o.hasRendered?"animate":"attr";o.chart3d.frame3d=n,o.frameShapes||(o.frameShapes={bottom:e.polyhedron().add(),top:e.polyhedron().add(),left:e.polyhedron().add(),right:e.polyhedron().add(),back:e.polyhedron().add(),front:e.polyhedron().add()}),o.frameShapes.bottom[j]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:n.bottom.frontFacing?-1e3:1e3,faces:[{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:C,y:z,z:L},{x:T,y:z,z:L},{x:T,y:z,z:O},{x:C,y:z,z:O}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:h,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:h,y:D,z:0}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:C,y:z,z:L},{x:C,y:z,z:O},{x:h,y:D,z:d},{x:h,y:D,z:0}],enabled:n.bottom.visible&&!n.left.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:T,y:z,z:O},{x:T,y:z,z:L},{x:b,y:D,z:0},{x:b,y:D,z:d}],enabled:n.bottom.visible&&!n.right.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:T,y:z,z:L},{x:C,y:z,z:L},{x:h,y:D,z:0},{x:b,y:D,z:0}],enabled:n.bottom.visible&&!n.front.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:C,y:z,z:O},{x:T,y:z,z:O},{x:b,y:D,z:d},{x:h,y:D,z:d}],enabled:n.bottom.visible&&!n.back.visible}]}),o.frameShapes.top[j]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:n.top.frontFacing?-1e3:1e3,faces:[{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:T,y:N,z:O},{x:T,y:N,z:L},{x:C,y:N,z:L}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:h,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:h,y:k,z:d}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:N,z:L},{x:h,y:k,z:0},{x:h,y:k,z:d}],enabled:n.top.visible&&!n.left.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:T,y:N,z:L},{x:T,y:N,z:O},{x:b,y:k,z:d},{x:b,y:k,z:0}],enabled:n.top.visible&&!n.right.visible},{fill:Z(n.top.color).get(),vertexes:[{x:C,y:N,z:L},{x:T,y:N,z:L},{x:b,y:k,z:0},{x:h,y:k,z:0}],enabled:n.top.visible&&!n.front.visible},{fill:Z(n.top.color).get(),vertexes:[{x:T,y:N,z:O},{x:C,y:N,z:O},{x:h,y:k,z:d},{x:b,y:k,z:d}],enabled:n.top.visible&&!n.back.visible}]}),o.frameShapes.left[j]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:n.left.frontFacing?-1e3:1e3,faces:[{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:z,z:L},{x:h,y:D,z:0},{x:h,y:D,z:d},{x:C,y:z,z:O}],enabled:n.left.visible&&!n.bottom.visible},{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:h,y:k,z:d},{x:h,y:k,z:0},{x:C,y:N,z:L}],enabled:n.left.visible&&!n.top.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:C,y:z,z:O},{x:C,y:N,z:O},{x:C,y:N,z:L},{x:C,y:z,z:L}],enabled:n.left.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:h,y:k,z:d},{x:h,y:D,z:d},{x:h,y:D,z:0},{x:h,y:k,z:0}],enabled:n.left.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:z,z:L},{x:C,y:N,z:L},{x:h,y:k,z:0},{x:h,y:D,z:0}],enabled:n.left.visible&&!n.front.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:z,z:O},{x:h,y:D,z:d},{x:h,y:k,z:d}],enabled:n.left.visible&&!n.back.visible}]}),o.frameShapes.right[j]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:n.right.frontFacing?-1e3:1e3,faces:[{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:T,y:z,z:O},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:T,y:z,z:L}],enabled:n.right.visible&&!n.bottom.visible},{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:T,y:N,z:L},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:T,y:N,z:O}],enabled:n.right.visible&&!n.top.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d},{x:b,y:k,z:d}],enabled:n.right.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:T,y:z,z:L},{x:T,y:N,z:L},{x:T,y:N,z:O},{x:T,y:z,z:O}],enabled:n.right.visible},{fill:Z(n.right.color).get(),vertexes:[{x:T,y:N,z:L},{x:T,y:z,z:L},{x:b,y:D,z:0},{x:b,y:k,z:0}],enabled:n.right.visible&&!n.front.visible},{fill:Z(n.right.color).get(),vertexes:[{x:T,y:z,z:O},{x:T,y:N,z:O},{x:b,y:k,z:d},{x:b,y:D,z:d}],enabled:n.right.visible&&!n.back.visible}]}),o.frameShapes.back[j]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:n.back.frontFacing?-1e3:1e3,faces:[{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:T,y:z,z:O},{x:C,y:z,z:O},{x:h,y:D,z:d},{x:b,y:D,z:d}],enabled:n.back.visible&&!n.bottom.visible},{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:T,y:N,z:O},{x:b,y:k,z:d},{x:h,y:k,z:d}],enabled:n.back.visible&&!n.top.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:C,y:z,z:O},{x:C,y:N,z:O},{x:h,y:k,z:d},{x:h,y:D,z:d}],enabled:n.back.visible&&!n.left.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:T,y:N,z:O},{x:T,y:z,z:O},{x:b,y:D,z:d},{x:b,y:k,z:d}],enabled:n.back.visible&&!n.right.visible},{fill:Z(n.back.color).get(),vertexes:[{x:h,y:k,z:d},{x:b,y:k,z:d},{x:b,y:D,z:d},{x:h,y:D,z:d}],enabled:n.back.visible},{fill:Z(n.back.color).get(),vertexes:[{x:C,y:z,z:O},{x:T,y:z,z:O},{x:T,y:N,z:O},{x:C,y:N,z:O}],enabled:n.back.visible}]}),o.frameShapes.front[j]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:n.front.frontFacing?-1e3:1e3,faces:[{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:C,y:z,z:L},{x:T,y:z,z:L},{x:b,y:D,z:0},{x:h,y:D,z:0}],enabled:n.front.visible&&!n.bottom.visible},{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:T,y:N,z:L},{x:C,y:N,z:L},{x:h,y:k,z:0},{x:b,y:k,z:0}],enabled:n.front.visible&&!n.top.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:L},{x:C,y:z,z:L},{x:h,y:D,z:0},{x:h,y:k,z:0}],enabled:n.front.visible&&!n.left.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:T,y:z,z:L},{x:T,y:N,z:L},{x:b,y:k,z:0},{x:b,y:D,z:0}],enabled:n.front.visible&&!n.right.visible},{fill:Z(n.front.color).get(),vertexes:[{x:b,y:k,z:0},{x:h,y:k,z:0},{x:h,y:D,z:0},{x:b,y:D,z:0}],enabled:n.front.visible},{fill:Z(n.front.color).get(),vertexes:[{x:T,y:z,z:L},{x:C,y:z,z:L},{x:C,y:N,z:L},{x:T,y:N,z:L}],enabled:n.front.visible}]})}}function S(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(o){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+o.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:o.slope}}]}]})},this)}function M(){var o=this.options;this.is3d()&&(o.series||[]).forEach(function(e){(e.type||o.chart.type||o.chart.defaultSeriesType)==="scatter"&&(e.type="scatter3d")})}function x(){var o=this,e=o.options.chart.options3d;if(o.chart3d&&o.is3d()){e&&(e.alpha=e.alpha%360+(e.alpha>=0?0:360),e.beta=e.beta%360+(e.beta>=0?0:360));var s=o.inverted,n=o.clipBox,h=o.margin,b=s?"x":"y",k=s?"height":"width",D=s?"width":"height";n[s?"y":"x"]=-(h[3]||0),n[b]=-(h[0]||0),n[k]=o.chartWidth+(h[3]||0)+(h[1]||0),n[D]=o.chartHeight+(h[0]||0)+(h[2]||0),o.scale3d=1,e.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(e.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function p(){this.is3d()&&(this.isDirtyBox=!0)}function g(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function r(){this.chart3d||(this.chart3d=new m(this))}function a(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function t(o){var e,s=this.series.length;if(this.is3d())for(;s--;)(e=this.series[s]).translate(),e.render();else o.call(this)}function i(o){o.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}f.Composition=m,f.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},f.compose=function(o,e){var s=o.prototype,n=e.prototype;s.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},s.propsRequireDirtyBox.push("chart.options3d"),s.propsRequireUpdateSeries.push("chart.options3d"),n.matrixSetter=function(){var h;if(this.pos<1&&(A(this.start)||A(this.end))){var b=this.start||[1,0,0,1,0,0],k=this.end||[1,0,0,1,0,0];h=[];for(var D=0;D<6;D++)h.push(this.pos*k[D]+(1-this.pos)*b[D])}else h=this.end;this.elem.attr(this.prop,h,null,!0)},P(!0,V,f.defaultOptions),E(o,"init",r),E(o,"addSeries",u),E(o,"afterDrawChartBox",v),E(o,"afterGetContainer",S),E(o,"afterInit",M),E(o,"afterSetChartSize",x),E(o,"beforeRedraw",p),E(o,"beforeRender",g),c(s,"isInsidePlot",a),c(s,"renderSeries",t),c(s,"setClassName",i)}}($||($={})),$}),et(_,"Core/Axis/ZAxis.js",[_["Core/Axis/Axis.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(y,c){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},X(y,c)},function(y,c){function f(){this.constructor=y}X(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),$=B.addEvent,Z=B.merge,V=B.pick,F=B.splat,I=[];function E(y){return new P(this,y)}function A(){var y=this,c=this.options.zAxis=F(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],c.forEach(function(f,m){f.index=m,f.isX=!0,y.addZAxis(f).setScale()}))}var P=function(y){function c(f,m){var u=y.call(this,f,m)||this;return u.isZAxis=!0,u}return U(c,y),c.compose=function(f){if(I.indexOf(f)===-1){I.push(f),$(f,"afterGetAxes",A);var m=f.prototype;m.addZAxis=E,m.collectionsWithInit.zAxis=[m.addZAxis],m.collectionsWithUpdate.push("zAxis")}},c.prototype.getSeriesExtremes=function(){var f=this,m=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(u){if(u.visible||!m.options.chart.ignoreHiddenSeries){f.hasVisibleSeries=!0;var v=u.zData;v.length&&(f.dataMin=Math.min(V(f.dataMin,v[0]),Math.min.apply(null,v)),f.dataMax=Math.max(V(f.dataMax,v[0]),Math.max.apply(null,v)))}})},c.prototype.setAxisSize=function(){var f=this.chart;y.prototype.setAxisSize.call(this),this.width=this.len=f.options.chart.options3d&&f.options.chart.options3d.depth||0,this.right=f.chartWidth-this.width-this.left},c.prototype.setOptions=function(f){f=Z({offset:0,lineWidth:0},f),this.isZAxis=!0,y.prototype.setOptions.call(this,f),this.coll="zAxis"},c}(G);return P}),et(_,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),et(_,"Core/Axis/Tick3DComposition.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,X=G.extend,U=G.wrap,$=[];function Z(F){var I=this.axis.axis3D;I&&X(F.pos,I.fix3dPosition(F.pos))}function V(F){var I=this.axis.axis3D,E=F.apply(this,[].slice.call(arguments,1));if(I){var A=E[0],P=E[1];if(A[0]==="M"&&P[0]==="L"){var y=[I.fix3dPosition({x:A[1],y:A[2],z:0}),I.fix3dPosition({x:P[1],y:P[2],z:0})];return this.axis.chart.renderer.toLineSegments(y)}}return E}return{compose:function(F){$.indexOf(F)===-1&&($.push(F),B(F,"afterGetLabelPosition",Z),U(F.prototype,"getMarkPath",V))}}}),et(_,"Core/Axis/Axis3DComposition.js",[_["Core/Axis/Axis3DDefaults.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Axis/Tick3DComposition.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=B.deg2rad,V=X.perspective,F=X.perspective3D,I=X.shapeArea,E=$.addEvent,A=$.merge,P=$.pick,y=$.wrap,c=[];function f(){var r=this,a=r.chart,t=r.options;a.is3d&&a.is3d()&&r.coll!=="colorAxis"&&(t.tickWidth=P(t.tickWidth,0),t.gridLineWidth=P(t.gridLineWidth,1))}function m(r){var a=this;a.chart.is3d()&&a.coll!=="colorAxis"&&r.point&&(r.point.crosshairPos=a.isXAxis?r.point.axisXpos:a.len-r.point.axisYpos)}function u(){var r=this;r.axis3D||(r.axis3D=new g(r))}function v(r){var a=this;return a.chart.is3d()&&a.coll!=="colorAxis"?[]:r.apply(a,[].slice.call(arguments,1))}function S(r){if(!this.chart.is3d()||this.coll==="colorAxis")return r.apply(this,[].slice.call(arguments,1));var a=arguments,t=a[1],i=a[2],o=[],e=this.getPlotLinePath({value:t}),s=this.getPlotLinePath({value:i});if(e&&s)for(var n=0;n<e.length;n+=2){var h=e[n],b=e[n+1],k=s[n],D=s[n+1];h[0]==="M"&&b[0]==="L"&&k[0]==="M"&&D[0]==="L"&&o.push(h,b,D,["L",k[1],k[2]],["Z"])}return o}function M(r){var a=this,t=a.axis3D,i=a.chart,o=r.apply(a,[].slice.call(arguments,1));if(a.coll==="colorAxis"||!i.chart3d||!i.is3d()||o===null)return o;var e,s=i.options.chart.options3d,n=a.isZAxis?i.plotWidth:s.depth,h=i.chart3d.frame3d,b=o[0],k=o[1],D=[];return b[0]==="M"&&k[0]==="L"&&(e=[t.swapZ({x:b[1],y:b[2],z:0}),t.swapZ({x:b[1],y:b[2],z:n}),t.swapZ({x:k[1],y:k[2],z:0}),t.swapZ({x:k[1],y:k[2],z:n})],this.horiz?this.isZAxis?(h.left.visible&&D.push(e[0],e[2]),h.right.visible&&D.push(e[1],e[3]),h.top.visible&&D.push(e[0],e[1]),h.bottom.visible&&D.push(e[2],e[3])):(h.front.visible&&D.push(e[0],e[2]),h.back.visible&&D.push(e[1],e[3]),h.top.visible&&D.push(e[0],e[1]),h.bottom.visible&&D.push(e[2],e[3])):(h.front.visible&&D.push(e[0],e[2]),h.back.visible&&D.push(e[1],e[3]),h.left.visible&&D.push(e[0],e[1]),h.right.visible&&D.push(e[2],e[3])),D=V(D,this.chart,!1)),i.renderer.toLineSegments(D)}function x(r,a){var t=this,i=t.chart,o=t.ticks,e=t.gridGroup;if(t.categories&&i.frameShapes&&i.is3d()&&e&&a&&a.label){var s=e.element.childNodes[0].getBBox(),n=i.frameShapes.left.getBBox(),h=i.options.chart.options3d,b={x:i.plotWidth/2,y:i.plotHeight/2,z:h.depth/2,vd:P(h.depth,1)*P(h.viewDistance,0)},k=a.pos,D=o[k-1],d=o[k+1],C=void 0,T=void 0,N=void 0;return k!==0&&D&&D.label&&D.label.xy&&(T=F({x:D.label.xy.x,y:D.label.xy.y,z:null},b,b.vd)),d&&d.label&&d.label.xy&&(N=F({x:d.label.xy.x,y:d.label.xy.y,z:null},b,b.vd)),C={x:a.label.xy.x,y:a.label.xy.y,z:null},C=F(C,b,b.vd),Math.abs(T?C.x-T.x:N?N.x-C.x:s.x-n.x)}return r.apply(t,[].slice.call(arguments,1))}function p(r){var a=r.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(a,!0):a}var g=function(){function r(a){this.axis=a}return r.compose=function(a,t){if(U.compose(t),c.indexOf(a)===-1){c.push(a),A(!0,a.defaultOptions,G),a.keepProps.push("axis3D"),E(a,"init",u),E(a,"afterSetOptions",f),E(a,"drawCrosshair",m);var i=a.prototype;y(i,"getLinePath",v),y(i,"getPlotBandPath",S),y(i,"getPlotLinePath",M),y(i,"getSlotWidth",x),y(i,"getTitlePosition",p)}},r.prototype.fix3dPosition=function(a,t){var i=this.axis,o=i.chart;if(i.coll==="colorAxis"||!o.chart3d||!o.is3d())return a;var e,s=Z*o.options.chart.options3d.alpha,n=Z*o.options.chart.options3d.beta,h=P(t&&i.options.title.position3d,i.options.labels.position3d),b=P(t&&i.options.title.skew3d,i.options.labels.skew3d),k=o.chart3d.frame3d,D=o.plotLeft,d=o.plotWidth+D,C=o.plotTop,T=o.plotHeight+C,N=0,z=0,L={x:0,y:1,z:0},O=!1;if(a=i.axis3D.swapZ({x:a.x,y:a.y,z:0}),i.isZAxis)if(i.opposite){if(k.axes.z.top===null)return{};z=a.y-C,a.x=k.axes.z.top.x,a.y=k.axes.z.top.y,e=k.axes.z.top.xDir,O=!k.top.frontFacing}else{if(k.axes.z.bottom===null)return{};z=a.y-T,a.x=k.axes.z.bottom.x,a.y=k.axes.z.bottom.y,e=k.axes.z.bottom.xDir,O=!k.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(k.axes.x.top===null)return{};z=a.y-C,a.y=k.axes.x.top.y,a.z=k.axes.x.top.z,e=k.axes.x.top.xDir,O=!k.top.frontFacing}else{if(k.axes.x.bottom===null)return{};z=a.y-T,a.y=k.axes.x.bottom.y,a.z=k.axes.x.bottom.z,e=k.axes.x.bottom.xDir,O=!k.bottom.frontFacing}else if(i.opposite){if(k.axes.y.right===null)return{};N=a.x-d,a.x=k.axes.y.right.x,a.z=k.axes.y.right.z,e={x:(e=k.axes.y.right.xDir).z,y:e.y,z:-e.x}}else{if(k.axes.y.left===null)return{};N=a.x-D,a.x=k.axes.y.left.x,a.z=k.axes.y.left.z,e=k.axes.y.left.xDir}if(h!=="chart")if(h==="flap")if(i.horiz){var j=Math.sin(s),Y=Math.cos(s);i.opposite&&(j=-j),O&&(j=-j),L={x:e.z*j,y:Y,z:-e.x*j}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else if(h==="ortho")if(i.horiz){var H=Math.sin(s),W=Math.cos(s),q={x:Math.sin(n)*W,y:-H,z:-W*Math.cos(n)};L={x:e.y*q.z-e.z*q.y,y:e.z*q.x-e.x*q.z,z:e.x*q.y-e.y*q.x};var tt=1/Math.sqrt(L.x*L.x+L.y*L.y+L.z*L.z);O&&(tt=-tt),L={x:tt*L.x,y:tt*L.y,z:tt*L.z}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else i.horiz?L={x:Math.sin(n)*Math.sin(s),y:Math.cos(s),z:-Math.cos(n)*Math.sin(s)}:e={x:Math.cos(n),y:0,z:Math.sin(n)};a.x+=N*e.x+z*L.x,a.y+=N*e.y+z*L.y,a.z+=N*e.z+z*L.z;var J=V([a],i.chart)[0];if(b){I(V([a,{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart))<0&&(e={x:-e.x,y:-e.y,z:-e.z});var nt=V([{x:a.x,y:a.y,z:a.z},{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart);J.matrix=[nt[1].x-nt[0].x,nt[1].y-nt[0].y,nt[2].x-nt[0].x,nt[2].y-nt[0].y,J.x,J.y],J.matrix[4]-=J.x*J.matrix[0]+J.y*J.matrix[2],J.matrix[5]-=J.x*J.matrix[1]+J.y*J.matrix[3]}return J},r.prototype.swapZ=function(a,t){var i=this.axis;if(i.isZAxis){var o=t?0:i.chart.plotLeft;return{x:o+a.z,y:a.y,z:a.x-o}}return a},r}();return g}),et(_,"Core/Series/Series3D.js",[_["Core/Math3D.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(y,c){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},U(y,c)},function(y,c){function f(){this.constructor=y}U(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),Z=G.perspective,V=X.addEvent,F=X.extend,I=X.merge,E=X.pick,A=X.isNumber,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return $(c,y),c.prototype.translate=function(){y.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},c.prototype.translate3dPoints=function(){var f,m,u,v,S,M=this,x=M.options,p=M.chart,g=E(M.zAxis,p.options.zAxis[0]),r=[],a=[],t=x.stacking?A(x.stack)?x.stack:0:M.index||0;for(M.zPadding=t*(x.depth||0+(x.groupZPadding||1)),S=0;S<M.data.length;S++)f=M.data[S],g&&g.translate?(v=g.logarithmic&&g.val2lin?g.val2lin(f.z):f.z,f.plotZ=g.translate(v),f.isInside=!!f.isInside&&v>=g.min&&v<=g.max):f.plotZ=M.zPadding,f.axisXpos=f.plotX,f.axisYpos=f.plotY,f.axisZpos=f.plotZ,r.push({x:f.plotX,y:f.plotY,z:f.plotZ}),a.push(f.plotX||0);for(M.rawPointsX=a,m=Z(r,p,!0),S=0;S<M.data.length;S++)f=M.data[S],u=m[S],f.plotX=u.x,f.plotY=u.y,f.plotZ=u.z},c.defaultOptions=I(B.defaultOptions),c}(B);return V(B,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),F(B.prototype,{translate3dPoints:P.prototype.translate3dPoints}),P}),et(_,"Series/Area3D/Area3DSeries.js",[_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.perspective,$=B.seriesTypes.line.prototype,Z=X.wrap,V=[];function F(I){var E=this,A=I.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return A;var P=$.getGraphPath,y=E.options,c=Math.round(E.yAxis.getThreshold(y.threshold)),f=[];if(E.rawPointsX)for(var m=0;m<E.points.length;m++)f.push({x:E.rawPointsX[m],y:y.stacking?E.points[m].yBottom:c,z:E.zPadding});var u=E.chart.options.chart.options3d;f=U(f,E.chart,!0).map(function(M){return{plotX:M.x,plotY:M.y,plotZ:M.z}}),E.group&&u&&u.depth&&u.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,u.beta>270||u.beta<90?u.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),f.reversed=!0;var v=P.call(E,f,!0,!0);if(v[0]&&v[0][0]==="M"&&(v[0]=["L",v[0][1],v[0][2]]),E.areaPath){var S=E.areaPath.splice(0,E.areaPath.length/2).concat(v);S.xMap=E.areaPath.xMap,E.areaPath=S}return A}return{compose:function(I){V.indexOf(I)===-1&&(V.push(I),Z(I.prototype,"getGraphPath",F))}}}),et(_,"Series/Column3D/Column3DComposition.js",[_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var F=G.prototype,I=B.svg,E=U.perspective,A=V.addEvent,P=V.pick,y=V.wrap;function c(v){var S=v.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(S.stroke=this.options.edgeColor||S.fill,S["stroke-width"]=P(this.options.edgeWidth,1)),S}function f(v,S,M){var x=this.chart.is3d&&this.chart.is3d();x&&(this.options.inactiveOtherPoints=!0),v.call(this,S,M),x&&(this.options.inactiveOtherPoints=!1)}function m(v){for(var S=[],M=1;M<arguments.length;M++)S[M-1]=arguments[M];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":v.apply(this,S)}if(y(F,"translate",function(v){v.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),y(X.prototype,"justifyDataLabel",function(v){return!arguments[2].outside3dPlot&&v.apply(this,[].slice.call(arguments,1))}),F.translate3dPoints=function(){},F.translate3dShapes=function(){var v,S=this,M=S.chart,x=S.options,p=x.depth,g=(x.stacking?x.stack||0:S.index)*(p+(x.groupZPadding||1)),r=S.borderWidth%2?.5:0;M.inverted&&!S.yAxis.reversed&&(r*=-1),x.grouping!==!1&&(g=0),g+=x.groupZPadding||1,S.data.forEach(function(a){if(a.outside3dPlot=null,a.y!==null){var t,i=a.shapeArgs,o=a.tooltipPos;[["x","width"],["y","height"]].forEach(function(e){if((t=i[e[0]]-r)<0&&(i[e[1]]+=i[e[0]]+r,i[e[0]]=-r,t=0),t+i[e[1]]>S[e[0]+"Axis"].len&&i[e[1]]!==0&&(i[e[1]]=S[e[0]+"Axis"].len-i[e[0]]),i[e[1]]!==0&&(i[e[0]]>=S[e[0]+"Axis"].len||i[e[0]]+i[e[1]]<=r)){for(var s in i)i[s]=s==="y"?-9999:0;a.outside3dPlot=!0}}),a.shapeType==="rect"&&(a.shapeType="cuboid"),i.z=g,i.depth=p,i.insidePlotArea=!0,v={x:i.x+i.width/2,y:i.y,z:g+p/2},M.inverted&&(v.x=i.height,v.y=a.clientX),a.plot3d=E([v],M,!0,!1)[0],o=E([{x:o[0],y:o[1],z:g+p/2}],M,!0,!1)[0],a.tooltipPos=[o.x,o.y]}}),S.z=g},y(F,"animate",function(v){if(this.chart.is3d()){var S=arguments[1],M=this.yAxis,x=this,p=this.yAxis.reversed;I&&(S?x.data.forEach(function(g){g.y!==null&&(g.height=g.shapeArgs.height,g.shapey=g.shapeArgs.y,g.shapeArgs.height=1,p||(g.stackY?g.shapeArgs.y=g.plotY+M.translate(g.stackY):g.shapeArgs.y=g.plotY+(g.negative?-g.height:g.height)))}):(x.data.forEach(function(g){g.y!==null&&(g.shapeArgs.height=g.height,g.shapeArgs.y=g.shapey,g.graphic&&g.graphic[g.outside3dPlot?"attr":"animate"](g.shapeArgs,x.options.animation))}),this.drawDataLabels()))}else v.apply(this,[].slice.call(arguments,1))}),y(F,"plotGroup",function(v,S,M,x,p,g){return S!=="dataLabelsGroup"&&S!=="markerGroup"&&this.chart.is3d()&&(this[S]&&delete this[S],g&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(g)),this[S]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[S].survive=!0,S==="group"&&(arguments[3]="visible"))),v.apply(this,Array.prototype.slice.call(arguments,1))}),y(F,"setVisible",function(v,S){var M=this;M.chart.is3d()&&M.data.forEach(function(x){x.visible=x.options.visible=S=S===void 0?!P(M.visible,x.visible):S,M.options.data[M.data.indexOf(x)]=x.options,x.graphic&&x.graphic.attr({visibility:S?"visible":"hidden"})}),v.apply(this,Array.prototype.slice.call(arguments,1))}),A(G,"afterInit",function(){if(this.chart.is3d()){var v=this.options,S=v.grouping,M=v.stacking,x=this.yAxis.options.reversedStacks,p=0;if(S===void 0||S){var g=function(t,i){var o,e=t.series,s={totalStacks:0},n=1;return e.forEach(function(h){o=P(h.options.stack,i?0:e.length-1-h.index),s[o]?s[o].series.push(h):(s[o]={series:[h],position:n},n++)}),s.totalStacks=n+1,s}(this.chart,M),r=v.stack||0,a=void 0;for(a=0;a<g[r].series.length&&g[r].series[a]!==this;a++);p=10*(g.totalStacks-g[r].position)+(x?a:-a),this.xAxis.reversed||(p=10*g.totalStacks-p)}v.depth=v.depth||25,this.z=this.z||0,v.zIndex=p}}),y(F,"pointAttribs",c),y(F,"setState",f),y(F.pointClass.prototype,"hasNewShapeType",m),$.seriesTypes.columnRange){var u=$.seriesTypes.columnrange.prototype;y(u,"pointAttribs",c),y(u,"setState",f),y(u.pointClass.prototype,"hasNewShapeType",m),u.plotGroup=F.plotGroup,u.setVisible=F.setVisible}return y(X.prototype,"alignDataLabel",function(v,S,M,x,p){var g=this.chart;if(x.outside3dPlot=S.outside3dPlot,g.is3d()&&this.is("column")){var r=this,a=r.options,t=P(x.inside,!!r.options.stacking),i=g.options.chart.options3d,o=S.pointWidth/2||0,e={x:p.x+o,y:p.y,z:r.z+a.depth/2};g.inverted&&(t&&(p.width=0,e.x+=S.shapeArgs.height/2),i.alpha>=90&&i.alpha<=270&&(e.y+=S.shapeArgs.width)),e=E([e],g,!0,!1)[0],p.x=e.x-o,p.y=S.outside3dPlot?-9e9:e.y}v.apply(this,[].slice.call(arguments,1))}),y(Z.prototype,"getStackBox",function(v,S){var M=v.apply(this,[].slice.call(arguments,1)),x=this.axis.chart,p=S.width;if(x.is3d()&&this.base){var g=+this.base.split(",")[0],r=x.series[g],a=x.options.chart.options3d;if(r&&r instanceof $.seriesTypes.column){var t={x:M.x+(x.inverted?M.height:p/2),y:M.y,z:r.options.depth/2};x.inverted&&(M.width=0,a.alpha>=90&&a.alpha<=270&&(t.y+=p)),t=E([t],x,!0,!1)[0],M.x=t.x-p/2,M.y=t.y}}return M}),G}),et(_,"Series/Pie3D/Pie3DPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function(V,F){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var A in E)E.hasOwnProperty(A)&&(I[A]=E[A])},B(V,F)},function(V,F){function I(){this.constructor=V}B(V,F),V.prototype=F===null?Object.create(F):(I.prototype=F.prototype,new I)}),U=G.seriesTypes.pie.prototype.pointClass,$=U.prototype.haloPath,Z=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.series=void 0,I}return X(F,V),F.prototype.haloPath=function(){return this.series.chart.is3d()?[]:$.apply(this,arguments)},F}(U);return Z}),et(_,"Series/Pie3D/Pie3DSeries.js",[_["Core/Globals.js"],_["Series/Pie3D/Pie3DPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,c)},function(y,c){function f(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),V=G.deg2rad,F=G.svg,I=X.seriesTypes.pie,E=U.extend,A=U.pick,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return Z(c,y),c.prototype.addPoint=function(){y.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},c.prototype.animate=function(f){if(this.chart.is3d()){var m=this.options.animation,u=void 0,v=this.center,S=this.group,M=this.markerGroup;F&&(m===!0&&(m={}),f?(S.oldtranslateX=A(S.oldtranslateX,S.translateX),S.oldtranslateY=A(S.oldtranslateY,S.translateY),u={translateX:v[0],translateY:v[1],scaleX:.001,scaleY:.001},S.attr(u),M&&(M.attrSetters=S.attrSetters,M.attr(u))):(u={translateX:S.oldtranslateX,translateY:S.oldtranslateY,scaleX:1,scaleY:1},S.animate(u,m),M&&M.animate(u,m)))}else y.prototype.animate.apply(this,arguments)},c.prototype.drawDataLabels=function(){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;this.data.forEach(function(m){var u=m.shapeArgs,v=u.r,S=(u.alpha||f.alpha)*V,M=(u.beta||f.beta)*V,x=(u.start+u.end)/2,p=m.labelPosition,g=p.connectorPosition,r=-v*(1-Math.cos(S))*Math.sin(x),a=v*(Math.cos(M)-1)*Math.cos(x);[p.natural,g.breakAt,g.touchingSliceAt].forEach(function(t){t.x+=a,t.y+=r})})}y.prototype.drawDataLabels.apply(this,arguments)},c.prototype.pointAttribs=function(f){var m=y.prototype.pointAttribs.apply(this,arguments),u=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(m.stroke=u.edgeColor||f.color||this.color,m["stroke-width"]=A(u.edgeWidth,1)),m},c.prototype.translate=function(){if(y.prototype.translate.apply(this,arguments),this.chart.is3d()){var f=this,m=f.options,u=m.depth||0,v=f.chart.options.chart.options3d,S=v.alpha,M=v.beta,x=m.stacking?(m.stack||0)*u:f._i*u;x+=u/2,m.grouping!==!1&&(x=0),f.data.forEach(function(p){var g,r=p.shapeArgs;p.shapeType="arc3d",r.z=x,r.depth=.75*u,r.alpha=S,r.beta=M,r.center=f.center,g=(r.end+r.start)/2,p.slicedTranslation={translateX:Math.round(Math.cos(g)*m.slicedOffset*Math.cos(S*V)),translateY:Math.round(Math.sin(g)*m.slicedOffset*Math.cos(S*V))}})}},c.prototype.drawTracker=function(){y.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(f){f.graphic&&["out","inn","side1","side2"].forEach(function(m){f.graphic&&(f.graphic[m].element.point=f)})})},c}(I);return E(P.prototype,{pointClass:B}),P}),et(_,"Series/Pie3D/Pie3DComposition.js",[_["Series/Pie3D/Pie3DPoint.js"],_["Series/Pie3D/Pie3DSeries.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B,X){X.seriesTypes.pie.prototype.pointClass.prototype.haloPath=G.prototype.haloPath,X.seriesTypes.pie=B}),et(_,"Series/Scatter3D/Scatter3DPoint.js",[_["Series/Scatter/ScatterSeries.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(V,F){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var A in E)E.hasOwnProperty(A)&&(I[A]=E[A])},X(V,F)},function(V,F){function I(){this.constructor=V}X(V,F),V.prototype=F===null?Object.create(F):(I.prototype=F.prototype,new I)}),$=B.defined,Z=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.options=void 0,I.series=void 0,I}return U(F,V),F.prototype.applyOptions=function(){return V.prototype.applyOptions.apply(this,arguments),$(this.z)||(this.z=0),this},F}(G.prototype.pointClass);return Z}),et(_,"Series/Scatter3D/Scatter3DSeries.js",[_["Core/Math3D.js"],_["Series/Scatter3D/Scatter3DPoint.js"],_["Series/Scatter/ScatterSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(P,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m])},Z(P,y)},function(P,y){function c(){this.constructor=P}Z(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}),F=G.pointCameraDistance,I=$.extend,E=$.merge,A=function(P){function y(){var c=P!==null&&P.apply(this,arguments)||this;return c.data=void 0,c.options=void 0,c.points=void 0,c}return V(y,P),y.prototype.pointAttribs=function(c){var f=P.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&c&&(f.zIndex=F(c,this.chart)),f},y.defaultOptions=E(X.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),y}(X);return I(A.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:B}),U.registerSeriesType("scatter3d",A),A}),et(_,"masters/highcharts-3d.src.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGRenderer3D.js"],_["Core/Chart/Chart3D.js"],_["Core/Axis/ZAxis.js"],_["Core/Axis/Axis3DComposition.js"],_["Series/Area3D/Area3DSeries.js"]],function(G,B,X,U,$,Z){var V=G;B.compose(V.SVGRenderer),X.compose(V.Chart,V.Fx),U.compose(V.Chart),$.compose(V.Axis,V.Tick),Z.compose(V.seriesTypes.area)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},1548:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=Function.prototype.toString;const ct=function(pt){if(pt!=null){try{return ht.call(pt)}catch(ft){}try{return pt+""}catch(ft){}}return""}},2060:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/Funnel/FunnelSeries.js",[_["Core/Chart/Chart.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,M){S.__proto__=M}||function(S,M){for(var x in M)M.hasOwnProperty(x)&&(S[x]=M[x])},$(u,v)},function(u,v){function S(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),V=B.noop,F=X.series,I=X.seriesTypes.pie,E=U.addEvent,A=U.extend,P=U.fireEvent,y=U.isArray,c=U.merge,f=U.pick,m=function(u){function v(){var S=u!==null&&u.apply(this,arguments)||this;return S.data=void 0,S.options=void 0,S.points=void 0,S}return Z(v,u),v.prototype.alignDataLabel=function(S,M,x,p,g){var r=S.series,a=r.options.reversed,t=S.dlBox||S.shapeArgs,i=x.align,o=x.verticalAlign,e=((r.options||{}).dataLabels||{}).inside,s=r.center[1],n=a?2*s-S.plotY:S.plotY,h=r.getWidthAt(n-t.height/2+M.height),b=o==="middle"?(t.topWidth-t.bottomWidth)/4:(h-t.bottomWidth)/2,k=t.y,D=t.x,d=f(M.height,M.getBBox().height);o==="middle"?k=t.y-t.height/2+d/2:o==="top"&&(k=t.y-t.height+d+x.padding),(o==="top"&&!a||o==="bottom"&&a||o==="middle")&&(i==="right"?D=t.x-x.padding+b:i==="left"&&(D=t.x+x.padding-b)),p={x:D,y:a?k-t.height:k,width:t.bottomWidth,height:t.height},x.verticalAlign="bottom",e&&!S.visible||F.prototype.alignDataLabel.call(this,S,M,x,p,g),e&&(!S.visible&&S.dataLabel&&(S.dataLabel.placed=!1),S.contrastColor&&M.css({color:S.contrastColor}))},v.prototype.drawDataLabels=function(){var S,M,x,p,g,r=this,a=r.data,t=r.options.dataLabels.distance,i=a.length;for(r.center[2]-=2*t;i--;)M=(S=(x=a[i]).half)?1:-1,g=x.plotY,x.labelDistance=f(x.options.dataLabels&&x.options.dataLabels.distance,t),r.maxLabelDistance=Math.max(x.labelDistance,r.maxLabelDistance||0),p=r.getX(g,S,x),x.labelPosition={natural:{x:0,y:g},final:{},alignment:S?"right":"left",connectorPosition:{breakAt:{x:p+(x.labelDistance-5)*M,y:g},touchingSliceAt:{x:p+x.labelDistance*M,y:g}}};X.seriesTypes[r.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},v.prototype.translate=function(){var S,M,x,p,g,r,a,t,i,o,e=0,s=this,n=s.chart,h=s.options,b=h.reversed,k=h.ignoreHiddenPoint,D=n.plotWidth,d=n.plotHeight,C=0,T=h.center,N=tt(T[0],D),z=tt(T[1],d),L=tt(h.width,D),O=tt(h.height,d),j=tt(h.neckWidth,D),Y=tt(h.neckHeight,d),H=z-O/2+O-Y,W=s.data,q=h.dataLabels.position==="left"?1:0;function tt(J,nt){return/%$/.test(J)?nt*parseInt(J,10)/100:parseInt(J,10)}s.getWidthAt=function(J){return J>H||O===Y?j:j+(L-j)*(1-(J-(z-O/2))/(O-Y))},s.getX=function(J,nt,lt){return N+(nt?-1:1)*(s.getWidthAt(b?2*z-J:J)/2+lt.labelDistance)},s.center=[N,z,O],s.centerX=N,W.forEach(function(J){k&&J.visible===!1||(e+=J.y)}),W.forEach(function(J){o=null,x=e?J.y/e:0,t=(g=z-O/2+C*O)+x*O,S=s.getWidthAt(g),r=(p=N-S/2)+S,S=s.getWidthAt(t),i=(a=N-S/2)+S,g>H?(p=a=N-j/2,r=i=N+j/2):t>H&&(o=t,S=s.getWidthAt(H),i=(a=N-S/2)+S,t=H),b&&(g=2*z-g,t=2*z-t,o!==null&&(o=2*z-o)),M=[["M",p,g],["L",r,g],["L",i,t]],o!==null&&M.push(["L",i,o],["L",a,o]),M.push(["L",a,t],["Z"]),J.shapeType="path",J.shapeArgs={d:M},J.percentage=100*x,J.plotX=N,J.plotY=(g+(o||t))/2,J.tooltipPos=[N,J.plotY],J.dlBox={x:a,y:g,topWidth:r-p,bottomWidth:i-a,height:Math.abs(f(o,t)-g),width:NaN},J.slice=V,J.half=q,k&&J.visible===!1||(C+=x)}),P(s,"afterTranslate")},v.prototype.sortByAngle=function(S){S.sort(function(M,x){return M.plotY-x.plotY})},v.defaultOptions=c(I.defaultOptions,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}}),v}(I);return A(m.prototype,{animate:V}),E(G,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(u){var v=u.options&&u.options.dataLabels;y(v)&&(v=v[0]),u.is("pie")&&u.placeDataLabels&&v&&!v.inside&&u.placeDataLabels()})}),X.registerSeriesType("funnel",m),m}),et(_,"Series/Pyramid/PyramidSeries.js",[_["Series/Funnel/FunnelSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(F,I){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},U(F,I)},function(F,I){function E(){this.constructor=F}U(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=X.merge,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return $(I,F),I.defaultOptions=Z(G.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),I}(G);return B.registerSeriesType("pyramid",V),V}),et(_,"masters/modules/funnel.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},2281:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>be});var ht=st(6096),ct=st(5436),pt=st(3269);function ft(Ot){var zt=this.__data__=new ht.A(Ot);this.size=zt.size}ft.prototype.clear=function(){this.__data__=new ht.A,this.size=0},ft.prototype.delete=function(Ot){var zt=this.__data__,Vt=zt.delete(Ot);return this.size=zt.size,Vt},ft.prototype.get=function(Ot){return this.__data__.get(Ot)},ft.prototype.has=function(Ot){return this.__data__.has(Ot)},ft.prototype.set=function(Ot,zt){var Vt=this.__data__;if(Vt instanceof ht.A){var qt=Vt.__data__;if(!ct.A||qt.length<199)return qt.push([Ot,zt]),this.size=++Vt.size,this;Vt=this.__data__=new pt.A(qt)}return Vt.set(Ot,zt),this.size=Vt.size,this};const _=ft;var et=st(6124);st(9465);var G=st(4044),B=st(7313);const X=function(Ot){return(0,B.A)(Ot)&&(0,G.A)(Ot)=="[object Arguments]"};var U=Object.prototype,$=U.hasOwnProperty,Z=U.propertyIsEnumerable;const V=X(function(){return arguments}())?X:function(Ot){return(0,B.A)(Ot)&&$.call(Ot,"callee")&&!Z.call(Ot,"callee")};var F=st(6956),I=st(9600),E=w&&!w.nodeType&&w,A=E&&!0&&l&&!l.nodeType&&l,P=A&&A.exports===E?I.A.Buffer:void 0;const y=(P?P.isBuffer:void 0)||function(){return!1};var c=st(5378);const f=function(Ot){return typeof Ot=="number"&&Ot>-1&&Ot%1==0&&Ot<=9007199254740991};var m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;const u=function(Ot){return function(zt){return Ot(zt)}};var v=st(6713),S=w&&!w.nodeType&&w,M=S&&!0&&l&&!l.nodeType&&l,x=M&&M.exports===S&&v.A.process;const p=function(){try{return M&&M.require&&M.require("util").types||x&&x.binding&&x.binding("util")}catch(Ot){}}();var g=p&&p.isTypedArray;const r=g?u(g):function(Ot){return(0,B.A)(Ot)&&f(Ot.length)&&!!m[(0,G.A)(Ot)]};var a=Object.prototype.hasOwnProperty;const t=function(Ot,zt){var Vt=(0,F.A)(Ot),qt=!Vt&&V(Ot),me=!Vt&&!qt&&y(Ot),de=!Vt&&!qt&&!me&&r(Ot),ue=Vt||qt||me||de,Ft=ue?function(Xt,ne){for(var ce=-1,se=Array(Xt);++ce<Xt;)se[ce]=ne(ce);return se}(Ot.length,String):[],At=Ft.length;for(var It in Ot)!a.call(Ot,It)||ue&&(It=="length"||me&&(It=="offset"||It=="parent")||de&&(It=="buffer"||It=="byteLength"||It=="byteOffset")||(0,c.A)(It,At))||Ft.push(It);return Ft};var i=Object.prototype;const o=function(Ot){var zt=Ot&&Ot.constructor;return Ot===(typeof zt=="function"&&zt.prototype||i)},e=function(Ot,zt){return function(Vt){return Ot(zt(Vt))}},s=e(Object.keys,Object);var n=Object.prototype.hasOwnProperty,h=st(405);const b=function(Ot){return Ot!=null&&f(Ot.length)&&!(0,h.A)(Ot)},k=function(Ot){return b(Ot)?t(Ot):function(zt){if(!o(zt))return s(zt);var Vt=[];for(var qt in Object(zt))n.call(zt,qt)&&qt!="constructor"&&Vt.push(qt);return Vt}(Ot)};var D=st(7942);const d=function(){return[]};var C=Object.prototype.propertyIsEnumerable,T=Object.getOwnPropertySymbols;const N=T?function(Ot){return Ot==null?[]:(Ot=Object(Ot),function(zt,Vt){for(var qt=-1,me=zt==null?0:zt.length,de=0,ue=[];++qt<me;){var Ft=zt[qt];Vt(Ft,qt,zt)&&(ue[de++]=Ft)}return ue}(T(Ot),function(zt){return C.call(Ot,zt)}))}:d,z=function(Ot,zt){for(var Vt=-1,qt=zt.length,me=Ot.length;++Vt<qt;)Ot[me+Vt]=zt[Vt];return Ot},L=e(Object.getPrototypeOf,Object),O=function(Ot,zt,Vt){var qt=zt(Ot);return(0,F.A)(Ot)?qt:z(qt,Vt(Ot))},j=function(Ot){return O(Ot,k,N)};var Y=st(123);const H=(0,Y.A)(I.A,"DataView"),W=(0,Y.A)(I.A,"Promise"),q=(0,Y.A)(I.A,"Set"),tt=(0,Y.A)(I.A,"WeakMap");var J=st(1548),nt="[object Map]",lt="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,J.A)(H),dt=(0,J.A)(ct.A),ot=(0,J.A)(W),at=(0,J.A)(q),ut=(0,J.A)(tt),vt=G.A;(H&&vt(new H(new ArrayBuffer(1)))!=bt||ct.A&&vt(new ct.A)!=nt||W&&vt(W.resolve())!=lt||q&&vt(new q)!=gt||tt&&vt(new tt)!=mt)&&(vt=function(Ot){var zt=(0,G.A)(Ot),Vt=zt=="[object Object]"?Ot.constructor:void 0,qt=Vt?(0,J.A)(Vt):"";if(qt)switch(qt){case yt:return bt;case dt:return nt;case ot:return lt;case at:return gt;case ut:return mt}return zt});const Ct=vt;var xt=Object.prototype.hasOwnProperty;const St=I.A.Uint8Array,wt=function(Ot){var zt=new Ot.constructor(Ot.byteLength);return new St(zt).set(new St(Ot)),zt};var Mt=/\w*$/,Tt=st(3516),Lt=Tt.A?Tt.A.prototype:void 0,Pt=Lt?Lt.valueOf:void 0;const Et=function(Ot,zt,Vt){var qt,me,de,ue=Ot.constructor;switch(zt){case"[object ArrayBuffer]":return wt(Ot);case"[object Boolean]":case"[object Date]":return new ue(+Ot);case"[object DataView]":return function(Ft,At){var It=wt(Ft.buffer);return new Ft.constructor(It,Ft.byteOffset,Ft.byteLength)}(Ot);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(Ft,At){var It=wt(Ft.buffer);return new Ft.constructor(It,Ft.byteOffset,Ft.length)}(Ot);case"[object Map]":case"[object Set]":return new ue;case"[object Number]":case"[object String]":return new ue(Ot);case"[object RegExp]":return(de=new(me=Ot).constructor(me.source,Mt.exec(me))).lastIndex=me.lastIndex,de;case"[object Symbol]":return qt=Ot,Pt?Object(Pt.call(qt)):{}}};var jt=Object.create;const Dt=function(){function Ot(){}return function(zt){if(!(0,D.A)(zt))return{};if(jt)return jt(zt);Ot.prototype=zt;var Vt=new Ot;return Ot.prototype=void 0,Vt}}();var _t=p&&p.isMap;const Bt=_t?u(_t):function(Ot){return(0,B.A)(Ot)&&Ct(Ot)=="[object Map]"};var Jt=p&&p.isSet;const Gt=Jt?u(Jt):function(Ot){return(0,B.A)(Ot)&&Ct(Ot)=="[object Set]"};var Ut="[object Arguments]",Kt="[object Function]",le="[object Object]",$t={};$t[Ut]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t[le]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[Kt]=$t["[object WeakMap]"]=!1;const ie=function Ot(zt,Vt,qt,me,de,ue){var Ft,At=1&Vt;if(Ft!==void 0)return Ft;if(!(0,D.A)(zt))return zt;var It=(0,F.A)(zt);if(It)Ft=function(Qt){var fe=Qt.length,Ee=new Qt.constructor(fe);return fe&&typeof Qt[0]=="string"&&xt.call(Qt,"index")&&(Ee.index=Qt.index,Ee.input=Qt.input),Ee}(zt);else{var Xt=Ct(zt),ne=Xt==Kt||Xt=="[object GeneratorFunction]";if(y(zt))return function(Qt,fe){return Qt.slice()}(zt);if(Xt==le||Xt==Ut||ne&&!de)Ft=ne?{}:function(Qt){return typeof Qt.constructor!="function"||o(Qt)?{}:Dt(L(Qt))}(zt);else{if(!$t[Xt])return de?zt:{};Ft=Et(zt,Xt)}}ue||(ue=new _);var ce=ue.get(zt);if(ce)return ce;ue.set(zt,Ft),Gt(zt)?zt.forEach(function(Qt){Ft.add(Ot(Qt,Vt,qt,Qt,zt,ue))}):Bt(zt)&&zt.forEach(function(Qt,fe){Ft.set(fe,Ot(Qt,Vt,qt,fe,zt,ue))});var se=It?void 0:j(zt);return function(Qt,fe){for(var Ee=-1,Gi=Qt==null?0:Qt.length;++Ee<Gi&&fe(Qt[Ee],Ee,Qt)!==!1;);}(se||zt,function(Qt,fe){se&&(Qt=zt[fe=Qt]),(0,et.A)(Ft,fe,Ot(Qt,Vt,qt,fe,zt,ue))}),Ft},be=function(Ot){return ie(Ot,5)}},2382:function(it,rt,st){var ht=this&&this.__read||function(G,B){var X=typeof Symbol=="function"&&G[Symbol.iterator];if(!X)return G;var U,$,Z=X.call(G),V=[];try{for(;(B===void 0||B-- >0)&&!(U=Z.next()).done;)V.push(U.value)}catch(F){$={error:F}}finally{try{U&&!U.done&&(X=Z.return)&&X.call(Z)}finally{if($)throw $.error}}return V},ct=this&&this.__spreadArray||function(G,B,X){if(X||arguments.length===2)for(var U,$=0,Z=B.length;$<Z;$++)!U&&$ in B||(U||(U=Array.prototype.slice.call(B,0,$)),U[$]=B[$]);return G.concat(U||Array.prototype.slice.call(B))},pt=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var ft=pt(st(8552)),_=pt(st(4501)),et=st(622);rt.default=function(G){var B,X=G.fireEvent,U=new Map,$=!1;function Z(A,P){for(var y=[A,P],c=0;c<y.length;c++)for(var f=y[c],m=0;m<f.length;m++){for(var u=(m+1)%f.length,v=f[m],S=f[u],M={x:S.y-v.y,y:v.x-S.x},x=void 0,p=void 0,g=0;g<A.length;g++){var r=M.x*A[g].x+M.y*A[g].y;((0,_.default)(x)||r<x)&&(x=r),((0,_.default)(p)||r>p)&&(p=r)}var a=void 0,t=void 0;for(g=0;g<P.length;g++)r=M.x*P[g].x+M.y*P[g].y,((0,_.default)(a)||r<a)&&(a=r),((0,_.default)(t)||r>t)&&(t=r);if(p<a||t<x)return!1}return!0}function V(A,P){return(A.yAxis||[]).some(function(y){return!(!y.options.stackLabels||!y.stacking.stacks)&&Object.values(y.stacking.stacks||[]).some(function(c){return Object.values(c).some(function(f){return f.label===P})})})}function F(A){return A.series&&A.series.some(function(P){return(0,ft.default)(P,"xAxis.axisLine.animating")})}function I(A,P,y){return y&&!(0,_.default)(y.totalsRank)&&V(A,P)?y.totalsRank:P.labelrank||0}function E(){$||($=!0,U.forEach(function(A,P){if(!F(P)){if(A.length){var y=A[A.length-1];P.hideOverlappingLabels(y.labels,y.options)}U.delete(P)}}),U.size&&(clearTimeout(B),B=setTimeout(E,100)),$=!1)}G.wrap(G.Axis.prototype,"addPlotBandOrLine",function(A){var P=A.apply(this,[].slice.call(arguments,1));return(0,ft.default)(P,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(P)),P}),G.wrap(G.PlotLineOrBand.prototype,"render",function(A){var P=this,y=P.axis,c=P.options,f=c.to,m=c.from,u=(0,et.defined)(m)&&(0,et.defined)(f),v=G.pick(c.zIndex,0),S=y.chart.renderer,M=u?"bands":"lines",x={zIndex:v};M+="-labels-"+v;var p=y.plotLinesAndBandsGroups[M];return p||(x.translateX=0,x.translateY=0,y.plotLinesAndBandsGroups[M]=p=S.g("plot-"+M).attr(x).add()),A.apply(this,[].slice.call(arguments,1))}),G.PlotLineOrBand.prototype.renderLabel=function(A,P,y,c){var f=this,m=f.axis,u=m.chart.renderer,v=f.label,S=(y?"bands":"lines")+"-labels-"+c,M=m.plotLinesAndBandsGroups[S];v||(f.label=v=u.text(this.getLabelText(A),0,0,A.useHTML).attr({align:A.textAlign||A.align,rotation:A.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(A.className||""),zIndex:c}).add(M),m.chart.styledMode||v.css(G.merge({textOverflow:"ellipsis"},A.style)));var x=P.xBounds||[P[0][1],P[1][1],y?P[2][1]:P[0][1]],p=P.yBounds||[P[0][2],P[1][2],y?P[2][2]:P[0][2]],g=(0,et.arrayMin)(x),r=(0,et.arrayMin)(p);if(v.align(A,!1,{x:g,y:r,width:(0,et.arrayMax)(x)-g,height:(0,et.arrayMax)(p)-r}),!(v.styles.width&&v.styles.width!=="auto"||v.alignValue&&v.alignValue!=="left")){var a=A.clip?m.width:m.chart.chartWidth;v.css({width:(v.rotation===90?m.height-(v.alignAttr.y-m.top):a-(v.alignAttr.x-m.left))+"px"})}v.show(!0)},G.addEvent(G.Chart.prototype,"render",function(){var A=[];(this.xAxis||[]).forEach(function(P){P.plotLinesAndBands&&P.plotLinesAndBands.forEach(function(y){y.label&&y.label.visibility!=="hidden"&&(y.label.isSerieLabel=!0,A.push(y.label))})}),A.length>0&&this.hideOverlappingLabels(A)}),G.Chart.prototype.hideOverlappingLabels=function(A,P){var y=this;P===void 0&&(P={});var c=this;if(F(c))return function(t,i,o){U.has(t)||U.set(t,[]),U.get(t).push({labels:i,options:o}),E()}(c,ct([],ht(A),!1),P);E(),(A=A.filter(function(t){var i=t==null?void 0:t.element,o=(t==null?void 0:t.className)==="stack-labels",e=(t==null?void 0:t.visibility)!=="hidden"||o&&(t==null?void 0:t.placed);return i&&(t==null||t.opacitySetter(0,"opacity",t.element),t==null||t.visibilitySetter("hidden","visibility",t.element)),i&&e})).forEach(function(t){t.oldOpacity=t.opacity,t.newOpacity=1,t.polygon=function(i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=i.element,s=e.transform.baseVal.consolidate().matrix,n=e.getBBox();function h(b,k){var D=o.createSVGPoint();D.x=b,D.y=k;var d=D.matrixTransform(s);return{x:d.x,y:d.y}}return[h(n.x,n.y),h(n.x,n.y+n.height),h(n.x+n.width,n.y+n.height),h(n.x+n.width,n.y)]}(t)}),A.sort(function(t,i){return I(c,i,P)-I(c,t,P)});var f=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,m=f?{x:(0,et.defined)(f.x)?f.x:f.left,y:(0,et.defined)(f.y)?f.y:f.top,width:f.width,height:f.height}:null,u=(0,ft.default)(c,"options.chart.type"),v=u==="area"||u==="areaspline",S=u==="pie";if((v||u==="column"||u==="bar"||u==="line"||u==="bubble"||u==="boxplot")&&m){m.x-=10,m.y-=10,m.width+=20,m.height+=20,v&&!function(t){var i=(t.xAxis||[]).filter(function(o){return(0,ft.default)(o,"options.labels.enabled")});return i.length>1||i.some(function(o){return o.options.plotBands&&o.options.plotBands.length})}(c)&&(m.y-=30,m.height+=30);var M=this.series&&this.series.some(function(t){return(0,ft.default)(t,"options.stacking")==="percent"});A.forEach(function(t){var i,o,e,s;t.newOpacity===0||t.isSerieLabel||M&&V(y,t)||(i=m,o=t.element.getBoundingClientRect(),e=(0,et.defined)(o.x)?o.x:o.left,s=(0,et.defined)(o.y)?o.y:o.top,i.x<=e&&i.y<=s&&i.x+i.width>=e+o.width&&i.y+i.height>=s+o.height)||(t.newOpacity=0)})}for(var x=A.length,p=0;p<x;p++)for(var g=A[p],r=p+1;r<x;++r){var a=A[r];g.polygon&&a.polygon&&g!==a&&g.newOpacity!==0&&a.newOpacity!==0&&Z(g.polygon,a.polygon)&&((I(c,g,P)<I(c,a,P)?g:a).newOpacity=0)}A.forEach(function(t){var i,o;t&&(o=t.newOpacity,S&&!t.placed||(o?t.show(!0):i=function(){t.hide()},t.oldOpacity!==o&&(t.alignAttr?(t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,i),X(c,"afterHideOverlappingLabels")):t.attr({opacity:o})),t.isOld=!0))})},G.wrap(G.SVGElement.prototype,"animate",function(A,P,y,c){var f=this;return f.animating=!0,A.apply(this,[P,y,function(){f.animating=!1,c?c(arguments):y&&y.complete&&y.complete(arguments)}])})}},2397:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(G){for(var B,X=1,U=arguments.length;X<U;X++)for(var $ in B=arguments[X])Object.prototype.hasOwnProperty.call(B,$)&&(G[$]=B[$]);return G},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(8552)),ft=ct(st(4501)),_=ct(st(2281)),et=st(622);rt.default=function(G){var B=G.merge,X=G.extend,U=G.pick;G.getOptions().plotOptions.boxplot.lineWidth=1,G.getOptions().plotOptions.boxplot.fillOpacity=.6,G.getOptions().plotOptions.boxplot.strokeOpacity=.6,G.getOptions().plotOptions.boxplot.strokeWidth=1,G.getOptions().plotOptions.boxplot.states.select.lineWidth=1,G.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,G.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,G.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,G.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,G.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,G.wrap(G.seriesTypes.boxplot.prototype,"drawPoints",function(){var $,Z,V,F,I,E,A,P,y,c,f,m,u,v,S,M,x,p,g,r,a,t,i,o,e,s,n=this,h=n.points,b=n.options,k=n.chart.renderer,D=n.doQuartiles!==!1,d=parseInt(n.options.whiskerLength,10)/100;h.forEach(function(C){if(f=C.graphic,o=C.shapeArgs,u={},x={},g={},e=C.color||n.color,s=C.innerBoxColor||n.color,C.plotY!==void 0){$={fill:s,"fill-opacity":.75,stroke:n.color,"stroke-opacity":1,"stroke-width":1},C.selected&&($.fill=s,$["fill-opacity"]=.3,$["stroke-opacity"]=.3),V={fill:s,"fill-opacity":$["fill-opacity"],stroke:e,"stroke-width":1};var T={fill:$.fill,"fill-opacity":$["fill-opacity"],"stroke-opacity":$["fill-opacity"]};Z=ht({},$),r=o.width,a=Math.floor(o.x),t=a+r,i=Math.round(r/2),F=Math.floor(D?C.q1Plot:C.lowPlot),I=Math.floor(D?C.q3Plot:C.lowPlot),E=Math.floor(C.highPlot),A=Math.floor(C.lowPlot),u.stroke=C.stemColor||b.stemColor||e,u["stroke-width"]=U(C.stemWidth,b.stemWidth,b.lineWidth),u.dashstyle=C.stemDashStyle||b.stemDashStyle,x.stroke=C.whiskerColor||b.whiskerColor||e,x["stroke-width"]=U(C.whiskerWidth,b.whiskerWidth,b.lineWidth),g.stroke=C.medianColor||b.medianColor||e,g["stroke-width"]=U(C.medianWidth,b.medianWidth,b.lineWidth),g["stroke-linecap"]="round",y=u["stroke-width"]%2/2,m=["M",c=a+i+y,I,"L",c,E,"M",c,F,"L",c,A,"z"],D&&(y=$["stroke-width"]%2/2,c=Math.floor(c)+y,F=Math.floor(F)+y,I=Math.floor(I)+y,v=["M",a+=y,I,"L",a,F,"L",t+=y,F,"L",t,I,"L",a,I,"z"]),d&&(y=x["stroke-width"]%2/2,S=["M",c-i*d,E+=y,"L",c+i*d,E,"M",c-i*d,A+=y,"L",c+i*d,A]),y=2,P=Math.round(C.medianPlot)+y,p=["M",a,P,"L",t,P,"z"],D&&(M=["M",a+.5,P+.5,"L",a+.5,F-.5,"L",t-.5,F-.5,"L",t-.5,P+.5,"L",a+.5,P+.5,"z"]),f?(f.attr(T),C.stem.attr(u),C.stem.animate({d:m}),d&&(C.whiskers.attr(x),C.whiskers.animate({d:S})),D&&(C.box.attr(Z),C.box.attr("stroke",Z.stroke),C.box.animate({d:v}),C.innerBox.animate({d:M}),C.innerBox.attr(V)),C.medianShape.attr(g),C.medianShape.animate({d:p})):(C.graphic=f=k.g().add(n.group).attr(T).attr("name","graphic"),C.stem=k.path(m).attr(u).attr("name","stem").add(f),d&&(C.whiskers=k.path(S).attr(x).attr("name","whiskers").add(f)),D&&(C.box=k.path(v).attr(Z).attr("stroke",Z.stroke).attr("name","box").add(f),C.innerBox=k.path(M).attr(V).attr("name","inner-box").add(f)),C.medianShape=k.path(p).attr(g).attr("name","median").add(f))}})}),G.wrap(G.seriesTypes.boxplot.prototype,"drawDataLabels",function($,Z,V){var F,I,E,A,P=this,y=P.options,c=y.cursor,f=P.points,m=y.dataLabels,u=[{name:"median",enabled:!0,indent:-15,path:function(x,p){return["M",x,p,"L",x-10,p]}},{name:"q3",enabled:!0,indent:-20,path:function(x,p){return["M",x,p,"L",x-2,p+5,x-10,p+5]}},{name:"high",enabled:!0,indent:-20,path:function(x,p){return["M",x,p,"L",x-2,p+5,x-10,p+5]}},{name:"q1",enabled:!0,indent:-7,path:function(x,p){return["M",x,p,"L",x-2,p-5,x-10,p-5]}},{name:"low",enabled:!0,indent:-7,path:function(x,p){return["M",x,p,"L",x-2,p-5,x-10,p-5]}}];if($.call(this,m,V),P.data.length>0){var v=P.barW;P.barW>P.options.maxPointWidth&&(v=P.options.maxPointWidth),this.data.forEach(function(x){x.shapeArgs.x+=(x.shapeArgs.width-v)/2,x.shapeArgs.width=v})}if(m.enabled||P._hasPointLabels){A=P.plotGroup("dataLabelsGroup","data-labels",P.visible?"visible":"hidden",m.zIndex||6);var S=P.chart.plotBox.height;if(P.type==="boxplot"&&S<200)if((0,et.defined)((0,pt.default)(f,"0.dataLabel")))for(var M=0;M<f.length;M++)f[M].dataLabel&&((0,et.defined)((0,pt.default)(f[M].dataLabel,"high"))&&f[M].dataLabel.high.destroy(),(0,et.defined)((0,pt.default)(f[M].dataLabel,"low"))&&f[M].dataLabel.low.destroy());else delete u[2],delete u[4];I=m,f.forEach(function(x){var p,g,r,a,t,i,o=!0,e=x.connector,s=x.shapeArgs,n=Math.floor(s.x)+s.width;F=x.options&&x.options.dataLabels;var h=U(F&&F.enabled,I.enabled),b=x.innerBoxColor||P.color;if(h){m=B(I,F),i=m.rotation,r=x.getLabelConfig();var k=!1,D=(0,_.default)(u);(0,et.defined)(x,"shapeArgs.height")&&x.shapeArgs.height<30&&(delete D[2],delete D[4],x.shapeArgs.height===0&&(k=!0)),(0,et.defined)(x.dataLabel)||(x.dataLabel={},x.dataLabel.element={},x.dataLabel.destroy=function(){G.removeEvent(x.dataLabel,"add"),G.removeEvent(x.dataLabel.element,"mouseenter"),G.removeEvent(x.dataLabel.element,"mouseleave"),D.forEach(function(d){d&&x.dataLabel[d.name]&&(x.dataLabel[d.name].destroy(),x.dataLabelLine[d.name].destroy())}),x.dataLabel=null,x.dataLabelLine=null}),(0,et.defined)(x.dataLabelLine)||(x.dataLabelLine={}),D.forEach(function(d){if(d&&d.enabled){p=x.dataLabel[d.name],g=x.dataLabelLine[d.name],E=m.formatter.call(r,m,d.name),m.style.color=U(m.color,m.style.color,P.color,"black"),m.x=n+12,m.y=x[d.name+"Plot"]-x.highPlot+d.indent;var C=P.visible&&P.chart.isInsidePlot(x.plotX,x.plotY,P.chart.inverted)&&P.chart.isInsidePlot(x.plotX,x.yBottom,P.chart.inverted);if(p)C?((0,et.defined)(E)?(p.attr({text:E}),o=!1):(x.dataLabel[d.name]=p=p.destroy(),e&&(x.connector=e.destroy())),g&&g.destroy()):(x.dataLabel[d.name]=p=p.destroy(),g&&g.destroy());else if((0,et.defined)(E)&&E!=="null"){for(t in a={fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth,r:m.borderRadius||0,rotation:i,padding:m.padding,zIndex:1})(0,ft.default)(a[t])&&delete a[t];C&&((p=P.chart.renderer[i?"text":"label"](E,0,-999,null,null,null,m.useHTML)).attr(a).css(X(m.style,c&&{cursor:c})).add(A).shadow(m.shadow),p.options={},x.dataLabel[d.name]=p)}if(C){var T={fill:b,"fill-opacity":.75,stroke:P.color,"stroke-opacity":1,"stroke-width":1},N=13;k&&(d.name==="q1"?N=5:d.name==="q3"&&(N=21)),g=x.dataLabelLine[d.name]=x.series.chart.renderer.path(d.path(2,N)).attr({"stroke-width":1,stroke:T.stroke,"stroke-opacity":T["fill-opacity"]||1}).add(p)}p&&P.alignDataLabel(x,p,m,null,o,g,d.name),p.options={},x["dataLabel"+d.name]=p}})}x.dataLabels=u.map(function(d){return x.dataLabel[d.name]}).filter(function(d){return d})}),P.dataLabelCollections=[],u.map(function(x){return x.name}).forEach(function(x){P.dataLabelCollections.push("dataLabel"+x)})}}),G.wrap(G.seriesTypes.boxplot.prototype,"alignDataLabel",function($,Z,V,F,I,E,A,P){var y=this.chart,c=y.inverted,f=Z.dlBox||Z.shapeArgs,m=Z.below||Z.plotY>U(this.translatedThreshold,y.plotSizeY),u=U(F.inside,!!this.options.stacking);f&&((I=B(f)).y+=m?I.height:0,I.height=0),F.align=U(F.align,"left"),F.verticalAlign=U(F.verticalAlign,c||u?"middle":m?"top":"bottom");var v,S=V.getBBox(),M=this.visible&&y.isInsidePlot(Z.plotX,Z.plotY,c)&&y.isInsidePlot(Z.plotX,Z.yBottom,c);if(M){switch(X(F,{width:S.width,height:S.height}),v={align:F.align,x:F.x,y:I.y+F.y+I.height/2},P){case"q3":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y+F.height>Z.dataLabel.median.y&&(v.y=Z.dataLabel.median.y-(F.height/2+4));break;case"high":(0,et.defined)(Z,"dataLabel.q3.y")&&Z.dataLabel.q3.y!=999&&v.y+F.height>Z.dataLabel.q3.y&&(v.y=Z.dataLabel.q3.y-(F.height/2+4));break;case"q1":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y<Z.dataLabel.median.y+Z.dataLabel.median.height&&(v.y=Z.dataLabel.median.y+(F.height/2+4));break;case"low":(0,et.defined)(Z,"dataLabel.q1.y")&&Z.dataLabel.q1.y!=999&&v.y<Z.dataLabel.q1.y+Z.dataLabel.q1.height?v.y=Z.dataLabel.q1.y+(F.height/2+4):(0,et.defined)(Z,"yBottom")&&v.y+F.height>y.plotHeight&&(v.y=y.plotHeight-F.height)}v.y=isNaN(v.y)?0:v.y,V[E?"attr":"animate"](v)}M||(V.attr({y:-999}),V.placed=!1,A.attr({"stroke-opacity":0}))})}},2805:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:ht(st(605)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};rt.default=ct},2807:function(it,rt,st){var ht=this&&this.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(8552)),pt=st(622),ft=ht(st(605)),_=st(6681);rt.default=function(et){var G=et.wrap;G(et.seriesTypes.pie.prototype,"drawDataLabels",function(B,X,U){var $,Z=this,V=Z.chart.renderer;B.call(this,X,U);var F=function(E,A,P,y){var c=V.text(A.slicePercentage+"%",A.newCenterX,A.newCenterY),f={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":A.fontSize},m={"pointer-events":"none","font-family":(0,ct.default)(y,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},u=c.attr(f).attr(P).add(),v=c.element.getBBox().height/4,S={x:A.newCenterX,y:A.newCenterY+v};E.sisenseLabel=u.css(m).attr(S).add()},I=(0,ct.default)(Z,"chart.options.chart.isHighlightMode");Z.points.forEach(function(E){var A,P;if(E.graphic){if((0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(A=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),A.fontSize>P)if((0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))){var y={x:A.newCenterX,y:A.newCenterY};I&&(y.translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:A.slicePercentage+"%","font-size":A.fontSize}).animate(y)}else F(E,A,$,Z),E.sisenseLabel&&I&&((y={x:A.newCenterX,y:A.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:A.slicePercentage+"%","font-size":A.fontSize}).attr(y));else(0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(A=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),A.fontSize>P&&F(E,A,$,Z))})}),G(et.Point.prototype,"destroyElements",function(B,X,U){for(var $,Z=this,V=["decoration","sisenseLabel"],F=V.length;F--;)Z[$=V[F]]&&Z.visible&&Z[$].renderer&&Z[$].destroy();B.call(this,X,U)}),G(et.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(B){B.apply(this,[].slice.call(arguments,1)),(0,ct.default)(this,"sisenseLabel.renderer")&&this.sisenseLabel.animate(this.getTranslate())}),et.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(B){var X,U=B.dataLabel;U&&B.visible&&((X=U._pos)?(U.sideOverflow&&(U._attr.width=U.getBBox().width-U.sideOverflow,U.css({width:U._attr.width+"px",textOverflow:"ellipsis"}),U.shortened=!0),U.attr(U._attr),U[U.moved?"animate":"attr"](X),U.moved=!0):U&&U.attr({y:-9999}))},this)},et.Point.prototype.getClassName=function(){return"highcharts-point"+(this.selected||this.sliced?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}}},3039:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(X){for(var U,$=1,Z=arguments.length;$<Z;$++)for(var V in U=arguments[$])Object.prototype.hasOwnProperty.call(U,V)&&(X[V]=U[V]);return X},ht.apply(this,arguments)},ct=this&&this.__read||function(X,U){var $=typeof Symbol=="function"&&X[Symbol.iterator];if(!$)return X;var Z,V,F=$.call(X),I=[];try{for(;(U===void 0||U-- >0)&&!(Z=F.next()).done;)I.push(Z.value)}catch(E){V={error:E}}finally{try{Z&&!Z.done&&($=F.return)&&$.call(F)}finally{if(V)throw V.error}}return I},pt=this&&this.__spreadArray||function(X,U,$){if($||arguments.length===2)for(var Z,V=0,F=U.length;V<F;V++)!Z&&V in U||(Z||(Z=Array.prototype.slice.call(U,0,V)),Z[V]=U[V]);return X.concat(Z||Array.prototype.slice.call(U))},ft=this&&this.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(rt,"__esModule",{value:!0});var _=ft(st(8552)),et=ft(st(4441)),G=ft(st(2281)),B=st(622);rt.default=function(X){var U=X.removeEvent,$=X.defaultOptions.plotOptions,Z=X.fireEvent,V=X.color,F=X.extend,I=X.isNumber,E=X.merge,A=X.pick,P=X.Series,y=X.Point,c=navigator.userAgent,f=/(ipad|iphone|ipod)/g.test(c.toLowerCase()),m=document.documentElement.ontouchstart!==void 0,u=X.defaultOptions,v="highcharts-";X.Axis.prototype.allowNegativeLog=!0,X.addEvent(X.Axis,"afterInit",function(){var S=this.logarithmic;S&&(this.positiveValuesOnly=!1,S.log2lin=function(M){var x=M<0,p=Math.abs(M);p<10&&(p+=(10-p)/10);var g=Math.log(p)/Math.LN10;return x?-g:g},S.lin2log=function(M){var x=M<0,p=Math.pow(10,Math.abs(M));return p<10&&(p=10*(p-1)/9),x?-p:p})}),X.Series.prototype.setPercentStacks=function(){var S,M=this,x=M.stackKey,p=M.yAxis.stacking.stacks,g=new RegExp(/navigator.\d*/gi);S=M.name.match(g)?M.chart.yAxis[1].options.max||100:M.chart.yAxis[M.options.yAxis||0].options.max||100,[x,"-"+x].forEach(function(r){for(var a,t,i,o,e=M.xData.length;e--;)a=M.xData[e],(i=(t=p[r]&&p[r][a])&&t.points[M.index])&&(o=t.total?100/t.total:0,i[0]=(0,B.correctFloat)(i[0]*o*((0,B.defined)(S)?S/100:1)),i[1]=(0,B.correctFloat)(i[1]*o*((0,B.defined)(S)?S/100:1)),M.stackedYData[e]=i[1])})},X.seriesTypes.area.prototype.getStackPoints=function(S){var M=this,x=[],p=[],g=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],t={},i=r.series,o=i.length,e=r.options.reversedStacks?1:-1,s=i.indexOf(M);if(S=S||this.points,this.options.stacking){for(var n=0;n<S.length;n++)S[n].leftNull=S[n].rightNull=void 0,t[S[n].x]=S[n];X.objectEach(a,function(b,k){b.total!==null&&p.push(k)}),p.sort(function(b,k){return b-k});var h=i.map(function(b){return b.visible});p.forEach(function(b,k){var D,d,C=0;if(t[b]&&!t[b].isNull)x.push(t[b]),[-1,1].forEach(function(z){var L=z===1?"rightNull":"leftNull",O=z===1?"rightCliff":"leftCliff",j=a[p[k+z]],Y=0;if(j)for(var H=s;H>=0&&H<o;){var W=i[H].index;(D=j.points[W])||(W===M.index?t[b][L]=!0:h[H]&&(d=a[b].points[W])&&(Y-=d[1]-d[0])),H+=e}t[b][O]=Y});else{for(var T=s;T>=0&&T<o;){var N=i[T].index;if(D=a[b].points[N]){C=D[1];break}T+=e}C=A(C,0),C=r.translate(C,0,1,0,1),x.push({isNull:!0,plotX:g.translate(b,0,0,0,1),x:b,plotY:C,yBottom:C,isDividerNull:t[b]&&t[b].isDividerNull})}})}return x},X.seriesTypes.areaspline.prototype.getStackPoints=X.seriesTypes.area.prototype.getStackPoints,X.seriesTypes.area.prototype.getGraphPath=function(S){var M,x,p,g=X.seriesTypes.line.prototype.getGraphPath,r=this.options,a=r.stacking,t=this.yAxis,i=[],o=[],e=this.index,s=t.stacking.stacks[this.stackKey],n=r.threshold,h=Math.round(t.getThreshold(r.threshold)),b=A(r.connectNulls,a==="percent"),k=function(W,q,tt){var J,nt,lt=S[W],gt=a&&s[lt.x].points[e],mt=lt[tt+"Null"]||0,bt=lt[tt+"Cliff"]||0,yt=!0;bt||mt?(J=(mt?gt[0]:gt[1])+bt,nt=gt[0]+bt,yt=!!mt):!a&&S[q]&&S[q].isNull&&(J=nt=n),J!==void 0&&(o.push({plotX:M,plotY:J===null?h:t.getThreshold(J),isNull:yt,isCliff:!0}),i.push({plotX:M,plotY:nt===null?h:t.getThreshold(nt),doCurve:!1}))};S=S||this.points,a&&(S=this.getStackPoints(S));for(var D=0,d=S.length;D<d;++D)if(a||(S[D].leftCliff=S[D].rightCliff=S[D].leftNull=S[D].rightNull=void 0),x=S[D].isNull,M=A(S[D].rectPlotX,S[D].plotX),p=a?A(S[D].yBottom,h):h,!x||b){var C=S[D-1],T=S[D+1],N=!S[D].isDividerNull&&C&&C.isDividerNull,z=!S[D].isDividerNull&&T&&T.isDividerNull;b&&!N||k(D,D-1,"left"),x&&!a&&b||(o.push(S[D]),i.push({x:D,plotX:M,plotY:p})),b&&!z||k(D,D+1,"right")}var L=g.call(this,o,!0,!0);i.reversed=!0;var O=g.call(this,i,!0,!0),j=O[0];j&&j[0]==="M"&&(O[0]=["L",j[1],j[2]]);var Y=L.concat(O);Y.length&&Y.push(["Z"]);var H=g.call(this,o,!1,b);return Y.xMap=L.xMap,this.areaPath=Y,H},X.seriesTypes.areaspline.prototype.getGraphPath=X.seriesTypes.area.prototype.getGraphPath,X.Series.prototype.pointAttribs=function(S,M){var x,p,g,r,a,t,i=this.options.marker,o=S&&S.options,e=o&&o.marker||{},s=this.color,n=o&&o.color,h=S&&S.color,b=A(e.lineWidth,i.lineWidth),k=S&&S.zone&&S.zone.color;return s=n||k||h||s,g=e.fillColor||i.fillColor||s,r=e.lineColor||i.lineColor||s,a=1,t=1,M&&(x=i.states[M],p=e.states&&e.states[M]||{},b=A(p.lineWidth,x.lineWidth,b+A(p.lineWidthPlus,x.lineWidthPlus,0)),g=p.fillColor||x.fillColor||g,r=p.lineColor||x.lineColor||r,a=p.fillOpacity||x.fillOpacity||1,t=p.fillOpacity||x.fillOpacity||1),{stroke:r,"stroke-width":b,"stroke-opacity":t,"fill-opacity":a,fill:g}},X.Point.prototype.setState=function(S,M){var x,p,g,r=this,a=Math.floor(r.plotX),t=r.plotY,i=r.series,o=i.options.states[S]||{},e=$[i.type].marker&&i.options.marker,s=e&&e.enabled===!1,n=e&&e.states&&e.states[S]||{},h=n.enabled===!1,b=i.stateMarkerGraphic,k=r.marker||{},D=i.chart,d=i.halo,C=e&&i.markerAttribs;if(!((S=S||"")===r.state&&!M||r.selected&&S!=="select"||o.enabled===!1||S&&(h||s&&n.enabled===!1)||S&&k.states&&k.states[S]&&k.states[S].enabled===!1)){if(C&&(p=i.markerAttribs(r,S)),r.graphic){r.state&&r.graphic.removeClass("highcharts-point-"+r.state),S&&r.graphic.addClass("highcharts-point-"+S);var T=r.innerBoxColor||i.color,N={fill:T,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(r.selected){var z=.3;N.fill=T,N["fill-opacity"]=z,N["stroke-opacity"]=z}S==="hover"&&(z=.9,N.fill=T,N["fill-opacity"]=z,N["stroke-opacity"]=z);var L={fill:T,"fill-opacity":1,stroke:V,"stroke-width":1},O=ht({},N),j=i.pointAttribs(r,S);r.graphic.attr(j),r.stem&&r.stem.attr({}),r.whiskers&&r.whiskers.attr({}),r.box&&(r.box.attr(O),r.box.attr("stroke",O.stroke),r.innerBox.attr(L)),r.medianShape&&r.medianShape.attr({}),p&&r.graphic.animate(p,A(D.options.chart.animation,n.animation,e.animation)),b&&b.hide()}else S&&n&&(g=k.symbol||i.symbol,b&&b.currentSymbol!==g&&(b=b.destroy()),b?b[M?"animate":"attr"]({x:p.x,y:p.y}):g&&(i.stateMarkerGraphic=b=D.renderer.symbol(g,p.x,p.y,p.width,p.height).add(i.markerGroup),b.currentSymbol=g),b&&b.attr(i.pointAttribs(r,S))),b&&(b[S&&D.isInsidePlot(a,t,D.inverted)?"show":"hide"](),b.element.point=r);(x=o.halo)&&x.size?(d||(i.halo=d=D.renderer.path().add((r.graphic||b).parentGroup)),d[M?"animate":"attr"]({d:r.haloPath(x.size)}),d.attr({class:"highcharts-halo highcharts-color-"+A(r.colorIndex,i.colorIndex)}),d.point=r,d.attr(F({fill:r.color||i.color,"fill-opacity":x.opacity,zIndex:-1},x.attributes))):d&&d.point&&d.point.haloPath&&d.animate({d:d.point.haloPath(0)}),r.state=S}},X.Point.prototype.applyOptions=function(S,M){var x=this,p=x.series,g=p.options.pointValKey||p.pointValKey;return S=y.prototype.optionsToObject.call(this,S),F(x,S),x.options=x.options?F(x.options,S):S,S.group&&delete x.group,g&&(x.y=x[g]),x.isNull=A(x.isValid&&!x.isValid(),x.x===null||x.y===null||!I(x.y,!0)),x.selected&&(x.state="select"),"name"in x&&M===void 0&&p.xAxis&&p.xAxis.hasNames&&(x.x=p.xAxis.nameToX(x)),x.x===void 0&&p&&(x.x=M===void 0?p.autoIncrement(x):M),x},X.seriesTypes.column.prototype.pointAttribs=function(S,M){var x,p,g,r,a,t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=S&&S.color||this.color,n=S[o]||t[o]||this.color||s,h=S[e]||t[e]||this[e]||0,b=t.dashStyle;return S&&this.zones.length&&(s=(r=S.getZone())&&r.color||S.options.color||this.color),M&&(a=(x=t.states[M]).brightness,p=x.fillOpacity,s=x.color||a!==void 0&&V(s).brighten(x.brightness).get()||s,p&&p!==1&&(s=V(s).setOpacity(p).get("rgba")),n=x[o]||n,h=x[e]||h,b=x.dashStyle||b),g={fill:s,stroke:n,"stroke-width":h},t.borderRadius&&(g.r=t.borderRadius),b&&(g.dashstyle=b),g},X.seriesTypes.scatter.prototype.pointAttribs=function(S,M){var x=M?this.options.marker.states[M]:this.options.marker,p=A(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,S,M);return p!==1&&(g.fill=V(g.fill).setOpacity(p).get("rgba")),g},X.seriesTypes.bubble.prototype.pointAttribs=function(S,M){var x=M?this.options.marker.states[M]:this.options.marker,p=A(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,S,M);return p!==1&&(g.fill=V(g.fill).setOpacity(p).get("rgba")),g},X.seriesTypes.boxplot.prototype.pointAttribs=function(S,M){var x=M?this.options.states[M]:this.options,p=A(x.fillOpacity,.5),g=S&&S.color||this.color,r=S.fillColor||x.fillColor||g;return p!==1&&(r=V(r).setOpacity(p).get("rgba")),{fill:r,stroke:x.lineColor||g,"stroke-width":x.lineWidth||0}},X.Pointer.prototype.onContainerClick=function(S){var M,x,p,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o=S.type;S=this.normalize(S),g.cancelClick||(r&&this.inClass(S.target,v+"tracker")?(M=this.chartPosition,x=r.plotX,p=r.plotY,F(r,{pageX:M.left+a+(i?g.plotWidth-p:x),pageY:M.top+t+(i?g.plotHeight-x:p)}),Z(r.series,o,F(S,{point:r})),g.hoverPoint&&r.firePointEvent(o,S)):(F(S,this.getCoordinates(S)),g.isInsidePlot(S.chartX-a,S.chartY-t)&&Z(g,"click",S)))},X.wrap(X.Pointer.prototype,"onContainerMouseLeave",function(S,M){this.selectionMarker&&(this.selectionMarker.destroy(),this.selectionMarker=null),this.chart.mouseIsDown=!1,S.call(this,M)}),X.Pointer.prototype.onContainerTapHold=function(S){var M,x,p,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o="contextmenu";(S=this.normalize(S)).hasTapHold=!0,g.cancelClick||r&&this.inClass(S.target,v+"tracker")&&(M=this.chartPosition,x=r.plotX,p=r.plotY,F(r,{pageX:M.left+a+(i?g.plotWidth-p:x),pageY:M.top+t+(i?g.plotHeight-x:p)}),Z(r.series,o,F(S,{point:r})),g.hoverPoint&&(S.type="taphold",S.point=r,S.target=g,r.firePointEvent(o,S)))},X.Pointer.prototype.setDOMEvents=function(){var S,M=this,x=M.chart.container;this.unbindContainerMouseLeave=function(){},this._events=S=[[x,"onmousedown","onContainerMouseDown"],[x,"onmousemove","onContainerMouseMove"],[x,"onclick","onContainerClick"],[x,"mouseleave","onContainerMouseLeave"],[x,"contextmenu","onContainerClick"],[x,"mousemove","onDocumentMouseMove"],[x,"mouseup","onDocumentMouseUp"]],m&&f&&S.push([x,"taphold","onContainerClick"]),m&&S.push([x,"ontouchmove","onContainerTouchMove"],[x,"ontouchstart","onContainerTouchStart"],[x,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),S.forEach(function(p){var g=ct(p,3),r=g[0],a=g[1],t=g[2];M["_"+t]=function(i){typeof M[p[2]]=="function"&&M[p[2]](i)},a.indexOf("on")===0?r[a]=M["_"+t]:r.addEventListener(a,M["_"+t])})},X.Navigator.prototype.updateNavigatorSeries=function(S){var M,x,p,g=this,r=g.chart,a=g.baseSeries,t=g.navigatorOptions.series,i={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0},o=g.series=(g.series||[]).filter(function(e){var s=e.baseSeries;return!(a.indexOf(s)<0&&(s&&(U(s,"updatedData",g.updatedDataHandler),delete s.navigatorSeries),e.destroy(),1))});a&&a.length&&a.forEach(function(e){var s=e.navigatorSeries,n=F({color:e.color},Array.isArray(t)?u.navigator.series:t);if(!s||g.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+a.length,M=e.options||{},p=M.navigatorOptions||{},x=E(M,i,n,p);var h=p.data||n.data;g.hasNavigatorData=g.hasNavigatorData||!!h,x.data=h||M.data&&M.data.slice(0),x.data=(0,G.default)(x.data),(x.data||[]).forEach(function(b){b&&b.marker&&b.marker.enabled&&(b.marker.enabled=!1)}),x.color=M.color,x.fillOpacity=M.fillOpacity,x.type!=="spline"&&x.type!=="areaspline"||(x.stacking=M.stacking),M.stacking!=="percent"&&M.stacking!=="normal"||(x.stacking=M.stacking,x.startFromThreshold=!1),s&&s.options?s.update(x,S):(e.navigatorSeries=r.initSeries(x),e.navigatorSeries.baseSeries=e,o.push(e.navigatorSeries))}}),(!t.data||a&&a.length)&&!Array.isArray(t)||(g.hasNavigatorData=!1,(t=X.splat(t)).forEach(function(e,s){i.name="Navigator "+(o.length+1),(x=E(u.navigator.series,{color:r.series[s]&&!r.series[s].options.isInternal&&r.series[s].color||r.options.colors[s]||r.options.colors[0]},i,e)).data=e.data,x.data&&(g.hasNavigatorData=!0,o.push(r.initSeries(x)))})),this.addBaseSeriesEvents()},X.seriesTypes.scatter.prototype.drawLegendSymbol=X.seriesTypes.column.prototype.drawLegendSymbol,(0,B.wrap)(X.Pointer.prototype,"runPointActions",function(S,M,x){var p,g=M,r=this.chart;S.call(this,M,x);var a=r.hoverPoint,t=r.hoverSeries;if(g&&r.hoverPoint&&(e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g)&&e.clientX&&e.clientY){for(var i=document.elementFromPoint(e.clientX,e.clientY);i&&!p;)p=i.point,i=i.parentNode;p&&r.hoverPoint!=p&&p.onMouseOver(g)}(0,B.defined)(a)||(0,B.defined)(t)||(0,_.default)(r,"sisenseTipper.status")!=="on"||!r.sisenseTipper.tipper||(r.sisenseTipper.tipper.deactivate(),(0,et.default)(r,"sisenseTipper.status","off"));var o=(0,_.default)(r,"sisenseTipper.chartType");if((0,_.default)(r,"sisenseTipper.status")!=="off"&&(0,_.default)(r,"sisenseTipper.tipper")&&(o==="pie"||o==="scatter"||o==="bubble"||g.type==="touchmove")){var e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g;r.sisenseTipper.tipper.activate({x:e.clientX,y:e.clientY,space:0})}}),(0,B.wrap)(X.Chart.prototype,"getContainer",function(S,M,x){S.call(this,M,x);var p,g=this;g.renderTo=p=g.container.parentElement,p.setAttribute("data-type",(0,_.default)(g,"options.chart.type"))}),(0,B.wrap)(X.Pointer.prototype,"normalize",function(S,M,x){return S.apply(this,[].slice.call(arguments,1)),x&&M.chartY<0&&(M.chartY=100),M}),(0,B.wrap)(X.Chart.prototype,"setChartSize",function(S){var M,x,p,g,r=this.legend,a=this.navigator;if(S.apply(this,[].slice.call(arguments,1)),a){if(x=r&&r.options,p=a.xAxis,g=a.yAxis,M=a.scrollbarHeight,this.inverted){var t=a.opposite?this.chartWidth-M-a.height:this.spacing[3]+M,i=this.plotTop+M;x.align==="left"&&r.legendWidth&&(t+=r.legendWidth),a.left=a.navigatorOptions.left||t,a.top=a.navigatorOptions.top||i}p&&g&&(this.inverted?p.options.left=g.options.left=a.left:p.options.top=g.options.top=a.top,p.setAxisSize(),g.setAxisSize())}}),(0,B.wrap)(X.Chart.prototype,"renderLabels",function(S){var M,x,p,g=this;if(S.apply(this,[].slice.call(arguments,1)),g&&g.polar&&g.userOptions&&((M=g.userOptions)===null||M===void 0?void 0:M.labels)&&((p=(x=g.userOptions.labels)===null||x===void 0?void 0:x.items)===null||p===void 0?void 0:p.length)){var r=void 0,a=g.userOptions.labels.items[0].html,t=pt([],ct(g.container.querySelectorAll("text")),!1).find(function(b){return b.innerHTML.includes(a)}),i=g.containerWidth,o=t.clientWidth,e=t.getBBox(),s=e.height?e.height:20,n=i/2-o/2,h=void 0;g.legend.options.verticalAlign==="top"?(r=g.legend.legendHeight+20+s)>g.plotTop&&(h=20+s,r=g.legend.legendHeight+h/2+10,g.legend.update({margin:h},!0)):(r=20)>g.plotTop&&(h=20+s,r=10+s,g.update({chart:{marginTop:h}},!0)),t.setAttribute("x",n),t.setAttribute("y",r)}}),X.wrap(X.SVGElement.prototype,"titleSetter",function(S,M){var x,p,g=this.element.getElementsByTagName("title")[0];g||(g=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(g)),g.firstChild&&g.removeChild(g.firstChild),g.appendChild(document.createTextNode((x=this.renderer.escapes,p=M,X.objectEach(x,function(r,a){p=p.replace(new RegExp(r,"g"),a)}),p)))}),(0,B.wrap)(X.Chart.prototype,"renderLabels",function(S){S.apply(this,[].slice.call(arguments,1)),this.chartBackground.addClass("widget-body")}),(0,B.wrap)(X.Legend.prototype,"renderItem",function(S,M){var x=this,p=x.options,g=M.legendItem,r=M.series&&M.series.drawLegendSymbol?M.series:M,a=p.useHTML;S.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&M.legendItem.group.element.addEventListener("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return M.firePointEvent?M.firePointEvent(i,o,null):Z(r,i,o,null),!1}),(a?g:M.legendItem.group).on("mouseover",function(){var t;M.setState("hover"),g&&((t=g.css)===null||t===void 0||t.call(g,x.options.itemHoverStyle))}).on("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return M.firePointEvent?M.firePointEvent(i,o,null):Z(r,i,o,null),!1})}),(0,B.wrap)(X.Navigator.prototype,"shadesMousedown",function(S){this.chart.pointer&&(this.chart.pointer.chartPosition=null),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.Navigator.prototype,"handlesMousedown",function(S){this.chart.pointer&&(this.chart.pointer.chartPosition=null),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.StackItem.prototype,"render",function(S){var M=this.options,x=(0,_.default)(this,"axis.chart.options.chart.type");if(this.alignOptions&&this.total!==void 0&&(x==="column"||x==="bar"&&Math.abs(M.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),S.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var p=this.label.getBBox(!0,0),g=this.label.getBBox(),r=-Math.sign(this.total),a=0,t=0;if(x==="column"?(this.total<0||Math.abs(M.rotation)===90?a=g.height/2*r:Math.abs(M.rotation)===45&&this.total>0&&(a=-p.width/2*Math.sin(45*Math.PI/180)),Math.abs(M.rotation)===45&&(t+=-g.width/4*r),Math.abs(M.rotation)===90&&(t+=p.height/4),a+=5*r):x==="bar"&&Math.abs(M.rotation)===90&&(a=-g.height/2*r,this.total>=0&&(t+=p.height/2),t+=-5*r),this.label.translate(t,a),this.label&&!this.label.labelrank){var i=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+M.labelrank+i}}}),X.wrap(X,"fireEvent",function(S,M,x,p){var g=new Event(x),r=(0,_.default)(p,"changedTouches"),a=(0,_.default)(p,"point.graphic.element");F(g,p),r&&(g.clientX=(0,_.default)(r,"0.clientX"),g.clientY=(0,_.default)(r,"0.clientY"),g.target=a),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.Point.prototype,"getLabelConfig",function(S){var M=S.apply(this,[].slice.call(arguments,1));return this.originalY&&(M.y=this.originalY),M}),(0,B.wrap)(X.seriesTypes.column.prototype,"alignDataLabel",function(S,M,x,p){var g=M.series.options.stacking,r=this.chart.inverted,a=p.rotation,t=M.y<0&&M.dataLabel,i=M.dlBox,o=M.dataLabel.getBBox();if(!g&&t){M.below=!0;var e=E(M.dlBox||M.shapeArgs),s=r?o.width:o.height;e.y+=s,M.dlBox=e}else g&&(p.align="center");!g&&a&&(o=M.dataLabel.getBBox(),r?p.x+=.5*o.width:t&&Math.abs(a)%360==45&&(p.x=.5*-o.width));var n=S.apply(this,[].slice.call(arguments,1));return M.dlBox=i,n}),X.Scroller=X.Navigator}},3269:(it,rt,st)=>{st.d(rt,{A:()=>U});const ht=(0,st(123).A)(Object,"create");var ct=Object.prototype.hasOwnProperty,pt=Object.prototype.hasOwnProperty;function ft($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var F=$[Z];this.set(F[0],F[1])}}ft.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},ft.prototype.delete=function($){var Z=this.has($)&&delete this.__data__[$];return this.size-=Z?1:0,Z},ft.prototype.get=function($){var Z=this.__data__;if(ht){var V=Z[$];return V==="__lodash_hash_undefined__"?void 0:V}return ct.call(Z,$)?Z[$]:void 0},ft.prototype.has=function($){var Z=this.__data__;return ht?Z[$]!==void 0:pt.call(Z,$)},ft.prototype.set=function($,Z){var V=this.__data__;return this.size+=this.has($)?0:1,V[$]=ht&&Z===void 0?"__lodash_hash_undefined__":Z,this};const _=ft;var et=st(6096),G=st(5436);const B=function($,Z){var V,F,I=$.__data__;return((F=typeof(V=Z))=="string"||F=="number"||F=="symbol"||F=="boolean"?V!=="__proto__":V===null)?I[typeof Z=="string"?"string":"hash"]:I.map};function X($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var F=$[Z];this.set(F[0],F[1])}}X.prototype.clear=function(){this.size=0,this.__data__={hash:new _,map:new(G.A||et.A),string:new _}},X.prototype.delete=function($){var Z=B(this,$).delete($);return this.size-=Z?1:0,Z},X.prototype.get=function($){return B(this,$).get($)},X.prototype.has=function($){return B(this,$).has($)},X.prototype.set=function($,Z){var V=B(this,$),F=V.size;return V.set($,Z),this.size+=V.size==F?0:1,this};const U=X},3516:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=st(9600).A.Symbol},3966:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(368));rt.default=ct.default},4044:(it,rt,st)=>{st.d(rt,{A:()=>B});var ht=st(3516),ct=Object.prototype,pt=ct.hasOwnProperty,ft=ct.toString,_=ht.A?ht.A.toStringTag:void 0,et=Object.prototype.toString,G=ht.A?ht.A.toStringTag:void 0;const B=function(X){return X==null?X===void 0?"[object Undefined]":"[object Null]":G&&G in Object(X)?function(U){var $=pt.call(U,_),Z=U[_];try{U[_]=void 0;var V=!0}catch(I){}var F=ft.call(U);return V&&($?U[_]=Z:delete U[_]),F}(X):function(U){return et.call(U)}(X)}},4089:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7313);const pt=function(ft){return typeof ft=="symbol"||(0,ct.A)(ft)&&(0,ht.A)(ft)=="[object Symbol]"}},4441:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>et});var ht=st(6124),ct=st(5118),pt=st(5378),ft=st(7942),_=st(9322);const et=function(G,B,X){return G==null?G:function(U,$,Z,V){if(!(0,ft.A)(U))return U;for(var F=-1,I=($=(0,ct.A)($,U)).length,E=I-1,A=U;A!=null&&++F<I;){var P=(0,_.A)($[F]),y=Z;if(P==="__proto__"||P==="constructor"||P==="prototype")return U;if(F!=E){var c=A[P];(y=void 0)==void 0&&(y=(0,ft.A)(c)?c:(0,pt.A)($[F+1])?[]:{})}(0,ht.A)(A,P,y),A=A[P]}return U}(G,B,X)}},4459:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Extensions/Breadcrumbs.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/FormatUtilities.js"]],function(G,B,X,U,$){var Z=B.defaultOptions,V=$.format,F=U.addEvent,I=U.objectEach,E=U.extend,A=U.fireEvent,P=U.merge,y=U.pick,c=U.defined,f=U.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,S){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var M=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,S);this.chart=v,this.options=M||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var S=this.chart,M=this.options,x=S.options.lang,p=y(M.format,M.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=M.formatter&&M.formatter(v)||V(p,{level:v.levelOptions},S)||"";return(f(r)&&!r.length||r==="← ")&&c(g)&&(r=M.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,S=v.chart,M=v.options;!v.group&&M&&(v.group=S.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:M.zIndex}).add()),M.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,S=v.chart,M=v.list,x=v.options.buttonSpacing;this.destroyListElements();var p=v.group?v.group.getBBox().width:x,g=x,r=M[M.length-2];!S.drillUpButton&&this.level>0?S.drillUpButton=v.renderButton(r,p,g):S.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var S=this;if(S.group){var M=S.options,x=M.buttonTheme,p=M.position,g=M.relativeTo==="chart"||M.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=S.group.getBBox(),a=2*(x.padding||0)+M.buttonSpacing;p.width=r.width+a,p.height=r.height+a;var t=P(p);v&&(t.x+=v),S.options.rtl&&(t.x+=p.width),t.y=y(t.y,this.yOffset,0),S.group.align(t,!0,g)}},u.prototype.renderButton=function(v,S,M){var x=this,p=this.chart,g=x.options,r=P(g.buttonTheme),a=p.renderer.button(x.getButtonText(v),S,M,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,A(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return p.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,S){var M=this.chart,x=this.options.separator,p=M.renderer.label(x.text,v,S,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return M.styledMode||p.css(x.style),p},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,S=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(S)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var S=this.elementList;I(S,function(M,x){!v&&S[x].updated||((M=S[x]).button&&M.button.destroy(),M.separator&&M.separator.destroy(),delete M.button,delete M.separator,delete S[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,S=this,M=S.elementList,x=S.options.buttonSpacing,p=S.list,g=S.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=S.group?a(S.group,x):x,o=x;p.forEach(function(e,s){var n,h,b=s===p.length-1;M[e.level]?(n=(v=M[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=S.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),M[e.level].updated=!0):(n=S.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(h=S.renderSeparator(i,o),g&&t(h,i,o),i+=a(h,x)),M[e.level]={button:n,separator:h,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return X.Breadcrumbs||(X.Breadcrumbs=m,F(G,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,S=v.buttonTheme,M=(S.height||0)+2*(S.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+M,u.yOffset=M):x!=="middle"?(this.plotTop+=M,u.yOffset=-M):u.yOffset=void 0}}),F(G,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),F(G,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),F(G,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),S=u.breadcrumbs.options;v&&S.position.align==="right"&&S.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-S.buttonSpacing)}}),F(G,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),et(_,"Extensions/Drilldown.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"],_["Extensions/Breadcrumbs.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P,y,c){var f=G.animObject,m=Z.noop,u=V.defaultOptions,v=E.seriesTypes,S=y.addEvent,M=y.removeEvent,x=y.extend,p=y.fireEvent,g=y.merge,r=y.objectEach,a=y.pick,t=y.syncTimeout,i=v.pie,o=1;x(u.lang,{}),u.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}},A.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:a(this.newOpacity,1)},b||{duration:250})},X.prototype.addSeriesAsDrilldown=function(b,k){this.addSingleSeriesAsDrilldown(b,k),this.applyDrilldown()},X.prototype.addSingleSeriesAsDrilldown=function(b,k){var D,d,C,T,N,z,L=b.series,O=L.xAxis,j=L.yAxis,Y=[],H=[];z=this.styledMode?{colorIndex:a(b.colorIndex,L.colorIndex)}:{color:b.color||L.color},this.drilldownLevels||(this.drilldownLevels=[]),T=L.options._levelNumber||0,(N=this.drilldownLevels[this.drilldownLevels.length-1])&&N.levelNumber!==T&&(N=void 0),k=x(x({_ddSeriesId:o++},z),k),d=L.points.indexOf(b),L.chart.series.forEach(function(W){W.xAxis!==O||W.isDrilling||(W.options._ddSeriesId=W.options._ddSeriesId||o++,W.options._colorIndex=W.userOptions._colorIndex,W.options._levelNumber=W.options._levelNumber||T,N?(Y=N.levelSeries,H=N.levelSeriesOptions):(Y.push(W),W.purgedOptions=g({_ddSeriesId:W.options._ddSeriesId,_levelNumber:W.options._levelNumber,selected:W.options.selected},W.userOptions),H.push(W.purgedOptions)))}),C=x({levelNumber:T,seriesOptions:L.options,seriesPurgedOptions:L.purgedOptions,levelSeriesOptions:H,levelSeries:Y,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?U.parse(z.color).setOpacity(0).get():z.color,lowerSeriesOptions:k,pointOptions:L.options.data[d],pointIndex:d,oldExtremes:{xMin:O&&O.userMin,xMax:O&&O.userMax,yMin:j&&j.userMin,yMax:j&&j.userMax},resetZoomButton:N&&N.levelNumber===T?void 0:this.resetZoomButton},z),this.drilldownLevels.push(C),O&&O.names&&(O.names.length=0),(D=C.lowerSeries=this.addSeries(k,!1)).options._levelNumber=T+1,O&&(O.oldPos=O.pos,O.userMin=O.userMax=null,j.userMin=j.userMax=null),L.type===D.type&&(D.animate=D.animateDrilldown||m,D.options.animation=!0)},X.prototype.applyDrilldown=function(){var b,k=this.drilldownLevels;k&&k.length>0&&(b=k[k.length-1].levelNumber,this.drilldownLevels.forEach(function(D){D.levelNumber===b&&D.levelSeries.forEach(function(d){d.options&&d.options._levelNumber===b&&d.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),p(this,"afterDrilldown"),this.redraw(),p(this,"afterApplyDrilldown")};var e=function(b){var k=[],D=b.drilldownLevels;return D&&D.length&&(k[0]||k.push({level:0,levelOptions:D[0].seriesOptions}),D.forEach(function(d,C){var T=k[k.length-1];d.levelNumber+1>T.level&&k.push({level:d.levelNumber+1,levelOptions:g({name:d.lowerSeries.name},d.pointOptions)})})),k};function s(b){var k=f(this.chart.options.drilldown.animation);b&&(b.hide(),t(function(){b&&b.added&&b.fadeIn()},Math.max(k.duration-50,0)))}X.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){p(this,"beforeDrillUp");for(var b,k,D,d,C,T=this,N=T.drilldownLevels,z=N[N.length-1].levelNumber,L=N.length,O=T.series,j=function(H){var W;O.forEach(function(q){q.options._ddSeriesId===H._ddSeriesId&&(W=q)}),(W=W||T.addSeries(H,!1)).type===D.type&&W.animateDrillupTo&&(W.animate=W.animateDrillupTo),H===k.seriesPurgedOptions&&(d=W)},Y=T.drilldownLevels.length;L--;)if((k=N[L]).levelNumber===z){if(N.pop(),!(D=k.lowerSeries).chart){for(b=O.length;b--;)if(O[b].options.id===k.lowerSeriesOptions.id&&O[b].options._levelNumber===z+1){D=O[b];break}}D.xData=[],D.xAxis&&D.xAxis.names&&(Y===0||L===Y)&&(D.xAxis.names.length=0),k.levelSeriesOptions.forEach(j),p(T,"drillup",{seriesOptions:k.seriesPurgedOptions||k.seriesOptions}),d.type===D.type&&(d.drilldownLevel=k,d.options.animation=T.options.drilldown.animation,D.animateDrillupFrom&&D.chart&&D.animateDrillupFrom(k)),d.options._levelNumber=z,D.remove(!1),d.xAxis&&(C=k.oldExtremes,d.xAxis.setExtremes(C.xMin,C.xMax,!1),d.yAxis.setExtremes(C.yMin,C.yMax,!1)),k.resetZoomButton&&(T.resetZoomButton=k.resetZoomButton)}p(T,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),p(T,"drillupall")}},S(X,"afterInit",function(){var b=this;b.drilldown={chart:b,fadeInGroup:s,update:function(k,D){g(!0,b.options.drilldown,k),a(D,!0)&&b.redraw()}}}),S(X,"render",function(){(this.xAxis||[]).forEach(function(b){b.ddPoints={},b.series.forEach(function(k){var D,d,C=k.xData||[],T=k.points;for(D=0;D<C.length;D++)if(typeof(d=k.options.data[D])!="number"&&(d=k.pointClass.prototype.optionsToObject.call({series:k},d)).drilldown){b.ddPoints[C[D]]||(b.ddPoints[C[D]]=[]);var N=D-(k.cropStart||0);b.ddPoints[C[D]].push(!(T&&N>=0&&N<T.length)||T[N])}}),r(b.ticks,P.prototype.drillable)})}),S(Z.Breadcrumbs,"up",function(b){for(var k=this.chart,D=this.getLevel()-b.newLevel,d=0;d<D;d++)k.drillUp()}),S(X,"afterDrilldown",function(){var b=this,k=b.options.drilldown,D=k&&k.breadcrumbs;b.breadcrumbs||(b.breadcrumbs=new c(b,D)),b.breadcrumbs.updateProperties(e(b))}),S(X,"afterDrillUp",function(){var b=this;b.breadcrumbs&&b.breadcrumbs.updateProperties(e(b))}),S(X,"update",function(b){var k=this.breadcrumbs,D=b.options.drilldown&&b.options.drilldown.breadcrumbs;k&&D&&k.update(b.options.drilldown.breadcrumbs)}),$.prototype.animateDrillupTo=function(b){if(!b){var k=this,D=k.drilldownLevel;this.points.forEach(function(d){var C=d.dataLabel;d.graphic&&d.graphic.hide(),C&&(C.hidden=C.attr("visibility")==="hidden",C.hidden||(C.hide(),d.connector&&d.connector.hide()))}),t(function(){if(k.points){var d=[];k.data.forEach(function(C){d.push(C)}),k.nodes&&(d=d.concat(k.nodes)),d.forEach(function(C,T){var N=T===(D&&D.pointIndex)?"show":"fadeIn",z=N==="show"||void 0,L=C.dataLabel;C.graphic&&C.graphic[N](z),L&&!L.hidden&&(L.fadeIn(),C.connector&&C.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},$.prototype.animateDrilldown=function(b){var k,D=this,d=this.chart,C=d.drilldownLevels,T=f(d.options.drilldown.animation),N=this.xAxis,z=d.styledMode;b||(C.forEach(function(L){D.options._ddSeriesId===L.lowerSeriesOptions._ddSeriesId&&(k=L.shapeArgs,z||(k.fill=L.color))}),k.x+=a(N.oldPos,N.pos)-N.pos,this.points.forEach(function(L){var O=L.shapeArgs;z||(O.fill=L.color),L.graphic&&L.graphic.attr(k).animate(x(L.shapeArgs,{fill:L.color||D.color}),T)}),d.drilldown&&d.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},$.prototype.animateDrillupFrom=function(b){var k=f(this.chart.options.drilldown.animation),D=this.group,d=D!==this.chart.columnGroup,C=this;C.trackerGroups.forEach(function(T){C[T]&&C[T].on("mouseover")}),d&&delete this.group,this.points.forEach(function(T){var N=T.graphic,z=b.shapeArgs,L=function(){N.destroy(),D&&d&&(D=D.destroy())};N&&z&&(delete T.graphic,C.chart.styledMode||(z.fill=b.color),k.duration?N.animate(z,g(k,{complete:L})):(N.attr(z),L()))})},i&&x(i.prototype,{animateDrillupTo:$.prototype.animateDrillupTo,animateDrillupFrom:$.prototype.animateDrillupFrom,animateDrilldown:function(b){var k=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],D=this.chart.options.drilldown.animation;if(this.is("item")&&(D.duration=0),this.center){var d=k.shapeArgs,C=d.start,T=(d.end-C)/this.points.length,N=this.chart.styledMode;b||(this.points.forEach(function(z,L){var O=z.shapeArgs;N||(d.fill=k.color,O.fill=z.color),z.graphic&&z.graphic.attr(g(d,{start:C+L*T,end:C+(L+1)*T}))[D?"animate":"attr"](O,D)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),F.prototype.doDrilldown=function(){this.runDrilldown()},F.prototype.runDrilldown=function(b,k,D){var d,C=this.series.chart,T=C.options.drilldown,N=(T.series||[]).length;for(C.ddDupes||(C.ddDupes=[]);N--&&!d;)T.series[N].id===this.drilldown&&C.ddDupes.indexOf(this.drilldown)===-1&&(d=T.series[N],C.ddDupes.push(this.drilldown));p(C,"drilldown",{point:this,seriesOptions:d,category:k,originalEvent:D,points:k!==void 0&&this.series.xAxis.getDDPoints(k).slice(0)},function(z){var L=z.point.series&&z.point.series.chart,O=z.seriesOptions;L&&O&&(b?L.addSingleSeriesAsDrilldown(z.point,O):L.addSeriesAsDrilldown(z.point,O))})},B.prototype.drilldownCategory=function(b,k){this.getDDPoints(b).forEach(function(D){D&&D.series&&D.series.visible&&D.runDrilldown&&D.runDrilldown(!0,b,k)}),this.chart.applyDrilldown()},B.prototype.getDDPoints=function(b){return this.ddPoints&&this.ddPoints[b]||[]},P.prototype.drillable=function(){var b=this.pos,k=this.label,D=this.axis,d=D.coll==="xAxis"&&D.getDDPoints,C=d&&D.getDDPoints(b),T=D.chart.styledMode;d&&(k&&C&&C.length?(k.drillable=!0,k.basicStyles||T||(k.basicStyles=g(k.styles)),k.addClass("highcharts-drilldown-axis-label"),k.removeOnDrillableClick&&M(k.element,"click"),k.removeOnDrillableClick=S(k.element,"click",function(N){N.preventDefault(),D.drilldownCategory(b,N)}),T||k.css(D.chart.options.drilldown.activeAxisLabelStyle)):k&&k.drillable&&k.removeOnDrillableClick&&(T||(k.styles={},k.element.removeAttribute("style"),k.css(k.basicStyles)),k.removeOnDrillableClick(),k.removeClass("highcharts-drilldown-axis-label")))},S(F,"afterInit",function(){var b=this;return b.drilldown&&!b.unbindDrilldownClick&&(b.unbindDrilldownClick=S(b,"click",n)),b}),S(F,"update",function(b){var k=this,D=b.options||{};D.drilldown&&!k.unbindDrilldownClick?k.unbindDrilldownClick=S(k,"click",n):!D.drilldown&&D.drilldown!==void 0&&k.unbindDrilldownClick&&(k.unbindDrilldownClick=k.unbindDrilldownClick())});var n=function(b){var k=this,D=k.series;D.xAxis&&D.chart.options.drilldown.allowPointDrilldown===!1?D.xAxis.drilldownCategory(k.x,b):k.runDrilldown(void 0,void 0,b)};S(I,"afterDrawDataLabels",function(){var b=this.chart.options.drilldown.activeDataLabelStyle,k=this.chart.renderer,D=this.chart.styledMode;this.points.forEach(function(d){var C=d.options.dataLabels,T=a(d.dlOptions,C&&C.style,{});d.drilldown&&d.dataLabel&&(b.color!=="contrast"||D||(T.color=k.getContrast(d.color||this.color)),C&&C.color&&(T.color=C.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),D||d.dataLabel.css(b).css(T))},this)});var h=function(b,k,D,d){b[D?"addClass":"removeClass"]("highcharts-drilldown-point"),d||b.css({cursor:k})};S(I,"afterDrawTracker",function(){var b=this.chart.styledMode;this.points.forEach(function(k){k.drilldown&&k.graphic&&h(k.graphic,"pointer",!0,b)})}),S(F,"afterSetState",function(){var b=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?h(this.series.halo,"pointer",!0,b):this.series.halo&&h(this.series.halo,"auto",!1,b)}),S(X,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),S(X,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),et(_,"masters/modules/drilldown.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},4501:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ht});const ht=function(ct){return ct===void 0}},4608:function(it,rt,st){var ht=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5134)),pt=ht(st(1039)),ft=ht(st(6725)),_=ht(st(6660)),et=ht(st(4459)),G=ht(st(2060)),B=ht(st(6236)),X=ht(st(6512)),U=ht(st(5098)),$=ht(st(4812)),Z=ht(st(2397)),V=ht(st(50)),F=ht(st(5322)),I=ht(st(2)),E=ht(st(362)),A=ht(st(3039)),P=ht(st(3966));(0,ft.default)(ct.default),(0,pt.default)(ct.default),(0,_.default)(ct.default),(0,et.default)(ct.default),(0,G.default)(ct.default),(0,B.default)(ct.default),(0,X.default)(ct.default),(0,$.default)(ct.default),(0,U.default)(ct.default),(0,F.default)(ct.default),(0,I.default)(ct.default),(0,E.default)(ct.default),(0,A.default)(ct.default),(0,Z.default)(ct.default),(0,V.default)(ct.default),ct.default.setOptions(P.default),rt.default=ct.default},4783:function(it,rt,st){var ht,ct,pt;ct=typeof window!="undefined"?window:this,pt=function(ft){function _(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}var et={};return _(et,"Core/Globals.js",[],function(){var G;return function(B){B.SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="10.3.3",B.win=ft!==void 0?ft:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.userAgent.indexOf("Chrome")!==-1,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&4>parseInt(B.userAgent.split("Firefox/")[1],10),B.hasTouch=!!B.win.TouchEvent,B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){var X=!1;if(!B.isMS){var U=Object.defineProperty({},"passive",{get:function(){X=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,U),B.win.removeEventListener("testPassive",B.noop,U))}return X}(),B.charts=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0}(G||(G={})),G}),_(et,"Core/Utilities.js",[et["Core/Globals.js"]],function(G){function B(t,i,o,e){var s=i?"Highcharts error":"Highcharts warning";t===32&&(t=s+": Deprecated member");var n=I(t),h=n?s+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(e!==void 0){var b="";n&&(h+="?"),u(e,function(k,D){b+=`
|
|
2
|
+
- `.concat(D,": ").concat(k),n&&(h+=encodeURI(D)+"="+encodeURI(k))}),h+=b}S(G,"displayError",{chart:o,code:t,message:h,params:e},function(){if(i)throw Error(h);p.console&&B.messages.indexOf(h)===-1&&console.warn(h)}),B.messages.push(h)}function X(t,i){return parseInt(t,i||10)}function U(t){return typeof t=="string"}function $(t){return(t=Object.prototype.toString.call(t))==="[object Array]"||t==="[object Array Iterator]"}function Z(t,i){return!(!t||typeof t!="object"||i&&$(t))}function V(t){return Z(t)&&typeof t.nodeType=="number"}function F(t){var i=t&&t.constructor;return!(!Z(t,!0)||V(t)||!i||!i.name||i.name==="Object")}function I(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function E(t){return t!=null}function A(t,i,o){var e,s=U(i)&&!E(o),n=function(h,b){E(h)?t.setAttribute(b,h):s?(e=t.getAttribute(b))||b!=="class"||(e=t.getAttribute(b+"Name")):t.removeAttribute(b)};return U(i)?n(o,i):u(i,n),e}function P(t,i){var o;for(o in t||(t={}),i)t[o]=i[o];return t}function y(){for(var t=arguments,i=t.length,o=0;o<i;o++){var e=t[o];if(e!=null)return e}}function c(t,i){G.isMS&&!G.svg&&i&&E(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),P(t.style,i)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function m(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function u(t,i,o){for(var e in t)Object.hasOwnProperty.call(t,e)&&i.call(o||t[e],t[e],e,t)}function v(t,i,o){function e(b,k){var D=t.removeEventListener||G.removeEventListenerPolyfill;D&&D.call(t,b,k,!1)}function s(b){var k;if(t.nodeName){if(i){var D={};D[i]=!0}else D=b;u(D,function(d,C){if(b[C])for(k=b[C].length;k--;)e(C,b[C][k].fn)})}}var n=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var h=n.hcEvents;i?(n=h[i]||[],o?(h[i]=n.filter(function(b){return o!==b.fn}),e(i,o)):(s(h),h[i]=[])):(s(h),delete n.hcEvents)}}function S(t,i,o,e){if(o=o||{},x.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==G)){var s=x.createEvent("Events");s.initEvent(i,!0,!0),o=P(s,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(i,o)}else if(t.hcEvents){o.target||P(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:i}),s=[];for(var n=t,h=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(s.length&&(h=!0),s.unshift.apply(s,n.hcEvents[i])),n=Object.getPrototypeOf(n);h&&s.sort(function(b,k){return b.order-k.order}),s.forEach(function(b){b.fn.call(t,o)===!1&&o.preventDefault()})}e&&!o.defaultPrevented&&e.call(t,o)}var M=G.charts,x=G.doc,p=G.win;(B||(B={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var g=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var o,e=t.length;for(o=0;o<e;o++)if(i(t[o],o))return t[o]};u({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){G[i]=function(o){var e;return B(32,!1,void 0,((e={})["Highcharts.".concat(i)]="use Array.".concat(t),e)),Array.prototype[t].apply(o,[].slice.call(arguments,1))}});var r,a=function(){var t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(r?"":t)+i++}}();return p.jQuery,g={addEvent:function(t,i,o,e){e===void 0&&(e={});var s=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={}),s=s.hcEvents,G.Point&&t instanceof G.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var n=t.addEventListener||G.addEventListenerPolyfill;return n&&n.call(t,i,o,!!G.supportsPassiveEvents&&{passive:e.passive===void 0?i.indexOf("touch")!==-1:e.passive,capture:!1}),s[i]||(s[i]=[]),s[i].push({fn:o,order:typeof e.order=="number"?e.order:1/0}),s[i].sort(function(h,b){return h.order-b.order}),function(){v(t,i,o)}},arrayMax:function(t){for(var i=t.length,o=t[0];i--;)t[i]>o&&(o=t[i]);return o},arrayMin:function(t){for(var i=t.length,o=t[0];i--;)t[i]<o&&(o=t[i]);return o},attr:A,clamp:function(t,i,o){return t>i?t<o?t:o:i},cleanRecursively:function t(i,o){var e={};return u(i,function(s,n){Z(i[n],!0)&&!i.nodeType&&o[n]?(s=t(i[n],o[n]),Object.keys(s).length&&(e[n]=s)):(Z(i[n])||i[n]!==o[n]||n in i&&!(n in o))&&(e[n]=i[n])}),e},clearTimeout:function(t){E(t)&&clearTimeout(t)},correctFloat:m,createElement:function(t,i,o,e,s){return t=x.createElement(t),i&&P(t,i),s&&c(t,{padding:"0",border:"none",margin:"0"}),o&&c(t,o),e&&e.appendChild(t),t},css:c,defined:E,destroyObjectProperties:function(t,i){u(t,function(o,e){o&&o!==i&&o.destroy&&o.destroy(),delete t[e]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){for(var o=t.length;o--;)if(t[o]===i){t.splice(o,1);break}},error:B,extend:P,extendClass:function(t,i){var o=function(){};return P(o.prototype=new t,i),o},find:g,fireEvent:S,getMagnitude:f,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&E(i);){var o=t.shift();if(o===void 0||o==="__proto__"||!E(i=i[o])||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:function t(i,o,e){var s=G.getStyle||t;if(o==="width")return o=Math.min(i.offsetWidth,i.scrollWidth),(e=i.getBoundingClientRect&&i.getBoundingClientRect().width)<o&&e>=o-1&&(o=Math.floor(e)),Math.max(0,o-(s(i,"padding-left",!0)||0)-(s(i,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(s(i,"padding-top",!0)||0)-(s(i,"padding-bottom",!0)||0));if(p.getComputedStyle||B(27,!0),i=p.getComputedStyle(i,void 0)){var n=i.getPropertyValue(o);y(e,o!=="opacity")&&(n=X(n))}return n},inArray:function(t,i,o){return B(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:$,isClass:F,isDOMElement:V,isFunction:function(t){return typeof t=="function"},isNumber:I,isObject:Z,isString:U,keys:function(t){return B(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,i=arguments,o={},e=function(n,h){return typeof n!="object"&&(n={}),u(h,function(b,k){k!=="__proto__"&&k!=="constructor"&&(!Z(b,!0)||F(b)||V(b)?n[k]=h[k]:n[k]=e(n[k]||{},b))}),n};i[0]===!0&&(o=i[1],i=Array.prototype.slice.call(i,2));var s=i.length;for(t=0;t<s;t++)o=e(o,i[t]);return o},normalizeTickInterval:function(t,i,o,e,s){var n=t,h=t/(o=y(o,f(t)));for(i||(i=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],e===!1&&(o===1?i=i.filter(function(b){return b%1==0}):.1>=o&&(i=[1/o]))),e=0;e<i.length&&(n=i[e],!(s&&n*o>=t||!s&&h<=(i[e]+(i[e+1]||i[e]))/2));e++);return m(n*o,-Math.round(Math.log(.001)/Math.LN10))},objectEach:u,offset:function(t){var i=x.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(p.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(p.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,o){return Array((i||2)+1-String(t).replace("-","").length).join(o||"0")+t},pick:y,pInt:X,relativeLength:function(t,i,o){return/%$/.test(t)?i*parseFloat(t)/100+(o||0):parseFloat(t)},removeEvent:v,splat:function(t){return $(t)?t:[t]},stableSort:function(t,i){var o,e,s=t.length;for(e=0;e<s;e++)t[e].safeI=e;for(t.sort(function(n,h){return(o=i(n,h))===0?n.safeI-h.safeI:o}),e=0;e<s;e++)delete t[e].safeI},syncTimeout:function(t,i,o){return 0<i?setTimeout(t,i,o):(t.call(0,o),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:a,useSerialIds:function(t){return r=y(t,r)},wrap:function(t,i,o){var e=t[i];t[i]=function(){var s=arguments,n=this;return o.apply(this,[function(){return e.apply(n,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},g}),_(et,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),_(et,"Core/Color/Color.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var X=B.isNumber,U=B.merge,$=B.pInt;return B=function(){function Z(V){this.rgba=[NaN,NaN,NaN,NaN],this.input=V;var F=G.Color;return F&&F!==Z?new F(V):this instanceof Z?void this.init(V):new Z(V)}return Z.parse=function(V){return V?new Z(V):Z.None},Z.prototype.init=function(V){var F;if(typeof V=="object"&&V.stops!==void 0)this.stops=V.stops.map(function(P){return new Z(P[1])});else if(typeof V=="string"){if(this.input=V=Z.names[V.toLowerCase()]||V,V.charAt(0)==="#"){var I=V.length,E=parseInt(V.substr(1),16);I===7?F=[(16711680&E)>>16,(65280&E)>>8,255&E,1]:I===4&&(F=[(3840&E)>>4|(3840&E)>>8,(240&E)>>4|240&E,(15&E)<<4|15&E,1])}if(!F)for(E=Z.parsers.length;E--&&!F;){var A=Z.parsers[E];(I=A.regex.exec(V))&&(F=A.parse(I))}}F&&(this.rgba=F)},Z.prototype.get=function(V){var F=this.input,I=this.rgba;if(typeof F=="object"&&this.stops!==void 0){var E=U(F);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(A,P){E.stops[P]=[E.stops[P][0],A.get(V)]}),E}return I&&X(I[0])?V==="rgb"||!V&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":V==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":F},Z.prototype.brighten=function(V){var F=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(V)});else if(X(V)&&V!==0)for(var I=0;3>I;I++)F[I]+=$(255*V),0>F[I]&&(F[I]=0),255<F[I]&&(F[I]=255);return this},Z.prototype.setOpacity=function(V){return this.rgba[3]=V,this},Z.prototype.tweenTo=function(V,F){var I=this.rgba,E=V.rgba;return X(I[0])&&X(E[0])?((V=E[3]!==1||I[3]!==1)?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-F))+","+Math.round(E[1]+(I[1]-E[1])*(1-F))+","+Math.round(E[2]+(I[2]-E[2])*(1-F))+(V?","+(E[3]+(I[3]-E[3])*(1-F)):"")+")":V.input||"none"},Z.names={white:"#ffffff",black:"#000000"},Z.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(V){return[$(V[1]),$(V[2]),$(V[3]),parseFloat(V[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),1]}}],Z.None=new Z(""),Z}(),B}),_(et,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),_(et,"Core/Time.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var X=G.win,U=B.defined,$=B.error,Z=B.extend,V=B.isObject,F=B.merge,I=B.objectEach,E=B.pad,A=B.pick,P=B.splat,y=B.timeUnits,c=G.isSafari&&X.Intl&&X.Intl.DateTimeFormat.prototype.formatRange,f=G.isSafari&&X.Intl&&!X.Intl.DateTimeFormat.prototype.formatRange;return B=function(){function m(u){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=X.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(u)}return m.prototype.get=function(u,v){if(this.variableTimezone||this.timezoneOffset){var S=v.getTime(),M=S-this.getTimezoneOffset(v);return v.setTime(M),u=v["getUTC"+u](),v.setTime(S),u}return this.useUTC?v["getUTC"+u]():v["get"+u]()},m.prototype.set=function(u,v,S){if(this.variableTimezone||this.timezoneOffset){if(u==="Milliseconds"||u==="Seconds"||u==="Minutes"&&this.getTimezoneOffset(v)%36e5==0)return v["setUTC"+u](S);var M=this.getTimezoneOffset(v);return M=v.getTime()-M,v.setTime(M),v["setUTC"+u](S),u=this.getTimezoneOffset(v),M=v.getTime()+u,v.setTime(M)}return this.useUTC||c&&u==="FullYear"?v["setUTC"+u](S):v["set"+u](S)},m.prototype.update=function(u){u===void 0&&(u={});var v=A(u.useUTC,!0);this.options=u=F(!0,this.options,u),this.Date=u.Date||X.Date||Date,this.timezoneOffset=(this.useUTC=v)&&u.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=v&&!(!u.getTimezoneOffset&&!u.timezone)},m.prototype.makeTime=function(u,v,S,M,x,p){if(this.useUTC){var g=this.Date.UTC.apply(0,arguments),r=this.getTimezoneOffset(g);g+=r;var a=this.getTimezoneOffset(g);r!==a?g+=a-r:r-36e5!==this.getTimezoneOffset(g-36e5)||f||(g-=36e5)}else g=new this.Date(u,v,A(S,1),A(M,0),A(x,0),A(p,0)).getTime();return g},m.prototype.timezoneOffsetFunction=function(){var u=this,v=this.options,S=v.getTimezoneOffset,M=v.moment||X.moment;if(!this.useUTC)return function(x){return 6e4*new Date(x.toString()).getTimezoneOffset()};if(v.timezone){if(M)return function(x){return 6e4*-M.tz(x,v.timezone).utcOffset()};$(25)}return this.useUTC&&S?function(x){return 6e4*S(x.valueOf())}:function(){return 6e4*(u.timezoneOffset||0)}},m.prototype.dateFormat=function(u,v,S){if(!U(v)||isNaN(v))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";u=A(u,"%Y-%m-%d %H:%M:%S");var M=this,x=new this.Date(v),p=this.get("Hours",x),g=this.get("Day",x),r=this.get("Date",x),a=this.get("Month",x),t=this.get("FullYear",x),i=G.defaultOptions.lang,o=i&&i.weekdays,e=i&&i.shortWeekdays;return x=Z({a:e?e[g]:o[g].substr(0,3),A:o[g],d:E(r),e:E(r,2," "),w:g,b:i.shortMonths[a],B:i.months[a],m:E(a+1),o:a+1,y:t.toString().substr(2,2),Y:t,H:E(p),k:p,I:E(p%12||12),l:p%12||12,M:E(this.get("Minutes",x)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:E(x.getSeconds()),L:E(Math.floor(v%1e3),3)},G.dateFormats),I(x,function(s,n){for(;u.indexOf("%"+n)!==-1;)u=u.replace("%"+n,typeof s=="function"?s.call(M,v):s)}),S?u.substr(0,1).toUpperCase()+u.substr(1):u},m.prototype.resolveDTLFormat=function(u){return V(u,!0)?u:{main:(u=P(u))[0],from:u[1],to:u[2]}},m.prototype.getTimeTicks=function(u,v,S,M){var x,p=this,g=[],r={},a=new p.Date(v),t=u.unitRange,i=u.count||1;if(M=A(M,1),U(v)){if(p.set("Milliseconds",a,t>=y.second?0:i*Math.floor(p.get("Milliseconds",a)/i)),t>=y.second&&p.set("Seconds",a,t>=y.minute?0:i*Math.floor(p.get("Seconds",a)/i)),t>=y.minute&&p.set("Minutes",a,t>=y.hour?0:i*Math.floor(p.get("Minutes",a)/i)),t>=y.hour&&p.set("Hours",a,t>=y.day?0:i*Math.floor(p.get("Hours",a)/i)),t>=y.day&&p.set("Date",a,t>=y.month?1:Math.max(1,i*Math.floor(p.get("Date",a)/i))),t>=y.month){p.set("Month",a,t>=y.year?0:i*Math.floor(p.get("Month",a)/i));var o=p.get("FullYear",a)}t>=y.year&&p.set("FullYear",a,o-o%i),t===y.week&&(o=p.get("Day",a),p.set("Date",a,p.get("Date",a)-o+M+(o<M?-7:0))),o=p.get("FullYear",a),M=p.get("Month",a);var e=p.get("Date",a),s=p.get("Hours",a);for(v=a.getTime(),!p.variableTimezone&&p.useUTC||!U(S)||(x=S-v>4*y.month||p.getTimezoneOffset(v)!==p.getTimezoneOffset(S)),v=a.getTime(),a=1;v<S;)g.push(v),v=t===y.year?p.makeTime(o+a*i,0):t===y.month?p.makeTime(o,M+a*i):!x||t!==y.day&&t!==y.week?x&&t===y.hour&&1<i?p.makeTime(o,M,e,s+a*i):v+t*i:p.makeTime(o,M,e+a*i*(t===y.day?1:7)),a++;g.push(v),t<=y.hour&&1e4>g.length&&g.forEach(function(n){n%18e5==0&&p.dateFormat("%H%M%S%L",n)==="000000000"&&(r[n]="day")})}return g.info=Z(u,{higherRanks:r,totalRange:t*i}),g},m.prototype.getDateFormat=function(u,v,S,M){var x=this.dateFormat("%m-%d %H:%M:%S.%L",v),p={millisecond:15,second:12,minute:9,hour:6,day:3},g="millisecond";for(r in y){if(u===y.week&&+this.dateFormat("%w",v)===S&&x.substr(6)==="00:00:00.000"){var r="week";break}if(y[r]>u){r=g;break}if(p[r]&&x.substr(p[r])!=="01-01 00:00:00.000".substr(p[r]))break;r!=="week"&&(g=r)}return this.resolveDTLFormat(M[r]).main},m}(),B}),_(et,"Core/Defaults.js",[et["Core/Chart/ChartDefaults.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Color/Palettes.js"],et["Core/Time.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z){B=B.parse;var V=Z.merge,F={colors:U.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:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:X.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:X.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:B("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};F.chart.styledMode=!1;var I=new $(V(F.global,F.time));return{defaultOptions:F,defaultTime:I,getOptions:function(){return F},setOptions:function(E){return V(!0,F,E),(E.time||E.global)&&(X.time?X.time.update(V(F.global,F.time,E.global,E.time)):X.time=I),F}}}),_(et,"Core/Animation/Fx.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X){var U=G.parse,$=B.win,Z=X.isNumber,V=X.objectEach;return function(){function F(I,E,A){this.pos=NaN,this.options=E,this.elem=I,this.prop=A}return F.prototype.dSetter=function(){var I=this.paths,E=I&&I[0];I=I&&I[1];var A=this.now||0,P=[];if(A!==1&&E&&I)if(E.length===I.length&&1>A)for(var y=0;y<I.length;y++){for(var c=E[y],f=I[y],m=[],u=0;u<f.length;u++){var v=c[u],S=f[u];Z(v)&&Z(S)&&(f[0]!=="A"||u!==4&&u!==5)?m[u]=v+A*(S-v):m[u]=S}P.push(m)}else P=I;else P=this.toD||[];this.elem.attr("d",P,void 0,!0)},F.prototype.update=function(){var I=this.elem,E=this.prop,A=this.now,P=this.options.step;this[E+"Setter"]?this[E+"Setter"]():I.attr?I.element&&I.attr(E,A,null,!0):I.style[E]=A+this.unit,P&&P.call(I,A,this)},F.prototype.run=function(I,E,A){var P=this,y=P.options,c=function(u){return!c.stopped&&P.step(u)},f=$.requestAnimationFrame||function(u){setTimeout(u,13)},m=function(){for(var u=0;u<F.timers.length;u++)F.timers[u]()||F.timers.splice(u--,1);F.timers.length&&f(m)};I!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=E,this.unit=A,this.now=this.start,this.pos=0,c.elem=this.elem,c.prop=this.prop,c()&&F.timers.push(c)===1&&f(m)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},F.prototype.step=function(I){var E=+new Date,A=this.options,P=this.elem,y=A.complete,c=A.duration,f=A.curAnim;if(P.attr&&!P.element)I=!1;else if(I||E>=c+this.startTime){this.now=this.end,this.pos=1,this.update();var m=f[this.prop]=!0;V(f,function(u){u!==!0&&(m=!1)}),m&&y&&y.call(P),I=!1}else this.pos=A.easing((E-this.startTime)/c),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},F.prototype.initPath=function(I,E,A){function P(x,p){for(;x.length<M;){var g=x[0],r=p[M-x.length];r&&g[0]==="M"&&(x[0]=r[0]==="C"?["C",g[1],g[2],g[1],g[2],g[1],g[2]]:["L",g[1],g[2]]),x.unshift(g),m&&(g=x.pop(),x.push(x[x.length-1],g))}}function y(x,p){for(;x.length<M;)if((p=x[Math.floor(x.length/u)-1].slice())[0]==="C"&&(p[1]=p[5],p[2]=p[6]),m){var g=x[Math.floor(x.length/u)].slice();x.splice(x.length/2,0,p,g)}else x.push(p)}var c=I.startX,f=I.endX;A=A.slice();var m=I.isArea,u=m?2:1;if(!(E=E&&E.slice()))return[A,A];if(c&&f&&f.length){for(I=0;I<c.length;I++){if(c[I]===f[0]){var v=I;break}if(c[0]===f[f.length-c.length+I]){v=I;var S=!0;break}if(c[c.length-1]===f[f.length-c.length+I]){v=c.length-I;break}}v===void 0&&(E=[])}if(E.length&&Z(v)){var M=A.length+v*u;S?(P(E,A),y(A,E)):(P(A,E),y(E,A))}return[E,A]},F.prototype.fillSetter=function(){F.prototype.strokeSetter.apply(this,arguments)},F.prototype.strokeSetter=function(){this.elem.attr(this.prop,U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)},F.timers=[],F}()}),_(et,"Core/Animation/AnimationUtilities.js",[et["Core/Animation/Fx.js"],et["Core/Utilities.js"]],function(G,B){function X(y){return I(y)?E({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function U(y,c){for(var f=G.timers.length;f--;)G.timers[f].elem!==y||c&&c!==G.timers[f].prop||(G.timers[f].stopped=!0)}var $=B.defined,Z=B.getStyle,V=B.isArray,F=B.isNumber,I=B.isObject,E=B.merge,A=B.objectEach,P=B.pick;return{animate:function(y,c,f){var m,u,v,S="";if(!I(f)){var M=arguments;f={duration:M[2],easing:M[3],complete:M[4]}}F(f.duration)||(f.duration=400),f.easing=typeof f.easing=="function"?f.easing:Math[f.easing]||Math.easeInOutSine,f.curAnim=E(c),A(c,function(x,p){U(y,p),v=new G(y,f,p),u=void 0,p==="d"&&V(c.d)?(v.paths=v.initPath(y,y.pathArray,c.d),v.toD=c.d,m=0,u=1):y.attr?m=y.attr(p):(m=parseFloat(Z(y,p))||0,p!=="opacity"&&(S="px")),u||(u=x),typeof u=="string"&&u.match("px")&&(u=u.replace(/px/g,"")),v.run(m,u,S)})},animObject:X,getDeferredAnimation:function(y,c,f){var m=X(c),u=0,v=0;return(f?[f]:y.series).forEach(function(S){S=X(S.options.animation),u=c&&$(c.defer)?m.defer:Math.max(u,S.duration+S.defer),v=Math.min(m.duration,S.duration)}),y.renderer.forExport&&(u=0),{defer:Math.max(0,u-v),duration:Math.min(u,v)}},setAnimation:function(y,c){c.renderer.globalAnimation=P(y,c.options.chart.animation,!0)},stop:U}}),_(et,"Core/Renderer/HTML/AST.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var X=G.SVG_NS,U=B.attr,$=B.createElement,Z=B.css,V=B.error,F=B.isFunction,I=B.isString,E=B.objectEach,A=B.splat,P=(B=G.win.trustedTypes)&&F(B.createPolicy)&&B.createPolicy("highcharts",{createHTML:function(f){return f}}),y=P?P.createHTML(""):"";try{var c=!!new DOMParser().parseFromString(y,"text/html")}catch(f){c=!1}return F=function(){function f(m){this.nodes=typeof m=="string"?this.parseMarkup(m):m}return f.filterUserAttributes=function(m){return E(m,function(u,v){var S=!0;f.allowedAttributes.indexOf(v)===-1&&(S=!1),["background","dynsrc","href","lowsrc","src"].indexOf(v)!==-1&&(S=I(u)&&f.allowedReferences.some(function(M){return u.indexOf(M)===0})),S||(V(33,!1,void 0,{"Invalid attribute in config":"".concat(v)}),delete m[v]),I(u)&&m[v]&&(m[v]=u.replace(/</g,"<"))}),m},f.parseStyle=function(m){return m.split(";").reduce(function(u,v){v=v.split(":").map(function(M){return M.trim()});var S=v.shift();return S&&v.length&&(u[S.replace(/-([a-z])/g,function(M){return M[1].toUpperCase()})]=v.join(":")),u},{})},f.setElementHTML=function(m,u){m.innerHTML=f.emptyHTML,u&&new f(u).addToDOM(m)},f.prototype.addToDOM=function(m){return function u(v,S){var M;return A(v).forEach(function(x){var p=x.tagName,g=x.textContent?G.doc.createTextNode(x.textContent):void 0,r=f.bypassHTMLFiltering;if(p)if(p==="#text")var a=g;else if(f.allowedTags.indexOf(p)!==-1||r){p=G.doc.createElementNS(p==="svg"?X:S.namespaceURI||X,p);var t=x.attributes||{};E(x,function(i,o){o!=="tagName"&&o!=="attributes"&&o!=="children"&&o!=="style"&&o!=="textContent"&&(t[o]=i)}),U(p,r?t:f.filterUserAttributes(t)),x.style&&Z(p,x.style),g&&p.appendChild(g),u(x.children||[],p),a=p}else V(33,!1,void 0,{"Invalid tagName in config":p});a&&S.appendChild(a),M=a}),M}(this.nodes,m)},f.prototype.parseMarkup=function(m){var u=[];if(m=m.trim().replace(/ style=(["'])/g," data-style=$1"),c)m=new DOMParser().parseFromString(P?P.createHTML(m):m,"text/html");else{var v=$("div");v.innerHTML=m,m={body:v}}var S=function(M,x){var p=M.nodeName.toLowerCase(),g={tagName:p};if(p==="#text"&&(g.textContent=M.textContent||""),p=M.attributes){var r={};[].forEach.call(p,function(t){t.name==="data-style"?g.style=f.parseStyle(t.value):r[t.name]=t.value}),g.attributes=r}if(M.childNodes.length){var a=[];[].forEach.call(M.childNodes,function(t){S(t,a)}),a.length&&(g.children=a)}x.push(g)};return[].forEach.call(m.body.childNodes,function(M){return S(M,u)}),u},f.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),f.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),f.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),f.emptyHTML=y,f.bypassHTMLFiltering=!1,f}(),F}),_(et,"Core/FormatUtilities.js",[et["Core/Defaults.js"],et["Core/Utilities.js"]],function(G,B){function X(E,A,P,y){E=+E||0,A=+A;var c=U.lang,f=(E.toString().split(".")[1]||"").split("e")[0].length,m=E.toString().split("e"),u=A;if(A===-1)A=Math.min(f,20);else if(V(A)){if(A&&m[1]&&0>m[1]){var v=A+ +m[1];0<=v?(m[0]=(+m[0]).toExponential(v).split("e")[0],A=v):(m[0]=m[0].split(".")[0]||0,E=20>A?(m[0]*Math.pow(10,m[1])).toFixed(A):0,m[1]=0)}}else A=2;v=(Math.abs(m[1]?m[0]:E)+Math.pow(10,-Math.max(A,f)-1)).toFixed(A);var S=3<(f=String(I(v))).length?f.length%3:0;return P=F(P,c.decimalPoint),y=F(y,c.thousandsSep),E=(0>E?"-":"")+(S?f.substr(0,S)+y:""),E=0>+m[1]&&!u?"0":E+f.substr(S).replace(/(\d{3})(?=\d)/g,"$1"+y),A&&(E+=P+v.slice(-A)),m[1]&&+E!=0&&(E+="e"+m[1]),E}var U=G.defaultOptions,$=G.defaultTime,Z=B.getNestedProperty,V=B.isNumber,F=B.pick,I=B.pInt;return{dateFormat:function(E,A,P){return $.dateFormat(E,A,P)},format:function(E,A,P){var y="{",c=!1,f=/f$/,m=/\.([0-9])/,u=U.lang,v=P&&P.time||$;P=P&&P.numberFormatter||X;for(var S=[];E;){var M=E.indexOf(y);if(M===-1)break;var x=E.slice(0,M);if(c){if(x=x.split(":"),y=Z(x.shift()||"",A),x.length&&typeof y=="number")if(x=x.join(":"),f.test(x)){var p=parseInt((x.match(m)||["","-1"])[1],10);y!==null&&(y=P(y,p,u.decimalPoint,-1<x.indexOf(",")?u.thousandsSep:""))}else y=v.dateFormat(x,y);S.push(y)}else S.push(x);E=E.slice(M+1),y=(c=!c)?"}":"{"}return S.push(E),S.join("")},numberFormat:X}}),_(et,"Core/Renderer/RendererUtilities.js",[et["Core/Utilities.js"]],function(G){var B,X=G.clamp,U=G.pick,$=G.stableSort;return function(Z){Z.distribute=function V(F,I,E){var A,P=F,y=P.reducedLen||I,c=function(S,M){return(M.rank||0)-(S.rank||0)},f=function(S,M){return S.target-M.target},m=!0,u=[],v=0;for(A=F.length;A--;)v+=F[A].size;if(v>y){for($(F,c),v=A=0;v<=y;)v+=F[A].size,A++;u=F.splice(A-1,F.length)}for($(F,f),F=F.map(function(S){return{size:S.size,targets:[S.target],align:U(S.align,.5)}});m;){for(A=F.length;A--;)y=F[A],c=(Math.min.apply(0,y.targets)+Math.max.apply(0,y.targets))/2,y.pos=X(c-y.size*y.align,0,I-y.size);for(A=F.length,m=!1;A--;)0<A&&F[A-1].pos+F[A-1].size>F[A].pos&&(F[A-1].size+=F[A].size,F[A-1].targets=F[A-1].targets.concat(F[A].targets),F[A-1].align=.5,F[A-1].pos+F[A-1].size>I&&(F[A-1].pos=I-F[A-1].size),F.splice(A,1),m=!0)}return P.push.apply(P,u),A=0,F.some(function(S){var M=0;return(S.targets||[]).some(function(){return P[A].pos=S.pos+M,E!==void 0&&Math.abs(P[A].pos-P[A].target)>E?(P.slice(0,A+1).forEach(function(x){return delete x.pos}),P.reducedLen=(P.reducedLen||I)-.1*I,P.reducedLen>.1*I&&V(P,I,E),!0):(M+=P[A].size,A++,!1)})}),$(P,f),P}}(B||(B={})),B}),_(et,"Core/Renderer/SVG/SVGElement.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=G.animate,Z=G.animObject,V=G.stop,F=X.deg2rad,I=X.doc,E=X.svg,A=X.SVG_NS,P=X.win,y=U.addEvent,c=U.attr,f=U.createElement,m=U.css,u=U.defined,v=U.erase,S=U.extend,M=U.fireEvent,x=U.isArray,p=U.isFunction,g=U.isString,r=U.merge,a=U.objectEach,t=U.pick,i=U.pInt,o=U.syncTimeout,e=U.uniqueKey;return G=function(){function s(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=A,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return s.prototype._defaultGetter=function(n){return n=t(this[n+"Value"],this[n],this.element?this.element.getAttribute(n):null,0),/^[\-0-9\.]+$/.test(n)&&(n=parseFloat(n)),n},s.prototype._defaultSetter=function(n,h,b){b.setAttribute(h,n)},s.prototype.add=function(n){var h=this.renderer,b=this.element;if(n&&(this.parentGroup=n),this.textStr!==void 0&&this.element.nodeName==="text"&&h.buildText(this),this.added=!0,!n||n.handleZ||this.zIndex)var k=this.zIndexSetter();return k||(n?n.element:h.box).appendChild(b),this.onAdd&&this.onAdd(),this},s.prototype.addClass=function(n,h){var b=h?"":this.attr("class")||"";return n=(n||"").split(/ /g).reduce(function(k,D){return b.indexOf(D)===-1&&k.push(D),k},b?[b]:[]).join(" "),n!==b&&this.attr("class",n),this},s.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},s.prototype.align=function(n,h,b){var k,D,d,C={},T=this.renderer,N=T.alignedObjects;n?(this.alignOptions=n,this.alignByTranslate=h,(!b||g(b))&&(this.alignTo=k=b||"renderer",v(N,this),N.push(this),b=void 0)):(n=this.alignOptions,h=this.alignByTranslate,k=this.alignTo),b=t(b,T[k],k==="scrollablePlotBox"?T.plotBox:void 0,T),k=n.align;var z=n.verticalAlign;return T=(b.x||0)+(n.x||0),N=(b.y||0)+(n.y||0),k==="right"?D=1:k==="center"&&(D=2),D&&(T+=(b.width-(n.width||0))/D),C[h?"translateX":"x"]=Math.round(T),z==="bottom"?d=1:z==="middle"&&(d=2),d&&(N+=(b.height-(n.height||0))/d),C[h?"translateY":"y"]=Math.round(N),this[this.placed?"animate":"attr"](C),this.placed=!0,this.alignAttr=C,this},s.prototype.alignSetter=function(n){var h={left:"start",center:"middle",right:"end"};h[n]&&(this.alignValue=n,this.element.setAttribute("text-anchor",h[n]))},s.prototype.animate=function(n,h,b){var k=this,D=Z(t(h,this.renderer.globalAnimation,!0));return h=D.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(D.duration=0),D.duration!==0?(b&&(D.complete=b),o(function(){k.element&&$(k,n,D)},h)):(this.attr(n,void 0,b||D.complete),a(n,function(d,C){D.step&&D.step.call(this,d,{prop:C,pos:1,elem:this})},this)),this},s.prototype.applyTextOutline=function(n){var h=this.element;n.indexOf("contrast")!==-1&&(n=n.replace(/contrast/g,this.renderer.getContrast(h.style.fill)));var b=n.split(" ");if(n=b[b.length-1],(b=b[0])&&b!=="none"&&X.svg){this.fakeTS=!0,b=b.replace(/(^[\d\.]+)(.*?)$/g,function(d,C,T){return 2*Number(C)+T}),this.removeTextOutline();var k=I.createElementNS(A,"tspan");c(k,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":b,"stroke-linejoin":"round"}),n=h.querySelector("textPath")||h,[].forEach.call(n.childNodes,function(d){var C=d.cloneNode(!0);C.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(T){return C.removeAttribute(T)}),k.appendChild(C)});var D=0;[].forEach.call(n.querySelectorAll("text tspan"),function(d){D+=Number(d.getAttribute("dy"))}),(b=I.createElementNS(A,"tspan")).textContent="",c(b,{x:Number(h.getAttribute("x")),dy:-D}),k.appendChild(b),n.insertBefore(k,n.firstChild)}},s.prototype.attr=function(n,h,b,k){var D,d,C,T=this.element,N=this.symbolCustomAttribs,z=this;if(typeof n=="string"&&h!==void 0){var L=n;(n={})[L]=h}return typeof n=="string"?z=(this[n+"Getter"]||this._defaultGetter).call(this,n,T):(a(n,function(O,j){d=!1,k||V(this,j),this.symbolName&&N.indexOf(j)!==-1&&(D||(this.symbolAttr(n),D=!0),d=!0),!this.rotation||j!=="x"&&j!=="y"||(this.doTransform=!0),d||((C=this[j+"Setter"]||this._defaultSetter).call(this,O,j,T),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(j)&&this.updateShadows(j,O,C))},this),this.afterSetters()),b&&b.call(this),z},s.prototype.clip=function(n){return this.attr("clip-path",n?"url("+this.renderer.url+"#"+n.id+")":"none")},s.prototype.crisp=function(n,h){h=h||n.strokeWidth||0;var b=Math.round(h)%2/2;return n.x=Math.floor(n.x||this.x||0)+b,n.y=Math.floor(n.y||this.y||0)+b,n.width=Math.floor((n.width||this.width||0)-2*b),n.height=Math.floor((n.height||this.height||0)-2*b),u(n.strokeWidth)&&(n.strokeWidth=h),n},s.prototype.complexColor=function(n,h,b){var k,D,d,C,T,N,z,L,O,j,Y,H=this.renderer,W=[];M(this.renderer,"complexColor",{args:arguments},function(){if(n.radialGradient?D="radialGradient":n.linearGradient&&(D="linearGradient"),D){if(d=n[D],T=H.gradients,N=n.stops,O=b.radialReference,x(d)&&(n[D]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"}),D==="radialGradient"&&O&&!u(d.gradientUnits)&&(C=d,d=r(d,H.getRadialAttr(O,C),{gradientUnits:"userSpaceOnUse"})),a(d,function(tt,J){J!=="id"&&W.push(J,tt)}),a(N,function(tt){W.push(tt)}),W=W.join(","),T[W])j=T[W].attr("id");else{d.id=j=e();var q=T[W]=H.createElement(D).attr(d).add(H.defs);q.radAttr=C,q.stops=[],N.forEach(function(tt){tt[1].indexOf("rgba")===0?(k=B.parse(tt[1]),z=k.get("rgb"),L=k.get("a")):(z=tt[1],L=1),tt=H.createElement("stop").attr({offset:tt[0],"stop-color":z,"stop-opacity":L}).add(q),q.stops.push(tt)})}Y="url("+H.url+"#"+j+")",b.setAttribute(h,Y),b.gradient=W,n.toString=function(){return Y}}})},s.prototype.css=function(n){var h=this.styles,b={},k=this.element,D=!h;if(n.color&&(n.fill=n.color),h&&a(n,function(T,N){h&&h[N]!==T&&(b[N]=T,D=!0)}),D){if(h&&(n=S(h,b)),n.width===null||n.width==="auto")delete this.textWidth;else if(k.nodeName.toLowerCase()==="text"&&n.width)var d=this.textWidth=i(n.width);this.styles=n,d&&!E&&this.renderer.forExport&&delete n.width;var C=r(n);k.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(T){return C&&delete C[T]}),m(k,C),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),n.textOutline&&this.applyTextOutline(n.textOutline))}return this},s.prototype.dashstyleSetter=function(n){var h=this["stroke-width"];if(h==="inherit"&&(h=1),n=n&&n.toLowerCase()){var b=n.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(n=b.length;n--;)b[n]=""+i(b[n])*t(h,NaN);n=b.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",n)}},s.prototype.destroy=function(){var n=this,h=n.element||{},b=n.renderer,k=h.ownerSVGElement,D=b.isSVG&&h.nodeName==="SPAN"&&n.parentGroup||void 0;if(h.onclick=h.onmouseout=h.onmouseover=h.onmousemove=h.point=null,V(n),n.clipPath&&k){var d=n.clipPath;[].forEach.call(k.querySelectorAll("[clip-path],[CLIP-PATH]"),function(C){-1<C.getAttribute("clip-path").indexOf(d.element.id)&&C.removeAttribute("clip-path")}),n.clipPath=d.destroy()}if(n.stops){for(k=0;k<n.stops.length;k++)n.stops[k].destroy();n.stops.length=0,n.stops=void 0}for(n.safeRemoveChild(h),b.styledMode||n.destroyShadows();D&&D.div&&D.div.childNodes.length===0;)h=D.parentGroup,n.safeRemoveChild(D.div),delete D.div,D=h;n.alignTo&&v(b.alignedObjects,n),a(n,function(C,T){n[T]&&n[T].parentGroup===n&&n[T].destroy&&n[T].destroy(),delete n[T]})},s.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(n){this.safeRemoveChild(n)},this),this.shadows=void 0},s.prototype.dSetter=function(n,h,b){x(n)&&(typeof n[0]=="string"&&(n=this.renderer.pathToSegments(n)),this.pathArray=n,n=n.reduce(function(k,D,d){return D&&D.join?(d?k+" ":"")+D.join(" "):(D||"").toString()},"")),/(NaN| {2}|^$)/.test(n)&&(n="M 0 0"),this[h]!==n&&(b.setAttribute(h,n),this[h]=n)},s.prototype.fadeOut=function(n){var h=this;h.animate({opacity:0},{duration:t(n,150),complete:function(){h.hide()}})},s.prototype.fillSetter=function(n,h,b){typeof n=="string"?b.setAttribute(h,n):n&&this.complexColor(n,h,b)},s.prototype.getBBox=function(n,h){var b=this.alignValue,k=this.element,D=this.renderer,d=this.styles,C=this.textStr,T=D.cache,N=D.cacheKeys,z=k.namespaceURI===this.SVG_NS;h=t(h,this.rotation,0);var L,O=D.styledMode?k&&s.prototype.getStyle.call(k,"font-size"):d&&d.fontSize;if(u(C)){var j=C.toString();j.indexOf("<")===-1&&(j=j.replace(/[0-9]/g,"0")),j+=["",h,O,this.textWidth,b,d&&d.textOverflow,d&&d.fontWeight].join()}if(j&&!n&&(L=T[j]),!L){if(z||D.forExport){try{var Y=this.fakeTS&&function(W){var q=k.querySelector(".highcharts-text-outline");q&&m(q,{display:W})};p(Y)&&Y("none"),L=k.getBBox?S({},k.getBBox()):{width:k.offsetWidth,height:k.offsetHeight,x:0,y:0},p(Y)&&Y("")}catch(W){}(!L||0>L.width)&&(L={x:0,y:0,width:0,height:0})}else L=this.htmlGetBBox();if(D.isSVG&&(D=L.width,n=L.height,z&&(L.height=n={"11px,17":14,"13px,20":16}[""+(O||"")+",".concat(Math.round(n))]||n),h)){z=Number(k.getAttribute("y")||0)-L.y,b={right:1,center:.5}[b||0]||0,d=h*F,O=(h-90)*F;var H=D*Math.cos(d);h=D*Math.sin(d),Y=Math.cos(O),d=Math.sin(O),H=(Y=(O=(D=L.x+b*(D-H)+z*Y)+H)-n*Y)-H,h=(n=(b=(z=L.y+z-b*h+z*d)+h)-n*d)-h,L.x=Math.min(D,O,Y,H),L.y=Math.min(z,b,n,h),L.width=Math.max(D,O,Y,H)-L.x,L.height=Math.max(z,b,n,h)-L.y}if(j&&(C===""||0<L.height)){for(;250<N.length;)delete T[N.shift()];T[j]||N.push(j),T[j]=L}}return L},s.prototype.getStyle=function(n){return P.getComputedStyle(this.element||this,"").getPropertyValue(n)},s.prototype.hasClass=function(n){return(""+this.attr("class")).split(" ").indexOf(n)!==-1},s.prototype.hide=function(){return this.attr({visibility:"hidden"})},s.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},s.prototype.init=function(n,h){this.element=h==="span"?f(h):I.createElementNS(this.SVG_NS,h),this.renderer=n,M(this,"afterInit")},s.prototype.on=function(n,h){var b=this.onEvents;return b[n]&&b[n](),b[n]=y(this.element,n,h),this},s.prototype.opacitySetter=function(n,h,b){this.opacity=n=Number(Number(n).toFixed(3)),b.setAttribute(h,n)},s.prototype.removeClass=function(n){return this.attr("class",(""+this.attr("class")).replace(g(n)?new RegExp("(^| )".concat(n,"( |$)")):n," ").replace(/ +/g," ").trim())},s.prototype.removeTextOutline=function(){var n=this.element.querySelector("tspan.highcharts-text-outline");n&&this.safeRemoveChild(n)},s.prototype.safeRemoveChild=function(n){var h=n.parentNode;h&&h.removeChild(n)},s.prototype.setRadialReference=function(n){var h=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=n,h&&h.radAttr&&h.animate(this.renderer.getRadialAttr(n,h.radAttr)),this},s.prototype.setTextPath=function(n,h){var b=this;h=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},h);var k=this.renderer.url,D=this.text||this,d=D.textPath,C=h.attributes,T=h.enabled;return n=n||d&&d.path,d&&d.undo(),n&&T?(h=y(D,"afterModifyTree",function(N){if(n&&T){var z=n.attr("id");z||n.attr("id",z=e());var L={x:0,y:0};u(C.dx)&&(L.dx=C.dx,delete C.dx),u(C.dy)&&(L.dy=C.dy,delete C.dy),D.attr(L),b.attr({transform:""}),b.box&&(b.box=b.box.destroy()),L=N.nodes.slice(0),N.nodes.length=0,N.nodes[0]={tagName:"textPath",attributes:S(C,{"text-anchor":C.textAnchor,href:""+k+"#".concat(z)}),children:L}}}),D.textPath={path:n,undo:h}):(D.attr({dx:0,dy:0}),delete D.textPath),this.added&&(D.textCache="",this.renderer.buildText(D)),this},s.prototype.shadow=function(n,h,b){var k=[],D=this.element,d=this.oldShadowOptions,C=this.parentGroup,T=C&&C.rotation===90;C={color:"#000000",offsetX:T?-1:1,offsetY:T?-1:1,opacity:.15,width:3};var N,z=!1;if(n===!0?N=C:typeof n=="object"&&(N=S(C,n)),N&&(N&&d&&a(N,function(Y,H){Y!==d[H]&&(z=!0)}),z&&this.destroyShadows(),this.oldShadowOptions=N),N){if(!this.shadows){C=N.opacity/N.width;var L=T?"translate(".concat(N.offsetY,", ").concat(N.offsetX,")"):"translate(".concat(N.offsetX,", ").concat(N.offsetY,")");for(T=1;T<=N.width;T++){var O=D.cloneNode(!1),j=2*N.width+1-2*T;c(O,{stroke:n.color||"#000000","stroke-opacity":C*T,"stroke-width":j,transform:L,fill:"none"}),O.setAttribute("class",(O.getAttribute("class")||"")+" highcharts-shadow"),b&&(c(O,"height",Math.max(c(O,"height")-j,0)),O.cutHeight=j),h?h.element.appendChild(O):D.parentNode&&D.parentNode.insertBefore(O,D),k.push(O)}this.shadows=k}}else this.destroyShadows();return this},s.prototype.show=function(n){return n===void 0&&(n=!0),this.attr({visibility:n?"inherit":"visible"})},s.prototype["stroke-widthSetter"]=function(n,h,b){this[h]=n,b.setAttribute(h,n)},s.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var n=this.getStyle("stroke-width"),h=0;if(n.indexOf("px")===n.length-2)h=i(n);else if(n!==""){var b=I.createElementNS(A,"rect");c(b,{width:n,"stroke-width":0}),this.element.parentNode.appendChild(b),h=b.getBBox().width,b.parentNode.removeChild(b)}return h},s.prototype.symbolAttr=function(n){var h=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){h[b]=t(n[b],h[b])}),h.attr({d:h.renderer.symbols[h.symbolName](h.x,h.y,h.width,h.height,h)})},s.prototype.textSetter=function(n){n!==this.textStr&&(delete this.textPxLength,this.textStr=n,this.added&&this.renderer.buildText(this))},s.prototype.titleSetter=function(n){var h=this.element,b=h.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");h.insertBefore?h.insertBefore(b,h.firstChild):h.appendChild(b),b.textContent=String(t(n,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},s.prototype.toFront=function(){var n=this.element;return n.parentNode.appendChild(n),this},s.prototype.translate=function(n,h){return this.attr({translateX:n,translateY:h})},s.prototype.updateShadows=function(n,h,b){var k=this.shadows;if(k)for(var D=k.length;D--;)b.call(k[D],n==="height"?Math.max(h-(k[D].cutHeight||0),0):n==="d"?this.d:h,n,k[D])},s.prototype.updateTransform=function(){var n=this.element,h=this.matrix,b=this.rotation;b=b===void 0?0:b;var k=this.scaleX,D=this.scaleY,d=this.translateX,C=this.translateY;d=["translate("+(d===void 0?0:d)+","+(C===void 0?0:C)+")"],u(h)&&d.push("matrix("+h.join(",")+")"),b&&d.push("rotate("+b+" "+t(this.rotationOriginX,n.getAttribute("x"),0)+" "+t(this.rotationOriginY,n.getAttribute("y")||0)+")"),(u(k)||u(D))&&d.push("scale("+t(k,1)+" "+t(D,1)+")"),d.length&&!(this.text||this).textPath&&n.setAttribute("transform",d.join(" "))},s.prototype.visibilitySetter=function(n,h,b){n==="inherit"?b.removeAttribute(h):this[h]!==n&&b.setAttribute(h,n),this[h]=n},s.prototype.xGetter=function(n){return this.element.nodeName==="circle"&&(n==="x"?n="cx":n==="y"&&(n="cy")),this._defaultGetter(n)},s.prototype.zIndexSetter=function(n,h){var b=this.renderer,k=this.parentGroup,D=(k||b).element||b.box,d=this.element;b=D===b.box;var C,T=!1,N=this.added;if(u(n)?(d.setAttribute("data-z-index",n),n=+n,this[h]===n&&(N=!1)):u(this[h])&&d.removeAttribute("data-z-index"),this[h]=n,N){for((n=this.zIndex)&&k&&(k.handleZ=!0),C=(h=D.childNodes).length-1;0<=C&&!T;C--){N=(k=h[C]).getAttribute("data-z-index");var z=!u(N);k!==d&&(0>n&&z&&!b&&!C?(D.insertBefore(d,h[C]),T=!0):(i(N)<=n||z&&(!u(n)||0<=n))&&(D.insertBefore(d,h[C+1]||null),T=!0))}T||(D.insertBefore(d,h[b?3:0]||null),T=!0)}return T},s}(),G.prototype.strokeSetter=G.prototype.fillSetter,G.prototype.yGetter=G.prototype.xGetter,G.prototype.matrixSetter=G.prototype.rotationOriginXSetter=G.prototype.rotationOriginYSetter=G.prototype.rotationSetter=G.prototype.scaleXSetter=G.prototype.scaleYSetter=G.prototype.translateXSetter=G.prototype.translateYSetter=G.prototype.verticalAlignSetter=function(s,n){this[n]=s,this.doTransform=!0},G}),_(et,"Core/Renderer/RendererRegistry.js",[et["Core/Globals.js"]],function(G){var B;return function(X){var U;X.rendererTypes={},X.getRendererType=function($){return $===void 0&&($=U),X.rendererTypes[$]||X.rendererTypes[U]},X.registerRendererType=function($,Z,V){X.rendererTypes[$]=Z,U&&!V||(U=$,G.Renderer=Z)}}(B||(B={})),B}),_(et,"Core/Renderer/SVG/SVGLabel.js",[et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B){var X=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),U=B.defined,$=B.extend,Z=B.isNumber,V=B.merge,F=B.pick,I=B.removeEvent;return function(E){function A(P,y,c,f,m,u,v,S,M,x){var p,g=E.call(this)||this;return g.paddingLeftSetter=g.paddingSetter,g.paddingRightSetter=g.paddingSetter,g.init(P,"g"),g.textStr=y,g.x=c,g.y=f,g.anchorX=u,g.anchorY=v,g.baseline=M,g.className=x,g.addClass(x==="button"?"highcharts-no-tooltip":"highcharts-label"),x&&g.addClass("highcharts-"+x),g.text=P.text(void 0,0,0,S).attr({zIndex:1}),typeof m=="string"&&((p=/^url\((.*?)\)$/.test(m))||g.renderer.symbols[m])&&(g.symbolKey=m),g.bBox=A.emptyBBox,g.padding=3,g.baselineOffset=0,g.needsBox=P.styledMode||p,g.deferredAttr={},g.alignFactor=0,g}return X(A,E),A.prototype.alignSetter=function(P){(P={left:0,center:.5,right:1}[P])!==this.alignFactor&&(this.alignFactor=P,this.bBox&&Z(this.xSetting)&&this.attr({x:this.xSetting}))},A.prototype.anchorXSetter=function(P,y){this.anchorX=P,this.boxAttr(y,Math.round(P)-this.getCrispAdjust()-this.xSetting)},A.prototype.anchorYSetter=function(P,y){this.anchorY=P,this.boxAttr(y,P-this.ySetting)},A.prototype.boxAttr=function(P,y){this.box?this.box.attr(P,y):this.deferredAttr[P]=y},A.prototype.css=function(P){if(P){var y={};P=V(P),A.textProps.forEach(function(c){P[c]!==void 0&&(y[c]=P[c],delete P[c])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return G.prototype.css.call(this,P)},A.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},A.prototype.fillSetter=function(P,y){P&&(this.needsBox=!0),this.fill=P,this.boxAttr(y,P)},A.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var P=this.padding,y=F(this.paddingLeft,P);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-P}},A.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},A.prototype.heightSetter=function(P){this.heightSetting=P},A.prototype.onAdd=function(){this.text.add(this),this.attr({text:F(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&U(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},A.prototype.paddingSetter=function(P,y){Z(P)?P!==this[y]&&(this[y]=P,this.updateTextPadding()):this[y]=void 0},A.prototype.rSetter=function(P,y){this.boxAttr(y,P)},A.prototype.shadow=function(P){return P&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(P)),this},A.prototype.strokeSetter=function(P,y){this.stroke=P,this.boxAttr(y,P)},A.prototype["stroke-widthSetter"]=function(P,y){P&&(this.needsBox=!0),this["stroke-width"]=P,this.boxAttr(y,P)},A.prototype["text-alignSetter"]=function(P){this.textAlign=P},A.prototype.textSetter=function(P){P!==void 0&&this.text.attr({text:P}),this.updateTextPadding()},A.prototype.updateBoxSize=function(){var P=this.text,y=P.element.style,c={},f=this.padding,m=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!U(P.textStr)?A.emptyBBox:P.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||m.height||0)+2*f,y=this.renderer.fontMetrics(y&&y.fontSize,P),this.baselineOffset=f+Math.min((this.text.firstLineMetrics||y).b,m.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!P.textPath&&(this.box||((P=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),P.add(this)),P=this.getCrispAdjust(),c.x=P,c.y=(this.baseline?-this.baselineOffset:0)+P,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr($(c,this.deferredAttr)),this.deferredAttr={})},A.prototype.updateTextPadding=function(){var P=this.text;if(!P.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,c=F(this.paddingLeft,this.padding);U(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(c+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),c===P.x&&y===P.y||(P.attr("x",c),P.hasBoxWidthChanged&&(this.bBox=P.getBBox(!0)),y!==void 0&&P.attr("y",y)),P.x=c,P.y=y}},A.prototype.widthSetter=function(P){this.widthSetting=Z(P)?P:void 0},A.prototype.getPaddedWidth=function(){var P=this.padding,y=F(this.paddingLeft,P);return P=F(this.paddingRight,P),(this.widthSetting||this.bBox.width||0)+y+P},A.prototype.xSetter=function(P){this.x=P,this.alignFactor&&(P-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(P),this.attr("translateX",this.xSetting)},A.prototype.ySetter=function(P){this.ySetting=this.y=Math.round(P),this.attr("translateY",this.ySetting)},A.emptyBBox={width:0,height:0,x:0,y:0},A.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),A}(G)}),_(et,"Core/Renderer/SVG/Symbols.js",[et["Core/Utilities.js"]],function(G){function B(F,I,E,A,P){var y=[];if(P){var c=P.start||0,f=V(P.r,E);E=V(P.r,A||E);var m=(P.end||0)-.001;A=P.innerR;var u=V(P.open,.001>Math.abs((P.end||0)-c-2*Math.PI)),v=Math.cos(c),S=Math.sin(c),M=Math.cos(m),x=Math.sin(m);c=V(P.longArc,.001>m-c-Math.PI?0:1),y.push(["M",F+f*v,I+E*S],["A",f,E,0,c,V(P.clockwise,1),F+f*M,I+E*x]),$(A)&&y.push(u?["M",F+A*M,I+A*x]:["L",F+A*M,I+A*x],["A",A,A,0,c,$(P.clockwise)?1-P.clockwise:0,F+A*v,I+A*S]),u||y.push(["Z"])}return y}function X(F,I,E,A,P){return P&&P.r?U(F,I,E,A,P):[["M",F,I],["L",F+E,I],["L",F+E,I+A],["L",F,I+A],["Z"]]}function U(F,I,E,A,P){return[["M",F+(P=P&&P.r||0),I],["L",F+E-P,I],["C",F+E,I,F+E,I,F+E,I+P],["L",F+E,I+A-P],["C",F+E,I+A,F+E,I+A,F+E-P,I+A],["L",F+P,I+A],["C",F,I+A,F,I+A,F,I+A-P],["L",F,I+P],["C",F,I,F,I,F+P,I]]}var $=G.defined,Z=G.isNumber,V=G.pick;return{arc:B,callout:function(F,I,E,A,P){var y=Math.min(P&&P.r||0,E,A),c=y+6,f=P&&P.anchorX;P=P&&P.anchorY||0;var m=U(F,I,E,A,{r:y});return Z(f)&&(F+f>=E?P>I+c&&P<I+A-c?m.splice(3,1,["L",F+E,P-6],["L",F+E+6,P],["L",F+E,P+6],["L",F+E,I+A-y]):m.splice(3,1,["L",F+E,A/2],["L",f,P],["L",F+E,A/2],["L",F+E,I+A-y]):0>=F+f?P>I+c&&P<I+A-c?m.splice(7,1,["L",F,P+6],["L",F-6,P],["L",F,P-6],["L",F,I+y]):m.splice(7,1,["L",F,A/2],["L",f,P],["L",F,A/2],["L",F,I+y]):P&&P>A&&f>F+c&&f<F+E-c?m.splice(5,1,["L",f+6,I+A],["L",f,I+A+6],["L",f-6,I+A],["L",F+y,I+A]):P&&0>P&&f>F+c&&f<F+E-c&&m.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),m},circle:function(F,I,E,A){return B(F+E/2,I+A/2,E/2,A/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A/2],["L",F+E/2,I+A],["L",F,I+A/2],["Z"]]},rect:X,roundedRect:U,square:X,triangle:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A],["L",F,I+A],["Z"]]},"triangle-down":function(F,I,E,A){return[["M",F,I],["L",F+E,I],["L",F+E/2,I+A],["Z"]]}}}),_(et,"Core/Renderer/SVG/TextBuilder.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X){var U=B.doc,$=B.SVG_NS,Z=B.win,V=X.attr,F=X.extend,I=X.fireEvent,E=X.isString,A=X.objectEach,P=X.pick;return function(){function y(c){var f=c.styles;this.renderer=c.renderer,this.svgElement=c,this.width=c.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!(!f||f.textOverflow!=="ellipsis"),this.noWrap=!(!f||f.whiteSpace!=="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var c=this.svgElement,f=c.element,m=c.renderer,u=P(c.textStr,"").toString(),v=u.indexOf("<")!==-1,S=f.childNodes;m=this.width&&!c.added&&m.box;var M=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(M!==c.textCache){for(c.textCache=M,delete c.actualWidth,M=S.length;M--;)f.removeChild(S[M]);v||this.ellipsis||this.width||c.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))?u!==""&&(m&&m.appendChild(f),u=new G(u),this.modifyTree(u.nodes),u.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),m&&m.removeChild(f)):f.appendChild(U.createTextNode(this.unescapeEntities(u))),E(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var c,f=this,m=this.svgElement,u=V(m.element,"x");for(m.firstLineMetrics=void 0;(c=m.element.firstChild)&&/^[\s\u200B]*$/.test(c.textContent||" ");)m.element.removeChild(c);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(x,p){x.nextSibling&&x.previousSibling&&(p===0&&x.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,x.previousSibling)),V(x,{dy:f.getLineHeight(x.nextSibling),x:u}))});var v=this.width||0;if(v){var S=function(x,p){var g=x.textContent||"",r=g.replace(/([^\^])-/g,"$1- ").split(" "),a=!f.noWrap&&(1<r.length||1<m.element.childNodes.length),t=f.getLineHeight(p),i=0,o=m.actualWidth;if(f.ellipsis)g&&f.truncate(x,g,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(e,s){return e.substring(0,s)+"…"});else if(a){for(g=[],a=[];p.firstChild&&p.firstChild!==x;)a.push(p.firstChild),p.removeChild(p.firstChild);for(;r.length;)r.length&&!f.noWrap&&0<i&&(g.push(x.textContent||""),x.textContent=r.join(" ").replace(/- /g,"-")),f.truncate(x,void 0,r,i===0&&o||0,v,function(e,s){return r.slice(0,s).join(" ").replace(/- /g,"-")}),o=m.actualWidth,i++;a.forEach(function(e){p.insertBefore(e,x)}),g.forEach(function(e){p.insertBefore(U.createTextNode(e),x),(e=U.createElementNS($,"tspan")).textContent="",V(e,{dy:t,x:u}),p.insertBefore(e,x)})}},M=function(x){[].slice.call(x.childNodes).forEach(function(p){p.nodeType===Z.Node.TEXT_NODE?S(p,x):(p.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),M(p))})};M(m.element)}},y.prototype.getLineHeight=function(c){var f;return c=c.nodeType===Z.Node.TEXT_NODE?c.parentElement:c,this.renderer.styledMode||(f=c&&/(px|em)$/.test(c.style.fontSize)?c.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,c||this.svgElement.element).h},y.prototype.modifyTree=function(c){var f=this,m=function(u,v){var S=u.attributes;S=S===void 0?{}:S;var M=u.children,x=u.style;x=x===void 0?{}:x;var p=u.tagName,g=f.renderer.styledMode;p==="b"||p==="strong"?g?S.class="highcharts-strong":x.fontWeight="bold":p!=="i"&&p!=="em"||(g?S.class="highcharts-emphasized":x.fontStyle="italic"),x&&x.color&&(x.fill=x.color),p==="br"?(S.class="highcharts-br",u.textContent="",(v=c[v+1])&&v.textContent&&(v.textContent=v.textContent.replace(/^ +/gm,""))):p==="a"&&M&&M.some(function(r){return r.tagName==="#text"})&&(u.children=[{children:M,tagName:"tspan"}]),p!=="#text"&&p!=="a"&&(u.tagName="tspan"),F(u,{attributes:S,style:x}),M&&M.filter(function(r){return r.tagName!=="#text"}).forEach(m)};c.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:c})},y.prototype.truncate=function(c,f,m,u,v,S){var M,x=this.svgElement,p=x.renderer,g=x.rotation,r=[],a=m?1:0,t=(f||m||"").length,i=t,o=function(s,n){n=n||s;var h=c.parentNode;if(h&&r[n]===void 0)if(h.getSubStringLength)try{r[n]=u+h.getSubStringLength(0,m?n+1:n)}catch(b){}else p.getSpanWidth&&(c.textContent=S(f||m,s),r[n]=u+p.getSpanWidth(x,c));return r[n]};x.rotation=0;var e=o(c.textContent.length);if(u+e>v){for(;a<=t;)i=Math.ceil((a+t)/2),m&&(M=S(m,i)),e=o(i,M&&M.length-1),a===t?a=t+1:e>v?t=i-1:a=i;t===0?c.textContent="":f&&t===f.length-1||(c.textContent=M||S(f||m,i))}m&&m.splice(0,i),x.actualWidth=e,x.rotation=g},y.prototype.unescapeEntities=function(c,f){return A(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(c=c.toString().replace(new RegExp(m,"g"),u))}),c},y}()}),_(et,"Core/Renderer/SVG/SVGRenderer.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGLabel.js"],et["Core/Renderer/SVG/Symbols.js"],et["Core/Renderer/SVG/TextBuilder.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I){var E,A=X.charts,P=X.deg2rad,y=X.doc,c=X.isFirefox,f=X.isMS,m=X.isWebKit,u=X.noop,v=X.SVG_NS,S=X.symbolSizes,M=X.win,x=I.addEvent,p=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,h=I.merge,b=I.pick,k=I.pInt,D=I.uniqueKey;return X=function(){function d(C,T,N,z,L,O,j){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(C,T,N,z,L,O,j)}return d.prototype.init=function(C,T,N,z,L,O,j){var Y,H=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),W=H.element;j||H.css(this.getStyle(z)),C.appendChild(W),p(C,"dir","ltr"),C.innerHTML.indexOf("xmlns")===-1&&p(W,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=W,this.boxWrapper=H,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=O,this.forExport=L,this.styledMode=j,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(T,N,!1),c&&C.getBoundingClientRect&&((T=function(){r(C,{left:0,top:0}),Y=C.getBoundingClientRect(),r(C,{left:Math.ceil(Y.left)-Y.left+"px",top:Math.ceil(Y.top)-Y.top+"px"})})(),this.unSubPixelFix=x(M,"resize",T))},d.prototype.definition=function(C){return new G([C]).addToDOM(this.defs.element)},d.prototype.getReferenceURL=function(){if((c||m)&&y.getElementsByTagName("base").length){if(!a(E)){var C=D();C=new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:C},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(C,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body),r(C,{position:"fixed",top:0,left:0,zIndex:9e5});var T=y.elementFromPoint(6,6);E=(T&&T.id)==="hitme",y.body.removeChild(C)}if(E)return M.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},d.prototype.getStyle=function(C){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},C)},d.prototype.setStyle=function(C){this.boxWrapper.css(this.getStyle(C))},d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},d.prototype.destroy=function(){var C=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),t(this.gradients||{}),this.gradients=null,C&&(this.defs=C.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},d.prototype.createElement=function(C){var T=new this.Element;return T.init(this,C),T},d.prototype.getRadialAttr=function(C,T){return{cx:C[0]-C[2]/2+(T.cx||0)*C[2],cy:C[1]-C[2]/2+(T.cy||0)*C[2],r:(T.r||0)*C[2]}},d.prototype.buildText=function(C){new F(C).buildSVG()},d.prototype.getContrast=function(C){return 1.05/(.05+(C=.2126*(C=B.parse(C).rgba.map(function(T){return .03928>=(T/=255)?T/12.92:Math.pow((T+.055)/1.055,2.4)}))[0]+.7152*C[1]+.0722*C[2]))>(C+.05)/.05?"#FFFFFF":"#000000"},d.prototype.button=function(C,T,N,z,L,O,j,Y,H,W){L===void 0&&(L={});var q=this.label(C,T,N,H,void 0,void 0,W,void 0,"button"),tt=this.styledMode;C=L.states||{};var J=0;delete(L=h(L)).states;var nt=h({color:"#333333",cursor:"pointer",fontWeight:"normal"},L.style);delete L.style;var lt=G.filterUserAttributes(L);if(q.attr(h({padding:8,r:2},lt)),!tt){lt=h({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt);var gt=(O=h(lt,{fill:"#e6e6e6"},G.filterUserAttributes(O||C.hover||{}))).style;delete O.style;var mt=(j=h(lt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(j||C.select||{}))).style;delete j.style;var bt=(Y=h(lt,{style:{color:"#cccccc"}},G.filterUserAttributes(Y||C.disabled||{}))).style;delete Y.style}return x(q.element,f?"mouseover":"mouseenter",function(){J!==3&&q.setState(1)}),x(q.element,f?"mouseout":"mouseleave",function(){J!==3&&q.setState(J)}),q.setState=function(yt){yt!==1&&(q.state=J=yt),q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][yt||0]),tt||(q.attr([lt,O,j,Y][yt||0]),s(yt=[nt,gt,mt,bt][yt||0])&&q.css(yt))},tt||(q.attr(lt).css(i({cursor:"default"},nt)),W&&q.text.css({pointerEvents:"none"})),q.on("touchstart",function(yt){return yt.stopPropagation()}).on("click",function(yt){J!==3&&z.call(q,yt)})},d.prototype.crispLine=function(C,T,N){N===void 0&&(N="round");var z=C[0],L=C[1];return a(z[1])&&z[1]===L[1]&&(z[1]=L[1]=Math[N](z[1])-T%2/2),a(z[2])&&z[2]===L[2]&&(z[2]=L[2]=Math[N](z[2])+T%2/2),C},d.prototype.path=function(C){var T=this.styledMode?{}:{fill:"none"};return o(C)?T.d=C:s(C)&&i(T,C),this.createElement("path").attr(T)},d.prototype.circle=function(C,T,N){return C=s(C)?C:C===void 0?{}:{x:C,y:T,r:N},(T=this.createElement("circle")).xSetter=T.ySetter=function(z,L,O){O.setAttribute("c"+L,z)},T.attr(C)},d.prototype.arc=function(C,T,N,z,L,O){return s(C)?(T=(z=C).y,N=z.r,C=z.x):z={innerR:z,start:L,end:O},(C=this.symbol("arc",C,T,N,N,z)).r=N,C},d.prototype.rect=function(C,T,N,z,L,O){L=s(C)?C.r:L;var j=this.createElement("rect");return C=s(C)?C:C===void 0?{}:{x:C,y:T,width:Math.max(N,0),height:Math.max(z,0)},this.styledMode||(O!==void 0&&(C["stroke-width"]=O,C=j.crisp(C)),C.fill="none"),L&&(C.r=L),j.rSetter=function(Y,H,W){j.r=Y,p(W,{rx:Y,ry:Y})},j.rGetter=function(){return j.r||0},j.attr(C)},d.prototype.setSize=function(C,T,N){this.width=C,this.height=T,this.boxWrapper.animate({width:C,height:T},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(N,!0)?void 0:0}),this.alignElements()},d.prototype.g=function(C){var T=this.createElement("g");return C?T.attr({class:"highcharts-"+C}):T},d.prototype.image=function(C,T,N,z,L,O){var j={preserveAspectRatio:"none"},Y=function(W,q){W.setAttributeNS?W.setAttributeNS("http://www.w3.org/1999/xlink","href",q):W.setAttribute("hc-svg-href",q)};e(T)&&(j.x=T),e(N)&&(j.y=N),e(z)&&(j.width=z),e(L)&&(j.height=L);var H=this.createElement("image").attr(j);return T=function(W){Y(H.element,C),O.call(H,W)},O?(Y(H.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),N=new M.Image,x(N,"load",T),N.src=C,N.complete&&T({})):Y(H.element,C),H},d.prototype.symbol=function(C,T,N,z,L,O){var j,Y=this,H=/^url\((.*?)\)$/,W=H.test(C),q=!W&&(this.symbols[C]?C:"circle"),tt=q&&this.symbols[q];if(tt){typeof T=="number"&&(j=tt.call(this.symbols,Math.round(T||0),Math.round(N||0),z||0,L||0,O));var J=this.path(j);Y.styledMode||J.attr("fill","none"),i(J,{symbolName:q||void 0,x:T,y:N,width:z,height:L}),O&&i(J,O)}else if(W){var nt=C.match(H)[1],lt=J=this.image(nt);lt.imgwidth=b(S[nt]&&S[nt].width,O&&O.width),lt.imgheight=b(S[nt]&&S[nt].height,O&&O.height);var gt=function(mt){return mt.attr({width:mt.width,height:mt.height})};["width","height"].forEach(function(mt){lt[mt+"Setter"]=function(bt,yt){this[yt]=bt,bt=this.alignByTranslate;var dt=this.element,ot=this.width,at=this.height,ut=this.imgwidth,vt=this.imgheight,Ct=this["img"+yt];if(a(Ct)){var xt=1;O&&O.backgroundSize==="within"&&ot&&at?(xt=Math.min(ot/ut,at/vt),Ct=Math.round(Ct*xt),p(dt,{width:Math.round(ut*xt),height:Math.round(vt*xt)})):dt&&dt.setAttribute(yt,Ct),bt||this.translate(((ot||0)-Ct*xt)/2,((at||0)-Ct*xt)/2)}}}),a(T)&<.attr({x:T,y:N}),lt.isImg=!0,a(lt.imgwidth)&&a(lt.imgheight)?gt(lt):(lt.attr({width:0,height:0}),g("img",{onload:function(){var mt=A[Y.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),S[nt]={width:this.width,height:this.height},lt.imgwidth=this.width,lt.imgheight=this.height,lt.element&>(lt),this.parentNode&&this.parentNode.removeChild(this),Y.imgCount--,Y.imgCount||!mt||mt.hasLoaded||mt.onload()},src:nt}),this.imgCount++)}return J},d.prototype.clipRect=function(C,T,N,z){var L=D()+"-",O=this.createElement("clipPath").attr({id:L}).add(this.defs);return(C=this.rect(C,T,N,z,0).add(O)).id=L,C.clipPath=O,C.count=0,C},d.prototype.text=function(C,T,N,z){var L={};return!z||!this.allowHTML&&this.forExport?(L.x=Math.round(T||0),N&&(L.y=Math.round(N)),a(C)&&(L.text=C),C=this.createElement("text").attr(L),(!z||this.forExport&&!this.allowHTML)&&(C.xSetter=function(O,j,Y){for(var H,W=Y.getElementsByTagName("tspan"),q=Y.getAttribute(j),tt=0;tt<W.length;tt++)(H=W[tt]).getAttribute(j)===q&&H.setAttribute(j,O);Y.setAttribute(j,O)}),C):this.html(C,T,N)},d.prototype.fontMetrics=function(C,T){return C=!this.styledMode&&/px/.test(C)||!M.getComputedStyle?C||T&&T.style&&T.style.fontSize||this.style&&this.style.fontSize:T&&$.prototype.getStyle.call(T,"font-size"),{h:T=24>(C=/px/.test(C)?k(C):12)?C+3:Math.round(1.2*C),b:Math.round(.8*T),f:C}},d.prototype.rotCorr=function(C,T,N){var z=C;return T&&N&&(z=Math.max(z*Math.cos(T*P),4)),{x:-C/3*Math.sin(T*P),y:z}},d.prototype.pathToSegments=function(C){for(var T=[],N=[],z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},L=0;L<C.length;L++)n(N[0])&&e(C[L])&&N.length===z[N[0].toUpperCase()]&&C.splice(L,0,N[0].replace("M","L").replace("m","l")),typeof C[L]=="string"&&(N.length&&T.push(N.slice(0)),N.length=0),N.push(C[L]);return T.push(N.slice(0)),T},d.prototype.label=function(C,T,N,z,L,O,j,Y,H){return new Z(this,C,T,N,z,L,O,j,Y,H)},d.prototype.alignElements=function(){this.alignedObjects.forEach(function(C){return C.align()})},d}(),i(X.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:V,draw:u}),U.registerRendererType("svg",X,!0),X}),_(et,"Core/Renderer/HTML/HTMLElement.js",[et["Core/Globals.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var c=function(f,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var S in v)v.hasOwnProperty(S)&&(u[S]=v[S])},c(f,m)};return function(f,m){function u(){this.constructor=f}c(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}}(),$=G.isFirefox,Z=G.isMS,V=G.isWebKit,F=G.win,I=X.css,E=X.defined,A=X.extend,P=X.pick,y=X.pInt;return function(c){function f(){return c!==null&&c.apply(this,arguments)||this}return U(f,c),f.compose=function(m){if(f.composedClasses.indexOf(m)===-1){f.composedClasses.push(m);var u=f.prototype,v=m.prototype;v.getSpanCorrection=u.getSpanCorrection,v.htmlCss=u.htmlCss,v.htmlGetBBox=u.htmlGetBBox,v.htmlUpdateTransform=u.htmlUpdateTransform,v.setSpanRotation=u.setSpanRotation}return m},f.prototype.getSpanCorrection=function(m,u,v){this.xCorr=-m*v,this.yCorr=-u},f.prototype.htmlCss=function(m){var u=this.element.tagName==="SPAN"&&m&&"width"in m,v=P(u&&m.width,void 0);if(u){delete m.width,this.textWidth=v;var S=!0}return m&&m.textOverflow==="ellipsis"&&(m.whiteSpace="nowrap",m.overflow="hidden"),this.styles=A(this.styles,m),I(this.element,m),S&&this.htmlUpdateTransform(),this},f.prototype.htmlGetBBox=function(){var m=this.element;return{x:m.offsetLeft,y:m.offsetTop,width:m.offsetWidth,height:m.offsetHeight}},f.prototype.htmlUpdateTransform=function(){if(this.added){var m=this.renderer,u=this.element,v=this.translateX||0,S=this.translateY||0,M=this.x||0,x=this.y||0,p=this.textAlign||"left",g={left:0,center:.5,right:1}[p],r=this.styles;if(r=r&&r.whiteSpace,I(u,{marginLeft:v,marginTop:S}),!m.styledMode&&this.shadows&&this.shadows.forEach(function(s){I(s,{marginLeft:v+1,marginTop:S+1})}),this.inverted&&[].forEach.call(u.childNodes,function(s){m.invertChild(s,u)}),u.tagName==="SPAN"){var a=this.rotation,t=this.textWidth&&y(this.textWidth),i=[a,p,u.innerHTML,this.textWidth,this.textAlign].join(),o=void 0;if(o=!1,t!==this.oldTextWidth){if(this.textPxLength)var e=this.textPxLength;else I(u,{width:"",whiteSpace:r||"nowrap"}),e=u.offsetWidth;(t>this.oldTextWidth||e>t)&&(/[ \-]/.test(u.textContent||u.innerText)||u.style.textOverflow==="ellipsis")&&(I(u,{width:e>t||a?t+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=t,o=!0)}this.hasBoxWidthChanged=o,i!==this.cTT&&(o=m.fontMetrics(u.style.fontSize,u).b,!E(a)||a===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(a,g,o),this.getSpanCorrection(!E(a)&&this.textPxLength||u.offsetWidth,o,g,a,p)),I(u,{left:M+(this.xCorr||0)+"px",top:x+(this.yCorr||0)+"px"}),this.cTT=i,this.oldRotation=a,this.oldAlign=p}}else this.alignOnAdd=!0},f.prototype.setSpanRotation=function(m,u,v){var S={},M=Z&&!/Edge/.test(F.navigator.userAgent)?"-ms-transform":V?"-webkit-transform":$?"MozTransform":F.opera?"-o-transform":void 0;M&&(S[M]=S.transform="rotate("+m+"deg)",S[M+($?"Origin":"-origin")]=S.transformOrigin=100*u+"% "+v+"px",I(this.element,S))},f.composedClasses=[],f}(B)}),_(et,"Core/Renderer/HTML/HTMLRenderer.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=U.attr,V=U.createElement,F=U.extend,I=U.pick;return function(E){function A(){return E!==null&&E.apply(this,arguments)||this}return $(A,E),A.compose=function(P){return A.composedClasses.indexOf(P)===-1&&(A.composedClasses.push(P),P.prototype.html=A.prototype.html),P},A.prototype.html=function(P,y,c){var f=this.createElement("span"),m=f.element,u=f.renderer,v=u.isSVG,S=function(M,x){["opacity","visibility"].forEach(function(p){M[p+"Setter"]=function(g,r,a){var t=M.div?M.div.style:x;B.prototype[p+"Setter"].call(this,g,r,a),t&&(t[r]=g)}}),M.addedSetters=!0};return f.textSetter=function(M){M!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,I(M,"")),this.textStr=M,f.doTransform=!0)},v&&S(f,f.element.style),f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(M,x){x==="align"?f.alignValue=f.textAlign=M:f[x]=M,f.doTransform=!0},f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},f.attr({text:P,x:Math.round(y),y:Math.round(c)}).css({position:"absolute"}),u.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),m.style.whiteSpace="nowrap",f.css=f.htmlCss,v&&(f.add=function(M){var x=u.box.parentNode,p=[];if(this.parentGroup=M){var g=M.div;if(!g){for(;M;)p.push(M),M=M.parentGroup;p.reverse().forEach(function(r){function a(e,s){r[s]=e,s==="translateX"?o.left=e+"px":o.top=e+"px",r.doTransform=!0}var t=Z(r.element,"class"),i=r.styles||{},o=(g=r.div=r.div||V("div",t?{className:t}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,cursor:i.cursor,pointerEvents:i.pointerEvents,visibility:r.visibility},g||x)).style;F(r,{classSetter:function(e){return function(s){this.element.setAttribute("class",s),e.className=s}}(g),on:function(){return p[0].div&&f.on.apply({element:p[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:a,translateYSetter:a}),r.addedSetters||S(r)})}}else g=x;return g.appendChild(m),f.added=!0,f.alignOnAdd&&f.htmlUpdateTransform(),f}),f},A.composedClasses=[],A}(X)}),_(et,"Core/Axis/AxisDefaults.js",[],function(){var G;return function(B){B.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},B.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},B.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},B.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},B.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},B.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(G||(G={})),G}),_(et,"Core/Foundation.js",[et["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.isFunction,$=G.objectEach,Z=G.removeEvent;return function(V){V.registerEventOptions=function(F,I){F.eventOptions=F.eventOptions||{},$(I.events,function(E,A){F.eventOptions[A]!==E&&(F.eventOptions[A]&&(Z(F,A,F.eventOptions[A]),delete F.eventOptions[A]),U(E)&&(F.eventOptions[A]=E,X(F,A,E)))})}}(B||(B={})),B}),_(et,"Core/Axis/Tick.js",[et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X){var U=B.deg2rad,$=X.clamp,Z=X.correctFloat,V=X.defined,F=X.destroyObjectProperties,I=X.extend,E=X.fireEvent,A=X.isNumber,P=X.merge,y=X.objectEach,c=X.pick;return B=function(){function f(m,u,v,S,M){this.isNewLabel=this.isNew=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=M||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||S||this.addLabel()}return f.prototype.addLabel=function(){var m=this,u=m.axis,v=u.options,S=u.chart,M=u.categories,x=u.logarithmic,p=u.names,g=m.pos,r=c(m.options&&m.options.labels,v.labels),a=u.tickPositions,t=g===a[0],i=g===a[a.length-1],o=(!r.step||r.step===1)&&u.tickInterval===1;a=a.info;var e,s=m.label;if(M=this.parameters.category||(M?c(M[g],p[g],g):g),x&&A(M)&&(M=Z(x.lin2log(M))),u.dateTime)if(a)var n=S.time.resolveDTLFormat(v.dateTimeLabelFormats[!v.grid&&a.higherRanks[g]||a.unitName]),h=n.main;else A(M)&&(h=u.dateTime.getXDateFormat(M,v.dateTimeLabelFormats||{}));m.isFirst=t,m.isLast=i;var b={axis:u,chart:S,dateTimeLabelFormat:h,isFirst:t,isLast:i,pos:g,tick:m,tickPositionInfo:a,value:M};E(this,"labelFormat",b);var k=function(d){return r.formatter?r.formatter.call(d,d):r.format?(d.text=u.defaultLabelFormatter.call(d,d),G.format(r.format,d,S)):u.defaultLabelFormatter.call(d,d)};v=k.call(b,b);var D=n&&n.list;m.shortenLabel=D?function(){for(e=0;e<D.length;e++)if(I(b,{dateTimeLabelFormat:D[e]}),s.attr({text:k.call(b,b)}),s.getBBox().width<u.getSlotWidth(m)-2*r.padding)return;s.attr({text:""})}:void 0,o&&u._addedPlotLB&&m.moveLabel(v,r),V(s)||m.movedLabel?s&&s.textStr!==v&&!o&&(!s.textWidth||r.style.width||s.styles.width||s.css({width:null}),s.attr({text:v}),s.textPxLength=s.getBBox().width):(m.label=s=m.createLabel({x:0,y:0},v,r),m.rotation=0)},f.prototype.createLabel=function(m,u,v){var S=this.axis,M=S.chart;return(m=V(u)&&v.enabled?M.renderer.text(u,m.x,m.y,v.useHTML).add(S.labelGroup):null)&&(M.styledMode||m.css(P(v.style)),m.textPxLength=m.getBBox().width),m},f.prototype.destroy=function(){F(this,this.axis)},f.prototype.getPosition=function(m,u,v,S){var M=this.axis,x=M.chart,p=S&&x.oldChartHeight||x.chartHeight;return(m={x:m?Z(M.translate(u+v,void 0,void 0,S)+M.transB):M.left+M.offset+(M.opposite?(S&&x.oldChartWidth||x.chartWidth)-M.right-M.left:0),y:m?p-M.bottom+M.offset-(M.opposite?M.height:0):Z(p-M.translate(u+v,void 0,void 0,S)-M.transB)}).y=$(m.y,-1e5,1e5),E(this,"afterGetPosition",{pos:m}),m},f.prototype.getLabelPosition=function(m,u,v,S,M,x,p,g){var r=this.axis,a=r.transA,t=r.isLinked&&r.linkedParent?r.linkedParent.reversed:r.reversed,i=r.staggerLines,o=r.tickRotCorr||{x:0,y:0},e=S||r.reserveSpaceDefault?0:-r.labelOffset*(r.labelAlign==="center"?.5:1),s={};return v=r.side===0?v.rotation?-8:-v.getBBox().height:r.side===2?o.y+8:Math.cos(v.rotation*U)*(o.y-v.getBBox(!1,0).height/2),V(M.y)&&(v=r.side===0&&r.horiz?M.y+v:M.y),m=m+M.x+e+o.x-(x&&S?x*a*(t?-1:1):0),u=u+v-(x&&!S?x*a*(t?1:-1):0),i&&(S=p/(g||1)%i,r.opposite&&(S=i-S-1),u+=r.labelOffset/i*S),s.x=m,s.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:s,tickmarkOffset:x,index:p}),s},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,S,M,x){return x.crispLine([["M",m,u],["L",m+(M?0:-v),u+(M?v:0)]],S)},f.prototype.handleOverflow=function(m){var u=this.axis,v=u.options.labels,S=m.x,M=u.chart.chartWidth,x=u.chart.spacing,p=c(u.labelLeft,Math.min(u.pos,x[3]));x=c(u.labelRight,Math.max(u.isRadial?0:u.pos+u.len,M-x[1]));var g,r=this.label,a=this.rotation,t={left:0,center:.5,right:1}[u.labelAlign||r.attr("align")],i=r.getBBox().width,o=u.getSlotWidth(this),e={},s=o,n=1;a||v.overflow!=="justify"?0>a&&S-t*i<p?g=Math.round(S/Math.cos(a*U)-p):0<a&&S+t*i>x&&(g=Math.round((M-S)/Math.cos(a*U))):(M=S+(1-t)*i,S-t*i<p?s=m.x+s*(1-t)-p:M>x&&(s=x-m.x+s*t,n=-1),(s=Math.min(o,s))<o&&u.labelAlign==="center"&&(m.x+=n*(o-s-t*(o-Math.min(i,s)))),(i>s||u.autoRotation&&(r.styles||{}).width)&&(g=s)),g&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(g)+"px",(v.style||{}).textOverflow||(e.textOverflow="ellipsis"),r.css(e)))},f.prototype.moveLabel=function(m,u){var v=this,S=v.label,M=v.axis,x=M.reversed,p=!1;if(S&&S.textStr===m?(v.movedLabel=S,p=!0,delete v.label):y(M.ticks,function(r){p||r.isNew||r===v||!r.label||r.label.textStr!==m||(v.movedLabel=r.label,p=!0,r.labelPos=v.movedLabel.xy,delete r.label)}),!p&&(v.labelPos||S)){var g=v.labelPos||S.xy;S=M.horiz?x?0:M.width+M.left:g.x,M=M.horiz?g.y:x?M.width+M.left:0,v.movedLabel=v.createLabel({x:S,y:M},m,u),v.movedLabel&&v.movedLabel.attr({opacity:0})}},f.prototype.render=function(m,u,v){var S=this.axis,M=S.horiz,x=this.pos,p=c(this.tickmarkOffset,S.tickmarkOffset);p=(x=this.getPosition(M,x,p,u)).x;var g=x.y;S=M&&p===S.pos+S.len||!M&&g===S.pos?-1:1,M=c(v,this.label&&this.label.newOpacity,1),v=c(v,1),this.isActive=!0,this.renderGridLine(u,v,S),this.renderMark(x,v,S),this.renderLabel(x,u,M,m),this.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var S=this.axis,M=S.options,x={},p=this.pos,g=this.type,r=c(this.tickmarkOffset,S.tickmarkOffset),a=S.chart.renderer,t=this.gridLine,i=M.gridLineWidth,o=M.gridLineColor,e=M.gridLineDashStyle;this.type==="minor"&&(i=M.minorGridLineWidth,o=M.minorGridLineColor,e=M.minorGridLineDashStyle),t||(S.chart.styledMode||(x.stroke=o,x["stroke-width"]=i||0,x.dashstyle=e),g||(x.zIndex=1),m&&(u=0),this.gridLine=t=a.path().attr(x).addClass("highcharts-"+(g?g+"-":"")+"grid-line").add(S.gridGroup)),t&&(v=S.getPlotLinePath({value:p+r,lineWidth:t.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&t[m||this.isNew?"attr":"animate"]({d:v,opacity:u})},f.prototype.renderMark=function(m,u,v){var S=this.axis,M=S.options,x=S.chart.renderer,p=this.type,g=S.tickSize(p?p+"Tick":"tick"),r=m.x;m=m.y;var a=c(M[p!=="minor"?"tickWidth":"minorTickWidth"],!p&&S.isXAxis?1:0);M=M[p!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,i=!t;g&&(S.opposite&&(g[0]=-g[0]),t||(this.mark=t=x.path().addClass("highcharts-"+(p?p+"-":"")+"tick").add(S.axisGroup),S.chart.styledMode||t.attr({stroke:M,"stroke-width":a})),t[i?"attr":"animate"]({d:this.getMarkPath(r,m,g[0],t.strokeWidth()*v,S.horiz,x),opacity:u}))},f.prototype.renderLabel=function(m,u,v,S){var M=this.axis,x=M.horiz,p=M.options,g=this.label,r=p.labels,a=r.step;M=c(this.tickmarkOffset,M.tickmarkOffset);var t=m.x;m=m.y;var i=!0;g&&A(t)&&(g.xy=m=this.getLabelPosition(t,m,g,x,r,M,S,a),this.isFirst&&!this.isLast&&!p.showFirstLabel||this.isLast&&!this.isFirst&&!p.showLastLabel?i=!1:!x||r.step||r.rotation||u||v===0||this.handleOverflow(m),a&&S%a&&(i=!1),i&&A(m.y)?(m.opacity=v,g[this.isNewLabel?"attr":"animate"](m).show(!0),this.isNewLabel=!1):(g.hide(),this.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m=this.label,u=this.axis,v=u.reversed;if(m&&!this.isNew){var S=u.horiz?v?u.left:u.width+u.left:m.xy.x;v=u.horiz?m.xy.y:v?u.width+u.top:u.top,m.animate({x:S,y:v,opacity:0},void 0,m.destroy),delete this.label}u.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},f}(),B}),_(et,"Core/Axis/Axis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/AxisDefaults.js"],et["Core/Color/Color.js"],et["Core/Defaults.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Axis/Tick.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F){var I=G.animObject,E=U.defaultOptions,A=$.registerEventOptions,P=Z.deg2rad,y=F.arrayMax,c=F.arrayMin,f=F.clamp,m=F.correctFloat,u=F.defined,v=F.destroyObjectProperties,S=F.erase,M=F.error,x=F.extend,p=F.fireEvent,g=F.isArray,r=F.isNumber,a=F.isString,t=F.merge,i=F.normalizeTickInterval,o=F.objectEach,e=F.pick,s=F.relativeLength,n=F.removeEvent,h=F.splat,b=F.syncTimeout,k=function(D,d){return i(d,void 0,void 0,e(D.options.allowDecimals,.5>d||D.tickAmount!==void 0),!!D.tickAmount)};return G=function(){function D(d,C){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(d,C)}return D.prototype.init=function(d,C){var T=C.isX;this.chart=d,this.horiz=d.inverted&&!this.isZAxis?!T:T,this.isXAxis=T,this.coll=this.coll||(T?"xAxis":"yAxis"),p(this,"init",{userOptions:C}),this.opposite=e(C.opposite,this.opposite),this.side=e(C.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(C);var N=this.options,z=N.labels,L=N.type;this.userOptions=C,this.minPixelPadding=0,this.reversed=e(N.reversed,this.reversed),this.visible=N.visible,this.zoomEnabled=N.zoomEnabled,this.hasNames=L==="category"||N.categories===!0,this.categories=N.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=u(N.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=N.minRange||N.maxZoom,this.range=N.range,this.offset=N.offset||0,this.min=this.max=null,C=e(N.crosshair,h(d.options.tooltip.crosshairs)[T?0:1]),this.crosshair=C===!0?{}:C,d.axes.indexOf(this)===-1&&(T?d.axes.splice(d.xAxis.length,0,this):d.axes.push(this),d[this.coll].push(this)),this.series=this.series||[],d.inverted&&!this.isZAxis&&T&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=r(z.rotation)?z.rotation:void 0,A(this,N),p(this,"afterInit")},D.prototype.setOptions=function(d){this.options=t(B.defaultXAxisOptions,this.coll==="yAxis"&&B.defaultYAxisOptions,[B.defaultTopAxisOptions,B.defaultRightAxisOptions,B.defaultBottomAxisOptions,B.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),p(this,"afterSetOptions",{userOptions:d})},D.prototype.defaultLabelFormatter=function(d){var C=this.axis;d=this.chart.numberFormatter;var T=r(this.value)?this.value:NaN,N=C.chart.time,z=this.dateTimeLabelFormat,L=E.lang,O=L.numericSymbols;L=L.numericSymbolMagnitude||1e3;var j=C.logarithmic?Math.abs(T):C.tickInterval,Y=O&&O.length;if(C.categories)var H="".concat(this.value);else if(z)H=N.dateFormat(z,T);else if(Y&&1e3<=j)for(;Y--&&H===void 0;)j>=(C=Math.pow(L,Y+1))&&10*T%C==0&&O[Y]!==null&&T!==0&&(H=d(T/C,-1)+O[Y]);return H===void 0&&(H=1e4<=Math.abs(T)?d(T,-1):d(T,-1,void 0,"")),H},D.prototype.getSeriesExtremes=function(){var d,C=this,T=C.chart;p(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!T.options.chart.ignoreHiddenSeries){var z=N.options,L=z.threshold;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&0>=L&&(L=null),C.isXAxis){if((z=N.xData).length){z=C.logarithmic?z.filter(C.validatePositiveValue):z;var O=(d=N.getXExtremes(z)).min,j=d.max;r(O)||O instanceof Date||(z=z.filter(r),O=(d=N.getXExtremes(z)).min,j=d.max),z.length&&(C.dataMin=Math.min(e(C.dataMin,O),O),C.dataMax=Math.max(e(C.dataMax,j),j))}}else N=N.applyExtremes(),r(N.dataMin)&&(O=N.dataMin,C.dataMin=Math.min(e(C.dataMin,O),O)),r(N.dataMax)&&(j=N.dataMax,C.dataMax=Math.max(e(C.dataMax,j),j)),u(L)&&(C.threshold=L),(!z.softThreshold||C.positiveValuesOnly)&&(C.softThreshold=!1)}})}),p(this,"afterGetSeriesExtremes")},D.prototype.translate=function(d,C,T,N,z,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding;z=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&z)&&O.lin2val;var H=1,W=0;return(N=N&&O.old?O.old.transA:O.transA)||(N=O.transA),T&&(H*=-1,W=O.len),O.reversed&&(W-=(H*=-1)*(O.sector||O.len)),C?(L=(d*H+W-Y)/N+j,z&&(L=O.lin2val(L))):(z&&(d=O.val2lin(d)),d=H*(d-j)*N,L=(O.isRadial?d:m(d))+W+H*Y+(r(L)?N*L:0)),L},D.prototype.toPixels=function(d,C){return this.translate(d,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(d,C){return this.translate(d-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(d){function C(yt,dt,ot){return bt!=="pass"&&(yt<dt||yt>ot)&&(bt?yt=f(yt,dt,ot):O=!0),yt}var T,N,z,L,O,j=this,Y=j.chart,H=j.left,W=j.top,q=d.old,tt=d.value,J=d.lineWidth,nt=q&&Y.oldChartHeight||Y.chartHeight,lt=q&&Y.oldChartWidth||Y.chartWidth,gt=j.transB,mt=d.translatedValue,bt=d.force;return d={value:tt,lineWidth:J,old:q,force:bt,acrossPanes:d.acrossPanes,translatedValue:mt},p(this,"getPlotLinePath",d,function(yt){mt=e(mt,j.translate(tt,void 0,void 0,q)),mt=f(mt,-1e5,1e5),T=z=Math.round(mt+gt),N=L=Math.round(nt-mt-gt),r(mt)?j.horiz?(N=W,L=nt-j.bottom,T=z=C(T,H,H+j.width)):(T=H,z=lt-j.right,N=L=C(N,W,W+j.height)):(O=!0,bt=!1),yt.path=O&&!bt?null:Y.renderer.crispLine([["M",T,N],["L",z,L]],J||1)}),d.path},D.prototype.getLinearTickPositions=function(d,C,T){var N=m(Math.floor(C/d)*d);T=m(Math.ceil(T/d)*d);var z,L=[];if(m(N+d)===N&&(z=20),this.single)return[C];for(C=N;C<=T&&(L.push(C),(C=m(C+d,z))!==O);)var O=C;return L},D.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},D.prototype.getMinorTickPositions=function(){var d=this.options,C=this.tickPositions,T=this.minorTickInterval,N=this.pointRangePadding||0,z=this.min-N,L=(N=this.max+N)-z,O=[];if(L&&L/T<this.len/3){var j=this.logarithmic;if(j)this.paddedTicks.forEach(function(Y,H,W){H&&O.push.apply(O,j.getLogTickPositions(T,W[H-1],W[H],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")O=O.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(T),z,N,d.startOfWeek));else for(d=z+(C[0]-z)%T;d<=N&&d!==O[0];d+=T)O.push(d)}return O.length!==0&&this.trimTicks(O),O},D.prototype.adjustForMinRange=function(){var d,C,T,N,z=this.options,L=this.logarithmic,O=this.min,j=this.max,Y=0;if(this.isXAxis&&this.minRange===void 0&&!L&&(u(z.min)||u(z.max)||u(z.floor)||u(z.ceiling)?this.minRange=null:(this.series.forEach(function(tt){if(T=tt.xData,N=tt.xIncrement?1:T.length-1,1<T.length)for(d=N;0<d;d--)C=T[d]-T[d-1],(!Y||C<Y)&&(Y=C)}),this.minRange=Math.min(5*Y,this.dataMax-this.dataMin))),j-O<this.minRange){var H=this.dataMax-this.dataMin>=this.minRange,W=this.minRange,q=(W-j+O)/2;q=[O-q,e(z.min,O-q)],H&&(q[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),j=[(O=y(q))+W,e(z.max,O+W)],H&&(j[2]=L?L.log2lin(this.dataMax):this.dataMax),(j=c(j))-O<W&&(q[0]=j-W,q[1]=e(z.min,j-W),O=y(q))}this.min=O,this.max=j},D.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(C){var T=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(T)&&N&&(d=u(d)?Math.min(d,T):T)}),d},D.prototype.nameToX=function(d){var C=g(this.options.categories),T=C?this.categories:this.names,N=d.options.x;if(d.series.requireSorting=!1,u(N)||(N=this.options.uniqueNames&&T?C?T.indexOf(d.name):e(T.keys[d.name],-1):d.series.autoIncrement()),N===-1){if(!C&&T)var z=T.length}else z=N;return z!==void 0?(this.names[z]=d.name,this.names.keys[d.name]=z):d.x&&(z=d.x),z},D.prototype.updateNames=function(){var d=this,C=this.names;0<C.length&&(Object.keys(C.keys).forEach(function(T){delete C.keys[T]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(T){T.xIncrement=null,T.points&&!T.isDirtyData||(d.max=Math.max(d.max,T.xData.length-1),T.processData(),T.generatePoints()),T.data.forEach(function(N,z){if(N&&N.options&&N.name!==void 0){var L=d.nameToX(N);L!==void 0&&L!==N.x&&(N.x=L,T.xData[z]=L)}})}))},D.prototype.setAxisTranslation=function(){var d=this,C=d.max-d.min,T=d.linkedParent,N=!!d.categories,z=d.isXAxis,L=d.axisPointRange||0,O=0,j=0,Y=d.transA;if(z||N||L){var H=d.getClosest();T?(O=T.minPointOffset,j=T.pointRangePadding):d.series.forEach(function(W){var q=N?1:z?e(W.options.pointRange,H,0):d.axisPointRange||0,tt=W.options.pointPlacement;L=Math.max(L,q),d.single&&!N||(W=W.is("xrange")?!z:z,O=Math.max(O,W&&a(tt)?0:q/2),j=Math.max(j,W&&tt==="on"?0:q))}),T=d.ordinal&&d.ordinal.slope&&H?d.ordinal.slope/H:1,d.minPointOffset=O*=T,d.pointRangePadding=j*=T,d.pointRange=Math.min(L,d.single&&N?1:C),z&&(d.closestPointRange=H)}d.translationSlope=d.transA=Y=d.staticScale||d.len/(C+j||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=Y*O,p(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(d){var C=this.chart,T=this.logarithmic,N=this.options,z=this.isXAxis,L=this.isLinked,O=N.tickPixelInterval,j=this.categories,Y=this.softThreshold,H=N.maxPadding,W=N.minPadding,q=r(N.tickInterval)&&0<=N.tickInterval?N.tickInterval:void 0,tt=r(this.threshold)?this.threshold:null;this.dateTime||j||L||this.getTickAmount();var J=e(this.userMin,N.min),nt=e(this.userMax,N.max);if(L){this.linkedParent=C[this.coll][N.linkedTo];var lt=this.linkedParent.getExtremes();this.min=e(lt.min,lt.dataMin),this.max=e(lt.max,lt.dataMax),N.type!==this.linkedParent.options.type&&M(11,1,C)}else{if(Y&&u(tt)){if(this.dataMin>=tt)lt=tt,W=0;else if(this.dataMax<=tt){var gt=tt;H=0}}this.min=e(J,lt,this.dataMin),this.max=e(nt,gt,this.dataMax)}if(T&&(this.positiveValuesOnly&&!d&&0>=Math.min(this.min,e(this.dataMin,this.min))&&M(10,1,C),this.min=m(T.log2lin(this.min),16),this.max=m(T.log2lin(this.max),16)),this.range&&u(this.max)&&(this.userMin=this.min=J=Math.max(this.dataMin,this.minFromRange()),this.userMax=nt=this.max,this.range=null),p(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(j||this.axisPointRange||this.stacking&&this.stacking.usePercentage||L)&&u(this.min)&&u(this.max)&&(C=this.max-this.min)&&(!u(J)&&W&&(this.min-=C*W),!u(nt)&&H&&(this.max+=C*H)),r(this.userMin)||(r(N.softMin)&&N.softMin<this.min&&(this.min=J=N.softMin),r(N.floor)&&(this.min=Math.max(this.min,N.floor))),r(this.userMax)||(r(N.softMax)&&N.softMax>this.max&&(this.max=nt=N.softMax),r(N.ceiling)&&(this.max=Math.min(this.max,N.ceiling))),Y&&u(this.dataMin)&&(tt=tt||0,!u(J)&&this.min<tt&&this.dataMin>=tt?this.min=this.options.minRange?Math.min(tt,this.max-this.minRange):tt:!u(nt)&&this.max>tt&&this.dataMax<=tt&&(this.max=this.options.minRange?Math.max(tt,this.min+this.minRange):tt)),r(this.min)&&r(this.max)&&!this.chart.polar&&this.min>this.max&&(u(this.options.min)?this.max=this.min:u(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:L&&this.linkedParent&&!q&&O===this.linkedParent.options.tickPixelInterval?q=this.linkedParent.tickInterval:e(q,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,j?1:(this.max-this.min)*O/Math.max(this.len,O)),z&&!d){var mt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(bt){bt.forceCrop=bt.forceCropping&&bt.forceCropping(),bt.processData(mt)}),p(this,"postProcessData",{hasExtremesChanged:mt})}this.setAxisTranslation(),p(this,"initialAxisTranslation"),this.pointRange&&!q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),d=e(N.minTickInterval,this.dateTime&&!this.series.some(function(bt){return bt.noSharedTooltip})?this.closestPointRange:0),!q&&this.tickInterval<d&&(this.tickInterval=d),this.dateTime||this.logarithmic||q||(this.tickInterval=k(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var d,C=this.options,T=C.tickPositions,N=C.tickPositioner,z=this.getMinorTickInterval(),L=this.hasVerticalPanning(),O=this.coll==="colorAxis",j=(O||!L)&&C.startOnTick;if(L=(O||!L)&&C.endOnTick,O=[],this.tickmarkOffset=this.categories&&C.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=z==="auto"&&this.tickInterval?this.tickInterval/5:z,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||C.allowDecimals!==!1),T)O=T.slice();else if(r(this.min)&&r(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)O=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,C.units),this.min,this.max,C.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)O=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(z=C=this.tickInterval;z<=2*C&&(O=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&O.length>this.tickAmount);)this.tickInterval=k(this,z*=1.1);else O=[this.min,this.max],M(19,!1,this.chart);O.length>this.len&&(O=[O[0],O[O.length-1]])[0]===O[1]&&(O.length=1),N&&(this.tickPositions=O,(d=N.apply(this,[this.min,this.max]))&&(O=d))}this.tickPositions=O,this.paddedTicks=O.slice(0),this.trimTicks(O,j,L),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&2>O.length&&!this.categories&&!this.series.some(function(Y){return Y.is("heatmap")&&Y.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),T||d||this.adjustTickAmount()),p(this,"afterSetTickPositions")},D.prototype.trimTicks=function(d,C,T){var N=d[0],z=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(p(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(T)this.max=z;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((z+N)/2)}},D.prototype.alignToOthers=function(){var d,C=this,T=[this],N=C.options,z=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||z)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(H){var W=H.options;return[H.horiz?W.left:W.top,W.width,W.height,W.pane].join()},j=O(this);this.chart[this.coll].forEach(function(H){var W=H.series;W.length&&W.some(function(q){return q.visible})&&H!==C&&O(H)===j&&(d=!0,T.push(H))})}if(d&&z){T.forEach(function(H){H=H.getThresholdAlignment(C),r(H)&&L.push(H)});var Y=1<L.length?L.reduce(function(H,W){return H+W},0)/L.length:void 0;T.forEach(function(H){H.thresholdAlignment=Y})}return d},D.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(C){return C.isDirty||C.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold))return d=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(d=1-d),d},D.prototype.getTickAmount=function(){var d=this.options,C=d.tickPixelInterval,T=d.tickAmount;!u(d.tickInterval)&&!T&&this.len<C&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(T=2),!T&&this.alignToOthers()&&(T=Math.ceil(this.len/C)+1),4>T&&(this.finalTickAmt=T,T=5),this.tickAmount=T},D.prototype.adjustTickAmount=function(){var d=this,C=d.finalTickAmt,T=d.max,N=d.min,z=d.options,L=d.tickPositions,O=d.tickAmount,j=d.thresholdAlignment,Y=L&&L.length,H=e(d.threshold,d.softThreshold?0:null),W=d.tickInterval;if(r(j)){var q=.5>j?Math.ceil(j*(O-1)):Math.floor(j*(O-1));z.reversed&&(q=O-1-q)}if(d.hasData()&&r(N)&&r(T)){if(j=function(){d.transA*=(Y-1)/(O-1),d.min=z.startOnTick?L[0]:Math.min(N,L[0]),d.max=z.endOnTick?L[L.length-1]:Math.max(T,L[L.length-1])},r(q)&&r(d.threshold)){for(;L[q]!==H||L.length!==O||L[0]>N||L[L.length-1]<T;){for(L.length=0,L.push(d.threshold);L.length<O;)L[q]===void 0||L[q]>d.threshold?L.unshift(m(L[0]-W)):L.push(m(L[L.length-1]+W));if(W>8*d.tickInterval)break;W*=2}j()}else if(Y<O){for(;L.length<O;)L.length%2||N===H?L.push(m(L[L.length-1]+W)):L.unshift(m(L[0]-W));j()}if(u(C)){for(W=H=L.length;W--;)(C===3&&W%2==1||2>=C&&0<W&&W<H-1)&&L.splice(W,1);d.finalTickAmt=void 0}}},D.prototype.setScale=function(){var d=!1,C=!1;this.series.forEach(function(N){d=d||N.isDirtyData||N.isDirty,C=C||N.xAxis&&N.xAxis.isDirty||!1}),this.setAxisSize();var T=this.len!==(this.old&&this.old.len);T||d||C||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=T||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),d&&this.panningState&&(this.panningState.isDirty=!0),p(this,"afterSetScale")},D.prototype.setExtremes=function(d,C,T,N,z){var L=this,O=L.chart;T=e(T,!0),L.series.forEach(function(j){delete j.kdTree}),z=x(z,{min:d,max:C}),p(L,"setExtremes",z,function(){L.userMin=d,L.userMax=C,L.eventArgs=z,T&&O.redraw(N)})},D.prototype.zoom=function(d,C){var T=this,N=this.dataMin,z=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(z,e(L.max,z));return p(this,"zoom",d={newMin:d,newMax:C},function(Y){var H=Y.newMin,W=Y.newMax;H===T.min&&W===T.max||(T.allowZoomOutside||(u(N)&&(H<O&&(H=O),H>j&&(H=j)),u(z)&&(W<O&&(W=O),W>j&&(W=j))),T.displayBtn=H!==void 0||W!==void 0,T.setExtremes(H,W,!1,void 0,{trigger:"zoom"})),Y.zoomed=!0}),d.zoomed},D.prototype.setAxisSize=function(){var d=this.chart,C=this.options,T=C.offsets||[0,0,0,0],N=this.horiz,z=this.width=Math.round(s(e(C.width,d.plotWidth-T[3]+T[1]),d.plotWidth)),L=this.height=Math.round(s(e(C.height,d.plotHeight-T[0]+T[2]),d.plotHeight)),O=this.top=Math.round(s(e(C.top,d.plotTop+T[0]),d.plotHeight,d.plotTop));C=this.left=Math.round(s(e(C.left,d.plotLeft+T[3]),d.plotWidth,d.plotLeft)),this.bottom=d.chartHeight-L-O,this.right=d.chartWidth-z-C,this.len=Math.max(N?z:L,0),this.pos=N?C:O},D.prototype.getExtremes=function(){var d=this.logarithmic;return{min:d?m(d.lin2log(this.min)):this.min,max:d?m(d.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},D.prototype.getThreshold=function(d){var C=this.logarithmic,T=C?C.lin2log(this.min):this.min;return C=C?C.lin2log(this.max):this.max,d===null||d===-1/0?d=T:d===1/0?d=C:T>d?d=T:C<d&&(d=C),this.translate(d,0,1,0,1)},D.prototype.autoLabelAlign=function(d){var C=(e(d,0)-90*this.side+720)%360;return p(this,"autoLabelAlign",d={align:"center"},function(T){15<C&&165>C?T.align="right":195<C&&345>C&&(T.align="left")}),d.align},D.prototype.tickSize=function(d){var C=this.options,T=e(C[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),N=C[d==="tick"?"tickLength":"minorTickLength"];if(T&&N){C[d+"Position"]==="inside"&&(N=-N);var z=[N,T]}return p(this,"afterTickSize",d={tickSize:z}),d.tickSize},D.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},D.prototype.unsquish=function(){var d=this.options.labels,C=this.horiz,T=this.tickInterval,N=this.len/(((this.categories?1:0)+this.max-this.min)/T),z=d.rotation,L=this.labelMetrics(),O=Math.max(this.max-this.min,0),j=function(gt){var mt=gt/(N||1);return(mt=1<mt?Math.ceil(mt):1)*T>O&>!==1/0&&N!==1/0&&O&&(mt=Math.ceil(O/T)),m(mt*T)},Y=T,H=Number.MAX_VALUE;if(C){if(!d.staggerLines)if(r(z))var W=[z];else N<d.autoRotationLimit&&(W=d.autoRotation);if(W)for(var q=C=void 0,tt=0,J=W;tt<J.length;tt++){var nt=J[tt];if((nt===z||nt&&-90<=nt&&90>=nt)&&(q=(C=j(Math.abs(L.h/Math.sin(P*nt))))+Math.abs(nt/360))<H){H=q;var lt=nt;Y=C}}}else Y=j(L.h);return this.autoRotation=W,this.labelRotation=e(lt,r(z)?z:0),d.step?T:Y},D.prototype.getSlotWidth=function(d){var C=this.chart,T=this.horiz,N=this.options.labels,z=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(T&&2>N.step)return N.rotation?0:(this.staggerLines||1)*this.len/z;if(!T){if((d=N.style.width)!==void 0)return parseInt(String(d),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var d=this.chart,C=d.renderer,T=this.tickPositions,N=this.ticks,z=this.options.labels,L=z.style,O=this.horiz,j=this.getSlotWidth(),Y=Math.max(1,Math.round(j-2*z.padding)),H={},W=this.labelMetrics(),q=L.textOverflow,tt=0;if(a(z.rotation)||(H.rotation=z.rotation||0),T.forEach(function(gt){(gt=N[gt]).movedLabel&>.replaceMovedLabel(),gt&>.label&>.label.textPxLength>tt&&(tt=gt.label.textPxLength)}),this.maxLabelLength=tt,this.autoRotation)tt>Y&&tt>W.h?H.rotation=this.labelRotation:this.labelRotation=0;else if(j){var J=Y;if(!q){var nt="clip";for(Y=T.length;!O&&Y--;){var lt=T[Y];(lt=N[lt].label)&&(lt.styles&<.styles.textOverflow==="ellipsis"?lt.css({textOverflow:"clip"}):lt.textPxLength>j&<.css({width:j+"px"}),lt.getBBox().height>this.len/T.length-(W.h-W.f)&&(lt.specificTextOverflow="ellipsis"))}}}H.rotation&&(J=tt>.5*d.chartHeight?.33*d.chartHeight:tt,q||(nt="ellipsis")),(this.labelAlign=z.align||this.autoLabelAlign(this.labelRotation))&&(H.align=this.labelAlign),T.forEach(function(gt){var mt=(gt=N[gt])&>.label,bt=L.width,yt={};mt&&(mt.attr(H),gt.shortenLabel?gt.shortenLabel():J&&!bt&&L.whiteSpace!=="nowrap"&&(J<mt.textPxLength||mt.element.tagName==="SPAN")?(yt.width=J+"px",q||(yt.textOverflow=mt.specificTextOverflow||nt),mt.css(yt)):mt.styles&&mt.styles.width&&!yt.width&&!bt&&mt.css({width:null}),delete mt.specificTextOverflow,gt.rotation=H.rotation)},this),this.tickRotCorr=C.rotCorr(W.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(d){var C,T=this.chart.renderer,N=this.horiz,z=this.opposite,L=this.options.title,O=this.chart.styledMode;this.axisTitle||((C=L.textAlign)||(C=(N?{low:"left",middle:"center",high:"right"}:{low:z?"right":"left",middle:"center",high:z?"left":"right"})[L.align]),this.axisTitle=T.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:C}).addClass("highcharts-axis-title"),O||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),O||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[d?"show":"hide"](d)},D.prototype.generateTick=function(d){var C=this.ticks;C[d]?C[d].addLabel():C[d]=new V(this,d)},D.prototype.getOffset=function(){var d=this,C=this,T=C.chart,N=C.horiz,z=C.options,L=C.side,O=C.ticks,j=C.tickPositions,Y=C.coll,H=C.axisParent,W=T.renderer,q=T.inverted&&!C.isZAxis?[1,0,3,2][L]:L,tt=C.hasData(),J=z.title,nt=z.labels,lt=T.axisOffset;T=T.clipOffset;var gt,mt=[-1,1,1,-1][L],bt=z.className,yt=0,dt=0,ot=0;if(C.showAxis=gt=tt||z.showEmpty,C.staggerLines=C.horiz&&nt.staggerLines||void 0,!C.axisGroup){var at=function(vt,Ct,xt){return W.g(vt).attr({zIndex:xt}).addClass("highcharts-".concat(Y.toLowerCase()).concat(Ct," ")+(d.isRadial?"highcharts-radial-axis".concat(Ct," "):"")+(bt||"")).add(H)};C.gridGroup=at("grid","-grid",z.gridZIndex),C.axisGroup=at("axis","",z.zIndex),C.labelGroup=at("axis-labels","-labels",nt.zIndex)}if(tt||C.isLinked?(j.forEach(function(vt){C.generateTick(vt)}),C.renderUnsquish(),C.reserveSpaceDefault=L===0||L===2||{1:"left",3:"right"}[L]===C.labelAlign,e(nt.reserveSpace,C.labelAlign==="center"||null,C.reserveSpaceDefault)&&j.forEach(function(vt){ot=Math.max(O[vt].getLabelSize(),ot)}),C.staggerLines&&(ot*=C.staggerLines),C.labelOffset=ot*(C.opposite?-1:1)):o(O,function(vt,Ct){vt.destroy(),delete O[Ct]}),J&&J.text&&J.enabled!==!1&&(C.addTitle(gt),gt&&J.reserveSpace!==!1)){C.titleOffset=yt=C.axisTitle.getBBox()[N?"height":"width"];var ut=J.offset;dt=u(ut)?0:e(J.margin,N?5:10)}C.renderLine(),C.offset=mt*e(z.offset,lt[L]?lt[L]+(z.margin||0):0),C.tickRotCorr=C.tickRotCorr||{x:0,y:0},J=L===0?-C.labelMetrics().h:L===2?C.tickRotCorr.y:0,tt=Math.abs(ot)+dt,ot&&(tt=tt-J+mt*(N?e(nt.y,C.tickRotCorr.y+8*mt):nt.x)),C.axisTitleMargin=e(ut,tt),C.getMaxLabelDimensions&&(C.maxLabelDimensions=C.getMaxLabelDimensions(O,j)),Y!=="colorAxis"&&(N=this.tickSize("tick"),lt[L]=Math.max(lt[L],(C.axisTitleMargin||0)+yt+mt*C.offset,tt,j&&j.length&&N?N[0]+mt*C.offset:0),z=!C.axisLine||z.offset?0:2*Math.floor(C.axisLine.strokeWidth()/2),T[q]=Math.max(T[q],z)),p(this,"afterGetOffset")},D.prototype.getLinePath=function(d){var C=this.chart,T=this.opposite,N=this.offset,z=this.horiz,L=this.left+(T?this.width:0)+N;return N=C.chartHeight-this.bottom-(T?this.height:0)+N,T&&(d*=-1),C.renderer.crispLine([["M",z?this.left:L,z?N:this.top],["L",z?C.chartWidth-this.right:L,z?N:C.chartHeight-this.bottom]],d)},D.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}))},D.prototype.getTitlePosition=function(){var d=this.horiz,C=this.left,T=this.top,N=this.len,z=this.options.title,L=d?C:T,O=this.opposite,j=this.offset,Y=z.x,H=z.y,W=this.axisTitle,q=this.chart.renderer.fontMetrics(z.style.fontSize,W);return W=W?Math.max(W.getBBox(!1,0).height-q.h-1,0):0,N={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[z.align],C=(d?T+this.height:C)+(d?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-W,W,q.f,-W][this.side],d={x:d?N+Y:C+(O?this.width:0)+j+Y,y:d?C+H-(O?this.height:0)+j:N+H},p(this,"afterGetTitlePosition",{titlePosition:d}),d},D.prototype.renderMinorTick=function(d,C){var T=this.minorTicks;T[d]||(T[d]=new V(this,d,"minor")),C&&T[d].isNew&&T[d].render(null,!0),T[d].render(null,!1,1)},D.prototype.renderTick=function(d,C,T){var N=this.ticks;(!this.isLinked||d>=this.min&&d<=this.max||this.grid&&this.grid.isColumn)&&(N[d]||(N[d]=new V(this,d)),T&&N[d].isNew&&N[d].render(C,!0,-1),N[d].render(C))},D.prototype.render=function(){var d,C,T=this,N=T.chart,z=T.logarithmic,L=T.options,O=T.isLinked,j=T.tickPositions,Y=T.axisTitle,H=T.ticks,W=T.minorTicks,q=T.alternateBands,tt=L.stackLabels,J=L.alternateGridColor,nt=T.tickmarkOffset,lt=T.axisLine,gt=T.showAxis,mt=I(N.renderer.globalAnimation);if(T.labelEdge.length=0,T.overlap=!1,[H,W,q].forEach(function(yt){o(yt,function(dt){dt.isActive=!1})}),T.hasData()||O){var bt=T.chart.hasRendered&&T.old&&r(T.old.min);T.minorTickInterval&&!T.categories&&T.getMinorTickPositions().forEach(function(yt){T.renderMinorTick(yt,bt)}),j.length&&(j.forEach(function(yt,dt){T.renderTick(yt,dt,bt)}),nt&&(T.min===0||T.single)&&(H[-1]||(H[-1]=new V(T,-1,null,!0)),H[-1].render(-1))),J&&j.forEach(function(yt,dt){C=j[dt+1]!==void 0?j[dt+1]+nt:T.max-nt,dt%2==0&&yt<T.max&&C<=T.max+(N.polar?-nt:nt)&&(q[yt]||(q[yt]=new Z.PlotLineOrBand(T)),d=yt+nt,q[yt].options={from:z?z.lin2log(d):d,to:z?z.lin2log(C):C,color:J,className:"highcharts-alternate-grid"},q[yt].render(),q[yt].isActive=!0)}),T._addedPlotLB||(T._addedPlotLB=!0,(L.plotLines||[]).concat(L.plotBands||[]).forEach(function(yt){T.addPlotBandOrLine(yt)}))}[H,W,q].forEach(function(yt){var dt=[],ot=mt.duration;o(yt,function(at,ut){at.isActive||(at.render(ut,!1,0),at.isActive=!1,dt.push(ut))}),b(function(){for(var at=dt.length;at--;)yt[dt[at]]&&!yt[dt[at]].isActive&&(yt[dt[at]].destroy(),delete yt[dt[at]])},yt!==q&&N.hasRendered&&ot?ot:0)}),lt&&(lt[lt.isPlaced?"animate":"attr"]({d:this.getLinePath(lt.strokeWidth())}),lt.isPlaced=!0,lt[gt?"show":"hide"](gt)),Y&>&&(L=T.getTitlePosition(),Y[Y.isNew?"attr":"animate"](L),Y.isNew=!1),tt&&tt.enabled&&T.stacking&&T.stacking.renderStackTotals(),T.old={len:T.len,max:T.max,min:T.min,transA:T.transA,userMax:T.userMax,userMin:T.userMin},T.isDirty=!1,p(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(d){var C=this,T=C.plotLinesAndBands,N=this.eventOptions;if(p(this,"destroy",{keepEvents:d}),d||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(L){v(L)}),T)for(d=T.length;d--;)T[d].destroy();for(var z in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(L){C[L]&&(C[L]=C[L].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[z]=C.plotLinesAndBandsGroups[z].destroy();o(C,function(L,O){C.getKeepProps().indexOf(O)===-1&&delete C[O]}),this.eventOptions=N},D.prototype.drawCrosshair=function(d,C){var T,N=this.crosshair,z=e(N&&N.snap,!0),L=this.chart,O=this.cross;if(p(this,"drawCrosshair",{e:d,point:C}),d||(d=this.cross&&this.cross.e),N&&(u(C)||!z)!==!1){if(z?u(C)&&(T=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):T=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(T)){var j={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:T};L.polar&&x(j,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:C}),j=this.getPlotLinePath(j)||null}if(!u(j))return void this.hideCrosshair();z=this.categories&&!this.isRadial,O||(this.cross=O=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(z?"category ":"thin ")+(N.className||"")).attr({zIndex:e(N.zIndex,2)}).add(),L.styledMode||(O.attr({stroke:N.color||(z?X.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(N.width,1)}).css({"pointer-events":"none"}),N.dashStyle&&O.attr({dashstyle:N.dashStyle}))),O.show().attr({d:j}),z&&!N.width&&O.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:d,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),p(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},D.prototype.validatePositiveValue=function(d){return r(d)&&0<d},D.prototype.update=function(d,C){var T=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(T,d),T.isDirtyBox=!0,e(C,!0)&&T.redraw()},D.prototype.remove=function(d){for(var C=this.chart,T=this.coll,N=this.series,z=N.length;z--;)N[z]&&N[z].remove(!1);S(C.axes,this),S(C[T],this),C[T].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(d,!0)&&C.redraw()},D.prototype.setTitle=function(d,C){this.update({title:d},C)},D.prototype.setCategories=function(d,C){this.update({categories:d},C)},D.defaultOptions=B.defaultXAxisOptions,D.keepProps="extKey hcEvents names series userMax userMin".split(" "),D}(),G}),_(et,"Core/Axis/DateTimeAxis.js",[et["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.getMagnitude,$=G.normalizeTickInterval,Z=G.timeUnits;return function(V){function F(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(P){P.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new A(this))}var E=[];V.compose=function(P){return E.indexOf(P)===-1&&(E.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=F,X(P,"init",I)),P};var A=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,c){var f=c||[["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]];c=f[f.length-1];var m,u=Z[c[0]],v=c[1];for(m=0;m<f.length&&(c=f[m],u=Z[c[0]],v=c[1],!(f[m+1]&&y<=(u*v[v.length-1]+Z[f[m+1][0]])/2));m++);return u===Z.year&&y<5*u&&(v=[1,2,5]),{unitRange:u,count:y=$(y/u,v,c[0]==="year"?Math.max(U(y/u),1):1),unitName:c[0]}},P.prototype.getXDateFormat=function(y,c){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,c)||m.resolveDTLFormat(c.year).main:m.resolveDTLFormat(c.day).main},P}();V.Additions=A}(B||(B={})),B}),_(et,"Core/Axis/LogarithmicAxis.js",[et["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.normalizeTickInterval,$=G.pick;return function(Z){function V(A){var P=this.logarithmic;A.userOptions.type!=="logarithmic"?this.logarithmic=void 0:P||(this.logarithmic=new E(this))}function F(){var A=this.logarithmic;A&&(this.lin2val=function(P){return A.lin2log(P)},this.val2lin=function(P){return A.log2lin(P)})}var I=[];Z.compose=function(A){return I.indexOf(A)===-1&&(I.push(A),A.keepProps.push("logarithmic"),X(A,"init",V),X(A,"afterInit",F)),A};var E=function(){function A(P){this.axis=P}return A.prototype.getLogTickPositions=function(P,y,c,f){var m=this.axis,u=m.len,v=m.options,S=[];if(f||(this.minorAutoInterval=void 0),.5<=P)P=Math.round(P),S=m.getLinearTickPositions(P,y,c);else if(.08<=P){var M,x=Math.floor(y),p=v=void 0;for(u=.3<P?[1,2,4]:.15<P?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];x<c+1&&!p;x++){var g=u.length;for(M=0;M<g&&!p;M++){var r=this.log2lin(this.lin2log(x)*u[M]);r>y&&(!f||v<=c)&&v!==void 0&&S.push(v),v>c&&(p=!0),v=r}}}else y=this.lin2log(y),c=this.lin2log(c),P=f?m.getMinorTickInterval():v.tickInterval,P=$(P==="auto"?null:P,this.minorAutoInterval,v.tickPixelInterval/(f?5:1)*(c-y)/((f?u/m.tickPositions.length:u)||1)),P=U(P),S=m.getLinearTickPositions(P,y,c).map(this.log2lin),f||(this.minorAutoInterval=P/5);return f||(m.tickInterval=P),S},A.prototype.lin2log=function(P){return Math.pow(10,P)},A.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},A}();Z.Additions=E}(B||(B={})),B}),_(et,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[et["Core/Utilities.js"]],function(G){var B,X=G.erase,U=G.extend,$=G.isNumber;return function(Z){var V,F=[];Z.compose=function(E,A){return V||(V=E),F.indexOf(A)===-1&&(F.push(A),U(A.prototype,I.prototype)),A};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(A,P,y){y===void 0&&(y=this.options);var c=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),f=[],m=this.horiz;if(P=!$(this.min)||!$(this.max)||A<this.min&&P<this.min||A>this.max&&P>this.max,A=this.getPlotLinePath({value:A,force:!0,acrossPanes:y.acrossPanes}),y=1,A&&c){if(P){var u=A.toString()===c.toString();y=0}for(P=0;P<A.length;P+=2){var v=A[P],S=A[P+1],M=c[P],x=c[P+1];v[0]!=="M"&&v[0]!=="L"||S[0]!=="M"&&S[0]!=="L"||M[0]!=="M"&&M[0]!=="L"||x[0]!=="M"&&x[0]!=="L"||(m&&M[1]===v[1]?(M[1]+=y,x[1]+=y):m||M[2]!==v[2]||(M[2]+=y,x[2]+=y),f.push(["M",v[1],v[2]],["L",S[1],S[2]],["L",x[1],x[2]],["L",M[1],M[2]],["Z"])),f.isFlat=u}}return f},E.prototype.addPlotBand=function(A){return this.addPlotBandOrLine(A,"plotBands")},E.prototype.addPlotLine=function(A){return this.addPlotBandOrLine(A,"plotLines")},E.prototype.addPlotBandOrLine=function(A,P){var y=this,c=this.userOptions,f=new V(this,A);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=c[P]||[];m.push(A),c[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(A){var P=this.plotLinesAndBands,y=this.options,c=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===A&&P[f].destroy();[y.plotLines||[],c.plotLines||[],y.plotBands||[],c.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===A&&X(m,m[f])})}},E.prototype.removePlotBand=function(A){this.removePlotBandOrLine(A)},E.prototype.removePlotLine=function(A){this.removePlotBandOrLine(A)},E}()}(B||(B={})),B}),_(et,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[et["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],et["Core/Utilities.js"]],function(G,B){var X=B.arrayMax,U=B.arrayMin,$=B.defined,Z=B.destroyObjectProperties,V=B.erase,F=B.fireEvent,I=B.merge,E=B.objectEach,A=B.pick;return B=function(){function P(y,c){this.axis=y,c&&(this.options=c,this.id=c.id)}return P.compose=function(y){return G.compose(P,y)},P.prototype.render=function(){F(this,"render");var y=this,c=y.axis,f=c.horiz,m=c.logarithmic,u=y.options,v=u.color,S=A(u.zIndex,0),M=u.events,x={},p=c.chart.renderer,g=u.label,r=y.label,a=u.to,t=u.from,i=u.value,o=y.svgElem,e=[],s=$(t)&&$(a);e=$(i);var n=!o,h={class:"highcharts-plot-"+(s?"band ":"line ")+(u.className||"")},b=s?"bands":"lines";if(m&&(t=m.log2lin(t),a=m.log2lin(a),i=m.log2lin(i)),c.chart.styledMode||(e?(h.stroke=v||"#999999",h["stroke-width"]=A(u.width,1),u.dashStyle&&(h.dashstyle=u.dashStyle)):s&&(h.fill=v||"#e6ebf5",u.borderWidth&&(h.stroke=u.borderColor,h["stroke-width"]=u.borderWidth))),x.zIndex=S,b+="-"+S,(m=c.plotLinesAndBandsGroups[b])||(c.plotLinesAndBandsGroups[b]=m=p.g("plot-"+b).attr(x).add()),n&&(y.svgElem=o=p.path().attr(h).add(m)),e)e=c.getPlotLinePath({value:i,lineWidth:o.strokeWidth(),acrossPanes:u.acrossPanes});else{if(!s)return;e=c.getPlotBandPath(t,a,u)}return!y.eventsAdded&&M&&(E(M,function(k,D){o.on(D,function(d){M[D].apply(y,[d])})}),y.eventsAdded=!0),(n||!o.d)&&e&&e.length?o.attr({d:e}):o&&(e?(o.show(),o.animate({d:e})):o.d&&(o.hide(),r&&(y.label=r=r.destroy()))),g&&($(g.text)||$(g.formatter))&&e&&e.length&&0<c.width&&0<c.height&&!e.isFlat?(g=I({align:f&&s&&"center",x:f?!s&&4:10,verticalAlign:!f&&s&&"middle",y:f?s?16:10:s?6:-4,rotation:f&&!s&&90},g),this.renderLabel(g,e,s,S)):r&&r.hide(),y},P.prototype.renderLabel=function(y,c,f,m){var u=this.axis,v=u.chart.renderer,S=this.label;S||(this.label=S=v.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),u.chart.styledMode||S.css(I({textOverflow:"ellipsis"},y.style))),m=c.xBounds||[c[0][1],c[1][1],f?c[2][1]:c[0][1]],c=c.yBounds||[c[0][2],c[1][2],f?c[2][2]:c[0][2]],f=U(m),v=U(c),S.align(y,!1,{x:f,y:v,width:X(m)-f,height:X(c)-v}),S.alignValue&&S.alignValue!=="left"||(y=y.clip?u.width:u.chart.chartWidth,S.css({width:(S.rotation===90?u.height-(S.alignAttr.y-u.top):y-(S.alignAttr.x-u.left))+"px"})),S.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){V(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}(),B}),_(et,"Core/Tooltip.js",[et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.format,V=B.doc,F=X.distribute,I=$.clamp,E=$.css,A=$.discardElement,P=$.extend,y=$.fireEvent,c=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,S=$.splat,M=$.syncTimeout;return G=function(){function x(p,g){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=p,this.init(p,g)}return x.prototype.applyFilter=function(){var p=this.chart;p.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+p.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"}}]}]})},x.prototype.bodyFormatter=function(p){return p.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(p){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||p?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(p){var g=this.points||S(this),r=[p.tooltipFooterHeaderFormatter(g[0])];return(r=r.concat(p.bodyFormatter(g))).push(p.tooltipFooterHeaderFormatter(g[0],!0)),r},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),A(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(p,g){var r=this.chart,a=r.pointer,t=r.inverted,i=r.plotTop;if(r=r.plotLeft,(p=S(p))[0].series&&p[0].series.yAxis&&!p[0].series.yAxis.options.reversedStacks&&(p=p.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=a.normalize(g)),p=[g.chartX-r,g.chartY-i];else if(p[0].tooltipPos)p=p[0].tooltipPos;else{var o=0,e=0;p.forEach(function(s){(s=s.pos(!0))&&(o+=s[0],e+=s[1])}),o/=p.length,e/=p.length,this.shared&&1<p.length&&g&&(t?o=g.chartX:e=g.chartY),p=[o-r,e-i]}return p.map(Math.round)},x.prototype.getClassName=function(p,g,r){var a=p.series,t=a.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(p.colorIndex,a.colorIndex),t&&t.className].filter(m).join(" ")},x.prototype.getLabel=function(){var p,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){e=this.chart.options.chart.style;var s=U.getRendererType();this.container=p=B.doc.createElement("div"),p.className="highcharts-tooltip-container",E(p,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),B.doc.body.appendChild(p),this.renderer=o=new s(p,0,0,e,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var n=this.label,h=n.xSetter,b=n.ySetter;n.xSetter=function(k){h.call(n,g.distance),p.style.left=k+"px"},n.ySetter=function(k){b.call(n,g.distance),p.style.top=k+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(p,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?V.documentElement.clientWidth-2*i:t.chartWidth,h=s?Math.max(V.body.scrollHeight,V.documentElement.scrollHeight,V.body.offsetHeight,V.documentElement.offsetHeight,V.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(O){var j=O==="x";return[O,j?n:h,j?p:g].concat(s?[j?p*b.scaleX:g*b.scaleY,j?b.left-i+(r.plotX+t.plotLeft)*b.scaleX:b.top-i+(r.plotY+t.plotTop)*b.scaleY,0,j?n:h]:[j?p:g,j?r.plotX+t.plotLeft:r.plotY+t.plotTop,j?t.plotLeft:t.plotTop,j?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},D=k("y"),d=k("x");k=!!r.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(k=!k);var C=!this.followPointer&&v(r.ttBelow,!t.inverted===k),T=function(O,j,Y,H,W,q,tt){var J=s?O==="y"?i*b.scaleY:i*b.scaleX:i,nt=(Y-H)/2,lt=H<W-i,gt=W+i+H<j,mt=W-J-Y+nt;if(W=W+J-nt,C&>)o[O]=W;else if(!C&<)o[O]=mt;else if(lt)o[O]=Math.min(tt-H,0>mt-e?mt:mt-e);else{if(!gt)return!1;o[O]=Math.max(q,W+e+Y>j?W:W+e)}},N=function(O,j,Y,H,W){var q;return W<i||W>j-i?q=!1:o[O]=W<Y/2?1:W>j-H/2?j-H-2:W-Y/2,q},z=function(O){var j=D;D=d,d=j,a=O},L=function(){T.apply(0,D)!==!1?N.apply(0,d)!==!1||a||(z(!0),L()):a?o.x=o.y=0:(z(!0),L())};return(t.inverted||1<this.len)&&z(),L(),o},x.prototype.hide=function(p){var g=this;$.clearTimeout(this.hideTimer),p=v(p,this.options.hideDelay),this.isHidden||(this.hideTimer=M(function(){g.getLabel().fadeOut(p&&void 0),g.isHidden=!0},p))},x.prototype.init=function(p,g){this.chart=p,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!p.inverted&&!p.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!(!p.scrollablePixelsX&&!p.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(p){return!(this.followPointer||!this.options.stickOnContact||p&&!this.chart.pointer.inClass(p.target,"highcharts-tooltip"))},x.prototype.move=function(p,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(p-i.x)||1<Math.abs(g-i.y)),e=t.followPointer||1<t.len;P(i,{x:o?(2*i.x+p)/3:p,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(p,g,r,a)},32))},x.prototype.refresh=function(p,g){var r=this.chart,a=this.options,t=r.pointer,i=S(p),o=i[0],e=[],s=a.formatter||this.defaultFormatter,n=this.shared,h=r.styledMode,b={};if(a.enabled&&o.series){$.clearTimeout(this.hideTimer),this.allowShared=!(!c(p)&&p.series&&p.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;var k=(p=this.getAnchor(p,g))[0],D=p[1];if(n&&this.allowShared?(t.applyInactiveState(i),i.forEach(function(T){T.setState("hover"),e.push(T.getLabelConfig())}),(b={x:o.category,y:o.y}).points=e):b=o.getLabelConfig(),this.len=e.length,s=s.call(b,this),n=o.series,this.distance=v(n.tooltipOptions.distance,16),s===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(s,i);else{var d=k,C=D;if(g&&t.isDirectTouch&&(d=g.chartX-r.plotLeft,C=g.chartY-r.plotTop),!r.polar&&n.options.clip!==!1&&!i.some(function(T){return t.isDirectTouch||T.series.shouldShowTooltip(d,C)}))return void this.hide();g=this.getLabel(),a.style.width&&!h||g.css({width:r.spacingBox.width+"px"}),g.attr({text:s&&s.join?s.join(""):s}),g.addClass(this.getClassName(o),!0),h||g.attr({stroke:a.borderColor||o.color||n.color||"#666666"}),this.updatePosition({plotX:k,plotY:D,negative:o.negative,ttBelow:o.ttBelow,h:p[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(p,g){function r(gt,mt,bt,yt,dt){return dt===void 0&&(dt=!0),bt?(mt=H?0:J,gt=I(gt-yt/2,O.left,O.right-yt-(a.outside?W:0))):(mt-=q,gt=I(gt=dt?gt-yt-N:gt+N,dt?gt:O.left,O.right)),{x:gt,y:mt}}var a=this,t=a.chart,i=a.chart,o=i.chartWidth,e=i.chartHeight,s=i.plotHeight,n=i.plotLeft,h=i.plotTop,b=i.pointer,k=i.scrollablePixelsY;k=k===void 0?0:k;var D=i.scrollablePixelsX,d=i.scrollingContainer,C=(d=d===void 0?{scrollLeft:0,scrollTop:0}:d).scrollLeft;d=d.scrollTop;var T=i.styledMode,N=a.distance,z=a.options,L=a.options.positioner,O=a.outside&&typeof D!="number"?V.documentElement.getBoundingClientRect():{left:C,right:C+o,top:d,bottom:d+e},j=a.getLabel(),Y=this.renderer||t.renderer,H=!(!t.xAxis[0]||!t.xAxis[0].opposite),W=(t=b.getChartPosition()).left;t=t.top;var q=h+d,tt=0,J=s-k;m(p)&&(p=[!1,p]),p=p.slice(0,g.length+1).reduce(function(gt,mt,bt){if(mt!==!1&&mt!==""){var yt=(bt=g[bt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:s,series:{}}).isHeader,dt=yt?a:bt.series;mt=mt.toString();var ot=dt.tt,at=bt.isHeader,ut=bt.series;ot||(ot={padding:z.padding,r:z.borderRadius},T||(ot.fill=z.backgroundColor,ot["stroke-width"]=z.borderWidth),ot=Y.label("",0,0,z[at?"headerShape":"shape"],void 0,void 0,z.useHTML).addClass(a.getClassName(bt,!0,at)).attr(ot).add(j)),ot.isActive=!0,ot.attr({text:mt}),T||ot.css(z.style).shadow(z.shadow).attr({stroke:z.borderColor||bt.color||ut.color||"#333333"}),mt=(at=(dt=dt.tt=ot).getBBox()).width+dt.strokeWidth(),yt&&(tt=at.height,J+=tt,H&&(q-=tt)),ut=(ut=bt.plotX)===void 0?0:ut,ot=(ot=bt.plotY)===void 0?0:ot;var vt=bt.series;if(bt.isHeader){ut=n+ut;var Ct=h+s/2}else{var xt=vt.xAxis,St=vt.yAxis;ut=xt.pos+I(ut,-N,xt.len+N),vt.shouldShowTooltip(0,St.pos-h+ot,{ignoreX:!0})&&(Ct=St.pos+ot)}ut=I(ut,O.left-N,O.right+N),typeof Ct=="number"?(at=at.height+1,ot=L?L.call(a,mt,at,bt):r(ut,Ct,yt,mt),gt.push({align:L?0:void 0,anchorX:ut,anchorY:Ct,boxWidth:mt,point:bt,rank:v(ot.rank,yt?1:0),size:at,target:ot.y,tt:dt,x:ot.x})):dt.isActive=!1}return gt},[]),!L&&p.some(function(gt){var mt=(a.outside?W:0)+gt.anchorX;return mt<O.left&&mt+gt.boxWidth<O.right||mt<W-O.left+gt.boxWidth&&O.right-mt>mt})&&(p=p.map(function(gt){var mt=r(gt.anchorX,gt.anchorY,gt.point.isHeader,gt.boxWidth,!1);return P(gt,{target:mt.y,x:mt.x})})),a.cleanSplit(),F(p,J);var nt=W,lt=W;p.forEach(function(gt){var mt=gt.x,bt=gt.boxWidth;(gt=gt.isHeader)||(a.outside&&W+mt<nt&&(nt=W+mt),!gt&&a.outside&&nt+bt>lt&&(lt=W+mt))}),p.forEach(function(gt){var mt=gt.x,bt=gt.anchorX,yt=gt.pos,dt=gt.point.isHeader;if(yt={visibility:yt===void 0?"hidden":"inherit",x:mt,y:(yt||0)+q,anchorX:bt,anchorY:gt.anchorY},a.outside&&mt<bt){var ot=W-nt;0<ot&&(dt||(yt.x=mt+ot,yt.anchorX=bt+ot),dt&&(yt.x=(lt-nt)/2,yt.anchorX=bt+ot))}gt.tt.attr(yt)}),p=a.container,k=a.renderer,a.outside&&p&&k&&(i=j.getBBox(),k.setSize(i.width+i.x,i.height+i.y,!1),p.style.left=nt+"px",p.style.top=t+"px")},x.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var p=this.chart,g=this.label,r=this.shared?p.hoverPoints:p.hoverPoint;if(g&&r){var a={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var t=g.getBBox();r[0]+=p.plotLeft-g.translateX,r[1]+=p.plotTop-g.translateY,a.x=Math.min(0,r[0]),a.y=Math.min(0,r[1]),a.width=0>r[0]?Math.max(Math.abs(r[0]),t.width-r[0]):Math.max(Math.abs(r[0]),t.width),a.height=0>r[1]?Math.max(Math.abs(r[1]),t.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),t.height),this.tracker?this.tracker.attr(a):(this.tracker=g.renderer.rect(a).addClass("highcharts-tracker").add(g),p.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},x.prototype.styledModeFormat=function(p){return p.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(p,g){var r=p.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime;t={isFooter:g,labelConfig:p};var o=a.xDateFormat,e=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(s){i&&!o&&f(p.key)&&(o=i.getXDateFormat(p.key,a.dateTimeLabelFormats)),i&&o&&(p.point&&p.point.tooltipDateKeys||["key"]).forEach(function(n){e=e.replace("{point."+n+"}","{point."+n+":"+o+"}")}),r.chart.styledMode&&(e=this.styledModeFormat(e)),s.text=Z(e,{point:p,series:r},this.chart)}),t.text},x.prototype.update=function(p){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,p),this.init(this.chart,u(!0,this.options,p))},x.prototype.updatePosition=function(p){var g=this.chart,r=this.distance,a=this.options,t=g.pointer,i=this.getLabel(),o=t.getChartPosition();t=o.left;var e=o.top,s=o.scaleX;o=o.scaleY;var n=(a.positioner||this.getPosition).call(this,i.width,i.height,p),h=(p.plotX||0)+g.plotLeft;p=(p.plotY||0)+g.plotTop,this.outside&&(a.positioner&&(n.x+=t-r,n.y+=e-r),r=a.borderWidth+2*r,this.renderer.setSize(i.width+r,i.height+r,!1),s===1&&o===1||(E(this.container,{transform:"scale(".concat(s,", ").concat(o,")")}),h*=s,p*=o),h+=t-n.x,p+=e-n.y),this.move(Math.round(n.x),Math.round(n.y||0),h,p)},x}(),G}),_(et,"Core/Series/Point.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Animation/AnimationUtilities.js"],et["Core/Defaults.js"],et["Core/FormatUtilities.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){var Z=B.animObject,V=X.defaultOptions,F=U.format,I=$.addEvent,E=$.defined,A=$.erase,P=$.extend,y=$.fireEvent,c=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,S=$.merge,M=$.objectEach,x=$.pick,p=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return B=function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){t[e]=t[e].animate(e==="dataLabel"?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this.series,e=o.options.pointValKey||o.pointValKey;return t=a.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,e&&(this.y=a.prototype.getNestedProperty.call(this,e)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&i===void 0&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),this.x===void 0&&o?this.x=i===void 0?o.autoIncrement():i:u(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},a.prototype.destroy=function(){function t(){for(s in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[s]=null}var i=this,o=i.series,e=o.chart;o=o.options.dataSorting;var s,n=e.hoverPoints,h=Z(i.series.chart.renderer.globalAnimation);i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),A(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),p(t,h.duration)):t(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this;(t=i.getGraphicalProps(t)).singular.forEach(function(o){i[o]=i[o].destroy()}),t.plural.forEach(function(o){i[o].forEach(function(e){e&&e.element&&e.destroy()}),delete i[o]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o=this,e=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&e.push("graphic","shadowGroup"),t.dataLabel&&e.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),i=e.length;i--;){var n=e[i];o[n]&&s.singular.push(n)}return["graphic","dataLabel","connector"].forEach(function(h){var b=h+"s";t[h]&&o[b]&&s.plural.push(b)}),s},a.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}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?c(t,this.options):this[t]},a.prototype.getZone=function(){var t=this.series,i=t.zones;t=t.zoneAxis||"y";var o,e=0;for(o=i[e];this[t]>=o.value;)o=i[++e];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=o&&o.color&&!this.options.color?o.color:this.nonZonedColor,o},a.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,e=o||i.pointArrayMap||["y"],s=e.length,n={},h=0,b=0;if(u(t)||t===null)n[e[0]]=t;else if(f(t))for(!o&&t.length>s&&((i=typeof t[0])=="string"?n.name=t[0]:i==="number"&&(n.x=t[0]),h++);b<s;)o&&t[h]===void 0||(0<e[b].indexOf(".")?a.prototype.setNestedProperty(n,t[h],e[b]):n[e[b]]=t[h]),h++,b++;else typeof t=="object"&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis;e=e.yAxis;var h=0,b=0;if(u(o)&&u(i))return t&&(h=n?n.pos:s.plotLeft,b=e?e.pos:s.plotTop),s.inverted&&n&&e?[e.len-i+b,n.len-o+h]:[o+h,i+b]},a.prototype.resolveColor=function(){var t=this.series,i=t.chart.styledMode,o=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!i){var e=(o=t.options.colors||t.chart.options.colors)[t.colorCounter];o=o.length}i=t.colorCounter,t.colorCounter++,t.colorCounter===o&&(t.colorCounter=0)}else i||(e=t.color),i=t.colorIndex;this.colorIndex=x(this.options.colorIndex,i),this.color=x(this.options.color,e)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,h){return e[s]=h.length-1===n?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(h){h="{point."+h,(s||n)&&(t=t.replace(RegExp(h+"}","g"),s+h+"}"+n)),t=t.replace(RegExp(h+"}","g"),h+":,."+e+"f}")}),F(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){function s(){h.applyOptions(t);var C=k&&h.hasMockGraphic;C=h.y===null?!C:C,k&&C&&(h.graphic=k.destroy(),delete h.hasMockGraphic),v(t,!0)&&(k&&k.element&&t&&t.marker&&t.marker.symbol!==void 0&&(h.graphic=k.destroy()),t&&t.dataLabels&&h.dataLabel&&(h.dataLabel=h.dataLabel.destroy()),h.connector&&(h.connector=h.connector.destroy())),n=h.index,b.updateParallelArrays(h,n),d.data[n]=v(d.data[n],!0)||v(t,!0)?h.options:x(t,d.data[n]),b.isDirty=b.isDirtyData=!0,!b.fixedBox&&b.hasCartesianSeries&&(D.isDirtyBox=!0),d.legendType==="point"&&(D.isDirtyLegend=!0),i&&D.redraw(o)}var n,h=this,b=h.series,k=h.graphic,D=b.chart,d=b.options;i=x(i,!0),e===!1?s():h.firePointEvent("update",{options:t},s)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;this.selectedStaging=t=x(t,!o.selected),o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var h=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,h.options.data[h.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&h.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this.series.chart,o=i.pointer;t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i.inverted),o.runPointActions(t,this)},a.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(i){i.setState()}),t.hoverPoints=t.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=S(t.series.options.point,t.options).events;t.events=i,M(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e=this.series,s=this.state,n=e.options.states[t||"normal"]||{},h=V.plotOptions[e.type].marker&&e.options.marker,b=h&&h.enabled===!1,k=h&&h.states&&h.states[t||"normal"]||{},D=k.enabled===!1,d=this.marker||{},C=e.chart,T=h&&e.markerAttribs,N=e.halo,z=e.stateMarkerGraphic;if(!((t=t||"")===this.state&&!i||this.selected&&t!=="select"||n.enabled===!1||t&&(D||b&&k.enabled===!1)||t&&d.states&&d.states[t]&&d.states[t].enabled===!1)){if(this.state=t,T&&(o=e.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!C.styledMode){s=e.pointAttribs(this,t);var L=x(C.options.chart.animation,n.animation),O=s.opacity;e.options.inactiveOtherPoints&&u(O)&&((this.dataLabels||[]).forEach(function(j){j&&!j.hasClass("highcharts-data-label-hidden")&&j.animate({opacity:O},L)}),this.connector&&this.connector.animate({opacity:O},L)),this.graphic.animate(s,L)}o&&this.graphic.animate(o,x(C.options.chart.animation,k.animation,h.animation)),z&&z.hide()}else t&&k&&(h=d.symbol||e.symbol,z&&z.currentSymbol!==h&&(z=z.destroy()),o&&(z?z[i?"animate":"attr"]({x:o.x,y:o.y}):h&&(e.stateMarkerGraphic=z=C.renderer.symbol(h,o.x,o.y,o.width,o.height).add(e.markerGroup),z.currentSymbol=h)),!C.styledMode&&z&&this.state!=="inactive"&&z.attr(e.pointAttribs(this,t))),z&&(z[t&&this.isInside?"show":"hide"](),z.element.point=this,z.addClass(this.getClassName(),!0));n=n.halo,o=(z=this.graphic||z)&&z.visibility||"inherit",n&&n.size&&z&&o!=="hidden"&&!this.isCluster?(N||(e.halo=N=C.renderer.path().add(z.parentGroup)),N.show()[i?"animate":"attr"]({d:this.haloPath(n.size)}),N.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),N.point=this,C.styledMode||N.attr(P({fill:this.color||e.color,"fill-opacity":n.opacity},G.filterUserAttributes(n.attributes||{})))):N&&N.point&&N.point.haloPath&&N.animate({d:N.point.haloPath(0)},null,N.hide),y(this,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}(),B}),_(et,"Core/Pointer.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Tooltip.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=G.parse,Z=B.charts,V=B.noop,F=U.addEvent,I=U.attr,E=U.css,A=U.defined,P=U.extend,y=U.find,c=U.fireEvent,f=U.isNumber,m=U.isObject,u=U.objectEach,v=U.offset,S=U.pick,M=U.splat;return G=function(){function x(p,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=p,this.hasDragged=!1,this.options=g,this.init(p,g)}return x.prototype.applyInactiveState=function(p){var g,r=[];(p||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var p=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],B.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(p.tooltipTimeout),u(p,function(g,r){p[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(p,g){var r=this,a={args:{chartX:p,chartY:g},attrs:{},shapeType:"rect"};return c(this,"getSelectionMarkerAttrs",a,function(t){var i=r.chart,o=r.mouseDownX;o=o===void 0?0:o;var e=r.mouseDownY;e=e===void 0?0:e;var s=r.zoomHor,n=r.zoomVert;(t=t.attrs).x=i.plotLeft,t.y=i.plotTop,t.width=s?1:i.plotWidth,t.height=n?1:i.plotHeight,s&&(i=p-o,t.width=Math.abs(i),t.x=(0<i?0:i)+o),n&&(i=g-e,t.height=Math.abs(i),t.y=(0<i?0:i)+e)}),a},x.prototype.drag=function(p){var g=this.chart,r=g.options.chart,a=g.plotLeft,t=g.plotTop,i=g.plotWidth,o=g.plotHeight,e=this.mouseDownX||0,s=this.mouseDownY||0,n=m(r.panning)?r.panning&&r.panning.enabled:r.panning,h=r.panKey&&p[r.panKey+"Key"],b=p.chartX,k=p.chartY,D=this.selectionMarker;D&&D.touch||(b<a?b=a:b>a+i&&(b=a+i),k<t?k=t:k>t+o&&(k=t+o),this.hasDragged=Math.sqrt(Math.pow(e-b,2)+Math.pow(s-k,2)),10<this.hasDragged&&(a=g.isInsidePlot(e-a,s-t,{visiblePlotOnly:!0}),b=(k=this.getSelectionMarkerAttrs(b,k)).shapeType,k=k.attrs,!g.hasCartesianSeries&&!g.mapView||!this.zoomX&&!this.zoomY||!a||h||D||(this.selectionMarker=D=g.renderer[b](),D.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||D.attr({fill:r.selectionMarkerFill||$("#335cad").setOpacity(.25).get()})),D&&D.attr(k),a&&!D&&n&&g.pan(p,r.panning)))},x.prototype.dragStart=function(p){var g=this.chart;g.mouseIsDown=p.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=p.chartX,g.mouseDownY=this.mouseDownY=p.chartY},x.prototype.getSelectionBox=function(p){var g={args:{marker:p},result:{}};return c(this,"getSelectionBox",g,function(r){r.result={x:p.attr?+p.attr("x"):p.x,y:p.attr?+p.attr("y"):p.y,width:p.attr?p.attr("width"):p.width,height:p.attr?p.attr("height"):p.height}}),g.result},x.prototype.drop=function(p){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:p,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},h=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&A(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var k=b.horiz,D=p.type==="touchend"?b.minPixelPadding:0,d=b.toValue((k?i:o)+D);k=b.toValue((k?i+e:o+s)-D),n[b.coll].push({axis:b,min:Math.min(d,k),max:Math.max(d,k)}),h=!0}}),h&&c(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=10<this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(p,g,r){var a;return p.forEach(function(t){var i=!(t.noSharedTooltip&&g)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,i),(i=m(t,!0)&&t.series)&&!(i=!m(a,!0))){i=a.distX-t.distX;var o=a.dist-t.dist,e=(t.series.group&&t.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);i=0<(i!==0&&g?i:o!==0?o:e!==0?e:a.series.index>t.series.index?-1:1)}i&&(a=t)}),a},x.prototype.getChartCoordinatesFromPoint=function(p,g){var r=p.series,a=r.xAxis;r=r.yAxis;var t=p.shapeArgs;if(a&&r){var i=S(p.clientX,p.plotX),o=p.plotY||0;return p.isNode&&t&&f(t.x)&&f(t.y)&&(i=t.x,o=t.y),g?{chartX:r.len+r.pos-o,chartY:a.len+a.pos-i}:{chartX:i+a.pos,chartY:o+r.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var p=this.chart.container,g=v(p);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=p.offsetWidth;return p=p.offsetHeight,2<r&&2<p&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/p),this.chartPosition},x.prototype.getCoordinates=function(p){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(p[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(p,g,r,a,t,i){var o=[];a=!(!a||!p);var e=function(b){return b.visible&&!(!t&&b.directTouch)&&S(b.options.enableMouseTracking,!0)},s={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};c(this,"beforeGetHoverData",s);var n=g&&!g.stickyTracking?[g]:r.filter(function(b){return b.stickyTracking&&(s.filter||e)(b)}),h=a||!i?p:this.findNearestKDPoint(n,t,i);return g=h&&h.series,h&&(t&&!g.noSharedTooltip?(n=r.filter(function(b){return s.filter?s.filter(b):e(b)&&!b.noSharedTooltip}),n.forEach(function(b){var k=y(b.points,function(D){return D.x===h.x&&!D.isNull});m(k)&&(b.boosted&&b.boost&&(k=b.boost.getPoint(k)),o.push(k))})):o.push(h)),c(this,"afterGetHoverData",s={hoverPoint:h}),{hoverPoint:s.hoverPoint,hoverSeries:g,hoverPoints:o}},x.prototype.getPointFromEvent=function(p){p=p.target;for(var g;p&&!g;)g=p.point,p=p.parentNode;return g},x.prototype.onTrackerMouseOut=function(p){p=p.relatedTarget||p.toElement;var g=this.chart.hoverSeries;this.isDirectTouch=!1,!g||!p||g.stickyTracking||this.inClass(p,"highcharts-tooltip")||this.inClass(p,"highcharts-series-"+g.index)&&this.inClass(p,"highcharts-tracker")||g.onMouseOut()},x.prototype.inClass=function(p,g){for(var r;p;){if(r=I(p,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}p=p.parentElement}},x.prototype.init=function(p,g){this.options=g,this.chart=p,this.runChartClick=!(!g.chart.events||!g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},X&&(p.tooltip=new X(p,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(p,g){var r=p.touches,a=r?r.length?r.item(0):S(r.changedTouches,p.changedTouches)[0]:p;return g||(g=this.getChartPosition()),r=a.pageX-g.left,a=a.pageY-g.top,r/=g.scaleX,a/=g.scaleY,P(p,{chartX:Math.round(r),chartY:Math.round(a)})},x.prototype.onContainerClick=function(p){var g=this.chart,r=g.hoverPoint;p=this.normalize(p);var a=g.plotLeft,t=g.plotTop;g.cancelClick||(r&&this.inClass(p.target,"highcharts-tracker")?(c(r.series,"click",P(p,{point:r})),g.hoverPoint&&r.firePointEvent("click",p)):(P(p,this.getCoordinates(p)),g.isInsidePlot(p.chartX-a,p.chartY-t,{visiblePlotOnly:!0})&&c(g,"click",p)))},x.prototype.onContainerMouseDown=function(p){var g=!(1&~(p.buttons||p.button));p=this.normalize(p),B.isFirefox&&p.button!==0&&this.onContainerMouseMove(p),(p.button===void 0||g)&&(this.zoomOption(p),g&&p.preventDefault&&p.preventDefault(),this.dragStart(p))},x.prototype.onContainerMouseLeave=function(p){var g=Z[S(x.hoverChartIndex,-1)],r=this.chart.tooltip;p=this.normalize(p),g&&(p.relatedTarget||p.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(p){delete this.chartPosition},x.prototype.onContainerMouseMove=function(p){var g=this.chart,r=g.tooltip;p=this.normalize(p),this.setHoverChartIndex(),p.preventDefault||(p.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(p))&&this.drag(p),g.openMenu||!this.inClass(p.target,"highcharts-tracker")&&!g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(p)||(this.inClass(p.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(p))},x.prototype.onDocumentTouchEnd=function(p){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.onContainerTouchMove=function(p){this.touchSelect(p)?this.onContainerMouseMove(p):this.touch(p)},x.prototype.onContainerTouchStart=function(p){this.touchSelect(p)?this.onContainerMouseDown(p):(this.zoomOption(p),this.touch(p,!0))},x.prototype.onDocumentMouseMove=function(p){var g=this.chart,r=g.tooltip,a=this.chartPosition;p=this.normalize(p,a),!a||g.isInsidePlot(p.chartX-g.plotLeft,p.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(p)||this.inClass(p.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(p){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.pinch=function(p){var g=this,r=g.chart,a=g.pinchDown,t=p.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(p.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),h={},b=g.chart.tooltip;b=i===1&&S(b&&b.options.followTouchMove,!0);var k=g.selectionMarker;1<i?g.initiated=!0:b&&(g.initiated=!1),e&&g.initiated&&!n&&p.cancelable!==!1&&p.preventDefault(),[].map.call(t,function(D){return g.normalize(D)}),p.type==="touchstart"?([].forEach.call(t,function(D,d){a[d]={chartX:D.chartX,chartY:D.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(D){if(D.zoomEnabled){var d=r.bounds[D.horiz?"h":"v"],C=D.minPixelPadding,T=D.toPixels(Math.min(S(D.options.min,D.dataMin),D.dataMin)),N=D.toPixels(Math.max(S(D.options.max,D.dataMax),D.dataMax)),z=Math.max(T,N);d.min=Math.min(D.pos,Math.min(T,N)-C),d.max=Math.max(D.pos+D.len,z+C)}}),g.res=!0):b?this.runPointActions(g.normalize(p)):a.length&&(c(r,"touchpan",{originalEvent:p},function(){k||(g.selectionMarker=k=P({destroy:V,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,k,h,o),g.hasPinched=e,g.scaleGroups(s,h)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(p,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,p,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,p,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(p,g,r,a,t,i,o,e){var s=this.chart,n=p?"x":"y",h=p?"X":"Y",b="chart"+h,k=p?"width":"height",D=s["plot"+(p?"Left":"Top")],d=s.inverted,C=s.bounds[p?"h":"v"],T=g.length===1,N=g[0][b],z=!T&&g[1][b];g=function(){typeof H=="number"&&20<Math.abs(N-z)&&(j=e||Math.abs(Y-H)/Math.abs(N-z)),O=(D-Y)/j+N,L=s["plot"+(p?"Width":"Height")]/j};var L,O,j=e||1,Y=r[0][b],H=!T&&r[1][b];if(g(),(r=O)<C.min){r=C.min;var W=!0}else r+L>C.max&&(r=C.max-L,W=!0);W?(Y-=.8*(Y-o[n][0]),typeof H=="number"&&(H-=.8*(H-o[n][1])),g()):o[n]=[Y,H],d||(i[n]=O-D,i[k]=L),i=d?1/j:j,t[k]=L,t[n]=r,a[d?p?"scaleY":"scaleX":"scale"+h]=j,a["translate"+h]=i*D+(Y-i*N)},x.prototype.reset=function(p,g){var r=this.chart,a=r.hoverSeries,t=r.hoverPoint,i=r.hoverPoints,o=r.tooltip,e=o&&o.shared?i:t;p&&e&&M(e).forEach(function(s){s.series.isCartesian&&s.plotX===void 0&&(p=!1)}),p?o&&e&&M(e).length&&(o.refresh(e),o.shared&&i?i.forEach(function(s){s.setState(s.state,!0),s.series.isCartesian&&(s.series.xAxis.crosshair&&s.series.xAxis.drawCrosshair(null,s),s.series.yAxis.crosshair&&s.series.yAxis.drawCrosshair(null,s))}):t&&(t.setState(t.state,!0),r.axes.forEach(function(s){s.crosshair&&t.series[s.coll]===s&&s.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),i&&i.forEach(function(s){s.setState()}),a&&a.onMouseOut(),o&&o.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(s){s.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},x.prototype.runPointActions=function(p,g,r){var a=this.chart,t=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,i=!!t&&t.shared,o=g||a.hoverPoint,e=o&&o.series||a.hoverSeries;g=this.getHoverData(o,e,a.series,(!p||p.type!=="touchmove")&&(!!g||e&&e.directTouch&&this.isDirectTouch),i,p),o=g.hoverPoint,e=g.hoverSeries;var s=g.hoverPoints;g=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var n=i&&e&&!e.noSharedTooltip;if(o&&(r||o!==a.hoverPoint||t&&t.isHidden)){if((a.hoverPoints||[]).forEach(function(h){s.indexOf(h)===-1&&h.setState()}),a.hoverSeries!==e&&e.onMouseOver(),this.applyInactiveState(s),(s||[]).forEach(function(h){h.setState("hover")}),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!o.series)return;a.hoverPoints=s,a.hoverPoint=o,o.firePointEvent("mouseOver",void 0,function(){t&&o&&t.refresh(n?s:o,p)})}else g&&t&&!t.isHidden&&(r=t.getAnchor([{}],p),a.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=F(a.container.ownerDocument,"mousemove",function(h){var b=Z[x.hoverChartIndex];b&&b.pointer.onDocumentMouseMove(h)}),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach(function(h){var b,k=S((h.crosshair||{}).snap,!0);k&&((b=a.hoverPoint)&&b.series[h.coll]===h||(b=y(s,function(D){return D.series&&D.series[h.coll]===h}))),b||!k?h.drawCrosshair(p,b):h.hideCrosshair()})},x.prototype.scaleGroups=function(p,g){var r=this.chart;r.series.forEach(function(a){var t=p||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var p=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(F(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(F(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=F(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(F(a,"scroll",function(){delete p.chartPosition})),a=a.parentElement;B.hasTouch&&(this.eventsToUnbind.push(F(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(F(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=F(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var p=this.chart,g=B.charts[S(x.hoverChartIndex,-1)];g&&g!==p&&g.pointer.onContainerMouseLeave({relatedTarget:p.container}),g&&g.mouseIsDown||(x.hoverChartIndex=p.index)},x.prototype.touch=function(p,g){var r=this.chart;if(this.setHoverChartIndex(),p.touches.length===1)if(p=this.normalize(p),r.isInsidePlot(p.chartX-r.plotLeft,p.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(g&&this.runPointActions(p),p.type==="touchmove")var a=!!(g=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(g[0].chartX-p.chartX,2)+Math.pow(g[0].chartY-p.chartY,2));S(a,!0)&&this.pinch(p)}else g&&this.reset();else p.touches.length===2&&this.pinch(p)},x.prototype.touchSelect=function(p){return!(!this.chart.options.chart.zooming.singleTouch||!p.touches||p.touches.length!==1)},x.prototype.zoomOption=function(p){var g=this.chart,r=g.options.chart;g=g.inverted;var a=r.zooming.type||"";/touch/.test(p.type)&&(a=S(r.zooming.pinchType,a)),this.zoomX=p=/x/.test(a),this.zoomY=r=/y/.test(a),this.zoomHor=p&&!g||r&&g,this.zoomVert=r&&!g||p&&g,this.hasZoom=p||r},x}(),G}),_(et,"Core/MSPointer.js",[et["Core/Globals.js"],et["Core/Pointer.js"],et["Core/Utilities.js"]],function(G,B,X){function U(){var v=[];return v.item=function(S){return this[S]},y(m,function(S){v.push({pageX:S.pageX,pageY:S.pageY,target:S.target})}),v}function $(v,S,M,x){var p=V[B.hoverChartIndex||NaN];v.pointerType!=="touch"&&v.pointerType!==v.MSPOINTER_TYPE_TOUCH||!p||(p=p.pointer,x(v),p[S]({type:M,target:v.currentTarget,preventDefault:I,touches:U()}))}var Z=this&&this.__extends||function(){var v=function(S,M){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,p){x.__proto__=p}||function(x,p){for(var g in p)p.hasOwnProperty(g)&&(x[g]=p[g])},v(S,M)};return function(S,M){function x(){this.constructor=S}v(S,M),S.prototype=M===null?Object.create(M):(x.prototype=M.prototype,new x)}}(),V=G.charts,F=G.doc,I=G.noop,E=G.win,A=X.addEvent,P=X.css,y=X.objectEach,c=X.pick,f=X.removeEvent,m={},u=!!E.PointerEvent;return function(v){function S(){return v!==null&&v.apply(this,arguments)||this}return Z(S,v),S.isRequired=function(){return!(G.hasTouch||!E.PointerEvent&&!E.MSPointerEvent)},S.prototype.batchMSEvents=function(M){M(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown),M(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove),M(F,u?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},S.prototype.destroy=function(){this.batchMSEvents(f),v.prototype.destroy.call(this)},S.prototype.init=function(M,x){v.prototype.init.call(this,M,x),this.hasZoom&&P(M.container,{"-ms-touch-action":"none","touch-action":"none"})},S.prototype.onContainerPointerDown=function(M){$(M,"onContainerTouchStart","touchstart",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY,target:x.currentTarget}})},S.prototype.onContainerPointerMove=function(M){$(M,"onContainerTouchMove","touchmove",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY},m[x.pointerId].target||(m[x.pointerId].target=x.currentTarget)})},S.prototype.onDocumentPointerUp=function(M){$(M,"onDocumentTouchEnd","touchend",function(x){delete m[x.pointerId]})},S.prototype.setDOMEvents=function(){var M=this.chart.tooltip;v.prototype.setDOMEvents.call(this),(this.hasZoom||c(M&&M.options.followTouchMove,!0))&&this.batchMSEvents(A)},S}(B)}),_(et,"Core/Legend/Legend.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Series/Point.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.animObject,F=G.setAnimation,I=B.format,E=X.marginNames,A=$.distribute,P=Z.addEvent,y=Z.createElement,c=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,S=Z.isNumber,M=Z.merge,x=Z.pick,p=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return G=function(){function a(t,i){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=M(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(M(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line;if(o=o.symbol,e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var h=this.options;e=this.itemHiddenStyle.color,h=i?h.itemStyle.color:e;var b=i&&t.color||e,k=t.options&&t.options.marker,D={fill:b};s&&s.css({fill:h,color:h}),n&&n.attr({stroke:b}),o&&(k&&o.isMarker&&(D=t.pointAttribs(),i||(D.stroke=D.fill=e)),o.attr(D))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x;s=s===void 0?0:s,o=(o=o.y)===void 0?0:o;var n=this.options,h=n.symbolPadding,b=!n.rtl;n=t.checkbox,e&&e.element&&(h={translateX:b?s:this.legendWidth-s-2*h-4,translateY:o},e[f(e.translateY)?"animate":"attr"](h,void 0,function(){v(i,"afterPositionItem",{item:t})})),n&&(n.x=s,n.y=o)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=0,i=this.getAllItems();t<i.length;t++)this.destroyItem(i[t]);for(t=0,i="clipRect up down pager nav box title group".split(" ");t<i.length;t++){var o=i[t];this[o]&&(this[o]=this[o].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,o=this.titleHeight;if(t){var e=t.translateY;this.allItems.forEach(function(s){var n=s.checkbox;if(n){var h=e+o+n.y+(this.scrollOffset||0)+3;c(n,{left:t.translateX+s.checkboxOffset+n.x-20+"px",top:h+"px",display:this.proximate||h>e-6&&h<e+i-6?"":"none"})}},this)}},a.prototype.renderTitle=function(){var t=this.options,i=this.padding,o=t.title,e=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),e=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:e})),this.titleHeight=e},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=t.legendItem=t.legendItem||{},o=this.chart,e=o.renderer,s=this.options,n=this.symbolWidth,h=s.symbolPadding||0,b=this.itemStyle,k=this.itemHiddenStyle,D=s.layout==="horizontal"?x(s.itemDistance,20):0,d=!s.rtl,C=!t.series,T=!C&&t.series.drawLegendSymbol?t.series:t,N=T.options,z=this.createCheckboxForItem&&N&&N.showCheckbox,L=s.useHTML,O=t.options.className,j=i.label;N=n+h+D+(z?20:0),j||(i.group=e.g("legend-item").addClass("highcharts-"+T.type+"-series highcharts-color-"+t.colorIndex+(O?" "+O:"")+(C?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=j=e.text("",d?n+h:-h,this.baseline||0,L),o.styledMode||j.css(M(t.visible?b:k)),j.attr({align:d?"left":"right",zIndex:2}).add(i.group),this.baseline||(this.fontMetrics=e.fontMetrics(o.styledMode?12:b.fontSize,j),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,j.attr("y",this.baseline),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,s.squareSymbol&&(this.symbolWidth=x(s.symbolWidth,Math.max(this.symbolHeight,16)),N=this.symbolWidth+h+D+(z?20:0),d&&j.attr("x",this.symbolWidth+h))),T.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,j,L)),z&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!o.styledMode&&b.width||j.css({width:(s.itemWidth||this.widthOption||o.spacingBox.width)-N+"px"}),this.setText(t),o=j.getBBox(),e=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=s.itemWidth||i.labelWidth||o.width+N,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(o.height>1.5*e?o.height:e))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,h=this.itemMarginTop,b=e?x(i.itemDistance,20):0,k=this.maxLegendWidth;i=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth;var D=t.legendItem||{};e&&this.itemX-o+i>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=h+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),D.x=this.itemX,D.y=this.itemY,e?this.itemX+=i:(this.itemY+=h+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):i)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.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)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,h){n.test(s)&&!f(t[h])&&(o[E[h]]=Math.max(o[E[h]],o.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*e[h%2?"x":"y"]+x(e.margin,12)+i[h]+(o.titleOffset[h]||0)))})},a.prototype.proximatePositions=function(){var t=this.chart,i=[],o=this.options.align==="left";this.allItems.forEach(function(b){var k,D=o;if(b.yAxis){b.xAxis.options.reversed&&(D=!D),b.points&&(k=u(D?b.points:b.points.slice(0).reverse(),function(C){return S(C.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom;var d=b.yAxis.top-t.plotTop;b.visible?(k=k?k.plotY:b.yAxis.height,k+=d-.3*D):k=d+b.yAxis.height,i.push({target:k,size:D,item:b})}},this);for(var e,s=0,n=A(i,t.plotHeight);s<n.length;s++){var h=n[s];e=h.item.legendItem||{},S(h.pos)&&(e.y=t.plotTop-t.spacing[0]+h.pos)}},a.prototype.render=function(){var t=this.chart,i=t.renderer,o=this.options,e=this.padding,s=this.getAllItems(),n=this.group,h=this.box;this.itemX=e,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=p(o.width,t.spacingBox.width-e);var b=t.spacingBox.width-2*e-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(b/=2),this.maxLegendWidth=this.widthOption||b,n||(this.group=n=i.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),g(s,function(D,d){return(D.options&&D.options.legendIndex||0)-(d.options&&d.options.legendIndex||0)}),o.reversed&&s.reverse(),this.allItems=s,this.display=b=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEach(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+e;var k=this.lastItemY+this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k),k+=e,h||(this.box=h=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(n)),t.styledMode||h.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<s&&0<k&&h[h.placed?"animate":"attr"](h.crisp.call({},{x:0,y:0,width:s,height:k},h.strokeWidth())),n[b?"show":"hide"](),t.styledMode&&n.getStyle("display")==="none"&&(s=k=0),this.legendWidth=s,this.legendHeight=k,b&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(e-=i.titleOffset[2]),e!==t.y&&(t=M(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(M(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,h=n.renderer,b=this.options,k=b.y,D=b.verticalAlign==="top",d=this.padding,C=b.maxHeight,T=b.navigation,N=x(T.animation,!0),z=T.arrowSize||12,L=this.pages,O=this.allItems,j=function(q){typeof q=="number"?W.attr({height:q}):W&&(s.clipRect=W.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=q?"rect("+d+"px,9999px,"+(d+q)+"px,0)":"auto")},Y=function(q){return s[q]=h.circle(0,0,1.3*z).translate(z/2,z/2).add(H),n.styledMode||s[q].attr("fill","rgba(0,0,0,0.0001)"),s[q]};k=n.spacingBox.height+(D?-k:k)-d;var H=this.nav,W=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(k/=2),C&&(k=Math.min(k,C)),L.length=0,t&&0<k&&t>k&&T.enabled!==!1?(this.clipHeight=i=Math.max(k-20-this.titleHeight-d,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(q,tt){q=(e=q.legendItem||{}).y||0;var J=Math.round(e.label.getBBox().height),nt=L.length;(!nt||q-L[nt-1]>i&&(o||q)!==L[nt-1])&&(L.push(o||q),nt++),e.pageIx=nt-1,o&&((O[tt-1].legendItem||{}).pageIx=nt-1),tt===O.length-1&&q+J-L[nt-1]>i&&J<=i&&(L.push(q),e.pageIx=nt),q!==o&&(o=q)}),W||(W=s.clipRect=h.clipRect(0,d,9999,0),s.contentGroup.clip(W)),j(i),H||(this.nav=H=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol("triangle",0,0,z,z).add(H),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=h.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&T.style&&this.pager.css(T.style),this.pager.add(H),this.down=h.symbol("triangle-down",0,0,z,z).add(H),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=k):H&&(j(),this.nav=H.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,h=this.clipHeight,b=this.options.navigation,k=this.pager,D=this.padding,d=this.currentPage+t;d>n&&(d=n),0<d&&(i!==void 0&&F(i,e),this.nav.attr({translateX:D,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(C){C.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(C){C.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t=V(x(i,e.renderer.globalAnimation,!0)),r(function(){v(o,"afterScroll",{currentPage:d})},t.duration))},a.prototype.setItemEvents=function(t,i,o){var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,h=t instanceof U,b="highcharts-legend-"+(h?"point":"series")+"-active",k=e.chart.styledMode,D=function(C){e.allItems.forEach(function(T){t!==T&&[T].concat(T.linkedSeries||[]).forEach(function(N){N.setState(C,!h)})})},d=0;for(o=o?[i,s.symbol]:[s.group];d<o.length;d++)(s=o[d])&&s.on("mouseover",function(){t.visible&&D("inactive"),t.setState("hover"),t.visible&&n.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(M(t.visible?e.itemStyle:e.itemHiddenStyle)),D(""),n.removeClass(b),t.setState()}).on("click",function(C){var T=function(){t.setVisible&&t.setVisible(),D(t.visible?"inactive":"")};n.removeClass(b),C={browserEvent:C},t.firePointEvent?t.firePointEvent("legendItemClick",C,T):v(t,"legendItemClick",C,T)})},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){v(t.series||t,"checkboxClick",{checked:i.target.checked,item:t},function(){t.select()})})},a}(),G}),_(et,"Core/Series/SeriesRegistry.js",[et["Core/Globals.js"],et["Core/Defaults.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $,Z=B.defaultOptions,V=U.extendClass,F=U.merge;return function(I){function E(A,P){var y=Z.plotOptions||{},c=P.defaultOptions,f=P.prototype;f.type=A,f.pointClass||(f.pointClass=X),c&&(y[A]=c),I.seriesTypes[A]=P}I.seriesTypes=G.seriesTypes,I.registerSeriesType=E,I.seriesType=function(A,P,y,c,f){var m=Z.plotOptions||{};return P=P||"",m[A]=F(m[P],y),E(A,V(I.seriesTypes[P]||function(){},c)),I.seriesTypes[A].prototype.type=A,f&&(I.seriesTypes[A].prototype.pointClass=V(X,f)),I.seriesTypes[A]}}($||($={})),$}),_(et,"Core/Chart/Chart.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Defaults.js"],et["Core/FormatUtilities.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Legend/Legend.js"],et["Core/MSPointer.js"],et["Core/Pointer.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Time.js"],et["Core/Utilities.js"],et["Core/Renderer/HTML/AST.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P,y,c,f){var m=G.animate,u=G.animObject,v=G.setAnimation,S=X.defaultOptions,M=X.defaultTime,x=U.numberFormat,p=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=A.seriesTypes,e=c.addEvent,s=c.attr,n=c.cleanRecursively,h=c.createElement,b=c.css,k=c.defined,D=c.discardElement,d=c.erase,C=c.error,T=c.extend,N=c.find,z=c.fireEvent,L=c.getStyle,O=c.isArray,j=c.isNumber,Y=c.isObject,H=c.isString,W=c.merge,q=c.objectEach,tt=c.pick,J=c.pInt,nt=c.relativeLength,lt=c.removeEvent,gt=c.splat,mt=c.syncTimeout,bt=c.uniqueKey;return G=function(){function yt(dt,ot,at){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(dt,ot,at)}return yt.chart=function(dt,ot,at){return new yt(dt,ot,at)},yt.prototype.getArgs=function(dt,ot,at){H(dt)||dt.nodeName?(this.renderTo=dt,this.init(ot,at)):this.init(dt,ot)},yt.prototype.init=function(dt,ot){var at=dt.plotOptions||{};z(this,"init",{args:arguments},function(){var ut=W(S,dt),vt=ut.chart;q(ut.plotOptions,function(xt,St){Y(xt)&&(xt.tooltip=at[St]&&W(at[St].tooltip)||void 0)}),ut.tooltip.userOptions=dt.chart&&dt.chart.forExport&&dt.tooltip.userOptions||dt.tooltip,this.userOptions=dt,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=ot,this.isResizing=0;var Ct=vt.zooming=vt.zooming||{};dt.chart&&!dt.chart.zooming&&(Ct.resetButton=vt.resetZoomButton),Ct.key=tt(Ct.key,vt.zoomKey),Ct.pinchType=tt(Ct.pinchType,vt.pinchType),Ct.singleTouch=tt(Ct.singleTouch,vt.zoomBySingleTouch),Ct.type=tt(Ct.type,vt.zoomType),this.options=ut,this.axes=[],this.series=[],this.time=dt.time&&Object.keys(dt.time).length?new y(dt.time):Z.time,this.numberFormatter=vt.numberFormatter||x,this.styledMode=vt.styledMode,this.hasCartesianSeries=vt.showAxes,this.index=g.length,g.push(this),Z.chartCount++,p(this,vt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,z(this,"afterInit"),this.firstRender()})},yt.prototype.initSeries=function(dt){var ot=this.options.chart;ot=dt.type||ot.type||ot.defaultSeriesType;var at=o[ot];return at||C(17,!0,this,{missingModuleFor:ot}),typeof(ot=new at).init=="function"&&ot.init(this,dt),ot},yt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(dt){dt.points||dt.data||!dt.enabledDataSorting||dt.setData(dt.options.data,!1)})},yt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(dt,ot){return dt.linkedSeries.length||ot.linkedSeries.length?ot.linkedSeries.length-dt.linkedSeries.length:0})},yt.prototype.orderSeries=function(dt){var ot=this.series;dt=dt||0;for(var at=ot.length;dt<at;++dt)ot[dt]&&(ot[dt].index=dt,ot[dt].name=ot[dt].getName())},yt.prototype.isInsidePlot=function(dt,ot,at){at===void 0&&(at={});var ut=this.inverted,vt=this.plotBox,Ct=this.plotLeft,xt=this.plotTop,St=this.scrollablePlotBox,wt=0,Mt=0;at.visiblePlotOnly&&this.scrollingContainer&&(wt=(Mt=this.scrollingContainer).scrollLeft,Mt=Mt.scrollTop);var Tt=at.series;if(vt=at.visiblePlotOnly&&St||vt,dt={x:St=at.inverted?ot:dt,y:ot=at.inverted?dt:ot,isInsidePlot:!0,options:at},!at.ignoreX){var Lt=Tt&&(ut&&!this.polar?Tt.yAxis:Tt.xAxis)||{pos:Ct,len:1/0};(St=at.paneCoordinates?Lt.pos+St:Ct+St)>=Math.max(wt+Ct,Lt.pos)&&St<=Math.min(wt+Ct+vt.width,Lt.pos+Lt.len)||(dt.isInsidePlot=!1)}return!at.ignoreY&&dt.isInsidePlot&&(ut=at.axis&&!at.axis.isXAxis&&at.axis||Tt&&(ut?Tt.xAxis:Tt.yAxis)||{pos:xt,len:1/0},(at=at.paneCoordinates?ut.pos+ot:xt+ot)>=Math.max(Mt+xt,ut.pos)&&at<=Math.min(Mt+xt+vt.height,ut.pos+ut.len)||(dt.isInsidePlot=!1)),z(this,"afterIsInsidePlot",dt),dt.isInsidePlot},yt.prototype.redraw=function(dt){z(this,"beforeRedraw");var ot=this.hasCartesianSeries?this.axes:this.colorAxis||[],at=this.series,ut=this.pointer,vt=this.legend,Ct=this.userOptions.legend,xt=this.renderer,St=xt.isHidden(),wt=[],Mt=this.isDirtyBox,Tt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&dt,this),St&&this.temporaryDisplay(),this.layOutTitles(),dt=at.length;dt--;){var Lt=at[dt];if(Lt.options.stacking||Lt.options.centerInCategory){var Pt=!0;if(Lt.isDirty){var Et=!0;break}}}if(Et)for(dt=at.length;dt--;)(Lt=at[dt]).options.stacking&&(Lt.isDirty=!0);at.forEach(function(jt){jt.isDirty&&(jt.options.legendType==="point"?(typeof jt.updateTotals=="function"&&jt.updateTotals(),Tt=!0):Ct&&(Ct.labelFormatter||Ct.labelFormat)&&(Tt=!0)),jt.isDirtyData&&z(jt,"updatedData")}),Tt&&vt&&vt.options.enabled&&(vt.render(),this.isDirtyLegend=!1),Pt&&this.getStacks(),ot.forEach(function(jt){jt.updateNames(),jt.setScale()}),this.getMargins(),ot.forEach(function(jt){jt.isDirty&&(Mt=!0)}),ot.forEach(function(jt){var Dt=jt.min+","+jt.max;jt.extKey!==Dt&&(jt.extKey=Dt,wt.push(function(){z(jt,"afterSetExtremes",T(jt.eventArgs,jt.getExtremes())),delete jt.eventArgs})),(Mt||Pt)&&jt.redraw()}),Mt&&this.drawChartBox(),z(this,"predraw"),at.forEach(function(jt){(Mt||jt.isDirty)&&jt.visible&&jt.redraw(),jt.isDirtyData=!1}),ut&&ut.reset(!0),xt.draw(),z(this,"redraw"),z(this,"render"),St&&this.temporaryDisplay(!0),wt.forEach(function(jt){jt.call()})},yt.prototype.get=function(dt){function ot(Ct){return Ct.id===dt||Ct.options&&Ct.options.id===dt}for(var at=this.series,ut=N(this.axes,ot)||N(this.series,ot),vt=0;!ut&&vt<at.length;vt++)ut=N(at[vt].points||[],ot);return ut},yt.prototype.getAxes=function(){var dt=this,ot=this.options,at=ot.xAxis=gt(ot.xAxis||{});ot=ot.yAxis=gt(ot.yAxis||{}),z(this,"getAxes"),at.forEach(function(ut,vt){ut.index=vt,ut.isX=!0}),ot.forEach(function(ut,vt){ut.index=vt}),at.concat(ot).forEach(function(ut){new B(dt,ut)}),z(this,"afterGetAxes")},yt.prototype.getSelectedPoints=function(){return this.series.reduce(function(dt,ot){return ot.getPointsCollection().forEach(function(at){tt(at.selectedStaging,at.selected)&&dt.push(at)}),dt},[])},yt.prototype.getSelectedSeries=function(){return this.series.filter(function(dt){return dt.selected})},yt.prototype.setTitle=function(dt,ot,at){this.applyDescription("title",dt),this.applyDescription("subtitle",ot),this.applyDescription("caption",void 0),this.layOutTitles(at)},yt.prototype.applyDescription=function(dt,ot){var at=this,ut=dt==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};ut=this.options[dt]=W(!this.styledMode&&{style:ut},this.options[dt],ot);var vt=this[dt];vt&&ot&&(this[dt]=vt=vt.destroy()),ut&&!vt&&((vt=this.renderer.text(ut.text,0,0,ut.useHTML).attr({align:ut.align,class:"highcharts-"+dt,zIndex:ut.zIndex||4}).add()).update=function(Ct){at[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[dt]](Ct)},this.styledMode||vt.css(ut.style),this[dt]=vt)},yt.prototype.layOutTitles=function(dt){var ot=[0,0,0],at=this.renderer,ut=this.spacingBox;["title","subtitle","caption"].forEach(function(Ct){var xt,St=this[Ct],wt=this.options[Ct],Mt=wt.verticalAlign||"top";if(Ct=Ct==="title"?Mt==="top"?-3:0:Mt==="top"?ot[0]+2:0,St){this.styledMode||(xt=wt.style&&wt.style.fontSize),xt=at.fontMetrics(xt,St).b,St.css({width:(wt.width||ut.width+(wt.widthAdjust||0))+"px"});var Tt=Math.round(St.getBBox(wt.useHTML).height);St.align(T({y:Mt==="bottom"?xt:Ct+xt,height:Tt},wt),!1,"spacingBox"),wt.floating||(Mt==="top"?ot[0]=Math.ceil(ot[0]+Tt):Mt==="bottom"&&(ot[2]=Math.ceil(ot[2]+Tt)))}},this),ot[0]&&(this.options.title.verticalAlign||"top")==="top"&&(ot[0]+=this.options.title.margin),ot[2]&&this.options.caption.verticalAlign==="bottom"&&(ot[2]+=this.options.caption.margin);var vt=!this.titleOffset||this.titleOffset.join(",")!==ot.join(",");this.titleOffset=ot,z(this,"afterLayOutTitles"),!this.isDirtyBox&&vt&&(this.isDirtyBox=this.isDirtyLegend=vt,this.hasRendered&&tt(dt,!0)&&this.isDirtyBox&&this.redraw())},yt.prototype.getChartSize=function(){var dt=this.options.chart,ot=dt.width;dt=dt.height;var at=this.renderTo;k(ot)||(this.containerWidth=L(at,"width")),k(dt)||(this.containerHeight=L(at,"height")),this.chartWidth=Math.max(0,ot||this.containerWidth||600),this.chartHeight=Math.max(0,nt(dt,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},yt.prototype.temporaryDisplay=function(dt){var ot=this.renderTo;if(dt)for(;ot&&ot.style;)ot.hcOrigStyle&&(b(ot,ot.hcOrigStyle),delete ot.hcOrigStyle),ot.hcOrigDetached&&(r.body.removeChild(ot),ot.hcOrigDetached=!1),ot=ot.parentNode;else for(;ot&&ot.style&&(r.body.contains(ot)||ot.parentNode||(ot.hcOrigDetached=!0,r.body.appendChild(ot)),(L(ot,"display",!1)==="none"||ot.hcOricDetached)&&(ot.hcOrigStyle={display:ot.style.display,height:ot.style.height,overflow:ot.style.overflow},dt={display:"block",overflow:"hidden"},ot!==this.renderTo&&(dt.height=0),b(ot,dt),ot.offsetWidth||ot.style.setProperty("display","block","important")),(ot=ot.parentNode)!==r.body););},yt.prototype.setClassName=function(dt){this.container.className="highcharts-container "+(dt||"")},yt.prototype.getContainer=function(){var dt,ot=this.options,at=ot.chart,ut=bt(),vt=this.renderTo;vt||(this.renderTo=vt=at.renderTo),H(vt)&&(this.renderTo=vt=r.getElementById(vt)),vt||C(13,!0,this);var Ct=J(s(vt,"data-highcharts-chart"));j(Ct)&&g[Ct]&&g[Ct].hasRendered&&g[Ct].destroy(),s(vt,"data-highcharts-chart",this.index),vt.innerHTML=f.emptyHTML,at.skipClone||vt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),Ct=this.chartWidth;var xt=this.chartHeight;if(b(vt,{overflow:"hidden"}),this.styledMode||(dt=T({position:"relative",overflow:"hidden",width:Ct+"px",height:xt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},at.style||{})),this.container=ut=h("div",{id:ut},dt,vt),this._cursor=ut.style.cursor,this.renderer=new(at.renderer||!t?E.getRendererType(at.renderer):P)(ut,Ct,xt,void 0,at.forExport,ot.exporting&&ot.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(at.className),this.styledMode)for(var St in ot.defs)this.renderer.definition(ot.defs[St]);else this.renderer.setStyle(at.style);this.renderer.chartIndex=this.index,z(this,"afterGetContainer")},yt.prototype.getMargins=function(dt){var ot=this.spacing,at=this.margin,ut=this.titleOffset;this.resetMargins(),ut[0]&&!k(at[0])&&(this.plotTop=Math.max(this.plotTop,ut[0]+ot[0])),ut[2]&&!k(at[2])&&(this.marginBottom=Math.max(this.marginBottom,ut[2]+ot[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(at,ot),z(this,"getMargins"),dt||this.getAxisMargins()},yt.prototype.getAxisMargins=function(){var dt=this,ot=dt.axisOffset=[0,0,0,0],at=dt.colorAxis,ut=dt.margin,vt=function(Ct){Ct.forEach(function(xt){xt.visible&&xt.getOffset()})};dt.hasCartesianSeries?vt(dt.axes):at&&at.length&&vt(at),a.forEach(function(Ct,xt){k(ut[xt])||(dt[Ct]+=ot[xt])}),dt.setChartSize()},yt.prototype.reflow=function(dt){var ot=this,at=ot.options.chart,ut=ot.renderTo,vt=k(at.width)&&k(at.height),Ct=at.width||L(ut,"width");at=at.height||L(ut,"height"),ut=dt?dt.target:i,delete ot.pointer.chartPosition,vt||ot.isPrinting||!Ct||!at||ut!==i&&ut!==r||(Ct===ot.containerWidth&&at===ot.containerHeight||(c.clearTimeout(ot.reflowTimeout),ot.reflowTimeout=mt(function(){ot.container&&ot.setSize(void 0,void 0,!1)},dt?100:0)),ot.containerWidth=Ct,ot.containerHeight=at)},yt.prototype.setReflow=function(dt){var ot=this;dt===!1||this.unbindReflow?dt===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(at){ot.options&&ot.reflow(at)}),e(this,"destroy",this.unbindReflow))},yt.prototype.setSize=function(dt,ot,at){var ut=this,vt=ut.renderer;ut.isResizing+=1,v(at,ut),at=vt.globalAnimation,ut.oldChartHeight=ut.chartHeight,ut.oldChartWidth=ut.chartWidth,dt!==void 0&&(ut.options.chart.width=dt),ot!==void 0&&(ut.options.chart.height=ot),ut.getChartSize(),ut.styledMode||(at?m:b)(ut.container,{width:ut.chartWidth+"px",height:ut.chartHeight+"px"},at),ut.setChartSize(!0),vt.setSize(ut.chartWidth,ut.chartHeight,at),ut.axes.forEach(function(Ct){Ct.isDirty=!0,Ct.setScale()}),ut.isDirtyLegend=!0,ut.isDirtyBox=!0,ut.layOutTitles(),ut.getMargins(),ut.redraw(at),ut.oldChartHeight=null,z(ut,"resize"),mt(function(){ut&&z(ut,"endResize",null,function(){--ut.isResizing})},u(at).duration)},yt.prototype.setChartSize=function(dt){var ot,at,ut,vt,Ct=this.inverted,xt=this.renderer,St=this.chartWidth,wt=this.chartHeight,Mt=this.options.chart,Tt=this.spacing,Lt=this.clipOffset;this.plotLeft=ot=Math.round(this.plotLeft),this.plotTop=at=Math.round(this.plotTop),this.plotWidth=ut=Math.max(0,Math.round(St-ot-this.marginRight)),this.plotHeight=vt=Math.max(0,Math.round(wt-at-this.marginBottom)),this.plotSizeX=Ct?vt:ut,this.plotSizeY=Ct?ut:vt,this.plotBorderWidth=Mt.plotBorderWidth||0,this.spacingBox=xt.spacingBox={x:Tt[3],y:Tt[0],width:St-Tt[3]-Tt[1],height:wt-Tt[0]-Tt[2]},this.plotBox=xt.plotBox={x:ot,y:at,width:ut,height:vt},Ct=2*Math.floor(this.plotBorderWidth/2),St=Math.ceil(Math.max(Ct,Lt[3])/2),wt=Math.ceil(Math.max(Ct,Lt[0])/2),this.clipBox={x:St,y:wt,width:Math.floor(this.plotSizeX-Math.max(Ct,Lt[1])/2-St),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(Ct,Lt[2])/2-wt))},dt||(this.axes.forEach(function(Pt){Pt.setAxisSize(),Pt.setAxisTranslation()}),xt.alignElements()),z(this,"afterSetChartSize",{skipAxes:dt})},yt.prototype.resetMargins=function(){z(this,"resetMargins");var dt=this,ot=dt.options.chart;["margin","spacing"].forEach(function(at){var ut=ot[at],vt=Y(ut)?ut:[ut,ut,ut,ut];["Top","Right","Bottom","Left"].forEach(function(Ct,xt){dt[at][xt]=tt(ot[at+Ct],vt[xt])})}),a.forEach(function(at,ut){dt[at]=tt(dt.margin[ut],dt.spacing[ut])}),dt.axisOffset=[0,0,0,0],dt.clipOffset=[0,0,0,0]},yt.prototype.drawChartBox=function(){var dt,ot=this.options.chart,at=this.renderer,ut=this.chartWidth,vt=this.chartHeight,Ct=this.styledMode,xt=this.plotBGImage,St=ot.backgroundColor,wt=ot.plotBackgroundColor,Mt=ot.plotBackgroundImage,Tt=this.plotLeft,Lt=this.plotTop,Pt=this.plotWidth,Et=this.plotHeight,jt=this.plotBox,Dt=this.clipRect,_t=this.clipBox,Bt=this.chartBackground,Jt=this.plotBackground,Gt=this.plotBorder,Ut="animate";if(Bt||(this.chartBackground=Bt=at.rect().addClass("highcharts-background").add(),Ut="attr"),Ct)var Kt=dt=Bt.strokeWidth();else dt=(Kt=ot.borderWidth||0)+(ot.shadow?8:0),St={fill:St||"none"},(Kt||Bt["stroke-width"])&&(St.stroke=ot.borderColor,St["stroke-width"]=Kt),Bt.attr(St).shadow(ot.shadow);Bt[Ut]({x:dt/2,y:dt/2,width:ut-dt-Kt%2,height:vt-dt-Kt%2,r:ot.borderRadius}),Ut="animate",Jt||(Ut="attr",this.plotBackground=Jt=at.rect().addClass("highcharts-plot-background").add()),Jt[Ut](jt),Ct||(Jt.attr({fill:wt||"none"}).shadow(ot.plotShadow),Mt&&(xt?(Mt!==xt.attr("href")&&xt.attr("href",Mt),xt.animate(jt)):this.plotBGImage=at.image(Mt,Tt,Lt,Pt,Et).add())),Dt?Dt.animate({width:_t.width,height:_t.height}):this.clipRect=at.clipRect(_t),Ut="animate",Gt||(Ut="attr",this.plotBorder=Gt=at.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Ct||Gt.attr({stroke:ot.plotBorderColor,"stroke-width":ot.plotBorderWidth||0,fill:"none"}),Gt[Ut](Gt.crisp({x:Tt,y:Lt,width:Pt,height:Et},-Gt.strokeWidth())),this.isDirtyBox=!1,z(this,"afterDrawChartBox")},yt.prototype.propFromSeries=function(){var dt,ot,at,ut=this,vt=ut.options.chart,Ct=ut.options.series;["inverted","angular","polar"].forEach(function(xt){for(ot=o[vt.type||vt.defaultSeriesType],at=vt[xt]||ot&&ot.prototype[xt],dt=Ct&&Ct.length;!at&&dt--;)(ot=o[Ct[dt].type])&&ot.prototype[xt]&&(at=!0);ut[xt]=at})},yt.prototype.linkSeries=function(){var dt=this,ot=dt.series;ot.forEach(function(at){at.linkedSeries.length=0}),ot.forEach(function(at){var ut=at.options.linkedTo;H(ut)&&(ut=ut===":previous"?dt.series[at.index-1]:dt.get(ut))&&ut.linkedParent!==at&&(ut.linkedSeries.push(at),at.linkedParent=ut,ut.enabledDataSorting&&at.setDataSortingOptions(),at.visible=tt(at.options.visible,ut.options.visible,at.visible))}),z(this,"afterLinkSeries")},yt.prototype.renderSeries=function(){this.series.forEach(function(dt){dt.translate(),dt.render()})},yt.prototype.renderLabels=function(){var dt=this,ot=dt.options.labels;ot.items&&ot.items.forEach(function(at){var ut=T(ot.style,at.style),vt=J(ut.left)+dt.plotLeft,Ct=J(ut.top)+dt.plotTop+12;delete ut.left,delete ut.top,dt.renderer.text(at.html,vt,Ct).attr({zIndex:2}).css(ut).add()})},yt.prototype.render=function(){var dt=this.axes,ot=this.colorAxis,at=this.renderer,ut=this.options,vt=function(Mt){Mt.forEach(function(Tt){Tt.visible&&Tt.render()})},Ct=0;this.setTitle(),this.legend=new V(this,ut.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),ut=this.plotWidth,dt.some(function(Mt){if(Mt.horiz&&Mt.visible&&Mt.options.labels.enabled&&Mt.series.length)return Ct=21,!0});var xt=this.plotHeight=Math.max(this.plotHeight-Ct,0);dt.forEach(function(Mt){Mt.setScale()}),this.getAxisMargins();var St=1.1<ut/this.plotWidth,wt=1.05<xt/this.plotHeight;(St||wt)&&(dt.forEach(function(Mt){(Mt.horiz&&St||!Mt.horiz&&wt)&&Mt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?vt(dt):ot&&ot.length&&vt(ot),this.seriesGroup||(this.seriesGroup=at.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},yt.prototype.addCredits=function(dt){var ot=this,at=W(!0,this.options.credits,dt);at.enabled&&!this.credits&&(this.credits=this.renderer.text(at.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){at.href&&(i.location.href=at.href)}).attr({align:at.position.align,zIndex:8}),ot.styledMode||this.credits.css(at.style),this.credits.add().align(at.position),this.credits.update=function(ut){ot.credits=ot.credits.destroy(),ot.addCredits(ut)})},yt.prototype.destroy=function(){var dt,ot=this,at=ot.axes,ut=ot.series,vt=ot.container,Ct=vt&&vt.parentNode;for(z(ot,"destroy"),ot.renderer.forExport?d(g,ot):g[ot.index]=void 0,Z.chartCount--,ot.renderTo.removeAttribute("data-highcharts-chart"),lt(ot),dt=at.length;dt--;)at[dt]=at[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=ut.length;dt--;)ut[dt]=ut[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(xt){var St=ot[xt];St&&St.destroy&&(ot[xt]=St.destroy())}),vt&&(vt.innerHTML=f.emptyHTML,lt(vt),Ct&&D(vt)),q(ot,function(xt,St){delete ot[St]})},yt.prototype.firstRender=function(){var dt=this,ot=dt.options;dt.isReadyToRender&&!dt.isReadyToRender()||(dt.getContainer(),dt.resetMargins(),dt.setChartSize(),dt.propFromSeries(),dt.getAxes(),(O(ot.series)?ot.series:[]).forEach(function(at){dt.initSeries(at)}),dt.linkSeries(),dt.setSeriesData(),z(dt,"beforeRender"),I&&(F.isRequired()?dt.pointer=new F(dt,ot):dt.pointer=new I(dt,ot)),dt.render(),dt.pointer.getChartPosition(),dt.renderer.imgCount||dt.hasLoaded||dt.onload(),dt.temporaryDisplay(!0))},yt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(dt){dt&&this.index!==void 0&&dt.apply(this,[this])},this),z(this,"load"),z(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},yt.prototype.warnIfA11yModuleNotLoaded=function(){var dt=this.options,ot=this.title;dt&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(ot&&ot.element.textContent||"").replace(/</g,"<")}),dt.accessibility&&dt.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},yt.prototype.addSeries=function(dt,ot,at){var ut,vt=this;return dt&&(ot=tt(ot,!0),z(vt,"addSeries",{options:dt},function(){ut=vt.initSeries(dt),vt.isDirtyLegend=!0,vt.linkSeries(),ut.enabledDataSorting&&ut.setData(dt.data,!1),z(vt,"afterAddSeries",{series:ut}),ot&&vt.redraw(at)})),ut},yt.prototype.addAxis=function(dt,ot,at,ut){return this.createAxis(ot?"xAxis":"yAxis",{axis:dt,redraw:at,animation:ut})},yt.prototype.addColorAxis=function(dt,ot,at){return this.createAxis("colorAxis",{axis:dt,redraw:ot,animation:at})},yt.prototype.createAxis=function(dt,ot){return dt=new B(this,W(ot.axis,{index:this[dt].length,isX:dt==="xAxis"})),tt(ot.redraw,!0)&&this.redraw(ot.animation),dt},yt.prototype.showLoading=function(dt){var ot=this,at=ot.options,ut=at.loading,vt=function(){Ct&&b(Ct,{left:ot.plotLeft+"px",top:ot.plotTop+"px",width:ot.plotWidth+"px",height:ot.plotHeight+"px"})},Ct=ot.loadingDiv,xt=ot.loadingSpan;Ct||(ot.loadingDiv=Ct=h("div",{className:"highcharts-loading highcharts-loading-hidden"},null,ot.container)),xt||(ot.loadingSpan=xt=h("span",{className:"highcharts-loading-inner"},null,Ct),e(ot,"redraw",vt)),Ct.className="highcharts-loading",f.setElementHTML(xt,tt(dt,at.lang.loading,"")),ot.styledMode||(b(Ct,T(ut.style,{zIndex:10})),b(xt,ut.labelStyle),ot.loadingShown||(b(Ct,{opacity:0,display:""}),m(Ct,{opacity:ut.style.opacity||.5},{duration:ut.showDuration||0}))),ot.loadingShown=!0,vt()},yt.prototype.hideLoading=function(){var dt=this.options,ot=this.loadingDiv;ot&&(ot.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(ot,{opacity:0},{duration:dt.loading.hideDuration||100,complete:function(){b(ot,{display:"none"})}})),this.loadingShown=!1},yt.prototype.update=function(dt,ot,at,ut){var vt,Ct,xt=this,St={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},wt=dt.isResponsiveOptions,Mt=[];z(xt,"update",{options:dt}),wt||xt.setResponsive(!1,!0),dt=n(dt,xt.options),xt.userOptions=W(xt.userOptions,dt);var Tt=dt.chart;if(Tt){if(W(!0,xt.options.chart,Tt),"className"in Tt&&xt.setClassName(Tt.className),"reflow"in Tt&&xt.setReflow(Tt.reflow),"inverted"in Tt||"polar"in Tt||"type"in Tt){xt.propFromSeries();var Lt=!0}"alignTicks"in Tt&&(Lt=!0),"events"in Tt&&p(this,Tt),q(Tt,function(Pt,Et){xt.propsRequireUpdateSeries.indexOf("chart."+Et)!==-1&&(vt=!0),xt.propsRequireDirtyBox.indexOf(Et)!==-1&&(xt.isDirtyBox=!0),xt.propsRequireReflow.indexOf(Et)!==-1&&(wt?xt.isDirtyBox=!0:Ct=!0)}),!xt.styledMode&&Tt.style&&xt.renderer.setStyle(xt.options.chart.style||{})}!xt.styledMode&&dt.colors&&(this.options.colors=dt.colors),dt.time&&(this.time===M&&(this.time=new y(dt.time)),W(!0,xt.options.time,dt.time)),q(dt,function(Pt,Et){xt[Et]&&typeof xt[Et].update=="function"?xt[Et].update(Pt,!1):typeof xt[St[Et]]=="function"?xt[St[Et]](Pt):Et!=="colors"&&xt.collectionsWithUpdate.indexOf(Et)===-1&&W(!0,xt.options[Et],dt[Et]),Et!=="chart"&&xt.propsRequireUpdateSeries.indexOf(Et)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(Pt){if(dt[Pt]){var Et=[];xt[Pt].forEach(function(jt,Dt){jt.options.isInternal||Et.push(tt(jt.options.index,Dt))}),gt(dt[Pt]).forEach(function(jt,Dt){var _t,Bt=k(jt.id);Bt&&(_t=xt.get(jt.id)),!_t&&xt[Pt]&&(_t=xt[Pt][Et?Et[Dt]:Dt])&&Bt&&k(_t.options.id)&&(_t=void 0),_t&&_t.coll===Pt&&(_t.update(jt,!1),at&&(_t.touched=!0)),!_t&&at&&xt.collectionsWithInit[Pt]&&(xt.collectionsWithInit[Pt][0].apply(xt,[jt].concat(xt.collectionsWithInit[Pt][1]||[]).concat([!1])).touched=!0)}),at&&xt[Pt].forEach(function(jt){jt.touched||jt.options.isInternal?delete jt.touched:Mt.push(jt)})}}),Mt.forEach(function(Pt){Pt.chart&&Pt.remove&&Pt.remove(!1)}),Lt&&xt.axes.forEach(function(Pt){Pt.update({},!1)}),vt&&xt.getSeriesOrderByLinks().forEach(function(Pt){Pt.chart&&Pt.update({},!1)},this),Lt=Tt&&Tt.width,Tt=Tt&&(H(Tt.height)?nt(Tt.height,Lt||xt.chartWidth):Tt.height),Ct||j(Lt)&&Lt!==xt.chartWidth||j(Tt)&&Tt!==xt.chartHeight?xt.setSize(Lt,Tt,ut):tt(ot,!0)&&xt.redraw(ut),z(xt,"afterUpdate",{options:dt,redraw:ot,animation:ut})},yt.prototype.setSubtitle=function(dt,ot){this.applyDescription("subtitle",dt),this.layOutTitles(ot)},yt.prototype.setCaption=function(dt,ot){this.applyDescription("caption",dt),this.layOutTitles(ot)},yt.prototype.showResetZoom=function(){function dt(){ot.zoomOut()}var ot=this,at=S.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,Ct=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";z(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(at.resetZoom,null,null,dt,vt).attr({align:ut.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,Ct)}),z(this,"afterShowResetZoom")},yt.prototype.zoomOut=function(){z(this,"selection",{resetSelection:!0},this.zoom)},yt.prototype.zoom=function(dt){var ot,at=this,ut=at.pointer,vt=!1;!dt||dt.resetSelection?(at.axes.forEach(function(xt){ot=xt.zoom()}),ut.initiated=!1):dt.xAxis.concat(dt.yAxis).forEach(function(xt){var St=xt.axis;(ut[St.isXAxis?"zoomX":"zoomY"]&&k(ut.mouseDownX)&&k(ut.mouseDownY)&&at.isInsidePlot(ut.mouseDownX-at.plotLeft,ut.mouseDownY-at.plotTop,{axis:St})||!k(at.inverted?ut.mouseDownX:ut.mouseDownY))&&(ot=St.zoom(xt.min,xt.max),St.displayBtn&&(vt=!0))});var Ct=at.resetZoomButton;vt&&!Ct?at.showResetZoom():!vt&&Y(Ct)&&(at.resetZoomButton=Ct.destroy()),ot&&at.redraw(tt(at.options.chart.animation,dt&&dt.animation,100>at.pointCount))},yt.prototype.pan=function(dt,ot){var at=this,ut=at.hoverPoints;ot=typeof ot=="object"?ot:{enabled:ot,type:"x"};var vt=at.options.chart;vt&&vt.panning&&(vt.panning=ot);var Ct,xt=ot.type;z(this,"pan",{originalEvent:dt},function(){ut&&ut.forEach(function(Mt){Mt.setState()});var St=at.xAxis;xt==="xy"?St=St.concat(at.yAxis):xt==="y"&&(St=at.yAxis);var wt={};St.forEach(function(Mt){if(Mt.options.panningEnabled&&!Mt.options.isInternal){var Tt=Mt.horiz,Lt=dt[Tt?"chartX":"chartY"],Pt=at[Tt=Tt?"mouseDownX":"mouseDownY"],Et=Mt.minPointOffset||0,jt=Mt.reversed&&!at.inverted||!Mt.reversed&&at.inverted?-1:1,Dt=Mt.getExtremes(),_t=Mt.toValue(Pt-Lt,!0)+Et*jt,Bt=Mt.toValue(Pt+Mt.len-Lt,!0)-(Et*jt||Mt.isXAxis&&Mt.pointRangePadding||0),Jt=Bt<_t;jt=Mt.hasVerticalPanning(),Pt=Jt?Bt:_t,_t=Jt?_t:Bt;var Gt=Mt.panningState;!jt||Mt.isXAxis||Gt&&!Gt.isDirty||Mt.series.forEach(function(Ut){var Kt=Ut.getProcessedData(!0);Kt=Ut.getExtremes(Kt.yData,!0),Gt||(Gt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(Kt.dataMin)&&j(Kt.dataMax)&&(Gt.startMin=Math.min(tt(Ut.options.threshold,1/0),Kt.dataMin,Gt.startMin),Gt.startMax=Math.max(tt(Ut.options.threshold,-1/0),Kt.dataMax,Gt.startMax))}),jt=Math.min(tt(Gt&&Gt.startMin,Dt.dataMin),Et?Dt.min:Mt.toValue(Mt.toPixels(Dt.min)-Mt.minPixelPadding)),Bt=Math.max(tt(Gt&&Gt.startMax,Dt.dataMax),Et?Dt.max:Mt.toValue(Mt.toPixels(Dt.max)+Mt.minPixelPadding)),Mt.panningState=Gt,Mt.isOrdinal||(0<(Et=jt-Pt)&&(_t+=Et,Pt=jt),0<(Et=_t-Bt)&&(_t=Bt,Pt-=Et),Mt.series.length&&Pt!==Dt.min&&_t!==Dt.max&&Pt>=jt&&_t<=Bt&&(Mt.setExtremes(Pt,_t,!1,!1,{trigger:"pan"}),!at.resetZoomButton&&Pt!==jt&&_t!==Bt&&xt.match("y")&&(at.showResetZoom(),Mt.displayBtn=!1),Ct=!0),wt[Tt]=Lt)}}),q(wt,function(Mt,Tt){at[Tt]=Mt}),Ct&&at.redraw(!1),b(at.container,{cursor:"move"})})},yt}(),T(G.prototype,{callbacks:[],collectionsWithInit:{xAxis:[G.prototype.addAxis,[!0]],yAxis:[G.prototype.addAxis,[!1]],series:[G.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),G}),_(et,"Core/Legend/LegendSymbol.js",[et["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.merge,$=G.pick;return function(Z){Z.drawLineMarker=function(V){var F=this.legendItem=this.legendItem||{},I=this.options,E=V.symbolWidth,A=V.symbolHeight,P=A/2,y=this.chart.renderer,c=F.group;V=V.baseline-Math.round(.3*V.fontMetrics.b);var f={},m=I.marker,u=0;this.chart.styledMode||(f={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?f.dashstyle=I.dashStyle:I.linecap!=="square"&&(f["stroke-linecap"]="round")),F.line=y.path().addClass("highcharts-graph").attr(f).add(c),f["stroke-linecap"]&&(u=Math.min(F.line.strokeWidth(),E)/2),F.line.attr({d:[["M",u,V],["L",E-u,V]]}),m&&m.enabled!==!1&&E&&(I=Math.min($(m.radius,P),P),this.symbol.indexOf("url")===0&&(m=U(m,{width:A,height:A}),I=0),F.symbol=F=y.symbol(this.symbol,E/2-I,V-I,2*I,2*I,X({context:"legend"},m)).addClass("highcharts-point").add(c),F.isMarker=!0)},Z.drawRectangle=function(V,F){F=F.legendItem||{};var I=V.symbolHeight,E=V.options.squareSymbol;F.symbol=this.chart.renderer.rect(E?(V.symbolWidth-I)/2:0,V.baseline-I+1,E?I:V.symbolWidth,I,$(V.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(F.group)}}(B||(B={})),B}),_(et,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var G=this.series.chart.numberFormatter;return typeof this.y!="number"?"":G(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"}}),_(et,"Core/Series/Series.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Defaults.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/Point.js"],et["Core/Series/SeriesDefaults.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I,E){var A=G.animObject,P=G.setAnimation,y=B.defaultOptions,c=X.registerEventOptions,f=U.hasTouch,m=U.svg,u=U.win,v=F.seriesTypes,S=E.arrayMax,M=E.arrayMin,x=E.clamp,p=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,h=E.isNumber,b=E.isString,k=E.merge,D=E.objectEach,d=E.pick,C=E.removeEvent,T=E.splat,N=E.syncTimeout;return G=function(){function z(){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 z.prototype.init=function(L,O){e(this,"init",{options:O});var j=this,Y=L.series;this.eventsToUnbind=[],j.chart=L,j.options=j.setOptions(O),O=j.options,j.linkedSeries=[],j.bindAxes(),i(j,{name:O.name,state:"",visible:O.visible!==!1,selected:O.selected===!0}),c(this,O);var H,W=O.events;(W&&W.click||O.point&&O.point.events&&O.point.events.click||O.allowPointSelect)&&(L.runTrackerClick=!0),j.getColor(),j.getSymbol(),j.parallelArrays.forEach(function(q){j[q+"Data"]||(j[q+"Data"]=[])}),j.isCartesian&&(L.hasCartesianSeries=!0),Y.length&&(H=Y[Y.length-1]),j._i=d(H&&H._i,-1)+1,j.opacity=j.options.opacity,L.orderSeries(this.insert(Y)),O.dataSorting&&O.dataSorting.enabled?j.setDataSortingOptions():j.points||j.data||j.setData(O.data,!1),e(this,"afterInit")},z.prototype.is=function(L){return v[L]&&this instanceof v[L]},z.prototype.insert=function(L){var O,j=this.options.index;if(h(j)){for(O=L.length;O--;)if(j>=d(L[O].options.index,L[O]._i)){L.splice(O+1,0,this);break}O===-1&&L.unshift(this),O+=1}else L.push(this);return d(O,L.length-1)},z.prototype.bindAxes=function(){var L,O=this,j=O.options,Y=O.chart;e(this,"bindAxes",null,function(){(O.axisTypes||[]).forEach(function(H){var W=0;Y[H].forEach(function(q){L=q.options,(j[H]===W&&!L.isInternal||j[H]!==void 0&&j[H]===L.id||j[H]===void 0&&L.index===0)&&(O.insert(q.series),O[H]=q,q.isDirty=!0),L.isInternal||W++}),O[H]||O.optionalAxis===H||t(18,!0,Y)})}),e(this,"afterBindAxes")},z.prototype.updateParallelArrays=function(L,O){var j=L.series,Y=arguments,H=h(O)?function(W){var q=W==="y"&&j.toYData?j.toYData(L):L[W];j[W+"Data"][O]=q}:function(W){Array.prototype[O].apply(j[W+"Data"],Array.prototype.slice.call(Y,2))};j.parallelArrays.forEach(H)},z.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},z.prototype.autoIncrement=function(L){var O,j=this.options,Y=j.pointIntervalUnit,H=j.relativeXValue,W=this.chart.time,q=this.xIncrement;return q=d(q,j.pointStart,0),this.pointInterval=O=d(this.pointInterval,j.pointInterval,1),H&&h(L)&&(O*=L),Y&&(j=new W.Date(q),Y==="day"?W.set("Date",j,W.get("Date",j)+O):Y==="month"?W.set("Month",j,W.get("Month",j)+O):Y==="year"&&W.set("FullYear",j,W.get("FullYear",j)+O),O=j.getTime()-q),H&&h(L)?q+O:(this.xIncrement=q+O,q)},z.prototype.setDataSortingOptions=function(){var L=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(L.pointRange)||(L.pointRange=1)},z.prototype.setOptions=function(L){var O=this.chart,j=O.options,Y=j.plotOptions,H=O.userOptions||{};L=k(L),O=O.styledMode;var W={plotOptions:Y,userOptions:L};e(this,"setOptions",W);var q=W.plotOptions[this.type],tt=H.plotOptions||{};return this.userOptions=W.userOptions,H=k(q,Y.series,H.plotOptions&&H.plotOptions[this.type],L),this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,j.tooltip.userOptions,Y.series&&Y.series.tooltip,Y[this.type].tooltip,L.tooltip),this.stickyTracking=d(L.stickyTracking,tt[this.type]&&tt[this.type].stickyTracking,tt.series&&tt.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||H.stickyTracking),q.marker===null&&delete H.marker,this.zoneAxis=H.zoneAxis,Y=this.zones=(H.zones||[]).slice(),!H.negativeColor&&!H.negativeFillColor||H.zones||(j={value:H[this.zoneAxis+"Threshold"]||H.threshold||0,className:"highcharts-negative"},O||(j.color=H.negativeColor,j.fillColor=H.negativeFillColor),Y.push(j)),Y.length&&r(Y[Y.length-1].value)&&Y.push(O?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:H}),H},z.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},z.prototype.getCyclic=function(L,O,j){var Y=this.chart,H=this.userOptions,W=L+"Index",q=L+"Counter",tt=j?j.length:d(Y.options.chart[L+"Count"],Y[L+"Count"]);if(!O){var J=d(H[W],H["_"+W]);r(J)||(Y.series.length||(Y[q]=0),H["_"+W]=J=Y[q]%tt,Y[q]+=1),j&&(O=j[J])}J!==void 0&&(this[W]=J),this[L]=O},z.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},z.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},z.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},z.prototype.findPointIndex=function(L,O){var j,Y,H=L.id,W=L.x,q=this.points,tt=this.options.dataSorting;if(H)(tt=this.chart.get(H))instanceof Z&&(j=tt);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(j=function(nt){return!nt.touched&&nt.index===L.index},tt&&tt.matchByName?j=function(nt){return!nt.touched&&nt.name===L.name}:this.options.relativeXValue&&(j=function(nt){return!nt.touched&&nt.options.x===L.x}),!(j=o(q,j))))return;if(j){var J=j&&j.index;J!==void 0&&(Y=!0)}return J===void 0&&h(W)&&(J=this.xData.indexOf(W,O)),J!==-1&&J!==void 0&&this.cropped&&(J=J>=this.cropStart?J-this.cropStart:J),!Y&&h(J)&&q[J]&&q[J].touched&&(J=void 0),J},z.prototype.updateData=function(L,O){var j,Y,H,W=this.options,q=W.dataSorting,tt=this.points,J=[],nt=this.requireSorting,lt=L.length===tt.length,gt=!0;if(this.xIncrement=null,L.forEach(function(mt,bt){var yt=r(mt)&&this.pointClass.prototype.optionsToObject.call({series:this},mt)||{},dt=yt.x;yt.id||h(dt)?((yt=this.findPointIndex(yt,H))===-1||yt===void 0?J.push(mt):tt[yt]&&mt!==W.data[yt]?(tt[yt].update(mt,!1,null,!1),tt[yt].touched=!0,nt&&(H=yt+1)):tt[yt]&&(tt[yt].touched=!0),(!lt||bt!==yt||q&&q.enabled||this.hasDerivedData)&&(j=!0)):J.push(mt)},this),j)for(L=tt.length;L--;)(Y=tt[L])&&!Y.touched&&Y.remove&&Y.remove(!1,O);else!lt||q&&q.enabled?gt=!1:(L.forEach(function(mt,bt){mt!==tt[bt].y&&tt[bt].update&&tt[bt].update(mt,!1,null,!1)}),J.length=0);return tt.forEach(function(mt){mt&&(mt.touched=!1)}),!!gt&&(J.forEach(function(mt){this.addPoint(mt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=S(this.xData),this.autoIncrement()),!0)},z.prototype.setData=function(L,O,j,Y){O===void 0&&(O=!0);var H=this,W=H.points,q=W&&W.length||0,tt=H.options,J=H.chart,nt=tt.dataSorting,lt=H.xAxis,gt=tt.turboThreshold,mt=this.xData,bt=this.yData,yt=H.pointArrayMap;yt=yt&&yt.length;var dt,ot=tt.keys,at=0,ut=1,vt=null;if(!J.options.chart.allowMutatingData){tt.data&&delete H.options.data,H.userOptions.data&&delete H.userOptions.data;var Ct=k(!0,L)}if(Ct=(L=Ct||L||[]).length,nt&&nt.enabled&&(L=this.sortData(L)),J.options.chart.allowMutatingData&&Y!==!1&&Ct&&q&&!H.cropped&&!H.hasGroupedData&&H.visible&&!H.boosted&&(dt=this.updateData(L,j)),!dt){if(H.xIncrement=null,H.colorCounter=0,this.parallelArrays.forEach(function(xt){H[xt+"Data"].length=0}),gt&&Ct>gt)if(vt=H.getFirstValidPoint(L),h(vt))for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else if(n(vt))if(yt)if(vt.length===yt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[0],bt[j]=Y.slice(1,yt+1);else if(ot&&(at=0<=(at=ot.indexOf("x"))?at:0,ut=0<=(ut=ot.indexOf("y"))?ut:1),vt.length===1&&(ut=0),at===ut)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j][ut];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[at],bt[j]=Y[ut];else t(12,!1,J);else for(j=0;j<Ct;j++)L[j]!==void 0&&(Y={series:H},H.pointClass.prototype.applyOptions.apply(Y,[L[j]]),H.updateParallelArrays(Y,j));for(bt&&b(bt[0])&&t(14,!0,J),H.data=[],H.options.data=H.userOptions.data=L,j=q;j--;)W[j]&&W[j].destroy&&W[j].destroy();lt&&(lt.minRange=lt.userMinRange),H.isDirty=J.isDirtyBox=!0,H.isDirtyData=!!W,j=!1}tt.legendType==="point"&&(this.processData(),this.generatePoints()),O&&J.redraw(j)},z.prototype.sortData=function(L){var O=this,j=O.options.dataSorting.sortKey||"y",Y=function(H,W){return r(W)&&H.pointClass.prototype.optionsToObject.call({series:H},W)||{}};return L.forEach(function(H,W){L[W]=Y(O,H),L[W].index=W},this),L.concat().sort(function(H,W){return H=s(j,H),(W=s(j,W))<H?-1:W>H?1:0}).forEach(function(H,W){H.x=W},this),O.linkedSeries&&O.linkedSeries.forEach(function(H){var W=H.options,q=W.data;W.dataSorting&&W.dataSorting.enabled||!q||(q.forEach(function(tt,J){q[J]=Y(H,tt),L[J]&&(q[J].x=L[J].x,q[J].index=J)}),H.setData(q,!1))}),L},z.prototype.getProcessedData=function(L){var O=this.xAxis,j=this.options,Y=j.cropThreshold,H=L||this.getExtremesFromAll||j.getExtremesFromAll,W=this.isCartesian;L=O&&O.val2lin,j=!(!O||!O.logarithmic);var q=0,tt=this.xData,J=this.yData,nt=this.requireSorting,lt=!1,gt=tt.length;if(O){var mt=(lt=O.getExtremes()).min,bt=lt.max;lt=!(!O.categories||O.names.length)}if(W&&this.sorted&&!H&&(!Y||gt>Y||this.forceCrop)){if(tt[gt-1]<mt||tt[0]>bt)tt=[],J=[];else if(this.yData&&(tt[0]<mt||tt[gt-1]>bt)){var yt=this.cropData(this.xData,this.yData,mt,bt);tt=yt.xData,J=yt.yData,q=yt.start,yt=!0}}for(Y=tt.length||1;--Y;)if(0<(O=j?L(tt[Y])-L(tt[Y-1]):tt[Y]-tt[Y-1])&&(dt===void 0||O<dt))var dt=O;else 0>O&&nt&&!lt&&(t(15,!1,this.chart),nt=!1);return{xData:tt,yData:J,cropped:yt,cropStart:q,closestPointRange:dt}},z.prototype.processData=function(L){var O=this.xAxis;if(this.isCartesian&&!this.isDirty&&!O.isDirty&&!this.yAxis.isDirty&&!L)return!1;L=this.getProcessedData(),this.cropped=L.cropped,this.cropStart=L.cropStart,this.processedXData=L.xData,this.processedYData=L.yData,this.closestPointRange=this.basePointRange=L.closestPointRange,e(this,"afterProcessData")},z.prototype.cropData=function(L,O,j,Y,H){var W,q=L.length,tt=0,J=q;for(H=d(H,this.cropShoulder),W=0;W<q;W++)if(L[W]>=j){tt=Math.max(0,W-H);break}for(j=W;j<q;j++)if(L[j]>Y){J=j+H;break}return{xData:L.slice(tt,J),yData:O.slice(tt,J),start:tt,end:J}},z.prototype.generatePoints=function(){var L=this.options,O=this.processedData||L.data,j=this.processedXData,Y=this.processedYData,H=this.pointClass,W=j.length,q=this.cropStart||0,tt=this.hasGroupedData,J=L.keys,nt=[];L=L.dataGrouping&&L.dataGrouping.groupAll?q:0;var lt,gt,mt=this.data;if(!mt&&!tt){var bt=[];bt.length=O.length,mt=this.data=bt}for(J&&tt&&(this.options.keys=!1),gt=0;gt<W;gt++){if(bt=q+gt,tt){var yt=new H().init(this,[j[gt]].concat(T(Y[gt])));yt.dataGroup=this.groupMap[L+gt],yt.dataGroup.options&&(yt.options=yt.dataGroup.options,i(yt,yt.dataGroup.options),delete yt.dataLabels)}else(yt=mt[bt])||O[bt]===void 0||(mt[bt]=yt=new H().init(this,O[bt],j[gt]));yt&&(yt.index=tt?L+gt:bt,nt[gt]=yt)}if(this.options.keys=J,mt&&(W!==(lt=mt.length)||tt))for(gt=0;gt<lt;gt++)gt!==q||tt||(gt+=W),mt[gt]&&(mt[gt].destroyElements(),mt[gt].plotX=void 0);this.data=mt,this.points=nt,e(this,"afterGeneratePoints")},z.prototype.getXExtremes=function(L){return{min:M(L),max:S(L)}},z.prototype.getExtremes=function(L,O){var j=this.xAxis,Y=this.yAxis,H=this.processedXData||this.xData,W=[],q=this.requireSorting?this.cropShoulder:0;Y=!!Y&&Y.positiveValuesOnly;var tt,J=0,nt=0,lt=0,gt=(L=L||this.stackedYData||this.processedYData||[]).length;if(j){var mt=j.getExtremes();J=mt.min,nt=mt.max}for(tt=0;tt<gt;tt++){var bt=H[tt];mt=L[tt];var yt=(h(mt)||n(mt))&&(mt.length||0<mt||!Y);if(bt=O||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!j||(H[tt+q]||bt)>=J&&(H[tt-q]||bt)<=nt,yt&&bt)if(yt=mt.length)for(;yt--;)h(mt[yt])&&(W[lt++]=mt[yt]);else W[lt++]=mt}return L={activeYData:W,dataMin:M(W),dataMax:S(W)},e(this,"afterGetExtremes",{dataExtremes:L}),L},z.prototype.applyExtremes=function(){var L=this.getExtremes();return this.dataMin=L.dataMin,this.dataMax=L.dataMax,L},z.prototype.getFirstValidPoint=function(L){for(var O=L.length,j=0,Y=null;Y===null&&j<O;)Y=L[j],j++;return Y},z.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var L,O,j=this.options,Y=j.stacking,H=this.xAxis,W=H.categories,q=this.enabledDataSorting,tt=this.yAxis,J=this.points,nt=J.length,lt=this.pointPlacementToXValue(),gt=!!lt,mt=j.threshold,bt=j.startFromThreshold?mt:0,yt=this.zoneAxis||"y",dt=Number.MAX_VALUE;for(L=0;L<nt;L++){var ot=J[L],at=ot.x,ut=void 0,vt=void 0,Ct=ot.y,xt=ot.low,St=Y&&tt.stacking&&tt.stacking.stacks[(this.negStacks&&Ct<(bt?0:mt)?"-":"")+this.stackKey];if((tt.positiveValuesOnly&&!tt.validatePositiveValue(Ct)||H.positiveValuesOnly&&!H.validatePositiveValue(at))&&(ot.isNull=!0),ot.plotX=O=g(x(H.translate(at,0,0,0,1,lt,this.type==="flags"),-1e5,1e5)),Y&&this.visible&&St&&St[at]){var wt=this.getStackIndicator(wt,at,this.index);!ot.isNull&&wt.key&&(vt=(ut=St[at]).points[wt.key]),ut&&n(vt)&&(xt=vt[0],Ct=vt[1],xt===bt&&wt.key===St[at].base&&(xt=d(h(mt)?mt:tt.min)),tt.positiveValuesOnly&&r(xt)&&0>=xt&&(xt=void 0),ot.total=ot.stackTotal=d(ut.total),ot.percentage=r(ot.y)&&ut.total?ot.y/ut.total*100:void 0,ot.stackY=Ct,this.irregularWidths||ut.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(ot.yBottom=r(xt)?x(tt.translate(xt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Ct=this.dataModify.modifyValue(Ct,L)),ot.plotY=void 0,h(Ct)&&(ut=tt.translate(Ct,!1,!0,!1,!0))!==void 0&&(ot.plotY=x(ut,-1e5,1e5)),ot.isInside=this.isPointInside(ot),ot.clientX=gt?g(H.translate(at,0,0,0,1,lt)):O,ot.negative=ot[yt]<(j[yt+"Threshold"]||mt||0),ot.category=d(W&&W[ot.x],ot.x),!ot.isNull&&ot.visible!==!1){Mt!==void 0&&(dt=Math.min(dt,Math.abs(O-Mt)));var Mt=O}ot.zone=this.zones.length?ot.getZone():void 0,!ot.graphic&&this.group&&q&&(ot.isNew=!0)}this.closestPointRangePx=dt,e(this,"afterTranslate")},z.prototype.getValidPoints=function(L,O,j){var Y=this.chart;return(L||this.points||[]).filter(function(H){return!(O&&!Y.isInsidePlot(H.plotX,H.plotY,{inverted:Y.inverted}))&&H.visible!==!1&&(j||!H.isNull)})},z.prototype.getClipBox=function(){var L=this.chart,O=this.xAxis,j=this.yAxis,Y=k(L.clipBox);return O&&O.len!==L.plotSizeX&&(Y.width=O.len),j&&j.len!==L.plotSizeY&&(Y.height=j.len),Y},z.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},z.prototype.setClip=function(){var L=this.chart,O=this.group,j=this.markerGroup,Y=L.sharedClips;L=L.renderer;var H=this.getClipBox(),W=this.getSharedClipKey(),q=Y[W];q?q.animate(H):Y[W]=q=L.clipRect(H),O&&O.clip(this.options.clip===!1?void 0:q),j&&j.clip()},z.prototype.animate=function(L){var O=this.chart,j=this.group,Y=this.markerGroup,H=O.inverted,W=A(this.options.animation),q=[this.getSharedClipKey(),W.duration,W.easing,W.defer].join(),tt=O.sharedClips[q],J=O.sharedClips[q+"m"];if(L&&j)W=this.getClipBox(),tt?tt.attr("height",W.height):(W.width=0,H&&(W.x=O.plotHeight),tt=O.renderer.clipRect(W),O.sharedClips[q]=tt,J=O.renderer.clipRect({x:-99,y:-99,width:H?O.plotWidth+199:99,height:H?99:O.plotHeight+199}),O.sharedClips[q+"m"]=J),j.clip(tt),Y&&Y.clip(J);else if(tt&&!tt.hasClass("highcharts-animating")){O=this.getClipBox();var nt=W.step;Y&&Y.element.childNodes.length&&(W.step=function(lt,gt){nt&&nt.apply(gt,arguments),gt.prop==="width"&&J&&J.element&&J.attr(H?"height":"width",lt+99)}),tt.addClass("highcharts-animating").animate(O,W)}},z.prototype.afterAnimate=function(){var L=this;this.setClip(),D(this.chart.sharedClips,function(O,j,Y){O&&!L.chart.container.querySelector('[clip-path="url(#'.concat(O.id,')"]'))&&(O.destroy(),delete Y[j])}),this.finishedAnimating=!0,e(this,"afterAnimate")},z.prototype.drawPoints=function(L){L===void 0&&(L=this.points);var O,j,Y=this.chart,H=Y.styledMode,W=this.colorAxis,q=this.options.marker,tt=this[this.specialGroup||"markerGroup"],J=this.xAxis,nt=d(q.enabled,!(J&&!J.isRadial)||null,this.closestPointRangePx>=q.enabledThreshold*q.radius);if(q.enabled!==!1||this._hasPointMarkers)for(O=0;O<L.length;O++){var lt=L[O],gt=(j=lt.graphic)?"animate":"attr",mt=lt.marker||{},bt=!!lt.marker;if((nt&&mt.enabled===void 0||mt.enabled)&&!lt.isNull&<.visible!==!1){var yt=d(mt.symbol,this.symbol,"rect"),dt=this.markerAttribs(lt,lt.selected&&"select");this.enabledDataSorting&&(lt.startXPos=J.reversed?-(dt.width||0):J.width);var ot=lt.isInside!==!1;!j&&ot&&(0<(dt.width||0)||lt.hasImage)&&(lt.graphic=j=Y.renderer.symbol(yt,dt.x,dt.y,dt.width,dt.height,bt?mt:q).add(tt),this.enabledDataSorting&&Y.hasRendered&&(j.attr({x:lt.startXPos}),gt="animate")),j&>==="animate"&&j[ot?"show":"hide"](ot).animate(dt),j&&(mt=this.pointAttribs(lt,H||!lt.selected?void 0:"select"),H?W&&j.css({fill:mt.fill}):j[gt](mt)),j&&j.addClass(lt.getClassName(),!0)}else j&&(lt.graphic=j.destroy())}},z.prototype.markerAttribs=function(L,O){var j=this.options,Y=j.marker,H=L.marker||{},W=H.symbol||Y.symbol,q={},tt=d(H.radius,Y&&Y.radius);return O&&(Y=Y.states[O],O=H.states&&H.states[O],tt=d(O&&O.radius,Y&&Y.radius,tt&&tt+(Y&&Y.radiusPlus||0))),L.hasImage=W&&W.indexOf("url")===0,L.hasImage&&(tt=0),L=L.pos(),h(tt)&&L&&(q.x=L[0]-tt,q.y=L[1]-tt,j.crisp&&(q.x=Math.floor(q.x))),tt&&(q.width=q.height=2*tt),q},z.prototype.pointAttribs=function(L,O){var j=this.options.marker,Y=L&&L.options,H=Y&&Y.marker||{},W=Y&&Y.color,q=L&&L.color,tt=L&&L.zone&&L.zone.color,J=this.color;return L=d(H.lineWidth,j.lineWidth),Y=1,J=W||tt||q||J,W=H.fillColor||j.fillColor||J,q=H.lineColor||j.lineColor||J,O=O||"normal",j=j.states[O]||{},O=H.states&&H.states[O]||{},L=d(O.lineWidth,j.lineWidth,L+d(O.lineWidthPlus,j.lineWidthPlus,0)),W=O.fillColor||j.fillColor||W,{stroke:q=O.lineColor||j.lineColor||q,"stroke-width":L,fill:W,opacity:Y=d(O.opacity,j.opacity,Y)}},z.prototype.destroy=function(L){var O,j,Y,H=this,W=H.chart,q=/AppleWebKit\/533/.test(u.navigator.userAgent),tt=H.data||[];for(e(H,"destroy",{keepEventsForUpdate:L}),this.removeEvents(L),(H.axisTypes||[]).forEach(function(J){(Y=H[J])&&Y.series&&(a(Y.series,H),Y.isDirty=Y.forceRedraw=!0)}),H.legendItem&&H.chart.legend.destroyItem(H),O=tt.length;O--;)(j=tt[O])&&j.destroy&&j.destroy();H.clips&&H.clips.forEach(function(J){return J.destroy()}),E.clearTimeout(H.animationTimeout),D(H,function(J,nt){J instanceof I&&!J.survive&&J[q&&nt==="group"?"hide":"destroy"]()}),W.hoverSeries===H&&(W.hoverSeries=void 0),a(W.series,H),W.orderSeries(),D(H,function(J,nt){L&&nt==="hcEvents"||delete H[nt]})},z.prototype.applyZones=function(){var L,O,j,Y,H,W,q,tt,J=this,nt=this.chart,lt=nt.renderer,gt=this.zones,mt=this.clips||[],bt=this.graph,yt=this.area,dt=Math.max(nt.plotWidth,nt.plotHeight),ot=this[(this.zoneAxis||"y")+"Axis"],at=nt.inverted,ut=!1;if(gt.length&&(bt||yt)&&ot&&ot.min!==void 0){var vt=ot.reversed,Ct=ot.horiz;bt&&!this.showLine&&bt.hide(),yt&&yt.hide();var xt=ot.getExtremes();gt.forEach(function(St,wt){L=vt?Ct?nt.plotWidth:0:Ct?0:ot.toPixels(xt.min)||0,L=x(d(O,L),0,dt),O=x(Math.round(ot.toPixels(d(St.value,xt.max),!0)||0),0,dt),ut&&(L=O=ot.toPixels(xt.max)),Y=Math.abs(L-O),H=Math.min(L,O),W=Math.max(L,O),ot.isXAxis?(j={x:at?W:H,y:0,width:Y,height:dt},Ct||(j.x=nt.plotHeight-j.x)):(j={x:0,y:at?W:H,width:dt,height:Y},Ct&&(j.y=nt.plotWidth-j.y)),at&<.isVML&&(j=ot.isXAxis?{x:0,y:vt?H:W,height:j.width,width:nt.chartWidth}:{x:j.y-nt.plotLeft-nt.spacingBox.x,y:0,width:j.height,height:nt.chartHeight}),mt[wt]?mt[wt].animate(j):mt[wt]=lt.clipRect(j),q=J["zone-area-"+wt],tt=J["zone-graph-"+wt],bt&&tt&&tt.clip(mt[wt]),yt&&q&&q.clip(mt[wt]),ut=St.value>xt.max,J.resetZones&&O===0&&(O=void 0)}),this.clips=mt}else J.visible&&(bt&&bt.show(),yt&&yt.show())},z.prototype.plotGroup=function(L,O,j,Y,H){var W=this[L],q=!W;return j={visibility:j,zIndex:Y||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(j.opacity=this.opacity),q&&(this[L]=W=this.chart.renderer.g().add(H)),W.addClass("highcharts-"+O+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(W.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),W.attr(j)[q?"attr":"animate"](this.getPlotBox(O)),W},z.prototype.getPlotBox=function(L){var O=this.xAxis,j=this.yAxis,Y=this.chart;return L=Y.inverted&&!Y.polar&&O&&this.invertible!==!1&&L==="series",Y.inverted&&(O=j,j=this.xAxis),{translateX:O?O.left:Y.plotLeft,translateY:j?j.top:Y.plotTop,rotation:L?90:0,rotationOriginX:L?(O.len-j.len)/2:0,rotationOriginY:L?(O.len+j.len)/2:0,scaleX:L?-1:1,scaleY:1}},z.prototype.removeEvents=function(L){L||C(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(O){O()}),this.eventsToUnbind.length=0)},z.prototype.render=function(){var L=this,O=L.chart,j=L.options,Y=A(j.animation),H=L.visible?"inherit":"hidden",W=j.zIndex,q=L.hasRendered,tt=O.seriesGroup;O=!L.finishedAnimating&&O.renderer.isSVG?Y.duration:0,e(this,"render"),L.plotGroup("group","series",H,W,tt),L.markerGroup=L.plotGroup("markerGroup","markers",H,W,tt),j.clip!==!1&&L.setClip(),L.animate&&O&&L.animate(!0),L.drawGraph&&(L.drawGraph(),L.applyZones()),L.visible&&L.drawPoints(),L.drawDataLabels&&L.drawDataLabels(),L.redrawPoints&&L.redrawPoints(),L.drawTracker&&L.options.enableMouseTracking!==!1&&L.drawTracker(),L.animate&&O&&L.animate(),q||(O&&Y.defer&&(O+=Y.defer),L.animationTimeout=N(function(){L.afterAnimate()},O||0)),L.isDirty=!1,L.hasRendered=!0,e(L,"afterRender")},z.prototype.redraw=function(){var L=this.isDirty||this.isDirtyData;this.translate(),this.render(),L&&delete this.kdTree},z.prototype.searchPoint=function(L,O){var j=this.xAxis,Y=this.yAxis,H=this.chart.inverted;return this.searchKDTree({clientX:H?j.len-L.chartY+j.pos:L.chartX-j.pos,plotY:H?Y.len-L.chartX+Y.pos:L.chartY-Y.pos},O,L)},z.prototype.buildKDTree=function(L){function O(H,W,q){var tt=H&&H.length;if(tt){var J=j.kdAxisArray[W%q];return H.sort(function(nt,lt){return nt[J]-lt[J]}),{point:H[tt=Math.floor(tt/2)],left:O(H.slice(0,tt),W+1,q),right:O(H.slice(tt+1),W+1,q)}}}this.buildingKdTree=!0;var j=this,Y=-1<j.options.findNearestPointBy.indexOf("y")?2:1;delete j.kdTree,N(function(){j.kdTree=O(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||L&&L.type==="touchstart"?0:1)},z.prototype.searchKDTree=function(L,O,j){var Y=this,H=this.kdAxisArray[0],W=this.kdAxisArray[1],q=O?"distX":"dist";if(O=-1<Y.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(j),this.kdTree)return function tt(J,nt,lt,gt){var mt=nt.point,bt=Y.kdAxisArray[lt%gt],yt=mt,dt=r(J[H])&&r(mt[H])?Math.pow(J[H]-mt[H],2):null,ot=r(J[W])&&r(mt[W])?Math.pow(J[W]-mt[W],2):null;return ot=(dt||0)+(ot||0),mt.dist=r(ot)?Math.sqrt(ot):Number.MAX_VALUE,mt.distX=r(dt)?Math.sqrt(dt):Number.MAX_VALUE,dt=0>(bt=J[bt]-mt[bt])?"right":"left",nt[ot=0>bt?"left":"right"]&&(yt=(ot=tt(J,nt[ot],lt+1,gt))[q]<yt[q]?ot:mt),nt[dt]&&Math.sqrt(bt*bt)<yt[q]&&(yt=(J=tt(J,nt[dt],lt+1,gt))[q]<yt[q]?J:yt),yt}(L,this.kdTree,O,O)},z.prototype.pointPlacementToXValue=function(){var L=this.options,O=L.pointRange,j=this.xAxis;return(L=L.pointPlacement)==="between"&&(L=j.reversed?-.5:.5),h(L)?L*(O||j.pointRange):0},z.prototype.isPointInside=function(L){var O=this.chart,j=this.xAxis,Y=this.yAxis;return L.plotY!==void 0&&L.plotX!==void 0&&0<=L.plotY&&L.plotY<=(Y?Y.len:O.plotHeight)&&0<=L.plotX&&L.plotX<=(j?j.len:O.plotWidth)},z.prototype.drawTracker=function(){var L=this,O=L.options,j=O.trackByArea,Y=[].concat(j?L.areaPath:L.graphPath),H=L.chart,W=H.pointer,q=H.renderer,tt=H.options.tooltip.snap,J=L.tracker,nt=function(gt){H.hoverSeries!==L&&L.onMouseOver()},lt="rgba(192,192,192,"+(m?1e-4:.002)+")";J?J.attr({d:Y}):L.graph&&(L.tracker=q.path(Y).attr({visibility:L.visible?"inherit":"hidden",zIndex:2}).addClass(j?"highcharts-tracker-area":"highcharts-tracker-line").add(L.group),H.styledMode||L.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:lt,fill:j?lt:"none","stroke-width":L.graph.strokeWidth()+(j?0:2*tt)}),[L.tracker,L.markerGroup,L.dataLabelsGroup].forEach(function(gt){gt&&(gt.addClass("highcharts-tracker").on("mouseover",nt).on("mouseout",function(mt){W.onTrackerMouseOut(mt)}),O.cursor&&!H.styledMode&>.css({cursor:O.cursor}),f)&>.on("touchstart",nt)})),e(this,"afterDrawTracker")},z.prototype.addPoint=function(L,O,j,Y,H){var W=this.options,q=this.data,tt=this.chart,J=this.xAxis;J=J&&J.hasNames&&J.names;var nt,lt=W.data,gt=this.xData;O=d(O,!0);var mt={series:this};this.pointClass.prototype.applyOptions.apply(mt,[L]);var bt=mt.x,yt=gt.length;if(this.requireSorting&&bt<gt[yt-1])for(nt=!0;yt&>[yt-1]>bt;)yt--;this.updateParallelArrays(mt,"splice",yt,0,0),this.updateParallelArrays(mt,yt),J&&mt.name&&(J[bt]=mt.name),lt.splice(yt,0,L),(nt||this.processedData)&&(this.data.splice(yt,0,null),this.processData()),W.legendType==="point"&&this.generatePoints(),j&&(q[0]&&q[0].remove?q[0].remove(!1):(q.shift(),this.updateParallelArrays(mt,"shift"),lt.shift())),H!==!1&&e(this,"addPoint",{point:mt}),this.isDirtyData=this.isDirty=!0,O&&tt.redraw(Y)},z.prototype.removePoint=function(L,O,j){var Y=this,H=Y.data,W=H[L],q=Y.points,tt=Y.chart,J=function(){q&&q.length===H.length&&q.splice(L,1),H.splice(L,1),Y.options.data.splice(L,1),Y.updateParallelArrays(W||{series:Y},"splice",L,1),W&&W.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,O&&tt.redraw()};P(j,tt),O=d(O,!0),W?W.firePointEvent("remove",null,J):J()},z.prototype.remove=function(L,O,j,Y){function H(){W.destroy(Y),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(L,!0)&&q.redraw(O)}var W=this,q=W.chart;j!==!1?e(W,"remove",null,H):H()},z.prototype.update=function(L,O){L=p(L,this.userOptions),e(this,"update",{options:L});var j=this,Y=j.chart,H=j.userOptions,W=j.initialType||j.type,q=Y.options.plotOptions,tt=v[W].prototype,J=j.finishedAnimating&&{animation:!1},nt={},lt=["eventOptions","navigatorSeries","baseSeries"],gt=L.type||H.type||Y.options.chart.type,mt=!(this.hasDerivedData||gt&>!==this.type||L.pointStart!==void 0||L.pointInterval!==void 0||L.relativeXValue!==void 0||L.joinBy||L.mapData||j.hasOptionChanged("dataGrouping")||j.hasOptionChanged("pointStart")||j.hasOptionChanged("pointInterval")||j.hasOptionChanged("pointIntervalUnit")||j.hasOptionChanged("keys"));if(gt=gt||W,mt&&(lt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),L.visible!==!1&<.push("area","graph"),j.parallelArrays.forEach(function(yt){lt.push(yt+"Data")}),L.data&&(L.dataSorting&&i(j.options.dataSorting,L.dataSorting),this.setData(L.data,!1))),L=k(H,J,{index:H.index===void 0?j.index:H.index,pointStart:d(q&&q.series&&q.series.pointStart,H.pointStart,j.xData[0])},!mt&&{data:j.options.data},L),mt&&L.data&&(L.data=j.options.data),(lt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(lt)).forEach(function(yt){lt[yt]=j[yt],delete j[yt]}),q=!1,v[gt]){if(q=gt!==j.type,j.remove(!1,!1,!1,!0),q)if(Object.setPrototypeOf)Object.setPrototypeOf(j,v[gt].prototype);else{for(bt in J=Object.hasOwnProperty.call(j,"hcEvents")&&j.hcEvents,tt)j[bt]=void 0;i(j,v[gt].prototype),J?j.hcEvents=J:delete j.hcEvents}}else t(17,!0,Y,{missingModuleFor:gt});if(lt.forEach(function(yt){j[yt]=lt[yt]}),j.init(Y,L),mt&&this.points){if((L=j.options).visible===!1)nt.graphic=1,nt.dataLabel=1;else if(!j._hasPointLabels){tt=L.marker;var bt=L.dataLabels;H=H.marker||{},!tt||tt.enabled!==!1&&H.symbol===tt.symbol&&H.height===tt.height&&H.width===tt.width||(nt.graphic=1),bt&&bt.enabled===!1&&(nt.dataLabel=1)}for(H=0,tt=this.points;H<tt.length;H++)(bt=tt[H])&&bt.series&&(bt.resolveColor(),Object.keys(nt).length&&bt.destroyElements(nt),L.showInLegend===!1&&bt.legendItem&&Y.legend.destroyItem(bt))}j.initialType=W,Y.linkSeries(),q&&j.linkedSeries.length&&(j.isDirtyData=!0),e(this,"afterUpdate"),d(O,!0)&&Y.redraw(!!mt&&void 0)},z.prototype.setName=function(L){this.name=this.options.name=this.userOptions.name=L,this.chart.isDirtyLegend=!0},z.prototype.hasOptionChanged=function(L){var O=this.options[L],j=this.chart.options.plotOptions,Y=this.userOptions[L];return Y?O!==Y:O!==d(j&&j[this.type]&&j[this.type][L],j&&j.series&&j.series[L],O)},z.prototype.onMouseOver=function(){var L=this.chart,O=L.hoverSeries;L.pointer.setHoverChartIndex(),O&&O!==this&&O.onMouseOut(),this.options.events.mouseOver&&e(this,"mouseOver"),this.setState("hover"),L.hoverSeries=this},z.prototype.onMouseOut=function(){var L=this.options,O=this.chart,j=O.tooltip,Y=O.hoverPoint;O.hoverSeries=null,Y&&Y.onMouseOut(),this&&L.events.mouseOut&&e(this,"mouseOut"),!j||this.stickyTracking||j.shared&&!this.noSharedTooltip||j.hide(),O.series.forEach(function(H){H.setState("",!0)})},z.prototype.setState=function(L,O){var j=this,Y=j.options,H=j.graph,W=Y.inactiveOtherPoints,q=Y.states,tt=d(q[L||"normal"]&&q[L||"normal"].animation,j.chart.options.chart.animation),J=Y.lineWidth,nt=0,lt=Y.opacity;if(L=L||"",j.state!==L&&([j.group,j.markerGroup,j.dataLabelsGroup].forEach(function(gt){gt&&(j.state&>.removeClass("highcharts-series-"+j.state),L&>.addClass("highcharts-series-"+L))}),j.state=L,!j.chart.styledMode)){if(q[L]&&q[L].enabled===!1)return;if(L&&(J=q[L].lineWidth||J+(q[L].lineWidthPlus||0),lt=d(q[L].opacity,lt)),H&&!H.dashstyle&&h(J))for(Y={"stroke-width":J},H.animate(Y,tt);j["zone-graph-"+nt];)j["zone-graph-"+nt].animate(Y,tt),nt+=1;W||[j.group,j.markerGroup,j.dataLabelsGroup,j.labelBySeries].forEach(function(gt){gt&>.animate({opacity:lt},tt)})}O&&W&&j.points&&j.setAllPointsToState(L||void 0)},z.prototype.setAllPointsToState=function(L){this.points.forEach(function(O){O.setState&&O.setState(L)})},z.prototype.setVisible=function(L,O){var j=this,Y=j.chart,H=Y.options.chart.ignoreHiddenSeries,W=j.visible,q=(j.visible=L=j.options.visible=j.userOptions.visible=L===void 0?!W:L)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(tt){j[tt]&&j[tt][q]()}),Y.hoverSeries!==j&&(Y.hoverPoint&&Y.hoverPoint.series)!==j||j.onMouseOut(),j.legendItem&&Y.legend.colorizeItem(j,L),j.isDirty=!0,j.options.stacking&&Y.series.forEach(function(tt){tt.options.stacking&&tt.visible&&(tt.isDirty=!0)}),j.linkedSeries.forEach(function(tt){tt.setVisible(L,!1)}),H&&(Y.isDirtyBox=!0),e(j,q),O!==!1&&Y.redraw()},z.prototype.show=function(){this.setVisible(!0)},z.prototype.hide=function(){this.setVisible(!1)},z.prototype.select=function(L){this.selected=L=this.options.selected=L===void 0?!this.selected:L,this.checkbox&&(this.checkbox.checked=L),e(this,L?"select":"unselect")},z.prototype.shouldShowTooltip=function(L,O,j){return j===void 0&&(j={}),j.series=this,j.visiblePlotOnly=!0,this.chart.isInsidePlot(L,O,j)},z.defaultOptions=V,z.types=F.seriesTypes,z.registerType=F.registerSeriesType,z}(),i(G.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),F.series=G,G}),_(et,"Extensions/ScrollablePlotArea.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Chart/Chart.js"],et["Core/Series/Series.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.stop,F=Z.addEvent,I=Z.createElement,E=Z.defined,A=Z.merge,P=Z.pick;F(X,"afterSetChartSize",function(y){var c=this.options.chart.scrollablePlotArea,f=c&&c.minWidth;if(c=c&&c.minHeight,!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.width=this.plotWidth+=f,this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var m={1:{name:"right",value:f}}}}else c&&(this.scrollablePixelsY=f=Math.max(0,c-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}}));m&&!y.skipAxes&&this.axes.forEach(function(u){m[u.side]?u.getPlotLinePath=function(){var v=m[u.side].name,S=this[v];this[v]=S-m[u.side].value;var M=B.prototype.getPlotLinePath.apply(this,arguments);return this[v]=S,M}:(u.setAxisSize(),u.setAxisTranslation())})}}),F(X,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),X.prototype.setUpScrolling=function(){var y,c=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),F(this.scrollingContainer,"scroll",function(){c.pointer&&(delete c.pointer.chartPosition,c.hoverPoint&&(y=c.hoverPoint),c.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},X.prototype.moveFixedElements=function(){var y,c=this.container,f=this.fixedRenderer,m=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(c.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},X.prototype.applyFixed=function(){var y=!this.fixedDiv,c=this.options.chart,f=c.scrollablePlotArea,m=$.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.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=c=new m(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(f.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),F(this,"afterShowResetZoom",this.moveFixedElements),F(this,"afterApplyDrilldown",this.moveFixedElements),F(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),c=this.chartWidth+(this.scrollablePixelsX||0),m=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=c+"px",this.container.style.height=m+"px",this.renderer.boxWrapper.attr({width:c,height:m,viewBox:[0,0,c,m].join(" ")}),this.chartBackground.attr({width:c,height:m}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*f.scrollPositionX),f.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*f.scrollPositionY)),m=this.axisOffset,y=this.plotTop-m[0]-1,f=this.plotLeft-m[3]-1,c=this.plotTop+this.plotHeight+m[2]+1,m=this.plotLeft+this.plotWidth+m[1]+1;var u=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",u,y],["L",this.chartWidth,y],["L",this.chartWidth,c],["L",u,c],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",m,this.plotTop-1],["L",m,0],["Z"],["M",f,v],["L",f,this.chartHeight],["L",m,this.chartHeight],["L",m,v],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},F(B,"afterInit",function(){this.chart.scrollableDirty=!0}),F(U,"show",function(){this.chart.scrollableDirty=!0})}),_(et,"Core/Axis/Stacking/StackItem.js",[et["Core/FormatUtilities.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=G.format,$=B.series,Z=X.destroyObjectProperties,V=X.pick,F=X.isNumber;return G=function(){function I(E,A,P,y,c){var f=E.chart.inverted,m=E.reversed;this.axis=E,E=this.isNegative=!!P!=!!m,this.options=A=A||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=c,this.rightCliff=this.leftCliff=0,this.alignOptions={align:A.align||(f?E?"left":"right":"center"),verticalAlign:A.verticalAlign||(f?"middle":E?"bottom":"top"),y:A.y,x:A.x},this.textAlign=A.textAlign||(f?E?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var A=this.axis.chart,P=this.options,y=P.format;y=y?U(y,this,A):P.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=A.renderer.label(y,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels"),y={r:P.borderRadius||0,text:y,padding:V(P.padding,5),visibility:"hidden"},A.styledMode||(y.fill=P.backgroundColor,y.stroke=P.borderColor,y["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(y),this.label.added||this.label.add(E)),this.label.labelrank=A.plotSizeY},I.prototype.setOffset=function(E,A,P,y,c,f){var m=this.alignOptions,u=this.axis,v=this.label,S=this.options,M=this.textAlign,x=u.chart;E=this.getStackBox({xOffset:E,width:A,boxBottom:P,boxTop:y,defaultX:c,xAxis:f}),c=m.verticalAlign,v&&E&&(A=v.getBBox(),P=v.padding,y=V(S.overflow,"justify")==="justify",m.x=S.x||0,m.y=S.y||0,M=(c=this.adjustStackPosition({labelBox:A,verticalAlign:c,textAlign:M})).x,c=c.y,E.x-=M,E.y-=c,v.align(m,!1,E),(M=x.isInsidePlot(v.alignAttr.x+m.x+M,v.alignAttr.y+m.y+c))||(y=!1),y&&$.prototype.justifyDataLabel.call(u,v,m,v.alignAttr,A,E),v.attr({x:v.alignAttr.x,y:v.alignAttr.y,rotation:S.rotation,rotationOriginX:A.width/2,rotationOriginY:A.height/2}),V(!y&&S.crop,!0)&&(M=F(v.x)&&F(v.y)&&x.isInsidePlot(v.x-P+v.width,v.y)&&x.isInsidePlot(v.x+P,v.y)),v[M?"show":"hide"]())},I.prototype.adjustStackPosition=function(E){var A=E.labelBox,P={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:A.width/2+A.width/2*P[E.textAlign],y:A.height/2*P[E.verticalAlign]}},I.prototype.getStackBox=function(E){var A=this.axis,P=A.chart,y=E.boxTop,c=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom;return y=A.stacking.usePercentage?100:V(y,this.total,0),y=A.toPixels(y),E=V(c,(E.xAxis||P.xAxis[0]).toPixels(this.x))+f,A=A.toPixels(u||0),A=Math.abs(y-A),u=this.isNegative,P.inverted?{x:(u?y:y-A)-P.plotLeft,y:E-P.plotTop,width:A,height:m}:{x:E-P.plotLeft,y:(u?y-A:y)-P.plotTop,width:m,height:A}},I}(),G}),_(et,"Core/Axis/Stacking/StackingAxis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Axis/Stacking/StackItem.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){function Z(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,a(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join())})}function V(){var i=this.stacking;if(i){var o=i.stacks;r(o,function(e,s){M(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function F(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function I(i,o,e,s){return!S(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(),i}function E(){var i,o=this,e=o.stackKey,s=o.yAxis.stacking.stacks,n=o.processedXData,h=o[o.options.stacking+"Stacker"];h&&[e,"-"+e].forEach(function(b){for(var k,D,d=n.length;d--;)k=n[d],i=o.getStackIndicator(i,k,o.index,b),(D=(k=s[b]&&s[b][k])&&k.points[i.key])&&h.call(o,D,k,d)})}function A(i,o,e){o=o.total?100/o.total:0,i[0]=v(i[0]*o),i[1]=v(i[1]*o),this.stackedYData[e]=i[1]}function P(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):i&&r(i.stacks,function(o,e){e.slice(-5)==="group"&&(r(o,function(s){return s.destroy()}),delete i.stacks[e])})}function y(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s=this.processedXData,n=this.processedYData,h=[],b=n.length,k=this.options,D=k.threshold,d=a(k.startFromThreshold&&D,0);k=k.stack;var C,T,N="-"+(i=i?""+this.type+",".concat(e):this.stackKey),z=this.negStacks,L=(o=e==="group"?o.yAxis[0]:this.yAxis).stacking.stacks,O=o.stacking.oldStacks;for(o.stacking.stacksTouched+=1,T=0;T<b;T++){var j=s[T],Y=n[T],H=this.getStackIndicator(H,j,this.index),W=H.key,q=(C=z&&Y<(d?0:D))?N:i;L[q]||(L[q]={}),L[q][j]||(O[q]&&O[q][j]?(L[q][j]=O[q][j],L[q][j].total=null):L[q][j]=new U(o,o.options.stackLabels,!!C,j,k)),q=L[q][j],Y!==null?(q.points[W]=q.points[this.index]=[a(q.cumulative,d)],S(q.cumulative)||(q.base=W),q.touched=o.stacking.stacksTouched,0<H.index&&this.singleStacks===!1&&(q.points[W][0]=q.points[this.index+","+j+",0"][0])):q.points[W]=q.points[this.index]=null,e==="percent"?(C=C?i:N,z&&L[C]&&L[C][j]?(C=L[C][j],q.total=C.total=Math.max(C.total,q.total)+Math.abs(Y)||0):q.total=v(q.total+(Math.abs(Y)||0))):e==="group"?(p(Y)&&(Y=Y[0]),Y!==null&&(q.total=(q.total||0)+1)):q.total=v(q.total+(Y||0)),q.cumulative=e==="group"?(q.total||1)-1:a(q.cumulative,d)+(Y||0),Y!==null&&(q.points[W].push(q.cumulative),h[T]=q.cumulative,q.hasValidPoints=!0)}e==="percent"&&(o.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=h),o.stacking.oldStacks={}}}var c,f=G.getDeferredAnimation,m=X.series.prototype,u=$.addEvent,v=$.correctFloat,S=$.defined,M=$.destroyObjectProperties,x=$.fireEvent,p=$.isArray,g=$.isNumber,r=$.objectEach,a=$.pick,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e=this.axis,s=e.series,n=e.options.reversedStacks,h=s.length;for(this.usePercentage=!1,o=h;o--;){var b=s[n?o:h-o-1];b.setStackedPoints(),b.setGroupedPoints()}for(o=0;o<h;o++)s[o].modifyStacks();x(e,"afterBuildStacks")},i.prototype.cleanStacks=function(){if(this.oldStacks)var o=this.stacks=this.oldStacks;r(o,function(e){r(e,function(s){s.cumulative=s.total})})},i.prototype.resetStacks=function(){var o=this;r(this.stacks,function(e){r(e,function(s,n){g(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this.axis,e=o.chart,s=e.renderer,n=this.stacks;o=f(e,o.options.stackLabels&&o.options.stackLabels.animation||!1);var h=this.stackTotalGroup=this.stackTotalGroup||s.g("stack-labels").attr({zIndex:6,opacity:0}).add();h.translate(e.plotLeft,e.plotTop),r(n,function(b){r(b,function(k){k.render(h)})}),h.animate({opacity:1},o)},i}();return function(i){var o=[];i.compose=function(e,s,n){o.indexOf(e)===-1&&(o.push(e),u(e,"init",F),u(e,"destroy",V)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=Z),o.indexOf(n)===-1&&(o.push(n),(e=n.prototype).getStackIndicator=I,e.modifyStacks=E,e.percentStacker=A,e.setGroupedPoints=P,e.setStackedPoints=y)}}(c||(c={})),c}),_(et,"Series/Line/LineSeries.js",[et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var V=function(F,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])})(F,I)};return function(F,I){function E(){this.constructor=F}V(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=X.defined,Z=X.merge;return X=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return U(F,V),F.prototype.drawGraph=function(){var I=this,E=this.options,A=(this.gappedPath||this.getGraphPath).call(this),P=this.chart.styledMode,y=[["graph","highcharts-graph"]];P||y[0].push(E.lineColor||this.color||"#cccccc",E.dashStyle),(y=I.getZonesGraphs(y)).forEach(function(c,f){var m=c[0],u=I[m],v=u?"animate":"attr";u?(u.endX=I.preventGraphAnimation?null:A.xMap,u.animate({d:A})):A.length&&(I[m]=u=I.chart.renderer.path(A).addClass(c[1]).attr({zIndex:1}).add(I.group)),u&&!P&&(m={stroke:c[2],"stroke-width":E.lineWidth||0,fill:I.fillGraph&&I.color||"none"},c[3]?m.dashstyle=c[3]:E.linecap!=="square"&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),u[v](m).shadow(2>f&&E.shadow)),u&&(u.startX=A.xMap,u.isArea=A.isArea)})},F.prototype.getGraphPath=function(I,E,A){var P,y=this,c=y.options,f=[],m=[],u=c.step,v=(I=I||y.points).reversed;return v&&I.reverse(),(u={right:1,center:2}[u]||u&&3)&&v&&(u=4-u),(I=this.getValidPoints(I,!1,!(c.connectNulls&&!E&&!A))).forEach(function(S,M){var x=S.plotX,p=S.plotY,g=I[M-1];(S.leftCliff||g&&g.rightCliff)&&!A&&(P=!0),S.isNull&&!$(E)&&0<M?P=!c.connectNulls:S.isNull&&!E?P=!0:(M===0||P?M=[["M",S.plotX,S.plotY]]:y.getPointSpline?M=[y.getPointSpline(I,S,M)]:u?(M=u===1?[["L",g.plotX,p]]:u===2?[["L",(g.plotX+x)/2,g.plotY],["L",(g.plotX+x)/2,p]]:[["L",x,g.plotY]]).push(["L",x,p]):M=[["L",x,p]],m.push(S.x),u&&(m.push(S.x),u===2&&m.push(S.x)),f.push.apply(f,M),P=!1)}),f.xMap=m,y.graphPath=f},F.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(E,A){A=["zone-graph-"+A,"highcharts-graph highcharts-zone-graph-"+A+" "+(E.className||"")],this.chart.styledMode||A.push(E.color||this.color,E.dashStyle||this.options.dashStyle),I.push(A)},this),I},F.defaultOptions=Z(G.defaultOptions,{}),F}(G),B.registerSeriesType("line",X),X}),_(et,"Series/Area/AreaSeries.js",[et["Core/Color/Color.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=this&&this.__extends||function(){var A=function(P,y){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m])},A(P,y)};return function(P,y){function c(){this.constructor=P}A(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}}(),Z=G.parse,V=X.seriesTypes.line;G=U.extend;var F=U.merge,I=U.objectEach,E=U.pick;return U=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,A),P.prototype.drawGraph=function(){this.areaPath=[],A.prototype.drawGraph.apply(this);var y=this,c=this.areaPath,f=this.options,m=[["area","highcharts-area",this.color,f.fillColor]];this.zones.forEach(function(u,v){m.push(["zone-area-"+v,"highcharts-area highcharts-zone-area-"+v+" "+u.className,u.color||y.color,u.fillColor||f.fillColor])}),m.forEach(function(u){var v=u[0],S={},M=y[v],x=M?"animate":"attr";M?(M.endX=y.preventGraphAnimation?null:c.xMap,M.animate({d:c})):(S.zIndex=0,(M=y[v]=y.chart.renderer.path(c).addClass(u[1]).add(y.group)).isArea=!0),y.chart.styledMode||(S.fill=E(u[3],Z(u[2]).setOpacity(E(f.fillOpacity,.75)).get())),M[x](S),M.startX=c.xMap,M.shiftUnit=f.step?2:1})},P.prototype.getGraphPath=function(y){var c=V.prototype.getGraphPath,f=this.options,m=f.stacking,u=this.yAxis,v=[],S=[],M=this.index,x=u.stacking.stacks[this.stackKey],p=f.threshold,g=Math.round(u.getThreshold(f.threshold));f=E(f.connectNulls,m==="percent");var r=function(s,n,h){var b=y[s];s=m&&x[b.x].points[M];var k=b[h+"Null"]||0;if(h=b[h+"Cliff"]||0,b=!0,h||k){var D=(k?s[0]:s[1])+h,d=s[0]+h;b=!!k}else!m&&y[n]&&y[n].isNull&&(D=d=p);D!==void 0&&(S.push({plotX:o,plotY:D===null?g:u.getThreshold(D),isNull:b,isCliff:!0}),v.push({plotX:o,plotY:d===null?g:u.getThreshold(d),doCurve:!1}))};y=y||this.points,m&&(y=this.getStackPoints(y));for(var a=0,t=y.length;a<t;++a){m||(y[a].leftCliff=y[a].rightCliff=y[a].leftNull=y[a].rightNull=void 0);var i=y[a].isNull,o=E(y[a].rectPlotX,y[a].plotX),e=m?E(y[a].yBottom,g):g;i&&!f||(f||r(a,a-1,"left"),i&&!m&&f||(S.push(y[a]),v.push({x:a,plotX:o,plotY:e})),f||r(a,a+1,"right"))}return r=c.call(this,S,!0,!0),v.reversed=!0,(e=(i=c.call(this,v,!0,!0))[0])&&e[0]==="M"&&(i[0]=["L",e[1],e[2]]),(i=r.concat(i)).length&&i.push(["Z"]),c=c.call(this,S,!1,f),i.xMap=r.xMap,this.areaPath=i,c},P.prototype.getStackPoints=function(y){var c=this,f=[],m=[],u=this.xAxis,v=this.yAxis,S=v.stacking.stacks[this.stackKey],M={},x=v.series,p=x.length,g=v.options.reversedStacks?1:-1,r=x.indexOf(c);if(y=y||this.points,this.options.stacking){for(var a=0;a<y.length;a++)y[a].leftNull=y[a].rightNull=void 0,M[y[a].x]=y[a];I(S,function(i,o){i.total!==null&&m.push(o)}),m.sort(function(i,o){return i-o});var t=x.map(function(i){return i.visible});m.forEach(function(i,o){var e,s,n=0;if(M[i]&&!M[i].isNull)f.push(M[i]),[-1,1].forEach(function(b){var k=b===1?"rightNull":"leftNull",D=S[m[o+b]],d=0;if(D)for(var C=r;0<=C&&C<p;){var T=x[C].index;(e=D.points[T])||(T===c.index?M[i][k]=!0:t[C]&&(s=S[i].points[T])&&(d-=s[1]-s[0])),C+=g}M[i][b===1?"rightCliff":"leftCliff"]=d});else{for(var h=r;0<=h&&h<p;){if(e=S[i].points[x[h].index]){n=e[1];break}h+=g}n=E(n,0),n=v.translate(n,0,1,0,1),f.push({isNull:!0,plotX:u.translate(i,0,0,0,1),x:i,plotY:n,yBottom:n})}})}return f},P.defaultOptions=F(V.defaultOptions,{threshold:0}),P}(V),G(U.prototype,{singleStacks:!1,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("area",U),U}),_(et,"Series/Spline/SplineSeries.js",[et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B){var X=this&&this.__extends||function(){var V=function(F,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])})(F,I)};return function(F,I){function E(){this.constructor=F}V(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),U=G.seriesTypes.line,$=B.merge,Z=B.pick;return B=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return X(F,V),F.prototype.getPointSpline=function(I,E,A){var P=E.plotX||0,y=E.plotY||0,c=I[A-1];if(A=I[A+1],c&&!c.isNull&&c.doCurve!==!1&&!E.isCliff&&A&&!A.isNull&&A.doCurve!==!1&&!E.isCliff){I=c.plotY||0;var f=A.plotX||0;A=A.plotY||0;var m=0,u=(1.5*P+(c.plotX||0))/2.5,v=(1.5*y+I)/2.5,S=(1.5*y+A)/2.5;(f=(1.5*P+f)/2.5)!==u&&(m=(S-v)*(f-P)/(f-u)+y-S),S+=m,(v+=m)>I&&v>y?S=2*y-(v=Math.max(I,y)):v<I&&v<y&&(S=2*y-(v=Math.min(I,y))),S>A&&S>y?v=2*y-(S=Math.max(A,y)):S<A&&S<y&&(v=2*y-(S=Math.min(A,y))),E.rightContX=f,E.rightContY=S}return E=["C",Z(c.rightContX,c.plotX,0),Z(c.rightContY,c.plotY,0),Z(u,P,0),Z(v,y,0),P,y],c.rightContX=c.rightContY=void 0,E},F.defaultOptions=$(U.defaultOptions),F}(U),G.registerSeriesType("spline",B),B}),_(et,"Series/AreaSpline/AreaSplineSeries.js",[et["Series/Spline/SplineSeries.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=X.seriesTypes,V=Z.area;Z=Z.area.prototype;var F=U.extend,I=U.merge;return U=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.points=void 0,P.options=void 0,P}return $(A,E),A.defaultOptions=I(G.defaultOptions,V.defaultOptions),A}(G),F(U.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("areaspline",U),U}),_(et,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),_(et,"Series/Column/ColumnSeries.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Series/Column/ColumnSeriesDefaults.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F){var I=this&&this.__extends||function(){var p=function(g,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},p(g,r)};return function(g,r){function a(){this.constructor=g}p(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),E=G.animObject,A=B.parse,P=U.hasTouch;G=U.noop;var y=F.clamp,c=F.defined,f=F.extend,m=F.fireEvent,u=F.isArray,v=F.isNumber,S=F.merge,M=F.pick,x=F.objectEach;return F=function(p){function g(){var r=p!==null&&p.apply(this,arguments)||this;return r.borderWidth=void 0,r.data=void 0,r.group=void 0,r.options=void 0,r.points=void 0,r}return I(g,p),g.prototype.animate=function(r){var a=this,t=this.yAxis,i=a.options,o=this.chart.inverted,e={},s=o?"translateX":"translateY";if(r)e.scaleY=.001,r=y(t.toPixels(i.threshold),t.pos,t.pos+t.len),o?e.translateX=r-t.len:e.translateY=r,a.clipBox&&a.setClip(),a.group.attr(e);else{var n=Number(a.group.attr(s));a.group.animate({scaleY:1},f(E(a.options.animation),{step:function(h,b){a.group&&(e[s]=n+b.pos*(t.pos-n),a.group.attr(e))}}))}},g.prototype.init=function(r,a){p.prototype.init.apply(this,arguments);var t=this;(r=t.chart).hasRendered&&r.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)})},g.prototype.getColumnMetrics=function(){var r=this,a=r.options,t=r.xAxis,i=r.yAxis,o=t.options.reversedStacks;o=t.reversed&&!o||!t.reversed&&o;var e,s={},n=0;a.grouping===!1?n=1:r.chart.series.forEach(function(D){var d=D.yAxis,C=D.options;if(D.type===r.type&&(D.visible||!r.chart.options.chart.ignoreHiddenSeries)&&i.len===d.len&&i.pos===d.pos){if(C.stacking&&C.stacking!=="group"){e=D.stackKey,s[e]===void 0&&(s[e]=n++);var T=s[e]}else C.grouping!==!1&&(T=n++);D.columnIndex=T}});var h=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||a.pointRange||t.closestPointRange||t.tickInterval||1),t.len),b=h*a.groupPadding,k=(h-2*b)/(n||1);return a=Math.min(a.maxPointWidth||t.len,M(a.pointWidth,k*(1-2*a.pointPadding))),r.columnMetrics={width:a,offset:(k-a)/2+(b+((r.columnIndex||0)+(o?1:0))*k-h/2)*(o?-1:1),paddedWidth:k,columnCount:n},r.columnMetrics},g.prototype.crispCol=function(r,a,t,i){var o=this.chart,e=this.borderWidth,s=-(e%2?.5:0);return e=e%2?.5:1,o.inverted&&o.renderer.isVML&&(e+=1),this.options.crisp&&(t=Math.round(r+t)+s,t-=r=Math.round(r)+s),i=Math.round(a+i)+e,s=.5>=Math.abs(a)&&.5<i,i-=a=Math.round(a)+e,s&&i&&(--a,i+=1),{x:r,y:a,width:t,height:i}},g.prototype.adjustForMissingColumns=function(r,a,t,i){var o=this,e=this.options.stacking;if(!t.isNull&&1<i.columnCount){var s=this.yAxis.options.reversedStacks,n=0,h=s?0:-i.columnCount;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if(typeof t.x=="number"){var k=b[t.x.toString()];k&&(b=k.points[o.index],e?(b&&(n=h),k.hasValidPoints&&(s?h++:h--)):u(b)&&(b=Object.keys(k.points).filter(function(D){return!D.match(",")&&k.points[D]&&1<k.points[D].length}).map(parseFloat).sort(function(D,d){return d-D}),n=b.indexOf(o.index),h=b.length))}}),r=(t.plotX||0)+((h-1)*i.paddedWidth+a)/2-a-n*i.paddedWidth}return r},g.prototype.translate=function(){var r=this,a=r.chart,t=r.options,i=r.dense=2>r.closestPointRange*r.xAxis.transA;i=r.borderWidth=M(t.borderWidth,i?0:1);var o=r.xAxis,e=r.yAxis,s=t.threshold,n=r.translatedThreshold=e.getThreshold(s),h=M(t.minPointLength,5),b=r.getColumnMetrics(),k=b.width,D=r.pointXOffset=b.offset,d=r.dataMin,C=r.dataMax,T=r.barW=Math.max(k,1+2*i);a.inverted&&(n-=.5),t.pointPadding&&(T=Math.ceil(T)),Z.prototype.translate.apply(r),r.points.forEach(function(N){var z=M(N.yBottom,n),L=999+Math.abs(z),O=N.plotX||0;L=y(N.plotY,-L,e.len+L);var j=Math.min(L,z),Y=Math.max(L,z)-j,H=k,W=O+D,q=T;h&&Math.abs(Y)<h&&(Y=h,O=!e.reversed&&!N.negative||e.reversed&&N.negative,v(s)&&v(C)&&N.y===s&&C<=s&&(e.min||0)<s&&(d!==C||(e.max||0)<=s)&&(O=!O),j=Math.abs(j-n)>h?z-h:n-(O?h:0)),c(N.options.pointWidth)&&(H=q=Math.ceil(N.options.pointWidth),W-=Math.round((H-k)/2)),t.centerInCategory&&(W=r.adjustForMissingColumns(W,H,N,b)),N.barX=W,N.pointWidth=H,N.tooltipPos=a.inverted?[y(e.len+e.pos-a.plotLeft-L,e.pos-a.plotLeft,e.len+e.pos-a.plotLeft),o.len+o.pos-a.plotTop-W-q/2,Y]:[o.left-a.plotLeft+W+q/2,y(L+e.pos-a.plotTop,e.pos-a.plotTop,e.len+e.pos-a.plotTop),Y],N.shapeType=r.pointClass.prototype.shapeType||"rect",N.shapeArgs=r.crispCol.apply(r,N.isNull?[W,n,q,0]:[W,j,q,Y])})},g.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},g.prototype.pointAttribs=function(r,a){var t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=r&&r.color||this.color,n=r&&r[o]||t[o]||s;i=r&&r.options.dashStyle||t.dashStyle;var h=r&&r[e]||t[e]||this[e]||0,b=M(r&&r.opacity,t.opacity,1);if(r&&this.zones.length){var k=r.getZone();s=r.options.color||k&&(k.color||r.nonZonedColor)||this.color,k&&(n=k.borderColor||n,i=k.dashStyle||i,h=k.borderWidth||h)}return a&&r&&(a=(r=S(t.states[a],r.options.states&&r.options.states[a]||{})).brightness,s=r.color||a!==void 0&&A(s).brighten(r.brightness).get()||s,n=r[o]||n,h=r[e]||h,i=r.dashStyle||i,b=M(r.opacity,b)),o={fill:s,stroke:n,"stroke-width":h,opacity:b},i&&(o.dashstyle=i),o},g.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var a,t=this,i=this.chart,o=t.options,e=i.renderer,s=o.animationLimit||250;r.forEach(function(n){var h=n.graphic,b=!!h,k=h&&i.pointCount<s?"animate":"attr";v(n.plotY)&&n.y!==null?(a=n.shapeArgs,h&&n.hasNewShapeType()&&(h=h.destroy()),t.enabledDataSorting&&(n.startXPos=t.xAxis.reversed?-(a&&a.width||0):t.xAxis.width),h||(n.graphic=h=e[n.shapeType](a).add(n.group||t.group))&&t.enabledDataSorting&&i.hasRendered&&i.pointCount<s&&(h.attr({x:n.startXPos}),b=!0,k="animate"),h&&b&&h[k](S(a)),o.borderRadius&&h[k]({r:o.borderRadius}),i.styledMode||h[k](t.pointAttribs(n,n.selected&&"select")).shadow(n.allowShadow!==!1&&o.shadow,null,o.stacking&&!o.borderRadius),h&&(h.addClass(n.getClassName(),!0),h.attr({visibility:n.visible?"inherit":"hidden"}))):h&&(n.graphic=h.destroy())})},g.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var a,t=this,i=t.chart,o=i.pointer,e=function(s){var n=o.getPointFromEvent(s);n!==void 0&&(o.isDirectTouch=!0,n.onMouseOver(s))};r.forEach(function(s){a=u(s.dataLabels)?s.dataLabels:s.dataLabel?[s.dataLabel]:[],s.graphic&&(s.graphic.element.point=s),a.forEach(function(n){n.div?n.div.point=s:n.element.point=s})}),t._hasTracking||(t.trackerGroups.forEach(function(s){t[s]&&(t[s].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(n){o.onTrackerMouseOut(n)}),P&&t[s].on("touchstart",e),!i.styledMode&&t.options.cursor&&t[s].css({cursor:t.options.cursor}))}),t._hasTracking=!0),m(this,"afterDrawTracker")},g.prototype.remove=function(){var r=this,a=r.chart;a.hasRendered&&a.series.forEach(function(t){t.type===r.type&&(t.isDirty=!0)}),Z.prototype.remove.apply(r,arguments)},g.defaultOptions=S(Z.defaultOptions,X),g}(Z),f(F.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:G,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),V.registerSeriesType("column",F),F}),_(et,"Core/Series/DataLabel.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/FormatUtilities.js"],et["Core/Utilities.js"]],function(G,B,X){var U,$=G.getDeferredAnimation,Z=B.format,V=X.defined,F=X.extend,I=X.fireEvent,E=X.isArray,A=X.isString,P=X.merge,y=X.objectEach,c=X.pick,f=X.splat;return function(m){function u(g,r,a,t,i){var o=this,e=this.chart,s=this.isCartesian&&e.inverted,n=this.enabledDataSorting,h=g.plotX,b=g.plotY,k=a.rotation,D=a.align,d=V(h)&&V(b)&&e.isInsidePlot(h,Math.round(b),{inverted:s,paneCoordinates:!0,series:o});b=function(z){n&&o.xAxis&&!C&&o.setDataLabelStartPos(g,r,i,d,z)};var C=c(a.overflow,n?"none":"justify")==="justify";if(h=this.visible&&g.visible!==!1&&V(h)&&(g.series.forceDL||n&&!C||d||c(a.inside,!!this.options.stacking)&&t&&e.isInsidePlot(h,s?t.x+1:t.y+t.height-1,{inverted:s,paneCoordinates:!0,series:o})),s=g.pos(),h&&s){k&&r.attr({align:D}),D=r.getBBox(!0);var T=[0,0],N=e.renderer.fontMetrics(e.styledMode?void 0:a.style.fontSize,r).b;t=F({x:s[0],y:Math.round(s[1]),width:0,height:0},t),F(a,{width:D.width,height:D.height}),k?(C=!1,T=e.renderer.rotCorr(N,k),N={x:t.x+(a.x||0)+t.width/2+T.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},T=[D.x-Number(r.attr("x")),D.y-Number(r.attr("y"))],b(N),r[i?"attr":"animate"](N)):(b(t),r.align(a,void 0,t),N=r.alignAttr),C&&0<=t.height?this.justifyDataLabel(r,a,N,D,t,i):c(a.crop,!0)&&(t=N.x,b=N.y,t+=T[0],b+=T[1],h=e.isInsidePlot(t,b,{paneCoordinates:!0,series:o})&&e.isInsidePlot(t+D.width,b+D.height,{paneCoordinates:!0,series:o})),a.shape&&!k&&r[i?"attr":"animate"]({anchorX:s[0],anchorY:s[1]})}i&&n&&(r.placed=!1),h||n&&!C?r.show():(r.hide(),r.placed=!1)}function v(g){g===void 0&&(g=this.points);var r=this,a=r.chart,t=r.options,i=r.hasRendered||0,o=a.renderer,e=a.options.chart,s=e.backgroundColor;e=e.plotBackgroundColor;var n=o.getContrast(A(e)&&e||A(s)&&s||"#000000"),h=t.dataLabels;if(s=h.animation,s=h.defer?$(a,s,r):{defer:0,duration:0},h=M(M(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[r.type]&&a.options.plotOptions[r.type].dataLabels),h),I(this,"drawDataLabels"),E(h)||h.enabled||r._hasPointLabels){var b=r.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",h.zIndex||6);b.attr({opacity:+i}),!i&&(i=r.dataLabelsGroup)&&(r.visible&&b.show(),i[t.animation?"animate":"attr"]({opacity:1},s)),g.forEach(function(k){f(M(h,k.dlOptions||k.options&&k.options.dataLabels)).forEach(function(D,d){var C=D.enabled&&(!k.isNull||k.dataLabelOnNull)&&function(q,tt){var J=tt.filter;return!J||(tt=J.operator,q=q[J.property],J=J.value,tt===">"&&q>J||tt==="<"&&q<J||tt===">="&&q>=J||tt==="<="&&q<=J||tt==="=="&&q==J||tt==="==="&&q===J)}(k,D),T=k.connectors?k.connectors[d]:k.connector,N=k.dataLabels?k.dataLabels[d]:k.dataLabel,z=!N,L=c(D.distance,k.labelDistance);if(C){var O=k.getLabelConfig(),j=c(D[k.formatPrefix+"Format"],D.format);O=V(j)?Z(j,O,a):(D[k.formatPrefix+"Formatter"]||D.formatter).call(O,D),j=D.style;var Y=D.rotation;a.styledMode||(j.color=c(D.color,j.color,r.color,"#000000"),j.color==="contrast"?(k.contrastColor=o.getContrast(k.color||r.color),j.color=!V(L)&&D.inside||0>L||t.stacking?k.contrastColor:n):delete k.contrastColor,t.cursor&&(j.cursor=t.cursor));var H={r:D.borderRadius||0,rotation:Y,padding:D.padding,zIndex:1};if(!a.styledMode){L=D.backgroundColor;var W=D.borderColor;H.fill=L==="auto"?k.color:L,H.stroke=W==="auto"?k.color:W,H["stroke-width"]=D.borderWidth}y(H,function(q,tt){q===void 0&&delete H[tt]})}!N||C&&V(O)&&!!N.div==!!D.useHTML&&(N.rotation&&D.rotation||N.rotation===D.rotation)||(z=!0,k.dataLabel=N=k.dataLabel&&k.dataLabel.destroy(),k.dataLabels&&(k.dataLabels.length===1?delete k.dataLabels:delete k.dataLabels[d]),d||delete k.dataLabel,T&&(k.connector=k.connector.destroy(),k.connectors&&(k.connectors.length===1?delete k.connectors:delete k.connectors[d]))),C&&V(O)?(N?H.text=O:(k.dataLabels=k.dataLabels||[],N=k.dataLabels[d]=Y?o.text(O,0,0,D.useHTML).addClass("highcharts-data-label"):o.label(O,0,0,D.shape,null,null,D.useHTML,null,"data-label"),d||(k.dataLabel=N),N.addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":""))),N.options=D,N.attr(H),a.styledMode||N.css(j).shadow(D.shadow),(d=D[k.formatPrefix+"TextPath"]||D.textPath)&&!D.useHTML&&(N.setTextPath(k.getDataLabelPath&&k.getDataLabelPath(N)||k.graphic,d),k.dataLabelPath&&!d.enabled&&(k.dataLabelPath=k.dataLabelPath.destroy())),N.added||N.add(b),r.alignDataLabel(k,N,D,null,z)):N&&N.hide()})})}I(this,"afterDrawDataLabels")}function S(g,r,a,t,i,o){var e=this.chart,s=r.align,n=r.verticalAlign,h=g.box?0:g.padding||0,b=r.x;b=b===void 0?0:b;var k=r.y;k=k===void 0?0:k;var D=(a.x||0)+h;if(0>D){s==="right"&&0<=b?(r.align="left",r.inside=!0):b-=D;var d=!0}return(D=(a.x||0)+t.width-h)>e.plotWidth&&(s==="left"&&0>=b?(r.align="right",r.inside=!0):b+=e.plotWidth-D,d=!0),0>(D=a.y+h)&&(n==="bottom"&&0<=k?(r.verticalAlign="top",r.inside=!0):k-=D,d=!0),(D=(a.y||0)+t.height-h)>e.plotHeight&&(n==="top"&&0>=k?(r.verticalAlign="bottom",r.inside=!0):k+=e.plotHeight-D,d=!0),d&&(r.x=b,r.y=k,g.placed=!o,g.align(r,void 0,i)),d}function M(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function x(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,h=e?r.height/2:r.width/2;g=(g=g.pointWidth)?g/2:0,r.startXPos=e?i.x:n?-h-g:s.width-h+g,r.startYPos=e?n?this.yAxis.height-h+g:-h-g:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}var p=[];m.compose=function(g){if(p.indexOf(g)===-1){var r=g.prototype;p.push(g),r.alignDataLabel=u,r.drawDataLabels=v,r.justifyDataLabel=S,r.setDataLabelStartPos=x}}}(U||(U={})),U}),_(et,"Series/Column/ColumnDataLabel.js",[et["Core/Series/DataLabel.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U,$=B.series,Z=X.merge,V=X.pick;return function(F){function I(A,P,y,c,f){var m=this.chart.inverted,u=A.series,v=(u.xAxis?u.xAxis.len:this.chart.plotSizeX)||0;u=(u.yAxis?u.yAxis.len:this.chart.plotSizeY)||0;var S=A.dlBox||A.shapeArgs,M=V(A.below,A.plotY>V(this.translatedThreshold,u)),x=V(y.inside,!!this.options.stacking);S&&(0>(c=Z(S)).y&&(c.height+=c.y,c.y=0),0<(S=c.y+c.height-u)&&S<c.height&&(c.height-=S),m&&(c={x:u-c.y-c.height,y:v-c.x-c.width,width:c.height,height:c.width}),x||(m?(c.x+=M?0:c.width,c.width=0):(c.y+=M?c.height:0,c.height=0))),y.align=V(y.align,!m||x?"center":M?"right":"left"),y.verticalAlign=V(y.verticalAlign,m||x?"middle":M?"top":"bottom"),$.prototype.alignDataLabel.call(this,A,P,y,c,f),y.inside&&A.contrastColor&&P.css({color:A.contrastColor})}var E=[];F.compose=function(A){G.compose($),E.indexOf(A)===-1&&(E.push(A),A.prototype.alignDataLabel=I)}}(U||(U={})),U}),_(et,"Series/Bar/BarSeries.js",[et["Series/Column/ColumnSeries.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var V=function(F,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])})(F,I)};return function(F,I){function E(){this.constructor=F}V(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=X.extend,Z=X.merge;return X=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return U(F,V),F.defaultOptions=Z(G.defaultOptions,{}),F}(G),$(X.prototype,{inverted:!0}),B.registerSeriesType("bar",X),X}),_(et,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),_(et,"Series/Scatter/ScatterSeries.js",[et["Series/Scatter/ScatterSeriesDefaults.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),$=B.seriesTypes,Z=$.column,V=$.line;$=X.addEvent;var F=X.extend,I=X.merge;return X=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return U(A,E),A.prototype.applyJitter=function(){var P=this,y=this.options.jitter,c=this.points.length;y&&this.points.forEach(function(f,m){["x","y"].forEach(function(u,v){var S="plot"+u.toUpperCase();if(y[u]&&!f.isNull){var M=P[u+"Axis"],x=y[u]*M.transA;if(M&&!M.isLog){var p=Math.max(0,f[S]-x);M=Math.min(M.len,f[S]+x),v=1e4*Math.sin(m+v*c),f[S]=p+(M-p)*(v-Math.floor(v)),u==="x"&&(f.clientX=f.plotX)}}})})},A.prototype.drawGraph=function(){this.options.lineWidth?E.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},A.defaultOptions=I(V.defaultOptions,G),A}(V),F(X.prototype,{drawTracker:Z.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(X,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",X),X}),_(et,"Series/CenteredUtilities.js",[et["Core/Globals.js"],et["Core/Series/Series.js"],et["Core/Utilities.js"]],function(G,B,X){var U,$=G.deg2rad,Z=X.fireEvent,V=X.isNumber,F=X.pick,I=X.relativeLength;return function(E){E.getCenter=function(){var A=this.options,P=this.chart,y=2*(A.slicedOffset||0),c=P.plotWidth-2*y,f=P.plotHeight-2*y,m=A.center,u=Math.min(c,f),v=A.thickness,S=A.size,M=A.innerSize||0;for(typeof S=="string"&&(S=parseFloat(S)),typeof M=="string"&&(M=parseFloat(M)),A=[F(m[0],"50%"),F(m[1],"50%"),F(S&&0>S?void 0:A.size,"100%"),F(M&&0>M?void 0:A.innerSize||0,"0%")],!P.angular||this instanceof B||(A[3]=0),m=0;4>m;++m)S=A[m],P=2>m||m===2&&/%$/.test(S),A[m]=I(S,[c,f,u,A[2]][m])+(P?y:0);return A[3]>A[2]&&(A[3]=A[2]),V(v)&&2*v<A[2]&&0<v&&(A[3]=A[2]-2*v),Z(this,"afterGetCenter",{positions:A}),A},E.getStartAndEndRadians=function(A,P){return A=V(A)?A:0,P=V(P)&&P>A&&360>P-A?P:A+360,{start:$*(A+-90),end:$*(P+-90)}}}(U||(U={})),U}),_(et,"Series/Pie/PiePoint.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var A=function(P,y){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m])},A(P,y)};return function(P,y){function c(){this.constructor=P}A(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}}(),$=G.setAnimation,Z=X.addEvent,V=X.defined;G=X.extend;var F=X.isNumber,I=X.pick,E=X.relativeLength;return B=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return U(P,A),P.prototype.getConnectorPath=function(){var y=this.labelPosition,c=this.series.options.dataLabels,f=this.connectorShapes,m=c.connectorShape;return f[m]&&(m=f[m]),m.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,c)},P.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},P.prototype.haloPath=function(y){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+y,c.r+y,{innerR:c.r-1,start:c.start,end:c.end})},P.prototype.init=function(){var y=this;A.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var c=function(f){y.slice(f.type==="select")};return Z(this,"select",c),Z(this,"unselect",c),this},P.prototype.isValid=function(){return F(this.y)&&0<=this.y},P.prototype.setVisible=function(y,c){var f=this,m=this.series,u=m.chart,v=m.options.ignoreHiddenPoint;c=I(c,v),y!==this.visible&&(this.visible=this.options.visible=y=y===void 0?!this.visible:y,m.options.data[m.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(S){f[S]&&f[S][y?"show":"hide"](y)}),this.legendItem&&u.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),v&&(m.isDirty=!0),c&&u.redraw())},P.prototype.slice=function(y,c,f){var m=this.series;$(f,m.chart),I(c,!0),this.sliced=this.options.sliced=V(y)?y:!this.sliced,m.options.data[m.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},P}(B),G(B.prototype,{connectorShapes:{fixedOffset:function(A,P,y){var c=P.breakAt;return P=P.touchingSliceAt,[["M",A.x,A.y],y.softConnector?["C",A.x+(A.alignment==="left"?-5:5),A.y,2*c.x-P.x,2*c.y-P.y,c.x,c.y]:["L",c.x,c.y],["L",P.x,P.y]]},straight:function(A,P){return P=P.touchingSliceAt,[["M",A.x,A.y],["L",P.x,P.y]]},crookedLine:function(A,P,y){P=P.touchingSliceAt;var c=this.series,f=c.center[0],m=c.chart.plotWidth,u=c.chart.plotLeft;c=A.alignment;var v=this.shapeArgs.r;return y=E(y.crookDistance,1),y=["L",m=c==="left"?f+v+(m+u-f-v)*(1-y):u+(f-v)*y,A.y],f=!0,(c==="left"?m>A.x||m<P.x:m<A.x||m>P.x)&&(f=!1),A=[["M",A.x,A.y]],f&&A.push(y),A.push(["L",P.x,P.y]),A}}}),B}),_(et,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),_(et,"Series/Pie/PieSeries.js",[et["Series/CenteredUtilities.js"],et["Series/Column/ColumnSeries.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Series/Pie/PiePoint.js"],et["Series/Pie/PieSeriesDefaults.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/Symbols.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I,E){var A=this&&this.__extends||function(){var S=function(M,x){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var r in g)g.hasOwnProperty(r)&&(p[r]=g[r])},S(M,x)};return function(M,x){function p(){this.constructor=M}S(M,x),M.prototype=x===null?Object.create(x):(p.prototype=x.prototype,new p)}}(),P=G.getStartAndEndRadians;X=X.noop;var y=E.clamp,c=E.extend,f=E.fireEvent,m=E.merge,u=E.pick,v=E.relativeLength;return E=function(S){function M(){var x=S!==null&&S.apply(this,arguments)||this;return x.center=void 0,x.data=void 0,x.maxLabelDistance=void 0,x.options=void 0,x.points=void 0,x}return A(M,S),M.prototype.animate=function(x){var p=this,g=p.points,r=p.startAngleRad;x||g.forEach(function(a){var t=a.graphic,i=a.shapeArgs;t&&i&&(t.attr({r:u(a.startR,p.center&&p.center[3]/2),start:r,end:r}),t.animate({r:i.r,start:i.start,end:i.end},p.options.animation))})},M.prototype.drawEmpty=function(){var x=this.startAngleRad,p=this.endAngleRad,g=this.options;if(this.total===0&&this.center){var r=this.center[0],a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,x,p).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:x,end:p,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":g.borderWidth,fill:g.fillColor||"none",stroke:g.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},M.prototype.drawPoints=function(){var x=this.chart.renderer;this.points.forEach(function(p){p.graphic&&p.hasNewShapeType()&&(p.graphic=p.graphic.destroy()),p.graphic||(p.graphic=x[p.shapeType](p.shapeArgs).add(p.series.group),p.delayedRendering=!0)})},M.prototype.generatePoints=function(){S.prototype.generatePoints.call(this),this.updateTotals()},M.prototype.getX=function(x,p,g){var r=this.center,a=this.radii?this.radii[g.index]||0:r[2]/2;return x=Math.asin(y((x-r[1])/(a+g.labelDistance),-1,1)),r[0]+(p?-1:1)*Math.cos(x)*(a+g.labelDistance)+(0<g.labelDistance?(p?-1:1)*this.options.dataLabels.padding:0)},M.prototype.hasData=function(){return!!this.processedXData.length},M.prototype.redrawPoints=function(){var x,p,g,r,a=this,t=a.chart,i=t.renderer,o=a.options.shadow;this.drawEmpty(),!o||a.shadowGroup||t.styledMode||(a.shadowGroup=i.g("shadow").attr({zIndex:-1}).add(a.group)),a.points.forEach(function(e){var s={};if(p=e.graphic,!e.isNull&&p){var n=void 0;r=e.shapeArgs,x=e.getTranslate(),t.styledMode||(n=e.shadowGroup,o&&!n&&(n=e.shadowGroup=i.g("shadow").add(a.shadowGroup)),n&&n.attr(x),g=a.pointAttribs(e,e.selected&&"select")),e.delayedRendering?(p.setRadialReference(a.center).attr(r).attr(x),t.styledMode||p.attr(g).attr({"stroke-linejoin":"round"}).shadow(o,n),e.delayedRendering=!1):(p.setRadialReference(a.center),t.styledMode||m(!0,s,g),m(!0,s,r,x),p.animate(s)),p.attr({visibility:e.visible?"inherit":"hidden"}),p.addClass(e.getClassName(),!0)}else p&&(e.graphic=p.destroy())})},M.prototype.sortByAngle=function(x,p){x.sort(function(g,r){return g.angle!==void 0&&(r.angle-g.angle)*p})},M.prototype.translate=function(x){f(this,"translate"),this.generatePoints();var p=this.options,g=p.slicedOffset,r=g+(p.borderWidth||0),a=P(p.startAngle,p.endAngle),t=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-t;var i=this.points,o=p.dataLabels.distance;p=p.ignoreHiddenPoint;var e,s=i.length,n=0;for(x||(this.center=x=this.getCenter()),e=0;e<s;e++){var h=i[e],b=t+n*a;!h.isValid()||p&&!h.visible||(n+=h.percentage/100);var k=t+n*a,D={x:x[0],y:x[1],r:x[2]/2,innerR:x[3]/2,start:Math.round(1e3*b)/1e3,end:Math.round(1e3*k)/1e3};h.shapeType="arc",h.shapeArgs=D,h.labelDistance=u(h.options.dataLabels&&h.options.dataLabels.distance,o),h.labelDistance=v(h.labelDistance,D.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,h.labelDistance),(k=(k+b)/2)>1.5*Math.PI?k-=2*Math.PI:k<-Math.PI/2&&(k+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(k)*g),translateY:Math.round(Math.sin(k)*g)},D=Math.cos(k)*x[2]/2;var d=Math.sin(k)*x[2]/2;h.tooltipPos=[x[0]+.7*D,x[1]+.7*d],h.half=k<-Math.PI/2||k>Math.PI/2?1:0,h.angle=k,b=Math.min(r,h.labelDistance/5),h.labelPosition={natural:{x:x[0]+D+Math.cos(k)*h.labelDistance,y:x[1]+d+Math.sin(k)*h.labelDistance},final:{},alignment:0>h.labelDistance?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:x[0]+D+Math.cos(k)*b,y:x[1]+d+Math.sin(k)*b},touchingSliceAt:{x:x[0]+D,y:x[1]+d}}}}f(this,"afterTranslate")},M.prototype.updateTotals=function(){var x,p=this.points,g=p.length,r=this.options.ignoreHiddenPoint,a=0;for(x=0;x<g;x++){var t=p[x];!t.isValid()||r&&!t.visible||(a+=t.y)}for(this.total=a,x=0;x<g;x++)(t=p[x]).percentage=0<a&&(t.visible||!r)?t.y/a*100:0,t.total=a},M.defaultOptions=m(V.defaultOptions,Z),M}(V),c(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:U.drawRectangle,drawTracker:B.prototype.drawTracker,getCenter:G.getCenter,getSymbol:X,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:X,trackerGroups:["group","dataLabelsGroup"]}),F.registerSeriesType("pie",E),E}),_(et,"Series/Pie/PieDataLabel.js",[et["Core/Series/DataLabel.js"],et["Core/Globals.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=B.noop,F=X.distribute,I=U.series,E=$.arrayMax,A=$.clamp,P=$.defined,y=$.merge,c=$.pick,f=$.relativeLength;return function(m){function u(){var p,g,r,a,t,i,o,e,s,n,h,b,k=this,D=k.data,d=k.chart,C=k.options.dataLabels||{},T=C.connectorPadding,N=d.plotWidth,z=d.plotHeight,L=d.plotLeft,O=Math.round(d.chartWidth/3),j=k.center,Y=j[2]/2,H=j[1],W=[[],[]],q=[0,0,0,0],tt=k.dataLabelPositioners;k.visible&&(C.enabled||k._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),D.forEach(function(J){J.dataLabel&&(J.visible?(W[J.half].push(J),J.dataLabel._pos=null,!P(C.style.width)&&!P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)&&J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),W.forEach(function(J,nt){var lt,gt=J.length,mt=[];if(gt){if(k.sortByAngle(J,nt-.5),0<k.maxLabelDistance){var bt=Math.max(0,H-Y-k.maxLabelDistance),yt=Math.min(H+Y+k.maxLabelDistance,d.plotHeight);J.forEach(function(dt){0<dt.labelDistance&&dt.dataLabel&&(dt.top=Math.max(0,H-Y-dt.labelDistance),dt.bottom=Math.min(H+Y+dt.labelDistance,d.plotHeight),lt=dt.dataLabel.getBBox().height||21,dt.distributeBox={target:dt.labelPosition.natural.y-dt.top+lt/2,size:lt,rank:dt.y},mt.push(dt.distributeBox))}),F(mt,bt=yt+lt-bt,bt/5)}for(h=0;h<gt;h++){if(p=J[h],i=p.labelPosition,a=p.dataLabel,n=p.visible===!1?"hidden":"inherit",s=bt=i.natural.y,mt&&P(p.distributeBox)&&(p.distributeBox.pos===void 0?n="hidden":(o=p.distributeBox.size,s=tt.radialDistributionY(p))),delete p.positionIndex,C.justify)e=tt.justify(p,Y,j);else switch(C.alignTo){case"connectors":e=tt.alignToConnectors(J,nt,N,L);break;case"plotEdges":e=tt.alignToPlotEdges(a,nt,N,L);break;default:e=tt.radialDistributionX(k,p,s,bt)}a._attr={visibility:n,align:i.alignment},b=p.options.dataLabels||{},a._pos={x:e+c(b.x,C.x)+({left:T,right:-T}[i.alignment]||0),y:s+c(b.y,C.y)-10},i.final.x=e,i.final.y=s,c(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<T&&nt===1?(bt=Math.round(t-e+T),q[3]=Math.max(bt,q[3])):e+t>N-T&&nt===0&&(bt=Math.round(e+t-N+T),q[1]=Math.max(bt,q[1])),0>s-o/2?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>z&&(q[2]=Math.max(Math.round(s+o/2-z),q[2])),a.sideOverflow=bt)}}}),E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){var nt;b=y(C,J.options.dataLabels),(g=c(b.connectorWidth,1))&&(r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&0<J.labelDistance?(n=a._attr.visibility,(nt=!r)&&(J.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(k.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[nt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy()))}))}function v(){this.points.forEach(function(p){var g,r=p.dataLabel;r&&p.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete p.distributeBox},this)}function S(p){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=r.size!==null;if(!i){if(a[0]!==null)var o=Math.max(g[2]-Math.max(p[1],p[3]),t);else o=Math.max(g[2]-p[1]-p[3],t),g[0]+=(p[3]-p[1])/2;a[1]!==null?o=A(o,t,g[2]-Math.max(p[0],p[2])):(o=A(o,t,g[2]-p[0]-p[2]),g[1]+=(p[0]-p[2])/2),o<g[2]?(g[2]=o,g[3]=Math.min(r.thickness?Math.max(0,o-2*r.thickness):Math.max(0,f(r.innerSize||0,o)),o),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):i=!0}return i}var M=[],x={radialDistributionY:function(p){return p.top+p.distributeBox.pos},radialDistributionX:function(p,g,r,a){return p.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(p,g,r){return r[0]+(p.half?-1:1)*(g+p.labelDistance)},alignToPlotEdges:function(p,g,r,a){return p=p.getBBox().width,g?p+a:r-p-a},alignToConnectors:function(p,g,r,a){var t,i=0;return p.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};m.compose=function(p){G.compose(I),M.indexOf(p)===-1&&(M.push(p),(p=p.prototype).dataLabelPositioners=x,p.alignDataLabel=V,p.drawDataLabels=u,p.placeDataLabels=v,p.verifyDataLabelOverflow=S)}}(Z||(Z={})),Z}),_(et,"Extensions/OverlappingDataLabels.js",[et["Core/Chart/Chart.js"],et["Core/Utilities.js"]],function(G,B){function X(E,A){var P=!1;if(E){var y=E.newOpacity;E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,function(){A.styledMode||E.css({pointerEvents:y?"auto":"none"})}),$(A,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0}return P}var U=B.addEvent,$=B.fireEvent,Z=B.isArray,V=B.isNumber,F=B.objectEach,I=B.pick;U(G,"render",function(){var E=this,A=[];(this.labelCollectors||[]).forEach(function(P){A=A.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&F(P.stacking.stacks,function(y){F(y,function(c){c.label&&A.push(c.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;P.visible&&(y.enabled!==!1||P._hasPointLabels)&&(y=function(c){return c.forEach(function(f){f.visible&&(Z(f.dataLabels)?f.dataLabels:f.dataLabel?[f.dataLabel]:[]).forEach(function(m){var u=m.options;m.labelrank=I(u.labelrank,f.labelrank,f.shapeArgs&&f.shapeArgs.height),u.allowOverlap?(m.oldOpacity=m.opacity,m.newOpacity=1,X(m,E)):A.push(m)})})},y(P.nodes||[]),y(P.points))}),this.hideOverlappingLabels(A)}),G.prototype.hideOverlappingLabels=function(E){var A,P,y,c=this,f=E.length,m=c.renderer,u=!1,v=function(x){var p,g,r=x.box?0:x.padding||0,a=p=0;if(x&&(!x.alignAttr||x.placed)){var t=x.alignAttr||{x:x.attr("x"),y:x.attr("y")},i=x.parentGroup;x.width||(p=x.getBBox(),x.width=p.width,x.height=p.height,p=m.fontMetrics(null,x.element).h);var o=x.width-2*r;return(g={left:"0",center:"0.5",right:"1"}[x.alignValue])?a=+g*o:V(x.x)&&Math.round(x.x)!==x.translateX&&(a=x.x-x.translateX),{x:t.x+(i.translateX||0)+r-(a||0),y:t.y+(i.translateY||0)+r-p,width:x.width-2*r,height:x.height-2*r}}};for(P=0;P<f;P++)(A=E[P])&&(A.oldOpacity=A.opacity,A.newOpacity=1,A.absoluteBox=v(A));for(E.sort(function(x,p){return(p.labelrank||0)-(x.labelrank||0)}),P=0;P<f;P++){var S=(v=E[P])&&v.absoluteBox;for(A=P+1;A<f;++A){var M=(y=E[A])&&y.absoluteBox;!S||!M||v===y||v.newOpacity===0||y.newOpacity===0||v.visibility==="hidden"||y.visibility==="hidden"||M.x>=S.x+S.width||M.x+M.width<=S.x||M.y>=S.y+S.height||M.y+M.height<=S.y||((v.labelrank<y.labelrank?v:y).newOpacity=0)}}E.forEach(function(x){X(x,c)&&(u=!0)}),u&&$(c,"afterHideAllOverlappingLabels")}}),_(et,"Core/Responsive.js",[et["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.find,$=G.isArray,Z=G.isObject,V=G.merge,F=G.objectEach,I=G.pick,E=G.splat,A=G.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),X(f.prototype,c.prototype)),f};var c=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function S(M,x,p,g){var r;F(M,function(a,t){if(!g&&-1<u.collectionsWithUpdate.indexOf(t)&&x[t])for(a=E(a),p[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?p[t][r]=x[t][r]:(p[t][r]={},S(a[r],x[t][r],p[t][r],g+1)));else Z(a)?(p[t]=$(a)?[]:{},S(a,x[t]||{},p[t],g+1)):p[t]=x[t]===void 0?null:x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v=this,S=this.options.responsive,M=this.currentResponsive,x=[];!u&&S&&S.rules&&S.rules.forEach(function(p){p._id===void 0&&(p._id=A()),v.matchResponsiveRule(p,x)},this),u=V.apply(void 0,x.map(function(p){return U((S||{}).rules||[],function(g){return g._id===p})}).map(function(p){return p&&p.chartOptions})),u.isResponsiveOptions=!0,(x=x.toString()||void 0)!==(M&&M.ruleIds)&&(M&&this.update(M.undoOptions,m,!0),x?((M=this.currentOptions(u)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:x,mergedOptions:u,undoOptions:M},this.update(u,m,!0)):this.currentResponsive=void 0)},f}()}(B||(B={})),B}),_(et,"masters/highcharts.src.js",[et["Core/Globals.js"],et["Core/Utilities.js"],et["Core/Defaults.js"],et["Core/Animation/Fx.js"],et["Core/Animation/AnimationUtilities.js"],et["Core/Renderer/HTML/AST.js"],et["Core/FormatUtilities.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Renderer/HTML/HTMLElement.js"],et["Core/Renderer/HTML/HTMLRenderer.js"],et["Core/Axis/Axis.js"],et["Core/Axis/DateTimeAxis.js"],et["Core/Axis/LogarithmicAxis.js"],et["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],et["Core/Axis/Tick.js"],et["Core/Tooltip.js"],et["Core/Series/Point.js"],et["Core/Pointer.js"],et["Core/MSPointer.js"],et["Core/Legend/Legend.js"],et["Core/Chart/Chart.js"],et["Core/Axis/Stacking/StackingAxis.js"],et["Core/Axis/Stacking/StackItem.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Series/Column/ColumnSeries.js"],et["Series/Column/ColumnDataLabel.js"],et["Series/Pie/PieSeries.js"],et["Series/Pie/PieDataLabel.js"],et["Core/Series/DataLabel.js"],et["Core/Responsive.js"],et["Core/Color/Color.js"],et["Core/Time.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P,y,c,f,m,u,v,S,M,x,p,g,r,a,t,i,o,e,s,n,h,b,k,D){return G.animate=$.animate,G.animObject=$.animObject,G.getDeferredAnimation=$.getDeferredAnimation,G.setAnimation=$.setAnimation,G.stop=$.stop,G.timers=U.timers,G.AST=Z,G.Axis=y,G.Chart=g,G.chart=g.chart,G.Fx=U,G.Legend=p,G.PlotLineOrBand=m,G.Point=S,G.Pointer=x.isRequired()?x:M,G.Series=t,G.StackItem=a,G.SVGElement=I,G.SVGRenderer=E,G.Tick=u,G.Time=D,G.Tooltip=v,G.Color=k,G.color=k.parse,P.compose(E),A.compose(I),G.defaultOptions=X.defaultOptions,G.getOptions=X.getOptions,G.time=X.defaultTime,G.setOptions=X.setOptions,G.dateFormat=V.dateFormat,G.format=V.format,G.numberFormat=V.numberFormat,G.addEvent=B.addEvent,G.arrayMax=B.arrayMax,G.arrayMin=B.arrayMin,G.attr=B.attr,G.clearTimeout=B.clearTimeout,G.correctFloat=B.correctFloat,G.createElement=B.createElement,G.css=B.css,G.defined=B.defined,G.destroyObjectProperties=B.destroyObjectProperties,G.discardElement=B.discardElement,G.distribute=F.distribute,G.erase=B.erase,G.error=B.error,G.extend=B.extend,G.extendClass=B.extendClass,G.find=B.find,G.fireEvent=B.fireEvent,G.getMagnitude=B.getMagnitude,G.getStyle=B.getStyle,G.inArray=B.inArray,G.isArray=B.isArray,G.isClass=B.isClass,G.isDOMElement=B.isDOMElement,G.isFunction=B.isFunction,G.isNumber=B.isNumber,G.isObject=B.isObject,G.isString=B.isString,G.keys=B.keys,G.merge=B.merge,G.normalizeTickInterval=B.normalizeTickInterval,G.objectEach=B.objectEach,G.offset=B.offset,G.pad=B.pad,G.pick=B.pick,G.pInt=B.pInt,G.relativeLength=B.relativeLength,G.removeEvent=B.removeEvent,G.seriesType=i.seriesType,G.splat=B.splat,G.stableSort=B.stableSort,G.syncTimeout=B.syncTimeout,G.timeUnits=B.timeUnits,G.uniqueKey=B.uniqueKey,G.useSerialIds=B.useSerialIds,G.wrap=B.wrap,e.compose(o),h.compose(t),c.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),G}),et["masters/highcharts.src.js"]._modules=et,et["masters/highcharts.src.js"]},it.exports?(pt.default=pt,it.exports=ct.document?pt(ct):pt):(ht=function(){return pt(ct)}.call(rt,st,rt,it))===void 0||(it.exports=ht)},4812:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/Bullet/BulletPoint.js",[_["Series/Column/ColumnSeries.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V}return X(Z,$),Z.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),$.prototype.destroy.apply(this,arguments)},Z}(G.prototype.pointClass);return U}),et(_,"Series/Bullet/BulletSeries.js",[_["Series/Bullet/BulletPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(y,c){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},U(y,c)},function(y,c){function f(){this.constructor=y}U(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),Z=B.seriesTypes.column,V=X.extend,F=X.isNumber,I=X.merge,E=X.pick,A=X.relativeLength,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.targetData=void 0,f}return $(c,y),c.prototype.drawPoints=function(){var f=this,m=f.chart,u=f.options,v=u.animationLimit||250;y.prototype.drawPoints.apply(this,arguments),f.points.forEach(function(S){var M,x,p,g,r,a=S.options,t=S.target,i=S.y,o=S.targetGraphic;if(F(t)&&t!==null){p=(g=I(u.targetOptions,a.targetOptions)).height;var e=S.shapeArgs;S.dlBox&&e&&!F(e.width)&&(e=S.dlBox),x=A(g.width,e.width),r=f.yAxis.translate(t,!1,!0,!1,!0)-g.height/2-.5,M=f.crispCol.apply({chart:m,borderWidth:g.borderWidth,options:{crisp:u.crisp}},[e.x+e.width/2-x/2,r,x,p]),o?(o[m.pointCount<v?"animate":"attr"](M),F(i)&&i!==null?o.element.point=S:o.element.point=void 0):S.targetGraphic=o=m.renderer.rect().attr(M).add(f.group),m.styledMode||o.attr({fill:E(g.color,a.color,f.zones.length&&(S.getZone.call({series:f,x:S.x,y:t,options:{}}).color||f.color)||void 0,S.color,f.color),stroke:E(g.borderColor,S.borderColor,f.options.borderColor),"stroke-width":g.borderWidth,r:g.borderRadius}),F(i)&&i!==null&&(o.element.point=S),o.addClass(S.getClassName()+" highcharts-bullet-target",!0)}else o&&(S.targetGraphic=o.destroy())})},c.prototype.getExtremes=function(f){var m=y.prototype.getExtremes.call(this,f),u=this.targetData;if(u&&u.length){var v=y.prototype.getExtremes.call(this,u);F(v.dataMin)&&(m.dataMin=Math.min(E(m.dataMin,1/0),v.dataMin)),F(v.dataMax)&&(m.dataMax=Math.max(E(m.dataMax,-1/0),v.dataMax))}return m},c.defaultOptions=I(Z.defaultOptions,{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}}),c}(Z);return V(P.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),P.prototype.pointClass=G,B.registerSeriesType("bullet",P),P}),et(_,"masters/modules/bullet.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},5035:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.calculateInscribedCircle=void 0;var st=2*Math.PI,ht=1e-9,ct=function(_){var et=_%st;return et<=-Math.PI?et+st:et>Math.PI?et-st:et},pt=function(_,et,G){return et?Number.POSITIVE_INFINITY:G*_},ft=function(_,et){return{id:"outerArc",radialDistance:_/(1+et),radius:_*et/(1+et)}};rt.calculateInscribedCircle=function(_){if(!(_.innerArcRadius>=0&&_.outerArcRadius>_.innerArcRadius))return{angle:0,radialDistance:0,radius:0};if(Math.abs(_.phi1-_.phi2)<ht)return{angle:_.phi1,radialDistance:0,radius:0};var et,G=ct(_.phi1),B=(et=((ct(_.phi2)-G)%st+st)%st)===0?st:et,X=function(P){return Math.sin(P/2)}(B),U=B>=Math.PI;if(B<ht)return{angle:G,radialDistance:0,radius:0};var $,Z,V=ct(G+B/2),F=[ft(_.outerArcRadius,X),($=_.innerArcRadius,Z=_.outerArcRadius,{id:"betweenArcs",radialDistance:($+Z)/2,radius:(Z-$)/2})].map(function(P){var y=function(c,f,m,u,v){var S=function(g,r,a,t){return a<g-ht||a>r+ht?Number.NEGATIVE_INFINITY:Math.min(t,a-g,r-a)}(f,m,c.radialDistance,c.radius);if(!Number.isFinite(S)||S<0)return{effectiveRadius:Number.NEGATIVE_INFINITY,active:{innerArc:!1,outerArc:!1,radials:!1}};var M=pt(u,v,c.radialDistance),x=Math.min(S,M),p=function(g,r){return Math.abs(g-r)<=1e-6};return{effectiveRadius:x,active:{innerArc:p(x,c.radialDistance-f),outerArc:p(x,m-c.radialDistance),radials:!v&&isFinite(M)&&p(x,M)}}}(P,_.innerArcRadius,_.outerArcRadius,X,U);return{candidate:P,effectiveRadius:y.effectiveRadius,active:y.active}}).filter(function(P){return P.effectiveRadius>0});if(F.length===0){var I=(_.innerArcRadius+_.outerArcRadius)/2;return{angle:V,radialDistance:I,radius:Math.max(0,Math.min(I-_.innerArcRadius,_.outerArcRadius-I,pt(X,U,I)))}}var E=F.reduce(function(P,y){return y.effectiveRadius>P.effectiveRadius?y:P}),A=Math.max(0,Math.min(E.effectiveRadius,E.candidate.radialDistance-_.innerArcRadius,_.outerArcRadius-E.candidate.radialDistance,pt(X,U,E.candidate.radialDistance)));return{angle:V,radialDistance:E.candidate.radialDistance,radius:A}}},5098:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Accessibility/Utils/HTMLUtilities.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.doc,U=G.win,$=B.css,Z=U.EventTarget&&new U.EventTarget||"none";function V(I){if(typeof U.MouseEvent=="function")return new U.MouseEvent(I.type,I);if(X.createEvent){var E=X.createEvent("MouseEvent");if(E.initMouseEvent)return E.initMouseEvent(I.type,I.bubbles,I.cancelable,I.view||U,I.detail,I.screenX,I.screenY,I.clientX,I.clientY,I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget),E}return F(I.type)}function F(I,E,A){var P=E||{x:0,y:0};if(typeof U.MouseEvent=="function")return new U.MouseEvent(I,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:A||Z,view:U,detail:I==="click"?1:0,screenX:P.x,screenY:P.y,clientX:P.x,clientY:P.y});if(X.createEvent){var y=X.createEvent("MouseEvent");if(y.initMouseEvent)return y.initMouseEvent(I,!0,!0,U,I==="click"?1:0,P.x,P.y,P.x,P.y,!1,!1,!1,!1,0,null),y}return{type:I}}return{addClass:function(I,E){I.classList?I.classList.add(E):I.className.indexOf(E)<0&&(I.className+=" "+E)},cloneMouseEvent:V,cloneTouchEvent:function(I){var E=function(y){for(var c=[],f=0;f<y.length;++f){var m=y.item(f);m&&c.push(m)}return c};if(typeof U.TouchEvent=="function"){var A=new U.TouchEvent(I.type,{touches:E(I.touches),targetTouches:E(I.targetTouches),changedTouches:E(I.changedTouches),ctrlKey:I.ctrlKey,shiftKey:I.shiftKey,altKey:I.altKey,metaKey:I.metaKey,bubbles:I.bubbles,cancelable:I.cancelable,composed:I.composed,detail:I.detail,view:I.view});return I.defaultPrevented&&A.preventDefault(),A}var P=V(I);return P.touches=I.touches,P.changedTouches=I.changedTouches,P.targetTouches=I.targetTouches,P},escapeStringForHTML:function(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(I){return X.getElementById(I)},getFakeMouseEvent:F,getHeadingTagNameForElement:function(I){var E=function(y){var c=parseInt(y.slice(1),10);return"h"+Math.min(6,c+1)},A=function(y){return/H[1-6]/.test(y)},P=function(y){var c=function(u){for(var v=u;v=v.previousSibling;){var S=v.tagName||"";if(A(S))return S}return""}(y);if(c)return E(c);var f=y.parentElement;if(!f)return"p";var m=f.tagName;return A(m)?E(m):P(f)};return P(I)},removeChildNodes:function(I){for(;I.lastChild;)I.removeChild(I.lastChild)},removeClass:function(I,E){I.classList?I.classList.remove(E):I.className=I.className.replace(new RegExp(E,"g"),"")},removeElement:function(I){I&&I.parentNode&&I.parentNode.removeChild(I)},reverseChildNodes:function(I){for(var E=I.childNodes.length;E--;)I.appendChild(I.childNodes[E])},simulatedEventTarget:Z,stripHTMLTagsFromString:function(I){return typeof I=="string"?I.replace(/<\/?[^>]+(>|$)/g,""):I},visuallyHideElement:function(I){$(I,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),et(_,"Accessibility/A11yI18n.js",[_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.format,$=B.getNestedProperty,Z=B.pick;return function(V){var F=[];function I(A,P,y){var c,f,m=function(S,M){var x=S.slice(M||0),p=x.indexOf("{"),g=x.indexOf("}");if(p>-1&&g>p)return{statement:x.substring(p+1,g),begin:M+p+1,end:M+g}},u=[],v=0;do c=m(A,v),(f=A.substring(v,c&&c.begin-1)).length&&u.push({value:f,type:"constant"}),c&&u.push({value:c.statement,type:"statement"}),v=c?c.end+1:v+1;while(c);return u.forEach(function(S){S.type==="statement"&&(S.value=function(M,x){var p,g,r,a=M.indexOf("#each("),t=M.indexOf("#plural("),i=M.indexOf("["),o=M.indexOf("]");if(a>-1){var e=M.slice(a).indexOf(")")+a,s=M.substring(0,a),n=M.substring(e+1),h=M.substring(a+6,e).split(","),b=Number(h[1]),k=void 0;if(g="",p=$(h[0],x)){k=(b=isNaN(b)?p.length:b)<0?p.length+b:Math.min(b,p.length);for(var D=0;D<k;++D)g+=s+p[D]+n}return g.length?g:""}if(t>-1){var d=M.slice(t).indexOf(")")+t,C=M.substring(t+8,d).split(",");switch(Number($(C[0],x))){case 0:g=Z(C[4],C[1]);break;case 1:g=Z(C[2],C[1]);break;case 2:g=Z(C[3],C[1]);break;default:g=C[1]}return g?(r=g).trim&&r.trim()||r.replace(/^\s+|\s+$/g,""):""}if(i>-1){var T=M.substring(0,i),N=Number(M.substring(i+1,o)),z=void 0;return p=$(T,x),!isNaN(N)&&p&&(N<0?(z=p[p.length+N])===void 0&&(z=p[0]):(z=p[N])===void 0&&(z=p[p.length-1])),z!==void 0?z:""}return"{"+M+"}"}(S.value,P))}),U(u.reduce(function(S,M){return S+M.value},""),P,y)}function E(A,P){for(var y=A.split("."),c=this.options.lang,f=0;f<y.length;++f)c=c&&c[y[f]];return typeof c=="string"?I(c,P,this):""}V.compose=function(A){return F.indexOf(A)===-1&&(F.push(A),A.prototype.langFormat=E),A},V.i18nFormat=I}(X||(X={})),X}),et(_,"Accessibility/Utils/ChartUtilities.js",[_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.doc,$=B.stripHTMLTagsFromString,Z=X.defined,V=X.find,F=X.fireEvent;function I(A){if(A.points&&A.points.length){var P=V(A.points,function(y){return!!y.graphic});return P&&P.graphic&&P.graphic.element}}function E(A){var P=I(A);return P&&P.parentNode||A.graph&&A.graph.element||A.group&&A.group.element}return{fireEventOnWrappedOrUnwrappedElement:function A(P,y){var c=y.type,f=P.hcEvents;U.createEvent&&(P.dispatchEvent||P.fireEvent)?P.dispatchEvent?P.dispatchEvent(y):P.fireEvent(c,y):f&&f[c]?F(P,c,y):P.element&&A(P.element,y)},getChartTitle:function(A){return $(A.options.title.text||A.langFormat("accessibility.defaultChartTitle",{chart:A}))},getAxisDescription:function(A){return A&&(A.userOptions&&A.userOptions.accessibility&&A.userOptions.accessibility.description||A.axisTitle&&A.axisTitle.textStr||A.options.id||A.categories&&"categories"||A.dateTime&&"Time"||"values")},getAxisRangeDescription:function(A){var P=A.options||{};return P.accessibility&&P.accessibility.rangeDescription!==void 0?P.accessibility.rangeDescription:A.categories?function(y){var c=y.chart;return y.dataMax&&y.dataMin?c.langFormat("accessibility.axis.rangeCategories",{chart:c,axis:y,numCategories:y.dataMax-y.dataMin+1}):""}(A):!A.dateTime||A.min!==0&&A.dataMin!==0?function(y){var c=y.chart,f=c.options,m=f&&f.accessibility&&f.accessibility.screenReaderSection.axisRangeDateFormat||"",u={min:y.dataMin||y.min||0,max:y.dataMax||y.max||0},v=function(S){return y.dateTime?c.time.dateFormat(m,u[S]):u[S].toString()};return c.langFormat("accessibility.axis.rangeFromTo",{chart:c,axis:y,rangeFrom:v("min"),rangeTo:v("max")})}(A):function(y){var c=y.chart,f={},m=y.dataMin||y.min||0,u=y.dataMax||y.max||0,v="Seconds";f.Seconds=(u-m)/1e3,f.Minutes=f.Seconds/60,f.Hours=f.Minutes/60,f.Days=f.Hours/24,["Minutes","Hours","Days"].forEach(function(M){f[M]>2&&(v=M)});var S=f[v].toFixed(v!=="Seconds"&&v!=="Minutes"?1:0);return c.langFormat("accessibility.axis.timeRange"+v,{chart:c,axis:y,range:S.replace(".0","")})}(A)},getPointFromXY:function(A,P,y){for(var c,f=A.length;f--;)if(c=V(A[f].points||[],function(m){return m.x===P&&m.y===y}))return c},getSeriesFirstPointElement:I,getSeriesFromName:function(A,P){return P?(A.series||[]).filter(function(y){return y.name===P}):A.series},getSeriesA11yElement:E,unhideChartElementFromAT:function A(P,y){y.setAttribute("aria-hidden",!1),y!==P.renderTo&&y.parentNode&&y.parentNode!==U.body&&(Array.prototype.forEach.call(y.parentNode.childNodes,function(c){c.hasAttribute("aria-hidden")||c.setAttribute("aria-hidden",!0)}),A(P,y.parentNode))},hideSeriesFromAT:function(A){var P=E(A);P&&P.setAttribute("aria-hidden",!0)},scrollToPoint:function(A){var P=A.series.xAxis,y=A.series.yAxis,c=P&&P.scrollbar?P:y,f=c&&c.scrollbar;if(f&&Z(f.to)&&Z(f.from)){var m=f.to-f.from,u=function(v,S){if(!Z(v.dataMin)||!Z(v.dataMax))return 0;var M=v.toPixels(v.dataMin),x=v.toPixels(v.dataMax),p=v.coll==="xAxis"?"x":"y";return(v.toPixels(S[p]||0)-M)/(x-M)}(c,A);f.updatePosition(u-m/2,u+m/2),F(f,"changed",{from:f.from,to:f.to,trigger:"scrollbar",DOMEvent:null})}}}}),et(_,"Accessibility/Utils/DOMElementProvider.js",[_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B){var X=G.doc,U=B.removeElement,$=function(){function Z(){this.elements=[]}return Z.prototype.createElement=function(){var V=X.createElement.apply(X,arguments);return this.elements.push(V),V},Z.prototype.destroyCreatedElements=function(){this.elements.forEach(function(V){U(V)}),this.elements=[]},Z}();return $}),et(_,"Accessibility/Utils/EventProvider.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=B.addEvent,U=function(){function $(){this.eventRemovers=[]}return $.prototype.addEvent=function(){var Z=X.apply(G,arguments);return this.eventRemovers.push(Z),Z},$.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(Z){return Z()}),this.eventRemovers=[]},$}();return U}),et(_,"Accessibility/AccessibilityComponent.js",[_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.fireEventOnWrappedOrUnwrappedElement,V=U.getFakeMouseEvent,F=$.extend,I=function(){function E(){this.chart=void 0,this.domElementProvider=void 0,this.eventProvider=void 0,this.keyCodes=void 0,this.proxyProvider=void 0}return E.prototype.initBase=function(A,P){this.chart=A,this.eventProvider=new X,this.domElementProvider=new B,this.proxyProvider=P,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},E.prototype.addEvent=function(A,P,y,c){return this.eventProvider.addEvent(A,P,y,c)},E.prototype.createElement=function(A,P){return this.domElementProvider.createElement(A,P)},E.prototype.fakeClickEvent=function(A){var P=V("click");Z(A,P)},E.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},E}();return F(I.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),I}),et(_,"Accessibility/KeyboardNavigationHandler.js",[_["Core/Utilities.js"]],function(G){var B=G.find;return function(){function X(U,$){this.chart=U,this.keyCodeMap=$.keyCodeMap||[],this.validate=$.validate,this.init=$.init,this.terminate=$.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return X.prototype.run=function(U){var $=U.which||U.keyCode,Z=this.response.noHandler,V=B(this.keyCodeMap,function(F){return F[0].indexOf($)>-1});return V?Z=V[1].call(this,$,U):$===9&&(Z=this.response[U.shiftKey?"prev":"next"]),Z},X}()}),et(_,"Accessibility/Components/ContainerComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(y,c){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,c)},function(y,c){function f(){this.constructor=y}Z(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),F=X.unhideChartElementFromAT,I=X.getChartTitle,E=U.doc,A=$.stripHTMLTagsFromString,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return V(c,y),c.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},c.prototype.handleSVGTitleElement=function(){var f=this.chart,m="highcharts-title-"+f.index,u=A(f.langFormat("accessibility.svgContainerTitle",{chartTitle:I(f)}));if(u.length){var v=this.svgTitleElement=this.svgTitleElement||E.createElementNS("http://www.w3.org/2000/svg","title");v.textContent=u,v.id=m,f.renderTo.insertBefore(v,f.renderTo.firstChild)}},c.prototype.setSVGContainerLabel=function(){var f=this.chart,m=f.langFormat("accessibility.svgContainerLabel",{chartTitle:I(f)});f.renderer.box&&m.length&&f.renderer.box.setAttribute("aria-label",m)},c.prototype.setGraphicContainerAttrs=function(){var f=this.chart,m=f.langFormat("accessibility.graphicContainerLabel",{chartTitle:I(f)});m.length&&f.container.setAttribute("aria-label",m)},c.prototype.setRenderToAttrs=function(){var f=this.chart,m=f.options.accessibility.landmarkVerbosity!=="disabled",u=f.langFormat("accessibility.chartContainerLabel",{title:I(f),chart:f});u&&(f.renderTo.setAttribute("role",m?"region":"group"),f.renderTo.setAttribute("aria-label",u))},c.prototype.makeCreditsAccessible=function(){var f=this.chart,m=f.credits;m&&(m.textStr&&m.element.setAttribute("aria-label",f.langFormat("accessibility.credits",{creditsStr:A(m.textStr)})),F(f,m.element))},c.prototype.getKeyboardNavigation=function(){var f=this.chart;return new B(f,{keyCodeMap:[],validate:function(){return!0},init:function(){var m=f.accessibility;m&&m.keyboardNavigation.tabindexContainer.focus()}})},c.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},c}(G);return P}),et(_,"Accessibility/FocusBorder.js",[_["Core/Renderer/SVG/SVGLabel.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.addEvent,$=B.pick;return function(Z){var V=[],F=["x","y","transform","width","height","r","d","stroke-width"];function I(){var y=this.focusElement,c=this.options.accessibility.keyboardNavigation.focusBorder;y&&(y.removeFocusBorder(),c.enabled&&y.addFocusBorder(c.margin,{stroke:c.style.color,strokeWidth:c.style.lineWidth,r:c.style.borderRadius}))}function E(y,c){var f=this.options.accessibility.keyboardNavigation.focusBorder,m=c||y.element;m&&m.focus&&(m.hcEvents&&m.hcEvents.focusin||U(m,"focusin",function(){}),m.focus(),f.hideBrowserFocusOutline&&(m.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=y,this.renderFocusBorder()}function A(y,c){this.focusBorder&&this.removeFocusBorder();var f=this.getBBox(),m=$(y,3),u=this.parentGroup,v=this.scaleX||u&&u.scaleX,S=this.scaleY||u&&u.scaleY,M=(v?!S:S)?Math.abs(v||S||1):(Math.abs(v||1)+Math.abs(S||1))/2;f.x+=this.translateX?this.translateX:0,f.y+=this.translateY?this.translateY:0;var x,p,g,r=f.x-m,a=f.y-m,t=f.width+2*m,i=f.height+2*m,o=this instanceof G;if(this.element.nodeName==="text"||o){var e=!!this.rotation,s=o?{x:e?1:0,y:0}:(p=0,g=0,(x=this).attr("text-anchor")==="middle"?p=g=.5:x.rotation?p=.25:g=.75,{x:p,y:g}),n=+this.attr("x"),h=+this.attr("y");if(isNaN(n)||(r=n-f.width*s.x-m),isNaN(h)||(a=h-f.height*s.y-m),o&&e){var b=t;t=i,i=b,isNaN(n)||(r=n-f.height*s.x-m),isNaN(h)||(a=h-f.width*s.y-m)}}this.focusBorder=this.renderer.rect(r,a,t,i,parseInt((c&&c.r||0).toString(),10)/M).addClass("highcharts-focus-border").attr({zIndex:99}).add(u),this.renderer.styledMode||this.focusBorder.attr({stroke:c&&c.stroke,"stroke-width":(c&&c.strokeWidth||0)/M}),function(k){for(var D=[],d=1;d<arguments.length;d++)D[d-1]=arguments[d];k.focusBorderUpdateHooks||(k.focusBorderUpdateHooks={},F.forEach(function(C){var T=C+"Setter",N=k[T]||k._defaultSetter;k.focusBorderUpdateHooks[T]=N,k[T]=function(){var z=N.apply(k,arguments);return k.addFocusBorder.apply(k,D),z}}))}(this,y,c),function(k){if(!k.focusBorderDestroyHook){var D=k.destroy;k.destroy=function(){return k.focusBorder&&k.focusBorder.destroy&&k.focusBorder.destroy(),D.apply(k,arguments)},k.focusBorderDestroyHook=D}}(this)}function P(){var y;(function(c){c.focusBorderUpdateHooks&&(Object.keys(c.focusBorderUpdateHooks).forEach(function(f){var m=c.focusBorderUpdateHooks[f];m===c._defaultSetter?delete c[f]:c[f]=m}),delete c.focusBorderUpdateHooks)})(this),(y=this).focusBorderDestroyHook&&(y.destroy=y.focusBorderDestroyHook,delete y.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}Z.compose=function(y,c){if(V.indexOf(y)===-1){V.push(y);var f=y.prototype;f.renderFocusBorder=I,f.setFocusToElement=E}if(V.indexOf(c)===-1){V.push(c);var m=c.prototype;m.addFocusBorder=A,m.removeFocusBorder=P}}}(X||(X={})),X}),et(_,"Accessibility/Utils/Announcer.js",[_["Core/Renderer/HTML/AST.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=X.doc,V=U.addClass,F=U.visuallyHideElement,I=$.attr;return function(){function E(A,P){this.chart=A,this.domElementProvider=new B,this.announceRegion=this.addAnnounceRegion(P)}return E.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},E.prototype.announce=function(A){var P=this;G.setElementHTML(this.announceRegion,A),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){P.announceRegion.innerHTML=G.emptyHTML,delete P.clearAnnouncementRegionTimer},1e3)},E.prototype.addAnnounceRegion=function(A){var P=this.chart.announcerContainer||this.createAnnouncerContainer(),y=this.domElementProvider.createElement("div");return I(y,{"aria-hidden":!1,"aria-live":A}),this.chart.styledMode?V(y,"highcharts-visually-hidden"):F(y),P.appendChild(y),y},E.prototype.createAnnouncerContainer=function(){var A=this.chart,P=Z.createElement("div");return I(P,{"aria-hidden":!1,class:"highcharts-announcer-container"}),P.style.position="relative",A.renderTo.insertBefore(P,A.renderTo.firstChild),A.announcerContainer=P,P},E}()}),et(_,"Accessibility/Components/AnnotationsA11y.js",[_["Accessibility/Utils/HTMLUtilities.js"]],function(G){var B=G.escapeStringForHTML,X=G.stripHTMLTagsFromString;function U(F){return(F.annotations||[]).reduce(function(I,E){return E.options&&E.options.visible!==!1&&(I=I.concat(E.labels)),I},[])}function $(F){return F.options&&F.options.accessibility&&F.options.accessibility.description||F.graphic&&F.graphic.text&&F.graphic.text.textStr||""}function Z(F){var I=F.options&&F.options.accessibility&&F.options.accessibility.description;if(I)return I;var E=F.chart,A=$(F),P=F.points.filter(function(m){return!!m.graphic}).map(function(m){var u=m.accessibility&&m.accessibility.valueDescription||function(S){return S.graphic&&S.graphic.element&&S.graphic.element.getAttribute("aria-label")||""}(m),v=m&&m.series.name||"";return(v?v+", ":"")+"data point "+u}).filter(function(m){return!!m}),y=P.length,c="accessibility.screenReaderSection.annotations.description"+(y>1?"MultiplePoints":y?"SinglePoint":"NoPoints"),f={annotationText:A,annotation:F,numPoints:y,annotationPoint:P[0],additionalAnnotationPoints:P.slice(1)};return E.langFormat(c,f)}function V(F){return U(F).map(function(I){var E=B(X(Z(I)));return E?"<li>".concat(E,"</li>"):""})}return{getAnnotationsInfoHTML:function(F){var I=F.annotations;if(!I||!I.length)return"";var E=V(F);return'<ul style="list-style-type: none">'.concat(E.join(" "),"</ul>")},getAnnotationLabelDescription:Z,getAnnotationListItems:V,getPointAnnotationTexts:function(F){var I=U(F.series.chart).filter(function(E){return E.points.indexOf(F)>-1});return I.length?I.map(function(E){return"".concat($(E))}):[]}}}),et(_,"Accessibility/Components/InfoRegionsComponent.js",[_["Accessibility/A11yI18n.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/Components/AnnotationsA11y.js"],_["Core/Renderer/HTML/AST.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I,E){var A,P=this&&this.__extends||(A=function(e,s){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,h){n.__proto__=h}||function(n,h){for(var b in h)h.hasOwnProperty(b)&&(n[b]=h[b])},A(e,s)},function(e,s){function n(){this.constructor=e}A(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),y=U.getAnnotationsInfoHTML,c=Z.getAxisDescription,f=Z.getAxisRangeDescription,m=Z.getChartTitle,u=Z.unhideChartElementFromAT,v=V.format,S=F.doc,M=I.addClass,x=I.getElement,p=I.getHeadingTagNameForElement,g=I.stripHTMLTagsFromString,r=I.visuallyHideElement,a=E.attr,t=E.pick;function i(e){return e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var o=function(e){function s(){var n=e!==null&&e.apply(this,arguments)||this;return n.announcer=void 0,n.screenReaderSections={},n}return P(s,e),s.prototype.init=function(){var n=this.chart,h=this;this.initRegionsDefinitions(),this.addEvent(n,"aftergetTableAST",function(b){h.onDataTableCreated(b)}),this.addEvent(n,"afterViewData",function(b){b.wasHidden&&(h.dataTableDiv=b.element,setTimeout(function(){h.focusDataTable()},300))}),this.announcer=new X(n,"assertive")},s.prototype.initRegionsDefinitions=function(){var n=this;this.screenReaderSections={before:{element:null,buildContent:function(h){var b=h.options.accessibility.screenReaderSection.beforeChartFormatter;return b?b(h):n.defaultBeforeChartFormatter(h)},insertIntoDOM:function(h,b){b.renderTo.insertBefore(h,b.renderTo.firstChild)},afterInserted:function(){n.sonifyButtonId!==void 0&&n.initSonifyButton(n.sonifyButtonId),n.dataTableButtonId!==void 0&&n.initDataTableButton(n.dataTableButtonId)}},after:{element:null,buildContent:function(h){var b=h.options.accessibility.screenReaderSection.afterChartFormatter;return b?b(h):n.defaultAfterChartFormatter()},insertIntoDOM:function(h,b){b.renderTo.insertBefore(h,b.container.nextSibling)},afterInserted:function(){n.chart.accessibility&&n.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},s.prototype.onChartRender=function(){var n=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(h){n.updateScreenReaderSection(h)})},s.prototype.getLinkedDescriptionElement=function(){var n=this.chart.options.accessibility.linkedDescription;if(n){if(typeof n!="string")return n;var h=v(n,this.chart),b=S.querySelectorAll(h);return b.length===1?b[0]:void 0}},s.prototype.setLinkedDescriptionAttrs=function(){var n=this.linkedDescriptionElement;n&&(n.setAttribute("aria-hidden","true"),M(n,"highcharts-linked-description"))},s.prototype.updateScreenReaderSection=function(n){var h=this.chart,b=this.screenReaderSections[n],k=b.buildContent(h),D=b.element=b.element||this.createElement("div"),d=D.firstChild||this.createElement("div");k?(this.setScreenReaderSectionAttribs(D,n),$.setElementHTML(d,k),D.appendChild(d),b.insertIntoDOM(D,h),h.styledMode?M(d,"highcharts-visually-hidden"):r(d),u(h,d),b.afterInserted&&b.afterInserted()):(D.parentNode&&D.parentNode.removeChild(D),b.element=null)},s.prototype.setScreenReaderSectionAttribs=function(n,h){var b=this.chart,k=b.langFormat("accessibility.screenReaderSection."+h+"RegionLabel",{chart:b,chartTitle:m(b)}),D="highcharts-screen-reader-region-".concat(h,"-").concat(b.index);a(n,{id:D,"aria-label":k||void 0}),n.style.position="relative",k&&n.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")},s.prototype.defaultBeforeChartFormatter=function(){var n=this.chart,h=n.options.accessibility.screenReaderSection.beforeChartFormat;if(!h)return"";var b=this.getAxesDescription(),k=n.sonify&&n.options.sonification&&n.options.sonification.enabled,D="highcharts-a11y-sonify-data-btn-"+n.index,d="hc-linkto-highcharts-data-table-"+n.index,C=y(n),T=n.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:n}),N={headingTagName:p(n.renderTo),chartTitle:m(n),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:k?this.getSonifyButtonText(D):"",viewTableButton:n.getCSV?this.getDataTableButtonText(d):"",annotationsTitle:C?T:"",annotationsList:C},z=G.i18nFormat(h,N,n);return this.dataTableButtonId=d,this.sonifyButtonId=D,i(z)},s.prototype.defaultAfterChartFormatter=function(){var n=this.chart,h=n.options.accessibility.screenReaderSection.afterChartFormat;if(!h)return"";var b={endOfChartMarker:this.getEndOfChartMarkerText()};return i(G.i18nFormat(h,b,n))},s.prototype.getLinkedDescription=function(){var n=this.linkedDescriptionElement,h=n&&n.innerHTML||"";return g(h)},s.prototype.getLongdescText=function(){var n=this.chart.options,h=n.caption,b=h&&h.text,k=this.getLinkedDescription();return n.accessibility.description||k||b||""},s.prototype.getTypeDescriptionText=function(){var n=this.chart;return n.types?n.options.accessibility.typeDescription||function(h,b){var k=b[0],D=h.series&&h.series[0]||{},d=h.mapView&&h.mapView.geoMap&&h.mapView.geoMap.title,C={numSeries:h.series.length,numPoints:D.points&&D.points.length,chart:h,mapTitle:d};return k?k==="map"?function(T,N){return N.mapTitle?T.langFormat("accessibility.chartTypes.mapTypeDescription",N):T.langFormat("accessibility.chartTypes.unknownMap",N)}(h,C):h.types.length>1?function(T,N){return T.langFormat("accessibility.chartTypes.combinationChart",N)}(h,C):function(T,N,z){var L=N[0],O=T.langFormat("accessibility.seriesTypeDescriptions."+L,z),j=T.series&&T.series.length<2?"Single":"Multiple";return(T.langFormat("accessibility.chartTypes."+L+j,z)||T.langFormat("accessibility.chartTypes.default"+j,z))+(O?" "+O:"")}(h,b,C):function(T,N){return T.langFormat("accessibility.chartTypes.emptyChart",N)}(h,C)}(n,n.types):""},s.prototype.getDataTableButtonText=function(n){var h=this.chart;return'<button id="'+n+'">'+h.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:h,chartTitle:m(h)})+"</button>"},s.prototype.getSonifyButtonText=function(n){var h=this.chart;return h.options.sonification&&h.options.sonification.enabled===!1?"":'<button id="'+n+'">'+h.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:h,chartTitle:m(h)})+"</button>"},s.prototype.getSubtitleText=function(){var n=this.chart.options.subtitle;return g(n&&n.text||"")},s.prototype.getEndOfChartMarkerText=function(){var n=this.chart,h=n.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:n});return'<div id="highcharts-end-of-chart-marker-'+n.index+'">'+h+"</div>"},s.prototype.onDataTableCreated=function(n){var h=this.chart;if(h.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var b=n.tree.attributes||{};b.tabindex=-1,b.summary=function(k){return k.langFormat("accessibility.table.tableSummary",{chart:k})}(h),n.tree.attributes=b}},s.prototype.focusDataTable=function(){var n=this.dataTableDiv,h=n&&n.getElementsByTagName("table")[0];h&&h.focus&&h.focus()},s.prototype.initSonifyButton=function(n){var h=this,b=this.sonifyButton=x(n),k=this.chart,D=function(d){b&&(b.setAttribute("aria-hidden","true"),b.setAttribute("aria-label","")),d.preventDefault(),d.stopPropagation();var C=k.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:k});h.announcer.announce(C),setTimeout(function(){b&&(b.removeAttribute("aria-hidden"),b.removeAttribute("aria-label")),k.sonify&&k.sonify()},1e3)};b&&k&&(b.setAttribute("tabindex",-1),b.onclick=function(d){(k.options.accessibility&&k.options.accessibility.screenReaderSection.onPlayAsSoundClick||D).call(this,d,k)})},s.prototype.initDataTableButton=function(n){var h=this.viewDataTableButton=x(n),b=this.chart,k=n.replace("hc-linkto-","");h&&(a(h,{tabindex:-1,"aria-expanded":!!x(k)}),h.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})},s.prototype.getAxesDescription=function(){var n=this.chart,h=function(T,N){var z=n[T];return z.length>1||z[0]&&t(z[0].options.accessibility&&z[0].options.accessibility.enabled,N)},b=!!n.types&&n.types.indexOf("map")<0&&n.types.indexOf("treemap")<0&&n.types.indexOf("tilemap")<0,k=!!n.hasCartesianSeries,D=h("xAxis",!n.angular&&k&&b),d=h("yAxis",k&&b),C={};return D&&(C.xAxis=this.getAxisDescriptionText("xAxis")),d&&(C.yAxis=this.getAxisDescriptionText("yAxis")),C},s.prototype.getAxisDescriptionText=function(n){var h=this.chart,b=h[n];return h.langFormat("accessibility.axis."+n+"Description"+(b.length>1?"Plural":"Singular"),{chart:h,names:b.map(function(k){return c(k)}),ranges:b.map(function(k){return f(k)}),numAxes:b.length})},s.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},s}(B);return o}),et(_,"Accessibility/Components/MenuComponent.js",[_["Core/Chart/Chart.js"],_["Core/Utilities.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$,Z){var V,F=this&&this.__extends||(V=function(f,m){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var S in v)v.hasOwnProperty(S)&&(u[S]=v[S])},V(f,m)},function(f,m){function u(){this.constructor=f}V(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),I=B.attr,E=$.getChartTitle,A=$.unhideChartElementFromAT,P=Z.getFakeMouseEvent;function y(f){return f.exportSVGElements&&f.exportSVGElements[0]}var c=function(f){function m(){return f!==null&&f.apply(this,arguments)||this}return F(m,f),m.prototype.init=function(){var u=this.chart,v=this;this.addEvent(u,"exportMenuShown",function(){v.onMenuShown()}),this.addEvent(u,"exportMenuHidden",function(){v.onMenuHidden()}),this.createProxyGroup()},m.prototype.onMenuHidden=function(){var u=this.chart.exportContextMenu;u&&u.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},m.prototype.onMenuShown=function(){var u=this.chart,v=u.exportContextMenu;v&&(this.addAccessibleContextMenuAttribs(),A(u,v)),this.setExportButtonExpandedState("true")},m.prototype.setExportButtonExpandedState=function(u){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",u)},m.prototype.onChartRender=function(){var u=this.chart,v=u.focusElement,S=u.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&v&&v===u.exportingGroup&&(v.focusBorder?u.setFocusToElement(v,this.exportButtonProxy.buttonElement):S&&S.keyboardNavigation.tabindexContainer.focus())},m.prototype.proxyMenuButton=function(){var u=this.chart,v=this.proxyProvider,S=y(u);(function(M){var x=M.options.exporting,p=y(M);return!!(x&&x.enabled!==!1&&x.accessibility&&x.accessibility.enabled&&p&&p.element)})(u)&&S&&(this.exportButtonProxy=v.addProxyElement("chartMenu",{click:S},{"aria-label":u.langFormat("accessibility.exporting.menuButtonLabel",{chart:u,chartTitle:E(u)}),"aria-expanded":!1,title:u.options.lang.contextButtonTitle||null}))},m.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},m.prototype.addAccessibleContextMenuAttribs=function(){var u=this.chart,v=u.exportDivElements;if(v&&v.length){v.forEach(function(M){M&&(M.tagName!=="LI"||M.children&&M.children.length?M.setAttribute("aria-hidden","true"):M.setAttribute("tabindex",-1))});var S=v[0]&&v[0].parentNode;S&&I(S,{"aria-hidden":void 0,"aria-label":u.langFormat("accessibility.exporting.chartMenuLabel",{chart:u}),role:"list"})}},m.prototype.getKeyboardNavigation=function(){var u=this.keyCodes,v=this.chart,S=this;return new U(v,{keyCodeMap:[[[u.left,u.up],function(){return S.onKbdPrevious(this)}],[[u.right,u.down],function(){return S.onKbdNext(this)}],[[u.enter,u.space],function(){return S.onKbdClick(this)}]],validate:function(){return!!v.exporting&&v.options.exporting.enabled!==!1&&v.options.exporting.accessibility.enabled!==!1},init:function(){var M=S.exportButtonProxy,x=S.chart.exportingGroup;M&&x&&v.setFocusToElement(x,M.buttonElement)},terminate:function(){v.hideExportMenu()}})},m.prototype.onKbdPrevious=function(u){for(var v=this.chart,S=v.options.accessibility,M=u.response,x=v.highlightedExportItemIx||0;x--;)if(v.highlightExportItem(x))return M.success;return S.keyboardNavigation.wrapAround?(v.highlightLastExportItem(),M.success):M.prev},m.prototype.onKbdNext=function(u){for(var v=this.chart,S=v.options.accessibility,M=u.response,x=(v.highlightedExportItemIx||0)+1;x<v.exportDivElements.length;++x)if(v.highlightExportItem(x))return M.success;return S.keyboardNavigation.wrapAround?(v.highlightExportItem(0),M.success):M.next},m.prototype.onKbdClick=function(u){var v=this.chart,S=v.exportDivElements[v.highlightedExportItemIx],M=y(v).element;return v.openMenu?this.fakeClickEvent(S):(this.fakeClickEvent(M),v.highlightExportItem(0)),u.response.success},m}(X);return function(f){var m=[];function u(){var x=y(this);if(x){var p=x.element;p.onclick&&p.onclick(P("click"))}}function v(){var x=this,p=x.exportDivElements;p&&x.exportContextMenu&&x.openMenu&&(p.forEach(function(g){g&&g.className==="highcharts-menu-item"&&g.onmouseout&&g.onmouseout(P("mouseout"))}),x.highlightedExportItemIx=0,x.exportContextMenu.hideMenu(),x.container.focus())}function S(x){var p=this.exportDivElements&&this.exportDivElements[x],g=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(p&&p.tagName==="LI"&&(!p.children||!p.children.length)){var r=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return p.focus&&r&&p.focus(),g&&g.onmouseout&&g.onmouseout(P("mouseout")),p.onmouseover&&p.onmouseover(P("mouseover")),this.highlightedExportItemIx=x,!0}return!1}function M(){var x=this;if(x.exportDivElements){for(var p=x.exportDivElements.length;p--;)if(x.highlightExportItem(p))return!0}return!1}f.compose=function(x){if(m.indexOf(x)===-1){m.push(x);var p=G.prototype;p.hideExportMenu=v,p.highlightExportItem=S,p.highlightLastExportItem=M,p.showExportMenu=u}}}(c||(c={})),c}),et(_,"Accessibility/KeyboardNavigation.js",[_["Core/Globals.js"],_["Accessibility/Components/MenuComponent.js"],_["Core/Utilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$){var Z=G.doc,V=G.win,F=X.addEvent,I=X.fireEvent,E=$.getElement,A=$.simulatedEventTarget,P=function(){function y(c,f){this.chart=void 0,this.components=void 0,this.currentModuleIx=NaN,this.eventProvider=void 0,this.exitAnchor=void 0,this.modules=[],this.tabindexContainer=void 0,this.init(c,f)}return y.prototype.init=function(c,f){var m=this,u=this.eventProvider=new U;this.chart=c,this.components=f,this.modules=[],this.currentModuleIx=0,this.update(),u.addEvent(this.tabindexContainer,"keydown",function(v){return m.onKeydown(v)}),u.addEvent(this.tabindexContainer,"focus",function(v){return m.onFocus(v)}),["mouseup","touchend"].forEach(function(v){return u.addEvent(Z,v,function(S){return m.onMouseUp(S)})}),["mousedown","touchstart"].forEach(function(v){return u.addEvent(c.renderTo,v,function(){m.isClickingChart=!0})}),u.addEvent(c.renderTo,"mouseover",function(){m.pointerIsOverChart=!0}),u.addEvent(c.renderTo,"mouseout",function(){m.pointerIsOverChart=!1})},y.prototype.update=function(c){var f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=this.components;this.updateContainerTabindex(),m&&m.enabled&&c&&c.length?(this.modules=c.reduce(function(v,S){var M=u[S].getKeyboardNavigation();return v.concat(M)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},y.prototype.updateExitAnchor=function(){var c="highcharts-end-of-chart-marker-".concat(this.chart.index),f=E(c);this.removeExitAnchor(),f?(this.makeElementAnExitAnchor(f),this.exitAnchor=f):this.createExitAnchor()},y.prototype.move=function(c){var f=this.modules&&this.modules[this.currentModuleIx];f&&f.terminate&&f.terminate(c),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=c;var m=this.modules&&this.modules[this.currentModuleIx];if(m){if(m.validate&&!m.validate())return this.move(c);if(m.init)return m.init(c),!0}return this.currentModuleIx=0,this.exiting=!0,c>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},y.prototype.onFocus=function(c){var f=this.chart,m=c.relatedTarget&&f.container.contains(c.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||m)){var u=this.getFirstValidModuleIx();u!==null&&(this.currentModuleIx=u,this.modules[u].init(1))}this.exiting=!1},y.prototype.onMouseUp=function(c){if(delete this.isClickingChart,!this.keyboardReset&&c.relatedTarget!==A){var f=this.chart;if(!this.pointerIsOverChart){var m=this.modules&&this.modules[this.currentModuleIx||0];m&&m.terminate&&m.terminate(),this.currentModuleIx=0}f.focusElement&&(f.focusElement.removeFocusBorder(),delete f.focusElement),this.keyboardReset=!0}},y.prototype.onKeydown=function(c){var f,m=c||V.event,u=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,u){var v=u.run(m);v===u.response.success?f=!0:v===u.response.prev?f=this.move(-1):v===u.response.next&&(f=this.move(1)),f&&(m.preventDefault(),m.stopPropagation())}},y.prototype.updateContainerTabindex=function(){var c,f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=!(m&&m.enabled===!1),v=this.chart,S=v.container;v.renderTo.hasAttribute("tabindex")?(S.removeAttribute("tabindex"),c=v.renderTo):c=S,this.tabindexContainer=c;var M=c.getAttribute("tabindex");u&&!M?c.setAttribute("tabindex","0"):u||v.container.removeAttribute("tabindex")},y.prototype.createExitAnchor=function(){var c=this.chart,f=this.exitAnchor=Z.createElement("div");c.renderTo.appendChild(f),this.makeElementAnExitAnchor(f)},y.prototype.makeElementAnExitAnchor=function(c){var f=this.tabindexContainer.getAttribute("tabindex")||0;c.setAttribute("class","highcharts-exit-anchor"),c.setAttribute("tabindex",f),c.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(c)},y.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},y.prototype.addExitAnchorEventsToEl=function(c){var f=this.chart,m=this;this.eventProvider.addEvent(c,"focus",function(u){var v=u||V.event,S=!(v.relatedTarget&&f.container.contains(v.relatedTarget)||m.exiting);if(f.focusElement&&delete f.focusElement,S){if(m.tabbingInBackwards=!0,m.tabindexContainer.focus(),delete m.tabbingInBackwards,v.preventDefault(),m.modules&&m.modules.length){m.currentModuleIx=m.modules.length-1;var M=m.modules[m.currentModuleIx];M&&M.validate&&!M.validate()?m.move(-1):M&&M.init(-1)}}else m.exiting=!1})},y.prototype.getFirstValidModuleIx=function(){for(var c=this.modules.length,f=0;f<c;++f){var m=this.modules[f];if(!m.validate||m.validate())return f}return null},y.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},y}();return function(y){var c=[];function f(){var u=this;I(this,"dismissPopupContent",{},function(){u.tooltip&&u.tooltip.hide(0),u.hideExportMenu()})}function m(u){(u.which||u.keyCode)===27&&G.charts&&G.charts.forEach(function(v){v&&v.dismissPopupContent&&v.dismissPopupContent()})}y.compose=function(u){return B.compose(u),c.indexOf(u)===-1&&(c.push(u),u.prototype.dismissPopupContent=f),c.indexOf(Z)===-1&&(c.push(Z),F(Z,"keydown",m)),u}}(P||(P={})),P}),et(_,"Accessibility/Components/LegendComponent.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Globals.js"],_["Core/Legend/Legend.js"],_["Core/Utilities.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),A=G.animObject,P=B.doc,y=U.addEvent,c=U.fireEvent,f=U.isNumber,m=U.pick,u=U.syncTimeout,v=V.getChartTitle,S=F.stripHTMLTagsFromString,M=F.addClass,x=F.removeClass;function p(a){var t=a.legend&&a.legend.allItems,i=a.options.legend.accessibility||{},o=a.colorAxis&&a.colorAxis.some(function(e){return!e.dataClasses||!e.dataClasses.length});return!(!t||!t.length||o||i.enabled===!1)}function g(a,t){var i=t.legendItem||{};t.setState(a?"hover":"",!0);for(var o=0,e=["group","label","symbol"];o<e.length;o++){var s=i[e[o]],n=s&&s.element||s;n&&c(n,a?"mouseover":"mouseout")}}var r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.highlightedLegendItemIx=NaN,i.proxyGroup=null,i}return E(t,a),t.prototype.init=function(){var i=this;this.recreateProxies(),this.addEvent(X,"afterScroll",function(){this.chart===i.chart&&(i.proxyProvider.updateGroupProxyElementPositions("legend"),i.updateLegendItemProxyVisibility(),i.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(i.highlightedLegendItemIx))}),this.addEvent(X,"afterPositionItem",function(o){this.chart===i.chart&&this.chart.renderer&&i.updateProxyPositionForItem(o.item)}),this.addEvent(X,"afterRender",function(){this.chart===i.chart&&this.chart.renderer&&i.recreateProxies()&&u(function(){return i.proxyProvider.updateGroupProxyElementPositions("legend")},A(m(this.chart.renderer.globalAnimation,!0)).duration)})},t.prototype.updateLegendItemProxyVisibility=function(){var i,o=this.chart,e=o.legend,s=e.allItems||[],n=e.currentPage||1,h=e.clipHeight||0;s.forEach(function(b){if(b.a11yProxyElement){var k=e.pages&&e.pages.length,D=b.a11yProxyElement.element,d=!1;if(i=b.legendItem||{},k){var C=i.pageIx||0;d=(i.y||0)+(i.label?Math.round(i.label.getBBox().height):0)-e.pages[C]>h||C!==n-1}d?o.styledMode?M(D,"highcharts-a11y-invisible"):D.style.visibility="hidden":(x(D,"highcharts-a11y-invisible"),D.style.visibility="")}})},t.prototype.onChartRender=function(){p(this.chart)||this.removeProxies()},t.prototype.highlightAdjacentLegendPage=function(i){var o=this.chart,e=o.legend,s=(e.currentPage||1)+i,n=e.pages||[];if(s>0&&s<=n.length)for(var h=0,b=0,k=e.allItems;b<k.length;b++)((k[b].legendItem||{}).pageIx||0)+1===s&&o.highlightLegendItem(h)&&(this.highlightedLegendItemIx=h),++h},t.prototype.updateProxyPositionForItem=function(i){i.a11yProxyElement&&i.a11yProxyElement.refreshPosition()},t.prototype.recreateProxies=function(){var i=P.activeElement,o=this.proxyGroup,e=i&&o&&o.contains(i);return this.removeProxies(),!!p(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),e&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},t.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},t.prototype.updateLegendTitle=function(){var i=this.chart,o=S((i.legend&&i.legend.options.title&&i.legend.options.title.text||"").replace(/<br ?\/?>/g," ")),e=i.langFormat("accessibility.legend.legendLabel"+(o?"":"NoTitle"),{chart:i,legendTitle:o,chartTitle:v(i)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":e})},t.prototype.addLegendProxyGroup=function(){var i=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:i})},t.prototype.proxyLegendItems=function(){var i,o=this;((this.chart.legend||{}).allItems||[]).forEach(function(e){(i=e.legendItem||{}).label&&i.label.element&&o.proxyLegendItem(e)})},t.prototype.proxyLegendItem=function(i){var o=i.legendItem||{};if(o.label&&o.group){var e=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:S(i.name),item:i}),s={tabindex:-1,"aria-pressed":i.visible,"aria-label":e},n=o.group.div?o.label:o.group;i.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:o.label,visual:n.element},s)}},t.prototype.getKeyboardNavigation=function(){var i=this.keyCodes,o=this,e=this.chart;return new Z(e,{keyCodeMap:[[[i.left,i.right,i.up,i.down],function(s){return o.onKbdArrowKey(this,s)}],[[i.enter,i.space],function(){return o.onKbdClick(this)}],[[i.pageDown,i.pageUp],function(s){var n=s===i.pageDown?1:-1;return o.highlightAdjacentLegendPage(n),this.response.success}]],validate:function(){return o.shouldHaveLegendNavigation()},init:function(){e.highlightLegendItem(0),o.highlightedLegendItemIx=0},terminate:function(){o.highlightedLegendItemIx=-1,e.legend.allItems.forEach(function(s){return g(!1,s)})}})},t.prototype.onKbdArrowKey=function(i,o){var e=this.keyCodes,s=i.response,n=this.chart,h=n.options.accessibility,b=n.legend.allItems.length,k=o===e.left||o===e.up?-1:1;return n.highlightLegendItem(this.highlightedLegendItemIx+k)?(this.highlightedLegendItemIx+=k,s.success):(b>1&&h.keyboardNavigation.wrapAround&&i.init(k),s.success)},t.prototype.onKbdClick=function(i){var o=this.chart.legend.allItems[this.highlightedLegendItemIx];return o&&o.a11yProxyElement&&o.a11yProxyElement.click(),i.response.success},t.prototype.shouldHaveLegendNavigation=function(){if(!p(this.chart))return!1;var i=this.chart,o=(i.options.legend||{}).accessibility||{};return!!(i.legend.display&&o.keyboardNavigation&&o.keyboardNavigation.enabled)},t}($);return function(a){var t=[];function i(e){var s,n,h,b,k=this.legend.allItems,D=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,d=k[e],C=d.legendItem||{};if(d){f(D)&&k[D]&&g(!1,k[D]),n=e,h=((s=this.legend).allItems[n].legendItem||{}).pageIx,b=s.currentPage,h!==void 0&&h+1!==b&&s.scroll(1+h-b);var T=C.label,N=d.a11yProxyElement&&d.a11yProxyElement.buttonElement;return T&&T.element&&N&&this.setFocusToElement(T,N),g(!0,d),!0}return!1}function o(e){var s=this.chart.options.accessibility,n=e.item;s.enabled&&n&&n.a11yProxyElement&&n.a11yProxyElement.buttonElement.setAttribute("aria-pressed",e.visible?"true":"false")}a.compose=function(e,s){t.indexOf(e)===-1&&(t.push(e),e.prototype.highlightLegendItem=i),t.indexOf(s)===-1&&(t.push(s),y(s,"afterColorizeItem",o))}}(r||(r={})),r}),et(_,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[_["Accessibility/Components/AnnotationsA11y.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/FormatUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.getPointAnnotationTexts,V=B.getAxisDescription,F=B.getSeriesFirstPointElement,I=B.getSeriesA11yElement,E=B.unhideChartElementFromAT,A=X.format,P=X.numberFormat,y=U.reverseChildNodes,c=U.stripHTMLTagsFromString,f=$.find,m=$.isNumber,u=$.pick,v=$.defined;function S(t){var i=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(i!==!1&&t.points&&t.points.length>=i)}function M(t,i){var o=t.series,e=o.chart,s=e.options.accessibility.point||{},n=o.options.accessibility&&o.options.accessibility.point||{},h=o.tooltipOptions||{},b=e.options.lang;return m(i)?P(i,n.valueDecimals||s.valueDecimals||h.valueDecimals||-1,b.decimalPoint,b.accessibility.thousandsSep||b.thousandsSep):i}function x(t,i){var o=t[i];return t.chart.langFormat("accessibility.series."+i+"Description",{name:V(o),series:t})}function p(t){var i=t.series,o=i.chart.options.accessibility.point||{},e=i.chart.options.accessibility&&i.chart.options.accessibility.point||{},s=i.tooltipOptions||{},n=e.valuePrefix||o.valuePrefix||s.valuePrefix||"",h=e.valueSuffix||o.valueSuffix||s.valueSuffix||"",b=M(t,t[t.value!==void 0?"value":"y"]);return t.isNull?i.chart.langFormat("accessibility.series.nullPointValue",{point:t}):i.pointArrayMap?function(k,D,d){var C=D||"",T=d||"";return k.series.pointArrayMap.reduce(function(N,z){return N+(N.length?", ":"")+function(L){var O=M(k,u(k[L],k.options[L]));return L+": "+C+O+T}(z)},"")}(t,n,h):n+b+h}function g(t){var i=t.series,o=i.chart.series.length>1||i.options.name,e=function(D){var d=D.series,C=d.chart,T=d.options.accessibility,N=T&&T.point&&T.point.valueDescriptionFormat||C.options.accessibility.point.valueDescriptionFormat,z=u(d.xAxis&&d.xAxis.options.accessibility&&d.xAxis.options.accessibility.enabled,!C.angular),L=z?function(j){var Y=function(tt){var J=tt.series,nt=J.chart,lt=J.options.accessibility&&J.options.accessibility.point||{},gt=nt.options.accessibility.point||{},mt=J.xAxis&&J.xAxis.dateTime;if(mt){var bt=mt.getXDateFormat(tt.x||0,nt.options.tooltip.dateTimeLabelFormats),yt=lt.dateFormatter&<.dateFormatter(tt)||gt.dateFormatter&>.dateFormatter(tt)||lt.dateFormat||gt.dateFormat||bt;return nt.time.dateFormat(yt,tt.x||0,void 0)}}(j),H=(j.series.xAxis||{}).categories&&v(j.category)&&(""+j.category).replace("<br/>"," "),W=v(j.id)&&(""+j.id).indexOf("highcharts-")<0,q="x, "+j.x;return j.name||Y||H||(W?j.id:q)}(D):"",O={point:D,index:v(D.index)?D.index+1:"",xDescription:L,value:p(D),separator:z?", ":""};return A(N,O,C)}(t),s=t.options&&t.options.accessibility&&t.options.accessibility.description,n=s?" "+s:"",h=o?" "+i.name+".":"",b=function(D){var d=D.series.chart,C=Z(D),T={point:D,annotations:C};return C.length?d.langFormat("accessibility.series.pointAnnotationsDescription",T):""}(t),k=b?" "+b:"";return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=e,e+n+h+k}function r(t){var i=function(s){var n=s.options.accessibility||{};return!S(s)&&!n.exposeAsGroupOnly}(t),o=function(s){var n=s.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!s.points||!(s.points.length<n.pointNavigationEnabledThreshold||n.pointNavigationEnabledThreshold===!1))}(t),e=t.chart.options.accessibility.point.describeNull;(i||o)&&t.points.forEach(function(s){var n=s.graphic&&s.graphic.element||function(b){var k=b.series,D=k&&k.chart,d=k&&k.is("sunburst"),C=b.isNull,T=D&&D.options.accessibility.point.describeNull;return C&&!d&&T}(s)&&function(b){var k=b.series,D=function(N){var z=N.index;return N.series&&N.series.data&&v(z)&&f(N.series.data,function(L){return!!(L&&L.index!==void 0&&L.index>z&&L.graphic&&L.graphic.element)})||null}(b),d=D&&D.graphic,C=d?d.parentGroup:k.graph||k.group,T=function(N,z){var L=N.series.chart.renderer.rect(z.x,z.y,1,1);return L.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),L}(b,D?{x:u(b.plotX,D.plotX,0),y:u(b.plotY,D.plotY,0)}:{x:u(b.plotX,0),y:u(b.plotY,0)});if(C&&C.element)return b.graphic=T,b.hasMockGraphic=!0,T.add(C),C.element.insertBefore(T.element,d?d.element:null),T.element}(s),h=s.options&&s.options.accessibility&&s.options.accessibility.enabled===!1;if(n){if(s.isNull&&!e)return void n.setAttribute("aria-hidden",!0);n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),i&&!h?function(b,k){var D=b.series,d=D.chart.options.accessibility.point||{},C=D.options.accessibility&&D.options.accessibility.point||{},T=c(C.descriptionFormatter&&C.descriptionFormatter(b)||d.descriptionFormatter&&d.descriptionFormatter(b)||g(b));k.setAttribute("role","img"),k.setAttribute("aria-label",T)}(s,n):n.setAttribute("aria-hidden",!0)}})}function a(t){var i=t.chart,o=i.types||[],e=function(N){var z=(N.options.accessibility||{}).description;return z&&N.chart.langFormat("accessibility.series.description",{description:z,series:N})||""}(t),s=function(N){return i[N]&&i[N].length>1&&t[N]},n=t.index+1,h=x(t,"xAxis"),b=x(t,"yAxis"),k={seriesNumber:n,series:t,chart:i},D=o.length>1?"Combination":"",d=i.langFormat("accessibility.series.summary."+t.type+D,k)||i.langFormat("accessibility.series.summary.default"+D,k),C=(s("yAxis")?" "+b+".":"")+(s("xAxis")?" "+h+".":""),T=i.options.accessibility.series.descriptionFormat||"";return A(T,{seriesDescription:d,authorDescription:e?" "+e:"",axisDescription:C,series:t,chart:i,seriesNumber:n},void 0)}return{defaultPointDescriptionFormatter:g,defaultSeriesDescriptionFormatter:a,describeSeries:function(t){var i=t.chart,o=F(t),e=I(t),s=i.is3d&&i.is3d();e&&(e.lastChild!==o||s||y(e),r(t),E(i,e),function(n){var h=n.chart,b=h.options.chart,k=b.options3d&&b.options3d.enabled,D=h.series.length>1,d=h.options.accessibility.series.describeSingleSeries,C=(n.options.accessibility||{}).exposeAsGroupOnly;return!(k&&D)&&(D||d||C||S(n))}(t)?function(n,h){var b=n.options.accessibility||{},k=n.chart.options.accessibility,D=k.landmarkVerbosity;b.exposeAsGroupOnly?h.setAttribute("role","img"):D==="all"?h.setAttribute("role","region"):h.setAttribute("role","group"),h.setAttribute("tabindex","-1"),n.chart.styledMode||(h.style.outline="none"),h.setAttribute("aria-label",c(k.series.descriptionFormatter&&k.series.descriptionFormatter(n)||a(n)))}(t,e):e.removeAttribute("aria-label"))}}}),et(_,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(G,B,X,U,$,Z){var V=B.addEvent,F=B.defined,I=U.getChartTitle,E=Z.defaultPointDescriptionFormatter,A=Z.defaultSeriesDescriptionFormatter;function P(c){return!!c.options.accessibility.announceNewData.enabled}var y=function(){function c(f){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=f}return c.prototype.init=function(){var f=this.chart,m=f.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new $,this.announcer=new X(f,m),this.addEventListeners()},c.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},c.prototype.addEventListeners=function(){var f=this,m=this.chart,u=this.eventProvider;u.addEvent(m,"afterApplyDrilldown",function(){f.lastAnnouncementTime=0}),u.addEvent(m,"afterAddSeries",function(v){f.onSeriesAdded(v.series)}),u.addEvent(m,"redraw",function(){f.announceDirtyData()})},c.prototype.onSeriesAdded=function(f){P(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[f.name+f.index]=f,this.dirty.newSeries=F(this.dirty.newSeries)?void 0:f)},c.prototype.announceDirtyData=function(){var f,m,u=this.chart,v=this;if(u.options.accessibility.announceNewData&&this.dirty.hasDirty){var S=this.dirty.newPoint;S&&(S=(m=(f=S).series.data.filter(function(M){return f.x===M.x&&f.y===M.y})).length===1?m[0]:f),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(M){return v.dirty.allSeries[M]}),this.dirty.newSeries,S),this.dirty={allSeries:{}}}},c.prototype.queueAnnouncement=function(f,m,u){var v,S,M,x=this,p=this.chart.options.accessibility.announceNewData;if(p.enabled){var g=+new Date,r=g-this.lastAnnouncementTime,a=Math.max(0,p.minAnnounceInterval-r),t=(v=this.queuedAnnouncement&&this.queuedAnnouncement.series,S=f,M=(v||[]).concat(S||[]).reduce(function(o,e){return o[e.name+e.index]=e,o},{}),Object.keys(M).map(function(o){return M[o]})),i=this.buildAnnouncementMessage(t,m,u);i&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:g,message:i,series:t},this.queuedAnnouncementTimer=setTimeout(function(){x&&x.announcer&&(x.lastAnnouncementTime=+new Date,x.announcer.announce(x.queuedAnnouncement.message),delete x.queuedAnnouncement,delete x.queuedAnnouncementTimer)},a))}},c.prototype.buildAnnouncementMessage=function(f,m,u){var v=this.chart,S=v.options.accessibility.announceNewData;if(S.announcementFormatter){var M=S.announcementFormatter(f,m,u);if(M!==!1)return M.length?M:null}var x=G.charts&&G.charts.length>1?"Multiple":"Single",p=m?"newSeriesAnnounce"+x:u?"newPointAnnounce"+x:"newDataAnnounce",g=I(v);return v.langFormat("accessibility.announceNewData."+p,{chartTitle:g,seriesDesc:m?A(m):null,pointDesc:u?E(u):null,point:u,series:m})},c}();return function(c){function f(u){var v=this.chart,S=this.newDataAnnouncer;S&&S.chart===v&&P(v)&&(S.dirty.newPoint=F(S.dirty.newPoint)?void 0:u.point)}function m(){var u=this.chart,v=this.newDataAnnouncer;v&&v.chart===u&&P(u)&&(v.dirty.hasDirty=!0,v.dirty.allSeries[this.name+this.index]=this)}c.composedClasses=[],c.compose=function(u){c.composedClasses.indexOf(u)===-1&&(c.composedClasses.push(u),V(u,"addPoint",f),V(u,"updatedData",m))}}(y||(y={})),y}),et(_,"Accessibility/ProxyElement.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$){var Z=G.doc,V=B.attr,F=B.css,I=B.merge,E=U.fireEventOnWrappedOrUnwrappedElement,A=$.cloneMouseEvent,P=$.cloneTouchEvent,y=$.getFakeMouseEvent,c=$.removeElement;return function(){function f(m,u,v,S){this.chart=m,this.target=u,this.groupType=v;var M=v==="ul";this.eventProvider=new X;var x=M?Z.createElement("li"):null,p=this.buttonElement=Z.createElement("button");m.styledMode||this.hideButtonVisually(p),x?(M&&!m.styledMode&&(x.style.listStyle="none"),x.appendChild(p),this.element=x):this.element=p,this.updateTarget(u,S)}return f.prototype.click=function(){var m=this.getTargetPosition();m.x+=m.width/2,m.y+=m.height/2;var u=y("click",m);E(this.target.click,u)},f.prototype.updateTarget=function(m,u){this.target=m,this.updateCSSClassName();var v=u||{};Object.keys(v).forEach(function(S){v[S]===null&&delete v[S]}),V(this.buttonElement,I({"aria-label":this.getTargetAttr(m.click,"aria-label")},v)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,m.click),this.refreshPosition()},f.prototype.refreshPosition=function(){var m=this.getTargetPosition();F(this.buttonElement,{width:(m.width||1)+"px",height:(m.height||1)+"px",left:(Math.round(m.x)||0)+"px",top:(Math.round(m.y)||0)+"px"})},f.prototype.remove=function(){this.eventProvider.removeAddedEvents(),c(this.element)},f.prototype.updateCSSClassName=function(){var m=function(x){return x.indexOf("highcharts-no-tooltip")>-1},u=this.chart.legend,v=u.group&&u.group.div,S=m(v&&v.className||""),M=m(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=S||M?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},f.prototype.addProxyEventsToButton=function(m,u){var v=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(S){var M=S.indexOf("touch")===0;v.eventProvider.addEvent(m,S,function(x){var p=M?P(x):A(x);u&&E(u,p),x.stopPropagation(),M||x.preventDefault()},{passive:!1})})},f.prototype.hideButtonVisually=function(m){F(m,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},f.prototype.getTargetPosition=function(){var m=this.target.click,u=m.element?m.element:m,v=this.target.visual||u;if(this.chart.renderTo&&v&&v.getBoundingClientRect){var S=v.getBoundingClientRect(),M=this.chart.pointer.getChartPosition();return{x:(S.left-M.left)/M.scaleX,y:(S.top-M.top)/M.scaleY,width:S.right/M.scaleX-S.left/M.scaleX,height:S.bottom/M.scaleY-S.top/M.scaleY}}return{x:0,y:0,width:1,height:1}},f.prototype.getTargetAttr=function(m,u){return m.element?m.element.getAttribute(u):m.getAttribute(u)},f}()}),et(_,"Accessibility/ProxyProvider.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/ProxyElement.js"]],function(G,B,X,U,$,Z){var V=G.doc,F=B.attr,I=B.css,E=X.unhideChartElementFromAT,A=$.removeElement,P=$.removeChildNodes;return function(){function y(c){this.chart=c,this.domElementProvider=new U,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return y.prototype.addProxyElement=function(c,f,m){var u=this.groups[c];if(!u)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+c);var v=new Z(this.chart,f,u.type,m);return u.proxyContainerElement.appendChild(v.element),u.proxyElements.push(v),v},y.prototype.addGroup=function(c,f,m){var u=this.groups[c];if(u)return u.groupElement;var v,S=this.domElementProvider.createElement(f);return m&&m.role&&f!=="div"?(v=this.domElementProvider.createElement("div")).appendChild(S):v=S,v.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+c.replace(/\W/g,"-"),this.groups[c]={proxyContainerElement:S,groupElement:v,type:f,proxyElements:[]},F(v,m||{}),f==="ul"&&S.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(v),this.updateGroupOrder(this.groupOrder),v},y.prototype.updateGroupAttrs=function(c,f){var m=this.groups[c];if(!m)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+c);F(m.groupElement,f)},y.prototype.updateGroupOrder=function(c){var f=this;if(this.groupOrder=c.slice(),!this.isDOMOrderGroupOrder()){var m=c.indexOf("series"),u=m>-1?c.slice(0,m):c,v=m>-1?c.slice(m+1):[],S=V.activeElement;["before","after"].forEach(function(M){var x=f[M==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],p=M==="before"?u:v;P(x),p.forEach(function(g){var r=f.groups[g];r&&x.appendChild(r.groupElement)})}),(this.beforeChartProxyPosContainer.contains(S)||this.afterChartProxyPosContainer.contains(S))&&S&&S.focus&&S.focus()}},y.prototype.clearGroup=function(c){var f=this.groups[c];if(!f)throw new Error("ProxyProvider.clearGroup: Invalid group key "+c);P(f.proxyContainerElement)},y.prototype.removeGroup=function(c){var f=this.groups[c];f&&(A(f.groupElement),delete this.groups[c])},y.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},y.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},y.prototype.updateGroupProxyElementPositions=function(c){var f=this.groups[c];f&&f.proxyElements.forEach(function(m){return m.refreshPosition()})},y.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},y.prototype.createProxyPosContainer=function(c){var f=this.domElementProvider.createElement("div");return f.setAttribute("aria-hidden","false"),f.className="highcharts-a11y-proxy-container"+(c?"-"+c:""),I(f,{top:"0",left:"0"}),this.chart.styledMode||(f.style.whiteSpace="nowrap",f.style.position="absolute"),f},y.prototype.getCurrentGroupOrderInDOM=function(){var c=this,f=function(S){for(var M=Object.keys(c.groups),x=M.length;x--;){var p=M[x],g=c.groups[p];if(g&&S===g.groupElement)return p}},m=function(S){for(var M=[],x=S.children,p=0;p<x.length;++p){var g=f(x[p]);g&&M.push(g)}return M},u=m(this.beforeChartProxyPosContainer),v=m(this.afterChartProxyPosContainer);return u.push("series"),u.concat(v)},y.prototype.isDOMOrderGroupOrder=function(){var c=this,f=this.getCurrentGroupOrderInDOM(),m=this.groupOrder.filter(function(v){return v==="series"||!!c.groups[v]}),u=f.length;if(u!==m.length)return!1;for(;u--;)if(f[u]!==m[u])return!1;return!0},y.prototype.updatePosContainerPositions=function(){var c=this.chart;if(!c.renderer.forExport){var f=c.renderer.box;c.container.insertBefore(this.afterChartProxyPosContainer,f.nextSibling),c.container.insertBefore(this.beforeChartProxyPosContainer,f),E(this.chart,this.afterChartProxyPosContainer),E(this.chart,this.beforeChartProxyPosContainer)}},y}()}),et(_,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),et(_,"Stock/RangeSelector/RangeSelectorComposition.js",[_["Core/Defaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.defaultOptions,Z=G.setOptions,V=X.addEvent,F=X.defined,I=X.extend,E=X.find,A=X.isNumber,P=X.merge,y=X.pick,c=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(h,b){var k=i==="year"?"FullYear":"Month",D=new e.Date(h),d=e.get(k,D);return e.set(k,D,d+b),d===e.get(k,D)&&e.set("Date",D,0),D.getTime()-h};A(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return A(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),A(o)?!A(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new U(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){A(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function S(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,A(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(c,function(n){return n[0]===r})||c.push([r,[V(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),V(r,"redraw",s)]]),s())}function M(){for(var r=0,a=c.length;r<a;++r){var t=c[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void c.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function p(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!F(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new U(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){S(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){U=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),V(a,"afterGetContainer",u),V(a,"beforeRender",v),V(a,"destroy",M),V(a,"getMargins",x),V(a,"render",p),V(a,"update",g),a.prototype.callbacks.push(S)),f.indexOf(Z)===-1&&(I($,{rangeSelector:B.rangeSelector}),I($.lang,B.lang))}}}),et(_,"Stock/RangeSelector/RangeSelector.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Stock/RangeSelector/RangeSelectorComposition.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=B.defaultOptions,F=Z.addEvent,I=Z.createElement,E=Z.css,A=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,c=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,S=Z.pad,M=Z.pick,x=Z.pInt,p=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){U.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,h,b,k=this,D=k.chart,d=k.buttonOptions[a],C=D.xAxis[0],T=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=d.type,z=d.dataGrouping,L=T.dataMin,O=T.dataMax,j=C&&Math.round(Math.min(C.max,M(O,C.max))),Y=d._range,H=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,k.setSelected(a),z&&(this.forcedDataGrouping=!0,G.prototype.setDataGrouping.call(C||{chart:this.chart},z,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")C?(h={range:d,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(h),m(h.newMax)&&(j=h.newMax),H=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),H=!1;else if(N==="ytd"){if(!C)return void(k.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(W){var q=W.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=k.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);H&&d._offsetMin&&A(i)&&(i+=d._offsetMin),d._offsetMax&&A(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,M(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=p(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,F(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,h=t.maxInput;n&&n.blur&&f(n,"blur"),h&&h.blur&&f(h,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(F(a.container,"mousedown",s)),this.eventsToUnbind.push(F(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(F(a,"load",function(){a.xAxis&&a.xAxis[0]&&F(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,h=t.scroller&&t.scroller.getUnionExtremes()||o,b=h.dataMin,k=h.dataMax,D=a.getYTDExtremes(k,b,t.time.useUTC),d=D.min,C=D.max,T=a.selected,N=a.options.allButtonsEnabled,z=a.buttons,L=m(T);a.buttonOptions.forEach(function(O,j){var Y=O._range,H=O.type,W=O.count||1,q=z[j],tt=O._offsetMax-O._offsetMin,J=j===T,nt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(H==="month"||H==="year")&&e+36e5>={month:28,year:365}[H]*n*W-tt&&e-36e5<={month:31,year:366}[H]*n*W+tt?yt=!0:H==="ytd"?(yt=C-d+tt===e,mt=!J):H==="all"&&(yt=o.max-o.min>=k-b,bt=!J&&L&&yt);var dt=!N&&(nt||lt||bt||s),ot=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;dt?gt=3:ot&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=dt,gt===2&&(i.selectedIndex=j+1)),gt===0&&T===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=M(a.offsetMin,0),a._offsetMax=M(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),h=A(n)?Number(n):void 0;if(A(t)){var b=h;A(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),h=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,h),s&&s.attr({text:o.dateFormat(i.inputDateFormat,h)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var h=s.dateFormat(e,i);o.max!==h&&(o.max=h)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,h=this.options.inputBoxWidth;E(i,{width:o?t.width+(h?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&h?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(X.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(S(-s),":00"):"-".concat(S(s),":00")}var n=Date.parse(e);if(!m(n)){var h=a.split("-");n=Date.UTC(x(h[0]),x(h[1])-1,x(h[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},h=i.renderer,b=i.options.rangeSelector,k=V.lang,D=a==="min";function d(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],H=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,W=H.dataMin,q=H.dataMax,tt=s.getInputValue(a);tt!==Number(z.getAttribute("data-hc-time-previous"))&&m(tt)&&(z.setAttribute("data-hc-time-previous",tt),D&&O&&m(W)?tt>Number(O.getAttribute("data-hc-time"))?tt=void 0:tt<W&&(tt=W):j&&m(q)&&(tt<Number(j.getAttribute("data-hc-time"))?tt=void 0:tt>q&&(tt=q)),tt!==void 0&&Y.setExtremes(D?tt:Y.min,D?Y.max:tt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=k[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",T=h.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var z=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);z.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(H){return O.indexOf("%"+H)!==-1}),Y=["H","k","I","l","M","S"].some(function(H){return O.indexOf("%"+H)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(T.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(z,c({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),z.onfocus=function(){s.showInput(a)},z.onblur=function(){z===X.doc.activeElement&&d(),s.hideInput(a),s.setInputValue(a),z.blur()};var L=!1;return z.onchange=function(){L||(d(),s.hideInput(a),z.blur())},z.onkeypress=function(O){O.keyCode===13&&d()},z.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||d()},z.onkeyup=function(){L=!1},{dateBox:N,input:z,label:T}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),h=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:h}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,h=M(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,k=this.rendered;if(n.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:h}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(A(C.dataMin)&&A(C.dataMax)){var T=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-T),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+T,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(z){if(z){var L=z.getBBox().width;L&&(z.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=V.lang,n=o.renderer,h=u(e.buttonTheme),b=h&&h.states,k=h.width||28;delete h.width,delete h.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);F(D,"touchstart",function(){D.style.fontSize="16px"}),[[X.isMS?"mouseover":"mouseenter"],[X.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var C=d[0],T=d[1];F(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,T||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),h["stroke-width"]=M(h["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(d,C){I("option",{textContent:d.title||d.text},void 0,D),i[C]=n.button(d.text,0,0,function(T){var N,z=d.events&&d.events.click;z&&(N=z.call(d,T)),N!==!1&&a.clickButton(C),a.isActive=!0},h,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup),d.title&&i[C].attr("title",d.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,h=t.options,b=t.zoomText,k=e.options,D=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,d=h.buttonPosition,C=h.inputPosition,T=h.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&T==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},z=e.plotLeft;if(s&&d&&C){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=h.buttonSpacing)}),this.initialButtonGroupWidth=O}z-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=z:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:T},!0,e.spacingBox);var H=s.alignAttr.translateY,W=s.getBBox().height+20,q=0;if(T==="bottom"){var tt=e.legend&&e.legend.options;q=H-(W=W+(tt&&tt.verticalAlign==="bottom"&&tt.enabled&&!tt.floating?e.legend.legendHeight+M(tt.margin,10):0)-20)-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10}T==="top"?(h.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):T==="middle"&&(C.y===d.y?q=H:(C.y||d.y)&&(C.y<0||d.y<0?q-=Math.min(C.y,d.y):q=H-W)),s.translate(h.x,h.y+Math.floor(q));var J=this,nt=J.minInput,lt=J.maxInput,gt=J.dropdown;h.inputEnabled&&nt&<&&(nt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,h=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-h:n.align==="center"&&(b-=h/2),s&&s.align({y:n.y,width:M(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,h=i.plotLeft,b=h;e&&e.visibility!=="hidden"&&(e[s]({x:M(h+n.x,h)}),b+=n.x+e.getBBox().width+5);for(var k=0,D=this.buttonOptions.length;k<D;++k)t[k].visibility!=="hidden"?(t[k][s]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][s]({x:h})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,h=n.buttonPosition,b=n.dropdown,k=n.inputPosition,D=function(){var T=0;return t.buttons.forEach(function(N){var z=N.getBBox();z.width>T&&(T=z.width)}),T},d=function(T){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,z=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+T>N&&N+z>L&&h.y<k.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(d(D())&&C());b==="never"&&this.expandButtons()}s&&e?k.align===h.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),d(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,h=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:M(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:M(n.buttonTheme.paddingRight,b.padding,8)}};h&&h.hide();var D=!1;o.forEach(function(C,T){var N=i[T];N.state!==2?N.hide():(N.show(),N.attr(k(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var d=n.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var h=t[n];h.show(),h.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:M(o.buttonTheme.paddingLeft,"unset"),paddingRight:M(o.buttonTheme.paddingRight,"unset")}),h.state<2&&h.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,h=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:h.width+"px",height:h.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,h=0;if(a.height)return a.height;this.alignElements(),h=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(h+=Math.abs(b)),h},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof window.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return c(g.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),et(_,"Accessibility/Components/RangeSelectorComponent.js",[_["Stock/RangeSelector/RangeSelector.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V,F=this&&this.__extends||(V=function(c,f){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},V(c,f)},function(c,f){function m(){this.constructor=c}V(c,f),c.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),I=X.unhideChartElementFromAT,E=X.getAxisRangeDescription,A=Z.addEvent,P=Z.attr,y=function(c){function f(){var m=c!==null&&c.apply(this,arguments)||this;return m.announcer=void 0,m}return F(f,c),f.prototype.init=function(){var m=this.chart;this.announcer=new U(m,"polite")},f.prototype.onChartUpdate=function(){var m=this.chart,u=this,v=m.rangeSelector;v&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),v.buttons&&v.buttons.length&&v.buttons.forEach(function(S){u.setRangeButtonAttrs(S)}),v.maxInput&&v.minInput&&["minInput","maxInput"].forEach(function(S,M){var x=v[S];x&&(I(m,x),u.setRangeInputAttrs(x,"accessibility.rangeSelector."+(M?"max":"min")+"InputLabel"))}))},f.prototype.updateSelectorVisibility=function(){var m=this.chart,u=m.rangeSelector,v=u&&u.dropdown,S=u&&u.buttons||[],M=function(x){return x.setAttribute("aria-hidden",!0)};u&&u.hasVisibleDropdown&&v?(I(m,v),S.forEach(function(x){return M(x.element)})):(v&&M(v),S.forEach(function(x){return I(m,x.element)}))},f.prototype.setDropdownAttrs=function(){var m=this.chart,u=m.rangeSelector&&m.rangeSelector.dropdown;if(u){var v=m.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:m.options.lang.rangeSelectorZoom});u.setAttribute("aria-label",v),u.setAttribute("tabindex",-1)}},f.prototype.setRangeButtonAttrs=function(m){P(m.element,{tabindex:-1,role:"button"})},f.prototype.setRangeInputAttrs=function(m,u){var v=this.chart;P(m,{tabindex:-1,"aria-label":v.langFormat(u,{chart:v})})},f.prototype.onButtonNavKbdArrowKey=function(m,u){var v=m.response,S=this.keyCodes,M=this.chart,x=M.options.accessibility.keyboardNavigation.wrapAround,p=u===S.left||u===S.up?-1:1;return M.highlightRangeSelectorButton(M.highlightedRangeSelectorItemIx+p)?v.success:x?(m.init(p),v.success):v[p>0?"next":"prev"]},f.prototype.onButtonNavKbdClick=function(m){var u=m.response,v=this.chart;return v.oldRangeSelectorItemState===3||this.fakeClickEvent(v.rangeSelector.buttons[v.highlightedRangeSelectorItemIx].element),u.success},f.prototype.onAfterBtnClick=function(){var m=this.chart,u=E(m.xAxis[0]),v=m.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:m,axisRangeDescription:u});v&&this.announcer.announce(v)},f.prototype.onInputKbdMove=function(m){var u=this.chart,v=u.rangeSelector,S=u.highlightedInputRangeIx=(u.highlightedInputRangeIx||0)+m;if(S>1||S<0)u.accessibility&&(u.accessibility.keyboardNavigation.tabindexContainer.focus(),u.accessibility.keyboardNavigation.move(m));else if(v){var M=v[S?"maxDateBox":"minDateBox"],x=v[S?"maxInput":"minInput"];M&&x&&u.setFocusToElement(M,x)}},f.prototype.onInputNavInit=function(m){var u=this,v=this,S=this.chart,M=m>0?0:1,x=S.rangeSelector,p=x&&x[M?"maxDateBox":"minDateBox"],g=x&&x.minInput,r=x&&x.maxInput,a=M?r:g;if(S.highlightedInputRangeIx=M,p&&g&&r){S.setFocusToElement(p,a),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var t=function(e){(e.which||e.keyCode)===u.keyCodes.tab&&(e.preventDefault(),e.stopPropagation(),v.onInputKbdMove(e.shiftKey?-1:1))},i=A(g,"keydown",t),o=A(r,"keydown",t);this.removeInputKeydownHandler=function(){i(),o()}}},f.prototype.onInputNavTerminate=function(){var m=this.chart.rangeSelector||{};m.maxInput&&m.hideInput("max"),m.minInput&&m.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},f.prototype.initDropdownNav=function(){var m=this,u=this.chart,v=u.rangeSelector,S=v&&v.dropdown;v&&S&&(u.setFocusToElement(v.buttonGroup,S),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=A(S,"keydown",function(M){var x=(M.which||M.keyCode)===m.keyCodes.tab,p=u.accessibility;x&&(M.preventDefault(),M.stopPropagation(),p&&(p.keyboardNavigation.tabindexContainer.focus(),p.keyboardNavigation.move(M.shiftKey?-1:1)))}))},f.prototype.getRangeSelectorButtonNavigation=function(){var m=this.chart,u=this.keyCodes,v=this;return new $(m,{keyCodeMap:[[[u.left,u.right,u.up,u.down],function(S){return v.onButtonNavKbdArrowKey(this,S)}],[[u.enter,u.space],function(){return v.onButtonNavKbdClick(this)}]],validate:function(){return!!(m.rangeSelector&&m.rangeSelector.buttons&&m.rangeSelector.buttons.length)},init:function(S){var M=m.rangeSelector;if(M&&M.hasVisibleDropdown)v.initDropdownNav();else if(M){var x=M.buttons.length-1;m.highlightRangeSelectorButton(S>0?0:x)}},terminate:function(){v.removeDropdownKeydownHandler&&(v.removeDropdownKeydownHandler(),delete v.removeDropdownKeydownHandler)}})},f.prototype.getRangeSelectorInputNavigation=function(){var m=this.chart,u=this;return new $(m,{keyCodeMap:[],validate:function(){return function(v){return!!(v.rangeSelector&&v.rangeSelector.inputGroup&&v.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&v.options.rangeSelector.inputEnabled!==!1&&v.rangeSelector.minInput&&v.rangeSelector.maxInput)}(m)},init:function(v){u.onInputNavInit(v)},terminate:function(){u.onInputNavTerminate()}})},f.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},f.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},f}(B);return function(c){var f=[];function m(v){var S=this.rangeSelector&&this.rangeSelector.buttons||[],M=this.highlightedRangeSelectorItemIx,x=this.rangeSelector&&this.rangeSelector.selected;return M!==void 0&&S[M]&&M!==x&&S[M].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=v,!!S[v]&&(this.setFocusToElement(S[v].box,S[v].element),v!==x&&(this.oldRangeSelectorItemState=S[v].state,S[v].setState(1)),!0)}function u(){var v=this.chart.accessibility;if(v&&v.components.rangeSelector)return v.components.rangeSelector.onAfterBtnClick()}c.compose=function(v,S){f.indexOf(v)===-1&&(f.push(v),v.prototype.highlightRangeSelectorButton=m),f.indexOf(S)===-1&&(f.push(S),A(G,"afterBtnClick",u))}}(y||(y={})),y}),et(_,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.merge;return function($){var Z=[];function V(c){U(!0,c,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function F(c){return c.marker.states&&c.marker.states.normal&&c.marker.states.normal.opacity}function I(c){return!!(c._hasPointMarkers&&c.points&&c.points.length)}function E(){var c=this;c.chart.styledMode&&(c.markerGroup&&c.markerGroup[c.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),I(c)&&c.points.forEach(function(f){f.graphic&&(f.graphic[f.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),f.graphic[f.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function A(c){this.resetA11yMarkerOptions=U(c.options.marker||{},this.userOptions.marker||{})}function P(){var c=this,f=c.options;(function(m){var u=m.chart.options.accessibility.enabled,v=(m.options.accessibility&&m.options.accessibility.enabled)!==!1;return u&&v&&function(S){var M=S.chart.options.accessibility;return S.points.length<M.series.pointDescriptionEnabledThreshold||M.series.pointDescriptionEnabledThreshold===!1}(m)})(c)?(f.marker&&f.marker.enabled===!1&&(c.a11yMarkersForced=!0,V(c.options)),I(c)&&function(m){for(var u=m.points.length;u--;){var v=m.points[u],S=v.options,M=v.hasForcedA11yMarker;if(delete v.hasForcedA11yMarker,S.marker){var x=M&&F(S)===0;S.marker.enabled&&!x?(y(S),v.hasForcedA11yMarker=!1):S.marker.enabled===!1&&(V(S),v.hasForcedA11yMarker=!0)}}}(c)):c.a11yMarkersForced&&(delete c.a11yMarkersForced,function(m){var u=m.resetA11yMarkerOptions;if(u){var v=u.states&&u.states.normal&&u.states.normal.opacity;m.update({marker:{enabled:u.enabled,states:{normal:{opacity:v}}}})}}(c),delete c.resetA11yMarkerOptions)}function y(c){U(!0,c.marker,{states:{normal:{opacity:F(c)||1}}})}$.compose=function(c){Z.indexOf(c)===-1&&(Z.push(c),X(c,"afterSetOptions",A),X(c,"render",P),X(c,"afterRender",E))}}(B||(B={})),B}),et(_,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/ChartUtilities.js"]],function(G,B,X,U,$,Z,V,F){var I=X.seriesTypes,E=U.doc,A=$.defined,P=$.fireEvent,y=F.getPointFromXY,c=F.getSeriesFromName,f=F.scrollToPoint;function m(r){var a=r.index,t=r.series.points,i=t.length;if(t[a]===r)return a;for(;i--;)if(t[i]===r)return i}function u(r){var a=r.chart.options.accessibility.keyboardNavigation.seriesNavigation,t=r.options.accessibility||{},i=t.keyboardNavigation;return i&&i.enabled===!1||t.enabled===!1||r.options.enableMouseTracking===!1||!r.visible||a.pointNavigationEnabledThreshold&&a.pointNavigationEnabledThreshold<=r.points.length}function v(r){var a=r.series.chart.options.accessibility,t=r.options.accessibility&&r.options.accessibility.enabled===!1;return r.isNull&&a.keyboardNavigation.seriesNavigation.skipNullPoints||r.visible===!1||r.isInside===!1||t||u(r.series)}function S(r){for(var a=r.points||[],t=a.length,i=0;i<t;++i)if(!v(a[i]))return a[i];return null}function M(r){for(var a=r.series||[],t=a.length,i=0;i<t;++i)if(!u(a[i])){var o=S(a[i]);if(o)return o}return null}function x(r){for(var a=r.series.length,t=!1;a--&&(r.highlightedPoint=r.series[a].points[r.series[a].points.length-1],!(t=r.series[a].highlightNextValidPoint())););return t}function p(r){delete r.highlightedPoint;var a=M(r);return!!a&&a.highlight()}var g=function(){function r(a,t){this.keyCodes=t,this.chart=a}return r.prototype.init=function(){var a=this,t=this.chart,i=this.eventProvider=new V;i.addEvent(B,"destroy",function(){return a.onSeriesDestroy(this)}),i.addEvent(t,"afterApplyDrilldown",function(){(function(o){var e=M(o);e&&e.highlight(!1)})(this)}),i.addEvent(t,"drilldown",function(o){var e=o.point,s=e.series;a.lastDrilledDownPoint={x:e.x,y:e.y,seriesName:s?s.name:""}}),i.addEvent(t,"drillupall",function(){setTimeout(function(){a.onDrillupAll()},10)}),i.addEvent(G,"afterSetState",function(){var o=this,e=o.graphic&&o.graphic.element,s=E.activeElement,n=s&&s.getAttribute("class"),h=n&&n.indexOf("highcharts-a11y-proxy-button")>-1;t.highlightedPoint===o&&s!==e&&!h&&e&&e.focus&&e.focus()})},r.prototype.onDrillupAll=function(){var a,t=this.lastDrilledDownPoint,i=this.chart,o=t&&c(i,t.seriesName);t&&o&&A(t.x)&&A(t.y)&&(a=y(o,t.x,t.y)),a=a||M(i),i.container&&i.container.focus(),a&&a.highlight&&a.highlight(!1)},r.prototype.getKeyboardNavigationHandler=function(){var a=this,t=this.keyCodes,i=this.chart,o=i.inverted;return new Z(i,{keyCodeMap:[[o?[t.up,t.down]:[t.left,t.right],function(e){return a.onKbdSideways(this,e)}],[o?[t.left,t.right]:[t.up,t.down],function(e){return a.onKbdVertical(this,e)}],[[t.enter,t.space],function(e,s){var n=i.highlightedPoint;return n&&(s.point=n,P(n.series,"click",s),n.firePointEvent("click")),this.response.success}],[[t.home],function(){return p(i),this.response.success}],[[t.end],function(){return x(i),this.response.success}],[[t.pageDown,t.pageUp],function(e){return i.highlightAdjacentSeries(e===t.pageDown),this.response.success}]],init:function(){return a.onHandlerInit(this)},validate:function(){return!!M(i)},terminate:function(){return a.onHandlerTerminate()}})},r.prototype.onKbdSideways=function(a,t){var i=this.keyCodes,o=t===i.right||t===i.down;return this.attemptHighlightAdjacentPoint(a,o)},r.prototype.onHandlerInit=function(a){var t=this.chart;return t.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&t.highlightedPoint?t.highlightedPoint.highlight():p(t),a.response.success},r.prototype.onKbdVertical=function(a,t){var i=this.chart,o=this.keyCodes,e=t===o.down||t===o.right,s=i.options.accessibility.keyboardNavigation.seriesNavigation;return s.mode&&s.mode==="serialize"?this.attemptHighlightAdjacentPoint(a,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),a.response.success)},r.prototype.onHandlerTerminate=function(){var a=this.chart,t=a.options.accessibility.keyboardNavigation;a.tooltip&&a.tooltip.hide(0);var i=a.highlightedPoint&&a.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),a.highlightedPoint&&a.highlightedPoint.onMouseOut&&a.highlightedPoint.onMouseOut(),t.seriesNavigation.rememberPointFocus||delete a.highlightedPoint},r.prototype.attemptHighlightAdjacentPoint=function(a,t){var i=this.chart,o=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(t)||o&&(t?p(i):x(i))?a.response.success:a.response[t?"next":"prev"]},r.prototype.onSeriesDestroy=function(a){var t=this.chart;t.highlightedPoint&&t.highlightedPoint.series===a&&(delete t.highlightedPoint,t.focusElement&&t.focusElement.removeFocusBorder())},r.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},r}();return function(r){var a=[];function t(n){var h,b,k=this,D=k.series,d=k.highlightedPoint,C=d&&m(d)||0,T=d&&d.series.points||[],N=k.series&&k.series[k.series.length-1],z=N&&N.points&&N.points[N.points.length-1];if(!D[0]||!D[0].points)return!1;if(d){if(h=D[d.series.index+(n?1:-1)],!(b=T[C+(n?1:-1)])&&h&&(b=h.points[n?0:h.points.length-1]),!b)return!1}else b=n?D[0].points[0]:z;return v(b)?(u(h=b.series)?k.highlightedPoint=n?h.points[h.points.length-1]:h.points[0]:k.highlightedPoint=b,k.highlightAdjacentPoint(n)):b.highlight()}function i(n){var h,b=this.highlightedPoint,k=1/0;return!(!A(b.plotX)||!A(b.plotY))&&(this.series.forEach(function(D){u(D)||D.points.forEach(function(d){if(A(d.plotY)&&A(d.plotX)&&d!==b){var C=d.plotY-b.plotY,T=Math.abs(d.plotX-b.plotX),N=Math.abs(C)*Math.abs(C)+T*T*4;D.yAxis&&D.yAxis.reversed&&(C*=-1),C<=0&&n||C>=0&&!n||N<5||v(d)||N<k&&(k=N,h=d)}})}),!!h&&h.highlight())}function o(n){var h,b,k=this,D=k.highlightedPoint,d=k.series&&k.series[k.series.length-1],C=d&&d.points&&d.points[d.points.length-1];return k.highlightedPoint?!!(h=k.series[D.series.index+(n?-1:1)])&&!!(b=function(T,N){var z,L,O,j=1/0,Y=N.points.length,H=function(W){return!(A(W.plotX)&&A(W.plotY))};if(!H(T)){for(;Y--;)H(z=N.points[Y])||(O=(T.plotX-z.plotX)*(T.plotX-z.plotX)*4+(T.plotY-z.plotY)*(T.plotY-z.plotY)*1)<j&&(j=O,L=Y);return A(L)?N.points[L]:void 0}}(D,h))&&(u(h)?(b.highlight(),k.highlightAdjacentSeries(n)||(D.highlight(),!1)):(b.highlight(),b.series.highlightNextValidPoint())):(h=n?k.series&&k.series[0]:d,!!(b=n?h&&h.points&&h.points[0]:C)&&b.highlight())}function e(n){n===void 0&&(n=!0);var h=this.series.chart;return!this.isNull&&n?this.onMouseOver():h.tooltip&&h.tooltip.hide(0),f(this),this.graphic&&(h.setFocusToElement(this.graphic),!n&&h.focusElement&&h.focusElement.removeFocusBorder()),h.highlightedPoint=this,this}function s(){var n=this.chart.highlightedPoint,h=(n&&n.series)===this?m(n):0,b=this.points,k=b.length;if(b&&k){for(var D=h;D<k;++D)if(!v(b[D]))return b[D].highlight();for(var d=h;d>=0;--d)if(!v(b[d]))return b[d].highlight()}return!1}r.compose=function(n,h,b){if(a.indexOf(n)===-1){a.push(n);var k=n.prototype;k.highlightAdjacentPoint=t,k.highlightAdjacentPointVertical=i,k.highlightAdjacentSeries=o}if(a.indexOf(h)===-1&&(a.push(h),h.prototype.highlight=e),a.indexOf(b)===-1){a.push(b);var D=b.prototype;D.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(d){I[d]&&(I[d].prototype.keyboardMoveVertical=!1)}),D.highlightNextValidPoint=s}}}(g||(g={})),g}),et(_,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],_["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],_["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],_["Core/Tooltip.js"]],function(G,B,X,U,$,Z,V){var F,I=this&&this.__extends||(F=function(y,c){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},F(y,c)},function(y,c){function f(){this.constructor=y}F(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),E=B.hideSeriesFromAT,A=$.describeSeries,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return I(c,y),c.compose=function(f,m,u){U.compose(u),X.compose(u),Z.compose(f,m,u)},c.prototype.init=function(){this.newDataAnnouncer=new U(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},c.prototype.hideTooltipFromATWhenShown=function(){var f=this;this.addEvent(V,"refresh",function(){this.chart===f.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},c.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(f){f.labelBySeries&&f.labelBySeries.attr("aria-hidden",!0)})})},c.prototype.onChartRender=function(){this.chart.series.forEach(function(f){(f.options.accessibility&&f.options.accessibility.enabled)!==!1&&f.visible?A(f):E(f)})},c.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},c.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},c}(G);return P}),et(_,"Accessibility/Components/ZoomComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(y,c){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,c)},function(y,c){function f(){this.constructor=y}Z(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),F=B.unhideChartElementFromAT,I=X.getFakeMouseEvent,E=$.attr,A=$.pick,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.focusedMapNavButtonIx=-1,f}return V(c,y),c.prototype.init=function(){var f=this,m=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(u){f.addEvent(m,u,function(){f.updateProxyOverlays()})})},c.prototype.onChartUpdate=function(){var f=this.chart,m=this;f.mapNavigation&&f.mapNavigation.navButtons.forEach(function(u,v){F(f,u.element),m.setMapNavButtonAttrs(u.element,"accessibility.zoom.mapZoom"+(v?"Out":"In"))})},c.prototype.setMapNavButtonAttrs=function(f,m){var u=this.chart,v=u.langFormat(m,{chart:u});E(f,{tabindex:-1,role:"button","aria-label":v})},c.prototype.onChartRender=function(){this.updateProxyOverlays()},c.prototype.updateProxyOverlays=function(){var f=this.chart;if(this.proxyProvider.clearGroup("zoom"),f.resetZoomButton&&this.createZoomProxyButton(f.resetZoomButton,"resetZoomProxyButton",f.langFormat("accessibility.zoom.resetZoomButton",{chart:f})),f.drillUpButton&&f.breadcrumbs&&f.breadcrumbs.list){var m=f.breadcrumbs.list[f.breadcrumbs.list.length-1];this.createZoomProxyButton(f.drillUpButton,"drillUpProxyButton",f.langFormat("accessibility.drillUpButton",{chart:f,buttonText:f.breadcrumbs.getButtonText(m)}))}},c.prototype.createZoomProxyButton=function(f,m,u){this[m]=this.proxyProvider.addProxyElement("zoom",{click:f},{"aria-label":u,tabindex:-1})},c.prototype.getMapZoomNavigation=function(){var f=this.keyCodes,m=this.chart,u=this;return new U(m,{keyCodeMap:[[[f.up,f.down,f.left,f.right],function(v){return u.onMapKbdArrow(this,v)}],[[f.tab],function(v,S){return u.onMapKbdTab(this,S)}],[[f.space,f.enter],function(){return u.onMapKbdClick(this)}]],validate:function(){return function(v){return!!(v.mapView&&v.mapNavigation&&v.mapNavigation.navButtons.length)}(m)},init:function(v){return u.onMapNavInit(v)}})},c.prototype.onMapKbdArrow=function(f,m){var u=this.chart,v=this.keyCodes,S=u.container,M=m===v.up||m===v.down,x=m===v.left||m===v.up?1:-1,p=(M?u.plotHeight:u.plotWidth)/10*x,g=10*Math.random(),r={x:S.offsetLeft+u.plotLeft+u.plotWidth/2+g,y:S.offsetTop+u.plotTop+u.plotHeight/2+g},a=M?{x:r.x,y:r.y+p}:{x:r.x+p,y:r.y};return[I("mousedown",r),I("mousemove",a),I("mouseup",a)].forEach(function(t){return S.dispatchEvent(t)}),f.response.success},c.prototype.onMapKbdTab=function(f,m){var u=this.chart,v=f.response,S=m.shiftKey,M=S&&!this.focusedMapNavButtonIx||!S&&this.focusedMapNavButtonIx;if(u.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),M)return u.mapView&&u.mapView.zoomBy(),v[S?"prev":"next"];this.focusedMapNavButtonIx+=S?-1:1;var x=u.mapNavigation.navButtons[this.focusedMapNavButtonIx];return u.setFocusToElement(x.box,x.element),x.setState(2),v.success},c.prototype.onMapKbdClick=function(f){var m=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(m),f.response.success},c.prototype.onMapNavInit=function(f){var m=this.chart,u=m.mapNavigation.navButtons[0],v=m.mapNavigation.navButtons[1],S=f>0?u:v;m.setFocusToElement(S.box,S.element),S.setState(2),this.focusedMapNavButtonIx=f>0?0:1},c.prototype.simpleButtonNavigation=function(f,m,u){var v=this.keyCodes,S=this,M=this.chart;return new U(M,{keyCodeMap:[[[v.tab,v.up,v.down,v.left,v.right],function(x,p){var g=x===v.tab&&p.shiftKey||x===v.left||x===v.up;return this.response[g?"prev":"next"]}],[[v.space,v.enter],function(){var x=u(this,M);return A(x,this.response.success)}]],validate:function(){return M[f]&&M[f].box&&S[m].buttonElement},init:function(){M.setFocusToElement(M[f].box,S[m].buttonElement)}})},c.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(f,m){m.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(f,m){return m.drillUp(),f.response.prev}),this.getMapZoomNavigation()]},c}(G);return P}),et(_,"Accessibility/HighContrastMode.js",[_["Core/Globals.js"]],function(G){var B=G.doc,X=G.isMS,U=G.win;return{isHighContrastModeActive:function(){var $=/(Edg)/.test(U.navigator.userAgent);if(U.matchMedia&&$)return U.matchMedia("(-ms-high-contrast: active)").matches;if(X&&U.getComputedStyle){var Z=B.createElement("div");Z.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),B.body.appendChild(Z);var V=(Z.currentStyle||U.getComputedStyle(Z)).backgroundImage;return B.body.removeChild(Z),V==="none"}return U.matchMedia&&U.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function($){$.highContrastModeActive=!0;var Z=$.options.accessibility.highContrastTheme;$.update(Z,!1),$.series.forEach(function(V){var F=Z.plotOptions[V.type]||{};V.update({color:F.color||"windowText",colors:[F.color||"windowText"],borderColor:F.borderColor||"window"}),V.points.forEach(function(I){I.options&&I.options.color&&I.update({color:F.color||"windowText",borderColor:F.borderColor||"window"},!1)})}),$.redraw()}}}),et(_,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),et(_,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}}),et(_,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}}),et(_,"Accessibility/Options/DeprecatedOptions.js",[_["Core/Utilities.js"]],function(G){var B=G.error,X=G.pick;function U(Z,V,F){for(var I,E=Z,A=0;A<V.length-1;++A)E=E[I=V[A]]=X(E[I],{});E[V[V.length-1]]=F}function $(Z,V,F,I){function E(y,c){return c.reduce(function(f,m){return f[m]},y)}var A=E(Z.options,V),P=E(Z.options,F);Object.keys(I).forEach(function(y){var c,f=A[y];f!==void 0&&(U(P,I[y],f),B(32,!1,Z,((c={})[V.join(".")+"."+y]=F.join(".")+"."+I[y].join("."),c)))})}return function(Z){(function(V){var F=V.options.chart,I=V.options.accessibility||{};["description","typeDescription"].forEach(function(E){var A;F[E]&&(I[E]=F[E],B(32,!1,V,((A={})["chart.".concat(E)]="use accessibility.".concat(E),A)))})})(Z),function(V){V.axes.forEach(function(F){var I=F.options;I&&I.description&&(I.accessibility=I.accessibility||{},I.accessibility.description=I.description,B(32,!1,V,{"axis.description":"use axis.accessibility.description"}))})}(Z),Z.series&&function(V){var F={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};V.series.forEach(function(I){Object.keys(F).forEach(function(E){var A,P=I.options[E];E==="accessibility.pointDescriptionFormatter"&&(P=I.options.accessibility&&I.options.accessibility.pointDescriptionFormatter),P!==void 0&&(U(I.options,F[E],E==="skipKeyboardNavigation"?!P:P),B(32,!1,V,((A={})["series.".concat(E)]="series."+F[E].join("."),A)))})})}(Z),function(V){$(V,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]})}(Z),function(V){$(V,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(Z),function(V){$(V,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}(Z)}}),et(_,"Accessibility/Accessibility.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/A11yI18n.js"],_["Accessibility/Components/ContainerComponent.js"],_["Accessibility/FocusBorder.js"],_["Accessibility/Components/InfoRegionsComponent.js"],_["Accessibility/KeyboardNavigation.js"],_["Accessibility/Components/LegendComponent.js"],_["Accessibility/Components/MenuComponent.js"],_["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],_["Accessibility/ProxyProvider.js"],_["Accessibility/Components/RangeSelectorComponent.js"],_["Accessibility/Components/SeriesComponent/SeriesComponent.js"],_["Accessibility/Components/ZoomComponent.js"],_["Accessibility/HighContrastMode.js"],_["Accessibility/HighContrastTheme.js"],_["Accessibility/Options/A11yDefaults.js"],_["Accessibility/Options/LangDefaults.js"],_["Accessibility/Options/DeprecatedOptions.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P,y,c,f,m,u,v,S,M,x){var p=G.defaultOptions,g=B.doc,r=X.addEvent,a=X.extend,t=X.fireEvent,i=X.merge,o=U.removeElement,e=function(){function s(n){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(n)}return s.prototype.init=function(n){if(this.chart=n,!g.addEventListener||!n.renderer.isSVG)return this.zombie=!0,this.components={},void n.renderTo.setAttribute("aria-hidden",!0);x(n),this.proxyProvider=new y(this.chart),this.initComponents(),this.keyboardNavigation=new I(n,this.components)},s.prototype.initComponents=function(){var n=this.chart,h=this.proxyProvider,b=n.options.accessibility;this.components={container:new Z,infoRegions:new F,legend:new E,chartMenu:new A,rangeSelector:new c,series:new f,zoom:new m},b.customComponents&&a(this.components,b.customComponents);var k=this.components;this.getComponentOrder().forEach(function(D){k[D].initBase(n,h),k[D].init()})},s.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var n=Object.keys(this.components).filter(function(h){return h!=="series"});return["series"].concat(n)},s.prototype.update=function(){var n=this.components,h=this.chart,b=h.options.accessibility;t(h,"beforeA11yUpdate"),h.types=this.getChartTypes();var k=b.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(k),this.getComponentOrder().forEach(function(D){n[D].onChartUpdate(),t(h,"afterA11yComponentUpdate",{name:D,component:n[D]})}),this.keyboardNavigation.update(k),!h.highContrastModeActive&&u.isHighContrastModeActive()&&u.setHighContrastTheme(h),t(h,"afterA11yUpdate",{accessibility:this})},s.prototype.destroy=function(){var n=this.chart||{},h=this.components;Object.keys(h).forEach(function(b){h[b].destroy(),h[b].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),n.announcerContainer&&o(n.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),n.renderTo&&n.renderTo.setAttribute("aria-hidden",!0),n.focusElement&&n.focusElement.removeFocusBorder()},s.prototype.getChartTypes=function(){var n={};return this.chart.series.forEach(function(h){n[h.type]=1}),Object.keys(n)},s}();return function(s){var n=[];function h(){this.accessibility&&this.accessibility.destroy()}function b(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var C=this.accessibility;C&&!C.zombie&&(C.proxyProvider.updateProxyElementPositions(),C.getComponentOrder().forEach(function(T){C.components[T].onChartRender()}))}function k(C){var T=C.options.accessibility;T&&(T.customComponents&&(this.options.accessibility.customComponents=T.customComponents,delete T.customComponents),i(!0,this.options.accessibility,T),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function D(){var C=this.accessibility,T=this.options.accessibility;T&&T.enabled?C&&!C.zombie?C.update():(this.accessibility=C=new s(this),C&&!C.zombie&&C.update()):C?(C.destroy&&C.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function d(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}s.i18nFormat=$.i18nFormat,s.compose=function(C,T,N,z,L,O){I.compose(C),P.compose(z),E.compose(C,T),A.compose(C),f.compose(C,N,z),$.compose(C),V.compose(C,L),O&&c.compose(C,O),n.indexOf(C)===-1&&(n.push(C),C.prototype.updateA11yEnabled=D,r(C,"destroy",h),r(C,"render",b),r(C,"update",k),["addSeries","init"].forEach(function(j){r(C,j,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(j){r(C,j,function(){var Y=this.accessibility;Y&&!Y.zombie&&Y.update()})})),n.indexOf(N)===-1&&(n.push(N),r(N,"update",d)),n.indexOf(z)===-1&&(n.push(z),["update","updatedData","remove"].forEach(function(j){r(z,j,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(e||(e={})),i(!0,p,S,{accessibility:{highContrastTheme:v},lang:M}),e}),et(_,"masters/modules/accessibility.src.js",[_["Core/Globals.js"],_["Accessibility/Accessibility.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(G,B,X,U,$,Z,V){var F=G;F.i18nFormat=B.i18nFormat,F.A11yChartUtilities=U,F.A11yHTMLUtilities=$,F.AccessibilityComponent=X,F.KeyboardNavigationHandler=Z,F.SeriesAccessibilityDescriber=V,B.compose(F.Chart,F.Legend,F.Point,F.Series,F.SVGElement,F.RangeSelector)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},5118:(it,rt,st)=>{st.d(rt,{A:()=>E});var ht=st(6956),ct=st(4089),pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,_=st(3269);function et(A,P){if(typeof A!="function"||P!=null&&typeof P!="function")throw new TypeError("Expected a function");var y=function(){var c=arguments,f=P?P.apply(this,c):c[0],m=y.cache;if(m.has(f))return m.get(f);var u=A.apply(this,c);return y.cache=m.set(f,u)||m,u};return y.cache=new(et.Cache||_.A),y}et.Cache=_.A;var G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/\\(\\)?/g;const X=(U=et(function(A){var P=[];return A.charCodeAt(0)===46&&P.push(""),A.replace(G,function(y,c,f,m){P.push(f?m.replace(B,"$1"):c||y)}),P},function(A){return $.size===500&&$.clear(),A}),$=U.cache,U);var U,$,Z=st(3516),V=Z.A?Z.A.prototype:void 0,F=V?V.toString:void 0;const I=function A(P){if(typeof P=="string")return P;if((0,ht.A)(P))return function(c,f){for(var m=-1,u=c==null?0:c.length,v=Array(u);++m<u;)v[m]=f(c[m],m,c);return v}(P,A)+"";if((0,ct.A)(P))return F?F.call(P):"";var y=P+"";return y=="0"&&1/P==-1/0?"-0":y},E=function(A,P){return(0,ht.A)(A)?A:function(y,c){if((0,ht.A)(y))return!1;var f=typeof y;return!(f!="number"&&f!="symbol"&&f!="boolean"&&y!=null&&!(0,ct.A)(y))||ft.test(y)||!pt.test(y)||c!=null&&y in Object(c)}(A,P)?[A]:X(function(y){return y==null?"":I(y)}(A))}},5134:function(it,rt,st){var ht,ct,pt;ct=typeof window!="undefined"?window:this,pt=function(ft){var _={};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}return et(_,"Core/Globals.js",[],function(){var G;return function(B){B.SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="10.3.3",B.win=ft!==void 0?ft:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.userAgent.indexOf("Chrome")!==-1,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&parseInt(B.userAgent.split("Firefox/")[1],10)<4,B.hasTouch=!!B.win.TouchEvent,B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){var X=!1;if(!B.isMS){var U=Object.defineProperty({},"passive",{get:function(){X=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,U),B.win.removeEventListener("testPassive",B.noop,U))}return X}(),B.charts=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0}(G||(G={})),G}),et(_,"Core/Utilities.js",[_["Core/Globals.js"]],function(G){var B=G.charts,X=G.doc,U=G.win;function $(e,s,n,h){var b=s?"Highcharts error":"Highcharts warning";e===32&&(e=b+": Deprecated member");var k=P(e),D=k?b+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(h!==void 0){var d="";k&&(D+="?"),p(h,function(C,T){d+=`
|
|
3
|
+
- `.concat(T,": ").concat(C),k&&(D+=encodeURI(T)+"="+encodeURI(C))}),D+=d}r(G,"displayError",{chart:n,code:e,message:D,params:h},function(){if(s)throw new Error(D);U.console&&$.messages.indexOf(D)===-1&&console.warn(D)}),$.messages.push(D)}function Z(e,s){return parseInt(e,s||10)}function V(e){return typeof e=="string"}function F(e){var s=Object.prototype.toString.call(e);return s==="[object Array]"||s==="[object Array Iterator]"}function I(e,s){return!(!e||typeof e!="object"||s&&F(e))}function E(e){return I(e)&&typeof e.nodeType=="number"}function A(e){var s=e&&e.constructor;return!(!I(e,!0)||E(e)||!s||!s.name||s.name==="Object")}function P(e){return typeof e=="number"&&!isNaN(e)&&e<1/0&&e>-1/0}function y(e){return e!=null}function c(e,s,n){var h,b=V(s)&&!y(n),k=function(D,d){y(D)?e.setAttribute(d,D):b?(h=e.getAttribute(d))||d!=="class"||(h=e.getAttribute(d+"Name")):e.removeAttribute(d)};return V(s)?k(n,s):p(s,k),h}function f(e,s){var n;for(n in e||(e={}),s)e[n]=s[n];return e}function m(){for(var e=arguments,s=e.length,n=0;n<s;n++){var h=e[n];if(h!=null)return h}}function u(e,s){G.isMS&&!G.svg&&s&&y(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),f(e.style,s)}function v(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function S(e,s){return e>1e14?e:parseFloat(e.toPrecision(s||14))}(function(e){e.messages=[]})($||($={})),Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var M,x=Array.prototype.find?function(e,s){return e.find(s)}:function(e,s){var n,h=e.length;for(n=0;n<h;n++)if(s(e[n],n))return e[n]};function p(e,s,n){for(var h in e)Object.hasOwnProperty.call(e,h)&&s.call(n||e[h],e[h],h,e)}function g(e,s,n){function h(C,T){var N=e.removeEventListener||G.removeEventListenerPolyfill;N&&N.call(e,C,T,!1)}function b(C){var T,N;e.nodeName&&(s?(T={})[s]=!0:T=C,p(T,function(z,L){if(C[L])for(N=C[L].length;N--;)h(L,C[L][N].fn)}))}var k=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(k,"hcEvents")){var D=k.hcEvents;if(s){var d=D[s]||[];n?(D[s]=d.filter(function(C){return n!==C.fn}),h(s,n)):(b(D),D[s]=[])}else b(D),delete k.hcEvents}}function r(e,s,n,h){var b;if(n=n||{},X.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==G))(b=X.createEvent("Events")).initEvent(s,!0,!0),n=f(b,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(s,n);else if(e.hcEvents){n.target||f(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:s});for(var k=[],D=e,d=!1;D.hcEvents;)Object.hasOwnProperty.call(D,"hcEvents")&&D.hcEvents[s]&&(k.length&&(d=!0),k.unshift.apply(k,D.hcEvents[s])),D=Object.getPrototypeOf(D);d&&k.sort(function(C,T){return C.order-T.order}),k.forEach(function(C){C.fn.call(e,n)===!1&&n.preventDefault()})}h&&!n.defaultPrevented&&h.call(e,n)}p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,s){G[s]=function(n){var h;return $(32,!1,void 0,((h={})["Highcharts.".concat(s)]="use Array.".concat(e),h)),Array.prototype[e].apply(n,[].slice.call(arguments,1))}});var a,t,i=(a=Math.random().toString(36).substring(2,9)+"-",t=0,function(){return"highcharts-"+(M?"":a)+t++});U.jQuery;var o={addEvent:function(e,s,n,h){h===void 0&&(h={});var b=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(b,"hcEvents")||(b.hcEvents={});var k=b.hcEvents;G.Point&&e instanceof G.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var D=e.addEventListener||G.addEventListenerPolyfill;D&&D.call(e,s,n,!!G.supportsPassiveEvents&&{passive:h.passive===void 0?s.indexOf("touch")!==-1:h.passive,capture:!1}),k[s]||(k[s]=[]);var d={fn:n,order:typeof h.order=="number"?h.order:1/0};return k[s].push(d),k[s].sort(function(C,T){return C.order-T.order}),function(){g(e,s,n)}},arrayMax:function(e){for(var s=e.length,n=e[0];s--;)e[s]>n&&(n=e[s]);return n},arrayMin:function(e){for(var s=e.length,n=e[0];s--;)e[s]<n&&(n=e[s]);return n},attr:c,clamp:function(e,s,n){return e>s?e<n?e:n:s},cleanRecursively:function e(s,n){var h={};return p(s,function(b,k){var D;I(s[k],!0)&&!s.nodeType&&n[k]?(D=e(s[k],n[k]),Object.keys(D).length&&(h[k]=D)):(I(s[k])||s[k]!==n[k]||k in s&&!(k in n))&&(h[k]=s[k])}),h},clearTimeout:function(e){y(e)&&clearTimeout(e)},correctFloat:S,createElement:function(e,s,n,h,b){var k=X.createElement(e);return s&&f(k,s),b&&u(k,{padding:"0",border:"none",margin:"0"}),n&&u(k,n),h&&h.appendChild(k),k},css:u,defined:y,destroyObjectProperties:function(e,s){p(e,function(n,h){n&&n!==s&&n.destroy&&n.destroy(),delete e[h]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,s){for(var n=e.length;n--;)if(e[n]===s){e.splice(n,1);break}},error:$,extend:f,extendClass:function(e,s){var n=function(){};return f(n.prototype=new e,s),n},find:x,fireEvent:r,getMagnitude:v,getNestedProperty:function(e,s){for(var n=e.split(".");n.length&&y(s);){var h=n.shift();if(h===void 0||h==="__proto__")return;var b=s[h];if(!y(b)||typeof b=="function"||typeof b.nodeType=="number"||b===U)return;s=b}return s},getStyle:function e(s,n,h){var b,k=G.getStyle||e;if(n==="width"){var D=Math.min(s.offsetWidth,s.scrollWidth),d=s.getBoundingClientRect&&s.getBoundingClientRect().width;return d<D&&d>=D-1&&(D=Math.floor(d)),Math.max(0,D-(k(s,"padding-left",!0)||0)-(k(s,"padding-right",!0)||0))}if(n==="height")return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(k(s,"padding-top",!0)||0)-(k(s,"padding-bottom",!0)||0));U.getComputedStyle||$(27,!0);var C=U.getComputedStyle(s,void 0);return C&&(b=C.getPropertyValue(n),m(h,n!=="opacity")&&(b=Z(b))),b},inArray:function(e,s,n){return $(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(e,n)},isArray:F,isClass:A,isDOMElement:E,isFunction:function(e){return typeof e=="function"},isNumber:P,isObject:I,isString:V,keys:function(e){return $(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,s=arguments,n={},h=function(k,D){return typeof k!="object"&&(k={}),p(D,function(d,C){C!=="__proto__"&&C!=="constructor"&&(!I(d,!0)||A(d)||E(d)?k[C]=D[C]:k[C]=h(k[C]||{},d))}),k};s[0]===!0&&(n=s[1],s=Array.prototype.slice.call(s,2));var b=s.length;for(e=0;e<b;e++)n=h(n,s[e]);return n},normalizeTickInterval:function(e,s,n,h,b){var k,D=e,d=e/(n=m(n,v(e)));for(s||(s=b?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],h===!1&&(n===1?s=s.filter(function(C){return C%1==0}):n<=.1&&(s=[1/n]))),k=0;k<s.length&&(D=s[k],!(b&&D*n>=e||!b&&d<=(s[k]+(s[k+1]||s[k]))/2));k++);return S(D*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:p,offset:function(e){var s=X.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(U.pageYOffset||s.scrollTop)-(s.clientTop||0),left:n.left+(U.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:n.width,height:n.height}},pad:function(e,s,n){return new Array((s||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:m,pInt:Z,relativeLength:function(e,s,n){return/%$/.test(e)?s*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:g,splat:function(e){return F(e)?e:[e]},stableSort:function(e,s){var n,h,b=e.length;for(h=0;h<b;h++)e[h].safeI=h;for(e.sort(function(k,D){return(n=s(k,D))===0?k.safeI-D.safeI:n}),h=0;h<b;h++)delete e[h].safeI},syncTimeout:function(e,s,n){return s>0?setTimeout(e,s,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:i,useSerialIds:function(e){return M=m(e,M)},wrap:function(e,s,n){var h=e[s];e[s]=function(){var b=arguments,k=this;return n.apply(this,[function(){return h.apply(k,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};return o}),et(_,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),et(_,"Core/Color/Color.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=B.isNumber,U=B.merge,$=B.pInt;return function(){function Z(V){this.rgba=[NaN,NaN,NaN,NaN],this.input=V;var F=G.Color;return F&&F!==Z?new F(V):this instanceof Z?void this.init(V):new Z(V)}return Z.parse=function(V){return V?new Z(V):Z.None},Z.prototype.init=function(V){var F,I,E,A;if(typeof V=="object"&&V.stops!==void 0)this.stops=V.stops.map(function(c){return new Z(c[1])});else if(typeof V=="string"){if(this.input=V=Z.names[V.toLowerCase()]||V,V.charAt(0)==="#"){var P=V.length,y=parseInt(V.substr(1),16);P===7?I=[(16711680&y)>>16,(65280&y)>>8,255&y,1]:P===4&&(I=[(3840&y)>>4|(3840&y)>>8,(240&y)>>4|240&y,(15&y)<<4|15&y,1])}if(!I)for(E=Z.parsers.length;E--&&!I;)(F=(A=Z.parsers[E]).regex.exec(V))&&(I=A.parse(F))}I&&(this.rgba=I)},Z.prototype.get=function(V){var F=this.input,I=this.rgba;if(typeof F=="object"&&this.stops!==void 0){var E=U(F);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(A,P){E.stops[P]=[E.stops[P][0],A.get(V)]}),E}return I&&X(I[0])?V==="rgb"||!V&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":V==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":F},Z.prototype.brighten=function(V){var F=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(V)});else if(X(V)&&V!==0)for(var I=0;I<3;I++)F[I]+=$(255*V),F[I]<0&&(F[I]=0),F[I]>255&&(F[I]=255);return this},Z.prototype.setOpacity=function(V){return this.rgba[3]=V,this},Z.prototype.tweenTo=function(V,F){var I=this.rgba,E=V.rgba;if(!X(I[0])||!X(E[0]))return V.input||"none";var A=E[3]!==1||I[3]!==1;return(A?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-F))+","+Math.round(E[1]+(I[1]-E[1])*(1-F))+","+Math.round(E[2]+(I[2]-E[2])*(1-F))+(A?","+(E[3]+(I[3]-E[3])*(1-F)):"")+")"},Z.names={white:"#ffffff",black:"#000000"},Z.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(V){return[$(V[1]),$(V[2]),$(V[3]),parseFloat(V[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),1]}}],Z.None=new Z(""),Z}()}),et(_,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),et(_,"Core/Time.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.win,U=B.defined,$=B.error,Z=B.extend,V=B.isObject,F=B.merge,I=B.objectEach,E=B.pad,A=B.pick,P=B.splat,y=B.timeUnits,c=G.isSafari&&X.Intl&&X.Intl.DateTimeFormat.prototype.formatRange,f=G.isSafari&&X.Intl&&!X.Intl.DateTimeFormat.prototype.formatRange,m=function(){function u(v){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=X.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(v)}return u.prototype.get=function(v,S){if(this.variableTimezone||this.timezoneOffset){var M=S.getTime(),x=M-this.getTimezoneOffset(S);S.setTime(x);var p=S["getUTC"+v]();return S.setTime(M),p}return this.useUTC?S["getUTC"+v]():S["get"+v]()},u.prototype.set=function(v,S,M){if(this.variableTimezone||this.timezoneOffset){if(v==="Milliseconds"||v==="Seconds"||v==="Minutes"&&this.getTimezoneOffset(S)%36e5==0)return S["setUTC"+v](M);var x=this.getTimezoneOffset(S),p=S.getTime()-x;S.setTime(p),S["setUTC"+v](M);var g=this.getTimezoneOffset(S);return p=S.getTime()+g,S.setTime(p)}return this.useUTC||c&&v==="FullYear"?S["setUTC"+v](M):S["set"+v](M)},u.prototype.update=function(v){v===void 0&&(v={});var S=A(v.useUTC,!0);this.options=v=F(!0,this.options,v),this.Date=v.Date||X.Date||Date,this.useUTC=S,this.timezoneOffset=S&&v.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=S&&!(!v.getTimezoneOffset&&!v.timezone)},u.prototype.makeTime=function(v,S,M,x,p,g){var r,a,t;return this.useUTC?(r=this.Date.UTC.apply(0,arguments),r+=a=this.getTimezoneOffset(r),a!==(t=this.getTimezoneOffset(r))?r+=t-a:a-36e5!==this.getTimezoneOffset(r-36e5)||f||(r-=36e5)):r=new this.Date(v,S,A(M,1),A(x,0),A(p,0),A(g,0)).getTime(),r},u.prototype.timezoneOffsetFunction=function(){var v=this,S=this.options,M=S.getTimezoneOffset,x=S.moment||X.moment;if(!this.useUTC)return function(p){return 6e4*new Date(p.toString()).getTimezoneOffset()};if(S.timezone){if(x)return function(p){return 6e4*-x.tz(p,S.timezone).utcOffset()};$(25)}return this.useUTC&&M?function(p){return 6e4*M(p.valueOf())}:function(){return 6e4*(v.timezoneOffset||0)}},u.prototype.dateFormat=function(v,S,M){if(!U(S)||isNaN(S))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";v=A(v,"%Y-%m-%d %H:%M:%S");var x=this,p=new this.Date(S),g=this.get("Hours",p),r=this.get("Day",p),a=this.get("Date",p),t=this.get("Month",p),i=this.get("FullYear",p),o=G.defaultOptions.lang,e=o&&o.weekdays,s=o&&o.shortWeekdays,n=Z({a:s?s[r]:e[r].substr(0,3),A:e[r],d:E(a),e:E(a,2," "),w:r,b:o.shortMonths[t],B:o.months[t],m:E(t+1),o:t+1,y:i.toString().substr(2,2),Y:i,H:E(g),k:g,I:E(g%12||12),l:g%12||12,M:E(this.get("Minutes",p)),p:g<12?"AM":"PM",P:g<12?"am":"pm",S:E(p.getSeconds()),L:E(Math.floor(S%1e3),3)},G.dateFormats);return I(n,function(h,b){for(;v.indexOf("%"+b)!==-1;)v=v.replace("%"+b,typeof h=="function"?h.call(x,S):h)}),M?v.substr(0,1).toUpperCase()+v.substr(1):v},u.prototype.resolveDTLFormat=function(v){return V(v,!0)?v:{main:(v=P(v))[0],from:v[1],to:v[2]}},u.prototype.getTimeTicks=function(v,S,M,x){var p,g,r,a,t=this,i=t.Date,o=[],e={},s=new i(S),n=v.unitRange,h=v.count||1;if(x=A(x,1),U(S)){t.set("Milliseconds",s,n>=y.second?0:h*Math.floor(t.get("Milliseconds",s)/h)),n>=y.second&&t.set("Seconds",s,n>=y.minute?0:h*Math.floor(t.get("Seconds",s)/h)),n>=y.minute&&t.set("Minutes",s,n>=y.hour?0:h*Math.floor(t.get("Minutes",s)/h)),n>=y.hour&&t.set("Hours",s,n>=y.day?0:h*Math.floor(t.get("Hours",s)/h)),n>=y.day&&t.set("Date",s,n>=y.month?1:Math.max(1,h*Math.floor(t.get("Date",s)/h))),n>=y.month&&(t.set("Month",s,n>=y.year?0:h*Math.floor(t.get("Month",s)/h)),g=t.get("FullYear",s)),n>=y.year&&(g-=g%h,t.set("FullYear",s,g)),n===y.week&&(a=t.get("Day",s),t.set("Date",s,t.get("Date",s)-a+x+(a<x?-7:0))),g=t.get("FullYear",s);var b=t.get("Month",s),k=t.get("Date",s),D=t.get("Hours",s);S=s.getTime(),!t.variableTimezone&&t.useUTC||!U(M)||(r=M-S>4*y.month||t.getTimezoneOffset(S)!==t.getTimezoneOffset(M));var d=s.getTime();for(p=1;d<M;)o.push(d),n===y.year?d=t.makeTime(g+p*h,0):n===y.month?d=t.makeTime(g,b+p*h):!r||n!==y.day&&n!==y.week?r&&n===y.hour&&h>1?d=t.makeTime(g,b,k,D+p*h):d+=n*h:d=t.makeTime(g,b,k+p*h*(n===y.day?1:7)),p++;o.push(d),n<=y.hour&&o.length<1e4&&o.forEach(function(C){C%18e5==0&&t.dateFormat("%H%M%S%L",C)==="000000000"&&(e[C]="day")})}return o.info=Z(v,{higherRanks:e,totalRange:n*h}),o},u.prototype.getDateFormat=function(v,S,M,x){var p=this.dateFormat("%m-%d %H:%M:%S.%L",S),g="01-01 00:00:00.000",r={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",t=a;for(a in y){if(v===y.week&&+this.dateFormat("%w",S)===M&&p.substr(6)===g.substr(6)){a="week";break}if(y[a]>v){a=t;break}if(r[a]&&p.substr(r[a])!==g.substr(r[a]))break;a!=="week"&&(t=a)}return this.resolveDTLFormat(x[a]).main},u}();return m}),et(_,"Core/Defaults.js",[_["Core/Chart/ChartDefaults.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Color/Palettes.js"],_["Core/Time.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=B.parse,F=X.isTouchDevice,I=X.svg,E=Z.merge,A={colors:U.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],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:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:I,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:F?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:V("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};A.chart.styledMode=!1;var P=new $(E(A.global,A.time));return{defaultOptions:A,defaultTime:P,getOptions:function(){return A},setOptions:function(y){return E(!0,A,y),(y.time||y.global)&&(X.time?X.time.update(E(A.global,A.time,y.global,y.time)):X.time=P),A}}}),et(_,"Core/Animation/Fx.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.parse,$=B.win,Z=X.isNumber,V=X.objectEach,F=function(){function I(E,A,P){this.pos=NaN,this.options=A,this.elem=E,this.prop=P}return I.prototype.dSetter=function(){var E=this.paths,A=E&&E[0],P=E&&E[1],y=this.now||0,c=[];if(y!==1&&A&&P)if(A.length===P.length&&y<1)for(var f=0;f<P.length;f++){for(var m=A[f],u=P[f],v=[],S=0;S<u.length;S++){var M=m[S],x=u[S];Z(M)&&Z(x)&&(u[0]!=="A"||S!==4&&S!==5)?v[S]=M+y*(x-M):v[S]=x}c.push(v)}else c=P;else c=this.toD||[];this.elem.attr("d",c,void 0,!0)},I.prototype.update=function(){var E=this.elem,A=this.prop,P=this.now,y=this.options.step;this[A+"Setter"]?this[A+"Setter"]():E.attr?E.element&&E.attr(A,P,null,!0):E.style[A]=P+this.unit,y&&y.call(E,P,this)},I.prototype.run=function(E,A,P){var y=this,c=y.options,f=function(v){return!f.stopped&&y.step(v)},m=$.requestAnimationFrame||function(v){setTimeout(v,13)},u=function(){for(var v=0;v<I.timers.length;v++)I.timers[v]()||I.timers.splice(v--,1);I.timers.length&&m(u)};E!==A||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=E,this.end=A,this.unit=P,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&I.timers.push(f)===1&&m(u)):(delete c.curAnim[this.prop],c.complete&&Object.keys(c.curAnim).length===0&&c.complete.call(this.elem))},I.prototype.step=function(E){var A,P,y=+new Date,c=this.options,f=this.elem,m=c.complete,u=c.duration,v=c.curAnim;return f.attr&&!f.element?A=!1:E||y>=u+this.startTime?(this.now=this.end,this.pos=1,this.update(),v[this.prop]=!0,P=!0,V(v,function(S){S!==!0&&(P=!1)}),P&&m&&m.call(f),A=!1):(this.pos=c.easing((y-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),A=!0),A},I.prototype.initPath=function(E,A,P){var y,c,f,m,u=E.startX,v=E.endX,S=P.slice(),M=E.isArea,x=M?2:1,p=A&&A.slice();if(!p)return[S,S];function g(a,t){for(;a.length<c;){var i=a[0],o=t[c-a.length];if(o&&i[0]==="M"&&(o[0]==="C"?a[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:a[0]=["L",i[1],i[2]]),a.unshift(i),M){var e=a.pop();a.push(a[a.length-1],e)}}}function r(a,t){for(;a.length<c;){var i=a[Math.floor(a.length/x)-1].slice();if(i[0]==="C"&&(i[1]=i[5],i[2]=i[6]),M){var o=a[Math.floor(a.length/x)].slice();a.splice(a.length/2,0,i,o)}else a.push(i)}}if(u&&v&&v.length){for(f=0;f<u.length;f++){if(u[f]===v[0]){y=f;break}if(u[0]===v[v.length-u.length+f]){y=f,m=!0;break}if(u[u.length-1]===v[v.length-u.length+f]){y=u.length-f;break}}y===void 0&&(p=[])}return p.length&&Z(y)&&(c=S.length+y*x,m?(g(p,S),r(S)):(g(S,p),r(p))),[p,S]},I.prototype.fillSetter=function(){I.prototype.strokeSetter.apply(this,arguments)},I.prototype.strokeSetter=function(){this.elem.attr(this.prop,U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)},I.timers=[],I}();return F}),et(_,"Core/Animation/AnimationUtilities.js",[_["Core/Animation/Fx.js"],_["Core/Utilities.js"]],function(G,B){var X=B.defined,U=B.getStyle,$=B.isArray,Z=B.isNumber,V=B.isObject,F=B.merge,I=B.objectEach,E=B.pick;function A(c){return V(c)?F({duration:500,defer:0},c):{duration:c?500:0,defer:0}}function P(c,f){for(var m=G.timers.length;m--;)G.timers[m].elem!==c||f&&f!==G.timers[m].prop||(G.timers[m].stopped=!0)}var y={animate:function(c,f,m){var u,v,S,M,x="";V(m)||(m={duration:(M=arguments)[2],easing:M[3],complete:M[4]}),Z(m.duration)||(m.duration=400),m.easing=typeof m.easing=="function"?m.easing:Math[m.easing]||Math.easeInOutSine,m.curAnim=F(f),I(f,function(p,g){P(c,g),S=new G(c,m,g),v=void 0,g==="d"&&$(f.d)?(S.paths=S.initPath(c,c.pathArray,f.d),S.toD=f.d,u=0,v=1):c.attr?u=c.attr(g):(u=parseFloat(U(c,g))||0,g!=="opacity"&&(x="px")),v||(v=p),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),S.run(u,v,x)})},animObject:A,getDeferredAnimation:function(c,f,m){var u=A(f),v=m?[m]:c.series,S=0,M=0;return v.forEach(function(x){var p=A(x.options.animation);S=f&&X(f.defer)?u.defer:Math.max(S,p.duration+p.defer),M=Math.min(u.duration,p.duration)}),c.renderer.forExport&&(S=0),{defer:Math.max(0,S-M),duration:Math.min(S,M)}},setAnimation:function(c,f){f.renderer.globalAnimation=E(c,f.options.chart.animation,!0)},stop:P};return y}),et(_,"Core/Renderer/HTML/AST.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.SVG_NS,U=G.win,$=B.attr,Z=B.createElement,V=B.css,F=B.error,I=B.isFunction,E=B.isString,A=B.objectEach,P=B.splat,y=U.trustedTypes,c=y&&I(y.createPolicy)&&y.createPolicy("highcharts",{createHTML:function(u){return u}}),f=c?c.createHTML(""):"",m=function(){try{return!!new DOMParser().parseFromString(f,"text/html")}catch(u){return!1}}();return function(){function u(v){this.nodes=typeof v=="string"?this.parseMarkup(v):v}return u.filterUserAttributes=function(v){return A(v,function(S,M){var x=!0;u.allowedAttributes.indexOf(M)===-1&&(x=!1),["background","dynsrc","href","lowsrc","src"].indexOf(M)!==-1&&(x=E(S)&&u.allowedReferences.some(function(p){return S.indexOf(p)===0})),x||(F(33,!1,void 0,{"Invalid attribute in config":"".concat(M)}),delete v[M]),E(S)&&v[M]&&(v[M]=S.replace(/</g,"<"))}),v},u.parseStyle=function(v){return v.split(";").reduce(function(S,M){var x=M.split(":").map(function(g){return g.trim()}),p=x.shift();return p&&x.length&&(S[p.replace(/-([a-z])/g,function(g){return g[1].toUpperCase()})]=x.join(":")),S},{})},u.setElementHTML=function(v,S){v.innerHTML=u.emptyHTML,S&&new u(S).addToDOM(v)},u.prototype.addToDOM=function(v){return function S(M,x){var p;return P(M).forEach(function(g){var r,a=g.tagName,t=g.textContent?G.doc.createTextNode(g.textContent):void 0,i=u.bypassHTMLFiltering;if(a)if(a==="#text")r=t;else if(u.allowedTags.indexOf(a)!==-1||i){var o=a==="svg"?X:x.namespaceURI||X,e=G.doc.createElementNS(o,a),s=g.attributes||{};A(g,function(n,h){h!=="tagName"&&h!=="attributes"&&h!=="children"&&h!=="style"&&h!=="textContent"&&(s[h]=n)}),$(e,i?s:u.filterUserAttributes(s)),g.style&&V(e,g.style),t&&e.appendChild(t),S(g.children||[],e),r=e}else F(33,!1,void 0,{"Invalid tagName in config":a});r&&x.appendChild(r),p=r}),p}(this.nodes,v)},u.prototype.parseMarkup=function(v){var S,M=[];if(v=v.trim().replace(/ style=(["'])/g," data-style=$1"),m)S=new DOMParser().parseFromString(c?c.createHTML(v):v,"text/html");else{var x=Z("div");x.innerHTML=v,S={body:x}}var p=function(g,r){var a=g.nodeName.toLowerCase(),t={tagName:a};a==="#text"&&(t.textContent=g.textContent||"");var i=g.attributes;if(i){var o={};[].forEach.call(i,function(s){s.name==="data-style"?t.style=u.parseStyle(s.value):o[s.name]=s.value}),t.attributes=o}if(g.childNodes.length){var e=[];[].forEach.call(g.childNodes,function(s){p(s,e)}),e.length&&(t.children=e)}r.push(t)};return[].forEach.call(S.body.childNodes,function(g){return p(g,M)}),M},u.allowedAttributes=["aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],u.allowedReferences=["https://","http://","mailto:","/","../","./","#"],u.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],u.emptyHTML=f,u.bypassHTMLFiltering=!1,u}()}),et(_,"Core/FormatUtilities.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){var X=G.defaultOptions,U=G.defaultTime,$=B.getNestedProperty,Z=B.isNumber,V=B.pick,F=B.pInt;function I(E,A,P,y){var c,f;E=+E||0,A=+A;var m=X.lang,u=(E.toString().split(".")[1]||"").split("e")[0].length,v=E.toString().split("e"),S=A;A===-1?A=Math.min(u,20):Z(A)?A&&v[1]&&v[1]<0&&((f=A+ +v[1])>=0?(v[0]=(+v[0]).toExponential(f).split("e")[0],A=f):(v[0]=v[0].split(".")[0]||0,E=A<20?(v[0]*Math.pow(10,v[1])).toFixed(A):0,v[1]=0)):A=2;var M=(Math.abs(v[1]?v[0]:E)+Math.pow(10,-Math.max(A,u)-1)).toFixed(A),x=String(F(M)),p=x.length>3?x.length%3:0;return P=V(P,m.decimalPoint),y=V(y,m.thousandsSep),c=E<0?"-":"",c+=p?x.substr(0,p)+y:"",+v[1]<0&&!S?c="0":c+=x.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+y),A&&(c+=P+M.slice(-A)),v[1]&&+c!=0&&(c+="e"+v[1]),c}return{dateFormat:function(E,A,P){return U.dateFormat(E,A,P)},format:function(E,A,P){for(var y,c,f,m,u="{",v=!1,S=/f$/,M=/\.([0-9])/,x=X.lang,p=P&&P.time||U,g=P&&P.numberFormatter||I,r=[];E&&(m=E.indexOf(u))!==-1;){if(y=E.slice(0,m),v){if(c=y.split(":"),f=$(c.shift()||"",A),c.length&&typeof f=="number")if(y=c.join(":"),S.test(y)){var a=parseInt((y.match(M)||["","-1"])[1],10);f!==null&&(f=g(f,a,x.decimalPoint,y.indexOf(",")>-1?x.thousandsSep:""))}else f=p.dateFormat(y,f);r.push(f)}else r.push(y);E=E.slice(m+1),u=(v=!v)?"}":"{"}return r.push(E),r.join("")},numberFormat:I}}),et(_,"Core/Renderer/RendererUtilities.js",[_["Core/Utilities.js"]],function(G){var B,X=G.clamp,U=G.pick,$=G.stableSort;return function(Z){Z.distribute=function V(F,I,E){var A,P,y,c=F,f=c.reducedLen||I,m=function(M,x){return M.target-x.target},u=!0,v=[],S=0;for(A=F.length;A--;)S+=F[A].size;if(S>f){for($(F,function(M,x){return(x.rank||0)-(M.rank||0)}),A=0,S=0;S<=f;)S+=F[A].size,A++;v=F.splice(A-1,F.length)}for($(F,m),F=F.map(function(M){return{size:M.size,targets:[M.target],align:U(M.align,.5)}});u;){for(A=F.length;A--;)P=F[A],y=(Math.min.apply(0,P.targets)+Math.max.apply(0,P.targets))/2,P.pos=X(y-P.size*P.align,0,I-P.size);for(A=F.length,u=!1;A--;)A>0&&F[A-1].pos+F[A-1].size>F[A].pos&&(F[A-1].size+=F[A].size,F[A-1].targets=F[A-1].targets.concat(F[A].targets),F[A-1].align=.5,F[A-1].pos+F[A-1].size>I&&(F[A-1].pos=I-F[A-1].size),F.splice(A,1),u=!0)}return c.push.apply(c,v),A=0,F.some(function(M){var x=0;return(M.targets||[]).some(function(){return c[A].pos=M.pos+x,E!==void 0&&Math.abs(c[A].pos-c[A].target)>E?(c.slice(0,A+1).forEach(function(p){return delete p.pos}),c.reducedLen=(c.reducedLen||I)-.1*I,c.reducedLen>.1*I&&V(c,I,E),!0):(x+=c[A].size,A++,!1)})}),$(c,m),c}}(B||(B={})),B}),et(_,"Core/Renderer/SVG/SVGElement.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=G.animate,Z=G.animObject,V=G.stop,F=X.deg2rad,I=X.doc,E=X.svg,A=X.SVG_NS,P=X.win,y=U.addEvent,c=U.attr,f=U.createElement,m=U.css,u=U.defined,v=U.erase,S=U.extend,M=U.fireEvent,x=U.isArray,p=U.isFunction,g=U.isString,r=U.merge,a=U.objectEach,t=U.pick,i=U.pInt,o=U.syncTimeout,e=U.uniqueKey,s=function(){function n(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=A,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return n.prototype._defaultGetter=function(h){var b=t(this[h+"Value"],this[h],this.element?this.element.getAttribute(h):null,0);return/^[\-0-9\.]+$/.test(b)&&(b=parseFloat(b)),b},n.prototype._defaultSetter=function(h,b,k){k.setAttribute(b,h)},n.prototype.add=function(h){var b,k=this.renderer,D=this.element;return h&&(this.parentGroup=h),this.textStr!==void 0&&this.element.nodeName==="text"&&k.buildText(this),this.added=!0,(!h||h.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(h?h.element:k.box).appendChild(D),this.onAdd&&this.onAdd(),this},n.prototype.addClass=function(h,b){var k=b?"":this.attr("class")||"";return(h=(h||"").split(/ /g).reduce(function(D,d){return k.indexOf(d)===-1&&D.push(d),D},k?[k]:[]).join(" "))!==k&&this.attr("class",h),this},n.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},n.prototype.align=function(h,b,k){var D,d,C,T,N,z={},L=this.renderer,O=L.alignedObjects;h?(this.alignOptions=h,this.alignByTranslate=b,k&&!g(k)||(this.alignTo=C=k||"renderer",v(O,this),O.push(this),k=void 0)):(h=this.alignOptions,b=this.alignByTranslate,C=this.alignTo),k=t(k,L[C],C==="scrollablePlotBox"?L.plotBox:void 0,L);var j=h.align,Y=h.verticalAlign;return D=(k.x||0)+(h.x||0),d=(k.y||0)+(h.y||0),j==="right"?T=1:j==="center"&&(T=2),T&&(D+=(k.width-(h.width||0))/T),z[b?"translateX":"x"]=Math.round(D),Y==="bottom"?N=1:Y==="middle"&&(N=2),N&&(d+=(k.height-(h.height||0))/N),z[b?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](z),this.placed=!0,this.alignAttr=z,this},n.prototype.alignSetter=function(h){var b={left:"start",center:"middle",right:"end"};b[h]&&(this.alignValue=h,this.element.setAttribute("text-anchor",b[h]))},n.prototype.animate=function(h,b,k){var D=this,d=Z(t(b,this.renderer.globalAnimation,!0)),C=d.defer;return t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(d.duration=0),d.duration!==0?(k&&(d.complete=k),o(function(){D.element&&$(D,h,d)},C)):(this.attr(h,void 0,k||d.complete),a(h,function(T,N){d.step&&d.step.call(this,T,{prop:N,pos:1,elem:this})},this)),this},n.prototype.applyTextOutline=function(h){var b=this.element;h.indexOf("contrast")!==-1&&(h=h.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var k=h.split(" "),D=k[k.length-1],d=k[0];if(d&&d!=="none"&&X.svg){this.fakeTS=!0,d=d.replace(/(^[\d\.]+)(.*?)$/g,function(L,O,j){return 2*Number(O)+j}),this.removeTextOutline();var C=I.createElementNS(A,"tspan");c(C,{class:"highcharts-text-outline",fill:D,stroke:D,"stroke-width":d,"stroke-linejoin":"round"});var T=b.querySelector("textPath")||b;[].forEach.call(T.childNodes,function(L){var O=L.cloneNode(!0);O.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(j){return O.removeAttribute(j)}),C.appendChild(O)});var N=0;[].forEach.call(T.querySelectorAll("text tspan"),function(L){N+=Number(L.getAttribute("dy"))});var z=I.createElementNS(A,"tspan");z.textContent="",c(z,{x:Number(b.getAttribute("x")),dy:-N}),C.appendChild(z),T.insertBefore(C,T.firstChild)}},n.prototype.attr=function(h,b,k,D){var d,C,T,N,z=this.element,L=this.symbolCustomAttribs,O=this;return typeof h=="string"&&b!==void 0&&(d=h,(h={})[d]=b),typeof h=="string"?O=(this[h+"Getter"]||this._defaultGetter).call(this,h,z):(a(h,function(j,Y){T=!1,D||V(this,Y),this.symbolName&&L.indexOf(Y)!==-1&&(C||(this.symbolAttr(h),C=!0),T=!0),!this.rotation||Y!=="x"&&Y!=="y"||(this.doTransform=!0),T||((N=this[Y+"Setter"]||this._defaultSetter).call(this,j,Y,z),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(Y)&&this.updateShadows(Y,j,N))},this),this.afterSetters()),k&&k.call(this),O},n.prototype.clip=function(h){return this.attr("clip-path",h?"url("+this.renderer.url+"#"+h.id+")":"none")},n.prototype.crisp=function(h,b){var k=this;b=b||h.strokeWidth||0;var D=Math.round(b)%2/2;return h.x=Math.floor(h.x||k.x||0)+D,h.y=Math.floor(h.y||k.y||0)+D,h.width=Math.floor((h.width||k.width||0)-2*D),h.height=Math.floor((h.height||k.height||0)-2*D),u(h.strokeWidth)&&(h.strokeWidth=b),h},n.prototype.complexColor=function(h,b,k){var D,d,C,T,N,z,L,O,j,Y,H,W=this.renderer,q=[];M(this.renderer,"complexColor",{args:arguments},function(){if(h.radialGradient?d="radialGradient":h.linearGradient&&(d="linearGradient"),d){if(C=h[d],N=W.gradients,z=h.stops,j=k.radialReference,x(C)&&(h[d]=C={x1:C[0],y1:C[1],x2:C[2],y2:C[3],gradientUnits:"userSpaceOnUse"}),d==="radialGradient"&&j&&!u(C.gradientUnits)&&(T=C,C=r(C,W.getRadialAttr(j,T),{gradientUnits:"userSpaceOnUse"})),a(C,function(J,nt){nt!=="id"&&q.push(nt,J)}),a(z,function(J){q.push(J)}),q=q.join(","),N[q])Y=N[q].attr("id");else{C.id=Y=e();var tt=N[q]=W.createElement(d).attr(C).add(W.defs);tt.radAttr=T,tt.stops=[],z.forEach(function(J){J[1].indexOf("rgba")===0?(D=B.parse(J[1]),L=D.get("rgb"),O=D.get("a")):(L=J[1],O=1);var nt=W.createElement("stop").attr({offset:J[0],"stop-color":L,"stop-opacity":O}).add(tt);tt.stops.push(nt)})}H="url("+W.url+"#"+Y+")",k.setAttribute(b,H),k.gradient=q,h.toString=function(){return H}}})},n.prototype.css=function(h){var b,k=this.styles,D={},d=this.element,C=!k;if(h.color&&(h.fill=h.color),k&&a(h,function(N,z){k&&k[z]!==N&&(D[z]=N,C=!0)}),C){k&&(h=S(k,D)),h.width===null||h.width==="auto"?delete this.textWidth:d.nodeName.toLowerCase()==="text"&&h.width&&(b=this.textWidth=i(h.width)),this.styles=h,b&&!E&&this.renderer.forExport&&delete h.width;var T=r(h);d.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(N){return T&&delete T[N]}),m(d,T),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),h.textOutline&&this.applyTextOutline(h.textOutline))}return this},n.prototype.dashstyleSetter=function(h){var b,k=this["stroke-width"];if(k==="inherit"&&(k=1),h=h&&h.toLowerCase()){var D=h.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=D.length;b--;)D[b]=""+i(D[b])*t(k,NaN);h=D.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",h)}},n.prototype.destroy=function(){var h,b,k=this,D=k.element||{},d=k.renderer,C=D.ownerSVGElement,T=d.isSVG&&D.nodeName==="SPAN"&&k.parentGroup||void 0;if(D.onclick=D.onmouseout=D.onmouseover=D.onmousemove=D.point=null,V(k),k.clipPath&&C){var N=k.clipPath;[].forEach.call(C.querySelectorAll("[clip-path],[CLIP-PATH]"),function(z){z.getAttribute("clip-path").indexOf(N.element.id)>-1&&z.removeAttribute("clip-path")}),k.clipPath=N.destroy()}if(k.stops){for(b=0;b<k.stops.length;b++)k.stops[b].destroy();k.stops.length=0,k.stops=void 0}for(k.safeRemoveChild(D),d.styledMode||k.destroyShadows();T&&T.div&&T.div.childNodes.length===0;)h=T.parentGroup,k.safeRemoveChild(T.div),delete T.div,T=h;k.alignTo&&v(d.alignedObjects,k),a(k,function(z,L){k[L]&&k[L].parentGroup===k&&k[L].destroy&&k[L].destroy(),delete k[L]})},n.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(h){this.safeRemoveChild(h)},this),this.shadows=void 0},n.prototype.dSetter=function(h,b,k){x(h)&&(typeof h[0]=="string"&&(h=this.renderer.pathToSegments(h)),this.pathArray=h,h=h.reduce(function(D,d,C){return d&&d.join?(C?D+" ":"")+d.join(" "):(d||"").toString()},"")),/(NaN| {2}|^$)/.test(h)&&(h="M 0 0"),this[b]!==h&&(k.setAttribute(b,h),this[b]=h)},n.prototype.fadeOut=function(h){var b=this;b.animate({opacity:0},{duration:t(h,150),complete:function(){b.hide()}})},n.prototype.fillSetter=function(h,b,k){typeof h=="string"?k.setAttribute(b,h):h&&this.complexColor(h,b,k)},n.prototype.getBBox=function(h,b){var k,D,d,C,T,N=this,z=N.alignValue,L=N.element,O=N.renderer,j=N.styles,Y=N.textStr,H=O.cache,W=O.cacheKeys,q=L.namespaceURI===N.SVG_NS,tt=t(b,N.rotation,0),J=O.styledMode?L&&n.prototype.getStyle.call(L,"font-size"):j&&j.fontSize;if(u(Y)&&((T=Y.toString()).indexOf("<")===-1&&(T=T.replace(/[0-9]/g,"0")),T+=["",tt,J,N.textWidth,z,j&&j.textOverflow,j&&j.fontWeight].join(",")),T&&!h&&(k=H[T]),!k){if(q||O.forExport){try{C=this.fakeTS&&function(Tt){var Lt=L.querySelector(".highcharts-text-outline");Lt&&m(Lt,{display:Tt})},p(C)&&C("none"),k=L.getBBox?S({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},p(C)&&C("")}catch(Tt){}(!k||k.width<0)&&(k={x:0,y:0,width:0,height:0})}else k=N.htmlGetBBox();if(O.isSVG&&(D=k.width,d=k.height,q&&(k.height=d={"11px,17":14,"13px,20":16}[""+(J||"")+",".concat(Math.round(d))]||d),tt)){var nt=Number(L.getAttribute("y")||0)-k.y,lt={right:1,center:.5}[z||0]||0,gt=tt*F,mt=(tt-90)*F,bt=D*Math.cos(gt),yt=D*Math.sin(gt),dt=Math.cos(mt),ot=Math.sin(mt),at=k.x+lt*(D-bt)+nt*dt,ut=at+bt,vt=ut-d*dt,Ct=vt-bt,xt=k.y+nt-lt*yt+nt*ot,St=xt+yt,wt=St-d*ot,Mt=wt-yt;k.x=Math.min(at,ut,vt,Ct),k.y=Math.min(xt,St,wt,Mt),k.width=Math.max(at,ut,vt,Ct)-k.x,k.height=Math.max(xt,St,wt,Mt)-k.y}if(T&&(Y===""||k.height>0)){for(;W.length>250;)delete H[W.shift()];H[T]||W.push(T),H[T]=k}}return k},n.prototype.getStyle=function(h){return P.getComputedStyle(this.element||this,"").getPropertyValue(h)},n.prototype.hasClass=function(h){return(""+this.attr("class")).split(" ").indexOf(h)!==-1},n.prototype.hide=function(){return this.attr({visibility:"hidden"})},n.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},n.prototype.init=function(h,b){this.element=b==="span"?f(b):I.createElementNS(this.SVG_NS,b),this.renderer=h,M(this,"afterInit")},n.prototype.on=function(h,b){var k=this.onEvents;return k[h]&&k[h](),k[h]=y(this.element,h,b),this},n.prototype.opacitySetter=function(h,b,k){var D=Number(Number(h).toFixed(3));this.opacity=D,k.setAttribute(b,D)},n.prototype.removeClass=function(h){return this.attr("class",(""+this.attr("class")).replace(g(h)?new RegExp("(^| )".concat(h,"( |$)")):h," ").replace(/ +/g," ").trim())},n.prototype.removeTextOutline=function(){var h=this.element.querySelector("tspan.highcharts-text-outline");h&&this.safeRemoveChild(h)},n.prototype.safeRemoveChild=function(h){var b=h.parentNode;b&&b.removeChild(h)},n.prototype.setRadialReference=function(h){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=h,b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(h,b.radAttr)),this},n.prototype.setTextPath=function(h,b){var k=this;b=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);var D=this.renderer.url,d=this.text||this,C=d.textPath,T=b.attributes,N=b.enabled;if(h=h||C&&C.path,C&&C.undo(),h&&N){var z=y(d,"afterModifyTree",function(L){if(h&&N){var O=h.attr("id");O||h.attr("id",O=e());var j={x:0,y:0};u(T.dx)&&(j.dx=T.dx,delete T.dx),u(T.dy)&&(j.dy=T.dy,delete T.dy),d.attr(j),k.attr({transform:""}),k.box&&(k.box=k.box.destroy());var Y=L.nodes.slice(0);L.nodes.length=0,L.nodes[0]={tagName:"textPath",attributes:S(T,{"text-anchor":T.textAnchor,href:""+D+"#".concat(O)}),children:Y}}});d.textPath={path:h,undo:z}}else d.attr({dx:0,dy:0}),delete d.textPath;return this.added&&(d.textCache="",this.renderer.buildText(d)),this},n.prototype.shadow=function(h,b,k){var D,d,C,T,N,z,L=[],O=this,j=O.element,Y=O.oldShadowOptions,H=O.parentGroup,W=H&&H.rotation===90,q={color:"#000000",offsetX:W?-1:1,offsetY:W?-1:1,opacity:.15,width:3},tt=!1;if(h===!0?z=q:typeof h=="object"&&(z=S(q,h)),z&&(z&&Y&&a(z,function(J,nt){J!==Y[nt]&&(tt=!0)}),tt&&this.destroyShadows(),this.oldShadowOptions=z),z){if(!this.shadows){for(T=z.opacity/z.width,N=W?"translate(".concat(z.offsetY,", ").concat(z.offsetX,")"):"translate(".concat(z.offsetX,", ").concat(z.offsetY,")"),D=1;D<=z.width;D++)d=j.cloneNode(!1),C=2*z.width+1-2*D,c(d,{stroke:h.color||"#000000","stroke-opacity":T*D,"stroke-width":C,transform:N,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),k&&(c(d,"height",Math.max(c(d,"height")-C,0)),d.cutHeight=C),b?b.element.appendChild(d):j.parentNode&&j.parentNode.insertBefore(d,j),L.push(d);this.shadows=L}}else this.destroyShadows();return this},n.prototype.show=function(h){return h===void 0&&(h=!0),this.attr({visibility:h?"inherit":"visible"})},n.prototype["stroke-widthSetter"]=function(h,b,k){this[b]=h,k.setAttribute(b,h)},n.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var h,b=this.getStyle("stroke-width"),k=0;return b.indexOf("px")===b.length-2?k=i(b):b!==""&&(h=I.createElementNS(A,"rect"),c(h,{width:b,"stroke-width":0}),this.element.parentNode.appendChild(h),k=h.getBBox().width,h.parentNode.removeChild(h)),k},n.prototype.symbolAttr=function(h){var b=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(k){b[k]=t(h[k],b[k])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},n.prototype.textSetter=function(h){h!==this.textStr&&(delete this.textPxLength,this.textStr=h,this.added&&this.renderer.buildText(this))},n.prototype.titleSetter=function(h){var b=this.element,k=b.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(k,b.firstChild):b.appendChild(k),k.textContent=String(t(h,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},n.prototype.toFront=function(){var h=this.element;return h.parentNode.appendChild(h),this},n.prototype.translate=function(h,b){return this.attr({translateX:h,translateY:b})},n.prototype.updateShadows=function(h,b,k){var D=this.shadows;if(D)for(var d=D.length;d--;)k.call(D[d],h==="height"?Math.max(b-(D[d].cutHeight||0),0):h==="d"?this.d:b,h,D[d])},n.prototype.updateTransform=function(){var h=this,b=h.element,k=h.matrix,D=h.rotation,d=D===void 0?0:D,C=h.scaleX,T=h.scaleY,N=h.translateX,z=N===void 0?0:N,L=h.translateY,O=["translate("+z+","+(L===void 0?0:L)+")"];u(k)&&O.push("matrix("+k.join(",")+")"),d&&O.push("rotate("+d+" "+t(this.rotationOriginX,b.getAttribute("x"),0)+" "+t(this.rotationOriginY,b.getAttribute("y")||0)+")"),(u(C)||u(T))&&O.push("scale("+t(C,1)+" "+t(T,1)+")"),O.length&&!(this.text||this).textPath&&b.setAttribute("transform",O.join(" "))},n.prototype.visibilitySetter=function(h,b,k){h==="inherit"?k.removeAttribute(b):this[b]!==h&&k.setAttribute(b,h),this[b]=h},n.prototype.xGetter=function(h){return this.element.nodeName==="circle"&&(h==="x"?h="cx":h==="y"&&(h="cy")),this._defaultGetter(h)},n.prototype.zIndexSetter=function(h,b){var k,D,d,C,T,N=this.renderer,z=this.parentGroup,L=(z||N).element||N.box,O=this.element,j=L===N.box,Y=!1,H=this.added;if(u(h)?(O.setAttribute("data-z-index",h),h=+h,this[b]===h&&(H=!1)):u(this[b])&&O.removeAttribute("data-z-index"),this[b]=h,H){for((h=this.zIndex)&&z&&(z.handleZ=!0),T=(k=L.childNodes).length-1;T>=0&&!Y;T--)d=(D=k[T]).getAttribute("data-z-index"),C=!u(d),D!==O&&(h<0&&C&&!j&&!T?(L.insertBefore(O,k[T]),Y=!0):(i(d)<=h||C&&(!u(h)||h>=0))&&(L.insertBefore(O,k[T+1]||null),Y=!0));Y||(L.insertBefore(O,k[j?3:0]||null),Y=!0)}return Y},n}();return s.prototype.strokeSetter=s.prototype.fillSetter,s.prototype.yGetter=s.prototype.xGetter,s.prototype.matrixSetter=s.prototype.rotationOriginXSetter=s.prototype.rotationOriginYSetter=s.prototype.rotationSetter=s.prototype.scaleXSetter=s.prototype.scaleYSetter=s.prototype.translateXSetter=s.prototype.translateYSetter=s.prototype.verticalAlignSetter=function(n,h){this[h]=n,this.doTransform=!0},s}),et(_,"Core/Renderer/RendererRegistry.js",[_["Core/Globals.js"]],function(G){var B;return function(X){var U;X.rendererTypes={},X.getRendererType=function($){return $===void 0&&($=U),X.rendererTypes[$]||X.rendererTypes[U]},X.registerRendererType=function($,Z,V){X.rendererTypes[$]=Z,U&&!V||(U=$,G.Renderer=Z)}}(B||(B={})),B}),et(_,"Core/Renderer/SVG/SVGLabel.js",[_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(A,P){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},X(A,P)},function(A,P){function y(){this.constructor=A}X(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=B.defined,Z=B.extend,V=B.isNumber,F=B.merge,I=B.pick,E=B.removeEvent;return function(A){function P(y,c,f,m,u,v,S,M,x,p){var g,r=A.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(y,"g"),r.textStr=c,r.x=f,r.y=m,r.anchorX=v,r.anchorY=S,r.baseline=x,r.className=p,r.addClass(p==="button"?"highcharts-no-tooltip":"highcharts-label"),p&&r.addClass("highcharts-"+p),r.text=y.text(void 0,0,0,M).attr({zIndex:1}),typeof u=="string"&&((g=/^url\((.*?)\)$/.test(u))||r.renderer.symbols[u])&&(r.symbolKey=u),r.bBox=P.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=y.styledMode||g,r.deferredAttr={},r.alignFactor=0,r}return U(P,A),P.prototype.alignSetter=function(y){var c={left:0,center:.5,right:1}[y];c!==this.alignFactor&&(this.alignFactor=c,this.bBox&&V(this.xSetting)&&this.attr({x:this.xSetting}))},P.prototype.anchorXSetter=function(y,c){this.anchorX=y,this.boxAttr(c,Math.round(y)-this.getCrispAdjust()-this.xSetting)},P.prototype.anchorYSetter=function(y,c){this.anchorY=y,this.boxAttr(c,y-this.ySetting)},P.prototype.boxAttr=function(y,c){this.box?this.box.attr(y,c):this.deferredAttr[y]=c},P.prototype.css=function(y){if(y){var c={};y=F(y),P.textProps.forEach(function(f){y[f]!==void 0&&(c[f]=y[f],delete y[f])}),this.text.css(c),"fontSize"in c||"fontWeight"in c?this.updateTextPadding():("width"in c||"textOverflow"in c)&&this.updateBoxSize()}return G.prototype.css.call(this,y)},P.prototype.destroy=function(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},P.prototype.fillSetter=function(y,c){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(c,y)},P.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var y=this.padding,c=I(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-c,y:this.bBox.y-y}},P.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},P.prototype.heightSetter=function(y){this.heightSetting=y},P.prototype.onAdd=function(){this.text.add(this),this.attr({text:I(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&$(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},P.prototype.paddingSetter=function(y,c){V(y)?y!==this[c]&&(this[c]=y,this.updateTextPadding()):this[c]=void 0},P.prototype.rSetter=function(y,c){this.boxAttr(c,y)},P.prototype.shadow=function(y){return y&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(y)),this},P.prototype.strokeSetter=function(y,c){this.stroke=y,this.boxAttr(c,y)},P.prototype["stroke-widthSetter"]=function(y,c){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(c,y)},P.prototype["text-alignSetter"]=function(y){this.textAlign=y},P.prototype.textSetter=function(y){y!==void 0&&this.text.attr({text:y}),this.updateTextPadding()},P.prototype.updateBoxSize=function(){var y,c=this.text,f=c.element.style,m={},u=this.padding,v=this.bBox=V(this.widthSetting)&&V(this.heightSetting)&&!this.textAlign||!$(c.textStr)?P.emptyBBox:c.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||v.height||0)+2*u;var S=this.renderer.fontMetrics(f&&f.fontSize,c);if(this.baselineOffset=u+Math.min((this.text.firstLineMetrics||S).b,v.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-S.h)/2),this.needsBox&&!c.textPath){if(!this.box){var M=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();M.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),M.add(this)}y=this.getCrispAdjust(),m.x=y,m.y=(this.baseline?-this.baselineOffset:0)+y,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(Z(m,this.deferredAttr)),this.deferredAttr={}}},P.prototype.updateTextPadding=function(){var y=this.text;if(!y.textPath){this.updateBoxSize();var c=this.baseline?0:this.baselineOffset,f=I(this.paddingLeft,this.padding);$(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),f===y.x&&c===y.y||(y.attr("x",f),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),c!==void 0&&y.attr("y",c)),y.x=f,y.y=c}},P.prototype.widthSetter=function(y){this.widthSetting=V(y)?y:void 0},P.prototype.getPaddedWidth=function(){var y=this.padding,c=I(this.paddingLeft,y),f=I(this.paddingRight,y);return(this.widthSetting||this.bBox.width||0)+c+f},P.prototype.xSetter=function(y){this.x=y,this.alignFactor&&(y-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(y),this.attr("translateX",this.xSetting)},P.prototype.ySetter=function(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)},P.emptyBBox={width:0,height:0,x:0,y:0},P.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],P}(G)}),et(_,"Core/Renderer/SVG/Symbols.js",[_["Core/Utilities.js"]],function(G){var B=G.defined,X=G.isNumber,U=G.pick;function $(F,I,E,A,P){var y=[];if(P){var c=P.start||0,f=U(P.r,E),m=U(P.r,A||E),u=.001,v=Math.abs((P.end||0)-c-2*Math.PI)<u,S=(P.end||0)-u,M=P.innerR,x=U(P.open,v),p=Math.cos(c),g=Math.sin(c),r=Math.cos(S),a=Math.sin(S),t=U(P.longArc,S-c-Math.PI<u?0:1);y.push(["M",F+f*p,I+m*g],["A",f,m,0,t,U(P.clockwise,1),F+f*r,I+m*a]),B(M)&&y.push(x?["M",F+M*r,I+M*a]:["L",F+M*r,I+M*a],["A",M,M,0,t,B(P.clockwise)?1-P.clockwise:0,F+M*p,I+M*g]),x||y.push(["Z"])}return y}function Z(F,I,E,A,P){return P&&P.r?V(F,I,E,A,P):[["M",F,I],["L",F+E,I],["L",F+E,I+A],["L",F,I+A],["Z"]]}function V(F,I,E,A,P){var y=P&&P.r||0;return[["M",F+y,I],["L",F+E-y,I],["C",F+E,I,F+E,I,F+E,I+y],["L",F+E,I+A-y],["C",F+E,I+A,F+E,I+A,F+E-y,I+A],["L",F+y,I+A],["C",F,I+A,F,I+A,F,I+A-y],["L",F,I+y],["C",F,I,F,I,F+y,I]]}return{arc:$,callout:function(F,I,E,A,P){var y=Math.min(P&&P.r||0,E,A),c=y+6,f=P&&P.anchorX,m=P&&P.anchorY||0,u=V(F,I,E,A,{r:y});return X(f)&&(F+f>=E?m>I+c&&m<I+A-c?u.splice(3,1,["L",F+E,m-6],["L",F+E+6,m],["L",F+E,m+6],["L",F+E,I+A-y]):u.splice(3,1,["L",F+E,A/2],["L",f,m],["L",F+E,A/2],["L",F+E,I+A-y]):F+f<=0?m>I+c&&m<I+A-c?u.splice(7,1,["L",F,m+6],["L",F-6,m],["L",F,m-6],["L",F,I+y]):u.splice(7,1,["L",F,A/2],["L",f,m],["L",F,A/2],["L",F,I+y]):m&&m>A&&f>F+c&&f<F+E-c?u.splice(5,1,["L",f+6,I+A],["L",f,I+A+6],["L",f-6,I+A],["L",F+y,I+A]):m&&m<0&&f>F+c&&f<F+E-c&&u.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),u},circle:function(F,I,E,A){return $(F+E/2,I+A/2,E/2,A/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A/2],["L",F+E/2,I+A],["L",F,I+A/2],["Z"]]},rect:Z,roundedRect:V,square:Z,triangle:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A],["L",F,I+A],["Z"]]},"triangle-down":function(F,I,E,A){return[["M",F,I],["L",F+E,I],["L",F+E/2,I+A],["Z"]]}}}),et(_,"Core/Renderer/SVG/TextBuilder.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=B.doc,$=B.SVG_NS,Z=B.win,V=X.attr,F=X.extend,I=X.fireEvent,E=X.isString,A=X.objectEach,P=X.pick;return function(){function y(c){var f=c.styles;this.renderer=c.renderer,this.svgElement=c,this.width=c.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!!(f&&f.textOverflow==="ellipsis"),this.noWrap=!!(f&&f.whiteSpace==="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var c=this.svgElement,f=c.element,m=c.renderer,u=P(c.textStr,"").toString(),v=u.indexOf("<")!==-1,S=f.childNodes,M=this.width&&!c.added&&m.box,x=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(x!==c.textCache){c.textCache=x,delete c.actualWidth;for(var p=S.length;p--;)f.removeChild(S[p]);if(v||this.ellipsis||this.width||c.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))){if(u!==""){M&&M.appendChild(f);var g=new G(u);this.modifyTree(g.nodes),g.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),M&&M.removeChild(f)}}else f.appendChild(U.createTextNode(this.unescapeEntities(u)));E(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var c,f=this,m=this.svgElement,u=V(m.element,"x");for(m.firstLineMetrics=void 0;(c=m.element.firstChild)&&/^[\s\u200B]*$/.test(c.textContent||" ");)m.element.removeChild(c);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(M,x){M.nextSibling&&M.previousSibling&&(x===0&&M.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,M.previousSibling)),V(M,{dy:f.getLineHeight(M.nextSibling),x:u}))});var v=this.width||0;if(v){var S=function(M){[].slice.call(M.childNodes).forEach(function(x){x.nodeType===Z.Node.TEXT_NODE?function(p,g){var r=p.textContent||"",a=r.replace(/([^\^])-/g,"$1- ").split(" "),t=!f.noWrap&&(a.length>1||m.element.childNodes.length>1),i=f.getLineHeight(g),o=0,e=m.actualWidth;if(f.ellipsis)r&&f.truncate(p,r,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(h,b){return h.substring(0,b)+"…"});else if(t){for(var s=[],n=[];g.firstChild&&g.firstChild!==p;)n.push(g.firstChild),g.removeChild(g.firstChild);for(;a.length;)a.length&&!f.noWrap&&o>0&&(s.push(p.textContent||""),p.textContent=a.join(" ").replace(/- /g,"-")),f.truncate(p,void 0,a,o===0&&e||0,v,function(h,b){return a.slice(0,b).join(" ").replace(/- /g,"-")}),e=m.actualWidth,o++;n.forEach(function(h){g.insertBefore(h,p)}),s.forEach(function(h){g.insertBefore(U.createTextNode(h),p);var b=U.createElementNS($,"tspan");b.textContent="",V(b,{dy:i,x:u}),g.insertBefore(b,p)})}}(x,M):(x.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),S(x))})};S(m.element)}},y.prototype.getLineHeight=function(c){var f,m=c.nodeType===Z.Node.TEXT_NODE?c.parentElement:c;return this.renderer.styledMode||(f=m&&/(px|em)$/.test(m.style.fontSize)?m.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,m||this.svgElement.element).h},y.prototype.modifyTree=function(c){var f=this,m=function(u,v){var S=u.attributes,M=S===void 0?{}:S,x=u.children,p=u.style,g=p===void 0?{}:p,r=u.tagName,a=f.renderer.styledMode;if(r==="b"||r==="strong"?a?M.class="highcharts-strong":g.fontWeight="bold":r!=="i"&&r!=="em"||(a?M.class="highcharts-emphasized":g.fontStyle="italic"),g&&g.color&&(g.fill=g.color),r==="br"){M.class="highcharts-br",u.textContent="";var t=c[v+1];t&&t.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else r==="a"&&x&&x.some(function(i){return i.tagName==="#text"})&&(u.children=[{children:x,tagName:"tspan"}]);r!=="#text"&&r!=="a"&&(u.tagName="tspan"),F(u,{attributes:M,style:g}),x&&x.filter(function(i){return i.tagName!=="#text"}).forEach(m)};c.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:c})},y.prototype.truncate=function(c,f,m,u,v,S){var M,x,p=this.svgElement,g=p.renderer,r=p.rotation,a=[],t=m?1:0,i=(f||m||"").length,o=i,e=function(s,n){var h=n||s,b=c.parentNode;if(b&&a[h]===void 0)if(b.getSubStringLength)try{a[h]=u+b.getSubStringLength(0,m?h+1:h)}catch(k){}else g.getSpanWidth&&(c.textContent=S(f||m,s),a[h]=u+g.getSpanWidth(p,c));return a[h]};if(p.rotation=0,x=e(c.textContent.length),u+x>v){for(;t<=i;)o=Math.ceil((t+i)/2),m&&(M=S(m,o)),x=e(o,M&&M.length-1),t===i?t=i+1:x>v?i=o-1:t=o;i===0?c.textContent="":f&&i===f.length-1||(c.textContent=M||S(f||m,o))}m&&m.splice(0,o),p.actualWidth=x,p.rotation=r},y.prototype.unescapeEntities=function(c,f){return A(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(c=c.toString().replace(new RegExp(m,"g"),u))}),c},y}()}),et(_,"Core/Renderer/SVG/SVGRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGLabel.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Renderer/SVG/TextBuilder.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I){var E,A=X.charts,P=X.deg2rad,y=X.doc,c=X.isFirefox,f=X.isMS,m=X.isWebKit,u=X.noop,v=X.SVG_NS,S=X.symbolSizes,M=X.win,x=I.addEvent,p=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,h=I.merge,b=I.pick,k=I.pInt,D=I.uniqueKey,d=function(){function C(T,N,z,L,O,j,Y){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.isSVG=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(T,N,z,L,O,j,Y)}return C.prototype.init=function(T,N,z,L,O,j,Y){var H,W,q=this,tt=q.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),J=tt.element;Y||tt.css(this.getStyle(L)),T.appendChild(J),p(T,"dir","ltr"),T.innerHTML.indexOf("xmlns")===-1&&p(J,"xmlns",this.SVG_NS),q.isSVG=!0,this.box=J,this.boxWrapper=tt,q.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),q.defs=this.createElement("defs").add(),q.allowHTML=j,q.forExport=O,q.styledMode=Y,q.gradients={},q.cache={},q.cacheKeys=[],q.imgCount=0,q.setSize(N,z,!1),c&&T.getBoundingClientRect&&((H=function(){r(T,{left:0,top:0}),W=T.getBoundingClientRect(),r(T,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})})(),q.unSubPixelFix=x(M,"resize",H))},C.prototype.definition=function(T){return new G([T]).addToDOM(this.defs.element)},C.prototype.getReferenceURL=function(){if((c||m)&&y.getElementsByTagName("base").length){if(!a(E)){var T=D(),N=new G([{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(#".concat(T,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body);r(N,{position:"fixed",top:0,left:0,zIndex:9e5});var z=y.elementFromPoint(6,6);E=(z&&z.id)==="hitme",y.body.removeChild(N)}if(E)return M.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},C.prototype.getStyle=function(T){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},T),this.style},C.prototype.setStyle=function(T){this.boxWrapper.css(this.getStyle(T))},C.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},C.prototype.destroy=function(){var T=this,N=T.defs;return T.box=null,T.boxWrapper=T.boxWrapper.destroy(),t(T.gradients||{}),T.gradients=null,N&&(T.defs=N.destroy()),T.unSubPixelFix&&T.unSubPixelFix(),T.alignedObjects=null,null},C.prototype.createElement=function(T){var N=new this.Element;return N.init(this,T),N},C.prototype.getRadialAttr=function(T,N){return{cx:T[0]-T[2]/2+(N.cx||0)*T[2],cy:T[1]-T[2]/2+(N.cy||0)*T[2],r:(N.r||0)*T[2]}},C.prototype.buildText=function(T){new F(T).buildSVG()},C.prototype.getContrast=function(T){var N=B.parse(T).rgba.map(function(L){var O=L/255;return O<=.03928?O/12.92:Math.pow((O+.055)/1.055,2.4)}),z=.2126*N[0]+.7152*N[1]+.0722*N[2];return 1.05/(z+.05)>(z+.05)/.05?"#FFFFFF":"#000000"},C.prototype.button=function(T,N,z,L,O,j,Y,H,W,q){O===void 0&&(O={});var tt=this.label(T,N,z,W,void 0,void 0,q,void 0,"button"),J=this.styledMode,nt=O.states||{},lt=0;delete(O=h(O)).states;var gt=h({color:"#333333",cursor:"pointer",fontWeight:"normal"},O.style);delete O.style;var mt,bt,yt,dt=G.filterUserAttributes(O);return tt.attr(h({padding:8,r:2},dt)),J||(dt=h({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},dt),j=h(dt,{fill:"#e6e6e6"},G.filterUserAttributes(j||nt.hover||{})),mt=j.style,delete j.style,Y=h(dt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(Y||nt.select||{})),bt=Y.style,delete Y.style,H=h(dt,{style:{color:"#cccccc"}},G.filterUserAttributes(H||nt.disabled||{})),yt=H.style,delete H.style),x(tt.element,f?"mouseover":"mouseenter",function(){lt!==3&&tt.setState(1)}),x(tt.element,f?"mouseout":"mouseleave",function(){lt!==3&&tt.setState(lt)}),tt.setState=function(ot){if(ot!==1&&(tt.state=lt=ot),tt.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ot||0]),!J){tt.attr([dt,j,Y,H][ot||0]);var at=[gt,mt,bt,yt][ot||0];s(at)&&tt.css(at)}},J||(tt.attr(dt).css(i({cursor:"default"},gt)),q&&tt.text.css({pointerEvents:"none"})),tt.on("touchstart",function(ot){return ot.stopPropagation()}).on("click",function(ot){lt!==3&&L.call(tt,ot)})},C.prototype.crispLine=function(T,N,z){z===void 0&&(z="round");var L=T[0],O=T[1];return a(L[1])&&L[1]===O[1]&&(L[1]=O[1]=Math[z](L[1])-N%2/2),a(L[2])&&L[2]===O[2]&&(L[2]=O[2]=Math[z](L[2])+N%2/2),T},C.prototype.path=function(T){var N=this.styledMode?{}:{fill:"none"};return o(T)?N.d=T:s(T)&&i(N,T),this.createElement("path").attr(N)},C.prototype.circle=function(T,N,z){var L=s(T)?T:T===void 0?{}:{x:T,y:N,r:z},O=this.createElement("circle");return O.xSetter=O.ySetter=function(j,Y,H){H.setAttribute("c"+Y,j)},O.attr(L)},C.prototype.arc=function(T,N,z,L,O,j){var Y;s(T)?(N=(Y=T).y,z=Y.r,L=Y.innerR,O=Y.start,j=Y.end,T=Y.x):Y={innerR:L,start:O,end:j};var H=this.symbol("arc",T,N,z,z,Y);return H.r=z,H},C.prototype.rect=function(T,N,z,L,O,j){O=s(T)?T.r:O;var Y=this.createElement("rect"),H=s(T)?T:T===void 0?{}:{x:T,y:N,width:Math.max(z,0),height:Math.max(L,0)};return this.styledMode||(j!==void 0&&(H["stroke-width"]=j,H=Y.crisp(H)),H.fill="none"),O&&(H.r=O),Y.rSetter=function(W,q,tt){Y.r=W,p(tt,{rx:W,ry:W})},Y.rGetter=function(){return Y.r||0},Y.attr(H)},C.prototype.setSize=function(T,N,z){var L=this;L.width=T,L.height=N,L.boxWrapper.animate({width:T,height:N},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(z,!0)?void 0:0}),L.alignElements()},C.prototype.g=function(T){var N=this.createElement("g");return T?N.attr({class:"highcharts-"+T}):N},C.prototype.image=function(T,N,z,L,O,j){var Y={preserveAspectRatio:"none"},H=function(J,nt){J.setAttributeNS?J.setAttributeNS("http://www.w3.org/1999/xlink","href",nt):J.setAttribute("hc-svg-href",nt)};e(N)&&(Y.x=N),e(z)&&(Y.y=z),e(L)&&(Y.width=L),e(O)&&(Y.height=O);var W=this.createElement("image").attr(Y),q=function(J){H(W.element,T),j.call(W,J)};if(j){H(W.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var tt=new M.Image;x(tt,"load",q),tt.src=T,tt.complete&&q({})}else H(W.element,T);return W},C.prototype.symbol=function(T,N,z,L,O,j){var Y,H,W,q,tt=this,J=/^url\((.*?)\)$/,nt=J.test(T),lt=!nt&&(this.symbols[T]?T:"circle"),gt=lt&&this.symbols[lt];if(gt)typeof N=="number"&&(H=gt.call(this.symbols,Math.round(N||0),Math.round(z||0),L||0,O||0,j)),Y=this.path(H),tt.styledMode||Y.attr("fill","none"),i(Y,{symbolName:lt||void 0,x:N,y:z,width:L,height:O}),j&&i(Y,j);else if(nt){W=T.match(J)[1];var mt=Y=this.image(W);mt.imgwidth=b(S[W]&&S[W].width,j&&j.width),mt.imgheight=b(S[W]&&S[W].height,j&&j.height),q=function(bt){return bt.attr({width:bt.width,height:bt.height})},["width","height"].forEach(function(bt){mt[bt+"Setter"]=function(yt,dt){this[dt]=yt;var ot=this,at=ot.alignByTranslate,ut=ot.element,vt=ot.width,Ct=ot.height,xt=ot.imgwidth,St=ot.imgheight,wt=this["img"+dt];if(a(wt)){var Mt=1;j&&j.backgroundSize==="within"&&vt&&Ct?(Mt=Math.min(vt/xt,Ct/St),wt=Math.round(wt*Mt),p(ut,{width:Math.round(xt*Mt),height:Math.round(St*Mt)})):ut&&ut.setAttribute(dt,wt),at||this.translate(((vt||0)-wt*Mt)/2,((Ct||0)-wt*Mt)/2)}}}),a(N)&&mt.attr({x:N,y:z}),mt.isImg=!0,a(mt.imgwidth)&&a(mt.imgheight)?q(mt):(mt.attr({width:0,height:0}),g("img",{onload:function(){var bt=A[tt.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),S[W]={width:this.width,height:this.height},mt.imgwidth=this.width,mt.imgheight=this.height,mt.element&&q(mt),this.parentNode&&this.parentNode.removeChild(this),tt.imgCount--,tt.imgCount||!bt||bt.hasLoaded||bt.onload()},src:W}),this.imgCount++)}return Y},C.prototype.clipRect=function(T,N,z,L){var O=D()+"-",j=this.createElement("clipPath").attr({id:O}).add(this.defs),Y=this.rect(T,N,z,L,0).add(j);return Y.id=O,Y.clipPath=j,Y.count=0,Y},C.prototype.text=function(T,N,z,L){var O=this,j={};if(L&&(O.allowHTML||!O.forExport))return O.html(T,N,z);j.x=Math.round(N||0),z&&(j.y=Math.round(z)),a(T)&&(j.text=T);var Y=O.createElement("text").attr(j);return(!L||O.forExport&&!O.allowHTML)&&(Y.xSetter=function(H,W,q){for(var tt=q.getElementsByTagName("tspan"),J=q.getAttribute(W),nt=0,lt=void 0;nt<tt.length;nt++)(lt=tt[nt]).getAttribute(W)===J&<.setAttribute(W,H);q.setAttribute(W,H)}),Y},C.prototype.fontMetrics=function(T,N){T=!this.styledMode&&/px/.test(T)||!M.getComputedStyle?T||N&&N.style&&N.style.fontSize||this.style&&this.style.fontSize:N&&$.prototype.getStyle.call(N,"font-size");var z=(T=/px/.test(T)?k(T):12)<24?T+3:Math.round(1.2*T);return{h:z,b:Math.round(.8*z),f:T}},C.prototype.rotCorr=function(T,N,z){var L=T;return N&&z&&(L=Math.max(L*Math.cos(N*P),4)),{x:-T/3*Math.sin(N*P),y:L}},C.prototype.pathToSegments=function(T){for(var N=[],z=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},O=0;O<T.length;O++)n(z[0])&&e(T[O])&&z.length===L[z[0].toUpperCase()]&&T.splice(O,0,z[0].replace("M","L").replace("m","l")),typeof T[O]=="string"&&(z.length&&N.push(z.slice(0)),z.length=0),z.push(T[O]);return N.push(z.slice(0)),N},C.prototype.label=function(T,N,z,L,O,j,Y,H,W){return new Z(this,T,N,z,L,O,j,Y,H,W)},C.prototype.alignElements=function(){this.alignedObjects.forEach(function(T){return T.align()})},C}();return i(d.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:V,draw:u}),U.registerRendererType("svg",d,!0),d}),et(_,"Core/Renderer/HTML/HTMLElement.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(m,u){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var M in S)S.hasOwnProperty(M)&&(v[M]=S[M])},U(m,u)},function(m,u){function v(){this.constructor=m}U(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),Z=G.isFirefox,V=G.isMS,F=G.isWebKit,I=G.win,E=X.css,A=X.defined,P=X.extend,y=X.pick,c=X.pInt,f=function(m){function u(){return m!==null&&m.apply(this,arguments)||this}return $(u,m),u.compose=function(v){if(u.composedClasses.indexOf(v)===-1){u.composedClasses.push(v);var S=u.prototype,M=v.prototype;M.getSpanCorrection=S.getSpanCorrection,M.htmlCss=S.htmlCss,M.htmlGetBBox=S.htmlGetBBox,M.htmlUpdateTransform=S.htmlUpdateTransform,M.setSpanRotation=S.setSpanRotation}return v},u.prototype.getSpanCorrection=function(v,S,M){this.xCorr=-v*M,this.yCorr=-S},u.prototype.htmlCss=function(v){var S,M=this,x=M.element.tagName==="SPAN"&&v&&"width"in v,p=y(x&&v.width,void 0);return x&&(delete v.width,M.textWidth=p,S=!0),v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),M.styles=P(M.styles,v),E(M.element,v),S&&M.htmlUpdateTransform(),M},u.prototype.htmlGetBBox=function(){var v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}},u.prototype.htmlUpdateTransform=function(){if(this.added){var v=this,S=v.renderer,M=v.element,x=v.translateX||0,p=v.translateY||0,g=v.x||0,r=v.y||0,a=v.textAlign||"left",t={left:0,center:.5,right:1}[a],i=v.styles,o=i&&i.whiteSpace;if(E(M,{marginLeft:x,marginTop:p}),!S.styledMode&&v.shadows&&v.shadows.forEach(function(D){E(D,{marginLeft:x+1,marginTop:p+1})}),v.inverted&&[].forEach.call(M.childNodes,function(D){S.invertChild(D,M)}),M.tagName==="SPAN"){var e=v.rotation,s=v.textWidth&&c(v.textWidth),n=[e,a,M.innerHTML,v.textWidth,v.textAlign].join(","),h=void 0,b=!1;if(s!==v.oldTextWidth){var k=v.textPxLength?v.textPxLength:(E(M,{width:"",whiteSpace:o||"nowrap"}),M.offsetWidth);(s>v.oldTextWidth||k>s)&&(/[ \-]/.test(M.textContent||M.innerText)||M.style.textOverflow==="ellipsis")&&(E(M,{width:k>s||e?s+"px":"auto",display:"block",whiteSpace:o||"normal"}),v.oldTextWidth=s,b=!0)}v.hasBoxWidthChanged=b,n!==v.cTT&&(h=S.fontMetrics(M.style.fontSize,M).b,!A(e)||e===(v.oldRotation||0)&&a===v.oldAlign||v.setSpanRotation(e,t,h),v.getSpanCorrection(!A(e)&&v.textPxLength||M.offsetWidth,h,t,e,a)),E(M,{left:g+(v.xCorr||0)+"px",top:r+(v.yCorr||0)+"px"}),v.cTT=n,v.oldRotation=e,v.oldAlign=a}}else this.alignOnAdd=!0},u.prototype.setSpanRotation=function(v,S,M){var x={},p=V&&!/Edge/.test(I.navigator.userAgent)?"-ms-transform":F?"-webkit-transform":Z?"MozTransform":I.opera?"-o-transform":void 0;p&&(x[p]=x.transform="rotate("+v+"deg)",x[p+(Z?"Origin":"-origin")]=x.transformOrigin=100*S+"% "+M+"px",E(this.element,x))},u.composedClasses=[],u}(B);return f}),et(_,"Core/Renderer/HTML/HTMLRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m])},$(P,y)},function(P,y){function c(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}),V=U.attr,F=U.createElement,I=U.extend,E=U.pick,A=function(P){function y(){return P!==null&&P.apply(this,arguments)||this}return Z(y,P),y.compose=function(c){if(y.composedClasses.indexOf(c)===-1){y.composedClasses.push(c);var f=y.prototype;c.prototype.html=f.html}return c},y.prototype.html=function(c,f,m){var u=this.createElement("span"),v=u.element,S=u.renderer,M=S.isSVG,x=function(p,g){["opacity","visibility"].forEach(function(r){p[r+"Setter"]=function(a,t,i){var o=p.div?p.div.style:g;B.prototype[r+"Setter"].call(this,a,t,i),o&&(o[t]=a)}}),p.addedSetters=!0};return u.textSetter=function(p){p!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,E(p,"")),this.textStr=p,u.doTransform=!0)},M&&x(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(p,g){g==="align"?u.alignValue=u.textAlign=p:u[g]=p,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:c,x:Math.round(f),y:Math.round(m)}).css({position:"absolute"}),S.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",u.css=u.htmlCss,M&&(u.add=function(p){var g,r,a=S.box.parentNode,t=[];if(this.parentGroup=p,p){if(!(g=p.div)){for(r=p;r;)t.push(r),r=r.parentGroup;t.reverse().forEach(function(i){var o=V(i.element,"class");function e(h,b){i[b]=h,b==="translateX"?n.left=h+"px":n.top=h+"px",i.doTransform=!0}var s=i.styles||{},n=(g=i.div=i.div||F("div",o?{className:o}:void 0,{position:"absolute",left:(i.translateX||0)+"px",top:(i.translateY||0)+"px",display:i.display,opacity:i.opacity,cursor:s.cursor,pointerEvents:s.pointerEvents,visibility:i.visibility},g||a)).style;I(i,{classSetter:function(h){return function(b){this.element.setAttribute("class",b),h.className=b}}(g),on:function(){return t[0].div&&u.on.apply({element:t[0].div,onEvents:i.onEvents},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||x(i)})}}else g=a;return g.appendChild(v),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},y.composedClasses=[],y}(X);return A}),et(_,"Core/Axis/AxisDefaults.js",[],function(){var G;return function(B){B.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},B.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},B.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},B.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},B.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},B.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(G||(G={})),G}),et(_,"Core/Foundation.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.isFunction,$=G.objectEach,Z=G.removeEvent;return function(V){V.registerEventOptions=function(F,I){F.eventOptions=F.eventOptions||{},$(I.events,function(E,A){F.eventOptions[A]!==E&&(F.eventOptions[A]&&(Z(F,A,F.eventOptions[A]),delete F.eventOptions[A]),U(E)&&(F.eventOptions[A]=E,X(F,A,E)))})}}(B||(B={})),B}),et(_,"Core/Axis/Tick.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=B.deg2rad,$=X.clamp,Z=X.correctFloat,V=X.defined,F=X.destroyObjectProperties,I=X.extend,E=X.fireEvent,A=X.isNumber,P=X.merge,y=X.objectEach,c=X.pick;return function(){function f(m,u,v,S,M){this.isNew=!0,this.isNewLabel=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=M||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||S||this.addLabel()}return f.prototype.addLabel=function(){var m,u,v,S=this,M=S.axis,x=M.options,p=M.chart,g=M.categories,r=M.logarithmic,a=M.names,t=S.pos,i=c(S.options&&S.options.labels,x.labels),o=M.tickPositions,e=t===o[0],s=t===o[o.length-1],n=(!i.step||i.step===1)&&M.tickInterval===1,h=o.info,b=S.label,k=this.parameters.category||(g?c(g[t],a[t],t):t);r&&A(k)&&(k=Z(r.lin2log(k))),M.dateTime&&(h?m=(u=p.time.resolveDTLFormat(x.dateTimeLabelFormats[!x.grid&&h.higherRanks[t]||h.unitName])).main:A(k)&&(m=M.dateTime.getXDateFormat(k,x.dateTimeLabelFormats||{}))),S.isFirst=e,S.isLast=s;var D={axis:M,chart:p,dateTimeLabelFormat:m,isFirst:e,isLast:s,pos:t,tick:S,tickPositionInfo:h,value:k};E(this,"labelFormat",D);var d=function(N){return i.formatter?i.formatter.call(N,N):i.format?(N.text=M.defaultLabelFormatter.call(N,N),G.format(i.format,N,p)):M.defaultLabelFormatter.call(N,N)},C=d.call(D,D),T=u&&u.list;S.shortenLabel=T?function(){for(v=0;v<T.length;v++)if(I(D,{dateTimeLabelFormat:T[v]}),b.attr({text:d.call(D,D)}),b.getBBox().width<M.getSlotWidth(S)-2*i.padding)return;b.attr({text:""})}:void 0,n&&M._addedPlotLB&&S.moveLabel(C,i),V(b)||S.movedLabel?b&&b.textStr!==C&&!n&&(!b.textWidth||i.style.width||b.styles.width||b.css({width:null}),b.attr({text:C}),b.textPxLength=b.getBBox().width):(S.label=b=S.createLabel({x:0,y:0},C,i),S.rotation=0)},f.prototype.createLabel=function(m,u,v){var S=this.axis,M=S.chart,x=V(u)&&v.enabled?M.renderer.text(u,m.x,m.y,v.useHTML).add(S.labelGroup):null;return x&&(M.styledMode||x.css(P(v.style)),x.textPxLength=x.getBBox().width),x},f.prototype.destroy=function(){F(this,this.axis)},f.prototype.getPosition=function(m,u,v,S){var M=this.axis,x=M.chart,p=S&&x.oldChartHeight||x.chartHeight,g={x:m?Z(M.translate(u+v,void 0,void 0,S)+M.transB):M.left+M.offset+(M.opposite?(S&&x.oldChartWidth||x.chartWidth)-M.right-M.left:0),y:m?p-M.bottom+M.offset-(M.opposite?M.height:0):Z(p-M.translate(u+v,void 0,void 0,S)-M.transB)};return g.y=$(g.y,-1e5,1e5),E(this,"afterGetPosition",{pos:g}),g},f.prototype.getLabelPosition=function(m,u,v,S,M,x,p,g){var r,a,t=this.axis,i=t.transA,o=t.isLinked&&t.linkedParent?t.linkedParent.reversed:t.reversed,e=t.staggerLines,s=t.tickRotCorr||{x:0,y:0},n=S||t.reserveSpaceDefault?0:-t.labelOffset*(t.labelAlign==="center"?.5:1),h={};return r=t.side===0?v.rotation?-8:-v.getBBox().height:t.side===2?s.y+8:Math.cos(v.rotation*U)*(s.y-v.getBBox(!1,0).height/2),V(M.y)&&(r=t.side===0&&t.horiz?M.y+r:M.y),m=m+M.x+n+s.x-(x&&S?x*i*(o?-1:1):0),u=u+r-(x&&!S?x*i*(o?1:-1):0),e&&(a=p/(g||1)%e,t.opposite&&(a=e-a-1),u+=a*(t.labelOffset/e)),h.x=m,h.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:h,tickmarkOffset:x,index:p}),h},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,S,M,x){return x.crispLine([["M",m,u],["L",m+(M?0:-v),u+(M?v:0)]],S)},f.prototype.handleOverflow=function(m){var u,v,S=this,M=this.axis,x=M.options.labels,p=m.x,g=M.chart.chartWidth,r=M.chart.spacing,a=c(M.labelLeft,Math.min(M.pos,r[3])),t=c(M.labelRight,Math.max(M.isRadial?0:M.pos+M.len,g-r[1])),i=this.label,o=this.rotation,e={left:0,center:.5,right:1}[M.labelAlign||i.attr("align")],s=i.getBBox().width,n=M.getSlotWidth(S),h=e,b={},k=n,D=1;o||x.overflow!=="justify"?o<0&&p-e*s<a?v=Math.round(p/Math.cos(o*U)-a):o>0&&p+e*s>t&&(v=Math.round((g-p)/Math.cos(o*U))):(u=p+(1-e)*s,p-e*s<a?k=m.x+k*(1-e)-a:u>t&&(k=t-m.x+k*e,D=-1),(k=Math.min(n,k))<n&&M.labelAlign==="center"&&(m.x+=D*(n-k-h*(n-Math.min(s,k)))),(s>k||M.autoRotation&&(i.styles||{}).width)&&(v=k)),v&&(S.shortenLabel?S.shortenLabel():(b.width=Math.floor(v)+"px",(x.style||{}).textOverflow||(b.textOverflow="ellipsis"),i.css(b)))},f.prototype.moveLabel=function(m,u){var v,S,M,x=this,p=x.label,g=x.axis,r=g.reversed,a=!1;p&&p.textStr===m?(x.movedLabel=p,a=!0,delete x.label):y(g.ticks,function(t){a||t.isNew||t===x||!t.label||t.label.textStr!==m||(x.movedLabel=t.label,a=!0,t.labelPos=x.movedLabel.xy,delete t.label)}),a||!x.labelPos&&!p||(v=x.labelPos||p.xy,S=g.horiz?r?0:g.width+g.left:v.x,M=g.horiz?v.y:r?g.width+g.left:0,x.movedLabel=x.createLabel({x:S,y:M},m,u),x.movedLabel&&x.movedLabel.attr({opacity:0}))},f.prototype.render=function(m,u,v){var S=this,M=S.axis,x=M.horiz,p=S.pos,g=c(S.tickmarkOffset,M.tickmarkOffset),r=S.getPosition(x,p,g,u),a=r.x,t=r.y,i=x&&a===M.pos+M.len||!x&&t===M.pos?-1:1,o=c(v,S.label&&S.label.newOpacity,1);v=c(v,1),this.isActive=!0,this.renderGridLine(u,v,i),this.renderMark(r,v,i),this.renderLabel(r,u,o,m),S.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var S,M=this,x=M.axis,p=x.options,g={},r=M.pos,a=M.type,t=c(M.tickmarkOffset,x.tickmarkOffset),i=x.chart.renderer,o=M.gridLine,e=p.gridLineWidth,s=p.gridLineColor,n=p.gridLineDashStyle;M.type==="minor"&&(e=p.minorGridLineWidth,s=p.minorGridLineColor,n=p.minorGridLineDashStyle),o||(x.chart.styledMode||(g.stroke=s,g["stroke-width"]=e||0,g.dashstyle=n),a||(g.zIndex=1),m&&(u=0),M.gridLine=o=i.path().attr(g).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(x.gridGroup)),o&&(S=x.getPlotLinePath({value:r+t,lineWidth:o.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&o[m||M.isNew?"attr":"animate"]({d:S,opacity:u})},f.prototype.renderMark=function(m,u,v){var S=this,M=S.axis,x=M.options,p=M.chart.renderer,g=S.type,r=M.tickSize(g?g+"Tick":"tick"),a=m.x,t=m.y,i=c(x[g!=="minor"?"tickWidth":"minorTickWidth"],!g&&M.isXAxis?1:0),o=x[g!=="minor"?"tickColor":"minorTickColor"],e=S.mark,s=!e;r&&(M.opposite&&(r[0]=-r[0]),e||(S.mark=e=p.path().addClass("highcharts-"+(g?g+"-":"")+"tick").add(M.axisGroup),M.chart.styledMode||e.attr({stroke:o,"stroke-width":i})),e[s?"attr":"animate"]({d:S.getMarkPath(a,t,r[0],e.strokeWidth()*v,M.horiz,p),opacity:u}))},f.prototype.renderLabel=function(m,u,v,S){var M=this,x=M.axis,p=x.horiz,g=x.options,r=M.label,a=g.labels,t=a.step,i=c(M.tickmarkOffset,x.tickmarkOffset),o=m.x,e=m.y,s=!0;r&&A(o)&&(r.xy=m=M.getLabelPosition(o,e,r,p,a,i,S,t),M.isFirst&&!M.isLast&&!g.showFirstLabel||M.isLast&&!M.isFirst&&!g.showLastLabel?s=!1:!p||a.step||a.rotation||u||v===0||M.handleOverflow(m),t&&S%t&&(s=!1),s&&A(m.y)?(m.opacity=v,r[M.isNewLabel?"attr":"animate"](m).show(!0),M.isNewLabel=!1):(r.hide(),M.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m,u,v=this,S=v.label,M=v.axis,x=M.reversed;S&&!v.isNew&&(m=M.horiz?x?M.left:M.width+M.left:S.xy.x,u=M.horiz?S.xy.y:x?M.width+M.top:M.top,S.animate({x:m,y:u,opacity:0},void 0,S.destroy),delete v.label),M.isDirty=!0,v.label=v.movedLabel,delete v.movedLabel},f}()}),et(_,"Core/Axis/Axis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/AxisDefaults.js"],_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F){var I=G.animObject,E=U.defaultOptions,A=$.registerEventOptions,P=Z.deg2rad,y=F.arrayMax,c=F.arrayMin,f=F.clamp,m=F.correctFloat,u=F.defined,v=F.destroyObjectProperties,S=F.erase,M=F.error,x=F.extend,p=F.fireEvent,g=F.isArray,r=F.isNumber,a=F.isString,t=F.merge,i=F.normalizeTickInterval,o=F.objectEach,e=F.pick,s=F.relativeLength,n=F.removeEvent,h=F.splat,b=F.syncTimeout,k=function(D,d){return i(d,void 0,void 0,e(D.options.allowDecimals,d<.5||D.tickAmount!==void 0),!!D.tickAmount)};return function(){function D(d,C){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(d,C)}return D.prototype.init=function(d,C){var T=C.isX,N=this;N.chart=d,N.horiz=d.inverted&&!N.isZAxis?!T:T,N.isXAxis=T,N.coll=N.coll||(T?"xAxis":"yAxis"),p(this,"init",{userOptions:C}),N.opposite=e(C.opposite,N.opposite),N.side=e(C.side,N.side,N.horiz?N.opposite?0:2:N.opposite?1:3),N.setOptions(C);var z=this.options,L=z.labels,O=z.type;N.userOptions=C,N.minPixelPadding=0,N.reversed=e(z.reversed,N.reversed),N.visible=z.visible,N.zoomEnabled=z.zoomEnabled,N.hasNames=O==="category"||z.categories===!0,N.categories=z.categories||(N.hasNames?[]:void 0),N.names||(N.names=[],N.names.keys={}),N.plotLinesAndBandsGroups={},N.positiveValuesOnly=!!N.logarithmic,N.isLinked=u(z.linkedTo),N.ticks={},N.labelEdge=[],N.minorTicks={},N.plotLinesAndBands=[],N.alternateBands={},N.len=0,N.minRange=N.userMinRange=z.minRange||z.maxZoom,N.range=z.range,N.offset=z.offset||0,N.max=null,N.min=null;var j=e(z.crosshair,h(d.options.tooltip.crosshairs)[T?0:1]);N.crosshair=j===!0?{}:j,d.axes.indexOf(N)===-1&&(T?d.axes.splice(d.xAxis.length,0,N):d.axes.push(N),d[N.coll].push(N)),N.series=N.series||[],d.inverted&&!N.isZAxis&&T&&N.reversed===void 0&&(N.reversed=!0),N.labelRotation=r(L.rotation)?L.rotation:void 0,A(N,z),p(this,"afterInit")},D.prototype.setOptions=function(d){this.options=t(B.defaultXAxisOptions,this.coll==="yAxis"&&B.defaultYAxisOptions,[B.defaultTopAxisOptions,B.defaultRightAxisOptions,B.defaultBottomAxisOptions,B.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),p(this,"afterSetOptions",{userOptions:d})},D.prototype.defaultLabelFormatter=function(d){var C,T,N=this.axis,z=this.chart.numberFormatter,L=r(this.value)?this.value:NaN,O=N.chart.time,j=N.categories,Y=this.dateTimeLabelFormat,H=E.lang,W=H.numericSymbols,q=H.numericSymbolMagnitude||1e3,tt=N.logarithmic?Math.abs(L):N.tickInterval,J=W&&W.length;if(j)T="".concat(this.value);else if(Y)T=O.dateFormat(Y,L);else if(J&&tt>=1e3)for(;J--&&T===void 0;)tt>=(C=Math.pow(q,J+1))&&10*L%C==0&&W[J]!==null&&L!==0&&(T=z(L/C,-1)+W[J]);return T===void 0&&(T=Math.abs(L)>=1e4?z(L,-1):z(L,-1,void 0,"")),T},D.prototype.getSeriesExtremes=function(){var d,C=this,T=C.chart;p(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!T.options.chart.ignoreHiddenSeries){var z=N.options,L=void 0,O=z.threshold,j=void 0,Y=void 0;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&O<=0&&(O=null),C.isXAxis)(L=N.xData).length&&(L=C.logarithmic?L.filter(C.validatePositiveValue):L,j=(d=N.getXExtremes(L)).min,Y=d.max,r(j)||j instanceof Date||(L=L.filter(r),j=(d=N.getXExtremes(L)).min,Y=d.max),L.length&&(C.dataMin=Math.min(e(C.dataMin,j),j),C.dataMax=Math.max(e(C.dataMax,Y),Y)));else{var H=N.applyExtremes();r(H.dataMin)&&(j=H.dataMin,C.dataMin=Math.min(e(C.dataMin,j),j)),r(H.dataMax)&&(Y=H.dataMax,C.dataMax=Math.max(e(C.dataMax,Y),Y)),u(O)&&(C.threshold=O),z.softThreshold&&!C.positiveValuesOnly||(C.softThreshold=!1)}}})}),p(this,"afterGetSeriesExtremes")},D.prototype.translate=function(d,C,T,N,z,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding,H=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&z)&&O.lin2val,W=1,q=0,tt=N&&O.old?O.old.transA:O.transA,J=0;if(tt||(tt=O.transA),T&&(W*=-1,q=O.len),O.reversed&&(q-=(W*=-1)*(O.sector||O.len)),C)d=d*W+q,J=(d-=Y)/tt+j,H&&(J=O.lin2val(J));else{H&&(d=O.val2lin(d));var nt=W*(d-j)*tt;J=(O.isRadial?nt:m(nt))+q+W*Y+(r(L)?tt*L:0)}return J},D.prototype.toPixels=function(d,C){return this.translate(d,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(d,C){return this.translate(d-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(d){var C,T,N,z,L,O=this,j=O.chart,Y=O.left,H=O.top,W=d.old,q=d.value,tt=d.lineWidth,J=W&&j.oldChartHeight||j.chartHeight,nt=W&&j.oldChartWidth||j.chartWidth,lt=O.transB,gt=d.translatedValue,mt=d.force;function bt(dt,ot,at){return mt!=="pass"&&(dt<ot||dt>at)&&(mt?dt=f(dt,ot,at):L=!0),dt}var yt={value:q,lineWidth:tt,old:W,force:mt,acrossPanes:d.acrossPanes,translatedValue:gt};return p(this,"getPlotLinePath",yt,function(dt){gt=e(gt,O.translate(q,void 0,void 0,W)),gt=f(gt,-1e5,1e5),C=N=Math.round(gt+lt),T=z=Math.round(J-gt-lt),r(gt)?O.horiz?(T=H,z=J-O.bottom,C=N=bt(C,Y,Y+O.width)):(C=Y,N=nt-O.right,T=z=bt(T,H,H+O.height)):(L=!0,mt=!1),dt.path=L&&!mt?null:j.renderer.crispLine([["M",C,T],["L",N,z]],tt||1)}),yt.path},D.prototype.getLinearTickPositions=function(d,C,T){var N,z,L,O=m(Math.floor(C/d)*d),j=m(Math.ceil(T/d)*d),Y=[];if(m(O+d)===O&&(L=20),this.single)return[C];for(N=O;N<=j&&(Y.push(N),(N=m(N+d,L))!==z);)z=N;return Y},D.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},D.prototype.getMinorTickPositions=function(){var d,C=this,T=C.options,N=C.tickPositions,z=C.minorTickInterval,L=C.pointRangePadding||0,O=C.min-L,j=C.max+L,Y=j-O,H=[];if(Y&&Y/z<C.len/3){var W=C.logarithmic;if(W)this.paddedTicks.forEach(function(q,tt,J){tt&&H.push.apply(H,W.getLogTickPositions(z,J[tt-1],J[tt],!0))});else if(C.dateTime&&this.getMinorTickInterval()==="auto")H=H.concat(C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(z),O,j,T.startOfWeek));else for(d=O+(N[0]-O)%z;d<=j&&d!==H[0];d+=z)H.push(d)}return H.length!==0&&C.trimTicks(H),H},D.prototype.adjustForMinRange=function(){var d,C,T,N,z,L,O,j,Y,H=this,W=H.options,q=H.logarithmic,tt=H.min,J=H.max,nt=0;H.isXAxis&&H.minRange===void 0&&!q&&(u(W.min)||u(W.max)||u(W.floor)||u(W.ceiling)?H.minRange=null:(H.series.forEach(function(lt){if(z=lt.xData,L=lt.xIncrement?1:z.length-1,z.length>1)for(T=L;T>0;T--)N=z[T]-z[T-1],(!nt||N<nt)&&(nt=N)}),H.minRange=Math.min(5*nt,H.dataMax-H.dataMin))),J-tt<H.minRange&&(C=H.dataMax-H.dataMin>=H.minRange,O=[tt-(d=((Y=H.minRange)-J+tt)/2),e(W.min,tt-d)],C&&(O[2]=H.logarithmic?H.logarithmic.log2lin(H.dataMin):H.dataMin),j=[(tt=y(O))+Y,e(W.max,tt+Y)],C&&(j[2]=q?q.log2lin(H.dataMax):H.dataMax),(J=c(j))-tt<Y&&(O[0]=J-Y,O[1]=e(W.min,J-Y),tt=y(O))),H.min=tt,H.max=J},D.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(C){var T=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(T)&&N&&(d=u(d)?Math.min(d,T):T)}),d},D.prototype.nameToX=function(d){var C,T=g(this.options.categories),N=T?this.categories:this.names,z=d.options.x;return d.series.requireSorting=!1,u(z)||(z=this.options.uniqueNames&&N?T?N.indexOf(d.name):e(N.keys[d.name],-1):d.series.autoIncrement()),z===-1?!T&&N&&(C=N.length):C=z,C!==void 0?(this.names[C]=d.name,this.names.keys[d.name]=C):d.x&&(C=d.x),C},D.prototype.updateNames=function(){var d=this,C=this.names;C.length>0&&(Object.keys(C.keys).forEach(function(T){delete C.keys[T]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(T){T.xIncrement=null,T.points&&!T.isDirtyData||(d.max=Math.max(d.max,T.xData.length-1),T.processData(),T.generatePoints()),T.data.forEach(function(N,z){var L;N&&N.options&&N.name!==void 0&&(L=d.nameToX(N))!==void 0&&L!==N.x&&(N.x=L,T.xData[z]=L)})}))},D.prototype.setAxisTranslation=function(){var d,C,T=this,N=T.max-T.min,z=T.linkedParent,L=!!T.categories,O=T.isXAxis,j=T.axisPointRange||0,Y=0,H=0,W=T.transA;(O||L||j)&&(d=T.getClosest(),z?(Y=z.minPointOffset,H=z.pointRangePadding):T.series.forEach(function(q){var tt=L?1:O?e(q.options.pointRange,d,0):T.axisPointRange||0,J=q.options.pointPlacement;if(j=Math.max(j,tt),!T.single||L){var nt=q.is("xrange")?!O:O;Y=Math.max(Y,nt&&a(J)?0:tt/2),H=Math.max(H,nt&&J==="on"?0:tt)}}),C=T.ordinal&&T.ordinal.slope&&d?T.ordinal.slope/d:1,T.minPointOffset=Y*=C,T.pointRangePadding=H*=C,T.pointRange=Math.min(j,T.single&&L?1:N),O&&(T.closestPointRange=d)),T.translationSlope=T.transA=W=T.staticScale||T.len/(N+H||1),T.transB=T.horiz?T.left:T.bottom,T.minPixelPadding=W*Y,p(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(d){var C,T,N,z,L,O,j=this,Y=j.chart,H=j.logarithmic,W=j.options,q=j.isXAxis,tt=j.isLinked,J=W.tickPixelInterval,nt=j.categories,lt=j.softThreshold,gt=W.maxPadding,mt=W.minPadding,bt=r(W.tickInterval)&&W.tickInterval>=0?W.tickInterval:void 0,yt=r(j.threshold)?j.threshold:null;if(j.dateTime||nt||tt||this.getTickAmount(),L=e(j.userMin,W.min),O=e(j.userMax,W.max),tt?(j.linkedParent=Y[j.coll][W.linkedTo],T=j.linkedParent.getExtremes(),j.min=e(T.min,T.dataMin),j.max=e(T.max,T.dataMax),W.type!==j.linkedParent.options.type&&M(11,1,Y)):(lt&&u(yt)&&(j.dataMin>=yt?(N=yt,mt=0):j.dataMax<=yt&&(z=yt,gt=0)),j.min=e(L,N,j.dataMin),j.max=e(O,z,j.dataMax)),H&&(j.positiveValuesOnly&&!d&&Math.min(j.min,e(j.dataMin,j.min))<=0&&M(10,1,Y),j.min=m(H.log2lin(j.min),16),j.max=m(H.log2lin(j.max),16)),j.range&&u(j.max)&&(j.userMin=j.min=L=Math.max(j.dataMin,j.minFromRange()),j.userMax=O=j.max,j.range=null),p(j,"foundExtremes"),j.beforePadding&&j.beforePadding(),j.adjustForMinRange(),nt||j.axisPointRange||j.stacking&&j.stacking.usePercentage||tt||!u(j.min)||!u(j.max)||(C=j.max-j.min)&&(!u(L)&&mt&&(j.min-=C*mt),!u(O)&>&&(j.max+=C*gt)),r(j.userMin)||(r(W.softMin)&&W.softMin<j.min&&(j.min=L=W.softMin),r(W.floor)&&(j.min=Math.max(j.min,W.floor))),r(j.userMax)||(r(W.softMax)&&W.softMax>j.max&&(j.max=O=W.softMax),r(W.ceiling)&&(j.max=Math.min(j.max,W.ceiling))),lt&&u(j.dataMin)&&(yt=yt||0,!u(L)&&j.min<yt&&j.dataMin>=yt?j.min=j.options.minRange?Math.min(yt,j.max-j.minRange):yt:!u(O)&&j.max>yt&&j.dataMax<=yt&&(j.max=j.options.minRange?Math.max(yt,j.min+j.minRange):yt)),r(j.min)&&r(j.max)&&!this.chart.polar&&j.min>j.max&&(u(j.options.min)?j.max=j.min:u(j.options.max)&&(j.min=j.max)),j.min===j.max||j.min===void 0||j.max===void 0?j.tickInterval=1:tt&&j.linkedParent&&!bt&&J===j.linkedParent.options.tickPixelInterval?j.tickInterval=bt=j.linkedParent.tickInterval:j.tickInterval=e(bt,this.tickAmount?(j.max-j.min)/Math.max(this.tickAmount-1,1):void 0,nt?1:(j.max-j.min)*J/Math.max(j.len,J)),q&&!d){var dt=j.min!==(j.old&&j.old.min)||j.max!==(j.old&&j.old.max);j.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(dt)}),p(this,"postProcessData",{hasExtremesChanged:dt})}j.setAxisTranslation(),p(this,"initialAxisTranslation"),j.pointRange&&!bt&&(j.tickInterval=Math.max(j.pointRange,j.tickInterval));var ot=e(W.minTickInterval,j.dateTime&&!j.series.some(function(at){return at.noSharedTooltip})?j.closestPointRange:0);!bt&&j.tickInterval<ot&&(j.tickInterval=ot),j.dateTime||j.logarithmic||bt||(j.tickInterval=k(j,j.tickInterval)),this.tickAmount||(j.tickInterval=j.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var d,C=this,T=this.options,N=T.tickPositions,z=T.tickPositioner,L=this.getMinorTickInterval(),O=this.hasVerticalPanning(),j=this.coll==="colorAxis",Y=(j||!O)&&T.startOnTick,H=(j||!O)&&T.endOnTick,W=[];if(this.tickmarkOffset=this.categories&&T.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=L==="auto"&&this.tickInterval?this.tickInterval/5:L,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||T.allowDecimals!==!1),N)W=N.slice();else if(r(this.min)&&r(this.max)){if(C.ordinal&&C.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(C.dateTime)W=C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(this.tickInterval,T.units),this.min,this.max,T.startOfWeek,C.ordinal&&C.ordinal.positions,this.closestPointRange,!0);else if(C.logarithmic)W=C.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=this.tickInterval,tt=q;tt<=2*q&&(W=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&W.length>this.tickAmount);)this.tickInterval=k(this,tt*=1.1);else W=[this.min,this.max],M(19,!1,this.chart);W.length>this.len&&(W=[W[0],W[W.length-1]])[0]===W[1]&&(W.length=1),z&&(this.tickPositions=W,(d=z.apply(C,[this.min,this.max]))&&(W=d))}this.tickPositions=W,this.paddedTicks=W.slice(0),this.trimTicks(W,Y,H),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&W.length<2&&!this.categories&&!this.series.some(function(J){return J.is("heatmap")&&J.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),N||d||this.adjustTickAmount()),p(this,"afterSetTickPositions")},D.prototype.trimTicks=function(d,C,T){var N=d[0],z=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(p(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(T)this.max=z;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((z+N)/2)}},D.prototype.alignToOthers=function(){var d,C=this,T=[this],N=C.options,z=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||z)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(H){var W=H.horiz,q=H.options;return[W?q.left:q.top,q.width,q.height,q.pane].join(",")},j=O(this);this.chart[this.coll].forEach(function(H){var W=H.series;W.length&&W.some(function(q){return q.visible})&&H!==C&&O(H)===j&&(d=!0,T.push(H))})}if(d&&z){T.forEach(function(H){var W=H.getThresholdAlignment(C);r(W)&&L.push(W)});var Y=L.length>1?L.reduce(function(H,W){return H+W},0)/L.length:void 0;T.forEach(function(H){H.thresholdAlignment=Y})}return d},D.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(T){return T.isDirty||T.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold)){var C=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(C=1-C),C}},D.prototype.getTickAmount=function(){var d=this.options,C=d.tickPixelInterval,T=d.tickAmount;!u(d.tickInterval)&&!T&&this.len<C&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(T=2),!T&&this.alignToOthers()&&(T=Math.ceil(this.len/C)+1),T<4&&(this.finalTickAmt=T,T=5),this.tickAmount=T},D.prototype.adjustTickAmount=function(){var d,C,T,N=this,z=N.finalTickAmt,L=N.max,O=N.min,j=N.options,Y=N.tickPositions,H=N.tickAmount,W=N.thresholdAlignment,q=Y&&Y.length,tt=e(N.threshold,N.softThreshold?0:null),J=N.tickInterval,nt=function(){return Y.push(m(Y[Y.length-1]+J))},lt=function(){return Y.unshift(m(Y[0]-J))};if(r(W)&&(T=W<.5?Math.ceil(W*(H-1)):Math.floor(W*(H-1)),j.reversed&&(T=H-1-T)),N.hasData()&&r(O)&&r(L)){var gt=function(){N.transA*=(q-1)/(H-1),N.min=j.startOnTick?Y[0]:Math.min(O,Y[0]),N.max=j.endOnTick?Y[Y.length-1]:Math.max(L,Y[Y.length-1])};if(r(T)&&r(N.threshold)){for(;Y[T]!==tt||Y.length!==H||Y[0]>O||Y[Y.length-1]<L;){for(Y.length=0,Y.push(N.threshold);Y.length<H;)Y[T]===void 0||Y[T]>N.threshold?lt():nt();if(J>8*N.tickInterval)break;J*=2}gt()}else if(q<H){for(;Y.length<H;)Y.length%2||O===tt?nt():lt();gt()}if(u(z)){for(C=d=Y.length;C--;)(z===3&&C%2==1||z<=2&&C>0&&C<d-1)&&Y.splice(C,1);N.finalTickAmt=void 0}}},D.prototype.setScale=function(){var d=this,C=!1,T=!1;d.series.forEach(function(z){C=C||z.isDirtyData||z.isDirty,T=T||z.xAxis&&z.xAxis.isDirty||!1}),d.setAxisSize();var N=d.len!==(d.old&&d.old.len);N||C||T||d.isLinked||d.forceRedraw||d.userMin!==(d.old&&d.old.userMin)||d.userMax!==(d.old&&d.old.userMax)||d.alignToOthers()?(d.stacking&&(d.stacking.resetStacks(),d.stacking.buildStacks()),d.forceRedraw=!1,d.getSeriesExtremes(),d.setTickInterval(),d.isDirty||(d.isDirty=N||d.min!==(d.old&&d.old.min)||d.max!==(d.old&&d.old.max))):d.stacking&&d.stacking.cleanStacks(),C&&d.panningState&&(d.panningState.isDirty=!0),p(this,"afterSetScale")},D.prototype.setExtremes=function(d,C,T,N,z){var L=this,O=L.chart;T=e(T,!0),L.series.forEach(function(j){delete j.kdTree}),z=x(z,{min:d,max:C}),p(L,"setExtremes",z,function(){L.userMin=d,L.userMax=C,L.eventArgs=z,T&&O.redraw(N)})},D.prototype.zoom=function(d,C){var T=this,N=this.dataMin,z=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(z,e(L.max,z)),Y={newMin:d,newMax:C};return p(this,"zoom",Y,function(H){var W=H.newMin,q=H.newMax;W===T.min&&q===T.max||(T.allowZoomOutside||(u(N)&&(W<O&&(W=O),W>j&&(W=j)),u(z)&&(q<O&&(q=O),q>j&&(q=j))),T.displayBtn=W!==void 0||q!==void 0,T.setExtremes(W,q,!1,void 0,{trigger:"zoom"})),H.zoomed=!0}),Y.zoomed},D.prototype.setAxisSize=function(){var d=this.chart,C=this.options,T=C.offsets||[0,0,0,0],N=this.horiz,z=this.width=Math.round(s(e(C.width,d.plotWidth-T[3]+T[1]),d.plotWidth)),L=this.height=Math.round(s(e(C.height,d.plotHeight-T[0]+T[2]),d.plotHeight)),O=this.top=Math.round(s(e(C.top,d.plotTop+T[0]),d.plotHeight,d.plotTop)),j=this.left=Math.round(s(e(C.left,d.plotLeft+T[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-L-O,this.right=d.chartWidth-z-j,this.len=Math.max(N?z:L,0),this.pos=N?j:O},D.prototype.getExtremes=function(){var d=this,C=d.logarithmic;return{min:C?m(C.lin2log(d.min)):d.min,max:C?m(C.lin2log(d.max)):d.max,dataMin:d.dataMin,dataMax:d.dataMax,userMin:d.userMin,userMax:d.userMax}},D.prototype.getThreshold=function(d){var C=this,T=C.logarithmic,N=T?T.lin2log(C.min):C.min,z=T?T.lin2log(C.max):C.max;return d===null||d===-1/0?d=N:d===1/0?d=z:N>d?d=N:z<d&&(d=z),C.translate(d,0,1,0,1)},D.prototype.autoLabelAlign=function(d){var C=(e(d,0)-90*this.side+720)%360,T={align:"center"};return p(this,"autoLabelAlign",T,function(N){C>15&&C<165?N.align="right":C>195&&C<345&&(N.align="left")}),T.align},D.prototype.tickSize=function(d){var C,T=this.options,N=e(T[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),z=T[d==="tick"?"tickLength":"minorTickLength"];N&&z&&(T[d+"Position"]==="inside"&&(z=-z),C=[z,N]);var L={tickSize:C};return p(this,"afterTickSize",L),L.tickSize},D.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},D.prototype.unsquish=function(){var d,C,T=this.options.labels,N=this.horiz,z=this.tickInterval,L=this.len/(((this.categories?1:0)+this.max-this.min)/z),O=T.rotation,j=this.labelMetrics(),Y=Math.max(this.max-this.min,0),H=function(mt){var bt=mt/(L||1);return(bt=bt>1?Math.ceil(bt):1)*z>Y&&mt!==1/0&&L!==1/0&&Y&&(bt=Math.ceil(Y/z)),m(bt*z)},W=z,q=Number.MAX_VALUE;if(N){if(T.staggerLines||(r(O)?C=[O]:L<T.autoRotationLimit&&(C=T.autoRotation)),C)for(var tt=void 0,J=void 0,nt=0,lt=C;nt<lt.length;nt++){var gt=lt[nt];(gt===O||gt&>>=-90&><=90)&&(J=(tt=H(Math.abs(j.h/Math.sin(P*gt))))+Math.abs(gt/360))<q&&(q=J,d=gt,W=tt)}}else W=H(j.h);return this.autoRotation=C,this.labelRotation=e(d,r(O)?O:0),T.step?z:W},D.prototype.getSlotWidth=function(d){var C=this.chart,T=this.horiz,N=this.options.labels,z=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(T&&N.step<2)return N.rotation?0:(this.staggerLines||1)*this.len/z;if(!T){var O=N.style.width;if(O!==void 0)return parseInt(String(O),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var d,C,T,N,z,L=this.chart,O=L.renderer,j=this.tickPositions,Y=this.ticks,H=this.options.labels,W=H.style,q=this.horiz,tt=this.getSlotWidth(),J=Math.max(1,Math.round(tt-2*H.padding)),nt={},lt=this.labelMetrics(),gt=W.textOverflow,mt=0;if(a(H.rotation)||(nt.rotation=H.rotation||0),j.forEach(function(bt){var yt=Y[bt];yt.movedLabel&&yt.replaceMovedLabel(),yt&&yt.label&&yt.label.textPxLength>mt&&(mt=yt.label.textPxLength)}),this.maxLabelLength=mt,this.autoRotation)mt>J&&mt>lt.h?nt.rotation=this.labelRotation:this.labelRotation=0;else if(tt&&(d=J,!gt))for(C="clip",N=j.length;!q&&N--;)z=j[N],(T=Y[z].label)&&(T.styles&&T.styles.textOverflow==="ellipsis"?T.css({textOverflow:"clip"}):T.textPxLength>tt&&T.css({width:tt+"px"}),T.getBBox().height>this.len/j.length-(lt.h-lt.f)&&(T.specificTextOverflow="ellipsis"));nt.rotation&&(d=mt>.5*L.chartHeight?.33*L.chartHeight:mt,gt||(C="ellipsis")),this.labelAlign=H.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(nt.align=this.labelAlign),j.forEach(function(bt){var yt=Y[bt],dt=yt&&yt.label,ot=W.width,at={};dt&&(dt.attr(nt),yt.shortenLabel?yt.shortenLabel():d&&!ot&&W.whiteSpace!=="nowrap"&&(d<dt.textPxLength||dt.element.tagName==="SPAN")?(at.width=d+"px",gt||(at.textOverflow=dt.specificTextOverflow||C),dt.css(at)):dt.styles&&dt.styles.width&&!at.width&&!ot&&dt.css({width:null}),delete dt.specificTextOverflow,yt.rotation=nt.rotation)},this),this.tickRotCorr=O.rotCorr(lt.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(d){var C,T=this,N=T.chart.renderer,z=T.horiz,L=T.opposite,O=T.options.title,j=T.chart.styledMode;T.axisTitle||((C=O.textAlign)||(C=(z?{low:"left",middle:"center",high:"right"}:{low:L?"right":"left",middle:"center",high:L?"left":"right"})[O.align]),T.axisTitle=N.text(O.text||"",0,0,O.useHTML).attr({zIndex:7,rotation:O.rotation,align:C}).addClass("highcharts-axis-title"),j||T.axisTitle.css(t(O.style)),T.axisTitle.add(T.axisGroup),T.axisTitle.isNew=!0),j||O.style.width||T.isRadial||T.axisTitle.css({width:T.len+"px"}),T.axisTitle[d?"show":"hide"](d)},D.prototype.generateTick=function(d){var C=this.ticks;C[d]?C[d].addLabel():C[d]=new V(this,d)},D.prototype.getOffset=function(){var d,C,T,N,z=this,L=this,O=L.chart,j=L.horiz,Y=L.options,H=L.side,W=L.ticks,q=L.tickPositions,tt=L.coll,J=L.axisParent,nt=O.renderer,lt=O.inverted&&!L.isZAxis?[1,0,3,2][H]:H,gt=L.hasData(),mt=Y.title,bt=Y.labels,yt=O.axisOffset,dt=O.clipOffset,ot=[-1,1,1,-1][H],at=Y.className,ut=0,vt=0,Ct=0;if(L.showAxis=d=gt||Y.showEmpty,L.staggerLines=L.horiz&&bt.staggerLines||void 0,!L.axisGroup){var xt=function(Mt,Tt,Lt){return nt.g(Mt).attr({zIndex:Lt}).addClass("highcharts-".concat(tt.toLowerCase()).concat(Tt," ")+(z.isRadial?"highcharts-radial-axis".concat(Tt," "):"")+(at||"")).add(J)};L.gridGroup=xt("grid","-grid",Y.gridZIndex),L.axisGroup=xt("axis","",Y.zIndex),L.labelGroup=xt("axis-labels","-labels",bt.zIndex)}if(gt||L.isLinked?(q.forEach(function(Mt){L.generateTick(Mt)}),L.renderUnsquish(),L.reserveSpaceDefault=H===0||H===2||{1:"left",3:"right"}[H]===L.labelAlign,e(bt.reserveSpace,L.labelAlign==="center"||null,L.reserveSpaceDefault)&&q.forEach(function(Mt){Ct=Math.max(W[Mt].getLabelSize(),Ct)}),L.staggerLines&&(Ct*=L.staggerLines),L.labelOffset=Ct*(L.opposite?-1:1)):o(W,function(Mt,Tt){Mt.destroy(),delete W[Tt]}),mt&&mt.text&&mt.enabled!==!1&&(L.addTitle(d),d&&mt.reserveSpace!==!1&&(L.titleOffset=ut=L.axisTitle.getBBox()[j?"height":"width"],C=mt.offset,vt=u(C)?0:e(mt.margin,j?5:10))),L.renderLine(),L.offset=ot*e(Y.offset,yt[H]?yt[H]+(Y.margin||0):0),L.tickRotCorr=L.tickRotCorr||{x:0,y:0},N=H===0?-L.labelMetrics().h:H===2?L.tickRotCorr.y:0,T=Math.abs(Ct)+vt,Ct&&(T-=N,T+=ot*(j?e(bt.y,L.tickRotCorr.y+8*ot):bt.x)),L.axisTitleMargin=e(C,T),L.getMaxLabelDimensions&&(L.maxLabelDimensions=L.getMaxLabelDimensions(W,q)),tt!=="colorAxis"){var St=this.tickSize("tick");yt[H]=Math.max(yt[H],(L.axisTitleMargin||0)+ut+ot*L.offset,T,q&&q.length&&St?St[0]+ot*L.offset:0);var wt=!L.axisLine||Y.offset?0:2*Math.floor(L.axisLine.strokeWidth()/2);dt[lt]=Math.max(dt[lt],wt)}p(this,"afterGetOffset")},D.prototype.getLinePath=function(d){var C=this.chart,T=this.opposite,N=this.offset,z=this.horiz,L=this.left+(T?this.width:0)+N,O=C.chartHeight-this.bottom-(T?this.height:0)+N;return T&&(d*=-1),C.renderer.crispLine([["M",z?this.left:L,z?O:this.top],["L",z?C.chartWidth-this.right:L,z?O:C.chartHeight-this.bottom]],d)},D.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}))},D.prototype.getTitlePosition=function(){var d=this.horiz,C=this.left,T=this.top,N=this.len,z=this.options.title,L=d?C:T,O=this.opposite,j=this.offset,Y=z.x,H=z.y,W=this.axisTitle,q=this.chart.renderer.fontMetrics(z.style.fontSize,W),tt=W?Math.max(W.getBBox(!1,0).height-q.h-1,0):0,J={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[z.align],nt=(d?T+this.height:C)+(d?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-tt,tt,q.f,-tt][this.side],lt={x:d?J+Y:nt+(O?this.width:0)+j+Y,y:d?nt+H-(O?this.height:0)+j:J+H};return p(this,"afterGetTitlePosition",{titlePosition:lt}),lt},D.prototype.renderMinorTick=function(d,C){var T=this.minorTicks;T[d]||(T[d]=new V(this,d,"minor")),C&&T[d].isNew&&T[d].render(null,!0),T[d].render(null,!1,1)},D.prototype.renderTick=function(d,C,T){var N=this,z=N.isLinked,L=N.ticks;(!z||d>=N.min&&d<=N.max||N.grid&&N.grid.isColumn)&&(L[d]||(L[d]=new V(N,d)),T&&L[d].isNew&&L[d].render(C,!0,-1),L[d].render(C))},D.prototype.render=function(){var d,C,T=this,N=T.chart,z=T.logarithmic,L=N.renderer,O=T.options,j=T.isLinked,Y=T.tickPositions,H=T.axisTitle,W=T.ticks,q=T.minorTicks,tt=T.alternateBands,J=O.stackLabels,nt=O.alternateGridColor,lt=T.tickmarkOffset,gt=T.axisLine,mt=T.showAxis,bt=I(L.globalAnimation);if(T.labelEdge.length=0,T.overlap=!1,[W,q,tt].forEach(function(ot){o(ot,function(at){at.isActive=!1})}),T.hasData()||j){var yt=T.chart.hasRendered&&T.old&&r(T.old.min);T.minorTickInterval&&!T.categories&&T.getMinorTickPositions().forEach(function(ot){T.renderMinorTick(ot,yt)}),Y.length&&(Y.forEach(function(ot,at){T.renderTick(ot,at,yt)}),lt&&(T.min===0||T.single)&&(W[-1]||(W[-1]=new V(T,-1,null,!0)),W[-1].render(-1))),nt&&Y.forEach(function(ot,at){C=Y[at+1]!==void 0?Y[at+1]+lt:T.max-lt,at%2==0&&ot<T.max&&C<=T.max+(N.polar?-lt:lt)&&(tt[ot]||(tt[ot]=new Z.PlotLineOrBand(T)),d=ot+lt,tt[ot].options={from:z?z.lin2log(d):d,to:z?z.lin2log(C):C,color:nt,className:"highcharts-alternate-grid"},tt[ot].render(),tt[ot].isActive=!0)}),T._addedPlotLB||(T._addedPlotLB=!0,(O.plotLines||[]).concat(O.plotBands||[]).forEach(function(ot){T.addPlotBandOrLine(ot)}))}if([W,q,tt].forEach(function(ot){var at=[],ut=bt.duration;o(ot,function(vt,Ct){vt.isActive||(vt.render(Ct,!1,0),vt.isActive=!1,at.push(Ct))}),b(function(){for(var vt=at.length;vt--;)ot[at[vt]]&&!ot[at[vt]].isActive&&(ot[at[vt]].destroy(),delete ot[at[vt]])},ot!==tt&&N.hasRendered&&ut?ut:0)}),gt&&(gt[gt.isPlaced?"animate":"attr"]({d:this.getLinePath(gt.strokeWidth())}),gt.isPlaced=!0,gt[mt?"show":"hide"](mt)),H&&mt){var dt=T.getTitlePosition();H[H.isNew?"attr":"animate"](dt),H.isNew=!1}J&&J.enabled&&T.stacking&&T.stacking.renderStackTotals(),T.old={len:T.len,max:T.max,min:T.min,transA:T.transA,userMax:T.userMax,userMin:T.userMin},T.isDirty=!1,p(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(d){var C=this,T=C.plotLinesAndBands,N=this.eventOptions;if(p(this,"destroy",{keepEvents:d}),d||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(O){v(O)}),T)for(var z=T.length;z--;)T[z].destroy();for(var L in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(O){C[O]&&(C[O]=C[O].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[L]=C.plotLinesAndBandsGroups[L].destroy();o(C,function(O,j){C.getKeepProps().indexOf(j)===-1&&delete C[j]}),this.eventOptions=N},D.prototype.drawCrosshair=function(d,C){var T,N,z,L,O=this.crosshair,j=e(O&&O.snap,!0),Y=this.chart,H=this.cross;if(p(this,"drawCrosshair",{e:d,point:C}),d||(d=this.cross&&this.cross.e),O&&(u(C)||!j)!==!1){if(j?u(C)&&(N=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):N=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(N)&&(L={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:N},Y.polar&&x(L,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:C}),T=this.getPlotLinePath(L)||null),!u(T))return void this.hideCrosshair();z=this.categories&&!this.isRadial,H||(this.cross=H=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(z?"category ":"thin ")+(O.className||"")).attr({zIndex:e(O.zIndex,2)}).add(),Y.styledMode||(H.attr({stroke:O.color||(z?X.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(O.width,1)}).css({"pointer-events":"none"}),O.dashStyle&&H.attr({dashstyle:O.dashStyle}))),H.show().attr({d:T}),z&&!O.width&&H.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:d,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),p(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},D.prototype.validatePositiveValue=function(d){return r(d)&&d>0},D.prototype.update=function(d,C){var T=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(T,d),T.isDirtyBox=!0,e(C,!0)&&T.redraw()},D.prototype.remove=function(d){for(var C=this.chart,T=this.coll,N=this.series,z=N.length;z--;)N[z]&&N[z].remove(!1);S(C.axes,this),S(C[T],this),C[T].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(d,!0)&&C.redraw()},D.prototype.setTitle=function(d,C){this.update({title:d},C)},D.prototype.setCategories=function(d,C){this.update({categories:d},C)},D.defaultOptions=B.defaultXAxisOptions,D.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],D}()}),et(_,"Core/Axis/DateTimeAxis.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.getMagnitude,$=G.normalizeTickInterval,Z=G.timeUnits;return function(V){var F=[];function I(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function E(P){var y=this;P.userOptions.type==="datetime"?y.dateTime||(y.dateTime=new A(y)):y.dateTime=void 0}V.compose=function(P){return F.indexOf(P)===-1&&(F.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=I,X(P,"init",E)),P};var A=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,c){var f,m=c||[["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]],u=m[m.length-1],v=Z[u[0]],S=u[1];for(f=0;f<m.length&&(u=m[f],v=Z[u[0]],S=u[1],!(m[f+1]&&y<=(v*S[S.length-1]+Z[m[f+1][0]])/2));f++);return v===Z.year&&y<5*v&&(S=[1,2,5]),{unitRange:v,count:$(y/v,S,u[0]==="year"?Math.max(U(y/v),1):1),unitName:u[0]}},P.prototype.getXDateFormat=function(y,c){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,c)||m.resolveDTLFormat(c.year).main:m.resolveDTLFormat(c.day).main},P}();V.Additions=A}(B||(B={})),B}),et(_,"Core/Axis/LogarithmicAxis.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.normalizeTickInterval,$=G.pick;return function(Z){var V=[];function F(A){var P=this,y=A.userOptions,c=P.logarithmic;y.type!=="logarithmic"?P.logarithmic=void 0:c||(c=P.logarithmic=new E(P))}function I(){var A=this,P=A.logarithmic;P&&(A.lin2val=function(y){return P.lin2log(y)},A.val2lin=function(y){return P.log2lin(y)})}Z.compose=function(A){return V.indexOf(A)===-1&&(V.push(A),A.keepProps.push("logarithmic"),X(A,"init",F),X(A,"afterInit",I)),A};var E=function(){function A(P){this.axis=P}return A.prototype.getLogTickPositions=function(P,y,c,f){var m=this,u=m.axis,v=u.len,S=u.options,M=[];if(f||(m.minorAutoInterval=void 0),P>=.5)P=Math.round(P),M=u.getLinearTickPositions(P,y,c);else if(P>=.08){var x,p=void 0,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0;for(x=P>.3?[1,2,4]:P>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],p=Math.floor(y);p<c+1&&!i;p++)for(r=x.length,g=0;g<r&&!i;g++)(a=m.log2lin(m.lin2log(p)*x[g]))>y&&(!f||t<=c)&&t!==void 0&&M.push(t),t>c&&(i=!0),t=a}else{var o=m.lin2log(y),e=m.lin2log(c),s=f?u.getMinorTickInterval():S.tickInterval,n=s==="auto"?null:s,h=S.tickPixelInterval/(f?5:1),b=f?v/u.tickPositions.length:v;P=$(n,m.minorAutoInterval,(e-o)*h/(b||1)),P=U(P),M=u.getLinearTickPositions(P,o,e).map(m.log2lin),f||(m.minorAutoInterval=P/5)}return f||(u.tickInterval=P),M},A.prototype.lin2log=function(P){return Math.pow(10,P)},A.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},A}();Z.Additions=E}(B||(B={})),B}),et(_,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[_["Core/Utilities.js"]],function(G){var B,X=G.erase,U=G.extend,$=G.isNumber;return function(Z){var V,F=[];Z.compose=function(E,A){return V||(V=E),F.indexOf(A)===-1&&(F.push(A),U(A.prototype,I.prototype)),A};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(A,P,y){y===void 0&&(y=this.options);var c,f,m=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),u=[],v=this.horiz,S=!$(this.min)||!$(this.max)||A<this.min&&P<this.min||A>this.max&&P>this.max,M=this.getPlotLinePath({value:A,force:!0,acrossPanes:y.acrossPanes}),x=1;if(M&&m)for(S&&(f=M.toString()===m.toString(),x=0),c=0;c<M.length;c+=2){var p=M[c],g=M[c+1],r=m[c],a=m[c+1];p[0]!=="M"&&p[0]!=="L"||g[0]!=="M"&&g[0]!=="L"||r[0]!=="M"&&r[0]!=="L"||a[0]!=="M"&&a[0]!=="L"||(v&&r[1]===p[1]?(r[1]+=x,a[1]+=x):v||r[2]!==p[2]||(r[2]+=x,a[2]+=x),u.push(["M",p[1],p[2]],["L",g[1],g[2]],["L",a[1],a[2]],["L",r[1],r[2]],["Z"])),u.isFlat=f}else M=null;return u},E.prototype.addPlotBand=function(A){return this.addPlotBandOrLine(A,"plotBands")},E.prototype.addPlotLine=function(A){return this.addPlotBandOrLine(A,"plotLines")},E.prototype.addPlotBandOrLine=function(A,P){var y=this,c=this.userOptions,f=new V(this,A);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=c[P]||[];m.push(A),c[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(A){var P=this.plotLinesAndBands,y=this.options,c=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===A&&P[f].destroy();[y.plotLines||[],c.plotLines||[],y.plotBands||[],c.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===A&&X(m,m[f])})}},E.prototype.removePlotBand=function(A){this.removePlotBandOrLine(A)},E.prototype.removePlotLine=function(A){this.removePlotBandOrLine(A)},E}()}(B||(B={})),B}),et(_,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[_["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],_["Core/Utilities.js"]],function(G,B){var X=B.arrayMax,U=B.arrayMin,$=B.defined,Z=B.destroyObjectProperties,V=B.erase,F=B.fireEvent,I=B.merge,E=B.objectEach,A=B.pick;return function(){function P(y,c){this.axis=y,c&&(this.options=c,this.id=c.id)}return P.compose=function(y){return G.compose(P,y)},P.prototype.render=function(){F(this,"render");var y,c=this,f=c.axis,m=f.horiz,u=f.logarithmic,v=c.options,S=v.color,M=A(v.zIndex,0),x=v.events,p={},g=f.chart.renderer,r=v.label,a=c.label,t=v.to,i=v.from,o=v.value,e=c.svgElem,s=[],n=$(i)&&$(t),h=$(o),b=!e,k={class:"highcharts-plot-"+(n?"band ":"line ")+(v.className||"")},D=n?"bands":"lines";if(u&&(i=u.log2lin(i),t=u.log2lin(t),o=u.log2lin(o)),f.chart.styledMode||(h?(k.stroke=S||"#999999",k["stroke-width"]=A(v.width,1),v.dashStyle&&(k.dashstyle=v.dashStyle)):n&&(k.fill=S||"#e6ebf5",v.borderWidth&&(k.stroke=v.borderColor,k["stroke-width"]=v.borderWidth))),p.zIndex=M,D+="-"+M,(y=f.plotLinesAndBandsGroups[D])||(f.plotLinesAndBandsGroups[D]=y=g.g("plot-"+D).attr(p).add()),b&&(c.svgElem=e=g.path().attr(k).add(y)),h)s=f.getPlotLinePath({value:o,lineWidth:e.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!n)return;s=f.getPlotBandPath(i,t,v)}return!c.eventsAdded&&x&&(E(x,function(d,C){e.on(C,function(T){x[C].apply(c,[T])})}),c.eventsAdded=!0),(b||!e.d)&&s&&s.length?e.attr({d:s}):e&&(s?(e.show(),e.animate({d:s})):e.d&&(e.hide(),a&&(c.label=a=a.destroy()))),r&&($(r.text)||$(r.formatter))&&s&&s.length&&f.width>0&&f.height>0&&!s.isFlat?(r=I({align:m&&n&&"center",x:m?!n&&4:10,verticalAlign:!m&&n&&"middle",y:m?n?16:10:n?6:-4,rotation:m&&!n&&90},r),this.renderLabel(r,s,n,M)):a&&a.hide(),c},P.prototype.renderLabel=function(y,c,f,m){var u=this,v=u.axis,S=v.chart.renderer,M=u.label;M||(u.label=M=S.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),v.chart.styledMode||M.css(I({textOverflow:"ellipsis"},y.style)));var x=c.xBounds||[c[0][1],c[1][1],f?c[2][1]:c[0][1]],p=c.yBounds||[c[0][2],c[1][2],f?c[2][2]:c[0][2]],g=U(x),r=U(p);if(M.align(y,!1,{x:g,y:r,width:X(x)-g,height:X(p)-r}),!M.alignValue||M.alignValue==="left"){var a=y.clip?v.width:v.chart.chartWidth;M.css({width:(M.rotation===90?v.height-(M.alignAttr.y-v.top):a-(M.alignAttr.x-v.left))+"px"})}M.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){V(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}()}),et(_,"Core/Tooltip.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.format,V=B.doc,F=X.distribute,I=$.clamp,E=$.css,A=$.discardElement,P=$.extend,y=$.fireEvent,c=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,S=$.splat,M=$.syncTimeout;return function(){function x(p,g){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=p,this.init(p,g)}return x.prototype.applyFilter=function(){var p=this.chart;p.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+p.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"}}]}]})},x.prototype.bodyFormatter=function(p){return p.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(p){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||p?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(p){var g,r=this.points||S(this);return(g=(g=[p.tooltipFooterHeaderFormatter(r[0])]).concat(p.bodyFormatter(r))).push(p.tooltipFooterHeaderFormatter(r[0],!0)),g},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),A(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(p,g){var r,a=this.chart,t=a.pointer,i=a.inverted,o=a.plotTop,e=a.plotLeft;if((p=S(p))[0].series&&p[0].series.yAxis&&!p[0].series.yAxis.options.reversedStacks&&(p=p.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=t.normalize(g)),r=[g.chartX-e,g.chartY-o];else if(p[0].tooltipPos)r=p[0].tooltipPos;else{var s=0,n=0;p.forEach(function(h){var b=h.pos(!0);b&&(s+=b[0],n+=b[1])}),s/=p.length,n/=p.length,this.shared&&p.length>1&&g&&(i?s=g.chartX:n=g.chartY),r=[s-e,n-o]}return r.map(Math.round)},x.prototype.getClassName=function(p,g,r){var a=this.options,t=p.series,i=t.options;return[a.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(p.colorIndex,t.colorIndex),i&&i.className].filter(m).join(" ")},x.prototype.getLabel=function(){var p,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){var s=this.chart.options.chart.style,n=U.getRendererType();this.container=p=B.doc.createElement("div"),p.className="highcharts-tooltip-container",E(p,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),B.doc.body.appendChild(p),this.renderer=o=new n(p,0,0,s,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var h=this.label,b=h.xSetter,k=h.ySetter;h.xSetter=function(D){b.call(h,g.distance),p.style.left=D+"px"},h.ySetter=function(D){k.call(h,g.distance),p.style.top=D+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(p,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?V.documentElement.clientWidth-2*i:t.chartWidth,h=s?Math.max(V.body.scrollHeight,V.documentElement.scrollHeight,V.body.offsetHeight,V.documentElement.offsetHeight,V.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(H){return H*b.scaleX},D=function(H){return H*b.scaleY},d=function(H){var W=H==="x";return[H,W?n:h,W?p:g].concat(s?[W?k(p):D(g),W?b.left-i+k(r.plotX+t.plotLeft):b.top-i+D(r.plotY+t.plotTop),0,W?n:h]:[W?p:g,W?r.plotX+t.plotLeft:r.plotY+t.plotTop,W?t.plotLeft:t.plotTop,W?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},C=d("y"),T=d("x"),N=!!r.negative;!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(N=!N);var z=!this.followPointer&&v(r.ttBelow,!t.inverted===N),L=function(H,W,q,tt,J,nt,lt){var gt=s?H==="y"?D(i):k(i):i,mt=(q-tt)/2,bt=tt<J-i,yt=J+i+tt<W,dt=J-gt-q+mt,ot=J+gt-mt;if(z&&yt)o[H]=ot;else if(!z&&bt)o[H]=dt;else if(bt)o[H]=Math.min(lt-tt,dt-e<0?dt:dt-e);else{if(!yt)return!1;o[H]=Math.max(nt,ot+e+q>W?ot:ot+e)}},O=function(H,W,q,tt,J){var nt;return J<i||J>W-i?nt=!1:o[H]=J<q/2?1:J>W-tt/2?W-tt-2:J-q/2,nt},j=function(H){var W=C;C=T,T=W,a=H},Y=function(){L.apply(0,C)!==!1?O.apply(0,T)!==!1||a||(j(!0),Y()):a?o.x=o.y=0:(j(!0),Y())};return(t.inverted||this.len>1)&&j(),Y(),o},x.prototype.hide=function(p){var g=this;$.clearTimeout(this.hideTimer),p=v(p,this.options.hideDelay),this.isHidden||(this.hideTimer=M(function(){g.getLabel().fadeOut(p&&void 0),g.isHidden=!0},p))},x.prototype.init=function(p,g){this.chart=p,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!p.inverted&&!p.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!!(p.scrollablePixelsX||p.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(p){return!(this.followPointer||!this.options.stickOnContact||p&&!this.chart.pointer.inClass(p.target,"highcharts-tooltip"))},x.prototype.move=function(p,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(Math.abs(p-i.x)>1||Math.abs(g-i.y)>1),e=t.followPointer||t.len>1;P(i,{x:o?(2*i.x+p)/3:p,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(p,g,r,a)},32))},x.prototype.refresh=function(p,g){var r=this,a=this.chart,t=r.options,i=a.pointer,o=S(p),e=o[0],s=[],n=t.formatter||r.defaultFormatter,h=r.shared,b=a.styledMode,k={};if(t.enabled&&e.series){$.clearTimeout(this.hideTimer),r.allowShared=!(!c(p)&&p.series&&p.series.noSharedTooltip),r.followPointer=!r.split&&e.series.tooltipOptions.followPointer;var D=r.getAnchor(p,g),d=D[0],C=D[1];h&&r.allowShared?(i.applyInactiveState(o),o.forEach(function(j){j.setState("hover"),s.push(j.getLabelConfig())}),(k={x:e.category,y:e.y}).points=s):k=e.getLabelConfig(),this.len=s.length;var T=n.call(k,r),N=e.series;if(this.distance=v(N.tooltipOptions.distance,16),T===!1)this.hide();else{if(r.split&&r.allowShared)this.renderSplit(T,o);else{var z=d,L=C;if(g&&i.isDirectTouch&&(z=g.chartX-a.plotLeft,L=g.chartY-a.plotTop),!a.polar&&N.options.clip!==!1&&!o.some(function(j){return i.isDirectTouch||j.series.shouldShowTooltip(z,L)}))return void r.hide();var O=r.getLabel();t.style.width&&!b||O.css({width:a.spacingBox.width+"px"}),O.attr({text:T&&T.join?T.join(""):T}),O.addClass(r.getClassName(e),!0),b||O.attr({stroke:t.borderColor||e.color||N.color||"#666666"}),r.updatePosition({plotX:d,plotY:C,negative:e.negative,ttBelow:e.ttBelow,h:D[2]||0})}r.isHidden&&r.label&&r.label.attr({opacity:1}).show(),r.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(p,g){var r=this,a=r.chart,t=r.chart,i=t.chartWidth,o=t.chartHeight,e=t.plotHeight,s=t.plotLeft,n=t.plotTop,h=t.pointer,b=t.scrollablePixelsY,k=b===void 0?0:b,D=t.scrollablePixelsX,d=t.scrollingContainer,C=d===void 0?{scrollLeft:0,scrollTop:0}:d,T=C.scrollLeft,N=C.scrollTop,z=t.styledMode,L=r.distance,O=r.options,j=r.options.positioner,Y=r.outside&&typeof D!="number"?V.documentElement.getBoundingClientRect():{left:T,right:T+i,top:N,bottom:N+o},H=r.getLabel(),W=this.renderer||a.renderer,q=!!(a.xAxis[0]&&a.xAxis[0].opposite),tt=h.getChartPosition(),J=tt.left,nt=tt.top,lt=n+N,gt=0,mt=e-k;function bt(Mt,Tt,Lt,Pt,Et){var jt,Dt;return Et===void 0&&(Et=!0),Lt?(jt=q?0:mt,Dt=I(Mt-Pt/2,Y.left,Y.right-Pt-(r.outside?J:0))):(jt=Tt-lt,Dt=I(Dt=Et?Mt-Pt-L:Mt+L,Et?Dt:Y.left,Y.right)),{x:Dt,y:jt}}m(p)&&(p=[!1,p]);var yt=p.slice(0,g.length+1).reduce(function(Mt,Tt,Lt){if(Tt!==!1&&Tt!==""){var Pt=g[Lt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:e,series:{}},Et=Pt.isHeader,jt=Et?r:Pt.series,Dt=jt.tt=function($t,ie,be){var Ot=$t,zt=ie.isHeader,Vt=ie.series;if(!Ot){var qt={padding:O.padding,r:O.borderRadius};z||(qt.fill=O.backgroundColor,qt["stroke-width"]=O.borderWidth),Ot=W.label("",0,0,O[zt?"headerShape":"shape"],void 0,void 0,O.useHTML).addClass(r.getClassName(ie,!0,zt)).attr(qt).add(H)}return Ot.isActive=!0,Ot.attr({text:be}),z||Ot.css(O.style).shadow(O.shadow).attr({stroke:O.borderColor||ie.color||Vt.color||"#333333"}),Ot}(jt.tt,Pt,Tt.toString()),_t=Dt.getBBox(),Bt=_t.width+Dt.strokeWidth();Et&&(gt=_t.height,mt+=gt,q&&(lt-=gt));var Jt=function($t){var ie,be,Ot=$t.isHeader,zt=$t.plotX,Vt=zt===void 0?0:zt,qt=$t.plotY,me=qt===void 0?0:qt,de=$t.series;if(Ot)ie=s+Vt,be=n+e/2;else{var ue=de.xAxis,Ft=de.yAxis;ie=ue.pos+I(Vt,-L,ue.len+L),de.shouldShowTooltip(0,Ft.pos-n+me,{ignoreX:!0})&&(be=Ft.pos+me)}return{anchorX:ie=I(ie,Y.left-L,Y.right+L),anchorY:be}}(Pt),Gt=Jt.anchorX,Ut=Jt.anchorY;if(typeof Ut=="number"){var Kt=_t.height+1,le=j?j.call(r,Bt,Kt,Pt):bt(Gt,Ut,Et,Bt);Mt.push({align:j?0:void 0,anchorX:Gt,anchorY:Ut,boxWidth:Bt,point:Pt,rank:v(le.rank,Et?1:0),size:Kt,target:le.y,tt:Dt,x:le.x})}else Dt.isActive=!1}return Mt},[]);!j&&yt.some(function(Mt){var Tt=(r.outside?J:0)+Mt.anchorX;return Tt<Y.left&&Tt+Mt.boxWidth<Y.right||Tt<J-Y.left+Mt.boxWidth&&Y.right-Tt>Tt})&&(yt=yt.map(function(Mt){var Tt=bt(Mt.anchorX,Mt.anchorY,Mt.point.isHeader,Mt.boxWidth,!1),Lt=Tt.x,Pt=Tt.y;return P(Mt,{target:Pt,x:Lt})})),r.cleanSplit(),F(yt,mt);var dt={left:J,right:J};yt.forEach(function(Mt){var Tt=Mt.x,Lt=Mt.boxWidth,Pt=Mt.isHeader;Pt||(r.outside&&J+Tt<dt.left&&(dt.left=J+Tt),!Pt&&r.outside&&dt.left+Lt>dt.right&&(dt.right=J+Tt))}),yt.forEach(function(Mt){var Tt=Mt.x,Lt=Mt.anchorX,Pt=Mt.anchorY,Et=Mt.pos,jt=Mt.point.isHeader,Dt={visibility:Et===void 0?"hidden":"inherit",x:Tt,y:(Et||0)+lt,anchorX:Lt,anchorY:Pt};if(r.outside&&Tt<Lt){var _t=J-dt.left;_t>0&&(jt||(Dt.x=Tt+_t,Dt.anchorX=Lt+_t),jt&&(Dt.x=(dt.right-dt.left)/2,Dt.anchorX=Lt+_t))}Mt.tt.attr(Dt)});var ot=r.container,at=r.outside,ut=r.renderer;if(at&&ot&&ut){var vt=H.getBBox(),Ct=vt.width,xt=vt.height,St=vt.x,wt=vt.y;ut.setSize(Ct+St,xt+wt,!1),ot.style.left=dt.left+"px",ot.style.top=nt+"px"}},x.prototype.drawTracker=function(){var p=this;if(this.shouldStickOnContact()){var g=p.chart,r=p.label,a=p.shared?g.hoverPoints:g.hoverPoint;if(r&&a){var t={x:0,y:0,width:0,height:0},i=this.getAnchor(a),o=r.getBBox();i[0]+=g.plotLeft-r.translateX,i[1]+=g.plotTop-r.translateY,t.x=Math.min(0,i[0]),t.y=Math.min(0,i[1]),t.width=i[0]<0?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),t.height=i[1]<0?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),p.tracker?p.tracker.attr(t):(p.tracker=r.renderer.rect(t).addClass("highcharts-tracker").add(r),g.styledMode||p.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else p.tracker&&p.tracker.destroy()},x.prototype.styledModeFormat=function(p){return p.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(p,g){var r=p.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime,o={isFooter:g,labelConfig:p},e=a.xDateFormat,s=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",o,function(n){i&&!e&&f(p.key)&&(e=i.getXDateFormat(p.key,a.dateTimeLabelFormats)),i&&e&&(p.point&&p.point.tooltipDateKeys||["key"]).forEach(function(h){s=s.replace("{point."+h+"}","{point."+h+":"+e+"}")}),r.chart.styledMode&&(s=this.styledModeFormat(s)),n.text=Z(s,{point:p,series:r},this.chart)}),o.text},x.prototype.update=function(p){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,p),this.init(this.chart,u(!0,this.options,p))},x.prototype.updatePosition=function(p){var g,r=this,a=r.chart,t=r.distance,i=r.options,o=a.pointer,e=this.getLabel(),s=o.getChartPosition(),n=s.left,h=s.top,b=s.scaleX,k=s.scaleY,D=(i.positioner||this.getPosition).call(this,e.width,e.height,p),d=(p.plotX||0)+a.plotLeft,C=(p.plotY||0)+a.plotTop;this.outside&&(i.positioner&&(D.x+=n-t,D.y+=h-t),g=i.borderWidth+2*t,this.renderer.setSize(e.width+g,e.height+g,!1),b===1&&k===1||(E(this.container,{transform:"scale(".concat(b,", ").concat(k,")")}),d*=b,C*=k),d+=n-D.x,C+=h-D.y),this.move(Math.round(D.x),Math.round(D.y||0),d,C)},x}()}),et(_,"Core/Series/Point.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=B.animObject,V=X.defaultOptions,F=U.format,I=$.addEvent,E=$.defined,A=$.erase,P=$.extend,y=$.fireEvent,c=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,S=$.merge,M=$.objectEach,x=$.pick,p=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){var s=e==="dataLabel";t[e]=t[e].animate(s?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this,e=o.series,s=e.options.pointValKey||e.pointValKey;return t=a.prototype.optionsToObject.call(this,t),P(o,t),o.options=o.options?P(o.options,t):t,t.group&&delete o.group,t.dataLabels&&delete o.dataLabels,s&&(o.y=a.prototype.getNestedProperty.call(o,s)),o.isNull=this.isValid&&!this.isValid(),o.formatPrefix=o.isNull?"null":"point",o.selected&&(o.state="select"),"name"in o&&i===void 0&&e.xAxis&&e.xAxis.hasNames&&(o.x=e.xAxis.nameToX(o)),o.x===void 0&&e?o.x=i===void 0?e.autoIncrement():i:u(t.x)&&e.options.relativeXValue&&(o.x=e.autoIncrement(t.x)),o},a.prototype.destroy=function(){var t,i=this,o=i.series,e=o.chart,s=o.options.dataSorting,n=e.hoverPoints,h=i.series.chart.renderer.globalAnimation,b=Z(h);function k(){for(t in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[t]=null}i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),A(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),s&&s.enabled?(this.animateBeforeDestroy(),p(k,b.duration)):k(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this,o=i.getGraphicalProps(t);o.singular.forEach(function(e){i[e]=i[e].destroy()}),o.plural.forEach(function(e){i[e].forEach(function(s){s&&s.element&&s.destroy()}),delete i[e]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){var t=this;return"highcharts-point"+(t.selected?" highcharts-point-select":"")+(t.negative?" highcharts-negative":"")+(t.isNull?" highcharts-null-point":"")+(t.colorIndex!==void 0?" highcharts-color-"+t.colorIndex:"")+(t.options.className?" "+t.options.className:"")+(t.zone&&t.zone.className?" "+t.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o,e=this,s=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),o=s.length;o--;)i=s[o],e[i]&&n.singular.push(i);return["graphic","dataLabel","connector"].forEach(function(h){var b=h+"s";t[h]&&e[b]&&n.plural.push(b)}),n},a.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}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?c(t,this.options):this[t]},a.prototype.getZone=function(){var t,i=this.series,o=i.zones,e=i.zoneAxis||"y",s=0;for(t=o[s];this[e]>=t.value;)t=o[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},a.prototype.hasNewShapeType=function(){var t=this;return(t.graphic&&(t.graphic.symbolName||t.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i,o=this.series,e=o.options.keys,s=e||o.pointArrayMap||["y"],n=s.length,h={},b=0,k=0;if(u(t)||t===null)h[s[0]]=t;else if(f(t))for(!e&&t.length>n&&((i=typeof t[0])=="string"?h.name=t[0]:i==="number"&&(h.x=t[0]),b++);k<n;)e&&t[b]===void 0||(s[k].indexOf(".")>0?a.prototype.setNestedProperty(h,t[b],s[k]):h[s[k]]=t[b]),b++,k++;else typeof t=="object"&&(h=t,t.dataLabels&&(o._hasPointLabels=!0),t.marker&&(o._hasPointMarkers=!0));return h},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis,h=e.yAxis,b=0,k=0;if(u(o)&&u(i))return t&&(b=n?n.pos:s.plotLeft,k=h?h.pos:s.plotTop),s.inverted&&n&&h?[h.len-i+k,n.len-o+b]:[o+b,i+k]},a.prototype.resolveColor=function(){var t,i,o,e=this.series,s=e.chart.options.chart,n=e.chart.styledMode,h=s.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(n||(t=(i=e.options.colors||e.chart.options.colors)[e.colorCounter],h=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===h&&(e.colorCounter=0)):(n||(t=e.color),o=e.colorIndex),this.colorIndex=x(this.options.colorIndex,o),this.color=x(this.options.color,t)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,h){var b=h.length-1===n;return e[s]=b?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(h){h="{point."+h,(s||n)&&(t=t.replace(RegExp(h+"}","g"),s+h+"}"+n)),t=t.replace(RegExp(h+"}","g"),h+":,."+e+"f}")}),F(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){var s,n=this,h=n.series,b=n.graphic,k=h.chart,D=h.options;function d(){n.applyOptions(t);var C=b&&n.hasMockGraphic,T=n.y===null?!C:C;b&&T&&(n.graphic=b.destroy(),delete n.hasMockGraphic),v(t,!0)&&(b&&b.element&&t&&t.marker&&t.marker.symbol!==void 0&&(n.graphic=b.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),s=n.index,h.updateParallelArrays(n,s),D.data[s]=v(D.data[s],!0)||v(t,!0)?n.options:x(t,D.data[s]),h.isDirty=h.isDirtyData=!0,!h.fixedBox&&h.hasCartesianSeries&&(k.isDirtyBox=!0),D.legendType==="point"&&(k.isDirtyLegend=!0),i&&k.redraw(o)}i=x(i,!0),e===!1?d():n.firePointEvent("update",{options:t},d)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;t=x(t,!o.selected),this.selectedStaging=t,o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var h=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,h.options.data[h.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&h.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this,o=i.series.chart,e=o.pointer;t=t?e.normalize(t):e.getChartCoordinatesFromPoint(i,o.inverted),e.runPointActions(t,i)},a.prototype.onMouseOut=function(){var t=this,i=t.series.chart;t.firePointEvent("mouseOut"),t.series.options.inactiveOtherPoints||(i.hoverPoints||[]).forEach(function(o){o.setState()}),i.hoverPoints=i.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=S(t.series.options.point,t.options).events;t.events=i,M(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e,s,n,h=this,b=h.series,k=h.state,D=b.options.states[t||"normal"]||{},d=V.plotOptions[b.type].marker&&b.options.marker,C=d&&d.enabled===!1,T=d&&d.states&&d.states[t||"normal"]||{},N=T.enabled===!1,z=h.marker||{},L=b.chart,O=d&&b.markerAttribs,j=b.halo,Y=b.stateMarkerGraphic;if(!((t=t||"")===h.state&&!i||h.selected&&t!=="select"||D.enabled===!1||t&&(N||C&&T.enabled===!1)||t&&z.states&&z.states[t]&&z.states[t].enabled===!1)){if(h.state=t,O&&(o=b.markerAttribs(h,t)),h.graphic&&!h.hasMockGraphic){if(k&&h.graphic.removeClass("highcharts-point-"+k),t&&h.graphic.addClass("highcharts-point-"+t),!L.styledMode){e=b.pointAttribs(h,t),s=x(L.options.chart.animation,D.animation);var H=e.opacity;b.options.inactiveOtherPoints&&u(H)&&((h.dataLabels||[]).forEach(function(J){J&&!J.hasClass("highcharts-data-label-hidden")&&J.animate({opacity:H},s)}),h.connector&&h.connector.animate({opacity:H},s)),h.graphic.animate(e,s)}o&&h.graphic.animate(o,x(L.options.chart.animation,T.animation,d.animation)),Y&&Y.hide()}else t&&T&&(n=z.symbol||b.symbol,Y&&Y.currentSymbol!==n&&(Y=Y.destroy()),o&&(Y?Y[i?"animate":"attr"]({x:o.x,y:o.y}):n&&(b.stateMarkerGraphic=Y=L.renderer.symbol(n,o.x,o.y,o.width,o.height).add(b.markerGroup),Y.currentSymbol=n)),!L.styledMode&&Y&&h.state!=="inactive"&&Y.attr(b.pointAttribs(h,t))),Y&&(Y[t&&h.isInside?"show":"hide"](),Y.element.point=h,Y.addClass(h.getClassName(),!0));var W=D.halo,q=h.graphic||Y,tt=q&&q.visibility||"inherit";W&&W.size&&q&&tt!=="hidden"&&!h.isCluster?(j||(b.halo=j=L.renderer.path().add(q.parentGroup)),j.show()[i?"animate":"attr"]({d:h.haloPath(W.size)}),j.attr({class:"highcharts-halo highcharts-color-"+x(h.colorIndex,b.colorIndex)+(h.className?" "+h.className:""),visibility:tt,zIndex:-1}),j.point=h,L.styledMode||j.attr(P({fill:h.color||b.color,"fill-opacity":W.opacity},G.filterUserAttributes(W.attributes||{})))):j&&j.point&&j.point.haloPath&&j.animate({d:j.point.haloPath(0)},null,j.hide),y(h,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}()}),et(_,"Core/Pointer.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Tooltip.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=G.parse,Z=B.charts,V=B.noop,F=U.addEvent,I=U.attr,E=U.css,A=U.defined,P=U.extend,y=U.find,c=U.fireEvent,f=U.isNumber,m=U.isObject,u=U.objectEach,v=U.offset,S=U.pick,M=U.splat;return function(){function x(p,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=p,this.hasDragged=!1,this.options=g,this.init(p,g)}return x.prototype.applyInactiveState=function(p){var g,r=[];(p||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var p=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],B.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(p.tooltipTimeout),u(p,function(g,r){p[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(p,g){var r=this,a={args:{chartX:p,chartY:g},attrs:{},shapeType:"rect"};return c(this,"getSelectionMarkerAttrs",a,function(t){var i,o=r,e=o.chart,s=o.mouseDownX,n=s===void 0?0:s,h=o.mouseDownY,b=h===void 0?0:h,k=o.zoomHor,D=o.zoomVert,d=t.attrs;d.x=e.plotLeft,d.y=e.plotTop,d.width=k?1:e.plotWidth,d.height=D?1:e.plotHeight,k&&(i=p-n,d.width=Math.abs(i),d.x=(i>0?0:i)+n),D&&(i=g-b,d.height=Math.abs(i),d.y=(i>0?0:i)+b)}),a},x.prototype.drag=function(p){var g,r=this.chart,a=r.options.chart,t=r.plotLeft,i=r.plotTop,o=r.plotWidth,e=r.plotHeight,s=this.mouseDownX||0,n=this.mouseDownY||0,h=m(a.panning)?a.panning&&a.panning.enabled:a.panning,b=a.panKey&&p[a.panKey+"Key"],k=p.chartX,D=p.chartY,d=this.selectionMarker;if((!d||!d.touch)&&(k<t?k=t:k>t+o&&(k=t+o),D<i?D=i:D>i+e&&(D=i+e),this.hasDragged=Math.sqrt(Math.pow(s-k,2)+Math.pow(n-D,2)),this.hasDragged>10)){g=r.isInsidePlot(s-t,n-i,{visiblePlotOnly:!0});var C=this.getSelectionMarkerAttrs(k,D),T=C.shapeType,N=C.attrs;(r.hasCartesianSeries||r.mapView)&&(this.zoomX||this.zoomY)&&g&&!b&&(d||(this.selectionMarker=d=r.renderer[T](),d.attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||d.attr({fill:a.selectionMarkerFill||$("#335cad").setOpacity(.25).get()}))),d&&d.attr(N),g&&!d&&h&&r.pan(p,a.panning)}},x.prototype.dragStart=function(p){var g=this.chart;g.mouseIsDown=p.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=p.chartX,g.mouseDownY=this.mouseDownY=p.chartY},x.prototype.getSelectionBox=function(p){var g={args:{marker:p},result:{}};return c(this,"getSelectionBox",g,function(r){r.result={x:p.attr?+p.attr("x"):p.x,y:p.attr?+p.attr("y"):p.y,width:p.attr?p.attr("width"):p.width,height:p.attr?p.attr("height"):p.height}}),g.result},x.prototype.drop=function(p){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:p,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},h=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&A(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var k=b.horiz,D=p.type==="touchend"?b.minPixelPadding:0,d=b.toValue((k?i:o)+D),C=b.toValue((k?i+e:o+s)-D);n[b.coll].push({axis:b,min:Math.min(d,C),max:Math.max(d,C)}),h=!0}}),h&&c(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=this.hasDragged>10,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(p,g,r){var a;return p.forEach(function(t){var i,o,e,s,n,h=!(t.noSharedTooltip&&g)&&t.options.findNearestPointBy.indexOf("y")<0,b=t.searchPoint(r,h);m(b,!0)&&b.series&&(!m(a,!0)||(o=b,e=(i=a).distX-o.distX,s=i.dist-o.dist,n=(o.series.group&&o.series.group.zIndex)-(i.series.group&&i.series.group.zIndex),(e!==0&&g?e:s!==0?s:n!==0?n:i.series.index>o.series.index?-1:1)>0))&&(a=b)}),a},x.prototype.getChartCoordinatesFromPoint=function(p,g){var r=p.series,a=r.xAxis,t=r.yAxis,i=p.shapeArgs;if(a&&t){var o=S(p.clientX,p.plotX),e=p.plotY||0;return p.isNode&&i&&f(i.x)&&f(i.y)&&(o=i.x,e=i.y),g?{chartX:t.len+t.pos-e,chartY:a.len+a.pos-o}:{chartX:o+a.pos,chartY:e+t.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var p=this.chart.container,g=v(p);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=p.offsetWidth,a=p.offsetHeight;return r>2&&a>2&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/a),this.chartPosition},x.prototype.getCoordinates=function(p){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(p[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(p,g,r,a,t,i){var o,e=[],s=!(!a||!p),n=function(D){return D.visible&&!(!t&&D.directTouch)&&S(D.options.enableMouseTracking,!0)},h=g,b={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};c(this,"beforeGetHoverData",b),o=h&&!h.stickyTracking?[h]:r.filter(function(D){return D.stickyTracking&&(b.filter||n)(D)});var k=s||!i?p:this.findNearestKDPoint(o,t,i);return h=k&&k.series,k&&(t&&!h.noSharedTooltip?(o=r.filter(function(D){return b.filter?b.filter(D):n(D)&&!D.noSharedTooltip})).forEach(function(D){var d=y(D.points,function(C){return C.x===k.x&&!C.isNull});m(d)&&(D.boosted&&D.boost&&(d=D.boost.getPoint(d)),e.push(d))}):e.push(k)),c(this,"afterGetHoverData",b={hoverPoint:k}),{hoverPoint:b.hoverPoint,hoverSeries:h,hoverPoints:e}},x.prototype.getPointFromEvent=function(p){for(var g,r=p.target;r&&!g;)g=r.point,r=r.parentNode;return g},x.prototype.onTrackerMouseOut=function(p){var g=this.chart,r=p.relatedTarget||p.toElement,a=g.hoverSeries;this.isDirectTouch=!1,!a||!r||a.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+a.index)&&this.inClass(r,"highcharts-tracker")||a.onMouseOut()},x.prototype.inClass=function(p,g){for(var r,a=p;a;){if(r=I(a,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}a=a.parentElement}},x.prototype.init=function(p,g){this.options=g,this.chart=p,this.runChartClick=!!(g.chart.events&&g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},X&&(p.tooltip=new X(p,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(p,g){var r=p.touches,a=r?r.length?r.item(0):S(r.changedTouches,p.changedTouches)[0]:p;g||(g=this.getChartPosition());var t=a.pageX-g.left,i=a.pageY-g.top;return t/=g.scaleX,i/=g.scaleY,P(p,{chartX:Math.round(t),chartY:Math.round(i)})},x.prototype.onContainerClick=function(p){var g=this.chart,r=g.hoverPoint,a=this.normalize(p),t=g.plotLeft,i=g.plotTop;g.cancelClick||(r&&this.inClass(a.target,"highcharts-tracker")?(c(r.series,"click",P(a,{point:r})),g.hoverPoint&&r.firePointEvent("click",a)):(P(a,this.getCoordinates(a)),g.isInsidePlot(a.chartX-t,a.chartY-i,{visiblePlotOnly:!0})&&c(g,"click",a)))},x.prototype.onContainerMouseDown=function(p){var g=!(1&~(p.buttons||p.button));p=this.normalize(p),B.isFirefox&&p.button!==0&&this.onContainerMouseMove(p),(p.button===void 0||g)&&(this.zoomOption(p),g&&p.preventDefault&&p.preventDefault(),this.dragStart(p))},x.prototype.onContainerMouseLeave=function(p){var g=Z[S(x.hoverChartIndex,-1)],r=this.chart.tooltip;p=this.normalize(p),g&&(p.relatedTarget||p.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(p){delete this.chartPosition},x.prototype.onContainerMouseMove=function(p){var g=this.chart,r=g.tooltip,a=this.normalize(p);this.setHoverChartIndex(),a.preventDefault||(a.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(a))&&this.drag(a),g.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))},x.prototype.onDocumentTouchEnd=function(p){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.onContainerTouchMove=function(p){this.touchSelect(p)?this.onContainerMouseMove(p):this.touch(p)},x.prototype.onContainerTouchStart=function(p){this.touchSelect(p)?this.onContainerMouseDown(p):(this.zoomOption(p),this.touch(p,!0))},x.prototype.onDocumentMouseMove=function(p){var g=this.chart,r=g.tooltip,a=this.chartPosition,t=this.normalize(p,a);!a||g.isInsidePlot(t.chartX-g.plotLeft,t.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(p){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(p)},x.prototype.pinch=function(p){var g=this,r=g.chart,a=g.pinchDown,t=p.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(p.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),h={},b=g.chart.tooltip,k=i===1&&S(b&&b.options.followTouchMove,!0),D=g.selectionMarker;i>1?g.initiated=!0:k&&(g.initiated=!1),e&&g.initiated&&!n&&p.cancelable!==!1&&p.preventDefault(),[].map.call(t,function(d){return g.normalize(d)}),p.type==="touchstart"?([].forEach.call(t,function(d,C){a[C]={chartX:d.chartX,chartY:d.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(d){if(d.zoomEnabled){var C=r.bounds[d.horiz?"h":"v"],T=d.minPixelPadding,N=d.toPixels(Math.min(S(d.options.min,d.dataMin),d.dataMin)),z=d.toPixels(Math.max(S(d.options.max,d.dataMax),d.dataMax)),L=Math.min(N,z),O=Math.max(N,z);C.min=Math.min(d.pos,L-T),C.max=Math.max(d.pos+d.len,O+T)}}),g.res=!0):k?this.runPointActions(g.normalize(p)):a.length&&(c(r,"touchpan",{originalEvent:p},function(){D||(g.selectionMarker=D=P({destroy:V,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,D,h,o),g.hasPinched=e,g.scaleGroups(s,h)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(p,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,p,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,p,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(p,g,r,a,t,i,o,e){var s,n,h,b,k=this.chart,D=p?"x":"y",d=p?"X":"Y",C="chart"+d,T=p?"width":"height",N=k["plot"+(p?"Left":"Top")],z=k.inverted,L=k.bounds[p?"h":"v"],O=g.length===1,j=g[0][C],Y=!O&&g[1][C],H=function(){typeof tt=="number"&&Math.abs(j-Y)>20&&(W=e||Math.abs(q-tt)/Math.abs(j-Y)),h=(N-q)/W+j,s=k["plot"+(p?"Width":"Height")]/W},W=e||1,q=r[0][C],tt=!O&&r[1][C];H(),(n=h)<L.min?(n=L.min,b=!0):n+s>L.max&&(n=L.max-s,b=!0),b?(q-=.8*(q-o[D][0]),typeof tt=="number"&&(tt-=.8*(tt-o[D][1])),H()):o[D]=[q,tt],z||(i[D]=h-N,i[T]=s);var J=z?p?"scaleY":"scaleX":"scale"+d,nt=z?1/W:W;t[T]=s,t[D]=n,a[J]=W,a["translate"+d]=nt*N+(q-nt*j)},x.prototype.reset=function(p,g){var r=this,a=r.chart,t=a.hoverSeries,i=a.hoverPoint,o=a.hoverPoints,e=a.tooltip,s=e&&e.shared?o:i;p&&s&&M(s).forEach(function(n){n.series.isCartesian&&n.plotX===void 0&&(p=!1)}),p?e&&s&&M(s).length&&(e.refresh(s),e.shared&&o?o.forEach(function(n){n.setState(n.state,!0),n.series.isCartesian&&(n.series.xAxis.crosshair&&n.series.xAxis.drawCrosshair(null,n),n.series.yAxis.crosshair&&n.series.yAxis.drawCrosshair(null,n))}):i&&(i.setState(i.state,!0),a.axes.forEach(function(n){n.crosshair&&i.series[n.coll]===n&&n.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),o&&o.forEach(function(n){n.setState()}),t&&t.onMouseOut(),e&&e.hide(g),r.unDocMouseMove&&(r.unDocMouseMove=r.unDocMouseMove()),a.axes.forEach(function(n){n.hideCrosshair()}),r.hoverX=a.hoverPoints=a.hoverPoint=null)},x.prototype.runPointActions=function(p,g,r){var a=this,t=a.chart,i=t.series,o=t.tooltip&&t.tooltip.options.enabled?t.tooltip:void 0,e=!!o&&o.shared,s=g||t.hoverPoint,n=s&&s.series||t.hoverSeries,h=(!p||p.type!=="touchmove")&&(!!g||n&&n.directTouch&&a.isDirectTouch),b=this.getHoverData(s,n,i,h,e,p);s=b.hoverPoint,n=b.hoverSeries;var k=b.hoverPoints,D=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split,d=e&&n&&!n.noSharedTooltip;if(s&&(r||s!==t.hoverPoint||o&&o.isHidden)){if((t.hoverPoints||[]).forEach(function(T){k.indexOf(T)===-1&&T.setState()}),t.hoverSeries!==n&&n.onMouseOver(),a.applyInactiveState(k),(k||[]).forEach(function(T){T.setState("hover")}),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),!s.series)return;t.hoverPoints=k,t.hoverPoint=s,s.firePointEvent("mouseOver",void 0,function(){o&&s&&o.refresh(d?k:s,p)})}else if(D&&o&&!o.isHidden){var C=o.getAnchor([{}],p);t.isInsidePlot(C[0],C[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:C[0],plotY:C[1]})}a.unDocMouseMove||(a.unDocMouseMove=F(t.container.ownerDocument,"mousemove",function(T){var N=Z[x.hoverChartIndex];N&&N.pointer.onDocumentMouseMove(T)}),a.eventsToUnbind.push(a.unDocMouseMove)),t.axes.forEach(function(T){var N,z=S((T.crosshair||{}).snap,!0);z&&((N=t.hoverPoint)&&N.series[T.coll]===T||(N=y(k,function(L){return L.series&&L.series[T.coll]===T}))),N||!z?T.drawCrosshair(p,N):T.hideCrosshair()})},x.prototype.scaleGroups=function(p,g){var r=this.chart;r.series.forEach(function(a){var t=p||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var p=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(F(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(F(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=F(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(F(a,"scroll",function(){delete p.chartPosition})),a=a.parentElement;B.hasTouch&&(this.eventsToUnbind.push(F(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(F(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=F(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var p=this.chart,g=B.charts[S(x.hoverChartIndex,-1)];g&&g!==p&&g.pointer.onContainerMouseLeave({relatedTarget:p.container}),g&&g.mouseIsDown||(x.hoverChartIndex=p.index)},x.prototype.touch=function(p,g){var r,a,t=this.chart;this.setHoverChartIndex(),p.touches.length===1?(p=this.normalize(p),t.isInsidePlot(p.chartX-t.plotLeft,p.chartY-t.plotTop,{visiblePlotOnly:!0})&&!t.openMenu?(g&&this.runPointActions(p),p.type==="touchmove"&&(r=!!(a=this.pinchDown)[0]&&Math.sqrt(Math.pow(a[0].chartX-p.chartX,2)+Math.pow(a[0].chartY-p.chartY,2))>=4),S(r,!0)&&this.pinch(p)):g&&this.reset()):p.touches.length===2&&this.pinch(p)},x.prototype.touchSelect=function(p){return!!(this.chart.options.chart.zooming.singleTouch&&p.touches&&p.touches.length===1)},x.prototype.zoomOption=function(p){var g,r,a=this.chart,t=a.options.chart,i=a.inverted,o=t.zooming.type||"";/touch/.test(p.type)&&(o=S(t.zooming.pinchType,o)),this.zoomX=g=/x/.test(o),this.zoomY=r=/y/.test(o),this.zoomHor=g&&!i||r&&i,this.zoomVert=r&&!i||g&&i,this.hasZoom=g||r},x}()}),et(_,"Core/MSPointer.js",[_["Core/Globals.js"],_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(S,M){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,p){x.__proto__=p}||function(x,p){for(var g in p)p.hasOwnProperty(g)&&(x[g]=p[g])},U(S,M)},function(S,M){function x(){this.constructor=S}U(S,M),S.prototype=M===null?Object.create(M):(x.prototype=M.prototype,new x)}),Z=G.charts,V=G.doc,F=G.noop,I=G.win,E=X.addEvent,A=X.css,P=X.objectEach,y=X.pick,c=X.removeEvent,f={},m=!!I.PointerEvent;function u(S,M,x,p){var g,r=Z[B.hoverChartIndex||NaN];if((S.pointerType==="touch"||S.pointerType===S.MSPOINTER_TYPE_TOUCH)&&r){var a=r.pointer;p(S),a[M]({type:x,target:S.currentTarget,preventDefault:F,touches:(g=[],g.item=function(t){return this[t]},P(f,function(t){g.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),g)})}}var v=function(S){function M(){return S!==null&&S.apply(this,arguments)||this}return $(M,S),M.isRequired=function(){return!(G.hasTouch||!I.PointerEvent&&!I.MSPointerEvent)},M.prototype.batchMSEvents=function(x){x(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),x(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),x(V,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},M.prototype.destroy=function(){this.batchMSEvents(c),S.prototype.destroy.call(this)},M.prototype.init=function(x,p){S.prototype.init.call(this,x,p),this.hasZoom&&A(x.container,{"-ms-touch-action":"none","touch-action":"none"})},M.prototype.onContainerPointerDown=function(x){u(x,"onContainerTouchStart","touchstart",function(p){f[p.pointerId]={pageX:p.pageX,pageY:p.pageY,target:p.currentTarget}})},M.prototype.onContainerPointerMove=function(x){u(x,"onContainerTouchMove","touchmove",function(p){f[p.pointerId]={pageX:p.pageX,pageY:p.pageY},f[p.pointerId].target||(f[p.pointerId].target=p.currentTarget)})},M.prototype.onDocumentPointerUp=function(x){u(x,"onDocumentTouchEnd","touchend",function(p){delete f[p.pointerId]})},M.prototype.setDOMEvents=function(){var x=this.chart.tooltip;S.prototype.setDOMEvents.call(this),(this.hasZoom||y(x&&x.options.followTouchMove,!0))&&this.batchMSEvents(E)},M}(B);return v}),et(_,"Core/Legend/Legend.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Series/Point.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.animObject,F=G.setAnimation,I=B.format,E=X.marginNames,A=$.distribute,P=Z.addEvent,y=Z.createElement,c=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,S=Z.isNumber,M=Z.merge,x=Z.pick,p=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return function(){function a(t,i){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=M(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(M(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line,h=o.symbol;if(e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var b=this.options,k=this.itemHiddenStyle.color,D=i?b.itemStyle.color:k,d=i&&t.color||k,C=t.options&&t.options.marker,T={fill:d};s&&s.css({fill:D,color:D}),n&&n.attr({stroke:d}),h&&(C&&h.isMarker&&(T=t.pointAttribs(),i||(T.stroke=T.fill=k)),h.attr(T))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x,n=s===void 0?0:s,h=o.y,b=h===void 0?0:h,k=this.options,D=k.symbolPadding,d=!k.rtl,C=t.checkbox;if(e&&e.element){var T={translateX:d?n:this.legendWidth-n-2*D-4,translateY:b};e[f(e.translateY)?"animate":"attr"](T,void 0,function(){v(i,"afterPositionItem",{item:t})})}C&&(C.x=n,C.y=b)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=this,i=0,o=this.getAllItems();i<o.length;i++){var e=o[i];this.destroyItem(e)}for(var s=0,n=["clipRect","up","down","pager","nav","box","title","group"];s<n.length;s++){var h=n[s];t[h]&&(t[h]=t[h].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t,i=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,e=this.titleHeight;i&&(t=i.translateY,this.allItems.forEach(function(s){var n,h=s.checkbox;h&&(n=t+e+h.y+(this.scrollOffset||0)+3,c(h,{left:i.translateX+s.checkboxOffset+h.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n<t+o-6?"":"none"}))},this))},a.prototype.renderTitle=function(){var t,i=this.options,o=this.padding,e=i.title,s=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,o-3,o-4,void 0,void 0,void 0,i.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=this,o=t.legendItem=t.legendItem||{},e=i.chart,s=e.renderer,n=i.options,h=n.layout==="horizontal",b=i.symbolWidth,k=n.symbolPadding||0,D=i.itemStyle,d=i.itemHiddenStyle,C=h?x(n.itemDistance,20):0,T=!n.rtl,N=!t.series,z=!N&&t.series.drawLegendSymbol?t.series:t,L=z.options,O=i.createCheckboxForItem&&L&&L.showCheckbox,j=n.useHTML,Y=t.options.className,H=o.label,W=b+k+C+(O?20:0);H||(o.group=s.g("legend-item").addClass("highcharts-"+z.type+"-series highcharts-color-"+t.colorIndex+(Y?" "+Y:"")+(N?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(i.scrollGroup),o.label=H=s.text("",T?b+k:-k,i.baseline||0,j),e.styledMode||H.css(M(t.visible?D:d)),H.attr({align:T?"left":"right",zIndex:2}).add(o.group),i.baseline||(i.fontMetrics=s.fontMetrics(e.styledMode?12:D.fontSize,H),i.baseline=i.fontMetrics.f+3+i.itemMarginTop,H.attr("y",i.baseline),i.symbolHeight=n.symbolHeight||i.fontMetrics.f,n.squareSymbol&&(i.symbolWidth=x(n.symbolWidth,Math.max(i.symbolHeight,16)),W=i.symbolWidth+k+C+(O?20:0),T&&H.attr("x",i.symbolWidth+k))),z.drawLegendSymbol(i,t),i.setItemEvents&&i.setItemEvents(t,H,j)),O&&!t.checkbox&&i.createCheckboxForItem&&i.createCheckboxForItem(t),i.colorizeItem(t,t.visible),!e.styledMode&&D.width||H.css({width:(n.itemWidth||i.widthOption||e.spacingBox.width)-W+"px"}),i.setText(t);var q=H.getBBox(),tt=i.fontMetrics&&i.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=n.itemWidth||o.labelWidth||q.width+W,i.maxItemWidth=Math.max(i.maxItemWidth,t.itemWidth),i.totalItemWidth+=t.itemWidth,i.itemHeight=t.itemHeight=Math.round(o.labelHeight||(q.height>1.5*tt?q.height:tt))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,h=this.itemMarginTop,b=e?x(i.itemDistance,20):0,k=this.maxLegendWidth,D=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};e&&this.itemX-o+D>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=h+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,e?this.itemX+=D:(this.itemY+=h+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):D)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.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)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,h){n.test(s)&&!f(t[h])&&(o[E[h]]=Math.max(o[E[h]],o.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*e[h%2?"x":"y"]+x(e.margin,12)+i[h]+(o.titleOffset[h]||0)))})},a.prototype.proximatePositions=function(){var t,i=this.chart,o=[],e=this.options.align==="left";this.allItems.forEach(function(b){var k,D,d,C,T=e;b.yAxis&&(b.xAxis.options.reversed&&(T=!T),b.points&&(k=u(T?b.points:b.points.slice(0).reverse(),function(N){return S(N.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom,C=b.yAxis.top-i.plotTop,b.visible?(d=k?k.plotY:b.yAxis.height,d+=C-.3*D):d=C+b.yAxis.height,o.push({target:d,size:D,item:b}))},this);for(var s=0,n=A(o,i.plotHeight);s<n.length;s++){var h=n[s];t=h.item.legendItem||{},S(h.pos)&&(t.y=i.plotTop-i.spacing[0]+h.pos)}},a.prototype.render=function(){var t,i,o,e,s=this,n=s.chart,h=n.renderer,b=s.options,k=s.padding,D=s.getAllItems(),d=s.group,C=s.box;s.itemX=k,s.itemY=s.initialItemY,s.offsetWidth=0,s.lastItemY=0,s.widthOption=p(b.width,n.spacingBox.width-k),e=n.spacingBox.width-2*k-b.x,["rm","lm"].indexOf(s.getAlignment().substring(0,2))>-1&&(e/=2),s.maxLegendWidth=s.widthOption||e,d||(s.group=d=h.g("legend").addClass(b.className||"").attr({zIndex:7}).add(),s.contentGroup=h.g().attr({zIndex:1}).add(d),s.scrollGroup=h.g().add(s.contentGroup)),s.renderTitle(),g(D,function(T,N){return(T.options&&T.options.legendIndex||0)-(N.options&&N.options.legendIndex||0)}),b.reversed&&D.reverse(),s.allItems=D,s.display=t=!!D.length,s.lastLineHeight=0,s.maxItemWidth=0,s.totalItemWidth=0,s.itemHeight=0,D.forEach(s.renderItem,s),D.forEach(s.layoutItem,s),i=(s.widthOption||s.offsetWidth)+k,o=s.lastItemY+s.lastLineHeight+s.titleHeight,o=s.handleOverflow(o),o+=k,C||(s.box=C=h.rect().addClass("highcharts-legend-box").attr({r:b.borderRadius}).add(d)),n.styledMode||C.attr({stroke:b.borderColor,"stroke-width":b.borderWidth||0,fill:b.backgroundColor||"none"}).shadow(b.shadow),i>0&&o>0&&C[C.placed?"animate":"attr"](C.crisp.call({},{x:0,y:0,width:i,height:o},C.strokeWidth())),d[t?"show":"hide"](),n.styledMode&&d.getStyle("display")==="none"&&(i=o=0),s.legendWidth=i,s.legendHeight=o,t&&s.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&i.titleOffset[0]>0?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&i.titleOffset[2]>0&&(e-=i.titleOffset[2]),e!==t.y&&(t=M(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(M(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,h=n.renderer,b=this.options,k=b.y,D=b.verticalAlign==="top",d=this.padding,C=b.maxHeight,T=b.navigation,N=x(T.animation,!0),z=T.arrowSize||12,L=this.pages,O=this.allItems,j=function(tt){typeof tt=="number"?q.attr({height:tt}):q&&(s.clipRect=q.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=tt?"rect("+d+"px,9999px,"+(d+tt)+"px,0)":"auto")},Y=function(tt){return s[tt]=h.circle(0,0,1.3*z).translate(z/2,z/2).add(W),n.styledMode||s[tt].attr("fill","rgba(0,0,0,0.0001)"),s[tt]},H=n.spacingBox.height+(D?-k:k)-d,W=this.nav,q=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(H/=2),C&&(H=Math.min(H,C)),L.length=0,t&&H>0&&t>H&&T.enabled!==!1?(this.clipHeight=i=Math.max(H-20-this.titleHeight-d,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(tt,J){var nt=(e=tt.legendItem||{}).y||0,lt=Math.round(e.label.getBBox().height),gt=L.length;(!gt||nt-L[gt-1]>i&&(o||nt)!==L[gt-1])&&(L.push(o||nt),gt++),e.pageIx=gt-1,o&&((O[J-1].legendItem||{}).pageIx=gt-1),J===O.length-1&&nt+lt-L[gt-1]>i&<<=i&&(L.push(nt),e.pageIx=gt),nt!==o&&(o=nt)}),q||(q=s.clipRect=h.clipRect(0,d,9999,0),s.contentGroup.clip(q)),j(i),W||(this.nav=W=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol("triangle",0,0,z,z).add(W),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=h.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&T.style&&this.pager.css(T.style),this.pager.add(W),this.down=h.symbol("triangle-down",0,0,z,z).add(W),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=H):W&&(j(),this.nav=W.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,h=this.clipHeight,b=this.options.navigation,k=this.pager,D=this.padding,d=this.currentPage+t;if(d>n&&(d=n),d>0){i!==void 0&&F(i,e),this.nav.attr({translateX:D,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(T){T.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(T){T.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes();var C=V(x(i,e.renderer.globalAnimation,!0));r(function(){v(o,"afterScroll",{currentPage:d})},C.duration)}},a.prototype.setItemEvents=function(t,i,o){for(var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,h=t instanceof U,b="highcharts-legend-"+(h?"point":"series")+"-active",k=e.chart.styledMode,D=o?[i,s.symbol]:[s.group],d=function(z){e.allItems.forEach(function(L){t!==L&&[L].concat(L.linkedSeries||[]).forEach(function(O){O.setState(z,!h)})})},C=0,T=D;C<T.length;C++){var N=T[C];N&&N.on("mouseover",function(){t.visible&&d("inactive"),t.setState("hover"),t.visible&&n.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(M(t.visible?e.itemStyle:e.itemHiddenStyle)),d(""),n.removeClass(b),t.setState()}).on("click",function(z){var L="legendItemClick",O=function(){t.setVisible&&t.setVisible(),d(t.visible?"inactive":"")};n.removeClass(b),z={browserEvent:z},t.firePointEvent?t.firePointEvent(L,z,O):v(t,L,z,O)})}},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){var o=i.target;v(t.series||t,"checkboxClick",{checked:o.checked,item:t},function(){t.select()})})},a}()}),et(_,"Core/Series/SeriesRegistry.js",[_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=B.defaultOptions,V=U.extendClass,F=U.merge;return function(I){function E(A,P){var y=Z.plotOptions||{},c=P.defaultOptions,f=P.prototype;f.type=A,f.pointClass||(f.pointClass=X),c&&(y[A]=c),I.seriesTypes[A]=P}I.seriesTypes=G.seriesTypes,I.registerSeriesType=E,I.seriesType=function(A,P,y,c,f){var m=Z.plotOptions||{};return P=P||"",m[A]=F(m[P],y),E(A,V(I.seriesTypes[P]||function(){},c)),I.seriesTypes[A].prototype.type=A,f&&(I.seriesTypes[A].prototype.pointClass=V(X,f)),I.seriesTypes[A]}}($||($={})),$}),et(_,"Core/Chart/Chart.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/Legend.js"],_["Core/MSPointer.js"],_["Core/Pointer.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Time.js"],_["Core/Utilities.js"],_["Core/Renderer/HTML/AST.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P,y,c,f){var m=G.animate,u=G.animObject,v=G.setAnimation,S=X.defaultOptions,M=X.defaultTime,x=U.numberFormat,p=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=A.seriesTypes,e=c.addEvent,s=c.attr,n=c.cleanRecursively,h=c.createElement,b=c.css,k=c.defined,D=c.discardElement,d=c.erase,C=c.error,T=c.extend,N=c.find,z=c.fireEvent,L=c.getStyle,O=c.isArray,j=c.isNumber,Y=c.isObject,H=c.isString,W=c.merge,q=c.objectEach,tt=c.pick,J=c.pInt,nt=c.relativeLength,lt=c.removeEvent,gt=c.splat,mt=c.syncTimeout,bt=c.uniqueKey,yt=function(){function dt(ot,at,ut){this.axes=void 0,this.axisOffset=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.legend=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.getArgs(ot,at,ut)}return dt.chart=function(ot,at,ut){return new dt(ot,at,ut)},dt.prototype.getArgs=function(ot,at,ut){H(ot)||ot.nodeName?(this.renderTo=ot,this.init(at,ut)):this.init(ot,at)},dt.prototype.init=function(ot,at){var ut=ot.plotOptions||{};z(this,"init",{args:arguments},function(){var vt=W(S,ot),Ct=vt.chart;q(vt.plotOptions,function(wt,Mt){Y(wt)&&(wt.tooltip=ut[Mt]&&W(ut[Mt].tooltip)||void 0)}),vt.tooltip.userOptions=ot.chart&&ot.chart.forExport&&ot.tooltip.userOptions||ot.tooltip,this.userOptions=ot,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=at,this.isResizing=0;var xt=Ct.zooming=Ct.zooming||{};ot.chart&&!ot.chart.zooming&&(xt.resetButton=Ct.resetZoomButton),xt.key=tt(xt.key,Ct.zoomKey),xt.pinchType=tt(xt.pinchType,Ct.pinchType),xt.singleTouch=tt(xt.singleTouch,Ct.zoomBySingleTouch),xt.type=tt(xt.type,Ct.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=ot.time&&Object.keys(ot.time).length?new y(ot.time):Z.time,this.numberFormatter=Ct.numberFormatter||x,this.styledMode=Ct.styledMode,this.hasCartesianSeries=Ct.showAxes;var St=this;St.index=g.length,g.push(St),Z.chartCount++,p(this,Ct),St.xAxis=[],St.yAxis=[],St.pointCount=St.colorCounter=St.symbolCounter=0,z(St,"afterInit"),St.firstRender()})},dt.prototype.initSeries=function(ot){var at=this,ut=at.options.chart,vt=ot.type||ut.type||ut.defaultSeriesType,Ct=o[vt];Ct||C(17,!0,at,{missingModuleFor:vt});var xt=new Ct;return typeof xt.init=="function"&&xt.init(at,ot),xt},dt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(ot){ot.points||ot.data||!ot.enabledDataSorting||ot.setData(ot.options.data,!1)})},dt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(ot,at){return ot.linkedSeries.length||at.linkedSeries.length?at.linkedSeries.length-ot.linkedSeries.length:0})},dt.prototype.orderSeries=function(ot){for(var at=this.series,ut=ot||0,vt=at.length;ut<vt;++ut)at[ut]&&(at[ut].index=ut,at[ut].name=at[ut].getName())},dt.prototype.isInsidePlot=function(ot,at,ut){var vt;ut===void 0&&(ut={});var Ct=this,xt=Ct.inverted,St=Ct.plotBox,wt=Ct.plotLeft,Mt=Ct.plotTop,Tt=Ct.scrollablePlotBox,Lt=0,Pt=0;ut.visiblePlotOnly&&this.scrollingContainer&&(Lt=(vt=this.scrollingContainer).scrollLeft,Pt=vt.scrollTop);var Et=ut.series,jt=ut.visiblePlotOnly&&Tt||St,Dt=ut.inverted?at:ot,_t=ut.inverted?ot:at,Bt={x:Dt,y:_t,isInsidePlot:!0,options:ut};if(!ut.ignoreX){var Jt=Et&&(xt&&!this.polar?Et.yAxis:Et.xAxis)||{pos:wt,len:1/0},Gt=ut.paneCoordinates?Jt.pos+Dt:wt+Dt;Gt>=Math.max(Lt+wt,Jt.pos)&&Gt<=Math.min(Lt+wt+jt.width,Jt.pos+Jt.len)||(Bt.isInsidePlot=!1)}if(!ut.ignoreY&&Bt.isInsidePlot){var Ut=ut.axis&&!ut.axis.isXAxis&&ut.axis||Et&&(xt?Et.xAxis:Et.yAxis)||{pos:Mt,len:1/0},Kt=ut.paneCoordinates?Ut.pos+_t:Mt+_t;Kt>=Math.max(Pt+Mt,Ut.pos)&&Kt<=Math.min(Pt+Mt+jt.height,Ut.pos+Ut.len)||(Bt.isInsidePlot=!1)}return z(this,"afterIsInsidePlot",Bt),Bt.isInsidePlot},dt.prototype.redraw=function(ot){z(this,"beforeRedraw");var at,ut,vt,Ct,xt=this,St=xt.hasCartesianSeries?xt.axes:xt.colorAxis||[],wt=xt.series,Mt=xt.pointer,Tt=xt.legend,Lt=xt.userOptions.legend,Pt=xt.renderer,Et=Pt.isHidden(),jt=[],Dt=xt.isDirtyBox,_t=xt.isDirtyLegend;for(xt.setResponsive&&xt.setResponsive(!1),v(!!xt.hasRendered&&ot,xt),Et&&xt.temporaryDisplay(),xt.layOutTitles(),vt=wt.length;vt--;)if(((Ct=wt[vt]).options.stacking||Ct.options.centerInCategory)&&(ut=!0,Ct.isDirty)){at=!0;break}if(at)for(vt=wt.length;vt--;)(Ct=wt[vt]).options.stacking&&(Ct.isDirty=!0);wt.forEach(function(Bt){Bt.isDirty&&(Bt.options.legendType==="point"?(typeof Bt.updateTotals=="function"&&Bt.updateTotals(),_t=!0):Lt&&(Lt.labelFormatter||Lt.labelFormat)&&(_t=!0)),Bt.isDirtyData&&z(Bt,"updatedData")}),_t&&Tt&&Tt.options.enabled&&(Tt.render(),xt.isDirtyLegend=!1),ut&&xt.getStacks(),St.forEach(function(Bt){Bt.updateNames(),Bt.setScale()}),xt.getMargins(),St.forEach(function(Bt){Bt.isDirty&&(Dt=!0)}),St.forEach(function(Bt){var Jt=Bt.min+","+Bt.max;Bt.extKey!==Jt&&(Bt.extKey=Jt,jt.push(function(){z(Bt,"afterSetExtremes",T(Bt.eventArgs,Bt.getExtremes())),delete Bt.eventArgs})),(Dt||ut)&&Bt.redraw()}),Dt&&xt.drawChartBox(),z(xt,"predraw"),wt.forEach(function(Bt){(Dt||Bt.isDirty)&&Bt.visible&&Bt.redraw(),Bt.isDirtyData=!1}),Mt&&Mt.reset(!0),Pt.draw(),z(xt,"redraw"),z(xt,"render"),Et&&xt.temporaryDisplay(!0),jt.forEach(function(Bt){Bt.call()})},dt.prototype.get=function(ot){var at=this.series;function ut(xt){return xt.id===ot||xt.options&&xt.options.id===ot}for(var vt=N(this.axes,ut)||N(this.series,ut),Ct=0;!vt&&Ct<at.length;Ct++)vt=N(at[Ct].points||[],ut);return vt},dt.prototype.getAxes=function(){var ot=this,at=this.options,ut=at.xAxis=gt(at.xAxis||{}),vt=at.yAxis=gt(at.yAxis||{});z(this,"getAxes"),ut.forEach(function(Ct,xt){Ct.index=xt,Ct.isX=!0}),vt.forEach(function(Ct,xt){Ct.index=xt}),ut.concat(vt).forEach(function(Ct){new B(ot,Ct)}),z(this,"afterGetAxes")},dt.prototype.getSelectedPoints=function(){return this.series.reduce(function(ot,at){return at.getPointsCollection().forEach(function(ut){tt(ut.selectedStaging,ut.selected)&&ot.push(ut)}),ot},[])},dt.prototype.getSelectedSeries=function(){return this.series.filter(function(ot){return ot.selected})},dt.prototype.setTitle=function(ot,at,ut){this.applyDescription("title",ot),this.applyDescription("subtitle",at),this.applyDescription("caption",void 0),this.layOutTitles(ut)},dt.prototype.applyDescription=function(ot,at){var ut=this,vt=ot==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},Ct=this.options[ot]=W(!this.styledMode&&{style:vt},this.options[ot],at),xt=this[ot];xt&&at&&(this[ot]=xt=xt.destroy()),Ct&&!xt&&((xt=this.renderer.text(Ct.text,0,0,Ct.useHTML).attr({align:Ct.align,class:"highcharts-"+ot,zIndex:Ct.zIndex||4}).add()).update=function(St){ut[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[ot]](St)},this.styledMode||xt.css(Ct.style),this[ot]=xt)},dt.prototype.layOutTitles=function(ot){var at=[0,0,0],ut=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(xt){var St,wt,Mt=this[xt],Tt=this.options[xt],Lt=Tt.verticalAlign||"top",Pt=xt==="title"?Lt==="top"?-3:0:Lt==="top"?at[0]+2:0;Mt&&(this.styledMode||(St=Tt.style&&Tt.style.fontSize),St=ut.fontMetrics(St,Mt).b,Mt.css({width:(Tt.width||vt.width+(Tt.widthAdjust||0))+"px"}),wt=Math.round(Mt.getBBox(Tt.useHTML).height),Mt.align(T({y:Lt==="bottom"?St:Pt+St,height:wt},Tt),!1,"spacingBox"),Tt.floating||(Lt==="top"?at[0]=Math.ceil(at[0]+wt):Lt==="bottom"&&(at[2]=Math.ceil(at[2]+wt))))},this),at[0]&&(this.options.title.verticalAlign||"top")==="top"&&(at[0]+=this.options.title.margin),at[2]&&this.options.caption.verticalAlign==="bottom"&&(at[2]+=this.options.caption.margin);var Ct=!this.titleOffset||this.titleOffset.join(",")!==at.join(",");this.titleOffset=at,z(this,"afterLayOutTitles"),!this.isDirtyBox&&Ct&&(this.isDirtyBox=this.isDirtyLegend=Ct,this.hasRendered&&tt(ot,!0)&&this.isDirtyBox&&this.redraw())},dt.prototype.getChartSize=function(){var ot=this,at=ot.options.chart,ut=at.width,vt=at.height,Ct=ot.renderTo;k(ut)||(ot.containerWidth=L(Ct,"width")),k(vt)||(ot.containerHeight=L(Ct,"height")),ot.chartWidth=Math.max(0,ut||ot.containerWidth||600),ot.chartHeight=Math.max(0,nt(vt,ot.chartWidth)||(ot.containerHeight>1?ot.containerHeight:400))},dt.prototype.temporaryDisplay=function(ot){var at,ut=this.renderTo;if(ot)for(;ut&&ut.style;)ut.hcOrigStyle&&(b(ut,ut.hcOrigStyle),delete ut.hcOrigStyle),ut.hcOrigDetached&&(r.body.removeChild(ut),ut.hcOrigDetached=!1),ut=ut.parentNode;else for(;ut&&ut.style&&(r.body.contains(ut)||ut.parentNode||(ut.hcOrigDetached=!0,r.body.appendChild(ut)),(L(ut,"display",!1)==="none"||ut.hcOricDetached)&&(ut.hcOrigStyle={display:ut.style.display,height:ut.style.height,overflow:ut.style.overflow},at={display:"block",overflow:"hidden"},ut!==this.renderTo&&(at.height=0),b(ut,at),ut.offsetWidth||ut.style.setProperty("display","block","important")),(ut=ut.parentNode)!==r.body););},dt.prototype.setClassName=function(ot){this.container.className="highcharts-container "+(ot||"")},dt.prototype.getContainer=function(){var ot,at=this,ut=at.options,vt=ut.chart,Ct="data-highcharts-chart",xt=bt(),St=at.renderTo;St||(at.renderTo=St=vt.renderTo),H(St)&&(at.renderTo=St=r.getElementById(St)),St||C(13,!0,at);var wt=J(s(St,Ct));j(wt)&&g[wt]&&g[wt].hasRendered&&g[wt].destroy(),s(St,Ct,at.index),St.innerHTML=f.emptyHTML,vt.skipClone||St.offsetWidth||at.temporaryDisplay(),at.getChartSize();var Mt=at.chartWidth,Tt=at.chartHeight;b(St,{overflow:"hidden"}),at.styledMode||(ot=T({position:"relative",overflow:"hidden",width:Mt+"px",height:Tt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},vt.style||{}));var Lt=h("div",{id:xt},ot,St);at.container=Lt,at._cursor=Lt.style.cursor;var Pt=vt.renderer||!t?E.getRendererType(vt.renderer):P;if(at.renderer=new Pt(Lt,Mt,Tt,void 0,vt.forExport,ut.exporting&&ut.exporting.allowHTML,at.styledMode),v(void 0,at),at.setClassName(vt.className),at.styledMode)for(var Et in ut.defs)this.renderer.definition(ut.defs[Et]);else at.renderer.setStyle(vt.style);at.renderer.chartIndex=at.index,z(this,"afterGetContainer")},dt.prototype.getMargins=function(ot){var at=this,ut=at.spacing,vt=at.margin,Ct=at.titleOffset;this.resetMargins(),Ct[0]&&!k(vt[0])&&(this.plotTop=Math.max(this.plotTop,Ct[0]+ut[0])),Ct[2]&&!k(vt[2])&&(this.marginBottom=Math.max(this.marginBottom,Ct[2]+ut[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(vt,ut),z(this,"getMargins"),ot||this.getAxisMargins()},dt.prototype.getAxisMargins=function(){var ot=this,at=ot.axisOffset=[0,0,0,0],ut=ot.colorAxis,vt=ot.margin,Ct=function(xt){xt.forEach(function(St){St.visible&&St.getOffset()})};ot.hasCartesianSeries?Ct(ot.axes):ut&&ut.length&&Ct(ut),a.forEach(function(xt,St){k(vt[St])||(ot[xt]+=at[St])}),ot.setChartSize()},dt.prototype.reflow=function(ot){var at=this,ut=at.options.chart,vt=at.renderTo,Ct=k(ut.width)&&k(ut.height),xt=ut.width||L(vt,"width"),St=ut.height||L(vt,"height"),wt=ot?ot.target:i;delete at.pointer.chartPosition,Ct||at.isPrinting||!xt||!St||wt!==i&&wt!==r||(xt===at.containerWidth&&St===at.containerHeight||(c.clearTimeout(at.reflowTimeout),at.reflowTimeout=mt(function(){at.container&&at.setSize(void 0,void 0,!1)},ot?100:0)),at.containerWidth=xt,at.containerHeight=St)},dt.prototype.setReflow=function(ot){var at=this;ot===!1||this.unbindReflow?ot===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(ut){at.options&&at.reflow(ut)}),e(this,"destroy",this.unbindReflow))},dt.prototype.setSize=function(ot,at,ut){var vt=this,Ct=vt.renderer;vt.isResizing+=1,v(ut,vt);var xt=Ct.globalAnimation;vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,ot!==void 0&&(vt.options.chart.width=ot),at!==void 0&&(vt.options.chart.height=at),vt.getChartSize(),vt.styledMode||(xt?m:b)(vt.container,{width:vt.chartWidth+"px",height:vt.chartHeight+"px"},xt),vt.setChartSize(!0),Ct.setSize(vt.chartWidth,vt.chartHeight,xt),vt.axes.forEach(function(St){St.isDirty=!0,St.setScale()}),vt.isDirtyLegend=!0,vt.isDirtyBox=!0,vt.layOutTitles(),vt.getMargins(),vt.redraw(xt),vt.oldChartHeight=null,z(vt,"resize"),mt(function(){vt&&z(vt,"endResize",null,function(){vt.isResizing-=1})},u(xt).duration)},dt.prototype.setChartSize=function(ot){var at,ut,vt,Ct,xt=this,St=xt.inverted,wt=xt.renderer,Mt=xt.chartWidth,Tt=xt.chartHeight,Lt=xt.options.chart,Pt=xt.spacing,Et=xt.clipOffset;xt.plotLeft=at=Math.round(xt.plotLeft),xt.plotTop=ut=Math.round(xt.plotTop),xt.plotWidth=vt=Math.max(0,Math.round(Mt-at-xt.marginRight)),xt.plotHeight=Ct=Math.max(0,Math.round(Tt-ut-xt.marginBottom)),xt.plotSizeX=St?Ct:vt,xt.plotSizeY=St?vt:Ct,xt.plotBorderWidth=Lt.plotBorderWidth||0,xt.spacingBox=wt.spacingBox={x:Pt[3],y:Pt[0],width:Mt-Pt[3]-Pt[1],height:Tt-Pt[0]-Pt[2]},xt.plotBox=wt.plotBox={x:at,y:ut,width:vt,height:Ct};var jt=2*Math.floor(xt.plotBorderWidth/2),Dt=Math.ceil(Math.max(jt,Et[3])/2),_t=Math.ceil(Math.max(jt,Et[0])/2);xt.clipBox={x:Dt,y:_t,width:Math.floor(xt.plotSizeX-Math.max(jt,Et[1])/2-Dt),height:Math.max(0,Math.floor(xt.plotSizeY-Math.max(jt,Et[2])/2-_t))},ot||(xt.axes.forEach(function(Bt){Bt.setAxisSize(),Bt.setAxisTranslation()}),wt.alignElements()),z(xt,"afterSetChartSize",{skipAxes:ot})},dt.prototype.resetMargins=function(){z(this,"resetMargins");var ot=this,at=ot.options.chart;["margin","spacing"].forEach(function(ut){var vt=at[ut],Ct=Y(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(xt,St){ot[ut][St]=tt(at[ut+xt],Ct[St])})}),a.forEach(function(ut,vt){ot[ut]=tt(ot.margin[vt],ot.spacing[vt])}),ot.axisOffset=[0,0,0,0],ot.clipOffset=[0,0,0,0]},dt.prototype.drawChartBox=function(){var ot,at,ut,vt=this,Ct=vt.options.chart,xt=vt.renderer,St=vt.chartWidth,wt=vt.chartHeight,Mt=vt.styledMode,Tt=vt.plotBGImage,Lt=Ct.backgroundColor,Pt=Ct.plotBackgroundColor,Et=Ct.plotBackgroundImage,jt=vt.plotLeft,Dt=vt.plotTop,_t=vt.plotWidth,Bt=vt.plotHeight,Jt=vt.plotBox,Gt=vt.clipRect,Ut=vt.clipBox,Kt=vt.chartBackground,le=vt.plotBackground,$t=vt.plotBorder,ie="animate";Kt||(vt.chartBackground=Kt=xt.rect().addClass("highcharts-background").add(),ie="attr"),Mt?ot=at=Kt.strokeWidth():(at=(ot=Ct.borderWidth||0)+(Ct.shadow?8:0),ut={fill:Lt||"none"},(ot||Kt["stroke-width"])&&(ut.stroke=Ct.borderColor,ut["stroke-width"]=ot),Kt.attr(ut).shadow(Ct.shadow)),Kt[ie]({x:at/2,y:at/2,width:St-at-ot%2,height:wt-at-ot%2,r:Ct.borderRadius}),ie="animate",le||(ie="attr",vt.plotBackground=le=xt.rect().addClass("highcharts-plot-background").add()),le[ie](Jt),Mt||(le.attr({fill:Pt||"none"}).shadow(Ct.plotShadow),Et&&(Tt?(Et!==Tt.attr("href")&&Tt.attr("href",Et),Tt.animate(Jt)):vt.plotBGImage=xt.image(Et,jt,Dt,_t,Bt).add())),Gt?Gt.animate({width:Ut.width,height:Ut.height}):vt.clipRect=xt.clipRect(Ut),ie="animate",$t||(ie="attr",vt.plotBorder=$t=xt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Mt||$t.attr({stroke:Ct.plotBorderColor,"stroke-width":Ct.plotBorderWidth||0,fill:"none"}),$t[ie]($t.crisp({x:jt,y:Dt,width:_t,height:Bt},-$t.strokeWidth())),vt.isDirtyBox=!1,z(this,"afterDrawChartBox")},dt.prototype.propFromSeries=function(){var ot,at,ut,vt=this,Ct=vt.options.chart,xt=vt.options.series;["inverted","angular","polar"].forEach(function(St){for(at=o[Ct.type||Ct.defaultSeriesType],ut=Ct[St]||at&&at.prototype[St],ot=xt&&xt.length;!ut&&ot--;)(at=o[xt[ot].type])&&at.prototype[St]&&(ut=!0);vt[St]=ut})},dt.prototype.linkSeries=function(){var ot=this,at=ot.series;at.forEach(function(ut){ut.linkedSeries.length=0}),at.forEach(function(ut){var vt=ut.options.linkedTo;H(vt)&&(vt=vt===":previous"?ot.series[ut.index-1]:ot.get(vt))&&vt.linkedParent!==ut&&(vt.linkedSeries.push(ut),ut.linkedParent=vt,vt.enabledDataSorting&&ut.setDataSortingOptions(),ut.visible=tt(ut.options.visible,vt.options.visible,ut.visible))}),z(this,"afterLinkSeries")},dt.prototype.renderSeries=function(){this.series.forEach(function(ot){ot.translate(),ot.render()})},dt.prototype.renderLabels=function(){var ot=this,at=ot.options.labels;at.items&&at.items.forEach(function(ut){var vt=T(at.style,ut.style),Ct=J(vt.left)+ot.plotLeft,xt=J(vt.top)+ot.plotTop+12;delete vt.left,delete vt.top,ot.renderer.text(ut.html,Ct,xt).attr({zIndex:2}).css(vt).add()})},dt.prototype.render=function(){var ot=this,at=ot.axes,ut=ot.colorAxis,vt=ot.renderer,Ct=ot.options,xt=function(Pt){Pt.forEach(function(Et){Et.visible&&Et.render()})},St=0;ot.setTitle(),ot.legend=new V(ot,Ct.legend),ot.getStacks&&ot.getStacks(),ot.getMargins(!0),ot.setChartSize();var wt=ot.plotWidth;at.some(function(Pt){if(Pt.horiz&&Pt.visible&&Pt.options.labels.enabled&&Pt.series.length)return St=21,!0}),ot.plotHeight=Math.max(ot.plotHeight-St,0);var Mt=ot.plotHeight;at.forEach(function(Pt){Pt.setScale()}),ot.getAxisMargins();var Tt=wt/ot.plotWidth>1.1,Lt=Mt/ot.plotHeight>1.05;(Tt||Lt)&&(at.forEach(function(Pt){(Pt.horiz&&Tt||!Pt.horiz&&Lt)&&Pt.setTickInterval(!0)}),ot.getMargins()),ot.drawChartBox(),ot.hasCartesianSeries?xt(at):ut&&ut.length&&xt(ut),ot.seriesGroup||(ot.seriesGroup=vt.g("series-group").attr({zIndex:3}).add()),ot.renderSeries(),ot.renderLabels(),ot.addCredits(),ot.setResponsive&&ot.setResponsive(),ot.hasRendered=!0},dt.prototype.addCredits=function(ot){var at=this,ut=W(!0,this.options.credits,ot);ut.enabled&&!this.credits&&(this.credits=this.renderer.text(ut.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){ut.href&&(i.location.href=ut.href)}).attr({align:ut.position.align,zIndex:8}),at.styledMode||this.credits.css(ut.style),this.credits.add().align(ut.position),this.credits.update=function(vt){at.credits=at.credits.destroy(),at.addCredits(vt)})},dt.prototype.destroy=function(){var ot,at=this,ut=at.axes,vt=at.series,Ct=at.container,xt=Ct&&Ct.parentNode;for(z(at,"destroy"),at.renderer.forExport?d(g,at):g[at.index]=void 0,Z.chartCount--,at.renderTo.removeAttribute("data-highcharts-chart"),lt(at),ot=ut.length;ot--;)ut[ot]=ut[ot].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ot=vt.length;ot--;)vt[ot]=vt[ot].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(St){var wt=at[St];wt&&wt.destroy&&(at[St]=wt.destroy())}),Ct&&(Ct.innerHTML=f.emptyHTML,lt(Ct),xt&&D(Ct)),q(at,function(St,wt){delete at[wt]})},dt.prototype.firstRender=function(){var ot=this,at=ot.options;ot.isReadyToRender&&!ot.isReadyToRender()||(ot.getContainer(),ot.resetMargins(),ot.setChartSize(),ot.propFromSeries(),ot.getAxes(),(O(at.series)?at.series:[]).forEach(function(ut){ot.initSeries(ut)}),ot.linkSeries(),ot.setSeriesData(),z(ot,"beforeRender"),I&&(F.isRequired()?ot.pointer=new F(ot,at):ot.pointer=new I(ot,at)),ot.render(),ot.pointer.getChartPosition(),ot.renderer.imgCount||ot.hasLoaded||ot.onload(),ot.temporaryDisplay(!0))},dt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(ot){ot&&this.index!==void 0&&ot.apply(this,[this])},this),z(this,"load"),z(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},dt.prototype.warnIfA11yModuleNotLoaded=function(){var ot=this.options,at=this.title;ot&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(at&&at.element.textContent||"").replace(/</g,"<")}),ot.accessibility&&ot.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},dt.prototype.addSeries=function(ot,at,ut){var vt,Ct=this;return ot&&(at=tt(at,!0),z(Ct,"addSeries",{options:ot},function(){vt=Ct.initSeries(ot),Ct.isDirtyLegend=!0,Ct.linkSeries(),vt.enabledDataSorting&&vt.setData(ot.data,!1),z(Ct,"afterAddSeries",{series:vt}),at&&Ct.redraw(ut)})),vt},dt.prototype.addAxis=function(ot,at,ut,vt){return this.createAxis(at?"xAxis":"yAxis",{axis:ot,redraw:ut,animation:vt})},dt.prototype.addColorAxis=function(ot,at,ut){return this.createAxis("colorAxis",{axis:ot,redraw:at,animation:ut})},dt.prototype.createAxis=function(ot,at){var ut=new B(this,W(at.axis,{index:this[ot].length,isX:ot==="xAxis"}));return tt(at.redraw,!0)&&this.redraw(at.animation),ut},dt.prototype.showLoading=function(ot){var at=this,ut=at.options,vt=ut.loading,Ct=function(){xt&&b(xt,{left:at.plotLeft+"px",top:at.plotTop+"px",width:at.plotWidth+"px",height:at.plotHeight+"px"})},xt=at.loadingDiv,St=at.loadingSpan;xt||(at.loadingDiv=xt=h("div",{className:"highcharts-loading highcharts-loading-hidden"},null,at.container)),St||(at.loadingSpan=St=h("span",{className:"highcharts-loading-inner"},null,xt),e(at,"redraw",Ct)),xt.className="highcharts-loading",f.setElementHTML(St,tt(ot,ut.lang.loading,"")),at.styledMode||(b(xt,T(vt.style,{zIndex:10})),b(St,vt.labelStyle),at.loadingShown||(b(xt,{opacity:0,display:""}),m(xt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),at.loadingShown=!0,Ct()},dt.prototype.hideLoading=function(){var ot=this.options,at=this.loadingDiv;at&&(at.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(at,{opacity:0},{duration:ot.loading.hideDuration||100,complete:function(){b(at,{display:"none"})}})),this.loadingShown=!1},dt.prototype.update=function(ot,at,ut,vt){var Ct,xt,St,wt=this,Mt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Tt=ot.isResponsiveOptions,Lt=[];z(wt,"update",{options:ot}),Tt||wt.setResponsive(!1,!0),ot=n(ot,wt.options),wt.userOptions=W(wt.userOptions,ot);var Pt=ot.chart;Pt&&(W(!0,wt.options.chart,Pt),"className"in Pt&&wt.setClassName(Pt.className),"reflow"in Pt&&wt.setReflow(Pt.reflow),("inverted"in Pt||"polar"in Pt||"type"in Pt)&&(wt.propFromSeries(),Ct=!0),"alignTicks"in Pt&&(Ct=!0),"events"in Pt&&p(this,Pt),q(Pt,function(Dt,_t){wt.propsRequireUpdateSeries.indexOf("chart."+_t)!==-1&&(xt=!0),wt.propsRequireDirtyBox.indexOf(_t)!==-1&&(wt.isDirtyBox=!0),wt.propsRequireReflow.indexOf(_t)!==-1&&(Tt?wt.isDirtyBox=!0:St=!0)}),!wt.styledMode&&Pt.style&&wt.renderer.setStyle(wt.options.chart.style||{})),!wt.styledMode&&ot.colors&&(this.options.colors=ot.colors),ot.time&&(this.time===M&&(this.time=new y(ot.time)),W(!0,wt.options.time,ot.time)),q(ot,function(Dt,_t){wt[_t]&&typeof wt[_t].update=="function"?wt[_t].update(Dt,!1):typeof wt[Mt[_t]]=="function"?wt[Mt[_t]](Dt):_t!=="colors"&&wt.collectionsWithUpdate.indexOf(_t)===-1&&W(!0,wt.options[_t],ot[_t]),_t!=="chart"&&wt.propsRequireUpdateSeries.indexOf(_t)!==-1&&(xt=!0)}),this.collectionsWithUpdate.forEach(function(Dt){var _t;ot[Dt]&&(_t=[],wt[Dt].forEach(function(Bt,Jt){Bt.options.isInternal||_t.push(tt(Bt.options.index,Jt))}),gt(ot[Dt]).forEach(function(Bt,Jt){var Gt,Ut=k(Bt.id);Ut&&(Gt=wt.get(Bt.id)),!Gt&&wt[Dt]&&(Gt=wt[Dt][_t?_t[Jt]:Jt])&&Ut&&k(Gt.options.id)&&(Gt=void 0),Gt&&Gt.coll===Dt&&(Gt.update(Bt,!1),ut&&(Gt.touched=!0)),!Gt&&ut&&wt.collectionsWithInit[Dt]&&(wt.collectionsWithInit[Dt][0].apply(wt,[Bt].concat(wt.collectionsWithInit[Dt][1]||[]).concat([!1])).touched=!0)}),ut&&wt[Dt].forEach(function(Bt){Bt.touched||Bt.options.isInternal?delete Bt.touched:Lt.push(Bt)}))}),Lt.forEach(function(Dt){Dt.chart&&Dt.remove&&Dt.remove(!1)}),Ct&&wt.axes.forEach(function(Dt){Dt.update({},!1)}),xt&&wt.getSeriesOrderByLinks().forEach(function(Dt){Dt.chart&&Dt.update({},!1)},this);var Et=Pt&&Pt.width,jt=Pt&&(H(Pt.height)?nt(Pt.height,Et||wt.chartWidth):Pt.height);St||j(Et)&&Et!==wt.chartWidth||j(jt)&&jt!==wt.chartHeight?wt.setSize(Et,jt,vt):tt(at,!0)&&wt.redraw(vt),z(wt,"afterUpdate",{options:ot,redraw:at,animation:vt})},dt.prototype.setSubtitle=function(ot,at){this.applyDescription("subtitle",ot),this.layOutTitles(at)},dt.prototype.setCaption=function(ot,at){this.applyDescription("caption",ot),this.layOutTitles(at)},dt.prototype.showResetZoom=function(){var ot=this,at=S.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,Ct=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";function xt(){ot.zoomOut()}z(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(at.resetZoom,null,null,xt,vt).attr({align:ut.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,Ct)}),z(this,"afterShowResetZoom")},dt.prototype.zoomOut=function(){z(this,"selection",{resetSelection:!0},this.zoom)},dt.prototype.zoom=function(ot){var at,ut=this,vt=ut.pointer,Ct=!1;!ot||ot.resetSelection?(ut.axes.forEach(function(St){at=St.zoom()}),vt.initiated=!1):ot.xAxis.concat(ot.yAxis).forEach(function(St){var wt=St.axis,Mt=wt.isXAxis;(vt[Mt?"zoomX":"zoomY"]&&k(vt.mouseDownX)&&k(vt.mouseDownY)&&ut.isInsidePlot(vt.mouseDownX-ut.plotLeft,vt.mouseDownY-ut.plotTop,{axis:wt})||!k(ut.inverted?vt.mouseDownX:vt.mouseDownY))&&(at=wt.zoom(St.min,St.max),wt.displayBtn&&(Ct=!0))});var xt=ut.resetZoomButton;Ct&&!xt?ut.showResetZoom():!Ct&&Y(xt)&&(ut.resetZoomButton=xt.destroy()),at&&ut.redraw(tt(ut.options.chart.animation,ot&&ot.animation,ut.pointCount<100))},dt.prototype.pan=function(ot,at){var ut=this,vt=ut.hoverPoints,Ct=typeof at=="object"?at:{enabled:at,type:"x"},xt=ut.options.chart;xt&&xt.panning&&(xt.panning=Ct);var St,wt=Ct.type;z(this,"pan",{originalEvent:ot},function(){vt&&vt.forEach(function(Lt){Lt.setState()});var Mt=ut.xAxis;wt==="xy"?Mt=Mt.concat(ut.yAxis):wt==="y"&&(Mt=ut.yAxis);var Tt={};Mt.forEach(function(Lt){if(Lt.options.panningEnabled&&!Lt.options.isInternal){var Pt,Et=Lt.horiz,jt=ot[Et?"chartX":"chartY"],Dt=Et?"mouseDownX":"mouseDownY",_t=ut[Dt],Bt=Lt.minPointOffset||0,Jt=Lt.reversed&&!ut.inverted||!Lt.reversed&&ut.inverted?-1:1,Gt=Lt.getExtremes(),Ut=Lt.toValue(_t-jt,!0)+Bt*Jt,Kt=Lt.toValue(_t+Lt.len-jt,!0)-(Bt*Jt||Lt.isXAxis&&Lt.pointRangePadding||0),le=Kt<Ut,$t=Lt.hasVerticalPanning(),ie=le?Kt:Ut,be=le?Ut:Kt,Ot=Lt.panningState;!$t||Lt.isXAxis||Ot&&!Ot.isDirty||Lt.series.forEach(function(qt){var me=qt.getProcessedData(!0),de=qt.getExtremes(me.yData,!0);Ot||(Ot={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(de.dataMin)&&j(de.dataMax)&&(Ot.startMin=Math.min(tt(qt.options.threshold,1/0),de.dataMin,Ot.startMin),Ot.startMax=Math.max(tt(qt.options.threshold,-1/0),de.dataMax,Ot.startMax))});var zt=Math.min(tt(Ot&&Ot.startMin,Gt.dataMin),Bt?Gt.min:Lt.toValue(Lt.toPixels(Gt.min)-Lt.minPixelPadding)),Vt=Math.max(tt(Ot&&Ot.startMax,Gt.dataMax),Bt?Gt.max:Lt.toValue(Lt.toPixels(Gt.max)+Lt.minPixelPadding));Lt.panningState=Ot,Lt.isOrdinal||((Pt=zt-ie)>0&&(be+=Pt,ie=zt),(Pt=be-Vt)>0&&(be=Vt,ie-=Pt),Lt.series.length&&ie!==Gt.min&&be!==Gt.max&&ie>=zt&&be<=Vt&&(Lt.setExtremes(ie,be,!1,!1,{trigger:"pan"}),!ut.resetZoomButton&&ie!==zt&&be!==Vt&&wt.match("y")&&(ut.showResetZoom(),Lt.displayBtn=!1),St=!0),Tt[Dt]=jt)}}),q(Tt,function(Lt,Pt){ut[Pt]=Lt}),St&&ut.redraw(!1),b(ut.container,{cursor:"move"})})},dt}();return T(yt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[yt.prototype.addAxis,[!0]],yAxis:[yt.prototype.addAxis,[!1]],series:[yt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),yt}),et(_,"Core/Legend/LegendSymbol.js",[_["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.merge,$=G.pick;return function(Z){Z.drawLineMarker=function(V){var F,I=this.legendItem=this.legendItem||{},E=this.options,A=V.symbolWidth,P=V.symbolHeight,y=P/2,c=this.chart.renderer,f=I.group,m=V.baseline-Math.round(.3*V.fontMetrics.b),u={},v=E.marker,S=0;if(this.chart.styledMode||(u={"stroke-width":Math.min(E.lineWidth||0,24)},E.dashStyle?u.dashstyle=E.dashStyle:E.linecap!=="square"&&(u["stroke-linecap"]="round")),I.line=c.path().addClass("highcharts-graph").attr(u).add(f),u["stroke-linecap"]&&(S=Math.min(I.line.strokeWidth(),A)/2),I.line.attr({d:[["M",S,m],["L",A-S,m]]}),v&&v.enabled!==!1&&A){var M=Math.min($(v.radius,y),y);this.symbol.indexOf("url")===0&&(v=U(v,{width:P,height:P}),M=0),I.symbol=F=c.symbol(this.symbol,A/2-M,m-M,2*M,2*M,X({context:"legend"},v)).addClass("highcharts-point").add(f),F.isMarker=!0}},Z.drawRectangle=function(V,F){var I=F.legendItem||{},E=V.options,A=V.symbolHeight,P=E.squareSymbol,y=P?A:V.symbolWidth;I.symbol=this.chart.renderer.rect(P?(V.symbolWidth-A)/2:0,V.baseline-A+1,y,A,$(V.options.symbolRadius,A/2)).addClass("highcharts-point").attr({zIndex:3}).add(I.group)}}(B||(B={})),B}),et(_,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var G=this.series.chart.numberFormatter;return typeof this.y!="number"?"":G(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"}}),et(_,"Core/Series/Series.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I,E){var A=G.animObject,P=G.setAnimation,y=B.defaultOptions,c=X.registerEventOptions,f=U.hasTouch,m=U.svg,u=U.win,v=F.seriesTypes,S=E.arrayMax,M=E.arrayMin,x=E.clamp,p=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,h=E.isNumber,b=E.isString,k=E.merge,D=E.objectEach,d=E.pick,C=E.removeEvent,T=E.splat,N=E.syncTimeout,z=function(){function L(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}return L.prototype.init=function(O,j){e(this,"init",{options:j});var Y=this,H=O.series;this.eventsToUnbind=[],Y.chart=O,Y.options=Y.setOptions(j);var W=Y.options;Y.linkedSeries=[],Y.bindAxes(),i(Y,{name:W.name,state:"",visible:W.visible!==!1,selected:W.selected===!0}),c(this,W);var q,tt=W.events;(tt&&tt.click||W.point&&W.point.events&&W.point.events.click||W.allowPointSelect)&&(O.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(J){Y[J+"Data"]||(Y[J+"Data"]=[])}),Y.isCartesian&&(O.hasCartesianSeries=!0),H.length&&(q=H[H.length-1]),Y._i=d(q&&q._i,-1)+1,Y.opacity=Y.options.opacity,O.orderSeries(this.insert(H)),W.dataSorting&&W.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(W.data,!1),e(this,"afterInit")},L.prototype.is=function(O){return v[O]&&this instanceof v[O]},L.prototype.insert=function(O){var j,Y=this.options.index;if(h(Y)){for(j=O.length;j--;)if(Y>=d(O[j].options.index,O[j]._i)){O.splice(j+1,0,this);break}j===-1&&O.unshift(this),j+=1}else O.push(this);return d(j,O.length-1)},L.prototype.bindAxes=function(){var O,j=this,Y=j.options,H=j.chart;e(this,"bindAxes",null,function(){(j.axisTypes||[]).forEach(function(W){var q=0;H[W].forEach(function(tt){O=tt.options,(Y[W]===q&&!O.isInternal||Y[W]!==void 0&&Y[W]===O.id||Y[W]===void 0&&O.index===0)&&(j.insert(tt.series),j[W]=tt,tt.isDirty=!0),O.isInternal||q++}),j[W]||j.optionalAxis===W||t(18,!0,H)})}),e(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(O,j){var Y=O.series,H=arguments,W=h(j)?function(q){var tt=q==="y"&&Y.toYData?Y.toYData(O):O[q];Y[q+"Data"][j]=tt}:function(q){Array.prototype[j].apply(Y[q+"Data"],Array.prototype.slice.call(H,2))};Y.parallelArrays.forEach(W)},L.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0},L.prototype.autoIncrement=function(O){var j,Y,H=this.options,W=H.pointIntervalUnit,q=H.relativeXValue,tt=this.chart.time,J=this.xIncrement;return J=d(J,H.pointStart,0),this.pointInterval=Y=d(this.pointInterval,H.pointInterval,1),q&&h(O)&&(Y*=O),W&&(j=new tt.Date(J),W==="day"?tt.set("Date",j,tt.get("Date",j)+Y):W==="month"?tt.set("Month",j,tt.get("Month",j)+Y):W==="year"&&tt.set("FullYear",j,tt.get("FullYear",j)+Y),Y=j.getTime()-J),q&&h(O)?J+Y:(this.xIncrement=J+Y,J)},L.prototype.setDataSortingOptions=function(){var O=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(O.pointRange)||(O.pointRange=1)},L.prototype.setOptions=function(O){var j,Y=this.chart,H=Y.options,W=H.plotOptions,q=Y.userOptions||{},tt=k(O),J=Y.styledMode,nt={plotOptions:W,userOptions:tt};e(this,"setOptions",nt);var lt=nt.plotOptions[this.type],gt=q.plotOptions||{};this.userOptions=nt.userOptions;var mt=k(lt,W.series,q.plotOptions&&q.plotOptions[this.type],tt);this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,H.tooltip.userOptions,W.series&&W.series.tooltip,W[this.type].tooltip,tt.tooltip),this.stickyTracking=d(tt.stickyTracking,gt[this.type]&>[this.type].stickyTracking,gt.series&>.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||mt.stickyTracking),lt.marker===null&&delete mt.marker,this.zoneAxis=mt.zoneAxis;var bt=this.zones=(mt.zones||[]).slice();return!mt.negativeColor&&!mt.negativeFillColor||mt.zones||(j={value:mt[this.zoneAxis+"Threshold"]||mt.threshold||0,className:"highcharts-negative"},J||(j.color=mt.negativeColor,j.fillColor=mt.negativeFillColor),bt.push(j)),bt.length&&r(bt[bt.length-1].value)&&bt.push(J?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:mt}),mt},L.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(O,j,Y){var H,W,q=this.chart,tt=this.userOptions,J=O+"Index",nt=O+"Counter",lt=Y?Y.length:d(q.options.chart[O+"Count"],q[O+"Count"]);j||(W=d(tt[J],tt["_"+J]),r(W)?H=W:(q.series.length||(q[nt]=0),tt["_"+J]=H=q[nt]%lt,q[nt]+=1),Y&&(j=Y[H])),H!==void 0&&(this[J]=H),this[O]=j},L.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},L.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},L.prototype.getSymbol=function(){var O=this.options.marker;this.getCyclic("symbol",O.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(O,j){var Y,H,W,q=O.id,tt=O.x,J=this.points,nt=this.options.dataSorting;if(q){var lt=this.chart.get(q);lt instanceof Z&&(Y=lt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var gt=function(mt){return!mt.touched&&mt.index===O.index};if(nt&&nt.matchByName?gt=function(mt){return!mt.touched&&mt.name===O.name}:this.options.relativeXValue&&(gt=function(mt){return!mt.touched&&mt.options.x===O.x}),!(Y=o(J,gt)))return}return Y&&(W=Y&&Y.index)!==void 0&&(H=!0),W===void 0&&h(tt)&&(W=this.xData.indexOf(tt,j)),W!==-1&&W!==void 0&&this.cropped&&(W=W>=this.cropStart?W-this.cropStart:W),!H&&h(W)&&J[W]&&J[W].touched&&(W=void 0),W},L.prototype.updateData=function(O,j){var Y,H,W,q,tt=this.options,J=tt.dataSorting,nt=this.points,lt=[],gt=this.requireSorting,mt=O.length===nt.length,bt=!0;if(this.xIncrement=null,O.forEach(function(yt,dt){var ot,at=r(yt)&&this.pointClass.prototype.optionsToObject.call({series:this},yt)||{},ut=at.x;at.id||h(ut)?((ot=this.findPointIndex(at,q))===-1||ot===void 0?lt.push(yt):nt[ot]&&yt!==tt.data[ot]?(nt[ot].update(yt,!1,null,!1),nt[ot].touched=!0,gt&&(q=ot+1)):nt[ot]&&(nt[ot].touched=!0),(!mt||dt!==ot||J&&J.enabled||this.hasDerivedData)&&(Y=!0)):lt.push(yt)},this),Y)for(H=nt.length;H--;)(W=nt[H])&&!W.touched&&W.remove&&W.remove(!1,j);else!mt||J&&J.enabled?bt=!1:(O.forEach(function(yt,dt){yt!==nt[dt].y&&nt[dt].update&&nt[dt].update(yt,!1,null,!1)}),lt.length=0);return nt.forEach(function(yt){yt&&(yt.touched=!1)}),!!bt&&(lt.forEach(function(yt){this.addPoint(yt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=S(this.xData),this.autoIncrement()),!0)},L.prototype.setData=function(O,j,Y,H){j===void 0&&(j=!0);var W,q,tt,J,nt=this,lt=nt.points,gt=lt&<.length||0,mt=nt.options,bt=nt.chart,yt=mt.dataSorting,dt=nt.xAxis,ot=mt.turboThreshold,at=this.xData,ut=this.yData,vt=nt.pointArrayMap,Ct=vt&&vt.length,xt=mt.keys,St=0,wt=1,Mt=null;bt.options.chart.allowMutatingData||(mt.data&&delete nt.options.data,nt.userOptions.data&&delete nt.userOptions.data,J=k(!0,O));var Tt=(O=J||O||[]).length;if(yt&&yt.enabled&&(O=this.sortData(O)),bt.options.chart.allowMutatingData&&H!==!1&&Tt&>&&!nt.cropped&&!nt.hasGroupedData&&nt.visible&&!nt.boosted&&(tt=this.updateData(O,Y)),!tt){if(nt.xIncrement=null,nt.colorCounter=0,this.parallelArrays.forEach(function(Lt){nt[Lt+"Data"].length=0}),ot&&Tt>ot)if(Mt=nt.getFirstValidPoint(O),h(Mt))for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=O[W];else if(n(Mt))if(Ct)if(Mt.length===Ct)for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=O[W];else for(W=0;W<Tt;W++)q=O[W],at[W]=q[0],ut[W]=q.slice(1,Ct+1);else if(xt&&(St=(St=xt.indexOf("x"))>=0?St:0,wt=(wt=xt.indexOf("y"))>=0?wt:1),Mt.length===1&&(wt=0),St===wt)for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=O[W][wt];else for(W=0;W<Tt;W++)q=O[W],at[W]=q[St],ut[W]=q[wt];else t(12,!1,bt);else for(W=0;W<Tt;W++)O[W]!==void 0&&(q={series:nt},nt.pointClass.prototype.applyOptions.apply(q,[O[W]]),nt.updateParallelArrays(q,W));for(ut&&b(ut[0])&&t(14,!0,bt),nt.data=[],nt.options.data=nt.userOptions.data=O,W=gt;W--;)lt[W]&<[W].destroy&<[W].destroy();dt&&(dt.minRange=dt.userMinRange),nt.isDirty=bt.isDirtyBox=!0,nt.isDirtyData=!!lt,Y=!1}mt.legendType==="point"&&(this.processData(),this.generatePoints()),j&&bt.redraw(Y)},L.prototype.sortData=function(O){var j=this,Y=j.options.dataSorting.sortKey||"y",H=function(W,q){return r(q)&&W.pointClass.prototype.optionsToObject.call({series:W},q)||{}};return O.forEach(function(W,q){O[q]=H(j,W),O[q].index=q},this),O.concat().sort(function(W,q){var tt=s(Y,W),J=s(Y,q);return J<tt?-1:J>tt?1:0}).forEach(function(W,q){W.x=q},this),j.linkedSeries&&j.linkedSeries.forEach(function(W){var q=W.options,tt=q.data;q.dataSorting&&q.dataSorting.enabled||!tt||(tt.forEach(function(J,nt){tt[nt]=H(W,J),O[nt]&&(tt[nt].x=O[nt].x,tt[nt].index=nt)}),W.setData(tt,!1))}),O},L.prototype.getProcessedData=function(O){var j,Y,H,W,q,tt,J,nt,lt=this,gt=lt.xAxis,mt=lt.options,bt=mt.cropThreshold,yt=O||lt.getExtremesFromAll||mt.getExtremesFromAll,dt=lt.isCartesian,ot=gt&>.val2lin,at=!(!gt||!gt.logarithmic),ut=0,vt=lt.xData,Ct=lt.yData,xt=lt.requireSorting,St=!1,wt=vt.length;for(gt&&(J=(tt=gt.getExtremes()).min,nt=tt.max,St=!(!gt.categories||gt.names.length)),dt&<.sorted&&!yt&&(!bt||wt>bt||lt.forceCrop)&&(vt[wt-1]<J||vt[0]>nt?(vt=[],Ct=[]):lt.yData&&(vt[0]<J||vt[wt-1]>nt)&&(vt=(j=this.cropData(lt.xData,lt.yData,J,nt)).xData,Ct=j.yData,ut=j.start,Y=!0)),q=vt.length||1;--q;)(H=at?ot(vt[q])-ot(vt[q-1]):vt[q]-vt[q-1])>0&&(W===void 0||H<W)?W=H:H<0&&xt&&!St&&(t(15,!1,lt.chart),xt=!1);return{xData:vt,yData:Ct,cropped:Y,cropStart:ut,closestPointRange:W}},L.prototype.processData=function(O){var j=this,Y=j.xAxis;if(j.isCartesian&&!j.isDirty&&!Y.isDirty&&!j.yAxis.isDirty&&!O)return!1;var H=j.getProcessedData();j.cropped=H.cropped,j.cropStart=H.cropStart,j.processedXData=H.xData,j.processedYData=H.yData,j.closestPointRange=j.basePointRange=H.closestPointRange,e(j,"afterProcessData")},L.prototype.cropData=function(O,j,Y,H,W){var q,tt,J=O.length,nt=0,lt=J;for(W=d(W,this.cropShoulder),q=0;q<J;q++)if(O[q]>=Y){nt=Math.max(0,q-W);break}for(tt=q;tt<J;tt++)if(O[tt]>H){lt=tt+W;break}return{xData:O.slice(nt,lt),yData:j.slice(nt,lt),start:nt,end:lt}},L.prototype.generatePoints=function(){var O,j,Y,H,W=this,q=W.options,tt=W.processedData||q.data,J=W.processedXData,nt=W.processedYData,lt=W.pointClass,gt=J.length,mt=W.cropStart||0,bt=W.hasGroupedData,yt=q.keys,dt=[],ot=q.dataGrouping&&q.dataGrouping.groupAll?mt:0,at=W.data;if(!at&&!bt){var ut=[];ut.length=tt.length,at=W.data=ut}for(yt&&bt&&(W.options.keys=!1),H=0;H<gt;H++)j=mt+H,bt?((Y=new lt().init(W,[J[H]].concat(T(nt[H])))).dataGroup=W.groupMap[ot+H],Y.dataGroup.options&&(Y.options=Y.dataGroup.options,i(Y,Y.dataGroup.options),delete Y.dataLabels)):(Y=at[j])||tt[j]===void 0||(at[j]=Y=new lt().init(W,tt[j],J[H])),Y&&(Y.index=bt?ot+H:j,dt[H]=Y);if(W.options.keys=yt,at&&(gt!==(O=at.length)||bt))for(H=0;H<O;H++)H!==mt||bt||(H+=gt),at[H]&&(at[H].destroyElements(),at[H].plotX=void 0);W.data=at,W.points=dt,e(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(O){return{min:M(O),max:S(O)}},L.prototype.getExtremes=function(O,j){var Y,H,W,q,tt,J,nt,lt=this.xAxis,gt=this.yAxis,mt=this.processedXData||this.xData,bt=[],yt=this.requireSorting?this.cropShoulder:0,dt=!!gt&>.positiveValuesOnly,ot=0,at=0,ut=0,vt=(O=O||this.stackedYData||this.processedYData||[]).length;for(lt&&(ot=(Y=lt.getExtremes()).min,at=Y.max),J=0;J<vt;J++)if(q=mt[J],tt=O[J],H=(h(tt)||n(tt))&&(tt.length||tt>0||!dt),W=j||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!lt||(mt[J+yt]||q)>=ot&&(mt[J-yt]||q)<=at,H&&W)if(nt=tt.length)for(;nt--;)h(tt[nt])&&(bt[ut++]=tt[nt]);else bt[ut++]=tt;var Ct={activeYData:bt,dataMin:M(bt),dataMax:S(bt)};return e(this,"afterGetExtremes",{dataExtremes:Ct}),Ct},L.prototype.applyExtremes=function(){var O=this.getExtremes();return this.dataMin=O.dataMin,this.dataMax=O.dataMax,O},L.prototype.getFirstValidPoint=function(O){for(var j=O.length,Y=0,H=null;H===null&&Y<j;)H=O[Y],Y++;return H},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var O,j,Y,H,W=this,q=W.options,tt=q.stacking,J=W.xAxis,nt=J.categories,lt=W.enabledDataSorting,gt=W.yAxis,mt=W.points,bt=mt.length,yt=W.pointPlacementToXValue(),dt=!!yt,ot=q.threshold,at=q.startFromThreshold?ot:0,ut=this.zoneAxis||"y",vt=Number.MAX_VALUE;function Ct(jt){return x(jt,-1e5,1e5)}for(O=0;O<bt;O++){var xt=mt[O],St=xt.x,wt=void 0,Mt=void 0,Tt=xt.y,Lt=xt.low,Pt=tt&>.stacking&>.stacking.stacks[(W.negStacks&&Tt<(at?0:ot)?"-":"")+W.stackKey];if((gt.positiveValuesOnly&&!gt.validatePositiveValue(Tt)||J.positiveValuesOnly&&!J.validatePositiveValue(St))&&(xt.isNull=!0),xt.plotX=j=g(Ct(J.translate(St,0,0,0,1,yt,this.type==="flags"))),tt&&W.visible&&Pt&&Pt[St]&&(H=W.getStackIndicator(H,St,W.index),!xt.isNull&&H.key&&(Mt=(wt=Pt[St]).points[H.key]),wt&&n(Mt)&&(Lt=Mt[0],Tt=Mt[1],Lt===at&&H.key===Pt[St].base&&(Lt=d(h(ot)?ot:gt.min)),gt.positiveValuesOnly&&r(Lt)&&Lt<=0&&(Lt=void 0),xt.total=xt.stackTotal=d(wt.total),xt.percentage=r(xt.y)&&wt.total?xt.y/wt.total*100:void 0,xt.stackY=Tt,W.irregularWidths||wt.setOffset(W.pointXOffset||0,W.barW||0,void 0,void 0,void 0,W.xAxis))),xt.yBottom=r(Lt)?Ct(gt.translate(Lt,0,1,0,1)):void 0,W.dataModify&&(Tt=W.dataModify.modifyValue(Tt,O)),xt.plotY=void 0,h(Tt)){var Et=gt.translate(Tt,!1,!0,!1,!0);Et!==void 0&&(xt.plotY=Ct(Et))}xt.isInside=this.isPointInside(xt),xt.clientX=dt?g(J.translate(St,0,0,0,1,yt)):j,xt.negative=xt[ut]<(q[ut+"Threshold"]||ot||0),xt.category=d(nt&&nt[xt.x],xt.x),xt.isNull||xt.visible===!1||(Y!==void 0&&(vt=Math.min(vt,Math.abs(j-Y))),Y=j),xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&W.group&<&&(xt.isNew=!0)}W.closestPointRangePx=vt,e(this,"afterTranslate")},L.prototype.getValidPoints=function(O,j,Y){var H=this.chart;return(O||this.points||[]).filter(function(W){return!(j&&!H.isInsidePlot(W.plotX,W.plotY,{inverted:H.inverted}))&&W.visible!==!1&&(Y||!W.isNull)})},L.prototype.getClipBox=function(){var O=this,j=O.chart,Y=O.xAxis,H=O.yAxis,W=k(j.clipBox);return Y&&Y.len!==j.plotSizeX&&(W.width=Y.len),H&&H.len!==j.plotSizeY&&(W.height=H.len),W},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},L.prototype.setClip=function(){var O=this,j=O.chart,Y=O.group,H=O.markerGroup,W=j.sharedClips,q=j.renderer,tt=this.getClipBox(),J=this.getSharedClipKey(),nt=W[J];nt?nt.animate(tt):W[J]=nt=q.clipRect(tt),Y&&Y.clip(this.options.clip===!1?void 0:nt),H&&H.clip()},L.prototype.animate=function(O){var j=this,Y=j.chart,H=j.group,W=j.markerGroup,q=Y.inverted,tt=A(this.options.animation),J=[this.getSharedClipKey(),tt.duration,tt.easing,tt.defer].join(","),nt=Y.sharedClips[J],lt=Y.sharedClips[J+"m"];if(O&&H){var gt=this.getClipBox();if(nt)nt.attr("height",gt.height);else{gt.width=0,q&&(gt.x=Y.plotHeight),nt=Y.renderer.clipRect(gt),Y.sharedClips[J]=nt;var mt={x:-99,y:-99,width:q?Y.plotWidth+199:99,height:q?99:Y.plotHeight+199};lt=Y.renderer.clipRect(mt),Y.sharedClips[J+"m"]=lt}H.clip(nt),W&&W.clip(lt)}else if(nt&&!nt.hasClass("highcharts-animating")){var bt=this.getClipBox(),yt=tt.step;W&&W.element.childNodes.length&&(tt.step=function(dt,ot){yt&&yt.apply(ot,arguments),ot.prop==="width"&<&<.element&<.attr(q?"height":"width",dt+99)}),nt.addClass("highcharts-animating").animate(bt,tt)}},L.prototype.afterAnimate=function(){var O=this;this.setClip(),D(this.chart.sharedClips,function(j,Y,H){j&&!O.chart.container.querySelector('[clip-path="url(#'.concat(j.id,')"]'))&&(j.destroy(),delete H[Y])}),this.finishedAnimating=!0,e(this,"afterAnimate")},L.prototype.drawPoints=function(O){O===void 0&&(O=this.points);var j,Y,H,W,q,tt,J,nt=this,lt=nt.chart,gt=lt.styledMode,mt=nt.colorAxis,bt=nt.options.marker,yt=nt[nt.specialGroup||"markerGroup"],dt=nt.xAxis,ot=d(bt.enabled,!(dt&&!dt.isRadial)||null,nt.closestPointRangePx>=bt.enabledThreshold*bt.radius);if(bt.enabled!==!1||nt._hasPointMarkers)for(j=0;j<O.length;j++)if(W=(H=(Y=O[j]).graphic)?"animate":"attr",q=Y.marker||{},tt=!!Y.marker,(ot&&q.enabled===void 0||q.enabled)&&!Y.isNull&&Y.visible!==!1){var at=d(q.symbol,nt.symbol,"rect");J=nt.markerAttribs(Y,Y.selected&&"select"),nt.enabledDataSorting&&(Y.startXPos=dt.reversed?-(J.width||0):dt.width);var ut=Y.isInside!==!1;if(!H&&ut&&((J.width||0)>0||Y.hasImage)&&(Y.graphic=H=lt.renderer.symbol(at,J.x,J.y,J.width,J.height,tt?q:bt).add(yt),nt.enabledDataSorting&<.hasRendered&&(H.attr({x:Y.startXPos}),W="animate")),H&&W==="animate"&&H[ut?"show":"hide"](ut).animate(J),H){var vt=nt.pointAttribs(Y,gt||!Y.selected?void 0:"select");gt?mt&&H.css({fill:vt.fill}):H[W](vt)}H&&H.addClass(Y.getClassName(),!0)}else H&&(Y.graphic=H.destroy())},L.prototype.markerAttribs=function(O,j){var Y,H,W=this.options,q=W.marker,tt=O.marker||{},J=tt.symbol||q.symbol,nt={},lt=d(tt.radius,q&&q.radius);j&&(Y=q.states[j],H=tt.states&&tt.states[j],lt=d(H&&H.radius,Y&&Y.radius,lt&<+(Y&&Y.radiusPlus||0))),O.hasImage=J&&J.indexOf("url")===0,O.hasImage&&(lt=0);var gt=O.pos();return h(lt)&>&&(nt.x=gt[0]-lt,nt.y=gt[1]-lt,W.crisp&&(nt.x=Math.floor(nt.x))),lt&&(nt.width=nt.height=2*lt),nt},L.prototype.pointAttribs=function(O,j){var Y,H,W,q,tt=this.options.marker,J=O&&O.options,nt=J&&J.marker||{},lt=J&&J.color,gt=O&&O.color,mt=O&&O.zone&&O.zone.color,bt=this.color,yt=d(nt.lineWidth,tt.lineWidth),dt=1;return bt=lt||mt||gt||bt,W=nt.fillColor||tt.fillColor||bt,q=nt.lineColor||tt.lineColor||bt,(j=j||"normal")&&(Y=tt.states[j]||{},H=nt.states&&nt.states[j]||{},yt=d(H.lineWidth,Y.lineWidth,yt+d(H.lineWidthPlus,Y.lineWidthPlus,0)),W=H.fillColor||Y.fillColor||W,q=H.lineColor||Y.lineColor||q,dt=d(H.opacity,Y.opacity,dt)),{stroke:q,"stroke-width":yt,fill:W,opacity:dt}},L.prototype.destroy=function(O){var j,Y,H,W=this,q=W.chart,tt=/AppleWebKit\/533/.test(u.navigator.userAgent),J=W.data||[];for(e(W,"destroy",{keepEventsForUpdate:O}),this.removeEvents(O),(W.axisTypes||[]).forEach(function(nt){(H=W[nt])&&H.series&&(a(H.series,W),H.isDirty=H.forceRedraw=!0)}),W.legendItem&&W.chart.legend.destroyItem(W),j=J.length;j--;)(Y=J[j])&&Y.destroy&&Y.destroy();W.clips&&W.clips.forEach(function(nt){return nt.destroy()}),E.clearTimeout(W.animationTimeout),D(W,function(nt,lt){nt instanceof I&&!nt.survive&&nt[tt&<==="group"?"hide":"destroy"]()}),q.hoverSeries===W&&(q.hoverSeries=void 0),a(q.series,W),q.orderSeries(),D(W,function(nt,lt){O&<==="hcEvents"||delete W[lt]})},L.prototype.applyZones=function(){var O,j,Y,H,W,q,tt,J,nt,lt,gt,mt=this,bt=this.chart,yt=bt.renderer,dt=this.zones,ot=this.clips||[],at=this.graph,ut=this.area,vt=Math.max(bt.plotWidth,bt.plotHeight),Ct=this[(this.zoneAxis||"y")+"Axis"],xt=bt.inverted,St=!1;dt.length&&(at||ut)&&Ct&&Ct.min!==void 0?(W=Ct.reversed,q=Ct.horiz,at&&!this.showLine&&at.hide(),ut&&ut.hide(),H=Ct.getExtremes(),dt.forEach(function(wt,Mt){O=W?q?bt.plotWidth:0:q?0:Ct.toPixels(H.min)||0,O=x(d(j,O),0,vt),j=x(Math.round(Ct.toPixels(d(wt.value,H.max),!0)||0),0,vt),St&&(O=j=Ct.toPixels(H.max)),tt=Math.abs(O-j),J=Math.min(O,j),nt=Math.max(O,j),Ct.isXAxis?(Y={x:xt?nt:J,y:0,width:tt,height:vt},q||(Y.x=bt.plotHeight-Y.x)):(Y={x:0,y:xt?nt:J,width:vt,height:tt},q&&(Y.y=bt.plotWidth-Y.y)),xt&&yt.isVML&&(Y=Ct.isXAxis?{x:0,y:W?J:nt,height:Y.width,width:bt.chartWidth}:{x:Y.y-bt.plotLeft-bt.spacingBox.x,y:0,width:Y.height,height:bt.chartHeight}),ot[Mt]?ot[Mt].animate(Y):ot[Mt]=yt.clipRect(Y),lt=mt["zone-area-"+Mt],gt=mt["zone-graph-"+Mt],at&>&>.clip(ot[Mt]),ut&<&<.clip(ot[Mt]),St=wt.value>H.max,mt.resetZones&&j===0&&(j=void 0)}),this.clips=ot):mt.visible&&(at&&at.show(),ut&&ut.show())},L.prototype.plotGroup=function(O,j,Y,H,W){var q=this[O],tt=!q,J={visibility:Y,zIndex:H||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(J.opacity=this.opacity),tt&&(this[O]=q=this.chart.renderer.g().add(W)),q.addClass("highcharts-"+j+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(q.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),q.attr(J)[tt?"attr":"animate"](this.getPlotBox(j)),q},L.prototype.getPlotBox=function(O){var j=this.xAxis,Y=this.yAxis,H=this.chart,W=H.inverted&&!H.polar&&j&&this.invertible!==!1&&O==="series";return H.inverted&&(j=Y,Y=this.xAxis),{translateX:j?j.left:H.plotLeft,translateY:Y?Y.top:H.plotTop,rotation:W?90:0,rotationOriginX:W?(j.len-Y.len)/2:0,rotationOriginY:W?(j.len+Y.len)/2:0,scaleX:W?-1:1,scaleY:1}},L.prototype.removeEvents=function(O){var j=this;O||C(j),j.eventsToUnbind.length&&(j.eventsToUnbind.forEach(function(Y){Y()}),j.eventsToUnbind.length=0)},L.prototype.render=function(){var O=this,j=O.chart,Y=O.options,H=A(Y.animation),W=O.visible?"inherit":"hidden",q=Y.zIndex,tt=O.hasRendered,J=j.seriesGroup,nt=!O.finishedAnimating&&j.renderer.isSVG?H.duration:0;e(this,"render"),O.plotGroup("group","series",W,q,J),O.markerGroup=O.plotGroup("markerGroup","markers",W,q,J),Y.clip!==!1&&O.setClip(),O.animate&&nt&&O.animate(!0),O.drawGraph&&(O.drawGraph(),O.applyZones()),O.visible&&O.drawPoints(),O.drawDataLabels&&O.drawDataLabels(),O.redrawPoints&&O.redrawPoints(),O.drawTracker&&O.options.enableMouseTracking!==!1&&O.drawTracker(),O.animate&&nt&&O.animate(),tt||(nt&&H.defer&&(nt+=H.defer),O.animationTimeout=N(function(){O.afterAnimate()},nt||0)),O.isDirty=!1,O.hasRendered=!0,e(O,"afterRender")},L.prototype.redraw=function(){var O=this.isDirty||this.isDirtyData;this.translate(),this.render(),O&&delete this.kdTree},L.prototype.searchPoint=function(O,j){var Y=this,H=Y.xAxis,W=Y.yAxis,q=Y.chart.inverted;return this.searchKDTree({clientX:q?H.len-O.chartY+H.pos:O.chartX-H.pos,plotY:q?W.len-O.chartX+W.pos:O.chartY-W.pos},j,O)},L.prototype.buildKDTree=function(O){this.buildingKdTree=!0;var j=this,Y=j.options.findNearestPointBy.indexOf("y")>-1?2:1;function H(W,q,tt){var J,nt,lt=W&&W.length;if(lt)return J=j.kdAxisArray[q%tt],W.sort(function(gt,mt){return gt[J]-mt[J]}),{point:W[nt=Math.floor(lt/2)],left:H(W.slice(0,nt),q+1,tt),right:H(W.slice(nt+1),q+1,tt)}}delete j.kdTree,N(function(){j.kdTree=H(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||O&&O.type==="touchstart"?0:1)},L.prototype.searchKDTree=function(O,j,Y){var H=this,W=this.kdAxisArray[0],q=this.kdAxisArray[1],tt=j?"distX":"dist",J=H.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(Y),this.kdTree)return function nt(lt,gt,mt,bt){var yt,dt,ot,at,ut,vt,Ct=gt.point,xt=H.kdAxisArray[mt%bt],St=Ct;at=Ct,vt=((ut=r((ot=lt)[W])&&r(at[W])?Math.pow(ot[W]-at[W],2):null)||0)+((r(ot[q])&&r(at[q])?Math.pow(ot[q]-at[q],2):null)||0),at.dist=r(vt)?Math.sqrt(vt):Number.MAX_VALUE,at.distX=r(ut)?Math.sqrt(ut):Number.MAX_VALUE;var wt=lt[xt]-Ct[xt],Mt=wt<0?"left":"right",Tt=wt<0?"right":"left";return gt[Mt]&&(St=(yt=nt(lt,gt[Mt],mt+1,bt))[tt]<St[tt]?yt:Ct),gt[Tt]&&Math.sqrt(wt*wt)<St[tt]&&(St=(dt=nt(lt,gt[Tt],mt+1,bt))[tt]<St[tt]?dt:St),St}(O,this.kdTree,J,J)},L.prototype.pointPlacementToXValue=function(){var O=this.options,j=O.pointPlacement,Y=O.pointRange,H=this.xAxis,W=j;return W==="between"&&(W=H.reversed?-.5:.5),h(W)?W*(Y||H.pointRange):0},L.prototype.isPointInside=function(O){var j=this,Y=j.chart,H=j.xAxis,W=j.yAxis;return O.plotY!==void 0&&O.plotX!==void 0&&O.plotY>=0&&O.plotY<=(W?W.len:Y.plotHeight)&&O.plotX>=0&&O.plotX<=(H?H.len:Y.plotWidth)},L.prototype.drawTracker=function(){var O=this,j=O.options,Y=j.trackByArea,H=[].concat(Y?O.areaPath:O.graphPath),W=O.chart,q=W.pointer,tt=W.renderer,J=W.options.tooltip.snap,nt=O.tracker,lt=function(mt){W.hoverSeries!==O&&O.onMouseOver()},gt="rgba(192,192,192,"+(m?1e-4:.002)+")";nt?nt.attr({d:H}):O.graph&&(O.tracker=tt.path(H).attr({visibility:O.visible?"inherit":"hidden",zIndex:2}).addClass(Y?"highcharts-tracker-area":"highcharts-tracker-line").add(O.group),W.styledMode||O.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:gt,fill:Y?gt:"none","stroke-width":O.graph.strokeWidth()+(Y?0:2*J)}),[O.tracker,O.markerGroup,O.dataLabelsGroup].forEach(function(mt){mt&&(mt.addClass("highcharts-tracker").on("mouseover",lt).on("mouseout",function(bt){q.onTrackerMouseOut(bt)}),j.cursor&&!W.styledMode&&mt.css({cursor:j.cursor}),f&&mt.on("touchstart",lt))})),e(this,"afterDrawTracker")},L.prototype.addPoint=function(O,j,Y,H,W){var q,tt,J=this,nt=J.options,lt=J.data,gt=J.chart,mt=J.xAxis,bt=mt&&mt.hasNames&&mt.names,yt=nt.data,dt=J.xData;j=d(j,!0);var ot={series:J};J.pointClass.prototype.applyOptions.apply(ot,[O]);var at=ot.x;if(tt=dt.length,J.requireSorting&&at<dt[tt-1])for(q=!0;tt&&dt[tt-1]>at;)tt--;J.updateParallelArrays(ot,"splice",tt,0,0),J.updateParallelArrays(ot,tt),bt&&ot.name&&(bt[at]=ot.name),yt.splice(tt,0,O),(q||J.processedData)&&(J.data.splice(tt,0,null),J.processData()),nt.legendType==="point"&&J.generatePoints(),Y&&(lt[0]&<[0].remove?lt[0].remove(!1):(lt.shift(),J.updateParallelArrays(ot,"shift"),yt.shift())),W!==!1&&e(J,"addPoint",{point:ot}),J.isDirty=!0,J.isDirtyData=!0,j&>.redraw(H)},L.prototype.removePoint=function(O,j,Y){var H=this,W=H.data,q=W[O],tt=H.points,J=H.chart,nt=function(){tt&&tt.length===W.length&&tt.splice(O,1),W.splice(O,1),H.options.data.splice(O,1),H.updateParallelArrays(q||{series:H},"splice",O,1),q&&q.destroy(),H.isDirty=!0,H.isDirtyData=!0,j&&J.redraw()};P(Y,J),j=d(j,!0),q?q.firePointEvent("remove",null,nt):nt()},L.prototype.remove=function(O,j,Y,H){var W=this,q=W.chart;function tt(){W.destroy(H),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(O,!0)&&q.redraw(j)}Y!==!1?e(W,"remove",null,tt):tt()},L.prototype.update=function(O,j){O=p(O,this.userOptions),e(this,"update",{options:O});var Y,H,W=this,q=W.chart,tt=W.userOptions,J=W.initialType||W.type,nt=q.options.plotOptions,lt=v[J].prototype,gt=W.finishedAnimating&&{animation:!1},mt={},bt=["eventOptions","navigatorSeries","baseSeries"],yt=O.type||tt.type||q.options.chart.type,dt=!(this.hasDerivedData||yt&&yt!==this.type||O.pointStart!==void 0||O.pointInterval!==void 0||O.relativeXValue!==void 0||O.joinBy||O.mapData||W.hasOptionChanged("dataGrouping")||W.hasOptionChanged("pointStart")||W.hasOptionChanged("pointInterval")||W.hasOptionChanged("pointIntervalUnit")||W.hasOptionChanged("keys"));yt=yt||J,dt&&(bt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),O.visible!==!1&&bt.push("area","graph"),W.parallelArrays.forEach(function(Mt){bt.push(Mt+"Data")}),O.data&&(O.dataSorting&&i(W.options.dataSorting,O.dataSorting),this.setData(O.data,!1))),O=k(tt,gt,{index:tt.index===void 0?W.index:tt.index,pointStart:d(nt&&nt.series&&nt.series.pointStart,tt.pointStart,W.xData[0])},!dt&&{data:W.options.data},O),dt&&O.data&&(O.data=W.options.data),(bt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(bt)).forEach(function(Mt){bt[Mt]=W[Mt],delete W[Mt]});var ot=!1;if(v[yt]){if(ot=yt!==W.type,W.remove(!1,!1,!1,!0),ot)if(Object.setPrototypeOf)Object.setPrototypeOf(W,v[yt].prototype);else{var at=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(H in lt)W[H]=void 0;i(W,v[yt].prototype),at?W.hcEvents=at:delete W.hcEvents}}else t(17,!0,q,{missingModuleFor:yt});if(bt.forEach(function(Mt){W[Mt]=bt[Mt]}),W.init(q,O),dt&&this.points){if((Y=W.options).visible===!1)mt.graphic=1,mt.dataLabel=1;else if(!W._hasPointLabels){var ut=Y.marker,vt=Y.dataLabels,Ct=tt.marker||{};!ut||ut.enabled!==!1&&Ct.symbol===ut.symbol&&Ct.height===ut.height&&Ct.width===ut.width||(mt.graphic=1),vt&&vt.enabled===!1&&(mt.dataLabel=1)}for(var xt=0,St=this.points;xt<St.length;xt++){var wt=St[xt];wt&&wt.series&&(wt.resolveColor(),Object.keys(mt).length&&wt.destroyElements(mt),Y.showInLegend===!1&&wt.legendItem&&q.legend.destroyItem(wt))}}W.initialType=J,q.linkSeries(),ot&&W.linkedSeries.length&&(W.isDirtyData=!0),e(this,"afterUpdate"),d(j,!0)&&q.redraw(!!dt&&void 0)},L.prototype.setName=function(O){this.name=this.options.name=this.userOptions.name=O,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(O){var j=this.chart,Y=this.options[O],H=j.options.plotOptions,W=this.userOptions[O];return W?Y!==W:Y!==d(H&&H[this.type]&&H[this.type][O],H&&H.series&&H.series[O],Y)},L.prototype.onMouseOver=function(){var O=this,j=O.chart,Y=j.hoverSeries;j.pointer.setHoverChartIndex(),Y&&Y!==O&&Y.onMouseOut(),O.options.events.mouseOver&&e(O,"mouseOver"),O.setState("hover"),j.hoverSeries=O},L.prototype.onMouseOut=function(){var O=this,j=O.options,Y=O.chart,H=Y.tooltip,W=Y.hoverPoint;Y.hoverSeries=null,W&&W.onMouseOut(),O&&j.events.mouseOut&&e(O,"mouseOut"),!H||O.stickyTracking||H.shared&&!O.noSharedTooltip||H.hide(),Y.series.forEach(function(q){q.setState("",!0)})},L.prototype.setState=function(O,j){var Y,H=this,W=H.options,q=H.graph,tt=W.inactiveOtherPoints,J=W.states,nt=d(J[O||"normal"]&&J[O||"normal"].animation,H.chart.options.chart.animation),lt=W.lineWidth,gt=0,mt=W.opacity;if(O=O||"",H.state!==O&&([H.group,H.markerGroup,H.dataLabelsGroup].forEach(function(bt){bt&&(H.state&&bt.removeClass("highcharts-series-"+H.state),O&&bt.addClass("highcharts-series-"+O))}),H.state=O,!H.chart.styledMode)){if(J[O]&&J[O].enabled===!1)return;if(O&&(lt=J[O].lineWidth||lt+(J[O].lineWidthPlus||0),mt=d(J[O].opacity,mt)),q&&!q.dashstyle&&h(lt))for(Y={"stroke-width":lt},q.animate(Y,nt);H["zone-graph-"+gt];)H["zone-graph-"+gt].animate(Y,nt),gt+=1;tt||[H.group,H.markerGroup,H.dataLabelsGroup,H.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:mt},nt)})}j&&tt&&H.points&&H.setAllPointsToState(O||void 0)},L.prototype.setAllPointsToState=function(O){this.points.forEach(function(j){j.setState&&j.setState(O)})},L.prototype.setVisible=function(O,j){var Y=this,H=Y.chart,W=H.options.chart.ignoreHiddenSeries,q=Y.visible;Y.visible=O=Y.options.visible=Y.userOptions.visible=O===void 0?!q:O;var tt=O?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(J){Y[J]&&Y[J][tt]()}),H.hoverSeries!==Y&&(H.hoverPoint&&H.hoverPoint.series)!==Y||Y.onMouseOut(),Y.legendItem&&H.legend.colorizeItem(Y,O),Y.isDirty=!0,Y.options.stacking&&H.series.forEach(function(J){J.options.stacking&&J.visible&&(J.isDirty=!0)}),Y.linkedSeries.forEach(function(J){J.setVisible(O,!1)}),W&&(H.isDirtyBox=!0),e(Y,tt),j!==!1&&H.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(O){var j=this;j.selected=O=this.options.selected=O===void 0?!j.selected:O,j.checkbox&&(j.checkbox.checked=O),e(j,O?"select":"unselect")},L.prototype.shouldShowTooltip=function(O,j,Y){return Y===void 0&&(Y={}),Y.series=this,Y.visiblePlotOnly=!0,this.chart.isInsidePlot(O,j,Y)},L.defaultOptions=V,L.types=F.seriesTypes,L.registerType=F.registerSeriesType,L}();return i(z.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),F.series=z,z}),et(_,"Extensions/ScrollablePlotArea.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Series/Series.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.stop,F=Z.addEvent,I=Z.createElement,E=Z.defined,A=Z.merge,P=Z.pick;F(X,"afterSetChartSize",function(y){var c,f,m,u=this.options.chart.scrollablePlotArea,v=u&&u.minWidth,S=u&&u.minHeight;this.renderer.forExport||(v?(this.scrollablePixelsX=c=Math.max(0,v-this.chartWidth),c&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.width=this.plotWidth+=c,this.inverted?this.clipBox.height+=c:this.clipBox.width+=c,m={1:{name:"right",value:c}})):S&&(this.scrollablePixelsY=f=Math.max(0,S-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}})),m&&!y.skipAxes&&this.axes.forEach(function(M){m[M.side]?M.getPlotLinePath=function(){var x,p=m[M.side].name,g=m[M.side].value,r=this[p];return this[p]=r-g,x=B.prototype.getPlotLinePath.apply(this,arguments),this[p]=r,x}:(M.setAxisSize(),M.setAxisTranslation())}))}),F(X,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),X.prototype.setUpScrolling=function(){var y,c=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),F(this.scrollingContainer,"scroll",function(){c.pointer&&(delete c.pointer.chartPosition,c.hoverPoint&&(y=c.hoverPoint),c.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},X.prototype.moveFixedElements=function(){var y,c=this.container,f=this.fixedRenderer,m=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-reset-zoom",".highcharts-drillup-button",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(c.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},X.prototype.applyFixed=function(){var y,c,f,m=!this.fixedDiv,u=this.options.chart,v=u.scrollablePlotArea,S=$.getRendererType();m?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(u.style&&u.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=y=new S(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),F(this,"afterShowResetZoom",this.moveFixedElements),F(this,"afterApplyDrilldown",this.moveFixedElements),F(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||m)&&(this.scrollableDirty=!1,this.moveFixedElements()),c=this.chartWidth+(this.scrollablePixelsX||0),f=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=c+"px",this.container.style.height=f+"px",this.renderer.boxWrapper.attr({width:c,height:f,viewBox:[0,0,c,f].join(" ")}),this.chartBackground.attr({width:c,height:f}),this.scrollingContainer.style.height=this.chartHeight+"px",m&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY));var M,x=this.axisOffset,p=this.plotTop-x[0]-1,g=this.plotLeft-x[3]-1,r=this.plotTop+this.plotHeight+x[2]+1,a=this.plotLeft+this.plotWidth+x[1]+1,t=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),i=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);M=this.scrollablePixelsX?[["M",0,p],["L",this.plotLeft-1,p],["L",this.plotLeft-1,r],["L",0,r],["Z"],["M",t,p],["L",this.chartWidth,p],["L",this.chartWidth,r],["L",t,r],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",a,this.plotTop-1],["L",a,0],["Z"],["M",g,i],["L",g,this.chartHeight],["L",a,this.chartHeight],["L",a,i],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:M})},F(B,"afterInit",function(){this.chart.scrollableDirty=!0}),F(U,"show",function(){this.chart.scrollableDirty=!0})}),et(_,"Core/Axis/Stacking/StackItem.js",[_["Core/FormatUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.format,$=B.series,Z=X.destroyObjectProperties,V=X.pick,F=X.isNumber;return function(){function I(E,A,P,y,c){var f=E.chart.inverted,m=E.reversed;this.axis=E;var u=this.isNegative=!!P!=!!m;this.options=A=A||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=c,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:A.align||(f?u?"left":"right":"center"),verticalAlign:A.verticalAlign||(f?"middle":u?"bottom":"top"),y:A.y,x:A.x},this.textAlign=A.textAlign||(f?u?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var A=this.axis.chart,P=this.options,y=P.format,c=y?U(y,this,A):P.formatter.call(this);if(this.label)this.label.attr({text:c,visibility:"hidden"});else{this.label=A.renderer.label(c,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels");var f={r:P.borderRadius||0,text:c,padding:V(P.padding,5),visibility:"hidden"};A.styledMode||(f.fill=P.backgroundColor,f.stroke=P.borderColor,f["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(f),this.label.added||this.label.add(E)}this.label.labelrank=A.plotSizeY},I.prototype.setOffset=function(E,A,P,y,c,f){var m=this,u=m.alignOptions,v=m.axis,S=m.label,M=m.options,x=m.textAlign,p=v.chart,g=this.getStackBox({xOffset:E,width:A,boxBottom:P,boxTop:y,defaultX:c,xAxis:f}),r=u.verticalAlign;if(S&&g){var a=S.getBBox(),t=S.padding,i=V(M.overflow,"justify")==="justify",o=void 0;u.x=M.x||0,u.y=M.y||0;var e=this.adjustStackPosition({labelBox:a,verticalAlign:r,textAlign:x}),s=e.x,n=e.y;g.x-=s,g.y-=n,S.align(u,!1,g),(o=p.isInsidePlot(S.alignAttr.x+u.x+s,S.alignAttr.y+u.y+n))||(i=!1),i&&$.prototype.justifyDataLabel.call(v,S,u,S.alignAttr,a,g),S.attr({x:S.alignAttr.x,y:S.alignAttr.y,rotation:M.rotation,rotationOriginX:a.width/2,rotationOriginY:a.height/2}),V(!i&&M.crop,!0)&&(o=F(S.x)&&F(S.y)&&p.isInsidePlot(S.x-t+S.width,S.y)&&p.isInsidePlot(S.x+t,S.y)),S[o?"show":"hide"]()}},I.prototype.adjustStackPosition=function(E){var A=E.labelBox,P=E.verticalAlign,y=E.textAlign,c={bottom:0,middle:1,top:2,right:1,center:0,left:-1},f=c[P],m=c[y];return{x:A.width/2+A.width/2*m,y:A.height/2*f}},I.prototype.getStackBox=function(E){var A=this.axis,P=A.chart,y=E.boxTop,c=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom,v=A.stacking.usePercentage?100:V(y,this.total,0),S=A.toPixels(v),M=E.xAxis||P.xAxis[0],x=V(c,M.toPixels(this.x))+f,p=A.toPixels(u||0),g=Math.abs(S-p),r=P.inverted,a=this.isNegative;return r?{x:(a?S:S-g)-P.plotLeft,y:x-P.plotTop,width:g,height:m}:{x:x-P.plotLeft,y:(a?S-g:S)-P.plotTop,width:m,height:g}},I}()}),et(_,"Core/Axis/Stacking/StackingAxis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.getDeferredAnimation,V=X.series.prototype,F=$.addEvent,I=$.correctFloat,E=$.defined,A=$.destroyObjectProperties,P=$.fireEvent,y=$.isArray,c=$.isNumber,f=$.objectEach,m=$.pick;function u(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,m(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join(","))})}function v(){var i=this.stacking;if(i){var o=i.stacks;f(o,function(e,s){A(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function S(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function M(i,o,e,s){return!E(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(","),i}function x(){var i,o=this,e=o.yAxis,s=o.stackKey,n=e.stacking.stacks,h=o.processedXData,b=o.options.stacking,k=o[b+"Stacker"];k&&[s,"-"+s].forEach(function(D){for(var d,C,T,N=h.length;N--;)d=h[N],i=o.getStackIndicator(i,d,o.index,D),(T=(C=n[D]&&n[D][d])&&C.points[i.key])&&k.call(o,T,C,N)})}function p(i,o,e){var s=o.total?100/o.total:0;i[0]=I(i[0]*s),i[1]=I(i[1]*s),this.stackedYData[e]=i[1]}function g(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?V.setStackedPoints.call(this,"group"):i&&f(i.stacks,function(o,e){e.slice(-5)==="group"&&(f(o,function(s){return s.destroy()}),delete i.stacks[e])})}function r(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s,n,h,b,k,D,d,C,T,N=this,z=N.processedXData,L=N.processedYData,O=[],j=L.length,Y=N.options,H=Y.threshold,W=m(Y.startFromThreshold&&H,0),q=Y.stack,tt=i?""+N.type+",".concat(e):N.stackKey,J="-"+tt,nt=N.negStacks,lt=e==="group"?o.yAxis[0]:N.yAxis,gt=lt.stacking.stacks,mt=lt.stacking.oldStacks;for(lt.stacking.stacksTouched+=1,d=0;d<j;d++)C=z[d],T=L[d],D=(s=N.getStackIndicator(s,C,N.index)).key,gt[k=(n=nt&&T<(W?0:H))?J:tt]||(gt[k]={}),gt[k][C]||(mt[k]&&mt[k][C]?(gt[k][C]=mt[k][C],gt[k][C].total=null):gt[k][C]=new U(lt,lt.options.stackLabels,!!n,C,q)),h=gt[k][C],T!==null?(h.points[D]=h.points[N.index]=[m(h.cumulative,W)],E(h.cumulative)||(h.base=D),h.touched=lt.stacking.stacksTouched,s.index>0&&N.singleStacks===!1&&(h.points[D][0]=h.points[N.index+","+C+",0"][0])):h.points[D]=h.points[N.index]=null,e==="percent"?(b=n?tt:J,nt&>[b]&>[b][C]?(b=gt[b][C],h.total=b.total=Math.max(b.total,h.total)+Math.abs(T)||0):h.total=I(h.total+(Math.abs(T)||0))):e==="group"?(y(T)&&(T=T[0]),T!==null&&(h.total=(h.total||0)+1)):h.total=I(h.total+(T||0)),h.cumulative=e==="group"?(h.total||1)-1:m(h.cumulative,W)+(T||0),T!==null&&(h.points[D].push(h.cumulative),O[d]=h.cumulative,h.hasValidPoints=!0);e==="percent"&&(lt.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=O),lt.stacking.oldStacks={}}}var a,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e,s=this.axis,n=s.series,h=s.options.reversedStacks,b=n.length;for(this.usePercentage=!1,e=b;e--;)(o=n[h?e:b-e-1]).setStackedPoints(),o.setGroupedPoints();for(e=0;e<b;e++)n[e].modifyStacks();P(s,"afterBuildStacks")},i.prototype.cleanStacks=function(){var o,e=this;e.oldStacks&&(o=e.stacks=e.oldStacks),f(o,function(s){f(s,function(n){n.cumulative=n.total})})},i.prototype.resetStacks=function(){var o=this;f(this.stacks,function(e){f(e,function(s,n){c(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this,e=o.axis,s=e.chart,n=s.renderer,h=o.stacks,b=e.options.stackLabels&&e.options.stackLabels.animation,k=Z(s,b||!1),D=o.stackTotalGroup=o.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}).add();D.translate(s.plotLeft,s.plotTop),f(h,function(d){f(d,function(C){C.render(D)})}),D.animate({opacity:1},k)},i}();return function(i){var o=[];i.compose=function(e,s,n){if(o.indexOf(e)===-1&&(o.push(e),F(e,"init",S),F(e,"destroy",v)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=u),o.indexOf(n)===-1){o.push(n);var h=n.prototype;h.getStackIndicator=M,h.modifyStacks=x,h.percentStacker=p,h.setGroupedPoints=g,h.setStackedPoints=r}}}(a||(a={})),a}),et(_,"Series/Line/LineSeries.js",[_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=X.defined,V=X.merge,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.data=void 0,A.options=void 0,A.points=void 0,A}return $(E,I),E.prototype.drawGraph=function(){var A=this,P=this.options,y=(this.gappedPath||this.getGraphPath).call(this),c=this.chart.styledMode,f=[["graph","highcharts-graph"]];c||f[0].push(P.lineColor||this.color||"#cccccc",P.dashStyle),(f=A.getZonesGraphs(f)).forEach(function(m,u){var v,S=m[0],M=A[S],x=M?"animate":"attr";M?(M.endX=A.preventGraphAnimation?null:y.xMap,M.animate({d:y})):y.length&&(A[S]=M=A.chart.renderer.path(y).addClass(m[1]).attr({zIndex:1}).add(A.group)),M&&!c&&(v={stroke:m[2],"stroke-width":P.lineWidth||0,fill:A.fillGraph&&A.color||"none"},m[3]?v.dashstyle=m[3]:P.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),M[x](v).shadow(u<2&&P.shadow)),M&&(M.startX=y.xMap,M.isArea=y.isArea)})},E.prototype.getGraphPath=function(A,P,y){var c,f=this,m=f.options,u=[],v=[],S=m.step,M=(A=A||f.points).reversed;return M&&A.reverse(),(S={right:1,center:2}[S]||S&&3)&&M&&(S=4-S),(A=this.getValidPoints(A,!1,!(m.connectNulls&&!P&&!y))).forEach(function(x,p){var g,r=x.plotX,a=x.plotY,t=A[p-1];(x.leftCliff||t&&t.rightCliff)&&!y&&(c=!0),x.isNull&&!Z(P)&&p>0?c=!m.connectNulls:x.isNull&&!P?c=!0:(p===0||c?g=[["M",x.plotX,x.plotY]]:f.getPointSpline?g=[f.getPointSpline(A,x,p)]:S?(g=S===1?[["L",t.plotX,a]]:S===2?[["L",(t.plotX+r)/2,t.plotY],["L",(t.plotX+r)/2,a]]:[["L",r,t.plotY]]).push(["L",r,a]):g=[["L",r,a]],v.push(x.x),S&&(v.push(x.x),S===2&&v.push(x.x)),u.push.apply(u,g),c=!1)}),u.xMap=v,f.graphPath=u,u},E.prototype.getZonesGraphs=function(A){return this.zones.forEach(function(P,y){var c=["zone-graph-"+y,"highcharts-graph highcharts-zone-graph-"+y+" "+(P.className||"")];this.chart.styledMode||c.push(P.color||this.color,P.dashStyle||this.options.dashStyle),A.push(c)},this),A},E.defaultOptions=V(G.defaultOptions,{}),E}(G);return B.registerSeriesType("line",F),F}),et(_,"Series/Area/AreaSeries.js",[_["Core/Color/Color.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(c,f){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},$(c,f)},function(c,f){function m(){this.constructor=c}$(c,f),c.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),V=G.parse,F=X.seriesTypes.line,I=U.extend,E=U.merge,A=U.objectEach,P=U.pick,y=function(c){function f(){var m=c!==null&&c.apply(this,arguments)||this;return m.data=void 0,m.options=void 0,m.points=void 0,m}return Z(f,c),f.prototype.drawGraph=function(){this.areaPath=[],c.prototype.drawGraph.apply(this);var m=this,u=this.areaPath,v=this.options,S=this.zones,M=[["area","highcharts-area",this.color,v.fillColor]];S.forEach(function(x,p){M.push(["zone-area-"+p,"highcharts-area highcharts-zone-area-"+p+" "+x.className,x.color||m.color,x.fillColor||v.fillColor])}),M.forEach(function(x){var p=x[0],g={},r=m[p],a=r?"animate":"attr";r?(r.endX=m.preventGraphAnimation?null:u.xMap,r.animate({d:u})):(g.zIndex=0,(r=m[p]=m.chart.renderer.path(u).addClass(x[1]).add(m.group)).isArea=!0),m.chart.styledMode||(g.fill=P(x[3],V(x[2]).setOpacity(P(v.fillOpacity,.75)).get())),r[a](g),r.startX=u.xMap,r.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(m){var u,v,S,M=F.prototype.getGraphPath,x=this.options,p=x.stacking,g=this.yAxis,r=[],a=[],t=this.index,i=g.stacking.stacks[this.stackKey],o=x.threshold,e=Math.round(g.getThreshold(x.threshold)),s=P(x.connectNulls,p==="percent"),n=function(N,z,L){var O,j,Y=m[N],H=p&&i[Y.x].points[t],W=Y[L+"Null"]||0,q=Y[L+"Cliff"]||0,tt=!0;q||W?(O=(W?H[0]:H[1])+q,j=H[0]+q,tt=!!W):!p&&m[z]&&m[z].isNull&&(O=j=o),O!==void 0&&(a.push({plotX:u,plotY:O===null?e:g.getThreshold(O),isNull:tt,isCliff:!0}),r.push({plotX:u,plotY:j===null?e:g.getThreshold(j),doCurve:!1}))};m=m||this.points,p&&(m=this.getStackPoints(m));for(var h=0,b=m.length;h<b;++h)p||(m[h].leftCliff=m[h].rightCliff=m[h].leftNull=m[h].rightNull=void 0),v=m[h].isNull,u=P(m[h].rectPlotX,m[h].plotX),S=p?P(m[h].yBottom,e):e,v&&!s||(s||n(h,h-1,"left"),v&&!p&&s||(a.push(m[h]),r.push({x:h,plotX:u,plotY:S})),s||n(h,h+1,"right"));var k=M.call(this,a,!0,!0);r.reversed=!0;var D=M.call(this,r,!0,!0),d=D[0];d&&d[0]==="M"&&(D[0]=["L",d[1],d[2]]);var C=k.concat(D);C.length&&C.push(["Z"]);var T=M.call(this,a,!1,s);return C.xMap=k.xMap,this.areaPath=C,T},f.prototype.getStackPoints=function(m){var u=this,v=[],S=[],M=this.xAxis,x=this.yAxis,p=x.stacking.stacks[this.stackKey],g={},r=x.series,a=r.length,t=x.options.reversedStacks?1:-1,i=r.indexOf(u);if(m=m||this.points,this.options.stacking){for(var o=0;o<m.length;o++)m[o].leftNull=m[o].rightNull=void 0,g[m[o].x]=m[o];A(p,function(s,n){s.total!==null&&S.push(n)}),S.sort(function(s,n){return s-n});var e=r.map(function(s){return s.visible});S.forEach(function(s,n){var h,b,k=0;if(g[s]&&!g[s].isNull)v.push(g[s]),[-1,1].forEach(function(C){var T=C===1?"rightNull":"leftNull",N=C===1?"rightCliff":"leftCliff",z=p[S[n+C]],L=0;if(z)for(var O=i;O>=0&&O<a;){var j=r[O].index;(h=z.points[j])||(j===u.index?g[s][T]=!0:e[O]&&(b=p[s].points[j])&&(L-=b[1]-b[0])),O+=t}g[s][N]=L});else{for(var D=i;D>=0&&D<a;){var d=r[D].index;if(h=p[s].points[d]){k=h[1];break}D+=t}k=P(k,0),k=x.translate(k,0,1,0,1),v.push({isNull:!0,plotX:M.translate(s,0,0,0,1),x:s,plotY:k,yBottom:k})}})}return v},f.defaultOptions=E(F.defaultOptions,{threshold:0}),f}(F);return I(y.prototype,{singleStacks:!1,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("area",y),y}),et(_,"Series/Spline/SplineSeries.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(I,E){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},X(I,E)},function(I,E){function A(){this.constructor=I}X(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),$=G.seriesTypes.line,Z=B.merge,V=B.pick,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.data=void 0,A.options=void 0,A.points=void 0,A}return U(E,I),E.prototype.getPointSpline=function(A,P,y){var c,f,m,u,v=1.5,S=2.5,M=P.plotX||0,x=P.plotY||0,p=A[y-1],g=A[y+1];function r(n){return n&&!n.isNull&&n.doCurve!==!1&&!P.isCliff}if(r(p)&&r(g)){var a=p.plotX||0,t=p.plotY||0,i=g.plotX||0,o=g.plotY||0,e=0;f=(v*x+t)/S,u=(v*x+o)/S,(m=(v*M+i)/S)!==(c=(v*M+a)/S)&&(e=(u-f)*(m-M)/(m-c)+x-u),u+=e,(f+=e)>t&&f>x?u=2*x-(f=Math.max(t,x)):f<t&&f<x&&(u=2*x-(f=Math.min(t,x))),u>o&&u>x?f=2*x-(u=Math.max(o,x)):u<o&&u<x&&(f=2*x-(u=Math.min(o,x))),P.rightContX=m,P.rightContY=u}var s=["C",V(p.rightContX,p.plotX,0),V(p.rightContY,p.plotY,0),V(c,M,0),V(f,x,0),M,x];return p.rightContX=p.rightContY=void 0,s},E.defaultOptions=Z($.defaultOptions),E}($);return G.registerSeriesType("spline",F),F}),et(_,"Series/AreaSpline/AreaSplineSeries.js",[_["Series/Spline/SplineSeries.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,c)},function(y,c){function f(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),V=X.seriesTypes,F=V.area,I=V.area.prototype,E=U.extend,A=U.merge,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return Z(c,y),c.defaultOptions=A(G.defaultOptions,F.defaultOptions),c}(G);return E(P.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("areaspline",P),P}),et(_,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),et(_,"Series/Column/ColumnSeries.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeriesDefaults.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),A=G.animObject,P=B.parse,y=U.hasTouch,c=U.noop,f=F.clamp,m=F.defined,u=F.extend,v=F.fireEvent,S=F.isArray,M=F.isNumber,x=F.merge,p=F.pick,g=F.objectEach,r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.borderWidth=void 0,i.data=void 0,i.group=void 0,i.options=void 0,i.points=void 0,i}return E(t,a),t.prototype.animate=function(i){var o,e,s=this,n=this.yAxis,h=s.options,b=this.chart.inverted,k={},D=b?"translateX":"translateY";i?(k.scaleY=.001,e=f(n.toPixels(h.threshold),n.pos,n.pos+n.len),b?k.translateX=e-n.len:k.translateY=e,s.clipBox&&s.setClip(),s.group.attr(k)):(o=Number(s.group.attr(D)),s.group.animate({scaleY:1},u(A(s.options.animation),{step:function(d,C){s.group&&(k[D]=o+C.pos*(n.pos-o),s.group.attr(k))}})))},t.prototype.init=function(i,o){a.prototype.init.apply(this,arguments);var e=this;(i=e.chart).hasRendered&&i.series.forEach(function(s){s.type===e.type&&(s.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var i,o=this,e=o.options,s=o.xAxis,n=o.yAxis,h=s.options.reversedStacks,b=s.reversed&&!h||!s.reversed&&h,k={},D=0;e.grouping===!1?D=1:o.chart.series.forEach(function(L){var O,j=L.yAxis,Y=L.options;L.type!==o.type||!L.visible&&o.chart.options.chart.ignoreHiddenSeries||n.len!==j.len||n.pos!==j.pos||(Y.stacking&&Y.stacking!=="group"?(i=L.stackKey,k[i]===void 0&&(k[i]=D++),O=k[i]):Y.grouping!==!1&&(O=D++),L.columnIndex=O)});var d=Math.min(Math.abs(s.transA)*(s.ordinal&&s.ordinal.slope||e.pointRange||s.closestPointRange||s.tickInterval||1),s.len),C=d*e.groupPadding,T=(d-2*C)/(D||1),N=Math.min(e.maxPointWidth||s.len,p(e.pointWidth,T*(1-2*e.pointPadding))),z=(T-N)/2+(C+((o.columnIndex||0)+(b?1:0))*T-d/2)*(b?-1:1);return o.columnMetrics={width:N,offset:z,paddedWidth:T,columnCount:D},o.columnMetrics},t.prototype.crispCol=function(i,o,e,s){var n=this.chart,h=this.borderWidth,b=-(h%2?.5:0),k=h%2?.5:1;n.inverted&&n.renderer.isVML&&(k+=1),this.options.crisp&&(e=Math.round(i+e)+b-(i=Math.round(i)+b));var D=Math.round(o+s)+k,d=Math.abs(o)<=.5&&D>.5;return s=D-(o=Math.round(o)+k),d&&s&&(o-=1,s+=1),{x:i,y:o,width:e,height:s}},t.prototype.adjustForMissingColumns=function(i,o,e,s){var n=this,h=this.options.stacking;if(!e.isNull&&s.columnCount>1){var b=this.yAxis.options.reversedStacks,k=0,D=b?0:-s.columnCount;g(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(C){if(typeof e.x=="number"){var T=C[e.x.toString()];if(T){var N=T.points[n.index];if(h)N&&(k=D),T.hasValidPoints&&(b?D++:D--);else if(S(N)){var z=Object.keys(T.points).filter(function(L){return!L.match(",")&&T.points[L]&&T.points[L].length>1}).map(parseFloat).sort(function(L,O){return O-L});k=z.indexOf(n.index),D=z.length}}}});var d=(D-1)*s.paddedWidth+o;i=(e.plotX||0)+d/2-o-k*s.paddedWidth}return i},t.prototype.translate=function(){var i=this,o=i.chart,e=i.options,s=i.dense=i.closestPointRange*i.xAxis.transA<2,n=i.borderWidth=p(e.borderWidth,s?0:1),h=i.xAxis,b=i.yAxis,k=e.threshold,D=i.translatedThreshold=b.getThreshold(k),d=p(e.minPointLength,5),C=i.getColumnMetrics(),T=C.width,N=i.pointXOffset=C.offset,z=i.dataMin,L=i.dataMax,O=i.barW=Math.max(T,1+2*n);o.inverted&&(D-=.5),e.pointPadding&&(O=Math.ceil(O)),Z.prototype.translate.apply(i),i.points.forEach(function(j){var Y,H=p(j.yBottom,D),W=999+Math.abs(H),q=j.plotX||0,tt=f(j.plotY,-W,b.len+W),J=Math.min(tt,H),nt=Math.max(tt,H)-J,lt=T,gt=q+N,mt=O;d&&Math.abs(nt)<d&&(nt=d,Y=!b.reversed&&!j.negative||b.reversed&&j.negative,M(k)&&M(L)&&j.y===k&&L<=k&&(b.min||0)<k&&(z!==L||(b.max||0)<=k)&&(Y=!Y),J=Math.abs(J-D)>d?H-d:D-(Y?d:0)),m(j.options.pointWidth)&&(lt=mt=Math.ceil(j.options.pointWidth),gt-=Math.round((lt-T)/2)),e.centerInCategory&&(gt=i.adjustForMissingColumns(gt,lt,j,C)),j.barX=gt,j.pointWidth=lt,j.tooltipPos=o.inverted?[f(b.len+b.pos-o.plotLeft-tt,b.pos-o.plotLeft,b.len+b.pos-o.plotLeft),h.len+h.pos-o.plotTop-gt-mt/2,nt]:[h.left-o.plotLeft+gt+mt/2,f(tt+b.pos-o.plotTop,b.pos-o.plotTop,b.len+b.pos-o.plotTop),nt],j.shapeType=i.pointClass.prototype.shapeType||"rect",j.shapeArgs=i.crispCol.apply(i,j.isNull?[gt,D,mt,0]:[gt,J,mt,nt])})},t.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},t.prototype.pointAttribs=function(i,o){var e,s,n,h=this.options,b=this.pointAttrToOptions||{},k=b.stroke||"borderColor",D=b["stroke-width"]||"borderWidth",d=i&&i.color||this.color,C=i&&i[k]||h[k]||d,T=i&&i.options.dashStyle||h.dashStyle,N=i&&i[D]||h[D]||this[D]||0,z=p(i&&i.opacity,h.opacity,1);i&&this.zones.length&&(s=i.getZone(),d=i.options.color||s&&(s.color||i.nonZonedColor)||this.color,s&&(C=s.borderColor||C,T=s.dashStyle||T,N=s.borderWidth||N)),o&&i&&(n=(e=x(h.states[o],i.options.states&&i.options.states[o]||{})).brightness,d=e.color||n!==void 0&&P(d).brighten(e.brightness).get()||d,C=e[k]||C,N=e[D]||N,T=e.dashStyle||T,z=p(e.opacity,z));var L={fill:d,stroke:C,"stroke-width":N,opacity:z};return T&&(L.dashstyle=T),L},t.prototype.drawPoints=function(i){i===void 0&&(i=this.points);var o,e=this,s=this.chart,n=e.options,h=s.renderer,b=n.animationLimit||250;i.forEach(function(k){var D=k.plotY,d=k.graphic,C=!!d,T=d&&s.pointCount<b?"animate":"attr";M(D)&&k.y!==null?(o=k.shapeArgs,d&&k.hasNewShapeType()&&(d=d.destroy()),e.enabledDataSorting&&(k.startXPos=e.xAxis.reversed?-(o&&o.width||0):e.xAxis.width),d||(k.graphic=d=h[k.shapeType](o).add(k.group||e.group),d&&e.enabledDataSorting&&s.hasRendered&&s.pointCount<b&&(d.attr({x:k.startXPos}),C=!0,T="animate")),d&&C&&d[T](x(o)),n.borderRadius&&d[T]({r:n.borderRadius}),s.styledMode||d[T](e.pointAttribs(k,k.selected&&"select")).shadow(k.allowShadow!==!1&&n.shadow,null,n.stacking&&!n.borderRadius),d&&(d.addClass(k.getClassName(),!0),d.attr({visibility:k.visible?"inherit":"hidden"}))):d&&(k.graphic=d.destroy())})},t.prototype.drawTracker=function(i){i===void 0&&(i=this.points);var o,e=this,s=e.chart,n=s.pointer,h=function(b){var k=n.getPointFromEvent(b);k!==void 0&&(n.isDirectTouch=!0,k.onMouseOver(b))};i.forEach(function(b){o=S(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[],b.graphic&&(b.graphic.element.point=b),o.forEach(function(k){k.div?k.div.point=b:k.element.point=b})}),e._hasTracking||(e.trackerGroups.forEach(function(b){e[b]&&(e[b].addClass("highcharts-tracker").on("mouseover",h).on("mouseout",function(k){n.onTrackerMouseOut(k)}),y&&e[b].on("touchstart",h),!s.styledMode&&e.options.cursor&&e[b].css({cursor:e.options.cursor}))}),e._hasTracking=!0),v(this,"afterDrawTracker")},t.prototype.remove=function(){var i=this,o=i.chart;o.hasRendered&&o.series.forEach(function(e){e.type===i.type&&(e.isDirty=!0)}),Z.prototype.remove.apply(i,arguments)},t.defaultOptions=x(Z.defaultOptions,X),t}(Z);return u(r.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:c,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),V.registerSeriesType("column",r),r}),et(_,"Core/Series/DataLabel.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.getDeferredAnimation,Z=B.format,V=X.defined,F=X.extend,I=X.fireEvent,E=X.isArray,A=X.isString,P=X.merge,y=X.objectEach,c=X.pick,f=X.splat;return function(m){var u=[];function v(g,r,a,t,i){var o,e,s,n=this,h=this.chart,b=this.isCartesian&&h.inverted,k=this.enabledDataSorting,D=g.plotX,d=g.plotY,C=a.rotation,T=a.align,N=V(D)&&V(d)&&h.isInsidePlot(D,Math.round(d),{inverted:b,paneCoordinates:!0,series:n}),z=function(tt){k&&n.xAxis&&!L&&n.setDataLabelStartPos(g,r,i,N,tt)},L=c(a.overflow,k?"none":"justify")==="justify",O=this.visible&&g.visible!==!1&&V(D)&&(g.series.forceDL||k&&!L||N||c(a.inside,!!this.options.stacking)&&t&&h.isInsidePlot(D,b?t.x+1:t.y+t.height-1,{inverted:b,paneCoordinates:!0,series:n})),j=g.pos();if(O&&j){C&&r.attr({align:T});var Y=r.getBBox(!0),H=[0,0];if(o=h.renderer.fontMetrics(h.styledMode?void 0:a.style.fontSize,r).b,t=F({x:j[0],y:Math.round(j[1]),width:0,height:0},t),F(a,{width:Y.width,height:Y.height}),C?(L=!1,e=h.renderer.rotCorr(o,C),s={x:t.x+(a.x||0)+t.width/2+e.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},H=[Y.x-Number(r.attr("x")),Y.y-Number(r.attr("y"))],z(s),r[i?"attr":"animate"](s)):(z(t),r.align(a,void 0,t),s=r.alignAttr),L&&t.height>=0)this.justifyDataLabel(r,a,s,Y,t,i);else if(c(a.crop,!0)){var W=s.x,q=s.y;W+=H[0],q+=H[1],O=h.isInsidePlot(W,q,{paneCoordinates:!0,series:n})&&h.isInsidePlot(W+Y.width,q+Y.height,{paneCoordinates:!0,series:n})}a.shape&&!C&&r[i?"attr":"animate"]({anchorX:j[0],anchorY:j[1]})}i&&k&&(r.placed=!1),O||k&&!L?r.show():(r.hide(),r.placed=!1)}function S(g){g===void 0&&(g=this.points);var r,a=this,t=a.chart,i=a.options,o=a.hasRendered||0,e=t.renderer,s=t.options.chart,n=s.backgroundColor,h=s.plotBackgroundColor,b=e.getContrast(A(h)&&h||A(n)&&n||"#000000"),k=i.dataLabels,D=k.animation,d=k.defer?$(t,D,a):{defer:0,duration:0};if(k=x(x(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[a.type]&&t.options.plotOptions[a.type].dataLabels),k),I(this,"drawDataLabels"),E(k)||k.enabled||a._hasPointLabels){if((r=a.plotGroup("dataLabelsGroup","data-labels",o?"inherit":"hidden",k.zIndex||6)).attr({opacity:+o}),!o){var C=a.dataLabelsGroup;C&&(a.visible&&r.show(),C[i.animation?"animate":"attr"]({opacity:1},d))}g.forEach(function(T){f(x(k,T.dlOptions||T.options&&T.options.dataLabels)).forEach(function(N,z){var L,O,j,Y,H,W,q=N.enabled&&(!T.isNull||T.dataLabelOnNull)&&function(yt,dt){var ot=dt.filter;if(ot){var at=ot.operator,ut=yt[ot.property],vt=ot.value;return at===">"&&ut>vt||at==="<"&&ut<vt||at===">="&&ut>=vt||at==="<="&&ut<=vt||at==="=="&&ut==vt||at==="==="&&ut===vt}return!0}(T,N),tt=T.connectors?T.connectors[z]:T.connector,J=T.dataLabels?T.dataLabels[z]:T.dataLabel,nt=!J,lt=c(N.distance,T.labelDistance);if(q){if(L=T.getLabelConfig(),O=c(N[T.formatPrefix+"Format"],N.format),j=V(O)?Z(O,L,t):(N[T.formatPrefix+"Formatter"]||N.formatter).call(L,N),Y=N.style,H=N.rotation,t.styledMode||(Y.color=c(N.color,Y.color,a.color,"#000000"),Y.color==="contrast"?(T.contrastColor=e.getContrast(T.color||a.color),Y.color=!V(lt)&&N.inside||lt<0||i.stacking?T.contrastColor:b):delete T.contrastColor,i.cursor&&(Y.cursor=i.cursor)),W={r:N.borderRadius||0,rotation:H,padding:N.padding,zIndex:1},!t.styledMode){var gt=N.backgroundColor,mt=N.borderColor;W.fill=gt==="auto"?T.color:gt,W.stroke=mt==="auto"?T.color:mt,W["stroke-width"]=N.borderWidth}y(W,function(yt,dt){yt===void 0&&delete W[dt]})}if(!J||q&&V(j)&&!!J.div==!!N.useHTML&&(J.rotation&&N.rotation||J.rotation===N.rotation)||(nt=!0,T.dataLabel=J=T.dataLabel&&T.dataLabel.destroy(),T.dataLabels&&(T.dataLabels.length===1?delete T.dataLabels:delete T.dataLabels[z]),z||delete T.dataLabel,tt&&(T.connector=T.connector.destroy(),T.connectors&&(T.connectors.length===1?delete T.connectors:delete T.connectors[z]))),q&&V(j)){J?W.text=j:(T.dataLabels=T.dataLabels||[],J=T.dataLabels[z]=H?e.text(j,0,0,N.useHTML).addClass("highcharts-data-label"):e.label(j,0,0,N.shape,null,null,N.useHTML,null,"data-label"),z||(T.dataLabel=J),J.addClass(" highcharts-data-label-color-"+T.colorIndex+" "+(N.className||"")+(N.useHTML?" highcharts-tracker":""))),J.options=N,J.attr(W),t.styledMode||J.css(Y).shadow(N.shadow);var bt=N[T.formatPrefix+"TextPath"]||N.textPath;bt&&!N.useHTML&&(J.setTextPath(T.getDataLabelPath&&T.getDataLabelPath(J)||T.graphic,bt),T.dataLabelPath&&!bt.enabled&&(T.dataLabelPath=T.dataLabelPath.destroy())),J.added||J.add(r),a.alignDataLabel(T,J,N,null,nt)}else J&&J.hide()})})}I(this,"afterDrawDataLabels")}function M(g,r,a,t,i,o){var e,s,n=this.chart,h=r.align,b=r.verticalAlign,k=g.box?0:g.padding||0,D=r.x,d=D===void 0?0:D,C=r.y,T=C===void 0?0:C;return(e=(a.x||0)+k)<0&&(h==="right"&&d>=0?(r.align="left",r.inside=!0):d-=e,s=!0),(e=(a.x||0)+t.width-k)>n.plotWidth&&(h==="left"&&d<=0?(r.align="right",r.inside=!0):d+=n.plotWidth-e,s=!0),(e=a.y+k)<0&&(b==="bottom"&&T>=0?(r.verticalAlign="top",r.inside=!0):T-=e,s=!0),(e=(a.y||0)+t.height-k)>n.plotHeight&&(b==="top"&&T<=0?(r.verticalAlign="bottom",r.inside=!0):T+=n.plotHeight-e,s=!0),s&&(r.x=d,r.y=T,g.placed=!o,g.align(r,void 0,i)),s}function x(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function p(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,h=e?r.height/2:r.width/2,b=g.pointWidth,k=b?b/2:0;r.startXPos=e?i.x:n?-h-k:s.width-h+k,r.startYPos=e?n?this.yAxis.height-h+k:-h-k:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}m.compose=function(g){if(u.indexOf(g)===-1){var r=g.prototype;u.push(g),r.alignDataLabel=v,r.drawDataLabels=S,r.justifyDataLabel=M,r.setDataLabelStartPos=p}}}(U||(U={})),U}),et(_,"Series/Column/ColumnDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=B.series,Z=X.merge,V=X.pick;return function(F){var I=[];function E(A,P,y,c,f){var m,u=this.chart.inverted,v=A.series,S=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0,M=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0,x=A.dlBox||A.shapeArgs,p=V(A.below,A.plotY>V(this.translatedThreshold,M)),g=V(y.inside,!!this.options.stacking);x&&((c=Z(x)).y<0&&(c.height+=c.y,c.y=0),(m=c.y+c.height-M)>0&&m<c.height&&(c.height-=m),u&&(c={x:M-c.y-c.height,y:S-c.x-c.width,width:c.height,height:c.width}),g||(u?(c.x+=p?0:c.width,c.width=0):(c.y+=p?c.height:0,c.height=0))),y.align=V(y.align,!u||g?"center":p?"right":"left"),y.verticalAlign=V(y.verticalAlign,u||g?"middle":p?"top":"bottom"),$.prototype.alignDataLabel.call(this,A,P,y,c,f),y.inside&&A.contrastColor&&P.css({color:A.contrastColor})}F.compose=function(A){G.compose($),I.indexOf(A)===-1&&(I.push(A),A.prototype.alignDataLabel=E)}}(U||(U={})),U}),et(_,"Series/Bar/BarSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=X.extend,V=X.merge,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.data=void 0,A.options=void 0,A.points=void 0,A}return $(E,I),E.defaultOptions=V(G.defaultOptions,{}),E}(G);return Z(F.prototype,{inverted:!0}),B.registerSeriesType("bar",F),F}),et(_,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),et(_,"Series/Scatter/ScatterSeries.js",[_["Series/Scatter/ScatterSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(y,c){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},U(y,c)},function(y,c){function f(){this.constructor=y}U(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),Z=B.seriesTypes,V=Z.column,F=Z.line,I=X.addEvent,E=X.extend,A=X.merge,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return $(c,y),c.prototype.applyJitter=function(){var f=this,m=this.options.jitter,u=this.points.length;m&&this.points.forEach(function(v,S){["x","y"].forEach(function(M,x){var p,g,r,a,t,i,o="plot"+M.toUpperCase();m[M]&&!v.isNull&&(p=f[M+"Axis"],a=m[M]*p.transA,p&&!p.isLog&&(g=Math.max(0,v[o]-a),r=Math.min(p.len,v[o]+a),v[o]=g+(r-g)*(t=S+x*u,(i=1e4*Math.sin(t))-Math.floor(i)),M==="x"&&(v.clientX=v.plotX)))})})},c.prototype.drawGraph=function(){this.options.lineWidth?y.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},c.defaultOptions=A(F.defaultOptions,G),c}(F);return E(P.prototype,{drawTracker:V.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),I(P,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",P),P}),et(_,"Series/CenteredUtilities.js",[_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.deg2rad,Z=X.fireEvent,V=X.isNumber,F=X.pick,I=X.relativeLength;return function(E){E.getCenter=function(){var A,P,y,c=this.options,f=this.chart,m=2*(c.slicedOffset||0),u=f.plotWidth-2*m,v=f.plotHeight-2*m,S=c.center,M=Math.min(u,v),x=c.thickness,p=c.size,g=c.innerSize||0;typeof p=="string"&&(p=parseFloat(p)),typeof g=="string"&&(g=parseFloat(g));var r=[F(S[0],"50%"),F(S[1],"50%"),F(p&&p<0?void 0:c.size,"100%"),F(g&&g<0?void 0:c.innerSize||0,"0%")];for(!f.angular||this instanceof B||(r[3]=0),P=0;P<4;++P)y=r[P],A=P<2||P===2&&/%$/.test(y),r[P]=I(y,[u,v,M,r[2]][P])+(A?m:0);return r[3]>r[2]&&(r[3]=r[2]),V(x)&&2*x<r[2]&&x>0&&(r[3]=r[2]-2*x),Z(this,"afterGetCenter",{positions:r}),r},E.getStartAndEndRadians=function(A,P){var y=V(A)?A:0,c=V(P)&&P>y&&P-y<360?P:y+360;return{start:$*(y+-90),end:$*(c+-90)}}}(U||(U={})),U}),et(_,"Series/Pie/PiePoint.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(c,f){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(c,f)},function(c,f){function m(){this.constructor=c}U(c,f),c.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=G.setAnimation,V=X.addEvent,F=X.defined,I=X.extend,E=X.isNumber,A=X.pick,P=X.relativeLength,y=function(c){function f(){var m=c!==null&&c.apply(this,arguments)||this;return m.labelDistance=void 0,m.options=void 0,m.series=void 0,m}return $(f,c),f.prototype.getConnectorPath=function(){var m=this.labelPosition,u=this.series.options.dataLabels,v=this.connectorShapes,S=u.connectorShape;return v[S]&&(S=v[S]),S.call(this,{x:m.final.x,y:m.final.y,alignment:m.alignment},m.connectorPosition,u)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(m){var u=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(u.x,u.y,u.r+m,u.r+m,{innerR:u.r-1,start:u.start,end:u.end})},f.prototype.init=function(){var m=this;c.prototype.init.apply(this,arguments),this.name=A(this.name,"Slice");var u=function(v){m.slice(v.type==="select")};return V(this,"select",u),V(this,"unselect",u),this},f.prototype.isValid=function(){return E(this.y)&&this.y>=0},f.prototype.setVisible=function(m,u){var v=this,S=this.series,M=S.chart,x=S.options.ignoreHiddenPoint;u=A(u,x),m!==this.visible&&(this.visible=this.options.visible=m=m===void 0?!this.visible:m,S.options.data[S.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(p){v[p]&&v[p][m?"show":"hide"](m)}),this.legendItem&&M.legend.colorizeItem(this,m),m||this.state!=="hover"||this.setState(""),x&&(S.isDirty=!0),u&&M.redraw())},f.prototype.slice=function(m,u,v){var S=this.series,M=S.chart;Z(v,M),u=A(u,!0),this.sliced=this.options.sliced=m=F(m)?m:!this.sliced,S.options.data[S.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(B);return I(y.prototype,{connectorShapes:{fixedOffset:function(c,f,m){var u=f.breakAt,v=f.touchingSliceAt,S=m.softConnector?["C",c.x+(c.alignment==="left"?-5:5),c.y,2*u.x-v.x,2*u.y-v.y,u.x,u.y]:["L",u.x,u.y];return[["M",c.x,c.y],S,["L",v.x,v.y]]},straight:function(c,f){var m=f.touchingSliceAt;return[["M",c.x,c.y],["L",m.x,m.y]]},crookedLine:function(c,f,m){var u=f.touchingSliceAt,v=this.series,S=v.center[0],M=v.chart.plotWidth,x=v.chart.plotLeft,p=c.alignment,g=this.shapeArgs.r,r=P(m.crookDistance,1),a=p==="left"?S+g+(M+x-S-g)*(1-r):x+(S-g)*r,t=["L",a,c.y],i=!0;(p==="left"?a>c.x||a<u.x:a<c.x||a>u.x)&&(i=!1);var o=[["M",c.x,c.y]];return i&&o.push(t),o.push(["L",u.x,u.y]),o}}}),y}),et(_,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),et(_,"Series/Pie/PieSeries.js",[_["Series/CenteredUtilities.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Series/Pie/PiePoint.js"],_["Series/Pie/PieSeriesDefaults.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I,E){var A,P=this&&this.__extends||(A=function(p,g){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},A(p,g)},function(p,g){function r(){this.constructor=p}A(p,g),p.prototype=g===null?Object.create(g):(r.prototype=g.prototype,new r)}),y=G.getStartAndEndRadians,c=X.noop,f=E.clamp,m=E.extend,u=E.fireEvent,v=E.merge,S=E.pick,M=E.relativeLength,x=function(p){function g(){var r=p!==null&&p.apply(this,arguments)||this;return r.center=void 0,r.data=void 0,r.maxLabelDistance=void 0,r.options=void 0,r.points=void 0,r}return P(g,p),g.prototype.animate=function(r){var a=this,t=a.points,i=a.startAngleRad;r||t.forEach(function(o){var e=o.graphic,s=o.shapeArgs;e&&s&&(e.attr({r:S(o.startR,a.center&&a.center[3]/2),start:i,end:i}),e.animate({r:s.r,start:s.start,end:s.end},a.options.animation))})},g.prototype.drawEmpty=function(){var r,a,t=this.startAngleRad,i=this.endAngleRad,o=this.options;this.total===0&&this.center?(r=this.center[0],a=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:t,end:i,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},g.prototype.drawPoints=function(){var r=this.chart.renderer;this.points.forEach(function(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy()),a.graphic||(a.graphic=r[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})},g.prototype.generatePoints=function(){p.prototype.generatePoints.call(this),this.updateTotals()},g.prototype.getX=function(r,a,t){var i=this.center,o=this.radii?this.radii[t.index]||0:i[2]/2,e=Math.asin(f((r-i[1])/(o+t.labelDistance),-1,1));return i[0]+(a?-1:1)*(Math.cos(e)*(o+t.labelDistance))+(t.labelDistance>0?(a?-1:1)*this.options.dataLabels.padding:0)},g.prototype.hasData=function(){return!!this.processedXData.length},g.prototype.redrawPoints=function(){var r,a,t,i,o=this,e=o.chart,s=e.renderer,n=o.options.shadow;this.drawEmpty(),!n||o.shadowGroup||e.styledMode||(o.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(h){var b={};if(a=h.graphic,!h.isNull&&a){var k=void 0;i=h.shapeArgs,r=h.getTranslate(),e.styledMode||(k=h.shadowGroup,n&&!k&&(k=h.shadowGroup=s.g("shadow").add(o.shadowGroup)),k&&k.attr(r),t=o.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(a.setRadialReference(o.center).attr(i).attr(r),e.styledMode||a.attr(t).attr({"stroke-linejoin":"round"}).shadow(n,k),h.delayedRendering=!1):(a.setRadialReference(o.center),e.styledMode||v(!0,b,t),v(!0,b,i,r),a.animate(b)),a.attr({visibility:h.visible?"inherit":"hidden"}),a.addClass(h.getClassName(),!0)}else a&&(h.graphic=a.destroy())})},g.prototype.sortByAngle=function(r,a){r.sort(function(t,i){return t.angle!==void 0&&(i.angle-t.angle)*a})},g.prototype.translate=function(r){u(this,"translate"),this.generatePoints();var a,t,i,o,e,s,n,h,b=this,k=1e3,D=b.options,d=D.slicedOffset,C=d+(D.borderWidth||0),T=y(D.startAngle,D.endAngle),N=b.startAngleRad=T.start,z=(b.endAngleRad=T.end)-N,L=b.points,O=D.dataLabels.distance,j=D.ignoreHiddenPoint,Y=L.length,H=0;for(r||(b.center=r=b.getCenter()),n=0;n<Y;n++){t=N+H*z,!(h=L[n]).isValid()||j&&!h.visible||(H+=h.percentage/100),i=N+H*z;var W={x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2,start:Math.round(t*k)/k,end:Math.round(i*k)/k};h.shapeType="arc",h.shapeArgs=W,h.labelDistance=S(h.options.dataLabels&&h.options.dataLabels.distance,O),h.labelDistance=M(h.labelDistance,W.r),b.maxLabelDistance=Math.max(b.maxLabelDistance||0,h.labelDistance),(o=(i+t)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(o)*d),translateY:Math.round(Math.sin(o)*d)},e=Math.cos(o)*r[2]/2,s=Math.sin(o)*r[2]/2,h.tooltipPos=[r[0]+.7*e,r[1]+.7*s],h.half=o<-Math.PI/2||o>Math.PI/2?1:0,h.angle=o,a=Math.min(C,h.labelDistance/5),h.labelPosition={natural:{x:r[0]+e+Math.cos(o)*h.labelDistance,y:r[1]+s+Math.sin(o)*h.labelDistance},final:{},alignment:h.labelDistance<0?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:r[0]+e+Math.cos(o)*a,y:r[1]+s+Math.sin(o)*a},touchingSliceAt:{x:r[0]+e,y:r[1]+s}}}}u(b,"afterTranslate")},g.prototype.updateTotals=function(){var r,a,t=this.points,i=t.length,o=this.options.ignoreHiddenPoint,e=0;for(r=0;r<i;r++)!(a=t[r]).isValid()||o&&!a.visible||(e+=a.y);for(this.total=e,r=0;r<i;r++)(a=t[r]).percentage=e>0&&(a.visible||!o)?a.y/e*100:0,a.total=e},g.defaultOptions=v(V.defaultOptions,Z),g}(V);return m(x.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:U.drawRectangle,drawTracker:B.prototype.drawTracker,getCenter:G.getCenter,getSymbol:c,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:c,trackerGroups:["group","dataLabelsGroup"]}),F.registerSeriesType("pie",x),x}),et(_,"Series/Pie/PieDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=B.noop,F=X.distribute,I=U.series,E=$.arrayMax,A=$.clamp,P=$.defined,y=$.merge,c=$.pick,f=$.relativeLength;return function(m){var u=[],v={radialDistributionY:function(p){return p.top+p.distributeBox.pos},radialDistributionX:function(p,g,r,a){return p.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(p,g,r){return r[0]+(p.half?-1:1)*(g+p.labelDistance)},alignToPlotEdges:function(p,g,r,a){var t=p.getBBox().width;return g?t+a:r-t-a},alignToConnectors:function(p,g,r,a){var t,i=0;return p.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};function S(){var p,g,r,a,t,i,o,e,s,n,h,b,k=this,D=k.data,d=k.chart,C=k.options.dataLabels||{},T=C.connectorPadding,N=d.plotWidth,z=d.plotHeight,L=d.plotLeft,O=Math.round(d.chartWidth/3),j=k.center,Y=j[2]/2,H=j[1],W=[[],[]],q=[0,0,0,0],tt=k.dataLabelPositioners;k.visible&&(C.enabled||k._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),D.forEach(function(J){J.dataLabel&&(J.visible?(W[J.half].push(J),J.dataLabel._pos=null,P(C.style.width)||P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)||J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),W.forEach(function(J,nt){var lt,gt,mt,bt,yt,dt,ot=J.length,at=[];if(ot)for(k.sortByAngle(J,nt-.5),k.maxLabelDistance>0&&(lt=Math.max(0,H-Y-k.maxLabelDistance),gt=Math.min(H+Y+k.maxLabelDistance,d.plotHeight),J.forEach(function(ut){ut.labelDistance>0&&ut.dataLabel&&(ut.top=Math.max(0,H-Y-ut.labelDistance),ut.bottom=Math.min(H+Y+ut.labelDistance,d.plotHeight),yt=ut.dataLabel.getBBox().height||21,ut.distributeBox={target:ut.labelPosition.natural.y-ut.top+yt/2,size:yt,rank:ut.y},at.push(ut.distributeBox))}),F(at,dt=gt+yt-lt,dt/5)),h=0;h<ot;h++){if(p=J[h],i=p.labelPosition,a=p.dataLabel,n=p.visible===!1?"hidden":"inherit",mt=i.natural.y,s=mt,at&&P(p.distributeBox)&&(p.distributeBox.pos===void 0?n="hidden":(o=p.distributeBox.size,s=tt.radialDistributionY(p))),delete p.positionIndex,C.justify)e=tt.justify(p,Y,j);else switch(C.alignTo){case"connectors":e=tt.alignToConnectors(J,nt,N,L);break;case"plotEdges":e=tt.alignToPlotEdges(a,nt,N,L);break;default:e=tt.radialDistributionX(k,p,s,mt)}a._attr={visibility:n,align:i.alignment},b=p.options.dataLabels||{},a._pos={x:e+c(b.x,C.x)+({left:T,right:-T}[i.alignment]||0),y:s+c(b.y,C.y)-10},i.final.x=e,i.final.y=s,c(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<T&&nt===1?(bt=Math.round(t-e+T),q[3]=Math.max(bt,q[3])):e+t>N-T&&nt===0&&(bt=Math.round(e+t-N+T),q[1]=Math.max(bt,q[1])),s-o/2<0?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>z&&(q[2]=Math.max(Math.round(s+o/2-z),q[2])),a.sideOverflow=bt)}}),(E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){if(b=y(C,J.options.dataLabels),g=c(b.connectorWidth,1)){var nt=void 0;r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&J.labelDistance>0?(n=a._attr.visibility,(nt=!r)&&(J.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(k.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[nt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy())}})))}function M(){this.points.forEach(function(p){var g,r=p.dataLabel;r&&p.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete p.distributeBox},this)}function x(p){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=t,o=r.size!==null;return o||(a[0]!==null?i=Math.max(g[2]-Math.max(p[1],p[3]),t):(i=Math.max(g[2]-p[1]-p[3],t),g[0]+=(p[3]-p[1])/2),a[1]!==null?i=A(i,t,g[2]-Math.max(p[0],p[2])):(i=A(i,t,g[2]-p[0]-p[2]),g[1]+=(p[0]-p[2])/2),i<g[2]?(g[2]=i,g[3]=Math.min(r.thickness?Math.max(0,i-2*r.thickness):Math.max(0,f(r.innerSize||0,i)),i),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}m.compose=function(p){if(G.compose(I),u.indexOf(p)===-1){u.push(p);var g=p.prototype;g.dataLabelPositioners=v,g.alignDataLabel=V,g.drawDataLabels=S,g.placeDataLabels=M,g.verifyDataLabelOverflow=x}}}(Z||(Z={})),Z}),et(_,"Extensions/OverlappingDataLabels.js",[_["Core/Chart/Chart.js"],_["Core/Utilities.js"]],function(G,B){var X=B.addEvent,U=B.fireEvent,$=B.isArray,Z=B.isNumber,V=B.objectEach,F=B.pick;function I(E,A){var P,y,c=!1;return E&&(y=E.newOpacity,E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=function(){A.styledMode||E.css({pointerEvents:y?"auto":"none"})},c=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,P),U(A,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0),c}X(G,"render",function(){var E=this,A=[];(this.labelCollectors||[]).forEach(function(P){A=A.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&V(P.stacking.stacks,function(y){V(y,function(c){c.label&&A.push(c.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;if(P.visible&&(y.enabled!==!1||P._hasPointLabels)){var c=function(f){return f.forEach(function(m){m.visible&&($(m.dataLabels)?m.dataLabels:m.dataLabel?[m.dataLabel]:[]).forEach(function(u){var v=u.options;u.labelrank=F(v.labelrank,m.labelrank,m.shapeArgs&&m.shapeArgs.height),v.allowOverlap?(u.oldOpacity=u.opacity,u.newOpacity=1,I(u,E)):A.push(u)})})};c(P.nodes||[]),c(P.points)}}),this.hideOverlappingLabels(A)}),G.prototype.hideOverlappingLabels=function(E){var A,P,y,c,f,m,u,v=this,S=E.length,M=v.renderer,x=!1,p=function(r,a){return!(a.x>=r.x+r.width||a.x+a.width<=r.x||a.y>=r.y+r.height||a.y+a.height<=r.y)},g=function(r){var a,t,i,o,e,s=r.box?0:r.padding||0,n=0,h=0;if(r&&(!r.alignAttr||r.placed))return a=r.alignAttr||{x:r.attr("x"),y:r.attr("y")},t=r.parentGroup,r.width||(i=r.getBBox(),r.width=i.width,r.height=i.height,n=M.fontMetrics(null,r.element).h),o=r.width-2*s,(e={left:"0",center:"0.5",right:"1"}[r.alignValue])?h=+e*o:Z(r.x)&&Math.round(r.x)!==r.translateX&&(h=r.x-r.translateX),{x:a.x+(t.translateX||0)+s-(h||0),y:a.y+(t.translateY||0)+s-n,width:r.width-2*s,height:r.height-2*s}};for(P=0;P<S;P++)(A=E[P])&&(A.oldOpacity=A.opacity,A.newOpacity=1,A.absoluteBox=g(A));for(E.sort(function(r,a){return(a.labelrank||0)-(r.labelrank||0)}),P=0;P<S;P++)for(m=(c=E[P])&&c.absoluteBox,y=P+1;y<S;++y)u=(f=E[y])&&f.absoluteBox,m&&u&&c!==f&&c.newOpacity!==0&&f.newOpacity!==0&&c.visibility!=="hidden"&&f.visibility!=="hidden"&&p(m,u)&&((c.labelrank<f.labelrank?c:f).newOpacity=0);E.forEach(function(r){I(r,v)&&(x=!0)}),x&&U(v,"afterHideAllOverlappingLabels")}}),et(_,"Core/Responsive.js",[_["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.find,$=G.isArray,Z=G.isObject,V=G.merge,F=G.objectEach,I=G.pick,E=G.splat,A=G.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),X(f.prototype,c.prototype)),f};var c=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function S(M,x,p,g){var r;F(M,function(a,t){if(!g&&u.collectionsWithUpdate.indexOf(t)>-1&&x[t])for(a=E(a),p[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?p[t][r]=x[t][r]:(p[t][r]={},S(a[r],x[t][r],p[t][r],g+1)));else Z(a)?(p[t]=$(a)?[]:{},S(a,x[t]||{},p[t],g+1)):x[t]===void 0?p[t]=null:p[t]=x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v,S=this,M=this.options.responsive,x=this.currentResponsive,p=[];!u&&M&&M.rules&&M.rules.forEach(function(a){a._id===void 0&&(a._id=A()),S.matchResponsiveRule(a,p)},this);var g=V.apply(void 0,p.map(function(a){return U((M||{}).rules||[],function(t){return t._id===a})}).map(function(a){return a&&a.chartOptions}));g.isResponsiveOptions=!0,p=p.toString()||void 0;var r=x&&x.ruleIds;p!==r&&(x&&this.update(x.undoOptions,m,!0),p?((v=this.currentOptions(g)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:p,mergedOptions:g,undoOptions:v},this.update(g,m,!0)):this.currentResponsive=void 0)},f}()}(B||(B={})),B}),et(_,"masters/highcharts.src.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/Defaults.js"],_["Core/Animation/Fx.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Renderer/HTML/AST.js"],_["Core/FormatUtilities.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Renderer/HTML/HTMLElement.js"],_["Core/Renderer/HTML/HTMLRenderer.js"],_["Core/Axis/Axis.js"],_["Core/Axis/DateTimeAxis.js"],_["Core/Axis/LogarithmicAxis.js"],_["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],_["Core/Axis/Tick.js"],_["Core/Tooltip.js"],_["Core/Series/Point.js"],_["Core/Pointer.js"],_["Core/MSPointer.js"],_["Core/Legend/Legend.js"],_["Core/Chart/Chart.js"],_["Core/Axis/Stacking/StackingAxis.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Column/ColumnSeries.js"],_["Series/Column/ColumnDataLabel.js"],_["Series/Pie/PieSeries.js"],_["Series/Pie/PieDataLabel.js"],_["Core/Series/DataLabel.js"],_["Core/Responsive.js"],_["Core/Color/Color.js"],_["Core/Time.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P,y,c,f,m,u,v,S,M,x,p,g,r,a,t,i,o,e,s,n,h,b,k,D){var d=G;return d.animate=$.animate,d.animObject=$.animObject,d.getDeferredAnimation=$.getDeferredAnimation,d.setAnimation=$.setAnimation,d.stop=$.stop,d.timers=U.timers,d.AST=Z,d.Axis=y,d.Chart=g,d.chart=g.chart,d.Fx=U,d.Legend=p,d.PlotLineOrBand=m,d.Point=S,d.Pointer=x.isRequired()?x:M,d.Series=t,d.StackItem=a,d.SVGElement=I,d.SVGRenderer=E,d.Tick=u,d.Time=D,d.Tooltip=v,d.Color=k,d.color=k.parse,P.compose(E),A.compose(I),d.defaultOptions=X.defaultOptions,d.getOptions=X.getOptions,d.time=X.defaultTime,d.setOptions=X.setOptions,d.dateFormat=V.dateFormat,d.format=V.format,d.numberFormat=V.numberFormat,d.addEvent=B.addEvent,d.arrayMax=B.arrayMax,d.arrayMin=B.arrayMin,d.attr=B.attr,d.clearTimeout=B.clearTimeout,d.correctFloat=B.correctFloat,d.createElement=B.createElement,d.css=B.css,d.defined=B.defined,d.destroyObjectProperties=B.destroyObjectProperties,d.discardElement=B.discardElement,d.distribute=F.distribute,d.erase=B.erase,d.error=B.error,d.extend=B.extend,d.extendClass=B.extendClass,d.find=B.find,d.fireEvent=B.fireEvent,d.getMagnitude=B.getMagnitude,d.getStyle=B.getStyle,d.inArray=B.inArray,d.isArray=B.isArray,d.isClass=B.isClass,d.isDOMElement=B.isDOMElement,d.isFunction=B.isFunction,d.isNumber=B.isNumber,d.isObject=B.isObject,d.isString=B.isString,d.keys=B.keys,d.merge=B.merge,d.normalizeTickInterval=B.normalizeTickInterval,d.objectEach=B.objectEach,d.offset=B.offset,d.pad=B.pad,d.pick=B.pick,d.pInt=B.pInt,d.relativeLength=B.relativeLength,d.removeEvent=B.removeEvent,d.seriesType=i.seriesType,d.splat=B.splat,d.stableSort=B.stableSort,d.syncTimeout=B.syncTimeout,d.timeUnits=B.timeUnits,d.uniqueKey=B.uniqueKey,d.useSerialIds=B.useSerialIds,d.wrap=B.wrap,e.compose(o),h.compose(t),c.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),d}),et(_,"Core/Axis/BrokenAxis.js",[_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.addEvent,$=B.find,Z=B.fireEvent,V=B.isArray,F=B.isNumber,I=B.pick;return function(E){var A=[];function P(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function y(){var x=this;x.brokenAxis&&x.brokenAxis.hasBreaks&&(x.options.ordinal=!1)}function c(){var x=this,p=x.brokenAxis;if(p&&p.hasBreaks){for(var g=x.tickPositions,r=x.tickPositions.info,a=[],t=0;t<g.length;t++)p.isInAnyBreak(g[t])||a.push(g[t]);x.tickPositions=a,x.tickPositions.info=r}}function f(){var x=this;x.brokenAxis||(x.brokenAxis=new M(x))}function m(){var x=this,p=x.isDirty,g=x.options.connectNulls,r=x.points,a=x.xAxis,t=x.yAxis;if(p)for(var i=r.length;i--;){var o=r[i],e=!(o.y===null&&g===!1)&&(a&&a.brokenAxis&&a.brokenAxis.isInAnyBreak(o.x,!0)||t&&t.brokenAxis&&t.brokenAxis.isInAnyBreak(o.y,!0));o.visible=!e&&o.options.visible!==!1}}function u(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,I(this.pointArrayMap,["y"]))}function v(x,p){var g,r,a,t,i=this,o=i.points;if(x&&x.brokenAxis&&x.brokenAxis.hasBreaks){var e=x.brokenAxis;p.forEach(function(s){g=e&&e.breakArray||[],r=x.isXAxis?x.min:I(i.options.threshold,x.min),o.forEach(function(n){t=I(n["stack"+s.toUpperCase()],n[s]),g.forEach(function(h){F(r)&&F(t)&&(a=!1,r<h.from&&t>h.to||r>h.from&&t<h.from?a="pointBreak":(r<h.from&&t>h.from&&t<h.to||r>h.from&&t>h.to&&t<h.from)&&(a="pointInBreak"),a&&Z(x,a,{point:n,brk:h}))})})})}}function S(){var x=this.currentDataGrouping,p=x&&x.gapSize,g=this.points.slice(),r=this.yAxis,a=this.options.gapSize,t=g.length-1;if(a&&t>0){this.options.gapUnit!=="value"&&(a*=this.basePointRange),p&&p>a&&p>=this.basePointRange&&(a=p);for(var i=void 0,o=void 0;t--;)if(o&&o.visible!==!1||(o=g[t+1]),i=g[t],o.visible!==!1&&i.visible!==!1){if(o.x-i.x>a){var e=(i.x+o.x)/2;g.splice(t+1,0,{isNull:!0,x:e}),r.stacking&&this.options.stacking&&((r.stacking.stacks[this.stackKey][e]=new G(r,r.options.stackLabels,!1,e,this.stack)).total=0)}o=i}}return this.getGraphPath(g)}E.compose=function(x,p){if(A.indexOf(x)===-1&&(A.push(x),x.keepProps.push("brokenAxis"),U(x,"init",f),U(x,"afterInit",P),U(x,"afterSetTickPositions",c),U(x,"afterSetOptions",y)),A.indexOf(p)===-1){A.push(p);var g=p.prototype;g.drawBreaks=v,g.gappedPath=S,U(p,"afterGeneratePoints",m),U(p,"afterRender",u)}return x};var M=function(){function x(p){this.hasBreaks=!1,this.axis=p}return x.isInBreak=function(p,g){var r=p.repeat||1/0,a=p.from,t=p.to-p.from,i=g>=a?(g-a)%r:r-(a-g)%r;return p.inclusive?i<=t:i<t&&i!==0},x.lin2Val=function(p){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!F(p))return p;var a,t,i=p;for(t=0;t<r.length&&!((a=r[t]).from>=i);t++)(a.to<i||x.isInBreak(a,i))&&(i+=a.len);return i},x.val2Lin=function(p){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!F(p))return p;var a,t,i=p;for(t=0;t<r.length;t++)if((a=r[t]).to<=p)i-=a.len;else{if(a.from>=p)break;if(x.isInBreak(a,p)){i-=p-a.from;break}}return i},x.prototype.findBreakAt=function(p,g){return $(g,function(r){return r.from<p&&p<r.to})},x.prototype.isInAnyBreak=function(p,g){var r,a,t,i=this.axis,o=i.options.breaks||[],e=o.length;if(e&&F(p)){for(;e--;)x.isInBreak(o[e],p)&&(r=!0,a||(a=I(o[e].showPoints,!i.isXAxis)));t=r&&g?r&&!a:r}return t},x.prototype.setBreaks=function(p,g){var r=this,a=r.axis,t=V(p)&&!!p.length;a.isDirty=r.hasBreaks!==t,r.hasBreaks=t,a.options.breaks=a.userOptions.breaks=p,a.forceRedraw=!0,a.series.forEach(function(i){i.isDirty=!0}),t||a.val2lin!==x.val2Lin||(delete a.val2lin,delete a.lin2val),t&&(a.userOptions.ordinal=!1,a.lin2val=x.lin2Val,a.val2lin=x.val2Lin,a.setExtremes=function(i,o,e,s,n){if(r.hasBreaks){for(var h=this.options.breaks||[],b=void 0;b=r.findBreakAt(i,h);)i=b.to;for(;b=r.findBreakAt(o,h);)o=b.from;o<i&&(o=i)}a.constructor.prototype.setExtremes.call(this,i,o,e,s,n)},a.setAxisTranslation=function(){if(a.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var i,o,e,s,n=a.options.breaks||[],h=[],b=[],k=I(a.pointRangePadding,0),D=0,d=a.userMin||a.min,C=a.userMax||a.max;n.forEach(function(T){o=T.repeat||1/0,F(d)&&F(C)&&(x.isInBreak(T,d)&&(d+=T.to%o-d%o),x.isInBreak(T,C)&&(C-=C%o-T.from%o))}),n.forEach(function(T){if(e=T.from,o=T.repeat||1/0,F(d)&&F(C)){for(;e-o>d;)e-=o;for(;e<d;)e+=o;for(s=e;s<C;s+=o)h.push({value:s,move:"in"}),h.push({value:s+T.to-T.from,move:"out",size:T.breakSize})}}),h.sort(function(T,N){return T.value===N.value?(T.move==="in"?0:1)-(N.move==="in"?0:1):T.value-N.value}),i=0,e=d,h.forEach(function(T){(i+=T.move==="in"?1:-1)===1&&T.move==="in"&&(e=T.value),i===0&&F(e)&&(b.push({from:e,to:T.value,len:T.value-e-(T.size||0)}),D+=T.value-e-(T.size||0))}),r.breakArray=b,F(d)&&F(C)&&F(a.min)&&(r.unitLength=C-d-D+k,Z(a,"afterBreaks"),a.staticScale?a.transA=a.staticScale:r.unitLength&&(a.transA*=(C-a.min+k)/r.unitLength),k&&(a.minPixelPadding=a.transA*(a.minPointOffset||0)),a.min=d,a.max=C)}}),I(g,!0)&&a.chart.redraw()},x}();E.Additions=M}(X||(X={})),X}),et(_,"masters/modules/broken-axis.src.js",[_["Core/Globals.js"],_["Core/Axis/BrokenAxis.js"]],function(G,B){var X=G;B.compose(X.Axis,X.Series)}),et(_,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),et(_,"Extensions/DataGrouping/ApproximationDefaults.js",[_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X=B.arrayMax,U=B.arrayMin,$=B.correctFloat,Z=B.extend,V=B.isNumber;function F(A){var P=A.length,y=I(A);return V(y)&&P&&(y=$(y/P)),y}function I(A){var P,y=A.length;if(!y&&A.hasNulls)P=null;else if(y)for(P=0;y--;)P+=A[y];return P}var E={average:F,averages:function(){var A=[];return[].forEach.call(arguments,function(P){A.push(F(P))}),A[0]===void 0?void 0:A},close:function(A){return A.length?A[A.length-1]:A.hasNulls?null:void 0},high:function(A){return A.length?X(A):A.hasNulls?null:void 0},hlc:function(A,P,y){if(A=G.high(A),P=G.low(P),y=G.close(y),V(A)||V(P)||V(y))return[A,P,y]},low:function(A){return A.length?U(A):A.hasNulls?null:void 0},ohlc:function(A,P,y,c){if(A=G.open(A),P=G.high(P),y=G.low(y),c=G.close(c),V(A)||V(P)||V(y)||V(c))return[A,P,y,c]},open:function(A){return A.length?A[0]:A.hasNulls?null:void 0},range:function(A,P){return A=G.low(A),P=G.high(P),V(A)||V(P)?[A,P]:A===null&&P===null?null:void 0},sum:I};return Z(G,E),E}),et(_,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),et(_,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.addEvent,$=B.extend,Z=B.merge,V=B.pick,F=[];function I(y){var c=this,f=c.series;f.forEach(function(m){m.groupPixelWidth=void 0}),f.forEach(function(m){m.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth(),m.groupPixelWidth&&(m.hasProcessed=!0),m.applyGrouping(!!y.hasExtremesChanged)})}function E(){for(var y,c,f=this.series,m=f.length,u=0,v=!1;m--;)(c=f[m].options.dataGrouping)&&(u=Math.max(u,V(c.groupPixelWidth,G.common.groupPixelWidth)),y=(f[m].processedXData||f[m].data).length,(f[m].groupPixelWidth||y>this.chart.plotSizeX/u||y&&c.forced)&&(v=!0));return v?u:0}function A(){this.series.forEach(function(y){y.hasProcessed=!1})}function P(y,c){var f;if(c=V(c,!0),y||(y={forced:!1,units:null}),this instanceof X)for(f=this.series.length;f--;)this.series[f].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(m){m.dataGrouping=typeof y=="boolean"?y:Z(y,m.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),c&&this.chart.redraw()}return{compose:function(y){X=y,F.indexOf(y)===-1&&(F.push(y),U(y,"afterSetScale",A),U(y,"postProcessData",I),$(y.prototype,{applyGrouping:I,getGroupPixelWidth:E,setDataGrouping:P}))}}}),et(_,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Core/Axis/DateTimeAxis.js"],_["Core/Defaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=$.series.prototype,F=Z.addEvent,I=Z.defined,E=Z.error,A=Z.extend,P=Z.isNumber,y=Z.merge,c=Z.pick,f=V.generatePoints,m=[];function u(g){var r,a,t=this,i=t.chart,o=t.options.dataGrouping,e=t.allowDG!==!1&&o&&c(o.enabled,i.options.isStock),s=t.visible||!i.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,h=!1;e&&!t.requireSorting&&(t.requireSorting=h=!0);var b=function(lt,gt){return!(lt.isCartesian&&!lt.isDirty&&!lt.xAxis.isDirty&&!lt.yAxis.isDirty&&!gt)}(t,g)===!1||!e;if(h&&(t.requireSorting=!1),!b){t.destroyGroupedData();var k=o.groupAll?t.xData:t.processedXData,D=o.groupAll?t.yData:t.processedYData,d=i.plotSizeX,C=t.xAxis,T=C.options.ordinal,N=t.groupPixelWidth,z=void 0,L=void 0;if(N&&k&&k.length&&d){L=!0,t.isDirty=!0,t.points=null;var O=C.getExtremes(),j=O.min,Y=O.max,H=N*(Y-j)/d*(T&&C.ordinal&&C.ordinal.getGroupIntervalFactor(j,Y,t)||1),W=C.getTimeTicks(X.Additions.prototype.normalizeTimeTickInterval(H,o.units||B.units),Math.min(j,k[0]),Math.max(Y,k[k.length-1]),C.options.startOfWeek,k,t.closestPointRange),q=V.groupData.apply(t,[k,D,W,o.approximation]),tt=q.groupedXData,J=q.groupedYData,nt=0;for(o&&o.smoothed&&tt.length&&(o.firstAnchor="firstPoint",o.anchor="middle",o.lastAnchor="lastPoint",E(32,!1,i,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),function(lt,gt,mt){var bt,yt=lt.options.dataGrouping,dt=lt.currentDataGrouping&<.currentDataGrouping.gapSize;if(yt&<.xData&&dt&<.groupMap){var ot=gt.length-1,at=yt.anchor,ut=c(yt.firstAnchor,at),vt=c(yt.lastAnchor,at);if(at&&at!=="start"){var Ct=dt*{middle:.5,end:1}[at];for(bt=gt.length-1;bt--&&bt>0;)gt[bt]+=Ct}if(ut&&ut!=="start"&<.xData[0]>=gt[0]){var xt=lt.groupMap[0].start,St=lt.groupMap[0].length,wt=void 0;P(xt)&&P(St)&&(wt=xt+(St-1)),gt[0]={middle:gt[0]+.5*dt,end:gt[0]+dt,firstPoint:lt.xData[0],lastPoint:wt&<.xData[wt]}[ut]}if(vt&&vt!=="start"&&dt&>[ot]>=mt-dt){var Mt=lt.groupMap[lt.groupMap.length-1].start;gt[ot]={middle:gt[ot]+.5*dt,end:gt[ot]+dt,firstPoint:Mt&<.xData[Mt],lastPoint:lt.xData[lt.xData.length-1]}[vt]}}}(t,tt,Y),z=1;z<W.length;z++)W.info.segmentStarts&&W.info.segmentStarts.indexOf(z)!==-1||(nt=Math.max(W[z]-W[z-1],nt));(r=W.info).gapSize=nt,t.closestPointRange=W.info.totalRange,t.groupMap=q.groupMap,s&&function(lt,gt){I(gt[0])&&P(lt.min)&&P(lt.dataMin)&>[0]<lt.min&&((!I(lt.options.min)&<.min<=lt.dataMin||lt.min===lt.dataMin)&&(lt.min=Math.min(gt[0],lt.min)),lt.dataMin=Math.min(gt[0],lt.dataMin)),I(gt[gt.length-1])&&P(lt.max)&&P(lt.dataMax)&>[gt.length-1]>lt.max&&((!I(lt.options.max)&&P(lt.dataMax)&<.max>=lt.dataMax||lt.max===lt.dataMax)&&(lt.max=Math.max(gt[gt.length-1],lt.max)),lt.dataMax=Math.max(gt[gt.length-1],lt.dataMax))}(C,tt),o.groupAll&&(t.allGroupedData=J,tt=(a=t.cropData(tt,J,C.min,C.max,1)).xData,J=a.yData,t.cropStart=a.start),t.processedXData=tt,t.processedYData=J}else t.groupMap=null;t.hasGroupedData=L,t.currentDataGrouping=r,t.preventGraphAnimation=(n&&n.totalRange)!==(r&&r.totalRange)}}function v(){this.groupedData&&(this.groupedData.forEach(function(g,r){g&&(this.groupedData[r]=g.destroy?g.destroy():null)},this),this.groupedData.length=0)}function S(){f.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function M(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function x(g,r,a,t){var i,o,e,s=this,n=s.data,h=s.options&&s.options.data,b=[],k=[],D=[],d=g.length,C=!!r,T=[],N=s.pointArrayMap,z=N&&N.length,L=["x"].concat(N||["y"]),O=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j=0,Y=0,H=typeof t=="function"?t:t&&G[t]?G[t]:G[s.getDGApproximation&&s.getDGApproximation()||"average"];if(z)for(var W=N.length;W--;)T.push([]);else T.push([]);for(var q=z||1,tt=0;tt<=d;tt++)if(!(g[tt]<a[0])){for(;a[j+1]!==void 0&&g[tt]>=a[j+1]||tt===d;){i=a[j],s.dataGroupInfo={start:O?Y:s.cropStart+Y,length:T[0].length},e=H.apply(s,T),s.pointClass&&!I(s.dataGroupInfo.options)&&(s.dataGroupInfo.options=y(s.pointClass.prototype.optionsToObject.call({series:s},s.options.data[s.cropStart+Y])),L.forEach(function(mt){delete s.dataGroupInfo.options[mt]})),e!==void 0&&(b.push(i),k.push(e),D.push(s.dataGroupInfo)),Y=tt;for(var J=0;J<q;J++)T[J].length=0,T[J].hasNulls=!1;if(j+=1,tt===d)break}if(tt===d)break;if(N){var nt=s.options.dataGrouping&&s.options.dataGrouping.groupAll?tt:s.cropStart+tt,lt=n&&n[nt]||s.pointClass.prototype.applyOptions.apply({series:s},[h[nt]]),gt=void 0;for(J=0;J<z;J++)gt=lt[N[J]],P(gt)?T[J].push(gt):gt===null&&(T[J].hasNulls=!0)}else o=C?r[tt]:null,P(o)?T[0].push(o):o===null&&(T[0].hasNulls=!0)}return{groupedXData:b,groupedYData:k,groupMap:D}}function p(g){var r=g.options,a=this.type,t=this.chart.options.plotOptions,i=this.useCommonDataGrouping&&B.common,o=B.seriesSpecific,e=U.defaultOptions.plotOptions[a].dataGrouping;if(t&&(o[a]||i)){var s=this.chart.rangeSelector;e||(e=y(B.common,o[a])),r.dataGrouping=y(i,e,t.series&&t.series.dataGrouping,t[a].dataGrouping,this.userOptions.dataGrouping,!r.isInternal&&s&&P(s.selected)&&s.buttonOptions[s.selected].dataGrouping)}}return{compose:function(g){var r=g.prototype.pointClass;m.indexOf(r)===-1&&(m.push(r),F(r,"update",function(){if(this.dataGroup)return E(24,!1,this.series.chart),!1})),m.indexOf(g)===-1&&(m.push(g),F(g,"afterSetOptions",p),F(g,"destroy",v),A(g.prototype,{applyGrouping:u,destroyGroupedData:v,generatePoints:S,getDGApproximation:M,groupData:x}))},groupData:x}}),et(_,"Extensions/DataGrouping/DataGrouping.js",[_["Extensions/DataGrouping/DataGroupingAxisComposition.js"],_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=U.format,V=$.addEvent,F=$.extend,I=$.isNumber,E=[];function A(P){var y,c,f,m,u,v=this.chart,S=v.time,M=P.labelConfig,x=M.series,p=x.options,g=x.tooltipOptions,r=p.dataGrouping,a=x.xAxis,t=g.xDateFormat,i=g[P.isFooter?"footerFormat":"headerFormat"];a&&a.options.type==="datetime"&&r&&I(M.key)&&(c=x.currentDataGrouping,f=r.dateTimeLabelFormats||B.common.dateTimeLabelFormats,c?(m=f[c.unitName],c.count===1?t=m[0]:(t=m[1],y=m[2])):!t&&f&&a.dateTime&&(t=a.dateTime.getXDateFormat(M.x,g.dateTimeLabelFormats)),u=S.dateFormat(t,M.key),y&&(u+=S.dateFormat(y,M.key+c.totalRange-1)),x.chart.styledMode&&(i=this.styledModeFormat(i)),P.text=Z(i,{point:F(M.point,{key:u}),series:x},v),P.preventDefault())}return{compose:function(P,y,c){G.compose(P),X.compose(y),E.indexOf(c)===-1&&(E.push(c),V(c,"headerFormatter",A))},groupData:X.groupData}}),et(_,"masters/modules/datagrouping.src.js",[_["Core/Globals.js"],_["Extensions/DataGrouping/ApproximationDefaults.js"],_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Extensions/DataGrouping/DataGrouping.js"]],function(G,B,X,U){var $=G;$.dataGrouping={approximationDefaults:B,approximations:X},U.compose($.Axis,$.Series,$.Tooltip)}),et(_,"Series/DataModifyComposition.js",[_["Core/Axis/Axis.js"],_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=B.prototype.tooltipFormatter,V=U.addEvent,F=U.arrayMax,I=U.arrayMin,E=U.correctFloat,A=U.defined,P=U.isArray,y=U.isNumber,c=U.isString,f=U.pick;return function(m){var u=[];function v(o,e,s){this.isXAxis||(this.series.forEach(function(n){o==="compare"&&typeof e!="boolean"?n.setCompare(e,!1):o!=="cumulative"||c(e)||n.setCumulative(e,!1)}),f(s,!0)&&this.chart.redraw())}function S(o){var e=this,s=e.series.chart.numberFormatter,n=function(h){o=o.replace("{point."+h+"}",(e[h]>0&&h==="change"?"+":"")+s(e[h],f(e.series.tooltipOptions.changeDecimals,2)))};return A(e.change)&&n("change"),A(e.cumulativeSum)&&n("cumulativeSum"),Z.apply(this,[o])}function M(){var o,e=this.options.compare;(e==="percent"||e==="value"||this.options.cumulative)&&(o=new i(this),e==="percent"||e==="value"?o.initCompare(e):o.initCumulative()),this.dataModify=o}function x(o){var e=o.dataExtremes,s=e.activeYData;if(this.dataModify&&e){var n=void 0;this.options.compare?n=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&P(s)&&s.length>=2&&(n=i.getCumulativeExtremes(s)),n&&(e.dataMin=I(n),e.dataMax=F(n))}}function p(o,e){this.options.compare=this.userOptions.compare=o,this.update({},f(e,!0)),!this.dataModify||o!=="value"&&o!=="percent"?this.points.forEach(function(s){delete s.change}):this.dataModify.initCompare(o)}function g(){var o=this;if(o.xAxis&&o.processedYData&&o.dataModify){var e=o.processedXData,s=o.processedYData,n=s.length,h=o.options.compareStart===!0?0:1,b=-1,k=void 0;for(o.pointArrayMap&&(b=o.pointArrayMap.indexOf(o.options.pointValKey||o.pointValKey||"y")),k=0;k<n-h;k++){var D=s[k]&&b>-1?s[k][b]:s[k];if(y(D)&&D!==0&&e[k+h]>=(o.xAxis.min||0)){o.dataModify.compareValue=D;break}}}}function r(o,e){this.setModifier("compare",o,e)}function a(o,e){o=f(o,!1),this.options.cumulative=this.userOptions.cumulative=o,this.update({},f(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(s){delete s.cumulativeSum})}function t(o,e){this.setModifier("cumulative",o,e)}m.compose=function(o,e,s){if(u.indexOf(o)===-1){u.push(o);var n=o.prototype;n.setCompare=p,n.setCumulative=a,V(o,"afterInit",M),V(o,"afterGetExtremes",x),V(o,"afterProcessData",g)}if(u.indexOf(e)===-1){u.push(e);var h=e.prototype;h.setCompare=r,h.setModifier=v,h.setCumulative=t}return u.indexOf(s)===-1&&(u.push(s),s.prototype.tooltipFormatter=S),o};var i=function(){function o(e){this.series=e}return o.prototype.modifyValue=function(){return 0},o.getCumulativeExtremes=function(e){var s=1/0,n=-1/0;return e.reduce(function(h,b){var k=h+b;return s=Math.min(s,k,h),n=Math.max(n,k,h),k}),[s,n]},o.prototype.initCompare=function(e){this.modifyValue=function(s,n){s===null&&(s=0);var h=this.compareValue;if(s!==void 0&&h!==void 0){if(e==="value"?s-=h:s=s/h*100-(this.series.options.compareBase===100?0:100),n!==void 0){var b=this.series.points[n];b&&(b.change=s)}return s}return 0}},o.prototype.initCumulative=function(){this.modifyValue=function(e,s){if(e===null&&(e=0),e!==void 0&&s!==void 0){var n=s>0?this.series.points[s-1]:null;n&&n.cumulativeSum&&(e=E(n.cumulativeSum+e));var h=this.series.points[s];return h&&(h.cumulativeSum=e),e}return 0}},o}();m.Additions=i}($||($={})),$}),et(_,"Core/Axis/NavigatorAxisComposition.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.isTouchDevice,U=B.addEvent,$=B.correctFloat,Z=B.defined,V=B.isNumber,F=B.pick,I=[];function E(){var y=this;y.navigatorAxis||(y.navigatorAxis=new P(y))}function A(y){var c=this,f=c.chart.options,m=f.navigator,u=c.navigatorAxis,v=f.chart.zooming.pinchType,S=f.rangeSelector,M=f.chart.zooming.type;if(c.isXAxis&&(m&&m.enabled||S&&S.enabled)){if(M==="y")y.zoomed=!1;else if((!X&&M==="xy"||X&&v==="xy")&&c.options.range){var x=u.previousZoom;Z(y.newMin)?u.previousZoom=[c.min,c.max]:x&&(y.newMin=x[0],y.newMax=x[1],u.previousZoom=void 0)}}y.zoomed!==void 0&&y.preventDefault()}var P=function(){function y(c){this.axis=c}return y.compose=function(c){I.indexOf(c)===-1&&(I.push(c),c.keepProps.push("navigatorAxis"),U(c,"init",E),U(c,"zoom",A))},y.prototype.destroy=function(){this.axis=void 0},y.prototype.toFixedRange=function(c,f,m,u){var v=this.axis,S=v.chart,M=F(m,v.translate(c,!0,!v.horiz)),x=F(u,v.translate(f,!0,!v.horiz)),p=S&&S.fixedRange,g=(v.pointRange||0)/2,r=p&&(x-M)/p;return Z(m)||(M=$(M+g)),Z(u)||(x=$(x-g)),r>.7&&r<1.3&&(u?M=x-p:x=M+p),V(M)&&V(x)||(M=x=void 0),{min:M,max:x}},y}();return P}),et(_,"Stock/Navigator/NavigatorDefaults.js",[_["Core/Color/Color.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B){var X=G.parse,U=B.seriesTypes;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:X("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:U.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),et(_,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(G,B,X,U,$){$===void 0&&($={});var Z=$.width?$.width/2:X,V=Math.round(Z/3)+.5;return[["M",-Z-1,.5],["L",Z,.5],["L",Z,(U=$.height||U)+.5],["L",-Z-1,U+.5],["L",-Z-1,.5],["M",-V,4],["L",-V,U-3],["M",V-1,4],["L",V-1,U-3]]}}}),et(_,"Stock/Navigator/NavigatorComposition.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/NavigatorAxisComposition.js"],_["Stock/Navigator/NavigatorDefaults.js"],_["Stock/Navigator/NavigatorSymbols.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var F,I=G.defaultOptions,E=G.setOptions,A=B.isTouchDevice,P=Z.getRendererType,y=V.addEvent,c=V.extend,f=V.merge,m=V.pick,u=[];function v(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function S(){var t,i,o,e,s=this.legend,n=this.navigator;n&&(i=s&&s.options,o=n.xAxis,e=n.yAxis,t=n.scrollbarHeight,this.inverted?(n.left=n.opposite?this.chartWidth-t-n.height:this.spacing[3]+t,n.top=this.plotTop+t):(n.left=m(o.left,this.plotLeft+t),n.top=n.navigatorOptions.top||this.chartHeight-n.height-t-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&i.verticalAlign==="bottom"&&i.layout!=="proximate"&&i.enabled&&!i.floating?s.legendHeight+m(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&e&&(this.inverted?o.options.left=e.options.left=n.left:o.options.top=e.options.top=n.top,o.setAxisSize(),e.setAxisSize()))}function M(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new F(this),m(t.redraw,!0)&&this.redraw(t.animation))}function x(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new F(this))}function p(){var t=this.options,i=t.navigator,o=t.rangeSelector;if((i&&i.enabled||o&&o.enabled)&&(!A&&t.chart.zooming.type==="x"||A&&t.chart.zooming.pinchType==="x"))return!1}function g(t){var i=t.navigator;if(i&&t.xAxis[0]){var o=t.xAxis[0].getExtremes();i.render(o.min,o.max)}}function r(t){var i=t.options.navigator||{},o=t.options.scrollbar||{};this.navigator||this.scroller||!i.enabled&&!o.enabled||(f(!0,this.options.navigator,i),f(!0,this.options.scrollbar,o),delete t.options.navigator,delete t.options.scrollbar)}function a(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,i,o,e){X.compose(t),F=o,u.indexOf(i)===-1&&(u.push(i),i.prototype.callbacks.push(g),y(i,"afterAddSeries",v),y(i,"afterSetChartSize",S),y(i,"afterUpdate",M),y(i,"beforeRender",x),y(i,"beforeShowResetZoom",p),y(i,"update",r)),u.indexOf(e)===-1&&(u.push(e),y(e,"afterUpdate",a)),u.indexOf(P)===-1&&(u.push(P),c(P().prototype.symbols,$)),u.indexOf(E)===-1&&(u.push(E),c(I,{navigator:U}))}}}),et(_,"Core/Axis/ScrollbarAxis.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,X=G.defined,U=G.pick;return function(){function $(){}return $.compose=function(Z,V){if($.composed.indexOf(Z)!==-1)return Z;$.composed.push(Z);var F=function(I){var E=U(I.options&&I.options.min,I.min),A=U(I.options&&I.options.max,I.max);return{axisMin:E,axisMax:A,scrollMin:X(I.dataMin)?Math.min(E,I.min,I.dataMin,U(I.threshold,1/0)):E,scrollMax:X(I.dataMax)?Math.max(A,I.max,I.dataMax,U(I.threshold,-1/0)):A}};return B(Z,"afterInit",function(){var I=this;I.options&&I.options.scrollbar&&I.options.scrollbar.enabled&&(I.options.scrollbar.vertical=!I.horiz,I.options.startOnTick=I.options.endOnTick=!1,I.scrollbar=new V(I.chart.renderer,I.options.scrollbar,I.chart),B(I.scrollbar,"changed",function(E){var A,P,y=F(I),c=y.axisMin,f=y.axisMax,m=y.scrollMin,u=y.scrollMax-m;X(c)&&X(f)&&(I.horiz&&!I.reversed||!I.horiz&&I.reversed?(A=m+u*this.to,P=m+u*this.from):(A=m+u*(1-this.from),P=m+u*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)?I.setExtremes(P,A,!0,E.DOMType!=="mousemove"&&E.DOMType!=="touchmove",E):this.setRange(this.from,this.to))}))}),B(Z,"afterRender",function(){var I,E,A,P=this,y=F(P),c=y.scrollMin,f=y.scrollMax,m=P.scrollbar,u=P.axisTitleMargin+(P.titleOffset||0),v=P.chart.scrollbarsOffsets,S=P.options.margin||0;if(m){if(P.horiz)P.opposite||(v[1]+=u),m.position(P.left,P.top+P.height+2+v[1]-(P.opposite?S:0),P.width,P.height),P.opposite||(v[1]+=S),I=1;else{P.opposite&&(v[0]+=u);var M;M=m.options.opposite?P.left+P.width+2+v[0]-(P.opposite?0:S):P.opposite?0:S,m.position(M,P.top,P.width,P.height),P.opposite&&(v[0]+=S),I=0}v[I]+=m.size+m.options.margin,isNaN(c)||isNaN(f)||!X(P.min)||!X(P.max)||P.min===P.max?m.setRange(0,1):(E=(P.min-c)/(f-c),A=(P.max-c)/(f-c),P.horiz&&!P.reversed||!P.horiz&&P.reversed?m.setRange(E,A):m.setRange(1-A,1-E))}}),B(Z,"afterGetOffset",function(){var I=this,E=I.scrollbar&&!I.scrollbar.options.opposite,A=I.horiz?2:E?3:1,P=I.scrollbar;P&&(I.chart.scrollbarsOffsets=[0,0],I.chart.axisOffset[A]+=P.size+P.options.margin)}),Z},$.composed=[],$}()}),et(_,"Stock/Scrollbar/ScrollbarDefaults.js",[_["Core/Globals.js"]],function(G){return{height:G.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}),et(_,"Stock/Scrollbar/Scrollbar.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/ScrollbarAxis.js"],_["Stock/Scrollbar/ScrollbarDefaults.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.defaultOptions,V=$.addEvent,F=$.correctFloat,I=$.defined,E=$.destroyObjectProperties,A=$.fireEvent,P=$.merge,y=$.pick,c=$.removeEvent,f=function(){function m(u,v,S){this._events=[],this.chart=void 0,this.chartX=0,this.chartY=0,this.from=0,this.group=void 0,this.options=void 0,this.renderer=void 0,this.scrollbar=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.x=0,this.y=0,this.init(u,v,S)}return m.compose=function(u){X.compose(u,m)},m.swapXY=function(u,v){return v&&u.forEach(function(S){for(var M,x=S.length,p=0;p<x;p+=2)typeof(M=S[p+1])=="number"&&(S[p+1]=S[p+2],S[p+2]=M)}),u},m.prototype.addEvents=function(){var u=this.options.inverted?[1,0]:[0,1],v=this.scrollbarButtons,S=this.scrollbarGroup.element,M=this.track.element,x=this.mouseDownHandler.bind(this),p=this.mouseMoveHandler.bind(this),g=this.mouseUpHandler.bind(this),r=[[v[u[0]].element,"click",this.buttonToMinClick.bind(this)],[v[u[1]].element,"click",this.buttonToMaxClick.bind(this)],[M,"click",this.trackClick.bind(this)],[S,"mousedown",x],[S.ownerDocument,"mousemove",p],[S.ownerDocument,"mouseup",g]];B.hasTouch&&r.push([S,"touchstart",x],[S.ownerDocument,"touchmove",p],[S.ownerDocument,"touchend",g]),r.forEach(function(a){V.apply(null,a)}),this._events=r},m.prototype.buttonToMaxClick=function(u){var v=this,S=(v.to-v.from)*y(v.options.step,.2);v.updatePosition(v.from+S,v.to+S),A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.buttonToMinClick=function(u){var v=this,S=F(v.to-v.from)*y(v.options.step,.2);v.updatePosition(F(v.from-S),F(v.to-S)),A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.cursorToScrollbarPosition=function(u){var v=this,S=v.options,M=S.minWidth>v.calculatedWidth?S.minWidth:0;return{chartX:(u.chartX-v.x-v.xOffset)/(v.barWidth-M),chartY:(u.chartY-v.y-v.yOffset)/(v.barWidth-M)}},m.prototype.destroy=function(){var u=this,v=u.chart.scroller;u.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(S){u[S]&&u[S].destroy&&(u[S]=u[S].destroy())}),v&&u===v.scrollbar&&(v.scrollbar=null,E(v.scrollbarButtons))},m.prototype.drawScrollbarButton=function(u){var v,S=this,M=S.renderer,x=S.scrollbarButtons,p=S.options,g=S.size,r=M.g().add(S.group);x.push(r),v=M.rect().addClass("highcharts-scrollbar-button").add(r),S.chart.styledMode||v.attr({stroke:p.buttonBorderColor,"stroke-width":p.buttonBorderWidth,fill:p.buttonBackgroundColor}),v.attr(v.crisp({x:-.5,y:-.5,width:g+1,height:g+1,r:p.buttonBorderRadius},v.strokeWidth())),v=M.path(m.swapXY([["M",g/2+(u?-1:1),g/2-3],["L",g/2+(u?-1:1),g/2+3],["L",g/2+(u?2:-2),g/2]],p.vertical)).addClass("highcharts-scrollbar-arrow").add(x[u]),S.chart.styledMode||v.attr({fill:p.buttonArrowColor})},m.prototype.init=function(u,v,S){var M=this;M.scrollbarButtons=[],M.renderer=u,M.userOptions=v,M.options=P(U,Z.scrollbar,v),M.chart=S,M.size=y(M.options.size,M.options.height),v.enabled&&(M.render(),M.addEvents())},m.prototype.mouseDownHandler=function(u){var v=this,S=v.chart.pointer.normalize(u),M=v.cursorToScrollbarPosition(S);v.chartX=M.chartX,v.chartY=M.chartY,v.initPositions=[v.from,v.to],v.grabbedCenter=!0},m.prototype.mouseMoveHandler=function(u){var v,S=this,M=S.chart.pointer.normalize(u),x=S.options.vertical?"chartY":"chartX",p=S.initPositions||[];!S.grabbedCenter||u.touches&&u.touches[0][x]===0||(v=S.cursorToScrollbarPosition(M)[x]-S[x],S.hasDragged=!0,S.updatePosition(p[0]+v,p[1]+v),S.hasDragged&&A(S,"changed",{from:S.from,to:S.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}))},m.prototype.mouseUpHandler=function(u){var v=this;v.hasDragged&&A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}),v.grabbedCenter=v.hasDragged=v.chartX=v.chartY=null},m.prototype.position=function(u,v,S,M){var x=this,p=x.options.vertical,g=x.rendered?"animate":"attr",r=M,a=0;x.group.show(),x.x=u,x.y=v+this.trackBorderWidth,x.width=S,x.height=M,x.xOffset=r,x.yOffset=a,p?(x.width=x.yOffset=S=a=x.size,x.xOffset=r=0,x.barWidth=M-2*S,x.x=u+=x.options.margin):(x.height=x.xOffset=M=r=x.size,x.barWidth=S-2*M,x.y=x.y+x.options.margin),x.group[g]({translateX:u,translateY:x.y}),x.track[g]({width:S,height:M}),x.scrollbarButtons[1][g]({translateX:p?0:S-r,translateY:p?M-a:0})},m.prototype.removeEvents=function(){this._events.forEach(function(u){c.apply(null,u)}),this._events.length=0},m.prototype.render=function(){var u=this,v=u.renderer,S=u.options,M=u.size,x=u.chart.styledMode,p=v.g("scrollbar").attr({zIndex:S.zIndex}).hide().add();u.group=p,u.track=v.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:S.trackBorderRadius||0,height:M,width:M}).add(p),x||u.track.attr({fill:S.trackBackgroundColor,stroke:S.trackBorderColor,"stroke-width":S.trackBorderWidth}),u.trackBorderWidth=u.track.strokeWidth(),u.track.attr({y:-this.trackBorderWidth%2/2}),u.scrollbarGroup=v.g().add(p),u.scrollbar=v.rect().addClass("highcharts-scrollbar-thumb").attr({height:M,width:M,r:S.barBorderRadius||0}).add(u.scrollbarGroup),u.scrollbarRifles=v.path(m.swapXY([["M",-3,M/4],["L",-3,2*M/3],["M",0,M/4],["L",0,2*M/3],["M",3,M/4],["L",3,2*M/3]],S.vertical)).addClass("highcharts-scrollbar-rifles").add(u.scrollbarGroup),x||(u.scrollbar.attr({fill:S.barBackgroundColor,stroke:S.barBorderColor,"stroke-width":S.barBorderWidth}),u.scrollbarRifles.attr({stroke:S.rifleColor,"stroke-width":1})),u.scrollbarStrokeWidth=u.scrollbar.strokeWidth(),u.scrollbarGroup.translate(-u.scrollbarStrokeWidth%2/2,-u.scrollbarStrokeWidth%2/2),u.drawScrollbarButton(0),u.drawScrollbarButton(1)},m.prototype.setRange=function(u,v){var S=this,M=S.options,x=M.vertical,p=M.minWidth,g=S.barWidth,r=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(I(g)){var a,t,i=g*Math.min(v,1);u=Math.max(u,0),a=Math.ceil(g*u),S.calculatedWidth=t=F(i-a),t<p&&(a=(g-p+t)*u,t=p);var o=Math.floor(a+S.xOffset+S.yOffset),e=t/2-.5;S.from=u,S.to=v,x?(S.scrollbarGroup[r]({translateY:o}),S.scrollbar[r]({height:t}),S.scrollbarRifles[r]({translateY:e}),S.scrollbarTop=o,S.scrollbarLeft=0):(S.scrollbarGroup[r]({translateX:o}),S.scrollbar[r]({width:t}),S.scrollbarRifles[r]({translateX:e}),S.scrollbarLeft=o,S.scrollbarTop=0),t<=12?S.scrollbarRifles.hide():S.scrollbarRifles.show(),M.showFull===!1&&(u<=0&&v>=1?S.group.hide():S.group.show()),S.rendered=!0}},m.prototype.shouldUpdateExtremes=function(u){return y(this.options.liveRedraw,B.svg&&!B.isTouchDevice&&!this.chart.boosted)||u==="mouseup"||u==="touchend"||!I(u)},m.prototype.trackClick=function(u){var v=this,S=v.chart.pointer.normalize(u),M=v.to-v.from,x=v.y+v.scrollbarTop,p=v.x+v.scrollbarLeft;v.options.vertical&&S.chartY>x||!v.options.vertical&&S.chartX>p?v.updatePosition(v.from+M,v.to+M):v.updatePosition(v.from-M,v.to-M),A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.update=function(u){this.destroy(),this.init(this.chart.renderer,P(!0,this.options,u),this.chart)},m.prototype.updatePosition=function(u,v){v>1&&(u=F(1-F(v-u)),v=1),u<0&&(v=F(v-u),u=0),this.from=u,this.to=v},m.defaultOptions=U,m}();return Z.scrollbar=P(!0,f.defaultOptions,Z.scrollbar),f}),et(_,"Stock/Navigator/Navigator.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/NavigatorAxisComposition.js"],_["Stock/Navigator/NavigatorComposition.js"],_["Stock/Scrollbar/Scrollbar.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var F=B.defaultOptions,I=X.hasTouch,E=X.isTouchDevice,A=V.addEvent,P=V.clamp,y=V.correctFloat,c=V.defined,f=V.destroyObjectProperties,m=V.erase,u=V.extend,v=V.find,S=V.isArray,M=V.isNumber,x=V.merge,p=V.pick,g=V.removeEvent,r=V.splat;function a(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var e=[].filter.call(i,M);if(e.length)return Math[t].apply(0,e)}return function(){function t(i){this.baseSeries=void 0,this.chart=void 0,this.handles=void 0,this.height=void 0,this.left=void 0,this.navigatorEnabled=void 0,this.navigatorGroup=void 0,this.navigatorOptions=void 0,this.navigatorSeries=void 0,this.navigatorSize=void 0,this.opposite=void 0,this.outline=void 0,this.outlineHeight=void 0,this.range=void 0,this.rendered=void 0,this.shades=void 0,this.size=void 0,this.top=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zoomedMax=void 0,this.zoomedMin=void 0,this.init(i)}return t.compose=function(i,o,e){$.compose(i,o,t,e)},t.prototype.drawHandle=function(i,o,e,s){var n=this,h=n.navigatorOptions.handles.height;n.handles[o][s](e?{translateX:Math.round(n.left+n.height/2),translateY:Math.round(n.top+parseInt(i,10)+.5-h)}:{translateX:Math.round(n.left+parseInt(i,10)),translateY:Math.round(n.top+n.height/2-h/2-1)})},t.prototype.drawOutline=function(i,o,e,s){var n,h,b=this,k=b.navigatorOptions.maskInside,D=b.outline.strokeWidth(),d=D/2,C=D%2/2,T=b.outlineHeight,N=b.scrollbarHeight||0,z=b.size,L=b.left-N,O=b.top;e?(h=[["M",(L-=d)+T,O-N-C],["L",L+T,n=O+o+C],["L",L,n],["L",L,o=O+i+C],["L",L+T,o],["L",L+T,O+z+N]],k&&h.push(["M",L+T,n-d],["L",L+T,o+d])):(h=[["M",L,O+=d],["L",i+=L+N-C,O],["L",i,O+T],["L",o+=L+N-C,O+T],["L",o,O],["L",L+z+2*N,O]],k&&h.push(["M",i-d,O],["L",o+d,O])),b.outline[s]({d:h})},t.prototype.drawMasks=function(i,o,e,s){var n,h,b,k,D=this,d=D.left,C=D.top,T=D.height;e?(b=[d,d,d],k=[C,C+i,C+o],h=[T,T,T],n=[i,o-i,D.size-o]):(b=[d,d+i,d+o],k=[C,C,C],h=[i,o-i,D.size-o],n=[T,T,T]),D.shades.forEach(function(N,z){N[s]({x:b[z],y:k[z],width:h[z],height:n[z]})})},t.prototype.renderElements=function(){var i=this,o=i.navigatorOptions,e=o.maskInside,s=i.chart,n=s.inverted,h=s.renderer,b={cursor:n?"ns-resize":"ew-resize"},k=i.navigatorGroup=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!e,e,!e].forEach(function(T,N){var z=h.rect().addClass("highcharts-navigator-mask"+(N===1?"-inside":"-outside")).add(k);s.styledMode||(z.attr({fill:T?o.maskFill:"rgba(0,0,0,0)"}),N===1&&z.css(b)),i.shades[N]=z}),i.outline=h.path().addClass("highcharts-navigator-outline").add(k),s.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),o.handles&&o.handles.enabled){var D=o.handles,d=D.height,C=D.width;[0,1].forEach(function(T){i.handles[T]=h.symbol(D.symbols[T],-C/2-1,0,C,d,D),s.inverted&&i.handles[T].attr({rotation:90,rotationOriginX:Math.floor(-C/2),rotationOriginY:(d+C)/2}),i.handles[T].attr({zIndex:7-T}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][T]).add(k),s.styledMode||i.handles[T].attr({fill:D.backgroundColor,stroke:D.borderColor,"stroke-width":D.lineWidth}).css(b)})}},t.prototype.update=function(i){(this.series||[]).forEach(function(e){e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy();var o=this.chart.options;x(!0,o.navigator,i),this.init(this.chart)},t.prototype.render=function(i,o,e,s){var n,h,b,k,D,d=this,C=d.chart,T=d.xAxis,N=T.pointRange||0,z=T.navigatorAxis.fake?C.xAxis[0]:T,L=d.navigatorEnabled,O=d.rendered,j=C.inverted,Y=C.xAxis[0].minRange,H=C.xAxis[0].options.maxRange,W=d.scrollbarHeight;if(!this.hasDragged||c(e)){if(i=y(i-N/2),o=y(o+N/2),!M(i)||!M(o)){if(!O)return;e=0,s=p(T.width,z.width)}d.left=p(T.left,C.plotLeft+W+(j?C.plotWidth:0));var q=d.size=k=p(T.len,(j?C.plotHeight:C.plotWidth)-2*W);n=j?W:k+2*W,e=p(e,T.toPixels(i,!0)),s=p(s,T.toPixels(o,!0)),M(e)&&Math.abs(e)!==1/0||(e=0,s=n);var tt=T.toValue(e,!0),J=T.toValue(s,!0),nt=Math.abs(y(J-tt));nt<Y?this.grabbedLeft?e=T.toPixels(J-Y-N,!0):this.grabbedRight&&(s=T.toPixels(tt+Y+N,!0)):c(H)&&y(nt-N)>H&&(this.grabbedLeft?e=T.toPixels(J-H-N,!0):this.grabbedRight&&(s=T.toPixels(tt+H+N,!0))),d.zoomedMax=P(Math.max(e,s),0,q),d.zoomedMin=P(d.fixedWidth?d.zoomedMax-d.fixedWidth:Math.min(e,s),0,q),d.range=d.zoomedMax-d.zoomedMin,q=Math.round(d.zoomedMax);var lt=Math.round(d.zoomedMin);L&&(d.navigatorGroup.attr({visibility:"inherit"}),D=O&&!d.hasDragged?"animate":"attr",d.drawMasks(lt,q,j,D),d.drawOutline(lt,q,j,D),d.navigatorOptions.handles.enabled&&(d.drawHandle(lt,0,j,D),d.drawHandle(q,1,j,D))),d.scrollbar&&(j?(b=d.top-W,h=d.left-W+(L||!z.opposite?0:(z.titleOffset||0)+z.axisTitleMargin),W=k+2*W):(b=d.top+(L?d.height:-W),h=d.left-W),d.scrollbar.position(h,b,n,W),d.scrollbar.setRange(d.zoomedMin/(k||1),d.zoomedMax/(k||1))),d.rendered=!0}},t.prototype.addMouseEvents=function(){var i,o,e=this,s=e.chart,n=s.container,h=[];e.mouseMoveHandler=i=function(b){e.onMouseMove(b)},e.mouseUpHandler=o=function(b){e.onMouseUp(b)},(h=e.getPartsEvents("mousedown")).push(A(s.renderTo,"mousemove",i),A(n.ownerDocument,"mouseup",o)),I&&(h.push(A(s.renderTo,"touchmove",i),A(n.ownerDocument,"touchend",o)),h.concat(e.getPartsEvents("touchstart"))),e.eventsToUnbind=h,e.series&&e.series[0]&&h.push(A(e.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(i){var o=this,e=[];return["shades","handles"].forEach(function(s){o[s].forEach(function(n,h){e.push(A(n.element,i,function(b){o[s+"Mousedown"](b,h)}))})}),e},t.prototype.shadesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e,s,n,h,b=this,k=b.chart,D=b.xAxis,d=b.zoomedMin,C=b.size,T=b.range,N=b.left,z=i.chartX;k.inverted&&(z=i.chartY,N=b.top),o===1?(b.grabbedCenter=z,b.fixedWidth=T,b.dragOffset=z-d):(h=z-N-T/2,o===0?h=Math.max(0,h):o===2&&h+T>=C&&(h=C-T,b.reversedExtremes?(h-=T,s=b.getUnionExtremes().dataMin):e=b.getUnionExtremes().dataMax),h!==d&&(b.fixedWidth=T,n=D.navigatorAxis.toFixedRange(h,h+T,s,e),c(n.min)&&k.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,null,{trigger:"navigator"})))},t.prototype.handlesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e=this,s=e.chart,n=s.xAxis[0],h=e.reversedExtremes;o===0?(e.grabbedLeft=!0,e.otherHandlePos=e.zoomedMax,e.fixedExtreme=h?n.min:n.max):(e.grabbedRight=!0,e.otherHandlePos=e.zoomedMin,e.fixedExtreme=h?n.max:n.min),s.fixedRange=null},t.prototype.onMouseMove=function(i){var o,e=this,s=e.chart,n=e.navigatorSize,h=e.range,b=e.dragOffset,k=s.inverted,D=e.left;i.touches&&i.touches[0].pageX===0||(o=(i=s.pointer.normalize(i)).chartX,k&&(D=e.top,o=i.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-D,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-D)):e.grabbedCenter&&(e.hasDragged=!0,o<b?o=b:o>n+b-h&&(o=n+b-h),e.render(0,0,o-b,o-b+h)),e.hasDragged&&e.scrollbar&&p(e.scrollbar.options.liveRedraw,X.svg&&!E&&!this.chart.boosted)&&(i.DOMType=i.type,setTimeout(function(){e.onMouseUp(i)},0)))},t.prototype.onMouseUp=function(i){var o,e,s,n,h,b,k=this,D=k.chart,d=k.xAxis,C=k.scrollbar,T=i.DOMEvent||i,N=D.inverted,z=k.rendered&&!k.hasDragged?"animate":"attr";(!k.hasDragged||C&&C.hasDragged)&&i.trigger!=="scrollbar"||(s=k.getUnionExtremes(),k.zoomedMin===k.otherHandlePos?n=k.fixedExtreme:k.zoomedMax===k.otherHandlePos&&(h=k.fixedExtreme),k.zoomedMax===k.size&&(h=k.reversedExtremes?s.dataMin:s.dataMax),k.zoomedMin===0&&(n=k.reversedExtremes?s.dataMax:s.dataMin),b=d.navigatorAxis.toFixedRange(k.zoomedMin,k.zoomedMax,n,h),c(b.min)&&D.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,!k.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:T})),i.DOMType!=="mousemove"&&i.DOMType!=="touchmove"&&(k.grabbedLeft=k.grabbedRight=k.grabbedCenter=k.fixedWidth=k.fixedExtreme=k.otherHandlePos=k.hasDragged=k.dragOffset=null),k.navigatorEnabled&&M(k.zoomedMin)&&M(k.zoomedMax)&&(e=Math.round(k.zoomedMin),o=Math.round(k.zoomedMax),k.shades&&k.drawMasks(e,o,N,z),k.outline&&k.drawOutline(e,o,N,z),k.navigatorOptions.handles.enabled&&Object.keys(k.handles).length===k.handles.length&&(k.drawHandle(e,0,N,z),k.drawHandle(o,1,N,z)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(i){i()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var i=this.baseSeries||[];this.navigatorEnabled&&i[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&i.forEach(function(o){g(o,"updatedData",this.updatedDataHandler)},this),i[0].xAxis&&g(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.init=function(i){var o=i.options,e=o.navigator||{},s=e.enabled,n=o.scrollbar||{},h=n.enabled,b=s&&e.height||0,k=h&&n.height||0;this.handles=[],this.shades=[],this.chart=i,this.setBaseSeries(),this.height=b,this.scrollbarHeight=k,this.scrollbarEnabled=h,this.navigatorEnabled=s,this.navigatorOptions=e,this.scrollbarOptions=n,this.outlineHeight=b+k,this.opposite=p(e.opposite,!!(!s&&i.inverted));var D=this,d=D.baseSeries,C=i.xAxis.length,T=i.yAxis.length,N=d&&d[0]&&d[0].xAxis||i.xAxis[0]||{options:{}};i.isDirtyBox=!0,D.navigatorEnabled?(D.xAxis=new G(i,x({breaks:N.options.breaks,ordinal:N.options.ordinal},e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:C,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},i.inverted?{offsets:[k,0,-k,0],width:b}:{offsets:[0,-k,0,k],height:b})),D.yAxis=new G(i,x(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:T,isInternal:!0,reversed:p(e.yAxis&&e.yAxis.reversed,i.yAxis[0]&&i.yAxis[0].reversed,!1),zoomEnabled:!1},i.inverted?{width:b}:{height:b})),d||e.series.data?D.updateNavigatorSeries(!1):i.series.length===0&&(D.unbindRedraw=A(i,"beforeRedraw",function(){i.series.length>0&&!D.series&&(D.setBaseSeries(),D.unbindRedraw())})),D.reversedExtremes=i.inverted&&!D.xAxis.reversed||!i.inverted&&D.xAxis.reversed,D.renderElements(),D.addMouseEvents()):(D.xAxis={chart:i,navigatorAxis:{fake:!0},translate:function(z,L){var O=i.xAxis[0],j=O.getExtremes(),Y=O.len-2*k,H=a("min",O.options.min,j.dataMin),W=a("max",O.options.max,j.dataMax)-H;return L?z*W/Y+H:Y*(z-H)/W},toPixels:function(z){return this.translate(z)},toValue:function(z){return this.translate(z,!0)}},D.xAxis.navigatorAxis.axis=D.xAxis,D.xAxis.navigatorAxis.toFixedRange=U.prototype.toFixedRange.bind(D.xAxis.navigatorAxis)),i.options.scrollbar.enabled&&(i.scrollbar=D.scrollbar=new Z(i.renderer,x(i.options.scrollbar,{margin:D.navigatorEnabled?0:10,vertical:i.inverted}),i),A(D.scrollbar,"changed",function(z){var L=D.size,O=L*this.to,j=L*this.from;D.hasDragged=D.scrollbar.hasDragged,D.render(0,0,j,O),this.shouldUpdateExtremes(z.DOMType)&&setTimeout(function(){D.onMouseUp(z)})})),D.addBaseSeriesEvents(),D.addChartEvents()},t.prototype.getUnionExtremes=function(i){var o,e=this.chart.xAxis[0],s=this.xAxis,n=s.options,h=e.options;return i&&e.dataMin===null||(o={dataMin:p(n&&n.min,a("min",h.min,e.dataMin,s.dataMin,s.min)),dataMax:p(n&&n.max,a("max",h.max,e.dataMax,s.dataMax,s.max))}),o},t.prototype.setBaseSeries=function(i,o){var e=this.chart,s=this.baseSeries=[];i=i||e.options&&e.options.navigator.baseSeries||(e.series.length?v(e.series,function(n){return!n.options.isInternal}).index:0),(e.series||[]).forEach(function(n,h){n.options.isInternal||!n.options.showInNavigator&&(h!==i&&n.options.id!==i||n.options.showInNavigator===!1)||s.push(n)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,o)},t.prototype.updateNavigatorSeries=function(i,o){var e,s,n,h=this,b=h.chart,k=h.baseSeries,D={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},d=h.series=(h.series||[]).filter(function(T){var N=T.baseSeries;return!(k.indexOf(N)<0&&(N&&(g(N,"updatedData",h.updatedDataHandler),delete N.navigatorSeries),T.chart&&T.destroy(),1))}),C=h.navigatorOptions.series;k&&k.length&&k.forEach(function(T){var N=T.navigatorSeries,z=u({color:T.color,visible:T.visible},S(C)?F.navigator.series:C);if(!N||h.navigatorOptions.adaptToUpdatedData!==!1){D.name="Navigator "+k.length,e=T.options||{},n=e.navigatorOptions||{},z.dataLabels=r(z.dataLabels),(s=x(e,D,z,n)).pointRange=p(z.pointRange,n.pointRange,F.plotOptions[s.type||"line"].pointRange);var L=n.data||z.data;h.hasNavigatorData=h.hasNavigatorData||!!L,s.data=L||e.data&&e.data.slice(0),N&&N.options?N.update(s,o):(T.navigatorSeries=b.initSeries(s),T.navigatorSeries.baseSeries=T,d.push(T.navigatorSeries))}}),(!C.data||k&&k.length)&&!S(C)||(h.hasNavigatorData=!1,(C=r(C)).forEach(function(T,N){D.name="Navigator "+(d.length+1),(s=x(F.navigator.series,{color:b.series[N]&&!b.series[N].options.isInternal&&b.series[N].color||b.options.colors[N]||b.options.colors[0]},D,T)).data=T.data,s.data&&(h.hasNavigatorData=!0,d.push(b.initSeries(s)))})),i&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var i=this,o=this,e=o.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(A(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(A(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(A(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),i.navigatorOptions.adaptToUpdatedData!==!1&&s.xAxis&&s.eventsToUnbind.push(A(s,"updatedData",i.updatedDataHandler)),s.eventsToUnbind.push(A(s,"remove",function(){this.navigatorSeries&&(m(o.series,this.navigatorSeries),c(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(i){return this.baseSeries.reduce(function(o,e){return Math.min(o,e.xData&&e.xData.length?e.xData[0]:o)},i)},t.prototype.modifyNavigatorAxisExtremes=function(){var i=this.xAxis;if(i.getExtremes!==void 0){var o=this.getUnionExtremes(!0);!o||o.dataMin===i.min&&o.dataMax===i.max||(i.min=o.dataMin,i.max=o.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var i,o,e=this,s=e.chart.navigator,n=e.getExtremes(),h=n.min,b=n.max,k=n.dataMin,D=n.dataMax,d=b-h,C=s.stickToMin,T=s.stickToMax,N=p(e.options.overscroll,0),z=s.series&&s.series[0],L=!!e.setExtremes;e.eventArgs&&e.eventArgs.trigger==="rangeSelectorButton"||(C&&(i=(o=k)+d),T&&(i=D+N,C||(o=Math.max(k,i-d,s.getBaseSeriesMin(z&&z.xData?z.xData[0]:-Number.MAX_VALUE)))),L&&(C||T)&&M(o)&&(e.min=e.userMin=o,e.max=e.userMax=i)),s.stickToMin=s.stickToMax=null},t.prototype.updatedDataHandler=function(){var i=this.chart.navigator,o=this,e=this.navigatorSeries,s=i.reversedExtremes?Math.round(i.zoomedMin)===0:Math.round(i.zoomedMax)>=Math.round(i.size);i.stickToMax=p(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,s),i.stickToMin=i.shouldStickToMin(o,i),e&&!i.hasNavigatorData&&(e.options.pointStart=o.xData[0],e.setData(o.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(i,o){var e=o.getBaseSeriesMin(i.xData[0]),s=i.xAxis,n=s.max,h=s.min,b=s.options.range;return!(!M(n)||!M(h))&&(b&&n-e>0?n-e<b:h<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(A(this.chart,"redraw",function(){var i=this.navigator,o=i&&(i.baseSeries&&i.baseSeries[0]&&i.baseSeries[0].xAxis||this.xAxis[0]);o&&i.render(o.min,o.max)}),A(this.chart,"getMargins",function(){var i=this,o=i.navigator,e=o.opposite?"plotTop":"marginBottom";i.inverted&&(e=o.opposite?"marginRight":"plotLeft"),i[e]=(i[e]||0)+(o.navigatorEnabled||!i.inverted?o.outlineHeight:0)+o.navigatorOptions.margin}))},t.prototype.destroy=function(){var i=this;this.removeEvents(),this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis)),this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(o){o.destroy&&o.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(o){i[o]&&i[o].destroy&&i[o].destroy(),i[o]=null}),[this.handles].forEach(function(o){f(o)})},t}()}),et(_,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),et(_,"Stock/RangeSelector/RangeSelectorComposition.js",[_["Core/Defaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.defaultOptions,Z=G.setOptions,V=X.addEvent,F=X.defined,I=X.extend,E=X.find,A=X.isNumber,P=X.merge,y=X.pick,c=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(h,b){var k=i==="year"?"FullYear":"Month",D=new e.Date(h),d=e.get(k,D);return e.set(k,D,d+b),d===e.get(k,D)&&e.set("Date",D,0),D.getTime()-h};A(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return A(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),A(o)?!A(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new U(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){A(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function S(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,A(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(c,function(n){return n[0]===r})||c.push([r,[V(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),V(r,"redraw",s)]]),s())}function M(){for(var r=0,a=c.length;r<a;++r){var t=c[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void c.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function p(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!F(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new U(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){S(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){U=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),V(a,"afterGetContainer",u),V(a,"beforeRender",v),V(a,"destroy",M),V(a,"getMargins",x),V(a,"render",p),V(a,"update",g),a.prototype.callbacks.push(S)),f.indexOf(Z)===-1&&(I($,{rangeSelector:B.rangeSelector}),I($.lang,B.lang))}}}),et(_,"Stock/RangeSelector/RangeSelector.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Stock/RangeSelector/RangeSelectorComposition.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=B.defaultOptions,F=Z.addEvent,I=Z.createElement,E=Z.css,A=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,c=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,S=Z.pad,M=Z.pick,x=Z.pInt,p=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){U.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,h,b,k=this,D=k.chart,d=k.buttonOptions[a],C=D.xAxis[0],T=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=d.type,z=d.dataGrouping,L=T.dataMin,O=T.dataMax,j=C&&Math.round(Math.min(C.max,M(O,C.max))),Y=d._range,H=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,k.setSelected(a),z&&(this.forcedDataGrouping=!0,G.prototype.setDataGrouping.call(C||{chart:this.chart},z,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")C?(h={range:d,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(h),m(h.newMax)&&(j=h.newMax),H=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),H=!1;else if(N==="ytd"){if(!C)return void(k.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(W){var q=W.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=k.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);H&&d._offsetMin&&A(i)&&(i+=d._offsetMin),d._offsetMax&&A(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,M(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=p(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,F(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,h=t.maxInput;n&&n.blur&&f(n,"blur"),h&&h.blur&&f(h,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(F(a.container,"mousedown",s)),this.eventsToUnbind.push(F(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(F(a,"load",function(){a.xAxis&&a.xAxis[0]&&F(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,h=t.scroller&&t.scroller.getUnionExtremes()||o,b=h.dataMin,k=h.dataMax,D=a.getYTDExtremes(k,b,t.time.useUTC),d=D.min,C=D.max,T=a.selected,N=a.options.allButtonsEnabled,z=a.buttons,L=m(T);a.buttonOptions.forEach(function(O,j){var Y=O._range,H=O.type,W=O.count||1,q=z[j],tt=O._offsetMax-O._offsetMin,J=j===T,nt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(H==="month"||H==="year")&&e+36e5>={month:28,year:365}[H]*n*W-tt&&e-36e5<={month:31,year:366}[H]*n*W+tt?yt=!0:H==="ytd"?(yt=C-d+tt===e,mt=!J):H==="all"&&(yt=o.max-o.min>=k-b,bt=!J&&L&&yt);var dt=!N&&(nt||lt||bt||s),ot=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;dt?gt=3:ot&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=dt,gt===2&&(i.selectedIndex=j+1)),gt===0&&T===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=M(a.offsetMin,0),a._offsetMax=M(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),h=A(n)?Number(n):void 0;if(A(t)){var b=h;A(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),h=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,h),s&&s.attr({text:o.dateFormat(i.inputDateFormat,h)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var h=s.dateFormat(e,i);o.max!==h&&(o.max=h)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,h=this.options.inputBoxWidth;E(i,{width:o?t.width+(h?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&h?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(X.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(S(-s),":00"):"-".concat(S(s),":00")}var n=Date.parse(e);if(!m(n)){var h=a.split("-");n=Date.UTC(x(h[0]),x(h[1])-1,x(h[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},h=i.renderer,b=i.options.rangeSelector,k=V.lang,D=a==="min";function d(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],H=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,W=H.dataMin,q=H.dataMax,tt=s.getInputValue(a);tt!==Number(z.getAttribute("data-hc-time-previous"))&&m(tt)&&(z.setAttribute("data-hc-time-previous",tt),D&&O&&m(W)?tt>Number(O.getAttribute("data-hc-time"))?tt=void 0:tt<W&&(tt=W):j&&m(q)&&(tt<Number(j.getAttribute("data-hc-time"))?tt=void 0:tt>q&&(tt=q)),tt!==void 0&&Y.setExtremes(D?tt:Y.min,D?Y.max:tt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=k[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",T=h.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var z=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);z.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(H){return O.indexOf("%"+H)!==-1}),Y=["H","k","I","l","M","S"].some(function(H){return O.indexOf("%"+H)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(T.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(z,c({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),z.onfocus=function(){s.showInput(a)},z.onblur=function(){z===X.doc.activeElement&&d(),s.hideInput(a),s.setInputValue(a),z.blur()};var L=!1;return z.onchange=function(){L||(d(),s.hideInput(a),z.blur())},z.onkeypress=function(O){O.keyCode===13&&d()},z.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||d()},z.onkeyup=function(){L=!1},{dateBox:N,input:z,label:T}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),h=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:h}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,h=M(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,k=this.rendered;if(n.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:h}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(A(C.dataMin)&&A(C.dataMax)){var T=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-T),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+T,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(z){if(z){var L=z.getBBox().width;L&&(z.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=V.lang,n=o.renderer,h=u(e.buttonTheme),b=h&&h.states,k=h.width||28;delete h.width,delete h.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);F(D,"touchstart",function(){D.style.fontSize="16px"}),[[X.isMS?"mouseover":"mouseenter"],[X.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var C=d[0],T=d[1];F(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,T||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),h["stroke-width"]=M(h["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(d,C){I("option",{textContent:d.title||d.text},void 0,D),i[C]=n.button(d.text,0,0,function(T){var N,z=d.events&&d.events.click;z&&(N=z.call(d,T)),N!==!1&&a.clickButton(C),a.isActive=!0},h,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup),d.title&&i[C].attr("title",d.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,h=t.options,b=t.zoomText,k=e.options,D=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,d=h.buttonPosition,C=h.inputPosition,T=h.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&T==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},z=e.plotLeft;if(s&&d&&C){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=h.buttonSpacing)}),this.initialButtonGroupWidth=O}z-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=z:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:T},!0,e.spacingBox);var H=s.alignAttr.translateY,W=s.getBBox().height+20,q=0;if(T==="bottom"){var tt=e.legend&&e.legend.options;q=H-(W=W+(tt&&tt.verticalAlign==="bottom"&&tt.enabled&&!tt.floating?e.legend.legendHeight+M(tt.margin,10):0)-20)-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10}T==="top"?(h.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):T==="middle"&&(C.y===d.y?q=H:(C.y||d.y)&&(C.y<0||d.y<0?q-=Math.min(C.y,d.y):q=H-W)),s.translate(h.x,h.y+Math.floor(q));var J=this,nt=J.minInput,lt=J.maxInput,gt=J.dropdown;h.inputEnabled&&nt&<&&(nt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,h=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-h:n.align==="center"&&(b-=h/2),s&&s.align({y:n.y,width:M(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,h=i.plotLeft,b=h;e&&e.visibility!=="hidden"&&(e[s]({x:M(h+n.x,h)}),b+=n.x+e.getBBox().width+5);for(var k=0,D=this.buttonOptions.length;k<D;++k)t[k].visibility!=="hidden"?(t[k][s]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][s]({x:h})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,h=n.buttonPosition,b=n.dropdown,k=n.inputPosition,D=function(){var T=0;return t.buttons.forEach(function(N){var z=N.getBBox();z.width>T&&(T=z.width)}),T},d=function(T){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,z=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+T>N&&N+z>L&&h.y<k.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(d(D())&&C());b==="never"&&this.expandButtons()}s&&e?k.align===h.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),d(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,h=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:M(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:M(n.buttonTheme.paddingRight,b.padding,8)}};h&&h.hide();var D=!1;o.forEach(function(C,T){var N=i[T];N.state!==2?N.hide():(N.show(),N.attr(k(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var d=n.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var h=t[n];h.show(),h.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:M(o.buttonTheme.paddingLeft,"unset"),paddingRight:M(o.buttonTheme.paddingRight,"unset")}),h.state<2&&h.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,h=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:h.width+"px",height:h.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,h=0;if(a.height)return a.height;this.alignElements(),h=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(h+=Math.abs(b)),h},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof ft.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return c(g.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),et(_,"Core/Axis/OrdinalAxis.js",[_["Core/Axis/Axis.js"],_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=U.addEvent,V=U.correctFloat,F=U.css,I=U.defined,E=U.error,A=U.pick,P=U.timeUnits,y=[];return function(c){function f(i,o,e,s,n,h,b){n===void 0&&(n=[]),h===void 0&&(h=0);var k,D,d,C,T,N={},z=this.options.tickPixelInterval,L=this.chart.time,O=[],j=0,Y=[],H=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!n||n.length<3||o===void 0)return L.getTimeTicks.apply(L,arguments);var W=n.length;for(k=0;k<W;k++){if(T=k&&n[k-1]>e,n[k]<o&&(j=k),k===W-1||n[k+1]-n[k]>5*h||T){if(n[k]>H){for(D=L.getTimeTicks(i,n[j],n[k],s);D.length&&D[0]<=H;)D.shift();D.length&&(H=D[D.length-1]),O.push(Y.length),Y=Y.concat(D)}j=k+1}if(T)break}if(D){if(C=D.info,b&&C.unitRange<=P.hour){for(k=Y.length-1,j=1;j<k;j++)L.dateFormat("%d",Y[j])!==L.dateFormat("%d",Y[j-1])&&(N[Y[j]]="day",d=!0);d&&(N[Y[0]]="day"),C.higherRanks=N}C.segmentStarts=O,Y.info=C}else E(12,!1,this.chart);if(b&&I(z)){for(var q=Y.length,tt=[],J=[],nt=void 0,lt=void 0,gt=void 0,mt=void 0,bt=void 0,yt=q;yt--;)lt=this.translate(Y[yt]),gt&&(J[yt]=gt-lt),tt[yt]=gt=lt;for(J.sort(),(mt=J[Math.floor(J.length/2)])<.6*z&&(mt=null),yt=Y[q-1]>e?q-1:q,gt=void 0;yt--;)lt=tt[yt],bt=Math.abs(gt-lt),gt&&bt<.8*z&&(mt===null||bt<.8*mt)?(N[Y[yt]]&&!N[Y[yt+1]]?(nt=yt+1,gt=lt):nt=yt,Y.splice(nt,1)):gt=lt}return Y}function m(i){var o=this.ordinal.positions;if(!o)return i;var e,s=o.length-1;return i<0?i=o[0]:i>s?i=o[s]:e=i-(s=Math.floor(i)),e!==void 0&&o[s]!==void 0?o[s]+(e?e*(o[s+1]-o[s]):0):i}function u(i){var o=this,e=o.ordinal,s=o.old?o.old.min:o.min,n=o.old?o.old.transA:o.transA,h=e.positions;if(!h)return i;var b=(i-s)*n+o.minPixelPadding;if(b>0&&b<o.left+o.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),h=e.extendedOrdinalPositions),h&&h.length){var k=e.getIndexOfPoint(b,h),D=V(k%1);if(k>=0&&k<h.length-1){var d=h[Math.floor(k)],C=h[Math.ceil(k)]-d;return h[Math.floor(k)]+D*C}var T=h.length,N=h[0],z=h[T-1],L=(z-N)/(T-1);return k<0?N+L*k:z+L*(k-T)}return i}function v(i,o){var e=c.Additions.findIndexOf(i,o,!0);return i[e]===o?e:e+(o-i[e])/(i[e+1]-i[e])}function S(){var i=this;i.ordinal||(i.ordinal=new c.Additions(i))}function M(){var i=this;i.isXAxis&&I(i.options.overscroll)&&i.max===i.dataMax&&(!i.chart.mouseIsDown||i.isInternal)&&(!i.eventArgs||i.eventArgs&&i.eventArgs.trigger!=="navigator")&&(i.max+=i.options.overscroll,!i.isInternal&&I(i.userMin)&&(i.min+=i.options.overscroll))}function x(){var i=this;i.horiz&&!i.isDirty&&(i.isDirty=i.isOrdinal&&i.chart.navigator&&!i.chart.navigator.adaptToUpdatedData)}function p(){var i=this;i.ordinal&&(i.ordinal.beforeSetTickPositions(),i.tickInterval=i.ordinal.postProcessTickInterval(i.tickInterval))}function g(i){var o=this,e=o.xAxis[0],s=e.options.overscroll,n=i.originalEvent.chartX,h=o.options.chart.panning,b=!1;if(h&&h.type!=="y"&&e.options.ordinal&&e.series.length){var k=o.mouseDownX,D=e.getExtremes(),d=D.dataMax,C=D.min,T=D.max,N=o.hoverPoints,z=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,L=(k-n)/(e.translationSlope*(e.ordinal.slope||z)),O=e.ordinal.getExtendedPositions(),j={ordinal:{positions:O,extendedOrdinalPositions:O}},Y=e.index2val,H=e.val2lin,W=void 0,q=void 0,tt=void 0,J=void 0;j.ordinal.positions?Math.abs(L)>1&&(N&&N.forEach(function(nt){nt.setState()}),L<0?(tt=j,J=e.ordinal.positions?e:j):(tt=e.ordinal.positions?e:j,J=j),d>(q=J.ordinal.positions)[q.length-1]&&q.push(d),o.fixedRange=T-C,(W=e.navigatorAxis.toFixedRange(void 0,void 0,Y.apply(tt,[H.apply(tt,[C,!0])+L]),Y.apply(J,[H.apply(J,[T,!0])+L]))).min>=Math.min(D.dataMin,C)&&W.max<=Math.max(d,T)+s&&e.setExtremes(W.min,W.max,!0,!1,{trigger:"pan"}),o.mouseDownX=n,F(o.container,{cursor:"move"})):b=!0}else b=!0;b||h&&/y/.test(h.type)?s&&(e.max=e.dataMax+s):i.preventDefault()}function r(){var i=this.xAxis;i&&i.options.ordinal&&(delete i.ordinal.index,delete i.ordinal.extendedOrdinalPositions)}function a(i,o){var e=this.ordinal,s=e.positions,n=e.slope,h=e.extendedOrdinalPositions;if(!s)return i;var b,k=s.length;if(s[0]<=i&&s[k-1]>=i)b=v(s,i);else{if(h||(h=e.getExtendedPositions&&e.getExtendedPositions(),e.extendedOrdinalPositions=h),!h||!h.length)return i;var D=h.length;n||(n=(h[D-1]-h[0])/D);var d=v(h,s[0]);b=i>=h[0]&&i<=h[D-1]?v(h,i)-d:i<h[0]?-d-(h[0]-i)/n:(i-h[D-1])/n+D-d}return o?b:n*(b||0)+e.offset}c.compose=function(i,o,e){if(y.indexOf(i)===-1){y.push(i);var s=i.prototype;s.getTimeTicks=f,s.index2val=m,s.lin2val=u,s.val2lin=a,s.ordinal2lin=s.val2lin,Z(i,"afterInit",S),Z(i,"foundExtremes",M),Z(i,"afterSetScale",x),Z(i,"initialAxisTranslation",p)}return y.indexOf(e)===-1&&(y.push(e),Z(e,"pan",g)),y.indexOf(o)===-1&&(y.push(o),Z(o,"updatedData",r)),i};var t=function(){function i(o){this.index={},this.axis=o}return i.prototype.beforeSetTickPositions=function(){var o,e,s,n,h,b,k,D=this.axis,d=D.ordinal,C=D.getExtremes(),T=C.min,N=C.max,z=D.isXAxis&&!!D.options.breaks,L=D.options.ordinal,O=D.chart.options.chart.ignoreHiddenSeries,j=[],Y=Number.MAX_VALUE,H=!1,W=!1,q=!1;if(L||z){var tt=0;if(D.series.forEach(function(J,nt){if(e=[],nt>0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(W=tt!==J.processedXData[1]-J.processedXData[0]),tt=J.processedXData[1]-J.processedXData[0],J.boosted&&(q=J.boosted),(!O||J.visible!==!1)&&(J.takeOrdinalPosition!==!1||z)&&(j=j.concat(J.processedXData),o=j.length,j.sort(function(lt,gt){return lt-gt}),Y=Math.min(Y,A(J.closestPointRange,Y)),o)){for(nt=0;nt<o-1;)j[nt]!==j[nt+1]&&e.push(j[nt+1]),nt++;e[0]!==j[0]&&e.unshift(j[0]),j=e}}),W&&q&&(j.pop(),j.shift()),(o=j.length)>2){for(s=j[1]-j[0],k=o-1;k--&&!H;)j[k+1]-j[k]!==s&&(H=!0);!D.options.keepOrdinalPadding&&(j[0]-T>s||N-j[j.length-1]>s)&&(H=!0)}else D.options.overscroll&&(o===2?Y=j[1]-j[0]:o===1?(Y=D.options.overscroll,j=[j[0],j[0]+Y]):Y=d.overscrollPointsRange);H||D.forceOrdinal?(D.options.overscroll&&(d.overscrollPointsRange=Y,j=j.concat(d.getOverscrollPositions())),d.positions=j,n=D.ordinal2lin(Math.max(T,j[0]),!0),h=Math.max(D.ordinal2lin(Math.min(N,j[j.length-1]),!0),1),d.slope=b=(N-T)/(h-n),d.offset=T-n*b):(d.overscrollPointsRange=A(D.closestPointRange,d.overscrollPointsRange),d.positions=D.ordinal.slope=d.offset=void 0)}D.isOrdinal=L&&H,d.groupIntervalFactor=null},i.findIndexOf=function(o,e,s){for(var n,h=0,b=o.length-1;h<b;)o[n=Math.ceil((h+b)/2)]<=e?h=n:b=n-1;return o[h]===e||s?h:-1},i.prototype.getExtendedPositions=function(){var o,e=this,s=e.axis,n=s.constructor.prototype,h=s.chart,b=s.series[0].currentDataGrouping,k=b?b.count+b.unitName:"raw",D=s.options.overscroll,d=s.getExtremes(),C=void 0,T=e.index;return T||(T=e.index={}),T[k]||((o={series:[],chart:h,forceOrdinal:!1,getExtremes:function(){return{min:d.dataMin,max:d.dataMax+D}},getGroupPixelWidth:n.getGroupPixelWidth,getTimeTicks:n.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:n.ordinal2lin,getIndexOfPoint:n.getIndexOfPoint,val2lin:n.val2lin}).ordinal.axis=o,s.series.forEach(function(N){(C={xAxis:o,xData:N.xData.slice(),chart:h,destroyGroupedData:B.noop,getProcessedData:X.prototype.getProcessedData,applyGrouping:X.prototype.applyGrouping}).xData=C.xData.concat(e.getOverscrollPositions()),C.options={dataGrouping:b?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}},o.series.push(C),N.processData.apply(C)}),C.closestPointRange!==C.basePointRange&&C.currentDataGrouping&&(o.forceOrdinal=!0),s.ordinal.beforeSetTickPositions.apply({axis:o}),T[k]=o.ordinal.positions),T[k]},i.prototype.getGroupIntervalFactor=function(o,e,s){var n,h,b=this,k=s.processedXData,D=k.length,d=[],C=b.groupIntervalFactor;if(!C){for(h=0;h<D-1;h++)d[h]=k[h+1]-k[h];d.sort(function(T,N){return T-N}),n=d[Math.floor(D/2)],o=Math.max(o,k[0]),e=Math.min(e,k[D-1]),b.groupIntervalFactor=C=D*n/(e-o)}return C},i.prototype.getIndexOfPoint=function(o,e){var s=this,n=s.axis,h=s.positions?s.positions[0]:0,b=n.series[0].points&&n.series[0].points[0]&&n.series[0].points[0].plotX||n.minPixelPadding;n.series.length>1&&n.series.forEach(function(d){d.points&&I(d.points[0])&&I(d.points[0].plotX)&&d.points[0].plotX<b&&d.points[0].plotX>=A(n.min,-1/0)&&(b=d.points[0].plotX)});var k=n.translationSlope*(s.slope||n.closestPointRange||s.overscrollPointsRange),D=(o-b)/k;return i.findIndexOf(e,h)+D},i.prototype.getOverscrollPositions=function(){var o=this.axis,e=o.options.overscroll,s=this.overscrollPointsRange,n=[],h=o.dataMax;if(I(s))for(;h<=o.dataMax+e;)h+=s,n.push(h);return n},i.prototype.postProcessTickInterval=function(o){var e=this.axis,s=this.slope;return s?e.options.breaks?e.closestPointRange||o:o/(s/e.closestPointRange):o},i}();c.Additions=t}($||($={})),$}),et(_,"Series/HLC/HLCPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.close=void 0,V.high=void 0,V.low=void 0,V.options=void 0,V.plotClose=void 0,V.series=void 0,V}return X(Z,$),Z}(G.seriesTypes.column.prototype.pointClass);return U}),et(_,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),et(_,"Series/HLC/HLCSeries.js",[_["Series/HLC/HLCPoint.js"],_["Series/HLC/HLCSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(A,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},$(A,P)},function(A,P){function y(){this.constructor=A}$(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),V=X.seriesTypes.column,F=U.extend,I=U.merge,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y.yData=void 0,y}return Z(P,A),P.prototype.extendStem=function(y,c,f){var m=y[0],u=y[1];typeof m[2]=="number"&&(m[2]=Math.max(f+c,m[2])),typeof u[2]=="number"&&(u[2]=Math.min(f-c,u[2]))},P.prototype.getPointPath=function(y,c){var f=c.strokeWidth(),m=y.series,u=f%2/2,v=Math.round(y.plotX)-u,S=Math.round(y.shapeArgs.width/2),M=y.plotClose,x=[["M",v,Math.round(y.yBottom)],["L",v,Math.round(y.plotHigh)]];return y.close!==null&&(M=Math.round(y.plotClose)+u,x.push(["M",v,M],["L",v+S,M]),m.extendStem(x,f/2,M)),x},P.prototype.drawSinglePoint=function(y){var c,f=y.series,m=f.chart,u=y.graphic;y.plotY!==void 0&&(u||(y.graphic=u=m.renderer.path().add(f.group)),m.styledMode||u.attr(f.pointAttribs(y,y.selected&&"select")),c=f.getPointPath(y,u),u[u?"animate":"attr"]({d:c}).addClass(y.getClassName(),!0))},P.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},P.prototype.init=function(){A.prototype.init.apply(this,arguments),this.options.stacking=void 0},P.prototype.pointAttribs=function(y,c){var f=A.prototype.pointAttribs.call(this,y,c);return delete f.fill,f},P.prototype.toYData=function(y){return[y.high,y.low,y.close]},P.prototype.translate=function(){var y=this,c=y.yAxis,f=this.pointArrayMap&&this.pointArrayMap.slice()||[],m=f.map(function(u){return"plot".concat(u.charAt(0).toUpperCase()+u.slice(1))});m.push("yBottom"),f.push("low"),A.prototype.translate.apply(y),y.points.forEach(function(u){f.forEach(function(v,S){var M=u[v];M!==null&&(y.dataModify&&(M=y.dataModify.modifyValue(M)),u[m[S]]=c.toPixels(M,!0))}),u.tooltipPos[1]=u.plotHigh+c.pos-y.chart.plotTop})},P.defaultOptions=I(V.defaultOptions,B),P}(V);return F(E.prototype,{pointClass:G,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),X.registerSeriesType("hlc",E),E}),et(_,"Series/OHLC/OHLCPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.open=void 0,V.options=void 0,V.plotOpen=void 0,V.series=void 0,V}return X(Z,$),Z.prototype.getClassName=function(){return $.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},Z.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},Z.prototype.resolveColor=function(){$.prototype.resolveColor.call(this),this.resolveUpColor()},Z.prototype.getZone=function(){var V=$.prototype.getZone.call(this);return this.resolveUpColor(),V},Z.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},Z}(G.seriesTypes.hlc.prototype.pointClass);return U}),et(_,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),et(_,"Series/OHLC/OHLCSeries.js",[_["Series/OHLC/OHLCPoint.js"],_["Series/OHLC/OHLCSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(f,m){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var S in v)v.hasOwnProperty(S)&&(u[S]=v[S])},$(f,m)},function(f,m){function u(){this.constructor=f}$(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),V=X.seriesTypes.hlc,F=U.addEvent,I=U.extend,E=U.merge,A=[];function P(f){var m=f.options,u=m.dataGrouping;u&&m.useOhlcData&&m.id!=="highcharts-navigator-series"&&(u.approximation="ohlc")}function y(f){var m=f.options;m.useOhlcData&&m.id!=="highcharts-navigator-series"&&I(this,{pointValKey:c.prototype.pointValKey,pointArrayMap:c.prototype.pointArrayMap,toYData:c.prototype.toYData})}var c=function(f){function m(){var u=f!==null&&f.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(m,f),m.compose=function(u){for(var v=[],S=1;S<arguments.length;S++)v[S-1]=arguments[S];A.indexOf(u)===-1&&(A.push(u),F(u,"afterSetOptions",P),F(u,"init",y))},m.prototype.getPointPath=function(u,v){var S=f.prototype.getPointPath.call(this,u,v),M=v.strokeWidth(),x=M%2/2,p=Math.round(u.plotX)-x,g=Math.round(u.shapeArgs.width/2),r=u.plotOpen;return u.open!==null&&(r=Math.round(u.plotOpen)+x,S.push(["M",p,r],["L",p-g,r]),f.prototype.extendStem.call(this,S,M/2,r)),S},m.prototype.pointAttribs=function(u,v){var S=f.prototype.pointAttribs.call(this,u,v),M=this.options;return delete S.fill,!u.options.color&&M.upColor&&u.open<u.close&&(S.stroke=M.upColor),S},m.prototype.toYData=function(u){return[u.open,u.high,u.low,u.close]},m.defaultOptions=E(V.defaultOptions,B),m}(V);return I(c.prototype,{pointClass:G,pointArrayMap:["open","high","low","close"]}),X.registerSeriesType("ohlc",c),c}),et(_,"Series/Candlestick/CandlestickSeriesDefaults.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),et(_,"Series/Candlestick/CandlestickSeries.js",[_["Series/Candlestick/CandlestickSeriesDefaults.js"],_["Core/Defaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,c)},function(y,c){function f(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),V=B.defaultOptions,F=X.seriesTypes,I=F.column,E=F.ohlc,A=U.merge,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return Z(c,y),c.prototype.pointAttribs=function(f,m){var u=I.prototype.pointAttribs.call(this,f,m),v=this.options,S=f.open<f.close,M=v.lineColor||this.color,x=f.color||this.color;if(u["stroke-width"]=v.lineWidth,u.fill=f.options.color||S&&v.upColor||x,u.stroke=f.options.lineColor||S&&v.upLineColor||M,m){var p=v.states[m];u.fill=p.color||u.fill,u.stroke=p.lineColor||u.stroke,u["stroke-width"]=p.lineWidth||u["stroke-width"]}return u},c.prototype.drawPoints=function(){for(var f=this,m=f.points,u=f.chart,v=f.yAxis.reversed,S=0,M=m;S<M.length;S++){var x=M[S],p=x.graphic,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0,o=void 0,e=void 0,s=void 0,n=void 0,h=void 0,b=!p;x.plotY!==void 0&&(p||(x.graphic=p=u.renderer.path().add(f.group)),f.chart.styledMode||p.attr(f.pointAttribs(x,x.selected&&"select")).shadow(f.options.shadow),e=p.strokeWidth()%2/2,s=Math.round(x.plotX)-e,g=x.plotOpen,r=x.plotClose,a=Math.min(g,r),t=Math.max(g,r),h=Math.round(x.shapeArgs.width/2),i=v?t!==x.yBottom:Math.round(a)!==Math.round(x.plotHigh),o=v?Math.round(a)!==Math.round(x.plotHigh):t!==x.yBottom,a=Math.round(a)+e,t=Math.round(t)+e,(n=[]).push(["M",s-h,t],["L",s-h,a],["L",s+h,a],["L",s+h,t],["Z"],["M",s,a],["L",s,i?Math.round(v?x.yBottom:x.plotHigh):a],["M",s,t],["L",s,o?Math.round(v?x.plotHigh:x.yBottom):t]),p[b?"attr":"animate"]({d:n}).addClass(x.getClassName(),!0))}},c.defaultOptions=A(E.defaultOptions,V.plotOptions,{tooltip:E.defaultOptions.tooltip},G),c}(E);return X.registerSeriesType("candlestick",P),P}),et(_,"Series/Flags/FlagsPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(F,I){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},X(F,I)},function(F,I){function E(){this.constructor=F}X(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=G.seriesTypes.column.prototype.pointClass,Z=B.isNumber,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E.ttBelow=!1,E}return U(I,F),I.prototype.isValid=function(){return Z(this.y)||this.y===void 0},I.prototype.hasNewShapeType=function(){var E=this.options.shape||this.series.options.shape;return this.graphic&&E&&E!==this.graphic.symbolKey},I}($);return V}),et(_,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),et(_,"Series/Flags/FlagsSymbols.js",[_["Core/Renderer/RendererRegistry.js"]],function(G){var B;return function(X){var U=[];function $(V,F,I,E,A){var P=A&&A.anchorX||V,y=A&&A.anchorY||F,c=this.circle(P-1,y-1,2,2);return c.push(["M",P,y],["L",V,F+E],["L",V,F],["L",V+I,F],["L",V+I,F+E],["L",V,F+E],["Z"]),c}function Z(V,F){V[F+"pin"]=function(I,E,A,P,y){var c,f=y&&y.anchorX,m=y&&y.anchorY;if(F==="circle"&&P>A&&(I-=Math.round((P-A)/2),A=P),c=V[F](I,E,A,P),f&&m){var u=f;if(F==="circle")u=I+A/2;else{var v=c[0],S=c[1];v[0]==="M"&&S[0]==="L"&&(u=(v[1]+S[1])/2)}var M=E>m?E:E+P;c.push(["M",u,M],["L",f,m]),c=c.concat(V.circle(f-1,m-1,2,2))}return c}}X.compose=function(V){U.indexOf(V)===-1&&(U.push(V),(I=V.prototype.symbols).flag=$,Z(I,"circle"),Z(I,"square"));var F=G.getRendererType();if(U.indexOf(F)){U.push(F);var I=V.prototype.symbols,E=F.prototype.symbols;E.circlepin=I.circlepin,E.flag=I.flag.bind(I),E.squarepin=I.squarepin}}}(B||(B={})),B}),et(_,"Series/OnSeriesComposition.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.prototype,Z=B.prototype,V=X.defined,F=X.stableSort;return function(I){var E=[];function A(y){return Z.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,y)}function P(){$.translate.apply(this);var y,c,f,m,u,v,S,M=this,x=M.options,p=M.chart,g=M.points,r=x.onSeries,a=r&&p.get(r),t=a&&a.options.step,i=a&&a.points,o=p.inverted,e=M.xAxis,s=M.yAxis,n=g.length-1,h=x.onKey||"y",b=i&&i.length,k=0;if(a&&a.visible&&b)for(k=(a.pointXOffset||0)+(a.barW||0)/2,v=a.currentDataGrouping,m=i[b-1].x+(v?v.totalRange:0),F(g,function(D,d){return D.x-d.x}),h="plot"+h[0].toUpperCase()+h.substr(1);b--&&g[n]&&(f=i[b],(y=g[n]).y=f.y,!(f.x<=y.x&&f[h]!==void 0&&(y.x<=m&&(y.plotY=f[h],f.x<y.x&&!t&&(u=i[b+1])&&u[h]!==void 0&&(S=(y.x-f.x)/(u.x-f.x),y.plotY+=S*(u[h]-f[h]),y.y+=S*(u.y-f.y))),b++,--n<0))););g.forEach(function(D,d){var C;D.plotX+=k,(D.plotY===void 0||o)&&(D.plotX>=0&&D.plotX<=e.len?o?(D.plotY=e.translate(D.x,0,1,0,1),D.plotX=V(D.y)?s.translate(D.y,0,0,0,1):0):D.plotY=(e.opposite?0:M.yAxis.len)+e.offset:D.shapeArgs={}),(c=g[d-1])&&c.plotX===D.plotX&&(c.stackIndex===void 0&&(c.stackIndex=0),C=c.stackIndex+1),D.stackIndex=C}),this.onSeries=a}I.compose=function(y){if(E.indexOf(y)===-1){E.push(y);var c=y.prototype;c.getPlotBox=A,c.translate=P}return y},I.getPlotBox=A,I.translate=P}(U||(U={})),U}),et(_,"Series/Flags/FlagsSeries.js",[_["Series/Flags/FlagsPoint.js"],_["Series/Flags/FlagsSeriesDefaults.js"],_["Series/Flags/FlagsSymbols.js"],_["Core/Globals.js"],_["Series/OnSeriesComposition.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I){var E,A=this&&this.__extends||(E=function(g,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},E(g,r)},function(g,r){function a(){this.constructor=g}E(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}),P=U.noop,y=Z.distribute,c=V.series,f=V.seriesTypes.column,m=I.addEvent,u=I.defined,v=I.extend,S=I.merge,M=I.objectEach,x=I.wrap,p=function(g){function r(){var a=g!==null&&g.apply(this,arguments)||this;return a.data=void 0,a.options=void 0,a.points=void 0,a}return A(r,g),r.prototype.animate=function(a){a&&this.setClip()},r.prototype.drawPoints=function(){var a,t,i,o,e,s,n,h,b,k,D,d=this,C=d.points,T=d.chart,N=T.renderer,z=T.inverted,L=d.options,O=L.y,j=d.yAxis,Y={},H=[];for(o=C.length;o--;)e=C[o],k=(z?e.plotY:e.plotX)>d.xAxis.len,a=e.plotX,n=e.stackIndex,i=e.options.shape||L.shape,(t=e.plotY)!==void 0&&(t=e.plotY+O-(n!==void 0&&n*L.stackDistance)),e.anchorX=n?void 0:e.plotX,h=n?void 0:e.plotY,D=i!=="flag",s=e.graphic,t!==void 0&&a>=0&&!k?(s&&e.hasNewShapeType()&&(s=s.destroy()),s||(s=e.graphic=N.label("",null,null,i,null,null,L.useHTML).addClass("highcharts-point").add(d.markerGroup),e.graphic.div&&(e.graphic.div.point=e),s.isNew=!0),s.attr({align:D?"center":"left",width:L.width,height:L.height,"text-align":L.textAlign}),T.styledMode||s.attr(d.pointAttribs(e)).css(S(L.style,e.style)).shadow(L.shadow),a>0&&(a-=s.strokeWidth()%2),b={y:t,anchorY:h},L.allowOverlapX&&(b.x=a,b.anchorX=e.anchorX),s.attr({text:e.options.title||L.title||"A"})[s.isNew?"attr":"animate"](b),L.allowOverlapX||(Y[e.plotX]?Y[e.plotX].size=Math.max(Y[e.plotX].size,s.width):Y[e.plotX]={align:D?.5:0,size:s.width,target:a,anchorX:a}),e.tooltipPos=[a,t+j.pos-T.plotTop]):s&&(e.graphic=s.destroy());if(!L.allowOverlapX){var W=100;M(Y,function(mt){mt.plotX=mt.anchorX,H.push(mt),W=Math.max(mt.size,W)}),y(H,z?j.len:this.xAxis.len,W);for(var q=0,tt=C;q<tt.length;q++){var J=tt[q],nt=J.plotX,lt=J.graphic,gt=lt&&Y[nt];gt&<&&(u(gt.pos)?lt[lt.isNew?"attr":"animate"]({x:gt.pos+(gt.align||0)*gt.size,anchorX:J.anchorX}).show().isNew=!1:lt.hide().isNew=!0)}}L.useHTML&&d.markerGroup&&x(d.markerGroup,"on",function(mt){return F.prototype.on.apply(mt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},r.prototype.drawTracker=function(){var a=this.points;g.prototype.drawTracker.call(this);for(var t=function(e){var s=e.graphic;s&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=m(s.element,"mouseover",function(){e.stackIndex>0&&!e.raised&&(e._y=s.y,s.attr({y:e._y-8}),e.raised=!0);for(var n=0,h=a;n<h.length;n++){var b=h[n];b!==e&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)}}))},i=0,o=a;i<o.length;i++)t(o[i])},r.prototype.pointAttribs=function(a,t){var i=this.options,o=a&&a.color||this.color,e=i.lineColor,s=a&&a.lineWidth,n=a&&a.fillColor||i.fillColor;return t&&(n=i.states[t].fillColor,e=i.states[t].lineColor,s=i.states[t].lineWidth),{fill:n||o,stroke:e||o,"stroke-width":s||i.lineWidth||0}},r.prototype.setClip=function(){c.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},r.compose=X.compose,r.defaultOptions=S(f.defaultOptions,B),r}(f);return $.compose(p),v(p.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:G,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:P,init:c.prototype.init}),V.registerSeriesType("flags",p),p}),et(_,"Core/Chart/StockChart.js",[_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/FormatUtilities.js"],_["Core/Defaults.js"],_["Stock/Navigator/NavigatorDefaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Stock/Scrollbar/ScrollbarDefaults.js"],_["Core/Series/Series.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I,E){var A,P=this&&this.__extends||(A=function(o,e){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var h in n)n.hasOwnProperty(h)&&(s[h]=n[h])},A(o,e)},function(o,e){function s(){this.constructor=o}A(o,e),o.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}),y=X.format,c=U.getOptions,f=E.addEvent,m=E.clamp,u=E.defined,v=E.extend,S=E.find,M=E.isNumber,x=E.isString,p=E.merge,g=E.pick,r=E.splat,a=function(o){function e(){return o!==null&&o.apply(this,arguments)||this}return P(e,o),e.prototype.init=function(s,n){var h=c(),b=s.xAxis,k=s.yAxis,D=g(s.navigator&&s.navigator.enabled,$.enabled,!0);s.xAxis=s.yAxis=void 0;var d=p({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:D},scrollbar:{enabled:g(V.enabled,!0)},rangeSelector:{enabled:g(Z.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:g(h.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},s,{isStock:!0});s.xAxis=b,s.yAxis=k,d.xAxis=r(s.xAxis||{}).map(function(C,T){return p(t("xAxis",C),h.xAxis,h.xAxis&&h.xAxis[T],C,i("xAxis",s))}),d.yAxis=r(s.yAxis||{}).map(function(C,T){return p(t("yAxis",C),h.yAxis,h.yAxis&&h.yAxis[T],C)}),o.prototype.init.call(this,d,n)},e.prototype.createAxis=function(s,n){return n.axis=p(t(s,n.axis),n.axis,i(s,this.userOptions)),o.prototype.createAxis.call(this,s,n)},e}(B);function t(o,e){return o==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:o==="yAxis"?{labels:{y:-2},opposite:g(e.opposite,!0),showLastLabel:!(!e.categories&&e.type!=="category"),title:{text:null}}:{}}function i(o,e){if(o==="xAxis"){var s={type:"datetime",categories:void 0};return g(e.navigator&&e.navigator.enabled,$.enabled,!0)&&(s.startOnTick=!1,s.endOnTick=!1),s}return{}}return function(o){o.stockChart=function(e,s,n){return new o(e,s,n)}}(a||(a={})),f(F,"setOptions",function(o){var e;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(o.plotOptions[this.type]=p(o.plotOptions[this.type],e)))}),f(G,"autoLabelAlign",function(o){var e,s=this.chart,n=this.options,h=s._labelPanes=s._labelPanes||{},b=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!h[e=n.top+","+n.height]&&b.enabled&&(b.x===15&&(b.x=0),b.align===void 0&&(b.align="right"),h[e]=this,o.align="right",o.preventDefault())}),f(G,"destroy",function(){var o=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&o._labelPanes&&o._labelPanes[e]===this&&delete o._labelPanes[e]}),f(G,"getPlotLinePath",function(o){var e,s,n,h,b,k,D,d,C,T=this,N=this.isLinked&&!this.series?this.linkedParent.series:this.series,z=T.chart,L=z.renderer,O=T.left,j=T.top,Y=[],H=[],W=o.translatedValue,q=o.value,tt=o.force;(z.options.isStock&&o.acrossPanes!==!1&&T.coll==="xAxis"||T.coll==="yAxis")&&(o.preventDefault(),D=T.coll,d=D==="xAxis"?"yAxis":"xAxis",C=T.options[d],H=M(C)?[z[d][C]]:x(C)?[z.get(C)]:N.map(function(J){return J[d]}),(T.isXAxis?z.yAxis:z.xAxis).forEach(function(J){if(!u(J.options.id)||J.options.id.indexOf("navigator")===-1){var nt=J.isXAxis?"yAxis":"xAxis",lt=u(J.options[nt])?z[nt][J.options[nt]]:z[nt][0];T===lt&&H.push(J)}}),b=H.length?[]:[T.isXAxis?z.yAxis[0]:z.xAxis[0]],H.forEach(function(J){b.indexOf(J)!==-1||S(b,function(nt){return nt.pos===J.pos&&nt.len===J.len})||b.push(J)}),k=g(W,T.translate(q,void 0,void 0,o.old)),M(k)&&(T.horiz?b.forEach(function(J){var nt;s=J.pos,h=s+J.len,e=n=Math.round(k+T.transB),tt!=="pass"&&(e<O||e>O+T.width)&&(tt?e=n=m(e,O,O+T.width):nt=!0),nt||Y.push(["M",e,s],["L",n,h])}):b.forEach(function(J){var nt;e=J.pos,n=e+J.len,s=h=Math.round(j+T.height-k),tt!=="pass"&&(s<j||s>j+T.height)&&(tt?s=h=m(s,j,j+T.height):nt=!0),nt||Y.push(["M",e,s],["L",n,h])})),o.path=Y.length>0?L.crispPolyLine(Y,o.lineWidth||1):null)}),I.prototype.crispPolyLine=function(o,e){for(var s=0;s<o.length;s+=2){var n=o[s],h=o[s+1];n[1]===h[1]&&(n[1]=h[1]=Math.round(n[1])-e%2/2),n[2]===h[2]&&(n[2]=h[2]=Math.round(n[2])+e%2/2)}return o},f(G,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),f(G,"afterDrawCrosshair",function(o){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&M(this.min)&&M(this.max)){var e,s,n,h,b,k=this.chart,D=this.logarithmic,d=this.crosshair.label,C=this.horiz,T=this.opposite,N=this.left,z=this.top,L=this.crossLabel,O=d.format,j="",Y=this.options.tickPosition==="inside",H=this.crosshair.snap!==!1,W=0,q=o.e||this.cross&&this.cross.e,tt=o.point,J=this.min,nt=this.max;D&&(J=D.lin2log(J),nt=D.lin2log(nt)),b=C?"center":T?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",L||(L=this.crossLabel=k.renderer.label("",0,void 0,d.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(tt&&tt.series?tt.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:d.align||b,padding:g(d.padding,8),r:g(d.borderRadius,3),zIndex:2}).add(this.labelGroup),k.styledMode||L.attr({fill:d.backgroundColor||tt&&tt.series&&tt.series.color||"#666666",stroke:d.borderColor||"","stroke-width":d.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},d.style||{}))),C?(e=H?(tt.plotX||0)+N:q.chartX,s=z+(T?0:this.height)):(e=T?this.width+N:0,s=H?(tt.plotY||0)+z:q.chartY),O||d.formatter||(this.dateTime&&(j="%b %d, %Y"),O="{value"+(j?":"+j:"")+"}");var lt=H?this.isXAxis?tt.x:tt.y:this.toValue(C?q.chartX:q.chartY),gt=tt&&tt.series?tt.series.isPointInside(tt):M(lt)&<>J&<<nt,mt="";O?mt=y(O,{value:lt},k):d.formatter&&M(lt)&&(mt=d.formatter.call(this,lt)),L.attr({text:mt,x:e,y:s,visibility:gt?"inherit":"hidden"}),n=L.getBBox(),M(L.y)&&(C?(Y&&!T||!Y&&T)&&(s=L.y-n.height):s=L.y-n.height/2),h=C?{left:N-n.x,right:N+this.width-n.x}:{left:this.labelAlign==="left"?N:0,right:this.labelAlign==="right"?N+this.width:k.chartWidth},L.translateX<h.left&&(W=h.left-L.translateX),L.translateX+n.width>=h.right&&(W=-(L.translateX+n.width-h.right)),L.attr({x:e+W,y:s,anchorX:C?e:this.opposite?0:k.chartWidth,anchorY:C?this.opposite?k.chartHeight:0:s+n.height/2})}}),F.prototype.forceCropping=function(){var o=this.chart,e=this.options.dataGrouping;return this.allowDG!==!1&&e&&g(e.enabled,o.options.isStock)},f(B,"update",function(o){var e=o.options;"scrollbar"in e&&this.navigator&&(p(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({}),delete e.scrollbar)}),a}),et(_,"masters/modules/stock.src.js",[_["Core/Globals.js"],_["Series/DataModifyComposition.js"],_["Stock/Navigator/Navigator.js"],_["Stock/RangeSelector/RangeSelector.js"],_["Stock/Scrollbar/Scrollbar.js"],_["Core/Axis/OrdinalAxis.js"],_["Series/OHLC/OHLCSeries.js"],_["Series/Flags/FlagsSeries.js"],_["Core/Chart/StockChart.js"]],function(G,B,X,U,$,Z,V,F,I){var E=G;E.Navigator=X,E.RangeSelector=U,E.Scrollbar=$,E.StockChart=E.stockChart=I.stockChart,B.compose(E.Series,E.Axis,E.Point),F.compose(E.Renderer),X.compose(E.Axis,E.Chart,E.Series),V.compose(E.Series),Z.compose(E.Axis,E.Series,E.Chart),U.compose(E.Axis,E.Chart),$.compose(E.Axis)}),et(_,"masters/highstock.src.js",[_["masters/highcharts.src.js"]],function(G){return G.product="Highstock",G}),_["masters/highstock.src.js"]._modules=_,_["masters/highstock.src.js"]},it.exports?(pt.default=pt,it.exports=ct.document?pt(ct):pt):(ht=function(){return pt(ct)}.call(rt,st,rt,it))===void 0||(it.exports=ht)},5322:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=function(st){var ht=st.defaultOptions,ct=ht.plotOptions,pt={fillOpacity:.2,color:null,borderColor:null},ft={fillColor:null,lineColor:null,lineWidth:2};ht.plotOptions.column.states.select=pt,ht.plotOptions.area.states.select=pt,ht.plotOptions.bar.states.select=pt,ht.plotOptions.line.states.select=pt,ht.plotOptions.spline.states.select=pt,ht.plotOptions.scatter.marker={enabled:!0,radius:4,fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1,states:{select:{fillOpacity:.85,fillColor:null,lineColor:null},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1}}},ht.plotOptions.series={states:{select:pt}},ct.area.marker.states.select=ft,ct.line.marker.states.select=ft,ct.spline.marker.states.select=ft,ct.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},st.timeUnits.month=26784e5,st.timeUnits.year=31556952e3}},5378:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=/^(?:0|[1-9]\d*)$/;const ct=function(pt,ft){var _=typeof pt;return!!(ft=ft==null?9007199254740991:ft)&&(_=="number"||_!="symbol"&&ht.test(pt))&&pt>-1&&pt%1==0&&pt<ft}},5436:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(123),ct=st(9600);const pt=(0,ht.A)(ct.A,"Map")},5860:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ft});var ht=st(4044),ct=st(6956),pt=st(7313);const ft=function(_){return typeof _=="string"||!(0,ct.A)(_)&&(0,pt.A)(_)&&(0,ht.A)(_)=="[object String]"}},6096:(it,rt,st)=>{st.d(rt,{A:()=>_});var ht=st(6979);const ct=function(et,G){for(var B=et.length;B--;)if((0,ht.A)(et[B][0],G))return B;return-1};var pt=Array.prototype.splice;function ft(et){var G=-1,B=et==null?0:et.length;for(this.clear();++G<B;){var X=et[G];this.set(X[0],X[1])}}ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(et){var G=this.__data__,B=ct(G,et);return!(B<0||(B==G.length-1?G.pop():pt.call(G,B,1),--this.size,0))},ft.prototype.get=function(et){var G=this.__data__,B=ct(G,et);return B<0?void 0:G[B][1]},ft.prototype.has=function(et){return ct(this.__data__,et)>-1},ft.prototype.set=function(et,G){var B=this.__data__,X=ct(B,et);return X<0?(++this.size,B.push([et,G])):B[X][1]=G,this};const _=ft},6124:(it,rt,st)=>{st.d(rt,{A:()=>ft});var ht=st(9465),ct=st(6979),pt=Object.prototype.hasOwnProperty;const ft=function(_,et,G){var B=_[et];pt.call(_,et)&&(0,ct.A)(B,G)&&(G!==void 0||et in _)||(0,ht.A)(_,et,G)}},6236:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/Axis/Color/ColorAxisComposition.js",[_["Core/Color/Color.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.parse,$=B.addEvent,Z=B.extend,V=B.merge,F=B.pick,I=B.splat;return function(E){var A,P=[];function y(){var g=this,r=this.options;this.colorAxis=[],r.colorAxis&&(r.colorAxis=I(r.colorAxis),r.colorAxis.forEach(function(a,t){a.index=t,new A(g,a)}))}function c(g){var r,a,t=this,i=this.chart.colorAxis||[],o=function(s){var n=g.allItems.indexOf(s);n!==-1&&(t.destroyItem(g.allItems[n]),g.allItems.splice(n,1))},e=[];for(i.forEach(function(s){(r=s.options)&&r.showInLegend&&(r.dataClasses&&r.visible?e=e.concat(s.getDataClassLegendSymbols()):r.visible&&e.push(s),s.series.forEach(function(n){n.options.showInLegend&&!r.dataClasses||(n.options.legendType==="point"?n.points.forEach(function(h){o(h)}):o(n))}))}),a=e.length;a--;)g.allItems.unshift(e[a])}function f(g){g.visible&&g.item.legendColor&&g.item.legendItem.symbol.attr({fill:g.item.legendColor})}function m(){var g=this.chart.colorAxis;g&&g.forEach(function(r){r.update({},arguments[2])})}function u(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function v(){var g=this.axisTypes;g?g.indexOf("colorAxis")===-1&&g.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(g){var r=this,a=g?"show":"hide";r.visible=r.options.visible=!!g,["graphic","dataLabel"].forEach(function(t){r[t]&&r[t][a]()}),this.series.buildKDTree()}function M(){var g=this,r=this.data.length?this.data:this.points,a=this.options.nullColor,t=this.colorAxis,i=this.colorKey;r.forEach(function(o){var e=o.getNestedProperty(i),s=o.options.color||(o.isNull||o.value===null?a:t&&e!==void 0?t.toColor(e,o):o.color||g.color);s&&o.color!==s&&(o.color=s,g.options.legendType==="point"&&o.legendItem&&o.legendItem.label&&g.chart.legend.colorizeItem(o,o.visible))})}function x(){this.elem.attr("fill",U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)}function p(){this.elem.attr("stroke",U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)}E.compose=function(g,r,a,t,i){if(A||(A=g),P.indexOf(r)===-1){P.push(r);var o=r.prototype;o.collectionsWithUpdate.push("colorAxis"),o.collectionsWithInit.colorAxis=[o.addColorAxis],$(r,"afterGetAxes",y),function(s){var n=s.prototype.createAxis;s.prototype.createAxis=function(h,b){if(h!=="colorAxis")return n.apply(this,arguments);var k=new A(this,V(b.axis,{index:this[h].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(D){D.series=[]}),this.series.forEach(function(D){D.bindAxes(),D.isDirtyData=!0}),F(b.redraw,!0)&&this.redraw(b.animation),k}}(r)}if(P.indexOf(a)===-1){P.push(a);var e=a.prototype;e.fillSetter=x,e.strokeSetter=p}P.indexOf(t)===-1&&(P.push(t),$(t,"afterGetAllItems",c),$(t,"afterColorizeItem",f),$(t,"afterUpdate",m)),P.indexOf(i)===-1&&(P.push(i),Z(i.prototype,{optionalAxis:"colorAxis",translateColors:M}),Z(i.prototype.pointClass.prototype,{setVisible:S}),$(i,"afterTranslate",u,{order:1}),$(i,"bindAxes",v))},E.pointSetVisible=S}(X||(X={})),X}),et(_,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}),et(_,"Core/Axis/Color/ColorAxis.js",[_["Core/Axis/Axis.js"],_["Core/Color/Color.js"],_["Core/Axis/Color/ColorAxisComposition.js"],_["Core/Axis/Color/ColorAxisDefaults.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(v,S){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var p in x)x.hasOwnProperty(p)&&(M[p]=x[p])},I(v,S)},function(v,S){function M(){this.constructor=v}I(v,S),v.prototype=S===null?Object.create(S):(M.prototype=S.prototype,new M)}),A=B.parse,P=V.series,y=F.extend,c=F.isNumber,f=F.merge,m=F.pick,u=function(v){function S(M,x){var p=v.call(this,M,x)||this;return p.beforePadding=!1,p.chart=void 0,p.coll="colorAxis",p.dataClasses=void 0,p.name="",p.options=void 0,p.stops=void 0,p.visible=!0,p.init(M,x),p}return E(S,v),S.compose=function(M,x,p,g){X.compose(S,M,x,p,g)},S.prototype.init=function(M,x){var p=this,g=M.options.legend||{},r=x.layout?x.layout!=="vertical":g.layout!=="vertical",a=x.visible,t=f(S.defaultColorAxisOptions,x,{showEmpty:!1,title:null,visible:g.enabled&&a!==!1});p.coll="colorAxis",p.side=x.side||r?2:1,p.reversed=x.reversed||!r,p.opposite=!r,v.prototype.init.call(this,M,t),p.userOptions.visible=a,x.dataClasses&&p.initDataClasses(x),p.initStops(),p.horiz=r,p.zoomEnabled=!1},S.prototype.initDataClasses=function(M){var x,p=this,g=p.chart,r=p.legendItem=p.legendItem||{},a=M.dataClasses.length,t=p.options,i=0,o=g.options.chart.colorCount;p.dataClasses=x=[],r.labels=[],(M.dataClasses||[]).forEach(function(e,s){var n;e=f(e),x.push(e),!g.styledMode&&e.color||(t.dataClassColor==="category"?(g.styledMode||(n=g.options.colors,o=n.length,e.color=n[i]),e.colorIndex=i,++i===o&&(i=0)):e.color=A(t.minColor).tweenTo(A(t.maxColor),a<2?.5:s/(a-1)))})},S.prototype.hasData=function(){return!!(this.tickPositions||[]).length},S.prototype.setTickPositions=function(){if(!this.dataClasses)return v.prototype.setTickPositions.call(this)},S.prototype.initStops=function(){var M=this;M.stops=M.options.stops||[[0,M.options.minColor],[1,M.options.maxColor]],M.stops.forEach(function(x){x.color=A(x[1])})},S.prototype.setOptions=function(M){v.prototype.setOptions.call(this,M),this.options.crosshair=this.options.marker},S.prototype.setAxisSize=function(){var M,x,p,g,r=this,a=r.legendItem&&r.legendItem.symbol,t=r.chart,i=t.options.legend||{};a?(this.left=M=a.attr("x"),this.top=x=a.attr("y"),this.width=p=a.attr("width"),this.height=g=a.attr("height"),this.right=t.chartWidth-M-p,this.bottom=t.chartHeight-x-g,this.len=this.horiz?p:g,this.pos=this.horiz?M:x):this.len=(this.horiz?i.symbolWidth:i.symbolHeight)||S.defaultLegendLength},S.prototype.normalizedValue=function(M){var x=this;return x.logarithmic&&(M=x.logarithmic.log2lin(M)),1-(x.max-M)/(x.max-x.min||1)},S.prototype.toColor=function(M,x){var p,g,r,a,t,i,o=this,e=o.dataClasses,s=o.stops;if(e){for(i=e.length;i--;)if(g=(t=e[i]).from,r=t.to,(g===void 0||M>=g)&&(r===void 0||M<=r)){a=t.color,x&&(x.dataClass=i,x.colorIndex=t.colorIndex);break}}else{for(p=o.normalizedValue(M),i=s.length;i--&&!(p>s[i][0]););g=s[i]||s[i+1],p=1-((r=s[i+1]||g)[0]-p)/(r[0]-g[0]||1),a=g.color.tweenTo(r.color,p)}return a},S.prototype.getOffset=function(){var M=this,x=M.legendItem&&M.legendItem.group,p=M.chart.axisOffset[M.side];if(x){M.axisParent=x,v.prototype.getOffset.call(this);var g=this.chart.legend;g.allItems.forEach(function(r){r instanceof S&&r.drawLegendSymbol(g,r)}),g.render(),this.chart.getMargins(!0),M.added||(M.added=!0,M.labelLeft=0,M.labelRight=M.width),M.chart.axisOffset[M.side]=p}},S.prototype.setLegendColor=function(){var M=this,x=M.horiz,p=M.reversed,g=p?1:0,r=p?0:1,a=x?[g,0,r,0]:[0,r,0,g];M.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:M.stops}},S.prototype.drawLegendSymbol=function(M,x){var p=x.legendItem||{},g=M.padding,r=M.options,a=m(r.itemDistance,10),t=this.horiz,i=m(r.symbolWidth,t?S.defaultLegendLength:12),o=m(r.symbolHeight,t?12:S.defaultLegendLength),e=m(r.labelPadding,t?16:30);this.setLegendColor(),p.symbol||(p.symbol=this.chart.renderer.rect(0,M.baseline-11,i,o).attr({zIndex:1}).add(p.group)),p.labelWidth=i+g+(t?a:this.options.labels.x+this.maxLabelLength),p.labelHeight=o+g+(t?e:0)},S.prototype.setState=function(M){this.series.forEach(function(x){x.setState(M)})},S.prototype.setVisible=function(){},S.prototype.getSeriesExtremes=function(){var M,x,p,g,r,a,t,i,o=this.series,e=o.length;for(this.dataMin=1/0,this.dataMax=-1/0;e--;){if(x=(a=o[e]).colorKey=m(a.options.colorKey,a.colorKey,a.pointValKey,a.zoneAxis,"y"),g=a.pointArrayMap,r=a[x+"Min"]&&a[x+"Max"],a[x+"Data"])M=a[x+"Data"];else if(g){if(M=[],p=g.indexOf(x),t=a.yData,p>=0&&t)for(i=0;i<t.length;i++)M.push(m(t[i][p],t[i]))}else M=a.yData;if(r)a.minColorValue=a[x+"Min"],a.maxColorValue=a[x+"Max"];else{var s=P.prototype.getExtremes.call(a,M);a.minColorValue=s.dataMin,a.maxColorValue=s.dataMax}a.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,a.minColorValue),this.dataMax=Math.max(this.dataMax,a.maxColorValue)),r||P.prototype.applyExtremes.call(a)}},S.prototype.drawCrosshair=function(M,x){var p,g=this,r=g.legendItem||{},a=x&&x.plotX,t=x&&x.plotY,i=g.pos,o=g.len;x&&((p=g.toPixels(x.getNestedProperty(x.series.colorKey)))<i?p=i-2:p>i+o&&(p=i+o+2),x.plotX=p,x.plotY=g.len-p,v.prototype.drawCrosshair.call(this,M,x),x.plotX=a,x.plotY=t,g.cross&&!g.cross.addedToColorAxis&&r.group&&(g.cross.addClass("highcharts-coloraxis-marker").add(r.group),g.cross.addedToColorAxis=!0,g.chart.styledMode||typeof g.crosshair!="object"||g.cross.attr({fill:g.crosshair.color})))},S.prototype.getPlotLinePath=function(M){var x=this,p=x.left,g=M.translatedValue,r=x.top;return c(g)?x.horiz?[["M",g-4,r-6],["L",g+4,r-6],["L",g,r],["Z"]]:[["M",p,g],["L",p-6,g+6],["L",p-6,g-6],["Z"]]:v.prototype.getPlotLinePath.call(this,M)},S.prototype.update=function(M,x){var p=this,g=p.chart.legend;this.series.forEach(function(r){r.isDirtyData=!0}),(M.dataClasses&&g.allItems||p.dataClasses)&&p.destroyItems(),v.prototype.update.call(this,M,x),p.legendItem&&p.legendItem.label&&(p.setLegendColor(),g.colorizeItem(this,!0))},S.prototype.destroyItems=function(){var M=this,x=M.chart,p=M.legendItem||{};if(p.label)x.legend.destroyItem(M);else if(p.labels)for(var g=0,r=p.labels;g<r.length;g++){var a=r[g];x.legend.destroyItem(a)}x.isDirtyLegend=!0},S.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),v.prototype.destroy.apply(this,[].slice.call(arguments))},S.prototype.remove=function(M){this.destroyItems(),v.prototype.remove.call(this,M)},S.prototype.getDataClassLegendSymbols=function(){var M,x=this,p=x.chart,g=x.legendItem&&x.legendItem.labels||[],r=p.options.legend,a=m(r.valueDecimals,-1),t=m(r.valueSuffix,""),i=function(o){return x.series.reduce(function(e,s){return e.push.apply(e,s.points.filter(function(n){return n.dataClass===o})),e},[])};return g.length||x.dataClasses.forEach(function(o,e){var s=o.from,n=o.to,h=p.numberFormatter,b=!0;M="",s===void 0?M="< ":n===void 0&&(M="> "),s!==void 0&&(M+=h(s,a)+t),s!==void 0&&n!==void 0&&(M+=" - "),n!==void 0&&(M+=h(n,a)+t),g.push(y({chart:p,name:M,options:{},drawLegendSymbol:Z.drawRectangle,visible:!0,isDataClass:!0,setState:function(k){for(var D=0,d=i(e);D<d.length;D++)d[D].setState(k)},setVisible:function(){this.visible=b=x.visible=!b;for(var k=0,D=i(e);k<D.length;k++)D[k].setVisible(b);p.legend.colorizeItem(this,b)}},o))}),g},S.defaultColorAxisOptions=U,S.defaultLegendLength=200,S.keepProps=["legendItem"],S}(G);return Array.prototype.push.apply(G.keepProps,u.keepProps),u}),et(_,"Maps/MapNavigationDefaults.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){var X={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};return(0,B.extend)(G.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),G.defaultOptions.mapNavigation=X,X}),et(_,"Maps/MapNavigation.js",[_["Core/Chart/Chart.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=B.doc,$=X.addEvent,Z=X.extend,V=X.isNumber,F=X.merge,I=X.objectEach,E=X.pick;function A(y){y&&(y.preventDefault&&y.preventDefault(),y.stopPropagation&&y.stopPropagation(),y.cancelBubble=!0)}function P(y){this.navButtons=[],this.init(y)}P.prototype.init=function(y){this.chart=y},P.prototype.update=function(y){var c,f=this,m=this.chart,u=m.options.mapNavigation,v=function(M){this.handler.call(m,M),A(M)},S=f.navButtons;for(y&&(u=m.options.mapNavigation=F(m.options.mapNavigation,y));S.length;)S.pop().destroy();E(u.enableButtons,u.enabled)&&!m.renderer.forExport&&(f.navButtonsGroup||(f.navButtonsGroup=m.renderer.g().attr({zIndex:4}).add()),I(u.buttons,function(M,x){M=F(u.buttonOptions,M),!m.styledMode&&M.theme&&((c=M.theme).style=F(M.theme.style,M.style));var p=m.renderer.button(M.text||"",0,0,v,c,void 0,void 0,void 0,x==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[x]).attr({width:M.width,height:M.height,title:m.options.lang[x],padding:M.padding,zIndex:5}).add(f.navButtonsGroup);if(p.handler=M.onclick,$(p.element,"dblclick",A),S.push(p),Z(M,{width:p.width,height:2*p.height}),m.hasLoaded)p.align(M,!1,M.alignTo);else var g=$(m,"load",function(){p.element&&p.align(M,!1,M.alignTo),g()})}),m.hasLoaded||$(m,"render",function(){var M,x,p=m.exportingGroup&&m.exportingGroup.getBBox();if(p){var g=f.navButtonsGroup.getBBox();if(M=p,!((x=g).x>=M.x+M.width||x.x+x.width<=M.x||x.y>=M.y+M.height||x.y+x.height<=M.y)){var r=-g.y-g.height+p.y-5,a=p.y+p.height-g.y+5,t=u.buttonOptions&&u.buttonOptions.verticalAlign;f.navButtonsGroup.attr({translateY:t==="bottom"?r:a})}}})),this.updateEvents(u)},P.prototype.updateEvents=function(y){var c=this.chart;E(y.enableDoubleClickZoom,y.enabled)||y.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||$(c.container,"dblclick",function(f){c.pointer.onContainerDblClick(f)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),E(y.enableMouseWheelZoom,y.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||$(c.container,U.onwheel!==void 0?"wheel":U.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(f){return c.pointer.inClass(f.target,"highcharts-no-mousewheel")||(c.pointer.onContainerMouseWheel(f),A(f)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},Z(G.prototype,{fitToBox:function(y,c){return[["x","width"],["y","height"]].forEach(function(f){var m=f[0],u=f[1];y[m]+y[u]>c[m]+c[u]&&(y[u]>c[u]?(y[u]=c[u],y[m]=c[m]):y[m]=c[m]+c[u]-y[u]),y[u]>c[u]&&(y[u]=c[u]),y[m]<c[m]&&(y[m]=c[m])}),y},mapZoom:function(y,c,f,m,u){this.mapView&&(V(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,V(c)&&V(f)?this.mapView.projection.inverse([c,f]):void 0,V(m)&&V(u)?[m,u]:void 0))}}),$(G,"beforeRender",function(){this.mapNavigation=new P(this),this.mapNavigation.update()}),B.MapNavigation=P}),et(_,"Maps/MapPointer.js",[_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.defined,$=B.extend,Z=B.pick,V=B.wrap,F=G.prototype.normalize,I=0;$(G.prototype,{normalize:function(E,A){var P=this.chart;if(E=F.call(this,E,A),P&&P.mapView){var y=P.mapView.pixelsToLonLat({x:E.chartX-P.plotLeft,y:E.chartY-P.plotTop});y&&$(E,y)}return E},onContainerDblClick:function(E){var A=this.chart;E=this.normalize(E),A.options.mapNavigation.enableDoubleClickZoomTo?A.pointer.inClass(E.target,"highcharts-tracker")&&A.hoverPoint&&A.hoverPoint.zoomTo():A.isInsidePlot(E.chartX-A.plotLeft,E.chartY-A.plotTop)&&A.mapZoom(.5,void 0,void 0,E.chartX,E.chartY)},onContainerMouseWheel:function(E){var A=this.chart;E=this.normalize(E);var P=U(E.wheelDelta)&&-E.wheelDelta/120||E.deltaY||E.detail;Math.abs(P)>=1&&(I+=Math.abs(P),X&&clearTimeout(X),X=setTimeout(function(){I=0},50)),I<10&&A.isInsidePlot(E.chartX-A.plotLeft,E.chartY-A.plotTop)&&A.mapView&&A.mapView.zoomBy((A.options.mapNavigation.mouseWheelSensitivity-1)*-P,void 0,[E.chartX,E.chartY],!(Math.abs(P)<1)&&void 0)}}),V(G.prototype,"zoomOption",function(E){var A=this.chart.options.mapNavigation;Z(A.enableTouchZoom,A.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),E.apply(this,[].slice.call(arguments,1))}),V(G.prototype,"pinchTranslate",function(E,A,P,y,c,f,m){var u;E.call(this,A,P,y,c,f,m),this.chart.options.chart.type==="map"&&this.hasZoom&&(u=y.scaleX>y.scaleY,this.pinchTranslateDirection(!u,A,P,y,c,f,m,u?y.scaleX:y.scaleY))})}),et(_,"Series/ColorMapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.seriesTypes.column.prototype,$=B.addEvent,Z=B.defined;return function(V){var F=[];function I(E){var A=this;A.moveToTopOnHover&&A.graphic&&A.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var A={};return!Z(E.color)||E.state&&E.state!=="normal"||(A[this.colorProp||"fill"]=E.color),A},pointAttribs:U.pointAttribs},V.compose=function(E){var A=E.prototype.pointClass;return F.indexOf(A)===-1&&(F.push(A),$(A,"afterSetState",I)),E}}(X||(X={})),X}),et(_,"Maps/MapSymbols.js",[_["Core/Renderer/SVG/SVGRenderer.js"]],function(G){var B=G.prototype.symbols;function X(U,$,Z,V,F,I,E,A){return[["M",U+F,$],["L",U+Z-I,$],["C",U+Z-I/2,$,U+Z,$+I/2,U+Z,$+I],["L",U+Z,$+V-E],["C",U+Z,$+V-E/2,U+Z-E/2,$+V,U+Z-E,$+V],["L",U+A,$+V],["C",U+A/2,$+V,U,$+V-A/2,U,$+V-A],["L",U,$+F],["C",U,$+F/2,U+F/2,$,U+F,$],["Z"]]}return B.bottombutton=function(U,$,Z,V,F){var I=F&&F.r||0;return X(U-1,$-1,Z,V,0,0,I,I)},B.topbutton=function(U,$,Z,V,F){var I=F&&F.r||0;return X(U-1,$-1,Z,V,I,I,0,0)},B}),et(_,"Core/Chart/MapChart.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(A,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},$(A,P)},function(A,P){function y(){this.constructor=A}$(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),V=B.getOptions,F=U.merge,I=U.pick,E=function(A){function P(){return A!==null&&A.apply(this,arguments)||this}return Z(P,A),P.prototype.init=function(y,c){var f=V().credits,m=F({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:I(f.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:I(f.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},y);A.prototype.init.call(this,m,c)},P}(G);return function(A){A.maps={},A.mapChart=function(P,y,c){return new A(P,y,c)},A.splitPath=function(P){var y;return y=typeof P=="string"?(P=P.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(c){return/[A-za-z]/.test(c)?c:parseFloat(c)}):P,X.prototype.pathToSegments(y)}}(E||(E={})),E}),et(_,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(G){var B,X=-Number.MAX_VALUE,U=Number.MAX_VALUE,$=-Number.MAX_VALUE,Z=Number.MAX_VALUE;if(G.forEach(function(V){var F=V[V.length-2],I=V[V.length-1];typeof F=="number"&&typeof I=="number"&&(U=Math.min(U,F),X=Math.max(X,F),Z=Math.min(Z,I),$=Math.max($,I),B=!0)}),B)return{x1:U,y1:Z,x2:X,y2:$}},pointInPolygon:function(G,B){var X,U,$=!1,Z=G.x,V=G.y;for(X=0,U=B.length-1;X<B.length;U=X++)B[X][1]>V!=B[U][1]>V&&Z<(B[U][0]-B[X][0])*(V-B[X][1])/(B[U][1]-B[X][1])+B[X][0]&&($=!$);return $}}}),et(_,"Series/Map/MapPoint.js",[_["Series/ColorMapComposition.js"],_["Maps/MapUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,c)},function(y,c){function f(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),V=B.boundsFromPath,F=X.seriesTypes.scatter,I=U.extend,E=U.isNumber,A=U.pick,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.options=void 0,f.path=void 0,f.series=void 0,f}return Z(c,y),c.getProjectedPath=function(f,m){return f.projectedPath||(m&&f.geometry?(m.hasCoordinates=!0,f.projectedPath=m.path(f.geometry)):f.projectedPath=f.path),f.projectedPath||[]},c.prototype.applyOptions=function(f,m){var u=this.series,v=y.prototype.applyOptions.call(this,f,m),S=u.joinBy;if(u.mapData&&u.mapMap){var M=S[1],x=y.prototype.getNestedProperty.call(v,M),p=x!==void 0&&u.mapMap[x];p?I(v,p):u.pointArrayMap.indexOf("value")!==-1&&(v.value=v.value||null)}return v},c.prototype.getProjectedBounds=function(f){var m=c.getProjectedPath(this,f),u=V(m),v=this.properties;if(u){var S=v&&v["hc-middle-x"],M=v&&v["hc-middle-y"];u.midX=u.x1+(u.x2-u.x1)*A(this.middleX,E(S)?S:.5);var x=A(this.middleY,E(M)?M:.5);return this.geometry||(x=1-x),u.midY=u.y2-(u.y2-u.y1)*x,u}},c.prototype.onMouseOver=function(f){U.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?y.prototype.onMouseOver.call(this,f):this.series.onMouseOut(f)},c.prototype.setVisible=function(f){var m=f?"show":"hide";this.visible=this.options.visible=!!f,this.dataLabel&&this.dataLabel[m](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},c.prototype.zoomTo=function(){var f=this,m=f.series.chart,u=m.mapView,v=f.bounds;if(u&&v){var S=E(f.insetIndex)&&u.insets[f.insetIndex];if(S){var M=S.projectedUnitsToPixels({x:v.x1,y:v.y1}),x=S.projectedUnitsToPixels({x:v.x2,y:v.y2}),p=u.pixelsToProjectedUnits({x:M.x,y:M.y}),g=u.pixelsToProjectedUnits({x:x.x,y:x.y});v={x1:p.x,y1:p.y,x2:g.x,y2:g.y}}u.fitToBounds(v,void 0,!1),f.series.isDirty=!0,m.redraw()}},c}(F.prototype.pointClass);return I(P.prototype,{dataLabelOnNull:G.pointMembers.dataLabelOnNull,moveToTopOnHover:G.pointMembers.moveToTopOnHover,isValid:G.pointMembers.isValid}),P}),et(_,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}}),et(_,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),et(_,"Extensions/GeoJSON.js",[_["Core/Chart/Chart.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=B.format,Z=X.win,V=U.error,F=U.extend,I=U.merge,E=U.wrap;function A(y,c){c||(c=Object.keys(y.objects)[0]);var f=y.objects[c];if(f["hc-decoded-geojson"])return f["hc-decoded-geojson"];var m=y.arcs;if(y.transform){var u=y.transform,v=u.scale,S=u.translate;m=y.arcs.map(function(g){var r=0,a=0;return g.map(function(t){return(t=t.slice())[0]=(r+=t[0])*v[0]+S[0],t[1]=(a+=t[1])*v[1]+S[1],t})})}var M=function(g){return typeof g[0]=="number"?g.reduce(function(r,a,t){var i=a<0?m[~a]:m[a];return a<0?(i=i.slice(0,t===0?i.length:i.length-1)).reverse():t&&(i=i.slice(1)),r.concat(i)},[]):g.map(M)},x=f.geometries.map(function(g){return{type:"Feature",properties:g.properties,geometry:{type:g.type,coordinates:g.coordinates||M(g.arcs)}}}),p={type:"FeatureCollection",copyright:y.copyright,copyrightShort:y.copyrightShort,copyrightUrl:y.copyrightUrl,features:x,"hc-recommended-mapview":f["hc-recommended-mapview"],bbox:y.bbox,title:y.title};return f["hc-decoded-geojson"]=p,p}function P(y,c,f){c===void 0&&(c="map");var m=[],u=y.type==="Topology"?A(y):y;return u.features.forEach(function(v){var S,M=v.geometry||{},x=M.type,p=M.coordinates,g=v.properties;if((c!=="map"&&c!=="mapbubble"||x!=="Polygon"&&x!=="MultiPolygon")&&(c!=="mapline"||x!=="LineString"&&x!=="MultiLineString")?c==="mappoint"&&x==="Point"&&p.length&&(S={geometry:{coordinates:p,type:x}}):p.length&&(S={geometry:{coordinates:p,type:x}}),S){var r=g&&(g.name||g.NAME),a=g&&g.lon,t=g&&g.lat;m.push(F(S,{lat:typeof t=="number"?t:void 0,lon:typeof a=="number"?a:void 0,name:typeof r=="string"?r:void 0,properties:g}))}}),f&&u.copyrightShort&&(f.chart.mapCredits=$(f.chart.options.credits.mapText,{geojson:u}),f.chart.mapCreditsFull=$(f.chart.options.credits.mapTextFull,{geojson:u})),m}return G.prototype.transformFromLatLon=function(y,c){var f=this.options.chart.proj4||Z.proj4;if(f){var m=c.jsonmarginX,u=m===void 0?0:m,v=c.jsonmarginY,S=v===void 0?0:v,M=c.jsonres,x=M===void 0?1:M,p=c.scale,g=p===void 0?1:p,r=c.xoffset,a=r===void 0?0:r,t=c.xpan,i=t===void 0?0:t,o=c.yoffset,e=o===void 0?0:o,s=c.ypan,n=s===void 0?0:s,h=f(c.crs,[y.lon,y.lat]),b=c.cosAngle||c.rotation&&Math.cos(c.rotation),k=c.sinAngle||c.rotation&&Math.sin(c.rotation),D=c.rotation?[h[0]*b+h[1]*k,-h[0]*k+h[1]*b]:h;return{x:((D[0]-a)*g+i)*x+u,y:-(((e-D[1])*g+n)*x-S)}}V(21,!1,this)},G.prototype.transformToLatLon=function(y,c){var f=this.options.chart.proj4||Z.proj4;if(f){if(y.y!==null){var m=c.jsonmarginX,u=m===void 0?0:m,v=c.jsonmarginY,S=v===void 0?0:v,M=c.jsonres,x=M===void 0?1:M,p=c.scale,g=p===void 0?1:p,r=c.xoffset,a=r===void 0?0:r,t=c.xpan,i=t===void 0?0:t,o=c.yoffset,e=o===void 0?0:o,s=c.ypan,n=s===void 0?0:s,h={x:((y.x-u)/x-i)/g+a,y:((y.y-S)/x+n)/g+e},b=c.cosAngle||c.rotation&&Math.cos(c.rotation),k=c.sinAngle||c.rotation&&Math.sin(c.rotation),D=f(c.crs,"WGS84",c.rotation?{x:h.x*b+h.y*-k,y:h.x*k+h.y*b}:h);return{lat:D.y,lon:D.x}}}else V(21,!1,this)},G.prototype.fromPointToLatLon=function(y){return this.mapView&&this.mapView.projectedUnitsToLonLat(y)},G.prototype.fromLatLonToPoint=function(y){return this.mapView&&this.mapView.lonLatToProjectedUnits(y)},E(G.prototype,"addCredits",function(y,c){c=I(!0,this.options.credits,c),this.mapCredits&&(c.href=null),y.call(this,c),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),X.geojson=P,X.topo2geo=A,{geojson:P,topo2geo:A}}),et(_,"Core/Geometry/PolygonClip.js",[],function(){var G,B=function(U,$,Z){return($[0]-U[0])*(Z[1]-U[1])>($[1]-U[1])*(Z[0]-U[0])},X=function(U,$,Z,V){var F=[U[0]-$[0],U[1]-$[1]],I=[Z[0]-V[0],Z[1]-V[1]],E=U[0]*$[1]-U[1]*$[0],A=Z[0]*V[1]-Z[1]*V[0],P=1/(F[0]*I[1]-F[1]*I[0]),y=[(E*I[0]-A*F[0])*P,(E*I[1]-A*F[1])*P];return y.isIntersection=!0,y};return function(U){U.clipLineString=function($,Z){for(var V=[],F=U.clipPolygon($,Z,!1),I=1;I<F.length;I++)F[I].isIntersection&&F[I-1].isIntersection&&(V.push(F.splice(0,I)),I=0),I===F.length-1&&V.push(F);return V},U.clipPolygon=function($,Z,V){V===void 0&&(V=!0);for(var F,I,E,A=Z[Z.length-1],P=$,y=0;y<Z.length;y++){var c=P;F=Z[y],P=[],I=V?c[c.length-1]:c[0];for(var f=0;f<c.length;f++)E=c[f],B(A,F,E)?(B(A,F,I)||P.push(X(A,F,I,E)),P.push(E)):B(A,F,I)&&P.push(X(A,F,I,E)),I=E;A=F}return P}}(G||(G={})),G}),et(_,"Maps/Projections/LambertConformalConic.js",[],function(){var G=Math.sign||function(V){return V===0?0:V>0?1:-1},B=63.78137,X=Math.PI/180,U=Math.PI/2,$=1e-6,Z=function(V){return Math.tan((U+V)/2)};return function(){function V(F){var I,E=(F.parallels||[]).map(function(f){return f*X}),A=E[0]||0,P=(I=E[1])!==null&&I!==void 0?I:A,y=Math.cos(A);typeof F.projectedBounds=="object"&&(this.projectedBounds=F.projectedBounds);var c=A===P?Math.sin(A):Math.log(y/Math.cos(P))/Math.log(Z(P)/Z(A));Math.abs(c)<1e-10&&(c=1e-10*(G(c)||1)),this.n=c,this.c=y*Math.pow(Z(A),c)/c}return V.prototype.forward=function(F){var I=F[0]*X,E=this,A=E.c,P=E.n,y=E.projectedBounds,c=F[1]*X;A>0?c<-U+$&&(c=-U+$):c>U-$&&(c=U-$);var f=A/Math.pow(Z(c),P),m=f*Math.sin(P*I)*B,u=(A-f*Math.cos(P*I))*B,v=[m,u];return y&&(m<y.x1||m>y.x2||u<y.y1||u>y.y2)&&(v.outside=!0),v},V.prototype.inverse=function(F){var I=F[0]/B,E=F[1]/B,A=this.c,P=this.n,y=A-E,c=G(P)*Math.sqrt(I*I+y*y),f=Math.atan2(I,Math.abs(y))*G(y);return y*P<0&&(f-=Math.PI*G(I)*G(y)),[f/P/X,(2*Math.atan(Math.pow(A/c,1/P))-U)/X]},V}()}),et(_,"Maps/Projections/EqualEarth.js",[],function(){var G=1.340264,B=-.081106,X=893e-6,U=.003796,$=Math.sqrt(3)/2,Z=74.03120656864502;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return V.prototype.forward=function(F){var I=Math.PI/180,E=Math.asin($*Math.sin(F[1]*I)),A=E*E,P=A*A*A;return[F[0]*I*Math.cos(E)*Z/($*(G+3*B*A+P*(7*X+9*U*A))),E*Z*(G+B*A+P*(X+U*A))]},V.prototype.inverse=function(F){var I,E,A,P,y=F[0]/Z,c=F[1]/Z,f=180/Math.PI,m=c;for(P=0;P<12&&(m-=A=(m*(G+B*(I=m*m)+(E=I*I*I)*(X+U*I))-c)/(G+3*B*I+E*(7*X+9*U*I)),!(Math.abs(A)<1e-9));++P);return[f*$*y*(G+3*B*(I=m*m)+(E=I*I*I)*(7*X+9*U*I))/Math.cos(m),f*Math.asin(Math.sin(m)/$)]},V}()}),et(_,"Maps/Projections/Miller.js",[],function(){var G=Math.PI/4,B=Math.PI/180,X=63.78137;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return U.prototype.forward=function($){return[$[0]*B*X,79.7267125*Math.log(Math.tan(G+.4*$[1]*B))]},U.prototype.inverse=function($){return[$[0]/X/B,2.5*(Math.atan(Math.exp($[1]/X*.8))-G)/B]},U}()}),et(_,"Maps/Projections/Orthographic.js",[],function(){var G=Math.PI/180,B=63.78460826781007;return function(){function X(){this.antimeridianCutting=!1,this.bounds={x1:-B,x2:B,y1:-B,y2:B}}return X.prototype.forward=function(U){var $=U[0],Z=U[1]*G,V=[Math.cos(Z)*Math.sin($*G)*B,Math.sin(Z)*B];return($<-90||$>90)&&(V.outside=!0),V},X.prototype.inverse=function(U){var $=U[0]/B,Z=U[1]/B,V=Math.sqrt($*$+Z*Z),F=Math.asin(V),I=Math.sin(F),E=Math.cos(F);return[Math.atan2($*I,V*E)/G,Math.asin(V&&Z*I/V)/G]},X}()}),et(_,"Maps/Projections/WebMercator.js",[],function(){var G=85.0511287798,B=63.78137,X=Math.PI/180;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=G}return U.prototype.forward=function($){var Z=Math.sin($[1]*X),V=[B*$[0]*X,B*Math.log((1+Z)/(1-Z))/2];return Math.abs($[1])>G&&(V.outside=!0),V},U.prototype.inverse=function($){return[$[0]/(B*X),(2*Math.atan(Math.exp($[1]/B))-Math.PI/2)/X]},U}()}),et(_,"Maps/Projections/ProjectionRegistry.js",[_["Maps/Projections/LambertConformalConic.js"],_["Maps/Projections/EqualEarth.js"],_["Maps/Projections/Miller.js"],_["Maps/Projections/Orthographic.js"],_["Maps/Projections/WebMercator.js"]],function(G,B,X,U,$){return{EqualEarth:B,LambertConformalConic:G,Miller:X,Orthographic:U,WebMercator:$}}),et(_,"Maps/Projection.js",[_["Core/Geometry/PolygonClip.js"],_["Maps/Projections/ProjectionRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__spreadArray||function(P,y,c){if(c||arguments.length===2)for(var f,m=0,u=y.length;m<u;m++)!f&&m in y||(f||(f=Array.prototype.slice.call(y,0,m)),f[m]=y[m]);return P.concat(f||Array.prototype.slice.call(y))},$=G.clipLineString,Z=G.clipPolygon,V=X.clamp,F=X.erase,I=2*Math.PI/360,E=1e-6,A=function(P){return P<-180&&(P+=360),P>180&&(P-=360),P};return function(){function P(y){y===void 0&&(y={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=y;var c=y.name,f=y.projectedBounds,m=y.rotation;this.rotator=m?this.getRotator(m):void 0;var u=c?P.registry[c]:void 0;u&&(this.def=new u(y));var v=this.def,S=this.rotator;v&&(this.maxLatitude=v.maxLatitude||90,this.hasGeoProjection=!0),S&&v?(this.forward=function(M){return v.forward(S.forward(M))},this.inverse=function(M){return S.inverse(v.inverse(M))}):v?(this.forward=function(M){return v.forward(M)},this.inverse=function(M){return v.inverse(M)}):S&&(this.forward=S.forward,this.inverse=S.inverse),this.bounds=f==="world"?v&&v.bounds:f}return P.add=function(y,c){P.registry[y]=c},P.greatCircle=function(y,c,f){var m=Math.atan2,u=Math.cos,v=Math.sin,S=Math.sqrt,M=y[1]*I,x=y[0]*I,p=c[1]*I,g=c[0]*I,r=p-M,a=g-x,t=v(r/2)*v(r/2)+u(M)*u(p)*v(a/2)*v(a/2),i=2*m(S(t),S(1-t)),o=6371e3*i,e=Math.round(o/5e5),s=[];if(f&&s.push(y),e>1)for(var n=1/e,h=n;h<.999;h+=n){var b=v((1-h)*i)/v(i),k=v(h*i)/v(i),D=b*u(M)*u(x)+k*u(p)*u(g),d=b*u(M)*v(x)+k*u(p)*v(g),C=m(b*v(M)+k*v(p),S(D*D+d*d)),T=m(d,D);s.push([T/I,C/I])}return f&&s.push(c),s},P.insertGreatCircles=function(y){for(var c=y.length-1;c--;)if(Math.max(Math.abs(y[c][0]-y[c+1][0]),Math.abs(y[c][1]-y[c+1][1]))>10){var f=P.greatCircle(y[c],y[c+1]);f.length&&y.splice.apply(y,U([c+1,0],f,!1))}},P.toString=function(y){var c=y||{},f=c.name,m=c.rotation;return[f,m&&m.join(",")].join(";")},P.prototype.lineIntersectsBounds=function(y){var c,f=this.bounds||{},m=f.x1,u=f.x2,v=f.y1,S=f.y2,M=function(p,g,r){var a=p[0],t=p[1],i=g?0:1;if(typeof r=="number"&&a[g]>=r!=t[g]>=r){var o=(r-a[g])/(t[g]-a[g]),e=a[i]+o*(t[i]-a[i]);return g?[e,r]:[r,e]}},x=y[0];return((c=M(y,0,m))||(c=M(y,0,u)))&&(x=c,y[1]=c),((c=M(y,1,v))||(c=M(y,1,S)))&&(x=c),x},P.prototype.getRotator=function(y){var c=y[0]*I,f=(y[1]||0)*I,m=(y[2]||0)*I,u=Math.cos(f),v=Math.sin(f),S=Math.cos(m),M=Math.sin(m);if(c!==0||f!==0||m!==0)return{forward:function(x){var p=x[0]*I+c,g=x[1]*I,r=Math.cos(g),a=Math.cos(p)*r,t=Math.sin(p)*r,i=Math.sin(g),o=i*u+a*v;return[Math.atan2(t*S-o*M,a*u-i*v)/I,Math.asin(o*S+t*M)/I]},inverse:function(x){var p=x[0]*I,g=x[1]*I,r=Math.cos(g),a=Math.cos(p)*r,t=Math.sin(p)*r,i=Math.sin(g),o=i*S-t*M;return[(Math.atan2(t*S+i*M,a*u+o*v)-c)/I,Math.asin(o*u-a*v)/I]}}},P.prototype.forward=function(y){return y},P.prototype.inverse=function(y){return y},P.prototype.cutOnAntimeridian=function(y,c){var f,m=180,u=[],v=[y];if(y.forEach(function(k,D){var d=y[D-1];if(!D){if(!c)return;d=y[y.length-1]}var C=d[0],T=k[0];if((C<-90||C>90)&&(T<-90||T>90)&&C>0!=T>0){var N=V((m-(C+360)%360)/((T+360)%360-(C+360)%360),0,1),z=d[1]+N*(k[1]-d[1]);u.push({i:D,lat:z,direction:C<0?1:-1,previousLonLat:d,lonLat:k})}}),u.length)if(c){u.length%2==1&&(f=u.slice().sort(function(k,D){return Math.abs(D.lat)-Math.abs(k.lat)})[0],F(u,f));for(var S=u.length-2;S>=0;){var M=u[S].i,x=A(m+u[S].direction*E),p=A(m-u[S].direction*E);(b=y.splice.apply(y,U([M,u[S+1].i-M],P.greatCircle([x,u[S].lat],[x,u[S+1].lat],!0),!1))).push.apply(b,P.greatCircle([p,u[S+1].lat],[p,u[S].lat],!0)),v.push(b),S-=2}if(f)for(var g=0;g<v.length;g++){var r=f.direction,a=f.lat,t=v[g],i=t.indexOf(f.lonLat);if(i>-1){for(var o=(a<0?-1:1)*this.maxLatitude,e=A(m+r*E),s=A(m-r*E),n=P.greatCircle([e,a],[e,o],!0),h=e+120*r;h>-180&&h<180;h+=120*r)n.push([h,o]);n.push.apply(n,P.greatCircle([s,o],[s,f.lat],!0)),t.splice.apply(t,U([i,0],n,!1));break}}}else for(S=u.length;S--;){var b;M=u[S].i,(b=y.splice(M,y.length,[A(m+u[S].direction*E),u[S].lat])).unshift([A(m-u[S].direction*E),u[S].lat]),v.push(b)}return v},P.prototype.path=function(y){var c,f=this,m=this,u=m.bounds,v=m.def,S=m.rotator,M=[],x=y.type==="Polygon"||y.type==="MultiPolygon",p=this.hasGeoProjection,g=!v||v.antimeridianCutting!==!1,r=g?S:void 0,a=g&&v||this;u&&(c=[[u.x1,u.y1],[u.x2,u.y1],[u.x2,u.y2],[u.x1,u.y2]]);var t=function(i){var o=i.map(function(s){if(g){r&&(s=r.forward(s));var n=s[0];Math.abs(n-180)<E&&(n=n<180?179.999999:180.000001),s=[n,s[1]]}return s}),e=[o];p&&(P.insertGreatCircles(o),g&&(e=f.cutOnAntimeridian(o,x))),e.forEach(function(s){if(!(s.length<2)){var n,h,b=!1,k=!1,D=function(O){b?M.push(["L",O[0],O[1]]):(M.push(["M",O[0],O[1]]),b=!0)},d=!1,C=!1,T=s.map(function(O){var j=a.forward(O);return j.outside?d=!0:C=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(g){if(x&&T.push(T[0]),d){if(!C)return;if(c){if(x)T=Z(T,c);else if(u)return void $(T,c).forEach(function(O){b=!1,O.forEach(D)})}}T.forEach(D)}else for(var N=0;N<T.length;N++){var z=s[N],L=T[N];L.outside?k=!0:(x&&!n&&(n=z,s.push(z),T.push(L)),k&&h&&(x&&p?P.greatCircle(h,z).forEach(function(O){return D(a.forward(O))}):b=!1),D(L),h=z,k=!1)}}})};return y.type==="LineString"?t(y.coordinates):y.type==="MultiLineString"?y.coordinates.forEach(function(i){return t(i)}):y.type==="Polygon"?(y.coordinates.forEach(function(i){return t(i)}),M.length&&M.push(["Z"])):y.type==="MultiPolygon"&&(y.coordinates.forEach(function(i){i.forEach(function(o){return t(o)})}),M.length&&M.push(["Z"])),M},P.registry=B,P}()}),et(_,"Maps/MapView.js",[_["Maps/MapViewOptionsDefault.js"],_["Maps/MapViewInsetsOptionsDefault.js"],_["Extensions/GeoJSON.js"],_["Core/Chart/MapChart.js"],_["Maps/MapUtilities.js"],_["Maps/Projection.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var F,I=this&&this.__extends||(F=function(e,s){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,h){n.__proto__=h}||function(n,h){for(var b in h)h.hasOwnProperty(b)&&(n[b]=h[b])},F(e,s)},function(e,s){function n(){this.constructor=e}F(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),E=this&&this.__spreadArray||function(e,s,n){if(n||arguments.length===2)for(var h,b=0,k=s.length;b<k;b++)!h&&b in s||(h||(h=Array.prototype.slice.call(s,0,b)),h[b]=s[b]);return e.concat(h||Array.prototype.slice.call(s))},A=X.topo2geo,P=U.maps,y=$.boundsFromPath,c=$.pointInPolygon,f=V.addEvent,m=V.clamp,u=V.fireEvent,v=V.isArray,S=V.isNumber,M=V.isObject,x=V.isString,p=V.merge,g=V.pick,r=V.relativeLength,a=400.979322,t=function(e,s){var n=s.width,h=s.height,b=Math.max((e.x2-e.x1)/(n/256),(e.y2-e.y1)/(h/256));return Math.log(a/b)/Math.log(2)},i=function(){function e(s,n){var h,b,k=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof o)){var D=E([s.options.chart.map],(s.options.series||[]).map(function(H){return H.mapData}),!0).map(function(H){return k.getGeoMap(H)}),d=[];D.forEach(function(H){if(H&&(h||(h=H["hc-recommended-mapview"]),H.bbox)){var W=H.bbox,q=W[0],tt=W[1],J=W[2],nt=W[3];d.push({x1:q,y1:tt,x2:J,y2:nt})}});var C=d.length&&e.compositeBounds(d);if(C){var T=C.x1,N=C.y1,z=C.x2,L=C.y2;b=z-T>180&&L-N>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[N,L],rotation:[-(T+z)/2]}}this.geoMap=D[0]}this.userOptions=n||{};var O=p(G,{projection:b},h,n),j=h&&h.insets,Y=n&&n.insets;j&&Y&&(O.insets=e.mergeInsets(j,Y)),this.chart=s,this.center=O.center,this.options=O,this.projection=new Z(O.projection),this.playingField=s.plotBox,this.zoom=O.zoom||0,this.createInsets(),this.eventsToUnbind.push(f(s,"afterSetChartSize",function(){k.playingField=k.getField(),k.minZoom!==void 0&&k.minZoom!==k.zoom||(k.fitToBounds(void 0,void 0,!1),!k.chart.hasRendered&&S(k.userOptions.zoom)&&(k.zoom=k.userOptions.zoom),k.userOptions.center&&p(!0,k.center,k.userOptions.center))})),this.setUpEvents()}return e.mergeInsets=function(s,n){var h=function(k){var D={};return k.forEach(function(d,C){D[d&&d.id||"i".concat(C)]=d}),D},b=p(h(s),h(n));return Object.keys(b).map(function(k){return b[k]})},e.prototype.createInsets=function(){var s=this,n=this.options,h=n.insets;h&&h.forEach(function(b){var k=new o(s,p(n.insetOptions,b));s.insets.push(k)})},e.prototype.fitToBounds=function(s,n,h,b){h===void 0&&(h=!0);var k=s||this.getProjectedBounds();if(k){var D=g(n,s?0:this.options.padding),d=this.getField(!1),C=v(D)?D:[D,D,D,D];this.padding=[r(C[0],d.height),r(C[1],d.width),r(C[2],d.height),r(C[3],d.width)],this.playingField=this.getField();var T=t(k,this.playingField);s||(this.minZoom=T);var N=this.projection.inverse([(k.x2+k.x1)/2,(k.y2+k.y1)/2]);this.setView(N,T,h,b)}},e.prototype.getField=function(s){s===void 0&&(s=!0);var n=s?this.padding:[0,0,0,0];return{x:n[3],y:n[0],width:this.chart.plotWidth-n[1]-n[3],height:this.chart.plotHeight-n[0]-n[2]}},e.prototype.getGeoMap=function(s){if(x(s))return P[s];if(M(s,!0)){if(s.type==="FeatureCollection")return s;if(s.type==="Topology")return A(s)}},e.prototype.getMapBBox=function(){var s=this.getProjectedBounds(),n=this.getScale();if(s){var h=this.padding,b=this.projectedUnitsToPixels({x:s.x1,y:s.y2});return{width:(s.x2-s.x1)*n+h[1]+h[3],height:(s.y2-s.y1)*n+h[0]+h[2],x:b.x-h[3],y:b.y-h[0]}}},e.prototype.getProjectedBounds=function(){var s=this.projection,n=this.chart.series.reduce(function(d,C){var T=C.getProjectedBounds&&C.getProjectedBounds();return T&&C.options.affectsMapView!==!1&&d.push(T),d},[]),h=this.options.fitToGeometry;if(h){if(!this.fitToGeometryCache)if(h.type==="MultiPoint"){var b=h.coordinates.map(function(d){return s.forward(d)}),k=b.map(function(d){return d[0]}),D=b.map(function(d){return d[1]});this.fitToGeometryCache={x1:Math.min.apply(0,k),x2:Math.max.apply(0,k),y1:Math.min.apply(0,D),y2:Math.max.apply(0,D)}}else this.fitToGeometryCache=y(s.path(h));return this.fitToGeometryCache}return this.projection.bounds||e.compositeBounds(n)},e.prototype.getScale=function(){return 256/a*Math.pow(2,this.zoom)},e.prototype.getSVGTransform=function(){var s=this.playingField,n=s.x,h=s.y,b=s.width,k=s.height,D=this.projection.forward(this.center),d=this.projection.hasCoordinates?-1:1,C=this.getScale(),T=C*d;return{scaleX:C,scaleY:T,translateX:n+b/2-D[0]*C,translateY:h+k/2-D[1]*T}},e.prototype.lonLatToPixels=function(s){var n=this.lonLatToProjectedUnits(s);if(n)return this.projectedUnitsToPixels(n)},e.prototype.lonLatToProjectedUnits=function(s){var n=this.chart,h=n.mapTransforms;if(h){for(var b in h)if(Object.hasOwnProperty.call(h,b)&&h[b].hitZone){var k=n.transformFromLatLon(s,h[b]);if(k&&c(k,h[b].hitZone.coordinates[0]))return k}return n.transformFromLatLon(s,h.default)}for(var D=0,d=this.insets;D<d.length;D++){var C=d[D];if(C.options.geoBounds&&c({x:s.lon,y:s.lat},C.options.geoBounds.coordinates[0])){var T=C.projection.forward([s.lon,s.lat]),N=C.projectedUnitsToPixels({x:T[0],y:T[1]});return this.pixelsToProjectedUnits(N)}}var z=this.projection.forward([s.lon,s.lat]);if(!z.outside)return{x:z[0],y:z[1]}},e.prototype.projectedUnitsToLonLat=function(s){var n=this.chart,h=n.mapTransforms;if(h){for(var b in h)if(Object.hasOwnProperty.call(h,b)&&h[b].hitZone&&c(s,h[b].hitZone.coordinates[0]))return n.transformToLatLon(s,h[b]);return n.transformToLatLon(s,h.default)}for(var k=this.projectedUnitsToPixels(s),D=0,d=this.insets;D<d.length;D++){var C=d[D];if(C.hitZone&&c(k,C.hitZone.coordinates[0])){var T=C.pixelsToProjectedUnits(k),N=C.projection.inverse([T.x,T.y]);return{lon:N[0],lat:N[1]}}}var z=this.projection.inverse([s.x,s.y]);return{lon:z[0],lat:z[1]}},e.prototype.redraw=function(s){this.chart.series.forEach(function(n){n.useMapGeometry&&(n.isDirty=!0)}),this.chart.redraw(s)},e.prototype.setView=function(s,n,h,b){h===void 0&&(h=!0),s&&(this.center=s),typeof n=="number"&&(typeof this.minZoom=="number"&&(n=Math.max(n,this.minZoom)),typeof this.options.maxZoom=="number"&&(n=Math.min(n,this.options.maxZoom)),S(n)&&(this.zoom=n));var k=this.getProjectedBounds();if(k){var D=this.projection.forward(this.center),d=this.playingField,C=d.x,T=d.y,N=d.width,z=d.height,L=this.getScale(),O=this.projectedUnitsToPixels({x:k.x1,y:k.y1}),j=this.projectedUnitsToPixels({x:k.x2,y:k.y2}),Y=[(k.x1+k.x2)/2,(k.y1+k.y2)/2],H=O.x,W=j.y,q=j.x,tt=O.y;q-H<N?D[0]=Y[0]:H<C&&q<C+N?D[0]+=Math.max(H-C,q-N-C)/L:q>C+N&&H>C&&(D[0]+=Math.min(q-N-C,H-C)/L),tt-W<z?D[1]=Y[1]:W<T&&tt<T+z?D[1]-=Math.max(W-T,tt-z-T)/L:tt>T+z&&W>T&&(D[1]-=Math.min(tt-z-T,W-T)/L),this.center=this.projection.inverse(D),this.insets.forEach(function(J){J.options.field&&(J.hitZone=J.getHitZone(),J.playingField=J.getField())}),this.render()}u(this,"afterSetView"),h&&this.redraw(b)},e.prototype.projectedUnitsToPixels=function(s){var n=this.getScale(),h=this.projection.forward(this.center),b=this.playingField,k=b.x+b.width/2,D=b.y+b.height/2;return{x:k-n*(h[0]-s.x),y:D+n*(h[1]-s.y)}},e.prototype.pixelsToLonLat=function(s){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(s))},e.prototype.pixelsToProjectedUnits=function(s){var n=s.x,h=s.y,b=this.getScale(),k=this.projection.forward(this.center),D=this.playingField,d=D.x+D.width/2,C=D.y+D.height/2;return{x:k[0]+(n-d)/b,y:k[1]-(h-C)/b}},e.prototype.setUpEvents=function(){var s,n,h,b=this,k=this.chart,D=function(d){var C=k.pointer.pinchDown,T=b.projection,N=k.mouseDownX,z=k.mouseDownY;if(C.length===1&&(N=C[0].chartX,z=C[0].chartY),typeof N=="number"&&typeof z=="number"){var L=""+N+",".concat(z),O=d.originalEvent,j=O.chartX,Y=O.chartY;L!==n&&(n=L,s=b.projection.forward(b.center),h=(b.projection.options.rotation||[0,0]).slice());var H=T.def&&T.def.bounds,W=H&&t(H,b.playingField)||-1/0;if(T.options.name==="Orthographic"&&(b.minZoom||1/0)<1.1*W){var q=440/(b.getScale()*Math.min(k.plotWidth,k.plotHeight));if(h){var tt=(N-j)*q-h[0],J=m(-h[1]-(z-Y)*q,-80,80),nt=b.zoom;b.update({projection:{rotation:[-tt,-J]}},!1),b.zoom=nt,k.redraw(!1)}}else if(S(j)&&S(Y)){var lt=b.getScale(),gt=b.projection.hasCoordinates?1:-1,mt=b.projection.inverse([s[0]+(N-j)/lt,s[1]-(z-Y)/lt*gt]);b.setView(mt,void 0,!0,!1)}d.preventDefault()}};f(k,"pan",D),f(k,"touchpan",D),f(k,"selection",function(d){if(d.resetSelection)b.zoomBy();else{var C=d.x-k.plotLeft,T=d.y-k.plotTop,N=b.pixelsToProjectedUnits({x:C,y:T}),z=N.y,L=N.x,O=b.pixelsToProjectedUnits({x:C+d.width,y:T+d.height}),j=O.y,Y=O.x;b.fitToBounds({x1:L,y1:z,x2:Y,y2:j},void 0,!0,!d.originalEvent.touches&&void 0),/^touch/.test(d.originalEvent.type)||k.showResetZoom(),d.preventDefault()}})},e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},e.prototype.update=function(s,n,h){n===void 0&&(n=!0);var b=s.projection,k=b&&Z.toString(b)!==Z.toString(this.options.projection),D=!1;p(!0,this.userOptions,s),p(!0,this.options,s),"insets"in s&&(this.insets.forEach(function(d){return d.destroy()}),this.insets.length=0,D=!0),(k||"fitToGeometry"in s)&&delete this.fitToGeometryCache,(k||D)&&(this.chart.series.forEach(function(d){var C=d.transformGroups;if(d.clearBounds&&d.clearBounds(),d.isDirty=!0,d.isDirtyData=!0,D&&C)for(;C.length>1;){var T=C.pop();T&&T.destroy()}}),k&&(this.projection=new Z(this.options.projection)),D&&this.createInsets(),s.center||S(s.zoom)||this.fitToBounds(void 0,void 0,!1)),s.center||S(s.zoom)?this.setView(this.options.center,s.zoom,!1):"fitToGeometry"in s&&this.fitToBounds(void 0,void 0,!1),n&&this.chart.redraw(h)},e.prototype.zoomBy=function(s,n,h,b){var k=this.chart,D=this.projection.forward(this.center),d=n?this.projection.forward(n):[],C=d[0],T=d[1];if(typeof s=="number"){var N=this.zoom+s,z=void 0;if(h){var L=h[0],O=h[1],j=this.getScale(),Y=L-k.plotLeft-k.plotWidth/2,H=O-k.plotTop-k.plotHeight/2;C=D[0]+Y/j,T=D[1]+H/j}typeof C=="number"&&typeof T=="number"&&(j=1-Math.pow(2,this.zoom)/Math.pow(2,N),Y=D[0]-C,H=D[1]-T,D[0]-=Y*j,D[1]+=H*j,z=this.projection.inverse(D)),this.setView(z,N,void 0,b)}else this.fitToBounds(void 0,void 0,void 0,b)},e.compositeBounds=function(s){if(s.length)return s.slice(1).reduce(function(n,h){return n.x1=Math.min(n.x1,h.x1),n.y1=Math.min(n.y1,h.y1),n.x2=Math.max(n.x2,h.x2),n.y2=Math.max(n.y2,h.y2),n},p(s[0]))},e}(),o=function(e){function s(n,h){var b=e.call(this,n.chart,h)||this;if(b.id=h.id,b.mapView=n,b.options=p(B,h),b.allBounds=[],b.options.geoBounds){var k=n.projection.path(b.options.geoBounds);b.geoBoundsProjectedBox=y(k),b.geoBoundsProjectedPolygon=k.map(function(D){return[D[1]||0,D[2]||0]})}return b}return I(s,e),s.prototype.getField=function(n){n===void 0&&(n=!0);var h=this.hitZone;if(h){var b=n?this.padding:[0,0,0,0],k=h.coordinates[0],D=k.map(function(L){return L[0]}),d=k.map(function(L){return L[1]}),C=Math.min.apply(0,D)+b[3],T=Math.max.apply(0,D)-b[1],N=Math.min.apply(0,d)+b[0],z=Math.max.apply(0,d)-b[2];if(S(C)&&S(N))return{x:C,y:N,width:T-C,height:z-N}}return e.prototype.getField.call(this,n)},s.prototype.getHitZone=function(){var n=this,h=n.chart,b=n.mapView,k=n.options,D=(k.field||{}).coordinates;if(D){var d=D[0];if(k.units==="percent"){var C=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||p(h.plotBox,{x:0,y:0});d=d.map(function(T){return[r(T[0]+"%",C.width,C.x),r(T[1]+"%",C.height,C.y)]})}return{type:"Polygon",coordinates:[d]}}},s.prototype.getProjectedBounds=function(){return i.compositeBounds(this.allBounds)},s.prototype.isInside=function(n){var h=this.geoBoundsProjectedBox,b=this.geoBoundsProjectedPolygon;return!!(h&&n.x>=h.x1&&n.x<=h.x2&&n.y>=h.y1&&n.y<=h.y2&&b&&c(n,b))},s.prototype.render=function(){var n=this,h=n.chart,b=n.mapView,k=n.options,D=k.borderPath||k.field;if(D&&b.group){var d=!0;this.border||(this.border=h.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),d=!1),h.styledMode||this.border.attr({stroke:k.borderColor,"stroke-width":k.borderWidth});var C=Math.round(this.border.strokeWidth())%2/2,T=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||b.playingField,N=(D.coordinates||[]).reduce(function(z,L){return L.reduce(function(O,j,Y){var H=j[0],W=j[1];return k.units==="percent"&&(H=h.plotLeft+r(H+"%",T.width,T.x),W=h.plotTop+r(W+"%",T.height,T.y)),H=Math.floor(H)+C,W=Math.floor(W)+C,O.push(Y===0?["M",H,W]:["L",H,W]),O},z)},[]);this.border[d?"animate":"attr"]({d:N})}},s.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(n){return n()})},s.prototype.setUpEvents=function(){},s}(i);return f(U,"afterInit",function(){this.mapView=new i(this,this.options.mapView)}),i}),et(_,"Series/Map/MapSeries.js",[_["Core/Animation/AnimationUtilities.js"],_["Series/ColorMapComposition.js"],_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Chart/MapChart.js"],_["Series/Map/MapPoint.js"],_["Maps/MapView.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P){var y,c=this&&this.__extends||(y=function(k,D){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,C){d.__proto__=C}||function(d,C){for(var T in C)C.hasOwnProperty(T)&&(d[T]=C[T])},y(k,D)},function(k,D){function d(){this.constructor=k}y(k,D),k.prototype=D===null?Object.create(D):(d.prototype=D.prototype,new d)}),f=G.animObject,m=U.noop,u=Z.splitPath,v=E.seriesTypes,S=v.column,M=v.scatter,x=P.extend,p=P.find,g=P.fireEvent,r=P.getNestedProperty,a=P.isArray,t=P.defined,i=P.isNumber,o=P.isObject,e=P.merge,s=P.objectEach,n=P.pick,h=P.splat,b=function(k){function D(){var d=k!==null&&k.apply(this,arguments)||this;return d.chart=void 0,d.data=void 0,d.group=void 0,d.joinBy=void 0,d.options=void 0,d.points=void 0,d.processedData=[],d}return c(D,k),D.prototype.animate=function(d){var C=this.chart,T=this.group,N=f(this.options.animation);C.renderer.isSVG&&(d?T.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.001,scaleY:.001}):T.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1},N))},D.prototype.animateDrilldown=function(d){var C=this.chart,T=this.group;C.renderer.isSVG&&(d?T.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(T.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),C.drilldown&&C.drilldown.fadeInGroup(this.dataLabelsGroup)))},D.prototype.animateDrillupFrom=function(){var d=this.chart;d.renderer.isSVG&&this.group.animate({translateX:d.plotLeft+d.plotWidth/2,translateY:d.plotTop+d.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},D.prototype.animateDrillupTo=function(d){S.prototype.animateDrillupTo.call(this,d)},D.prototype.clearBounds=function(){this.points.forEach(function(d){delete d.bounds,delete d.insetIndex,delete d.projectedPath}),delete this.bounds},D.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},D.prototype.drawMapDataLabels=function(){I.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},D.prototype.drawPoints=function(){var d=this,C=this,T=this,N=T.chart,z=T.group,L=T.transformGroups,O=L===void 0?[]:L,j=N.mapView,Y=N.renderer;j&&(this.transformGroups=O,O[0]||(O[0]=Y.g().add(z)),j.insets.forEach(function(H,W){O[W+1]||O.push(Y.g().add(z))}),this.doFullTranslate()&&(this.points.forEach(function(H){var W=H.graphic,q=H.shapeArgs;H.group=O[typeof H.insetIndex=="number"?H.insetIndex+1:0],W&&W.parentGroup!==H.group&&W.add(H.group),q&&N.hasRendered&&!N.styledMode&&(q.fill=d.pointAttribs(H,H.state).fill)}),S.prototype.drawPoints.apply(this),this.points.forEach(function(H){var W=H.graphic;if(W){var q=W.animate,tt="";H.name&&(tt+="highcharts-name-"+H.name.replace(/ /g,"-").toLowerCase()),H.properties&&H.properties["hc-key"]&&(tt+=" highcharts-key-"+H.properties["hc-key"].toString().toLowerCase()),tt&&W.addClass(tt),N.styledMode&&W.css(d.pointAttribs(H,H.selected?"select":void 0)),W.animate=function(J,nt,lt){var gt=i(J["stroke-width"])&&!i(W["stroke-width"]),mt=i(W["stroke-width"])&&!i(J["stroke-width"]);if(gt||mt){var bt=n(C.getStrokeWidth(C.options),1)/(N.mapView&&N.mapView.getScale()||1);gt&&(W["stroke-width"]=bt),mt&&(J["stroke-width"]=bt)}var yt=q.call(W,J,nt,mt?function(){W.element.removeAttribute("stroke-width"),delete W["stroke-width"],lt&<.apply(this,arguments)}:lt);return yt}}})),O.forEach(function(H,W){var q=(W===0?j:j.insets[W-1]).getSVGTransform(),tt=n(d.getStrokeWidth(d.options),1),J=q.scaleX,nt=q.scaleY>0?1:-1,lt=function(yt){(C.points||[]).forEach(function(dt){var ot,at=dt.graphic;at&&at["stroke-width"]&&(ot=d.getStrokeWidth(dt.options))&&at.attr({"stroke-width":ot/yt})})};if(Y.globalAnimation&&N.hasRendered){var gt=Number(H.attr("translateX")),mt=Number(H.attr("translateY")),bt=Number(H.attr("scaleX"));H.attr({animator:0}).animate({animator:1},{step:function(yt,dt){var ot=bt+(J-bt)*dt.pos;H.attr({translateX:gt+(q.translateX-gt)*dt.pos,translateY:mt+(q.translateY-mt)*dt.pos,scaleX:ot,scaleY:ot*nt,"stroke-width":tt/ot}),lt(ot)}})}else H.attr(e(q,{"stroke-width":tt/J})),lt(J)}),this.drawMapDataLabels())},D.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var d=this.chart.mapView,C=d.insets,T=d.projection,N=[];(this.points||[]).forEach(function(z){if(z.path||z.geometry){if(typeof z.path=="string"?z.path=u(z.path):a(z.path)&&z.path[0]==="M"&&(z.path=A.prototype.pathToSegments(z.path)),!z.bounds){var L=z.getProjectedBounds(T);if(L){z.labelrank=n(z.labelrank,(L.x2-L.x1)*(L.y2-L.y1));var O=L.midX,j=L.midY;if(C&&i(O)&&i(j)){var Y=p(C,function(H){return H.isInside({x:O,y:j})});Y&&(delete z.projectedPath,(L=z.getProjectedBounds(Y.projection))&&Y.allBounds.push(L),z.insetIndex=C.indexOf(Y))}z.bounds=L}}z.bounds&&z.insetIndex===void 0&&N.push(z.bounds)}}),this.bounds=F.compositeBounds(N)}return this.bounds},D.prototype.getStrokeWidth=function(d){var C=this.pointAttrToOptions;return d[C&&C["stroke-width"]||"borderWidth"]},D.prototype.hasData=function(){return!!this.processedXData.length},D.prototype.pointAttribs=function(d,C){var T=d.series.chart,N=T.mapView,z=T.styledMode?this.colorAttribs(d):S.prototype.pointAttribs.call(this,d,C),L=this.getStrokeWidth(d.options);if(C){var O=e(this.options.states[C],d.options.states&&d.options.states[C]||{}),j=this.getStrokeWidth(O);t(j)&&(L=j)}L&&N&&(L/=N.getScale());var Y=this.getStrokeWidth(this.options);return z.dashstyle&&N&&i(Y)&&(L=Y/N.getScale()),d.visible||(z.fill=this.options.nullColor),t(L)?z["stroke-width"]=L:delete z["stroke-width"],z["stroke-linecap"]=z["stroke-linejoin"]=this.options.linecap,z},D.prototype.updateData=function(){return!this.processedData&&k.prototype.updateData.apply(this,arguments)},D.prototype.setData=function(d,C,T,N){C===void 0&&(C=!0),delete this.bounds,k.prototype.setData.call(this,d,!1,void 0,N),this.processData(),this.generatePoints(),C&&this.chart.redraw(T)},D.prototype.processData=function(){var d,C,T,N,z=this.options,L=z.data,O=this.chart.options.chart,j=this.joinBy,Y=z.keys||this.pointArrayMap,H=[],W={},q=this.chart.mapView,tt=q&&(o(z.mapData,!0)?q.getGeoMap(z.mapData):q.geoMap),J=this.chart.mapTransforms;this.chart.mapTransforms=J=O.mapTransforms||tt&&tt["hc-transform"]||J,J&&s(J,function(bt){bt.rotation&&(bt.cosAngle=Math.cos(bt.rotation),bt.sinAngle=Math.sin(bt.rotation))}),a(z.mapData)?N=z.mapData:tt&&tt.type==="FeatureCollection"&&(this.mapTitle=tt.title,N=U.geojson(tt,this.type,this)),this.processedData=[];var nt=this.processedData;if(L&&L.forEach(function(bt,yt){var dt=0;if(i(bt))nt[yt]={value:bt};else if(a(bt)){nt[yt]={},!z.keys&&bt.length>Y.length&&typeof bt[0]=="string"&&(nt[yt]["hc-key"]=bt[0],++dt);for(var ot=0;ot<Y.length;++ot,++dt)Y[ot]&&bt[dt]!==void 0&&(Y[ot].indexOf(".")>0?V.prototype.setNestedProperty(nt[yt],bt[dt],Y[ot]):nt[yt][Y[ot]]=bt[dt])}else nt[yt]=L[yt];j&&j[0]==="_i"&&(nt[yt]._i=yt)}),N){for(this.mapData=N,this.mapMap={},T=0;T<N.length;T++)C=(d=N[T]).properties,d._i=T,j[0]&&C&&C[j[0]]&&(d[j[0]]=C[j[0]]),W[d[j[0]]]=d;if(this.mapMap=W,j[1]){var lt=j[1];nt.forEach(function(bt){var yt=r(lt,bt);W[yt]&&H.push(W[yt])})}if(z.allAreas){if(j[1]){var gt=j[1];nt.forEach(function(bt){H.push(r(gt,bt))})}var mt="|"+H.map(function(bt){return bt&&bt[j[0]]}).join("|")+"|";N.forEach(function(bt){j[0]&&mt.indexOf("|"+bt[j[0]]+"|")!==-1||nt.push(e(bt,{value:null}))})}}this.processedXData=new Array(nt.length)},D.prototype.setOptions=function(d){var C=I.prototype.setOptions.call(this,d),T=C.joinBy;return T===null&&(T="_i"),(T=this.joinBy=h(T))[1]||(T[1]=T[0]),C},D.prototype.translate=function(){var d=this,C=d.doFullTranslate(),T=this.chart.mapView,N=T&&T.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!T||T.userOptions.center||i(T.userOptions.zoom)?this.getProjectedBounds():T.fitToBounds(void 0,void 0,!1)),T){var z=T.getSVGTransform();d.points.forEach(function(L){var O=i(L.insetIndex)&&T.insets[L.insetIndex].getSVGTransform()||z;O&&L.bounds&&i(L.bounds.midX)&&i(L.bounds.midY)&&(L.plotX=L.bounds.midX*O.scaleX+O.translateX,L.plotY=L.bounds.midY*O.scaleY+O.translateY),C&&(L.shapeType="path",L.shapeArgs={d:V.getProjectedPath(L,N)})})}g(d,"afterTranslate")},D.defaultOptions=e(M.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var d=this.series.chart.numberFormatter,C=this.point.value;return i(C)?d(C,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"butt",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"}}}),D}(M);return x(b.prototype,{type:"map",axisTypes:B.seriesMembers.axisTypes,colorAttribs:B.seriesMembers.colorAttribs,colorKey:B.seriesMembers.colorKey,directTouch:!0,drawDataLabels:m,drawGraph:m,drawLegendSymbol:$.drawRectangle,forceDL:!0,getCenter:X.getCenter,getExtremesFromAll:!0,getSymbol:m,isCartesian:!1,parallelArrays:B.seriesMembers.parallelArrays,pointArrayMap:B.seriesMembers.pointArrayMap,pointClass:V,preserveAspectRatio:!0,searchPoint:m,trackerGroups:B.seriesMembers.trackerGroups,useMapGeometry:!0}),B.compose(b),E.registerSeriesType("map",b),b}),et(_,"Series/MapLine/MapLineSeries.js",[_["Series/Map/MapSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(E,A){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var c in y)y.hasOwnProperty(c)&&(P[c]=y[c])},U(E,A)},function(E,A){function P(){this.constructor=E}U(E,A),E.prototype=A===null?Object.create(A):(P.prototype=A.prototype,new P)}),Z=B.series,V=X.extend,F=X.merge,I=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return $(A,E),A.prototype.pointAttribs=function(P,y){var c=G.prototype.pointAttribs.call(this,P,y);return c.fill=this.options.fillColor,c},A.defaultOptions=F(G.defaultOptions,{lineWidth:1,fillColor:"none"}),A}(G);return V(I.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:Z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),B.registerSeriesType("mapline",I),I}),et(_,"Series/MapPoint/MapPointPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(F,I){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},X(F,I)},function(F,I){function E(){this.constructor=F}X(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=G.seriesTypes.scatter,Z=B.isNumber,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return U(I,F),I.prototype.isValid=function(){return!!(this.options.geometry||Z(this.x)&&Z(this.y)||Z(this.options.lon)&&Z(this.options.lat))},I}($.prototype.pointClass);return V}),et(_,"Series/MapPoint/MapPointSeries.js",[_["Core/Globals.js"],_["Series/MapPoint/MapPointPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(u,v){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,M){S.__proto__=M}||function(S,M){for(var x in M)M.hasOwnProperty(x)&&(S[x]=M[x])},Z(u,v)},function(u,v){function S(){this.constructor=u}Z(u,v),u.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),F=G.noop,I=X.seriesTypes,E=I.map,A=I.scatter,P=$.extend,y=$.fireEvent,c=$.isNumber,f=$.merge,m=function(u){function v(){var S=u!==null&&u.apply(this,arguments)||this;return S.chart=void 0,S.data=void 0,S.options=void 0,S.points=void 0,S.clearBounds=E.prototype.clearBounds,S}return V(v,u),v.prototype.drawDataLabels=function(){u.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},v.prototype.projectPoint=function(S){var M=this.chart.mapView;if(M){var x=S.geometry,p=S.lon,g=S.lat,r=x&&x.type==="Point"&&x.coordinates;if(c(p)&&c(g)&&(r=[p,g]),r)return M.lonLatToProjectedUnits({lon:r[0],lat:r[1]})}},v.prototype.translate=function(){var S=this,M=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),M){var x=M.getSVGTransform(),p=M.projection.hasCoordinates;this.points.forEach(function(g){var r,a=g.x,t=a===void 0?void 0:a,i=g.y,o=i===void 0?void 0:i,e=c(g.insetIndex)&&M.insets[g.insetIndex].getSVGTransform()||x,s=S.projectPoint(g.options)||g.properties&&S.projectPoint(g.properties);if(s?(t=s.x,o=s.y):g.bounds&&(t=g.bounds.midX,o=g.bounds.midY,e&&c(t)&&c(o)&&(g.plotX=t*e.scaleX+e.translateX,g.plotY=o*e.scaleY+e.translateY,r=!0)),c(t)&&c(o)){if(!r){var n=M.projectedUnitsToPixels({x:t,y:o});g.plotX=n.x,g.plotY=p?n.y:S.chart.plotHeight-n.y}}else g.y=g.plotX=g.plotY=void 0;g.isInside=S.isPointInside(g),g.zone=S.zones.length?g.getZone():void 0})}y(this,"afterTranslate")},v.defaultOptions=f(A.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),v}(A);return U.prototype.symbols.mapmarker=function(u,v,S,M,x){var p,g,r=x&&x.context==="legend";r?(p=u+S/2,g=v+M):x&&typeof x.anchorX=="number"&&typeof x.anchorY=="number"?(p=x.anchorX,g=x.anchorY):(p=u+S/2,g=v+M/2,v-=M);var a=r?M/3:M/2;return[["M",p,g],["C",p,g,p-a,v+1.5*a,p-a,v+a],["A",a,a,1,1,1,p+a,v+a],["C",p+a,v+1.5*a,p,g,p,g],["Z"]]},P(m.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:B,searchPoint:F,useMapGeometry:!0}),X.registerSeriesType("mappoint",m),m}),et(_,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),et(_,"Series/Bubble/BubbleLegendItem.js",[_["Core/Color/Color.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=G.parse,Z=X.noop,V=U.arrayMax,F=U.arrayMin,I=U.isNumber,E=U.merge,A=U.pick,P=U.stableSort;return function(){function y(c,f){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(c,f)}return y.prototype.init=function(c,f){this.options=c,this.visible=!0,this.chart=f.chart,this.legend=f},y.prototype.addToLegend=function(c){c.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(c){var f,m=this.chart,u=A(c.options.itemDistance,20),v=this.legendItem||{},S=this.options,M=S.ranges,x=S.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(S.labels.style.fontSize),M&&M.length&&I(M[0].value)){P(M,function(a,t){return t.value-a.value}),this.ranges=M,this.setOptions(),this.render();var p=this.getMaxLabelSize(),g=this.ranges[0].radius,r=2*g;f=(f=x-g+p.width)>0?f:0,this.maxLabel=p,this.movementX=S.labels.align==="left"?f:0,v.labelWidth=r+f+u,v.labelHeight=r+this.fontMetrics.h/2}else c.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var c=this.ranges,f=this.options,m=this.chart.series[f.seriesIndex],u=this.legend.baseline,v={zIndex:f.zIndex,"stroke-width":f.borderWidth},S={zIndex:f.zIndex,"stroke-width":f.connectorWidth},M={align:this.legend.options.rtl||f.labels.align==="left"?"right":"left",zIndex:f.zIndex},x=m.options.marker.fillOpacity,p=this.chart.styledMode;c.forEach(function(g,r){p||(v.stroke=A(g.borderColor,f.borderColor,m.color),v.fill=A(g.color,f.color,x!==1?$(m.color).setOpacity(x).get("rgba"):m.color),S.stroke=A(g.connectorColor,f.connectorColor,m.color)),c[r].radius=this.getRangeRadius(g.value),c[r]=E(c[r],{center:c[0].radius-c[r].radius+u}),p||E(!0,c[r],{bubbleAttribs:E(v),connectorAttribs:E(S),labelAttribs:M})},this)},y.prototype.getRangeRadius=function(c){var f=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=f.ranges[0].value,S=f.ranges[f.ranges.length-1].value,M=f.minSize,x=f.maxSize;return u.getRadius.call(this,S,v,M,x,c)},y.prototype.render=function(){var c=this.legendItem||{},f=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),c.symbol=f.g("bubble-legend"),c.label=f.g("bubble-legend-item"),c.symbol.translateX=0,c.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var S=v[u];S.value>=m&&this.renderRange(S)}c.symbol.add(c.label),c.label.add(c.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(c){var f=this.ranges[0],m=this.legend,u=this.options,v=u.labels,S=this.chart,M=S.series[u.seriesIndex],x=S.renderer,p=this.symbols,g=p.labels,r=c.center,a=Math.abs(c.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,s=u.connectorWidth,n=f.radius||0,h=r-a-e/2+s/2,b=this.fontMetrics,k=b.f/2-(b.h-b.f)/2,D=(h%1?1:.5)-(s%2?0:.5),d=x.styledMode,C=o||i==="left"?-t:t;i==="center"&&(C=0,u.connectorDistance=0,c.labelAttribs.align="center");var T=h+u.labels.y,N=n+C+u.labels.x;p.bubbleItems.push(x.circle(n,r+D,a).attr(d?{}:c.bubbleAttribs).addClass((d?"highcharts-color-"+M.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),p.connectors.push(x.path(x.crispLine([["M",n,h],["L",n+C,h]],u.connectorWidth)).attr(d?{}:c.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var z=x.text(this.formatLabel(c),N,T+k).attr(d?{}:c.labelAttribs).css(d?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);g.push(z),z.placed=!0,z.alignAttr={x:N,y:T+k}},y.prototype.getMaxLabelSize=function(){var c,f;return this.symbols.labels.forEach(function(m){f=m.getBBox(!0),c=c?f.width>c.width?f:c:f}),c||{}},y.prototype.formatLabel=function(c){var f=this.options,m=f.labels.formatter,u=f.labels.format,v=this.chart.numberFormatter;return u?B.format(u,c):m?m.call(c):v(c.value,1)},y.prototype.hideOverlappingLabels=function(){var c=this.chart,f=this.options.labels.allowOverlap,m=this.symbols;!f&&m&&(c.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var c,f,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,S=Number.MAX_VALUE,M=-Number.MAX_VALUE;return u.forEach(function(x){x.isBubble&&!x.ignoreSeries&&(f=x.zData.filter(I)).length&&(S=A(x.options.zMin,Math.min(S,Math.max(F(f),x.options.displayNegative===!1?x.options.zThreshold:-Number.MAX_VALUE))),M=A(x.options.zMax,Math.max(M,V(f))))}),c=S===M?[{value:M}]:[{value:S},{value:(S+M)/2},{value:M,autoRanges:!0}],v.length&&v[0].radius&&c.reverse(),c.forEach(function(x,p){v&&v[p]&&(c[p]=E(v[p],x))}),c},y.prototype.predictBubbleSizes=function(){var c,f=this.chart,m=this.fontMetrics,u=f.legend.options,v=u.floating,S=u.layout==="horizontal",M=S?f.legend.lastLineHeight:0,x=f.plotSizeX,p=f.plotSizeY,g=f.series[this.options.seriesIndex],r=g.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(p,x),o=g.options.maxSize;return v||!/%$/.test(o)?c=t:(o=parseFloat(o),c=(i+M-m.h/2)*o/100/(o/100+1),(S&&p-c>=x||!S&&x-c>=p)&&(c=t)),[a,Math.ceil(c)]},y.prototype.updateRanges=function(c,f){var m=this.legend.options.bubbleLegend;m.minSize=c,m.maxSize=f,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var c=this.legend,f=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=f.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,f.maxPxSize),c.render())},y}()}),et(_,"Series/Bubble/BubbleLegendComposition.js",[_["Series/Bubble/BubbleLegendDefaults.js"],_["Series/Bubble/BubbleLegendItem.js"],_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=X.setOptions,Z=U.addEvent,V=U.objectEach,F=U.wrap,I=[];function E(m,u,v){var S,M,x,p=this,g=p.legend,r=A(p)>=0;g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&r?(S=g.bubbleLegend.options,M=g.bubbleLegend.predictBubbleSizes(),g.bubbleLegend.updateRanges(M[0],M[1]),S.placed||(g.group.placed=!1,g.allItems.forEach(function(a){(x=a.legendItem||{}).group&&(x.group.translateY=null)})),g.render(),p.getMargins(),p.axes.forEach(function(a){a.visible&&a.render(),S.placed||(a.setScale(),a.updateNames(),V(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),S.placed=!0,p.getMargins(),m.call(p,u,v),g.bubbleLegend.correctSizes(),f(g,P(g))):(m.call(p,u,v),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),f(g,P(g))))}function A(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,S,M=m.allItems,x=[],p=M.length,g=0,r=0;for(g=0;g<p;g++)if(v=M[g].legendItem||{},S=(M[g+1]||{}).legendItem||{},v.labelHeight&&(M[g].itemHeight=v.labelHeight),M[g]===M[p-1]||v.y!==S.y){for(x.push({height:0}),u=x[x.length-1];r<=g;r++)M[r].itemHeight>u.height&&(u.height=M[r].itemHeight);u.step=g}return x}function y(m){var u=this,v=u.bubbleLegend,S=u.options,M=S.bubbleLegend,x=A(u.chart);v&&v.ranges&&v.ranges.length&&(M.ranges.length&&(M.autoRanges=!!M.ranges[0].autoRanges),u.destroyItem(v)),x>=0&&S.enabled&&M.enabled&&(M.seriesIndex=x,u.bubbleLegend=new B(M,u),u.bubbleLegend.addToLegend(m.allItems))}function c(){var m,u=this,v=u.chart,S=u.visible,M=u.chart.legend;M&&M.bubbleLegend&&(u.visible=!S,u.ignoreSeries=S,m=A(v)>=0,M.bubbleLegend.visible!==m&&(M.update({bubbleLegend:{enabled:m}}),M.bubbleLegend.visible=m),u.visible=S)}function f(m,u){var v,S,M,x,p=m.allItems,g=m.options.rtl,r=0;p.forEach(function(a,t){(x=a.legendItem||{}).group&&(v=x.group.translateX||0,S=x.y||0,((M=a.movementX)||g&&a.ranges)&&(M=g?v-a.options.maxSize/2:v+M,x.group.attr({translateX:M})),t>u[r].step&&r++,x.group.attr({translateY:Math.round(S+u[r].height/2)}),x.y=S+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:G}}),F(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",c))}}}),et(_,"Series/Bubble/BubblePoint.js",[_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=B.seriesTypes.scatter.prototype.pointClass,V=X.extend,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.options=void 0,A.series=void 0,A}return $(E,I),E.prototype.haloPath=function(A){return G.prototype.haloPath.call(this,A===0?0:(this.marker&&this.marker.radius||0)+A)},E}(Z);return V(F.prototype,{ttBelow:!1}),F}),et(_,"Series/Bubble/BubbleSeries.js",[_["Series/Bubble/BubbleLegendComposition.js"],_["Series/Bubble/BubblePoint.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V,F=this&&this.__extends||(V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},V(t,i)},function(t,i){function o(){this.constructor=t}V(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=X.parse,E=U.noop,A=$.series,P=$.seriesTypes,y=P.column.prototype,c=P.scatter,f=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,S=Z.extend,M=Z.isNumber,x=Z.merge,p=Z.pick,g=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",h=this.min,b=this.max-h,k=0,D=o,d=o/b;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var T=C[n];if(s&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),b>0){for(var N=T.length;N--;)if(M(T[N])&&i.dataMin<=T[N]&&T[N]<=i.max){var z=C.radii&&C.radii[N]||0;k=Math.min((T[N]-h)*d-z,k),D=Math.max((T[N]-h)*d+z,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,d*=(o+Math.max(0,k)-Math.min(D,o))/o,[["min","userMin",k],["max","userMax",D]].forEach(function(C){p(i.options[C[0]],i[C[1]])===void 0&&(i[C[0]]+=C[2]/d)}))}var a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return F(i,t),i.compose=function(o,e,s,n){G.compose(e,s,n),g.indexOf(o)===-1&&(g.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,h=this.zData,b=this.yData,k=[],D=this.chart.bubbleZExtremes,d=this.getPxExtremes(),C=d.minPxSize,T=d.maxPxSize;if(!D){var N,z=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(z=Math.min(z||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:z,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=h.length;e<o;e++)s=h[e],k.push(this.getRadius(D.zMin,D.zMax,C,T,s,b&&b[e]));this.radii=k},i.prototype.getRadius=function(o,e,s,n,h,b){var k=this.options,D=k.sizeBy!=="width",d=k.zThreshold,C=e-o,T=.5;if(b===null||h===null)return null;if(M(h)){if(k.sizeByAbsoluteValue&&(h=Math.abs(h-d),e=C=Math.max(e-d,Math.abs(o-d)),o=0),h<o)return s/2-1;C>0&&(T=(h-o)/C)}return D&&T>=0&&(T=Math.sqrt(T)),Math.ceil(s+T*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=A.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var h=o[n],b=e?e[n]:0;M(b)&&b>=s/2?(h.marker=S(h.marker,{radius:b,width:2*b,height:2*b}),h.dlBox={x:h.plotX-b,y:h.plotY-b,width:2*b,height:2*b}):(h.shapeArgs=h.plotY=h.dlBox=void 0,h.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var h;return typeof n=="string"&&(h=/%$/.test(n),n=parseInt(n,10)),h?o*n/100:n},s=e(p(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(p(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(M);if(e.length){var s=p(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=p(o.zMax,m(e));if(M(s)&&M(n))return{zMin:s,zMax:n}}},i.defaultOptions=x(c.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return M(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(c);return S(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:B,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),et(_,"Series/MapBubble/MapBubblePoint.js",[_["Series/Bubble/BubblePoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=B.seriesTypes.map.prototype.pointClass.prototype,V=X.extend,F=function(I){function E(){return I!==null&&I.apply(this,arguments)||this}return $(E,I),E.prototype.isValid=function(){return typeof this.z=="number"},E}(G);return V(F.prototype,{applyOptions:Z.applyOptions,getProjectedBounds:Z.getProjectedBounds}),F}),et(_,"Series/MapBubble/MapBubbleSeries.js",[_["Series/Bubble/BubbleSeries.js"],_["Series/MapBubble/MapBubblePoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,c)},function(y,c){function f(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),V=X.seriesTypes,F=V.map.prototype,I=V.mappoint.prototype,E=U.extend,A=U.merge,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.clearBounds=F.clearBounds,f}return Z(c,y),c.prototype.searchPoint=function(f,m){return this.searchKDTree({clientX:f.chartX-this.chart.plotLeft,plotY:f.chartY-this.chart.plotTop},m,f)},c.prototype.translate=function(){I.translate.call(this),this.getRadii(),this.translateBubble()},c.defaultOptions=A(G.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),c}(G);return E(P.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:F.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:B,processData:F.processData,projectPoint:I.projectPoint,setData:F.setData,setOptions:F.setOptions,updateData:F.updateData,useMapGeometry:!0,xyFromShape:!0}),X.registerSeriesType("mapbubble",P),P}),et(_,"Series/Heatmap/HeatmapPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(A,P){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},X(A,P)},function(A,P){function y(){this.constructor=A}X(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=G.seriesTypes.scatter.prototype.pointClass,Z=B.clamp,V=B.defined,F=B.extend,I=B.pick,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y.value=void 0,y.x=void 0,y.y=void 0,y}return U(P,A),P.prototype.applyOptions=function(y,c){return(this.isNull||this.value===null)&&delete this.color,A.prototype.applyOptions.call(this,y,c),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},P.prototype.getCellAttributes=function(){var y=this,c=y.series,f=c.options,m=(f.colsize||1)/2,u=(f.rowsize||1)/2,v=c.xAxis,S=c.yAxis,M=y.options.marker||c.options.marker,x=c.pointPlacementToXValue(),p=I(y.pointPadding,f.pointPadding,0),g={x1:Z(Math.round(v.len-v.translate(y.x-m,!1,!0,!1,!0,-x)),-v.len,2*v.len),x2:Z(Math.round(v.len-v.translate(y.x+m,!1,!0,!1,!0,-x)),-v.len,2*v.len),y1:Z(Math.round(S.translate(y.y-u,!1,!0,!1,!0)),-S.len,2*S.len),y2:Z(Math.round(S.translate(y.y+u,!1,!0,!1,!0)),-S.len,2*S.len)};return[["width","x"],["height","y"]].forEach(function(r){var a=r[0],t=r[1],i=t+"1",o=t+"2",e=Math.abs(g[i]-g[o]),s=M&&M.lineWidth||0,n=Math.abs(g[i]+g[o])/2,h=M&&M[a];if(V(h)&&h<e){var b=h/2+s/2;g[i]=n-b,g[o]=n+b}p&&(t==="y"&&(i=o,o=t+"1"),g[i]+=p,g[o]-=p)}),g},P.prototype.haloPath=function(y){if(!y)return[];var c=this.shapeArgs||{},f=c.x,m=f===void 0?0:f,u=c.y,v=u===void 0?0:u,S=c.width,M=S===void 0?0:S,x=c.height,p=x===void 0?0:x;return[["M",m-y,v-y],["L",m-y,v+p+y],["L",m+M+y,v+p+y],["L",m+M+y,v-y],["Z"]]},P.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},P}($);return F(E.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),E}),et(_,"Series/Heatmap/HeatmapSeries.js",[_["Core/Color/Color.js"],_["Series/ColorMapComposition.js"],_["Series/Heatmap/HeatmapPoint.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var F,I=this&&this.__extends||(F=function(x,p){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,r){g.__proto__=r}||function(g,r){for(var a in r)r.hasOwnProperty(a)&&(g[a]=r[a])},F(x,p)},function(x,p){function g(){this.constructor=x}F(x,p),x.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),E=$.series,A=$.seriesTypes,P=A.column,y=A.scatter,c=Z.prototype.symbols,f=V.extend,m=V.fireEvent,u=V.isNumber,v=V.merge,S=V.pick,M=function(x){function p(){var g=x!==null&&x.apply(this,arguments)||this;return g.colorAxis=void 0,g.data=void 0,g.options=void 0,g.points=void 0,g.valueMax=NaN,g.valueMin=NaN,g}return I(p,x),p.prototype.drawPoints=function(){var g=this;((this.options.marker||{}).enabled||this._hasPointMarkers)&&(E.prototype.drawPoints.call(this),this.points.forEach(function(r){r.graphic&&(r.graphic[g.chart.styledMode?"css":"animate"](g.colorAttribs(r)),r.value===null&&r.graphic.addClass("highcharts-null-point"))}))},p.prototype.getExtremes=function(){var g=E.prototype.getExtremes.call(this,this.valueData),r=g.dataMin,a=g.dataMax;return u(r)&&(this.valueMin=r),u(a)&&(this.valueMax=a),E.prototype.getExtremes.call(this)},p.prototype.getValidPoints=function(g,r){return E.prototype.getValidPoints.call(this,g,r,!0)},p.prototype.hasData=function(){return!!this.processedXData.length},p.prototype.init=function(){x.prototype.init.apply(this,arguments);var g=this.options;g.pointRange=S(g.pointRange,g.colsize||1),this.yAxis.axisPointRange=g.rowsize||1,c.ellipse=c.circle,g.marker&&(g.marker.r=g.borderRadius)},p.prototype.markerAttribs=function(g,r){var a=g.shapeArgs||{};if(g.hasImage)return{x:g.plotX,y:g.plotY};if(r&&r!=="normal"){var t=g.options.marker||{},i=this.options.marker||{},o=i.states&&i.states[r]||{},e=t.states&&t.states[r]||{},s=(e.width||o.width||a.width||0)+(e.widthPlus||o.widthPlus||0),n=(e.height||o.height||a.height||0)+(e.heightPlus||o.heightPlus||0);return{x:(a.x||0)+((a.width||0)-s)/2,y:(a.y||0)+((a.height||0)-n)/2,width:s,height:n}}return a},p.prototype.pointAttribs=function(g,r){var a=this,t=E.prototype.pointAttribs.call(a,g,r),i=a.options||{},o=a.chart.options.plotOptions||{},e=o.series||{},s=o.heatmap||{},n=g&&g.options.borderColor||i.borderColor||s.borderColor||e.borderColor,h=g&&g.options.borderWidth||i.borderWidth||s.borderWidth||e.borderWidth||t["stroke-width"];if(t.stroke=g&&g.marker&&g.marker.lineColor||i.marker&&i.marker.lineColor||n||this.color,t["stroke-width"]=h,r&&r!=="normal"){var b=v(i.states&&i.states[r],i.marker&&i.marker.states&&i.marker.states[r],g&&g.options.states&&g.options.states[r]||{});t.fill=b.color||G.parse(t.fill).brighten(b.brightness||0).get(),t.stroke=b.lineColor||t.stroke}return t},p.prototype.translate=function(){var g=this,r=g.options,a=r.marker&&r.marker.symbol||"rect",t=c[a]?a:"rect",i=["circle","square"].indexOf(t)!==-1;g.generatePoints(),g.points.forEach(function(o){var e=o.getCellAttributes(),s=Math.min(e.x1,e.x2),n=Math.min(e.y1,e.y2),h=Math.max(Math.abs(e.x2-e.x1),0),b=Math.max(Math.abs(e.y2-e.y1),0);if(o.hasImage=(o.marker&&o.marker.symbol||a||"").indexOf("url")===0,i){var k=Math.abs(h-b);s=Math.min(e.x1,e.x2)+(h<b?0:k/2),n=Math.min(e.y1,e.y2)+(h<b?k/2:0),h=b=Math.min(h,b)}o.hasImage&&(o.marker={width:h,height:b}),o.plotX=o.clientX=(e.x1+e.x2)/2,o.plotY=(e.y1+e.y2)/2,o.shapeType="path",o.shapeArgs=v(!0,{x:s,y:n,width:h,height:b},{d:c[t](s,n,h,b,{r:r.borderRadius})})}),m(g,"afterTranslate")},p.defaultOptions=v(y.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var g=this.series.chart.numberFormatter,r=this.point.value;return u(r)?g(r,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}}),p}(y);return f(M.prototype,{axisTypes:B.seriesMembers.axisTypes,colorKey:B.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:B.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:X,specialGroup:"group",trackerGroups:B.seriesMembers.trackerGroups,alignDataLabel:P.prototype.alignDataLabel,colorAttribs:B.seriesMembers.colorAttribs,drawLegendSymbol:U.drawRectangle,getSymbol:E.prototype.getSymbol}),B.compose(M),$.registerSeriesType("heatmap",M),M}),et(_,"masters/modules/map.src.js",[_["Core/Globals.js"],_["Core/Axis/Color/ColorAxis.js"],_["Series/MapBubble/MapBubbleSeries.js"],_["Core/Chart/MapChart.js"],_["Maps/MapView.js"],_["Maps/Projection.js"]],function(G,B,X,U,$,Z){var V=G;V.ColorAxis=B,V.MapChart=U,V.mapChart=V.Map=U.mapChart,V.MapView=$,V.maps=U.maps,V.Projection=Z,B.compose(V.Chart,V.Fx,V.Legend,V.Series),X.compose(V.Axis,V.Chart,V.Legend,V.Series)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6512:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/ColorMapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.seriesTypes.column.prototype,$=B.addEvent,Z=B.defined;return function(V){var F=[];function I(E){var A=this;A.moveToTopOnHover&&A.graphic&&A.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var A={};return!Z(E.color)||E.state&&E.state!=="normal"||(A[this.colorProp||"fill"]=E.color),A},pointAttribs:U.pointAttribs},V.compose=function(E){var A=E.prototype.pointClass;return F.indexOf(A)===-1&&(F.push(A),$(A,"afterSetState",I)),E}}(X||(X={})),X}),et(_,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function G(B,X,U,$){this.height=B,this.width=X,this.plot=$,this.direction=U,this.startDirection=U,this.total=0,this.nW=0,this.lW=0,this.nH=0,this.lH=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(Z,V){return Math.max(Z/V,V/Z)}}}return G.prototype.addElement=function(B){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+B,this.direction===0?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH)),this.elArr.push(B)},G.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},G}()}),et(_,"Series/DrawPointUtilities.js",[_["Core/Utilities.js"]],function(G){return{draw:function(B,X){var U=X.animatableAttribs,$=X.onComplete,Z=X.css,V=X.renderer,F=B.series&&B.series.chart.hasRendered?void 0:B.series&&B.series.options.animation,I=B.graphic;if(X.attribs=X.attribs||{},X.attribs.class=B.getClassName(),B.shouldDraw())I||(B.graphic=I=X.shapeType==="text"?V.text():V[X.shapeType](X.shapeArgs||{}),I.add(X.group)),Z&&I.css(Z),I.attr(X.attribs).animate(U,!X.isNew&&F,$);else if(I){var E=function(){B.graphic=I=I&&I.destroy(),typeof $=="function"&&$()};Object.keys(U).length?I.animate(U,void 0,function(){return E()}):E()}}}}),et(_,"Series/Treemap/TreemapPoint.js",[_["Series/DrawPointUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(c,f){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(c,f)},function(c,f){function m(){this.constructor=c}U(c,f),c.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=B.series.prototype.pointClass,V=B.seriesTypes,F=V.pie.prototype.pointClass,I=V.scatter.prototype.pointClass,E=X.extend,A=X.isNumber,P=X.pick,y=function(c){function f(){var m=c!==null&&c.apply(this,arguments)||this;return m.name=void 0,m.node=void 0,m.options=void 0,m.series=void 0,m.shapeType="rect",m.value=void 0,m}return $(f,c),f.prototype.draw=function(m){G.draw(this,m)},f.prototype.getClassName=function(){var m=Z.prototype.getClassName.call(this),u=this.series,v=u.options;return this.node.level<=u.nodeMap[u.rootNode].level?m+=" highcharts-above-level":this.node.isLeaf||P(v.interactByLeaf,!v.allowTraversingTree)?this.node.isLeaf||(m+=" highcharts-internal-node"):m+=" highcharts-internal-node-interactive",m},f.prototype.isValid=function(){return!!(this.id||A(this.value))},f.prototype.setState=function(m){Z.prototype.setState.call(this,m),this.graphic&&this.graphic.attr({zIndex:m==="hover"?1:0})},f.prototype.shouldDraw=function(){return A(this.plotY)&&this.y!==null},f}(I);return E(y.prototype,{setVisible:F.prototype.setVisible}),y}),et(_,"Series/Treemap/TreemapUtilities.js",[_["Core/Utilities.js"]],function(G){var B,X=G.objectEach;return function(U){U.AXIS_MAX=100,U.isBoolean=function($){return typeof $=="boolean"},U.eachObject=function($,Z,V){V=V||this,X($,function(F,I){Z.call(V,F,I,$)})},U.recursive=function $(Z,V,F){var I;F===void 0&&(F=this),(I=V.call(F,Z))!==!1&&$(I,V,F)}}(B||(B={})),B}),et(_,"Series/TreeUtilities.js",[_["Core/Color/Color.js"],_["Core/Utilities.js"]],function(G,B){var X=B.extend,U=B.isArray,$=B.isNumber,Z=B.isObject,V=B.merge,F=B.pick;return{getColor:function(I,E){var A,P,y,c,f,m,u=E.index,v=E.mapOptionsToLevel,S=E.parentColor,M=E.parentColorIndex,x=E.series,p=E.colors,g=E.siblings,r=x.points,a=x.chart.options.chart;return I&&(A=r[I.i],P=v[I.level]||{},A&&P.colorByPoint&&(c=A.index%(p?p.length:a.colorCount),y=p&&p[c]),x.chart.styledMode||(f=F(A&&A.options.color,P&&P.color,y,S&&function(t){var i=P&&P.colorVariation;return i&&i.key==="brightness"&&u&&g?G.parse(t).brighten(i.to*(u/g)).get():t}(S),x.color)),m=F(A&&A.options.colorIndex,P&&P.colorIndex,c,M,E.colorIndex)),{color:f,colorIndex:m}},getLevelOptions:function(I){var E,A,P,y,c,f,m={};if(Z(I))for(y=$(I.from)?I.from:1,f=I.levels,A={},E=Z(I.defaults)?I.defaults:{},U(f)&&(A=f.reduce(function(u,v){var S,M,x;return Z(v)&&$(v.level)&&(x=V({},v),M=F(x.levelIsConstant,E.levelIsConstant),delete x.levelIsConstant,delete x.level,S=v.level+(M?0:y-1),Z(u[S])?V(!0,u[S],x):u[S]=x),u},{})),c=$(I.to)?I.to:1,P=0;P<=c;P++)m[P]=V({},E,Z(A[P])?A[P]:{});return m},setTreeValues:function I(E,A){var P=A.before,y=A.idRoot,c=A.mapIdToNode[y],f=A.levelIsConstant!==!1,m=A.points[E.i],u=m&&m.options||{},v=[],S=0;E.levelDynamic=E.level-(f?0:c.level),E.name=F(m&&m.name,""),E.visible=y===E.id||A.visible===!0,typeof P=="function"&&(E=P(E,A)),E.children.forEach(function(x,p){var g=X({},A);X(g,{index:p,siblings:E.children.length,visible:E.visible}),x=I(x,g),v.push(x),x.visible&&(S+=x.val)});var M=F(u.value,S);return E.visible=M>=0&&(S>0||E.visible),E.children=v,E.childrenTotal=S,E.isLeaf=E.visible&&!S,E.val=M,E},updateRootId:function(I){var E,A;return Z(I)&&(A=Z(I.options)?I.options:{},E=F(I.rootNode,A.rootId,""),Z(I.userOptions)&&(I.userOptions.rootId=E),I.rootNode=E),E}}}),et(_,"Extensions/Breadcrumbs.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/FormatUtilities.js"]],function(G,B,X,U,$){var Z=B.defaultOptions,V=$.format,F=U.addEvent,I=U.objectEach,E=U.extend,A=U.fireEvent,P=U.merge,y=U.pick,c=U.defined,f=U.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,S){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var M=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,S);this.chart=v,this.options=M||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var S=this.chart,M=this.options,x=S.options.lang,p=y(M.format,M.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=M.formatter&&M.formatter(v)||V(p,{level:v.levelOptions},S)||"";return(f(r)&&!r.length||r==="← ")&&c(g)&&(r=M.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,S=v.chart,M=v.options;!v.group&&M&&(v.group=S.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:M.zIndex}).add()),M.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,S=v.chart,M=v.list,x=v.options.buttonSpacing;this.destroyListElements();var p=v.group?v.group.getBBox().width:x,g=x,r=M[M.length-2];!S.drillUpButton&&this.level>0?S.drillUpButton=v.renderButton(r,p,g):S.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var S=this;if(S.group){var M=S.options,x=M.buttonTheme,p=M.position,g=M.relativeTo==="chart"||M.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=S.group.getBBox(),a=2*(x.padding||0)+M.buttonSpacing;p.width=r.width+a,p.height=r.height+a;var t=P(p);v&&(t.x+=v),S.options.rtl&&(t.x+=p.width),t.y=y(t.y,this.yOffset,0),S.group.align(t,!0,g)}},u.prototype.renderButton=function(v,S,M){var x=this,p=this.chart,g=x.options,r=P(g.buttonTheme),a=p.renderer.button(x.getButtonText(v),S,M,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,A(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return p.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,S){var M=this.chart,x=this.options.separator,p=M.renderer.label(x.text,v,S,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return M.styledMode||p.css(x.style),p},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,S=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(S)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var S=this.elementList;I(S,function(M,x){!v&&S[x].updated||((M=S[x]).button&&M.button.destroy(),M.separator&&M.separator.destroy(),delete M.button,delete M.separator,delete S[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,S=this,M=S.elementList,x=S.options.buttonSpacing,p=S.list,g=S.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=S.group?a(S.group,x):x,o=x;p.forEach(function(e,s){var n,h,b=s===p.length-1;M[e.level]?(n=(v=M[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=S.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),M[e.level].updated=!0):(n=S.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(h=S.renderSeparator(i,o),g&&t(h,i,o),i+=a(h,x)),M[e.level]={button:n,separator:h,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return X.Breadcrumbs||(X.Breadcrumbs=m,F(G,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,S=v.buttonTheme,M=(S.height||0)+2*(S.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+M,u.yOffset=M):x!=="middle"?(this.plotTop+=M,u.yOffset=-M):u.yOffset=void 0}}),F(G,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),F(G,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),F(G,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),S=u.breadcrumbs.options;v&&S.position.align==="right"&&S.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-S.buttonSpacing)}}),F(G,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),et(_,"Series/Treemap/TreemapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Series/Treemap/TreemapUtilities.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.series,$=X.addEvent,Z=X.extend,V=!1;$(U,"afterBindAxes",function(){var F,I=this,E=I.xAxis,A=I.yAxis;E&&A&&(I.is("treemap")?(F={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:B.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},Z(A.options,F),Z(E.options,F),V=!0):V&&(A.setOptions(A.userOptions),E.setOptions(E.userOptions),V=!1))})}),et(_,"Series/Treemap/TreemapNode.js",[],function(){return function(){function G(){this.childrenTotal=0,this.visible=!1}return G.prototype.init=function(B,X,U,$,Z,V,F){return this.id=B,this.i=X,this.children=U,this.height=$,this.level=Z,this.series=V,this.parent=F,this},G}()}),et(_,"Series/Treemap/TreemapSeries.js",[_["Core/Color/Color.js"],_["Series/ColorMapComposition.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Treemap/TreemapAlgorithmGroup.js"],_["Series/Treemap/TreemapPoint.js"],_["Series/Treemap/TreemapUtilities.js"],_["Series/TreeUtilities.js"],_["Extensions/Breadcrumbs.js"],_["Core/Utilities.js"],_["Series/Treemap/TreemapNode.js"]],function(G,B,X,U,$,Z,V,F,I,E,A,P){var y,c=this&&this.__extends||(y=function(T,N){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,L){z.__proto__=L}||function(z,L){for(var O in L)L.hasOwnProperty(O)&&(z[O]=L[O])},y(T,N)},function(T,N){function z(){this.constructor=T}y(T,N),T.prototype=N===null?Object.create(N):(z.prototype=N.prototype,new z)}),f=G.parse,m=X.noop,u=$.series,v=$.seriesTypes,S=v.column,M=v.heatmap,x=v.scatter,p=I.getColor,g=I.getLevelOptions,r=I.updateRootId,a=A.addEvent,t=A.correctFloat,i=A.defined,o=A.error,e=A.extend,s=A.fireEvent,n=A.isArray,h=A.isObject,b=A.isString,k=A.merge,D=A.pick,d=A.stableSort,C=function(T){function N(){var z=T!==null&&T.apply(this,arguments)||this;return z.axisRatio=void 0,z.data=void 0,z.mapOptionsToLevel=void 0,z.nodeMap=void 0,z.nodeList=void 0,z.options=void 0,z.points=void 0,z.rootNode=void 0,z.tree=void 0,z.level=void 0,z}return c(N,T),N.prototype.algorithmCalcPoints=function(z,L,O,j){var Y,H,W,q,tt,J=O.lW,nt=O.lH,lt=O.plot,gt=0,mt=O.elArr.length-1;L?(J=O.nW,nt=O.nH):tt=O.elArr[O.elArr.length-1],O.elArr.forEach(function(bt){(L||gt<mt)&&(O.direction===0?(Y=lt.x,H=lt.y,q=bt/(W=J)):(Y=lt.x,H=lt.y,W=bt/(q=nt)),j.push({x:Y,y:H,width:W,height:t(q)}),O.direction===0?lt.y=lt.y+q:lt.x=lt.x+W),gt+=1}),O.reset(),O.direction===0?O.width=O.width-J:O.height=O.height-nt,lt.y=lt.parent.y+(lt.parent.height-O.height),lt.x=lt.parent.x+(lt.parent.width-O.width),z&&(O.direction=1-O.direction),L||O.addElement(tt)},N.prototype.algorithmFill=function(z,L,O){var j,Y,H,W,q,tt=[],J=L.direction,nt=L.x,lt=L.y,gt=L.width,mt=L.height;return O.forEach(function(bt){j=L.width*L.height*(bt.val/L.val),Y=nt,H=lt,J===0?(gt-=W=j/(q=mt),nt+=W):(mt-=q=j/(W=gt),lt+=q),tt.push({x:Y,y:H,width:W,height:q}),z&&(J=1-J)}),tt},N.prototype.algorithmLowAspectRatio=function(z,L,O){var j,Y=[],H=this,W={x:L.x,y:L.y,parent:L},q=L.direction,tt=0,J=O.length-1,nt=new Z(L.height,L.width,q,W);return O.forEach(function(lt){j=L.width*L.height*(lt.val/L.val),nt.addElement(j),nt.lP.nR>nt.lP.lR&&H.algorithmCalcPoints(z,!1,nt,Y,W),tt===J&&H.algorithmCalcPoints(z,!0,nt,Y,W),tt+=1}),Y},N.prototype.alignDataLabel=function(z,L,O){var j=O.style;j&&!i(j.textOverflow)&&L.text&&L.getBBox().width>L.text.textWidth&&L.css({textOverflow:"ellipsis",width:j.width+="px"}),S.prototype.alignDataLabel.apply(this,arguments),z.dataLabel&&z.dataLabel.attr({zIndex:(z.node.zIndex||0)+1})},N.prototype.calculateChildrenAreas=function(z,L){var O,j,Y=this,H=Y.options,W=Y.mapOptionsToLevel[z.level+1],q=D(Y[W&&W.layoutAlgorithm]&&W.layoutAlgorithm,H.layoutAlgorithm),tt=H.alternateStartingDirection;j=z.children.filter(function(J){return!J.ignore}),W&&W.layoutStartingDirection&&(L.direction=W.layoutStartingDirection==="vertical"?0:1),O=Y[q](L,j),j.forEach(function(J,nt){var lt=O[nt];J.values=k(lt,{val:J.childrenTotal,direction:tt?1-L.direction:L.direction}),J.pointValues=k(lt,{x:lt.x/Y.axisRatio,y:F.AXIS_MAX-lt.y-lt.height,width:lt.width/Y.axisRatio}),J.children.length&&Y.calculateChildrenAreas(J,J.values)})},N.prototype.createList=function(z){var L=this.chart,O=L.breadcrumbs,j=[];if(O){var Y=0;j.push({level:Y,levelOptions:L.series[0]});for(var H=z.target.nodeMap[z.newRootId],W=[];H.parent||H.parent==="";)W.push(H),H=z.target.nodeMap[H.parent];W.reverse().forEach(function(q){j.push({level:++Y,levelOptions:q})}),j.length<=1&&(j.length=0)}return j},N.prototype.drawDataLabels=function(){var z,L,O=this,j=O.mapOptionsToLevel;O.points.filter(function(Y){return Y.node.visible}).forEach(function(Y){L=j[Y.node.level],z={style:{}},Y.node.isLeaf||(z.enabled=!1),L&&L.dataLabels&&(z=k(z,L.dataLabels),O._hasPointLabels=!0),Y.shapeArgs&&(z.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=k(z,Y.options.dataLabels)}),u.prototype.drawDataLabels.call(this)},N.prototype.drawPoints=function(z){z===void 0&&(z=this.points);var L=this,O=L.chart,j=O.renderer,Y=O.styledMode,H=L.options,W=Y?{}:H.shadow,q=H.borderRadius,tt=O.pointCount<H.animationLimit,J=H.allowTraversingTree;z.forEach(function(nt){var lt=nt.node.levelDynamic,gt={},mt={},bt={},yt="level-group-"+nt.node.level,dt=!!nt.graphic,ot=tt&&dt,at=nt.shapeArgs;nt.shouldDraw()&&(nt.isInside=!0,q&&(mt.r=q),k(!0,ot?gt:mt,dt?at:{},Y?{}:L.pointAttribs(nt,nt.selected?"select":void 0)),L.colorAttribs&&Y&&e(bt,L.colorAttribs(nt)),L[yt]||(L[yt]=j.g(yt).attr({zIndex:1e3-(lt||0)}).add(L.group),L[yt].survive=!0)),nt.draw({animatableAttribs:gt,attribs:mt,css:bt,group:L[yt],renderer:j,shadow:W,shapeArgs:at,shapeType:nt.shapeType}),J&&nt.graphic&&(nt.drillId=H.interactByLeaf?L.drillToByLeaf(nt):L.drillToByGroup(nt))})},N.prototype.drillToByGroup=function(z){var L=!1;return z.node.level-this.nodeMap[this.rootNode].level!==1||z.node.isLeaf||(L=z.id),L},N.prototype.drillToByLeaf=function(z){var L,O=this,j=!1;if(z.node.parent!==O.rootNode&&z.node.isLeaf)for(L=z.node;!j;)(L=O.nodeMap[L.parent]).parent===O.rootNode&&(j=L.id);return j},N.prototype.drillToNode=function(z,L){o(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(z,L)},N.prototype.drillUp=function(){var z=this,L=z.nodeMap[z.rootNode];L&&b(L.parent)&&z.setRootNode(L.parent,!0,{trigger:"traverseUpButton"})},N.prototype.getExtremes=function(){var z=u.prototype.getExtremes.call(this,this.colorValueData),L=z.dataMin,O=z.dataMax;return this.valueMin=L,this.valueMax=O,u.prototype.getExtremes.call(this)},N.prototype.getListOfParents=function(z,L){var O=n(z)?z:[],j=n(L)?L:[],Y=O.reduce(function(H,W,q){var tt=D(W.parent,"");return H[tt]===void 0&&(H[tt]=[]),H[tt].push(q),H},{"":[]});return F.eachObject(Y,function(H,W,q){W!==""&&j.indexOf(W)===-1&&(H.forEach(function(tt){q[""].push(tt)}),delete q[W])}),Y},N.prototype.getTree=function(){var z=this,L=this.data.map(function(j){return j.id}),O=z.getListOfParents(this.data,L);return z.nodeMap={},z.nodeList=[],z.buildTree("",-1,0,O)},N.prototype.buildTree=function(z,L,O,j,Y){var H,W,q=this,tt=[],J=q.points[L],nt=0;return(j[z]||[]).forEach(function(lt){W=q.buildTree(q.points[lt].id,lt,O+1,j,z),nt=Math.max(W.height+1,nt),tt.push(W)}),H=new q.NodeClass().init(z,L,tt,nt,O,q,Y),tt.forEach(function(lt){lt.parentNode=H}),q.nodeMap[H.id]=H,q.nodeList.push(H),J&&(J.node=H,H.point=J),H},N.prototype.hasData=function(){return!!this.processedXData.length},N.prototype.init=function(z,L){var O,j=this,Y=k(L.drillUpButton,L.breadcrumbs);O=a(j,"setOptions",function(H){var W=H.userOptions;i(W.allowDrillToNode)&&!i(W.allowTraversingTree)&&(W.allowTraversingTree=W.allowDrillToNode,delete W.allowDrillToNode),i(W.drillUpButton)&&!i(W.traverseUpButton)&&(W.traverseUpButton=W.drillUpButton,delete W.drillUpButton)}),u.prototype.init.call(j,z,L),delete j.opacity,j.eventsToUnbind.push(O),j.options.allowTraversingTree&&(j.eventsToUnbind.push(a(j,"click",j.onClickDrillToNode)),j.eventsToUnbind.push(a(j,"setRootNode",function(H){var W=j.chart;W.breadcrumbs&&W.breadcrumbs.updateProperties(j.createList(H))})),j.eventsToUnbind.push(a(j,"update",function(H,W){var q=this.chart.breadcrumbs;q&&H.options.breadcrumbs&&q.update(H.options.breadcrumbs)})),j.eventsToUnbind.push(a(j,"destroy",function(H){var W=this.chart;W.breadcrumbs&&(W.breadcrumbs.destroy(),H.keepEventsForUpdate||(W.breadcrumbs=void 0))}))),z.breadcrumbs||(z.breadcrumbs=new E(z,Y)),j.eventsToUnbind.push(a(z.breadcrumbs,"up",function(H){for(var W=this.level-H.newLevel,q=0;q<W;q++)j.drillUp()}))},N.prototype.onClickDrillToNode=function(z){var L=z.point,O=L&&L.drillId;b(O)&&(L.setState(""),this.setRootNode(O,!0,{trigger:"click"}))},N.prototype.pointAttribs=function(z,L){var O,j,Y=h(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},H=z&&Y[z.node.level]||{},W=this.options,q=L&&W.states&&W.states[L]||{},tt=z&&z.getClassName()||"";return O={stroke:z&&z.borderColor||H.borderColor||q.borderColor||W.borderColor,"stroke-width":D(z&&z.borderWidth,H.borderWidth,q.borderWidth,W.borderWidth),dashstyle:z&&z.borderDashStyle||H.borderDashStyle||q.borderDashStyle||W.borderDashStyle,fill:z&&z.color||this.color},tt.indexOf("highcharts-above-level")!==-1?(O.fill="none",O["stroke-width"]=0):tt.indexOf("highcharts-internal-node-interactive")!==-1?(j=D(q.opacity,W.opacity),O.fill=f(O.fill).setOpacity(j).get(),O.cursor="pointer"):tt.indexOf("highcharts-internal-node")!==-1?O.fill="none":L&&(O.fill=f(O.fill).brighten(q.brightness).get()),O},N.prototype.setColorRecursive=function(z,L,O,j,Y){var H,W,q=this,tt=q&&q.chart,J=tt&&tt.options&&tt.options.colors;z&&(H=p(z,{colors:J,index:j,mapOptionsToLevel:q.mapOptionsToLevel,parentColor:L,parentColorIndex:O,series:q,siblings:Y}),(W=q.points[z.i])&&(W.color=H.color,W.colorIndex=H.colorIndex),(z.children||[]).forEach(function(nt,lt){q.setColorRecursive(nt,H.color,H.colorIndex,lt,z.children.length)}))},N.prototype.setPointValues=function(){var z=this,L=z.points,O=z.xAxis,j=z.yAxis,Y=z.chart.styledMode;L.forEach(function(H){var W=H.node,q=W.pointValues,tt=W.visible;if(q&&tt){var J=q.height,nt=q.width,lt=q.x,gt=q.y,mt=function(ut){return Y?0:(z.pointAttribs(ut)["stroke-width"]||0)%2/2}(H),bt=Math.round(O.toPixels(lt,!0))-mt,yt=Math.round(O.toPixels(lt+nt,!0))-mt,dt=Math.round(j.toPixels(gt,!0))-mt,ot=Math.round(j.toPixels(gt+J,!0))-mt,at={x:Math.min(bt,yt),y:Math.min(dt,ot),width:Math.abs(yt-bt),height:Math.abs(ot-dt)};H.plotX=at.x+at.width/2,H.plotY=at.y+at.height/2,H.shapeArgs=at}else delete H.plotX,delete H.plotY})},N.prototype.setRootNode=function(z,L,O){var j=this,Y=e({newRootId:z,previousRootId:j.rootNode,redraw:D(L,!0),series:j},O);s(j,"setRootNode",Y,function(H){var W=H.series;W.idPreviousRoot=H.previousRootId,W.rootNode=H.newRootId,W.isDirty=!0,H.redraw&&W.chart.redraw()})},N.prototype.setState=function(z){this.options.inactiveOtherPoints=!0,u.prototype.setState.call(this,z,!1),this.options.inactiveOtherPoints=!1},N.prototype.setTreeValues=function(z){var L,O=this,j=O.options,Y=O.rootNode,H=O.nodeMap[Y],W=!F.isBoolean(j.levelIsConstant)||j.levelIsConstant,q=0,tt=[],J=O.points[z.i];return z.children.forEach(function(nt){nt=O.setTreeValues(nt),tt.push(nt),nt.ignore||(q+=nt.val)}),d(tt,function(nt,lt){return(nt.sortIndex||0)-(lt.sortIndex||0)}),L=D(J&&J.options.value,q),J&&(J.value=L),e(z,{children:tt,childrenTotal:q,ignore:!(D(J&&J.visible,!0)&&L>0),isLeaf:z.visible&&!q,levelDynamic:z.level-(W?0:H.level),name:D(J&&J.name,""),sortIndex:D(J&&J.sortIndex,-L),val:L}),z},N.prototype.sliceAndDice=function(z,L){return this.algorithmFill(!0,z,L)},N.prototype.squarified=function(z,L){return this.algorithmLowAspectRatio(!0,z,L)},N.prototype.strip=function(z,L){return this.algorithmLowAspectRatio(!1,z,L)},N.prototype.stripes=function(z,L){return this.algorithmFill(!1,z,L)},N.prototype.translate=function(){var z,L,O,j,Y,H=this,W=H.options,q=r(H);u.prototype.translate.call(H),j=H.tree=H.getTree(),z=H.nodeMap[q],q===""||z&&z.children.length||(H.setRootNode("",!1),q=H.rootNode,z=H.nodeMap[q]),H.mapOptionsToLevel=g({from:z.level+1,levels:W.levels,to:j.height,defaults:{levelIsConstant:H.options.levelIsConstant,colorByPoint:W.colorByPoint}}),F.recursive(H.nodeMap[H.rootNode],function(tt){var J=!1,nt=tt.parent;return tt.visible=!0,(nt||nt==="")&&(J=H.nodeMap[nt]),J}),F.recursive(H.nodeMap[H.rootNode].children,function(tt){var J=!1;return tt.forEach(function(nt){nt.visible=!0,nt.children.length&&(J=(J||[]).concat(nt.children))}),J}),H.setTreeValues(j),H.axisRatio=H.xAxis.len/H.yAxis.len,H.nodeMap[""].pointValues=L={x:0,y:0,width:F.AXIS_MAX,height:F.AXIS_MAX},H.nodeMap[""].values=O=k(L,{width:L.width*H.axisRatio,direction:W.layoutStartingDirection==="vertical"?0:1,val:j.val}),H.calculateChildrenAreas(j,O),H.colorAxis||W.colorByPoint||H.setColorRecursive(H.tree),W.allowTraversingTree&&(Y=z.pointValues,H.xAxis.setExtremes(Y.x,Y.x+Y.width,!1),H.yAxis.setExtremes(Y.y,Y.y+Y.height,!1),H.xAxis.setScale(),H.yAxis.setScale()),H.setPointValues()},N.defaultOptions=k(x.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var z=this&&this.point?this.point:{};return b(z.name)?z.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:M?0:.1,halo:!1,opacity:.75,shadow:!1}}}),N}(x);return e(C.prototype,{buildKDTree:m,colorAttribs:B.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:U.drawRectangle,getExtremesFromAll:!0,getSymbol:m,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:V,NodeClass:P,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:F.recursive}}),B.compose(C),$.registerSeriesType("treemap",C),C}),et(_,"Series/Sunburst/SunburstPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(E,A){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var c in y)y.hasOwnProperty(c)&&(P[c]=y[c])},X(E,A)},function(E,A){function P(){this.constructor=E}X(E,A),E.prototype=A===null?Object.create(A):(P.prototype=A.prototype,new P)}),$=G.series.prototype.pointClass,Z=G.seriesTypes.treemap.prototype.pointClass,V=B.correctFloat,F=B.extend,I=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.node=void 0,P.options=void 0,P.series=void 0,P.shapeExisting=void 0,P.shapeType=void 0,P}return U(A,E),A.prototype.getDataLabelPath=function(P){var y,c=this.series.chart.renderer,f=this.shapeExisting,m=f.start,u=f.end,v=m+(u-m)/2,S=v<0&&v>-Math.PI||v>Math.PI,M=f.r+(P.options.distance||0);return m===-Math.PI/2&&V(u)===V(1.5*Math.PI)&&(m=-Math.PI+Math.PI/360,u=-Math.PI/360,S=!0),u-m>Math.PI&&(S=!1,y=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=c.arc({open:!0,longArc:y?1:0}).attr({start:S?m:u,end:S?u:m,clockwise:+S,x:f.x,y:f.y,r:(M+f.innerR)/2}).add(c.defs),this.dataLabelPath},A.prototype.isValid=function(){return!0},A}(Z);return F(I.prototype,{getClassName:$.prototype.getClassName,haloPath:$.prototype.haloPath,setState:$.prototype.setState}),I}),et(_,"Series/Sunburst/SunburstUtilities.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.seriesTypes.treemap,$=B.isNumber,Z=B.isObject,V=B.merge;return function(F){function I(E,A){var P,y=[];if($(E)&&$(A)&&E<=A)for(P=E;P<=A;P++)y.push(P);return y}F.recursive=U.prototype.utils.recursive,F.calculateLevelSizes=function(E,A){var P,y,c,f,m,u,v,S=Z(A)?A:{},M=0;return Z(E)&&(P=V({},E),u=$(S.from)?S.from:0,v=$(S.to)?S.to:0,c=I(u,v),f=Object.keys(P).filter(function(x){return c.indexOf(+x)===-1}),y=m=$(S.diffRadius)?S.diffRadius:0,c.forEach(function(x){var p=P[x],g=p.levelSize.unit,r=p.levelSize.value;g==="weight"?M+=r:g==="percentage"?(p.levelSize={unit:"pixels",value:r/100*y},m-=p.levelSize.value):g==="pixels"&&(m-=r)}),c.forEach(function(x){var p,g=P[x];g.levelSize.unit==="weight"&&(p=g.levelSize.value,P[x].levelSize={unit:"pixels",value:p/M*m})}),f.forEach(function(x){P[x].levelSize={value:0,unit:"pixels"}})),P},F.getLevelFromAndTo=function(E){var A=E.level;return{from:A>0?A:1,to:A+E.height}},F.range=I}(X||(X={})),X}),et(_,"Series/Sunburst/SunburstNode.js",[_["Series/Treemap/TreemapNode.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){return $!==null&&$.apply(this,arguments)||this}return X(Z,$),Z}(G);return U}),et(_,"Series/Sunburst/SunburstSeries.js",[_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Sunburst/SunburstPoint.js"],_["Series/Sunburst/SunburstUtilities.js"],_["Series/TreeUtilities.js"],_["Core/Utilities.js"],_["Series/Sunburst/SunburstNode.js"]],function(G,B,X,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(D,d){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,T){C.__proto__=T}||function(C,T){for(var N in T)T.hasOwnProperty(N)&&(C[N]=T[N])},I(D,d)},function(D,d){function C(){this.constructor=D}I(D,d),D.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),A=G.getCenter,P=G.getStartAndEndRadians,y=B.noop,c=X.series,f=X.seriesTypes,m=f.column,u=f.treemap,v=Z.getColor,S=Z.getLevelOptions,M=Z.setTreeValues,x=Z.updateRootId,p=V.defined,g=V.error,r=V.extend,a=V.isNumber,t=V.isObject,i=V.isString,o=V.merge,e=V.splat,s=180/Math.PI,n=function(D,d,C,T){return{x:D+Math.cos(C)*T,y:d+Math.sin(C)*T}};function h(D,d,C){var T;return D.node.isLeaf||(T=d===D.id?C[d].parent:D.id),T}function b(D,d){var C=d.mapIdToNode,T=D.parent,N=T?C[T]:void 0,z=d.series,L=z.chart,O=z.points[D.i],j=z.options.colors||L&&L.options.colors,Y=v(D,{colors:j,colorIndex:z.colorIndex,index:d.index,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:N&&N.color,parentColorIndex:N&&N.colorIndex,series:d.series,siblings:d.siblings});return D.color=Y.color,D.colorIndex=Y.colorIndex,O&&(O.color=D.color,O.colorIndex=D.colorIndex,D.sliced=D.id!==d.idRoot&&O.sliced),D}var k=function(D){function d(){var C=D!==null&&D.apply(this,arguments)||this;return C.center=void 0,C.data=void 0,C.mapOptionsToLevel=void 0,C.nodeMap=void 0,C.options=void 0,C.points=void 0,C.shapeRoot=void 0,C.startAndEndRadians=void 0,C.tree=void 0,C}return E(d,D),d.prototype.alignDataLabel=function(C,T,N){if(!N.textPath||!N.textPath.enabled)return D.prototype.alignDataLabel.apply(this,arguments)},d.prototype.animate=function(C){var T,N=this.chart,z=[N.plotWidth/2,N.plotHeight/2],L=N.plotLeft,O=N.plotTop,j=this.group;C?(T={translateX:z[0]+L,translateY:z[1]+O,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},j.attr(T)):(T={translateX:L,translateY:O,scaleX:1,scaleY:1,rotation:0,opacity:1},j.animate(T,this.options.animation))},d.prototype.drawPoints=function(){var C,T=this,N=T.mapOptionsToLevel,z=T.shapeRoot,L=T.group,O=T.hasRendered,j=T.rootNode,Y=T.idPreviousRoot,H=T.nodeMap,W=H[Y],q=W&&W.shapeArgs,tt=T.points,J=T.startAndEndRadians,nt=T.chart,lt=nt&&nt.options&&nt.options.chart||{},gt=typeof lt.animation!="boolean"||lt.animation,mt=T.center,bt={x:mt[0],y:mt[1]},yt=mt[3]/2,dt=T.chart.renderer,ot=!1,at=!1,ut=!!(gt&&O&&j!==Y&&T.dataLabelsGroup);ut&&(T.dataLabelsGroup.attr({opacity:0}),C=function(){var vt=T;ot=!0,vt.dataLabelsGroup&&vt.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),tt.forEach(function(vt){var Ct,xt,St=vt.node,wt=N[St.level],Mt=vt.shapeExisting||{},Tt=St.shapeArgs||{},Lt=!(!St.visible||!St.shapeArgs);Ct=O&>?function(Pt,Et){var jt=Et.point,Dt=Et.radians,_t=Et.innerR,Bt=Et.idRoot,Jt=Et.idPreviousRoot,Gt=Et.shapeExisting,Ut=Et.shapeRoot,Kt=Et.shapePreviousRoot,le=Et.visible,$t={},ie={end:Pt.end,start:Pt.start,innerR:Pt.innerR,r:Pt.r,x:Pt.x,y:Pt.y};return le?!jt.graphic&&Kt&&(($t=Bt===jt.id?{start:Dt.start,end:Dt.end}:Kt.end<=Pt.start?{start:Dt.end,end:Dt.end}:{start:Dt.start,end:Dt.start}).innerR=$t.r=_t):jt.graphic&&(Jt===jt.id?ie={innerR:_t,r:_t}:Ut&&(ie=Ut.end<=Gt.start?{innerR:_t,r:_t,start:Dt.end,end:Dt.end}:{innerR:_t,r:_t,start:Dt.start,end:Dt.start})),{from:$t,to:ie}}(Tt,{center:bt,point:vt,radians:J,innerR:yt,idRoot:j,idPreviousRoot:Y,shapeExisting:Mt,shapeRoot:z,shapePreviousRoot:q,visible:Lt}):{to:Tt,from:{}},r(vt,{shapeExisting:Tt,tooltipPos:[Tt.plotX,Tt.plotY],drillId:h(vt,j,H),name:""+(vt.name||vt.id||vt.index),plotX:Tt.plotX,plotY:Tt.plotY,value:St.val,isInside:Lt,isNull:!Lt}),vt.dlOptions=function(Pt){var Et,jt,Dt=Pt.point,_t=t(Pt.shapeArgs)?Pt.shapeArgs:{},Bt=t(Pt.optionsPoint)?Pt.optionsPoint.dataLabels:{},Jt=e(t(Pt.level)?Pt.level.dataLabels:{})[0],Gt=o({style:{}},Jt,Bt),Ut=Gt.rotationMode;return a(Gt.rotation)||(Ut!=="auto"&&Ut!=="circular"||(Dt.innerArcLength<1&&Dt.outerArcLength>_t.radius?(Et=0,Dt.dataLabelPath&&Ut==="circular"&&(Gt.textPath={enabled:!0})):Dt.innerArcLength>1&&Dt.outerArcLength>1.5*_t.radius?Ut==="circular"?Gt.textPath={enabled:!0,attributes:{dy:5}}:Ut="parallel":(Dt.dataLabel&&Dt.dataLabel.textPath&&Ut==="circular"&&(Gt.textPath={enabled:!1}),Ut="perpendicular")),Ut!=="auto"&&Ut!=="circular"&&(Et=_t.end-(_t.end-_t.start)/2),Ut==="parallel"?Gt.style.width=Math.min(2.5*_t.radius,(Dt.outerArcLength+Dt.innerArcLength)/2):!p(Gt.style.width)&&_t.radius&&(Gt.style.width=Dt.node.level===1?2*_t.radius:_t.radius),Ut==="perpendicular"&&Dt.series.chart.renderer.fontMetrics(Gt.style.fontSize).h>Dt.outerArcLength&&(Gt.style.width=1),Gt.style.width=Math.max(Gt.style.width-2*(Gt.padding||0),1),jt=Et*s%180,Ut==="parallel"&&(jt-=90),jt>90?jt-=180:jt<-90&&(jt+=180),Gt.rotation=jt),Gt.textPath&&(Dt.shapeExisting.innerR===0&&Gt.textPath.enabled?(Gt.rotation=0,Gt.textPath.enabled=!1,Gt.style.width=Math.max(2*Dt.shapeExisting.r-2*(Gt.padding||0),1)):Dt.dlOptions&&Dt.dlOptions.textPath&&!Dt.dlOptions.textPath.enabled&&Ut==="circular"&&(Gt.textPath.enabled=!0),Gt.textPath.enabled&&(Gt.rotation=0,Gt.style.width=Math.max((Dt.outerArcLength+Dt.innerArcLength)/2-2*(Gt.padding||0),1))),Gt.rotation===0&&(Gt.rotation=.001),Gt}({point:vt,level:wt,optionsPoint:vt.options,shapeArgs:Tt}),!at&&Lt&&(at=!0,xt=C),vt.draw({animatableAttribs:Ct.to,attribs:r(Ct.from,!nt.styledMode&&T.pointAttribs(vt,vt.selected&&"select")),onComplete:xt,group:L,renderer:dt,shapeType:"arc",shapeArgs:Tt})}),ut&&at?(T.hasRendered=!1,T.options.dataLabels.defer=!0,c.prototype.drawDataLabels.call(T),T.hasRendered=!0,ot&&C()):c.prototype.drawDataLabels.call(T)},d.prototype.layoutAlgorithm=function(C,T,N){var z=C.start,L=C.end-z,O=C.val,j=C.x,Y=C.y,H=N&&t(N.levelSize)&&a(N.levelSize.value)?N.levelSize.value:0,W=C.r,q=W+H,tt=N&&a(N.slicedOffset)?N.slicedOffset:0;return(T||[]).reduce(function(J,nt){var lt=1/O*nt.val*L,gt=n(j,Y,z+lt/2,tt),mt={x:nt.sliced?gt.x:j,y:nt.sliced?gt.y:Y,innerR:W,r:q,radius:H,start:z,end:z+lt};return J.push(mt),z=mt.end,J},[])},d.prototype.setShapeArgs=function(C,T,N){var z,L=C.level+1,O=N[L],j=C.children.filter(function(Y){return Y.visible});z=this.layoutAlgorithm(T,j,O),j.forEach(function(Y,H){var W=z[H],q=W.start+(W.end-W.start)/2,tt=W.innerR+(W.r-W.innerR)/2,J=W.end-W.start,nt=W.innerR===0&&J>6.28?{x:W.x,y:W.y}:n(W.x,W.y,q,tt),lt=Y.val?Y.childrenTotal>Y.val?Y.childrenTotal:Y.val:Y.childrenTotal;this.points[Y.i]&&(this.points[Y.i].innerArcLength=J*W.innerR,this.points[Y.i].outerArcLength=J*W.r),Y.shapeArgs=o(W,{plotX:nt.x,plotY:nt.y+4*Math.abs(Math.cos(q))}),Y.values=o(W,{val:lt}),Y.children.length&&this.setShapeArgs(Y,Y.values,N)},this)},d.prototype.translate=function(){var C,T,N,z,L=this,O=L.options,j=L.center=L.getCenter(),Y=L.startAndEndRadians=P(O.startAngle,O.endAngle),H=j[3]/2,W=j[2]/2-H,q=x(L),tt=L.nodeMap,J=tt&&tt[q],nt={};L.shapeRoot=J&&J.shapeArgs,c.prototype.translate.call(L),N=L.tree=L.getTree(),J=(tt=L.nodeMap)[q],T=tt[i(J.parent)?J.parent:""];var lt=$.getLevelFromAndTo(J),gt=lt.from,mt=lt.to;C=S({from:gt,levels:L.options.levels,to:mt,defaults:{colorByPoint:O.colorByPoint,dataLabels:O.dataLabels,levelIsConstant:O.levelIsConstant,levelSize:O.levelSize,slicedOffset:O.slicedOffset}}),C=$.calculateLevelSizes(C,{diffRadius:W,from:gt,to:mt}),M(N,{before:b,idRoot:q,levelIsConstant:O.levelIsConstant,mapOptionsToLevel:C,mapIdToNode:tt,points:L.points,series:L}),z=tt[""].shapeArgs={end:Y.end,r:H,start:Y.start,val:J.val,x:j[0],y:j[1]},this.setShapeArgs(T,z,C),L.mapOptionsToLevel=C,L.data.forEach(function(bt){nt[bt.id]&&g(31,!1,L.chart),nt[bt.id]=!0}),nt={}},d.defaultOptions=o(u.defaultOptions,{center:["50%","50%"],colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"auto",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),d}(u);return r(k.prototype,{drawDataLabels:y,getCenter:A,onPointSupported:!0,pointAttribs:m.prototype.pointAttribs,pointClass:U,NodeClass:F,utils:$}),X.registerSeriesType("sunburst",k),k}),et(_,"masters/modules/sunburst.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6545:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(605)),pt={xAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}}}};rt.default=pt},6660:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/HttpUtilities.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.doc,U=B.createElement,$=B.discardElement,Z=B.merge,V=B.objectEach,F={ajax:function(I){var E={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},A=new XMLHttpRequest;function P(y,c){I.error&&I.error(y,c)}if(!I.url)return!1;A.open((I.type||"get").toUpperCase(),I.url,!0),I.headers&&I.headers["Content-Type"]||A.setRequestHeader("Content-Type",E[I.dataType||"json"]||E.text),V(I.headers,function(y,c){A.setRequestHeader(c,y)}),I.responseType&&(A.responseType=I.responseType),A.onreadystatechange=function(){var y;if(A.readyState===4){if(A.status===200){if(I.responseType!=="blob"&&(y=A.responseText,I.dataType==="json"))try{y=JSON.parse(y)}catch(c){if(c instanceof Error)return P(A,c)}return I.success&&I.success(y,A)}P(A,A.responseText)}},I.data&&typeof I.data!="string"&&(I.data=JSON.stringify(I.data)),A.send(I.data)},getJSON:function(I,E){F.ajax({url:I,success:E,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(I,E,A){var P=U("form",Z({method:"post",action:I,enctype:"multipart/form-data"},A),{display:"none"},X.body);V(E,function(y,c){U("input",{type:"hidden",name:c,value:y},void 0,P)}),P.submit(),$(P)}};return F}),et(_,"Extensions/Data.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/HttpUtilities.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var F=B.getOptions,I=X.doc,E=U.ajax,A=Z.seriesTypes,P=V.addEvent,y=V.defined,c=V.extend,f=V.fireEvent,m=V.isNumber,u=V.merge,v=V.objectEach,S=V.pick,M=V.splat;function x(r){return!!(r&&(r.rowsURL||r.csvURL||r.columnsURL))}var p=function(){function r(a,t,i){t===void 0&&(t={}),this.rowsToColumns=r.rowsToColumns,this.dateFormats={"YYYY/mm/dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{1,2})$/,parser:function(o){return o?Date.UTC(+o[1],o[2]-1,+o[3]):NaN}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[2]-1,+o[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[1]-1,+o[2]):NaN}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){if(!o)return NaN;var e=new Date,s=+o[3];return s>e.getFullYear()-2e3?s+=1900:s+=2e3,Date.UTC(s,o[2]-1,+o[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){return o?Date.UTC(+o[3]+2e3,o[1]-1,+o[2]):NaN}}},this.chart=i,this.chartOptions=t,this.options=a,this.rawColumns=[],this.init(a,t,i)}return r.data=function(a,t,i){return t===void 0&&(t={}),new r(a,t,i)},r.rowsToColumns=function(a){var t,i,o,e,s;if(a)for(s=[],i=a.length,t=0;t<i;t++)for(e=a[t].length,o=0;o<e;o++)s[o]||(s[o]=[]),s[o][t]=a[t][o];return s},r.prototype.init=function(a,t,i){var o,e=a.decimalPoint;t&&(this.chartOptions=t),i&&(this.chart=i),e!=="."&&e!==","&&(e=void 0),this.options=a,this.columns=a.columns||this.rowsToColumns(a.rows)||[],this.firstRowAsNames=S(a.firstRowAsNames,this.firstRowAsNames,!0),this.decimalRegex=e&&new RegExp("^(-?[0-9]+)"+e+"([0-9]+)$"),this.liveDataTimeout!==void 0&&clearTimeout(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),o=!x(a)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&a.afterComplete&&a.afterComplete()},r.prototype.getColumnDistribution=function(){var a,t=this.chartOptions,i=this.options,o=[],e=function(C){return(A[C||"line"].prototype.pointArrayMap||[0]).length},s=function(C){return A[C||"line"].prototype.pointArrayMap},n=t&&t.chart&&t.chart.type,h=[],b=[],k=i&&i.seriesMapping||t&&t.series&&t.series.map(function(){return{x:0}})||[],D=0;(t&&t.series||[]).forEach(function(C){h.push(e(C.type||n))}),k.forEach(function(C){o.push(C.x||0)}),o.length===0&&o.push(0),k.forEach(function(C){var T=new g,N=h[D]||e(n),z=(t&&t.series||[])[D]||{},L=s(z.type||n),O=L||["y"];for((y(C.x)||z.isCartesian||!L)&&T.addColumnReader(C.x,"x"),v(C,function(j,Y){Y!=="x"&&T.addColumnReader(j,Y)}),a=0;a<N;a++)T.hasReader(O[a])||T.addColumnReader(void 0,O[a]);b.push(T),D++});var d=s(n);d===void 0&&(d=["y"]),this.valueCount={global:e(n),xColumns:o,individual:h,seriesBuilders:b,globalPointArrayMap:d}},r.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},r.prototype.parseCSV=function(a){var t,i,o=this,e=this.columns=[],s=a||this.options,n=s.startColumn!==void 0&&s.startColumn?s.startColumn:0,h=s.endColumn||Number.MAX_VALUE,b=[],k={",":0,";":0," ":0},D=s.csv,d=s.startRow!==void 0&&s.startRow?s.startRow:0,C=s.endRow||Number.MAX_VALUE,T=0;function N(L,O,j,Y){var H=0,W="",q="",tt="",J="",nt=0,lt=0;function gt(yt){W=L[yt],q=L[yt-1],tt=L[yt+1]}function mt(yt){b.length<lt+1&&b.push([yt]),b[lt][b[lt].length-1]!==yt&&b[lt].push(yt)}function bt(){if(n>nt||nt>h)return++nt,void(J="");!isNaN(parseFloat(J))&&isFinite(J)?(J=parseFloat(J),mt("number")):isNaN(Date.parse(J))?mt("string"):(J=J.replace(/\//g,"-"),mt("date")),e.length<lt+1&&e.push([]),e[lt][O]=J,J="",++lt,++nt}if(L.trim().length&&L.trim()[0]!=="#"){for(;H<L.length;H++)if(gt(H),W==='"')for(gt(++H);H<L.length&&(W!=='"'||q==='"'||tt==='"');)(W!=='"'||W==='"'&&q!=='"')&&(J+=W),gt(++H);else W===t?bt():J+=W;bt()}}if(D&&s.beforeParse&&(D=s.beforeParse.call(this,D)),D){i=D.replace(/\r\n/g,`
|
|
4
|
+
`).replace(/\r/g,`
|
|
5
|
+
`).split(s.lineDelimiter||`
|
|
6
|
+
`),(!d||d<0)&&(d=0),(!C||C>=i.length)&&(C=i.length-1),s.itemDelimiter?t=s.itemDelimiter:(t=null,t=function(L){var O,j=0,Y=0;return L.some(function(H,W){var q,tt,J,nt=!1,lt="";if(W>13)return!0;for(var gt=0;gt<H.length;gt++){if(q=H[gt],tt=H[gt+1],J=H[gt-1],q==="#")return;if(q==='"')if(nt){if(J!=='"'&&tt!=='"'){for(;tt===" "&><H.length;)tt=H[++gt];k[tt]!==void 0&&k[tt]++,nt=!1}}else nt=!0;else k[q]!==void 0?(lt=lt.trim(),isNaN(Date.parse(lt))&&!isNaN(lt)&&isFinite(lt)||k[q]++,lt=""):lt+=q;q===","&&Y++,q==="."&&j++}}),O=k[";"]>k[","]?";":",",s.decimalPoint||(s.decimalPoint=j>Y?".":",",o.decimalRegex=new RegExp("^(-?[0-9]+)"+s.decimalPoint+"([0-9]+)$")),O}(i));var z=0;for(T=d;T<=C;T++)i[T][0]==="#"?z++:N(i[T],T-d-z);s.columnTypes&&s.columnTypes.length!==0||!b.length||!b[0].length||b[0][1]!=="date"||s.dateFormat||(s.dateFormat=function(L,O){var j,Y,H,W="YYYY/mm/dd",q=[],tt=[],J=[],nt=0,lt=!1;for((!O||O>L.length)&&(O=L.length);nt<O;nt++)if(L[nt]!==void 0&&L[nt]&&L[nt].length)for(j=L[nt].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),J=["","",""],H=0;H<j.length;H++)H<J.length&&(j[H]=parseInt(j[H],10),j[H]&&(tt[H]=!tt[H]||tt[H]<j[H]?j[H]:tt[H],q[H]!==void 0?q[H]!==j[H]&&(q[H]=!1):q[H]=j[H],j[H]>31?j[H]<100?J[H]="YY":J[H]="YYYY":j[H]>12&&j[H]<=31?(J[H]="dd",lt=!0):J[H].length||(J[H]="mm")));if(lt){for(H=0;H<q.length;H++)q[H]!==!1?tt[H]>12&&J[H]!=="YY"&&J[H]!=="YYYY"&&(J[H]="YY"):tt[H]>12&&J[H]==="mm"&&(J[H]="dd");return J.length===3&&J[1]==="dd"&&J[2]==="dd"&&(J[2]="YY"),Y=J.join("/"),(s.dateFormats||o.dateFormats)[Y]?Y:(f("deduceDateFailed"),W)}return W}(e[0])),this.dataFound()}return e},r.prototype.parseTable=function(){var a=this.options,t=this.columns||[],i=a.startRow||0,o=a.endRow||Number.MAX_VALUE,e=a.startColumn||0,s=a.endColumn||Number.MAX_VALUE;if(a.table){var n=a.table;typeof n=="string"&&(n=I.getElementById(n)),[].forEach.call(n.getElementsByTagName("tr"),function(h,b){b>=i&&b<=o&&[].forEach.call(h.children,function(k,D){var d=t[D-e],C=1;if((k.tagName==="TD"||k.tagName==="TH")&&D>=e&&D<=s)for(t[D-e]||(t[D-e]=[]),t[D-e][b-i]=k.innerHTML;b-i>=C&&d[b-i-C]===void 0;)d[b-i-C]=null,C++})}),this.dataFound()}return t},r.prototype.fetchLiveData=function(){var a=this,t=this.chart,i=this.options,o=i.enablePolling,e=u(i),s=0,n=1e3*(i.dataRefreshRate||2);return!!x(i)&&(n<1e3&&(n=1e3),delete i.csvURL,delete i.rowsURL,delete i.columnsURL,function h(b){function k(D,d,C){if(!D||!/^(http|\/|\.\/|\.\.\/)/.test(D))return D&&i.error&&i.error("Invalid URL"),!1;function T(){o&&t.liveDataURL===D&&(a.liveDataTimeout=setTimeout(h,n))}return b&&(clearTimeout(a.liveDataTimeout),t.liveDataURL=D),E({url:D,dataType:C||"json",success:function(N){t&&t.series&&d(N),T()},error:function(N,z){return++s<3&&T(),i.error&&i.error(z,N)}}),!0}k(e.csvURL,function(D){t.update({data:{csv:D}})},"text")||k(e.rowsURL,function(D){t.update({data:{rows:D}})})||k(e.columnsURL,function(D){t.update({data:{columns:D}})})}(!0),x(i))},r.prototype.parseGoogleSpreadsheet=function(){var a=this,t=this.options,i=t.googleSpreadsheetKey,o=this.chart,e=Math.max(1e3*(t.dataRefreshRate||2),4e3),s=function(){if(t.googleSpreadsheetRange)return t.googleSpreadsheetRange;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZ",h=(n.charAt(t.startColumn||0)||"A")+((t.startRow||0)+1),b=n.charAt(S(t.endColumn,-1))||"ZZ";return y(t.endRow)&&(b+=t.endRow+1),""+h+":".concat(b)};return i&&(delete t.googleSpreadsheetKey,function n(h){var b=["https://sheets.googleapis.com/v4/spreadsheets",i,"values",s(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+t.googleAPIKey].join("/");E({url:b,dataType:"json",success:function(k){h(k),t.enablePolling&&(a.liveDataTimeout=setTimeout(function(){n(h)},e))},error:function(k,D){return t.error&&t.error(D,k)}})}(function(n){var h=n.values;if(!h||h.length===0)return!1;var b=h.reduce(function(k,D){return Math.max(k,D.length)},0);h.forEach(function(k){for(var D=0;D<b;D++)k[D]===void 0&&(k[D]=null)}),o&&o.series?o.update({data:{columns:h}}):(a.columns=h,a.dataFound())})),!1},r.prototype.trim=function(a,t){return typeof a=="string"&&(a=a.replace(/^\s+|\s+$/g,""),t&&/^[0-9\s]+$/.test(a)&&(a=a.replace(/\s/g,"")),this.decimalRegex&&(a=a.replace(this.decimalRegex,"$1.$2"))),a},r.prototype.parseTypes=function(){for(var a=this.columns||[],t=a.length;t--;)this.parseColumn(a[t],t)},r.prototype.parseColumn=function(a,t){var i,o,e,s,n,h,b,k=this.rawColumns,D=this.columns,d=this.firstRowAsNames,C=this.valueCount.xColumns.indexOf(t)!==-1,T=[],N=this.chartOptions,z=(this.options.columnTypes||[])[t],L=C&&(N&&N.xAxis&&M(N.xAxis)[0].type==="category"||z==="string"),O=y(a.name),j=a.length;for(k[t]||(k[t]=[]);j--;)i=T[j]||a[j],e=this.trim(i),s=this.trim(i,!0),o=parseFloat(s),k[t][j]===void 0&&(k[t][j]=e),L||j===0&&d&&!O?a[j]=""+e:+s===o?(a[j]=o,o>31536e6&&z!=="float"?a.isDatetime=!0:a.isNumeric=!0,a[j+1]!==void 0&&(b=o>a[j+1])):(e&&e.length&&(n=this.parseDate(i)),C&&m(n)&&z!=="float"?(T[j]=i,a[j]=n,a.isDatetime=!0,a[j+1]!==void 0&&((h=n>a[j+1])!==b&&b!==void 0&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,j=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),b=h)):(a[j]=e===""?null:e,j!==0&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));if(C&&a.mixed&&(D[t]=k[t]),C&&b&&this.options.sort)for(t=0;t<D.length;t++)D[t].reverse(),d&&D[t].unshift(D[t].pop())},r.prototype.parseDate=function(a){var t,i,o,e,s=this.options.parseDate,n=this.options.dateFormat||this.dateFormat;if(s)t=s(a);else if(typeof a=="string"){if(n)(o=this.dateFormats[n])||(o=this.dateFormats["YYYY/mm/dd"]),(e=a.match(o.regex))&&(t=o.parser(e));else for(i in this.dateFormats)if(o=this.dateFormats[i],e=a.match(o.regex)){this.dateFormat=n=i,this.alternativeFormat=o.alternative,t=o.parser(e);break}e||(a.match(/:.+(GMT|UTC|[Z+-])/)&&(a=a.replace(/\s*(?:GMT|UTC)?([+-])(\d\d)(\d\d)$/,"$1$2:$3").replace(/(?:\s+|GMT|UTC)([+-])/,"$1").replace(/(\d)\s*(?:GMT|UTC|Z)$/,"$1+00:00")),typeof(e=Date.parse(a))=="object"&&e!==null&&e.getTime?t=e.getTime()-6e4*e.getTimezoneOffset():m(e)&&(t=e-6e4*new Date(e).getTimezoneOffset()))}return t},r.prototype.getData=function(){if(this.columns)return this.rowsToColumns(this.columns).slice(1)},r.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},r.prototype.complete=function(){var a,t,i,o,e,s,n,h,b,k,D,d,C=this.columns,T=this.options,N=[];if(T.complete||T.afterComplete){if(this.firstRowAsNames)for(o=0;o<C.length;o++){var z=C[o];y(z.name)||(z.name=S(z.shift(),"").toString())}for(t=[],k=function(L,O){var j,Y,H,W=[],q=[];for(Y=0;Y<L;Y+=1)W.push(!0);for(j=0;j<O.length;j+=1)for(H=O[j].getReferencedColumnIndexes(),Y=0;Y<H.length;Y+=1)W[H[Y]]=!1;for(Y=0;Y<W.length;Y+=1)W[Y]&&q.push(Y);return q}(C.length,this.valueCount.seriesBuilders),n=0;n<this.valueCount.seriesBuilders.length;n++)(b=this.valueCount.seriesBuilders[n]).populateColumns(k)&&N.push(b);for(;k.length>0;){for((b=new g).addColumnReader(0,"x"),(d=k.indexOf(0))!==-1&&k.splice(d,1),o=0;o<this.valueCount.global;o++)b.addColumnReader(void 0,this.valueCount.globalPointArrayMap[o]);b.populateColumns(k)&&N.push(b)}if(N.length>0&&N[0].readers.length>0&&(D=C[N[0].readers[0].columnIndex])!==void 0&&(D.isDatetime?a="datetime":D.isNumeric||(a="category")),a==="category")for(n=0;n<N.length;n++)for(b=N[n],s=0;s<b.readers.length;s++)b.readers[s].configName==="x"&&(b.readers[s].configName="name");for(n=0;n<N.length;n++){for(b=N[n],i=[],e=0;e<C[0].length;e++)i[e]=b.read(C,e);t[n]={data:i},b.name&&(t[n].name=b.name),a==="category"&&(t[n].turboThreshold=0)}h={series:t},a&&(h.xAxis={type:a},a==="category"&&(h.xAxis.uniqueNames=!1)),T.complete&&T.complete(h),T.afterComplete&&T.afterComplete(h)}},r.prototype.update=function(a,t){var i=this.chart,o=i.options;a&&(a.afterComplete=function(e){e&&(e.xAxis&&i.xAxis[0]&&e.xAxis.type===i.xAxis[0].options.type&&delete e.xAxis,i.update(e,t,!0))},u(!0,o.data,a),o.data&&o.data.googleSpreadsheetKey&&!a.columns&&delete o.data.columns,this.init(o.data))},r}();P(G,"init",function(r){var a=this,t=r.args[1],i=F().data,o=r.args[0]||{};if((i||o&&o.data)&&!a.hasDataDef){a.hasDataDef=!0;var e=u(i,o.data);a.data=new p(c(e,{afterComplete:function(s){var n,h;if(Object.hasOwnProperty.call(o,"series"))if(typeof o.series=="object")for(n=Math.max(o.series.length,s&&s.series?s.series.length:0);n--;)h=o.series[n]||{},o.series[n]=u(h,s&&s.series?s.series[n]:{});else delete o.series;o=u(s,o),a.init(o,t)}}),o,a),r.preventDefault()}});var g=function(){function r(){this.readers=[],this.pointIsArray=!0}return r.prototype.populateColumns=function(a){var t=!0;return this.readers.forEach(function(i){i.columnIndex===void 0&&(i.columnIndex=a.shift())}),this.readers.forEach(function(i){i.columnIndex===void 0&&(t=!1)}),t},r.prototype.read=function(a,t){var i,o=this,e=o.pointIsArray,s=e?[]:{};return o.readers.forEach(function(n){var h=a[n.columnIndex][t];e?s.push(h):n.configName.indexOf(".")>0?$.prototype.setNestedProperty(s,h,n.configName):s[n.configName]=h}),this.name===void 0&&o.readers.length>=2&&(i=o.getReferencedColumnIndexes()).length>=2&&(i.shift(),i.sort(function(n,h){return n-h}),this.name=a[i.shift()].name),s},r.prototype.addColumnReader=function(a,t){this.readers.push({columnIndex:a,configName:t}),t!=="x"&&t!=="y"&&t!==void 0&&(this.pointIsArray=!1)},r.prototype.getReferencedColumnIndexes=function(){var a,t,i=[];for(a=0;a<this.readers.length;a+=1)(t=this.readers[a]).columnIndex!==void 0&&i.push(t.columnIndex);return i},r.prototype.hasReader=function(a){var t;for(t=0;t<this.readers.length;t+=1)if(this.readers[t].configName===a)return!0},r}();return p}),et(_,"masters/modules/data.src.js",[_["Core/Globals.js"],_["Core/HttpUtilities.js"],_["Extensions/Data.js"]],function(G,B,X){var U=G;U.ajax=B.ajax,U.data=X.data,U.getJSON=B.getJSON,U.post=B.post,U.Data=X,U.HttpUtilities=B})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6681:(it,rt,st)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.getCalculatedPercentageLabelPosition=void 0;var ht=st(5035),ct=st(9223);rt.getCalculatedPercentageLabelPosition=function(pt,ft){var _,et,G,B,X,U,$=(0,ct.getCircleCenter)(pt),Z=$.circleCenterX,V=$.circleCenterY,F=pt.shapeArgs,I=F.start+Math.PI/2,E=F.end+Math.PI/2,A=(0,ht.calculateInscribedCircle)({innerArcRadius:F.innerR||0,outerArcRadius:F.r,phi1:I,phi2:E}),P=(_={angle:A.angle,radialDistance:A.radialDistance},et={x:Z,y:V},G=_.angle,B=_.radialDistance,X=et.x,U=et.y,{x:B*Math.sin(G)+X,y:-B*Math.cos(G)+U}),y=P.x,c=P.y;return{fontSize:(0,ct.calculateFontSize)(A.radius),slicePercentage:(0,ct.getSlicePercentage)(pt),circleCenterX:Z,circleCenterY:V,newCenterX:y,newCenterY:c}}},6713:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=typeof Ki=="object"&&Ki&&Ki.Object===Object&&Ki},6725:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Extensions/Pane.js",[_["Core/Chart/Chart.js"],_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=$.addEvent,V=$.correctFloat,F=$.defined,I=$.extend,E=$.merge,A=$.pick,P=$.splat;G.prototype.collectionsWithUpdate.push("pane");var y=function(){function f(m,u){this.background=void 0,this.center=void 0,this.chart=void 0,this.options=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(m,u)}return f.prototype.init=function(m,u){this.chart=u,this.background=[],u.pane.push(this),this.setOptions(m)},f.prototype.setOptions=function(m){this.options=m=E(this.defaultOptions,this.chart.angular?{background:{}}:void 0,m)},f.prototype.render=function(){var m,u,v=this.options,S=this.options.background,M=this.chart.renderer;if(this.group||(this.group=M.g("pane-group").attr({zIndex:v.zIndex||0}).add()),this.updateCenter(),S)for(S=P(S),m=Math.max(S.length,this.background.length||0),u=0;u<m;u++)S[u]&&this.axis?this.renderBackground(E(this.defaultBackgroundOptions,S[u]),u):this.background[u]&&(this.background[u]=this.background[u].destroy(),this.background.splice(u,1))},f.prototype.renderBackground=function(m,u){var v="animate",S={class:"highcharts-pane "+(m.className||"")};this.chart.styledMode||I(S,{fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth}),this.background[u]||(this.background[u]=this.chart.renderer.path().add(this.group),v="attr"),this.background[u][v]({d:this.axis.getPlotBandPath(m.from,m.to,m)}).attr(S)},f.prototype.updateCenter=function(m){this.center=(m||this.axis||{}).center=B.getCenter.call(this)},f.prototype.update=function(m,u){E(!0,this.options,m),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(v){v.pane===this&&(v.pane=null,v.update({},u))},this)},f}();function c(f,m,u,v,S){var M=!0,x=u[0],p=u[1],g=Math.sqrt(Math.pow(f-x,2)+Math.pow(m-p,2));if(F(v)&&F(S)){var r=Math.atan2(V(m-p,8),V(f-x,8));S!==v&&(M=v>S?r>=v&&r<=Math.PI||r<=S&&r>=-Math.PI:r>=v&&r<=V(S,8))}return g<=Math.ceil(u[2]/2)&&M}return G.prototype.getHoverPane=function(f){var m,u=this;return f&&u.pane.forEach(function(v){c(f.chartX-u.plotLeft,f.chartY-u.plotTop,v.center)&&(m=v)}),m},Z(G,"afterIsInsidePlot",function(f){var m;this.polar&&(f.options.inverted&&(m=[f.y,f.x],f.x=m[0],f.y=m[1]),f.isInsidePlot=this.pane.some(function(u){return c(f.x,f.y,u.center,u.axis&&u.axis.normalizedStartAngleRad,u.axis&&u.axis.normalizedEndAngleRad)}))}),Z(U,"beforeGetHoverData",function(f){var m=this.chart;m.polar?(m.hoverPane=m.getHoverPane(f),f.filter=function(u){return u.visible&&!(!f.shared&&u.directTouch)&&A(u.options.enableMouseTracking,!0)&&(!m.hoverPane||u.xAxis.pane===m.hoverPane)}):m.hoverPane=void 0}),Z(U,"afterGetHoverData",function(f){var m=this.chart;f.hoverPoint&&f.hoverPoint.plotX&&f.hoverPoint.plotY&&m.hoverPane&&!c(f.hoverPoint.plotX,f.hoverPoint.plotY,m.hoverPane.center)&&(f.hoverPoint=void 0)}),X.Pane=y,X.Pane}),et(_,"Series/AreaRange/AreaRangePoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(A,P){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},X(A,P)},function(A,P){function y(){this.constructor=A}X(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=G.seriesTypes.area.prototype,Z=$.pointClass,V=$.pointClass.prototype,F=B.defined,I=B.isNumber,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.high=void 0,y.low=void 0,y.options=void 0,y.plotX=void 0,y.series=void 0,y}return U(P,A),P.prototype.setState=function(){var y=this.state,c=this.series,f=c.chart.polar;F(this.plotHigh)||(this.plotHigh=c.yAxis.toPixels(this.high,!0)),F(this.plotLow)||(this.plotLow=this.plotY=c.yAxis.toPixels(this.low,!0)),c.stateMarkerGraphic&&(c.lowerStateMarkerGraphic=c.stateMarkerGraphic,c.stateMarkerGraphic=c.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,f&&I(this.plotHighX)&&(this.plotX=this.plotHighX),V.setState.apply(this,arguments),this.state=y,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],f&&I(this.plotLowX)&&(this.plotX=this.plotLowX),c.stateMarkerGraphic&&(c.upperStateMarkerGraphic=c.stateMarkerGraphic,c.stateMarkerGraphic=c.lowerStateMarkerGraphic,c.lowerStateMarkerGraphic=void 0),V.setState.apply(this,arguments)},P.prototype.haloPath=function(){var y=this.series.chart.polar,c=[];return this.plotY=this.plotLow,y&&I(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(c=V.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,y&&I(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(c=c.concat(V.haloPath.apply(this,arguments))),c},P.prototype.isValid=function(){return I(this.low)&&I(this.high)},P}(Z);return E}),et(_,"Series/AreaRange/AreaRangeSeries.js",[_["Series/AreaRange/AreaRangePoint.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(x,p){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,r){g.__proto__=r}||function(g,r){for(var a in r)r.hasOwnProperty(a)&&(g[a]=r[a])},$(x,p)},function(x,p){function g(){this.constructor=x}$(x,p),x.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),V=B.noop,F=X.seriesTypes,I=F.area,E=F.area.prototype,A=F.column.prototype,P=U.addEvent,y=U.defined,c=U.extend,f=U.isArray,m=U.isNumber,u=U.pick,v=U.merge,S={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}},M=function(x){function p(){var g=x!==null&&x.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g.lowerStateMarkerGraphic=void 0,g.xAxis=void 0,g}return Z(p,x),p.prototype.toYData=function(g){return[g.low,g.high]},p.prototype.highToXY=function(g){var r=this.chart,a=this.xAxis.postTranslate(g.rectPlotX||0,this.yAxis.len-(g.plotHigh||0));g.plotHighX=a.x-r.plotLeft,g.plotHigh=a.y-r.plotTop,g.plotLowX=g.plotX},p.prototype.getGraphPath=function(g){var r,a,t,i=[],o=[],e=E.getGraphPath,s=this.options,n=this.chart.polar,h=n&&s.connectEnds!==!1,b=s.connectNulls,k=s.step;for(r=(g=g||this.points).length;r--;){a=g[r];var D=n?{plotX:a.rectPlotX,plotY:a.yBottom,doCurve:!1}:{plotX:a.plotX,plotY:a.plotY,doCurve:!1};a.isNull||h||b||g[r+1]&&!g[r+1].isNull||o.push(D),t={polarPlotY:a.polarPlotY,rectPlotX:a.rectPlotX,yBottom:a.yBottom,plotX:u(a.plotHighX,a.plotX),plotY:a.plotHigh,isNull:a.isNull},o.push(t),i.push(t),a.isNull||h||b||g[r-1]&&!g[r-1].isNull||o.push(D)}var d=e.call(this,g);k&&(k===!0&&(k="left"),s.step={left:"right",center:"center",right:"left"}[k]);var C=e.call(this,i),T=e.call(this,o);s.step=k;var N=[].concat(d,C);return!this.chart.polar&&T[0]&&T[0][0]==="M"&&(T[0]=["L",T[0][1],T[0][2]]),this.graphPath=N,this.areaPath=d.concat(T),N.isArea=!0,N.xMap=d.xMap,this.areaPath.xMap=d.xMap,N},p.prototype.drawDataLabels=function(){var g,r,a,t,i,o=this.points,e=o.length,s=[],n=this.options.dataLabels,h=this.chart.inverted;if(n){if(f(n)?(t=n[0]||{enabled:!1},i=n[1]||{enabled:!1}):((t=c({},n)).x=n.xHigh,t.y=n.yHigh,(i=c({},n)).x=n.xLow,i.y=n.yLow),t.enabled||this._hasPointLabels){for(g=e;g--;)if(r=o[g]){var b=r.plotHigh,k=b===void 0?0:b,D=r.plotLow,d=D===void 0?0:D;a=t.inside?k<d:k>d,r.y=r.high,r._plotY=r.plotY,r.plotY=k,s[g]=r.dataLabel,r.dataLabel=r.dataLabelUpper,r.below=a,h?t.align||(t.align=a?"right":"left"):t.verticalAlign||(t.verticalAlign=a?"top":"bottom")}for(this.options.dataLabels=t,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments),g=e;g--;)(r=o[g])&&(r.dataLabelUpper=r.dataLabel,r.dataLabel=s[g],delete r.dataLabels,r.y=r.low,r.plotY=r._plotY)}if(i.enabled||this._hasPointLabels){for(g=e;g--;)if(r=o[g]){var C=r.plotHigh,T=(k=C===void 0?0:C,r.plotLow);d=T===void 0?0:T,a=i.inside?k<d:k>d,r.below=!a,h?i.align||(i.align=a?"left":"right"):i.verticalAlign||(i.verticalAlign=a?"bottom":"top")}this.options.dataLabels=i,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments)}if(t.enabled)for(g=e;g--;)(r=o[g])&&(r.dataLabels=[r.dataLabelUpper,r.dataLabel].filter(function(N){return!!N}));this.options.dataLabels=n}},p.prototype.alignDataLabel=function(){A.alignDataLabel.apply(this,arguments)},p.prototype.drawPoints=function(){var g,r,a=this,t=a.points.length;for(E.drawPoints.apply(a,arguments),g=0;g<t;)(r=a.points[g]).graphics=r.graphics||[],r.origProps={plotY:r.plotY,plotX:r.plotX,isInside:r.isInside,negative:r.negative,zone:r.zone,y:r.y},(r.graphic||r.graphics[0])&&(r.graphics[0]=r.graphic),r.graphic=r.graphics[1],r.plotY=r.plotHigh,y(r.plotHighX)&&(r.plotX=r.plotHighX),r.y=u(r.high,r.origProps.y),r.negative=r.y<(a.options.threshold||0),a.zones.length&&(r.zone=r.getZone()),a.chart.polar||(r.isInside=r.isTopInside=r.plotY!==void 0&&r.plotY>=0&&r.plotY<=a.yAxis.len&&r.plotX>=0&&r.plotX<=a.xAxis.len),g++;for(E.drawPoints.apply(a,arguments),g=0;g<t;)(r=a.points[g]).graphics=r.graphics||[],(r.graphic||r.graphics[1])&&(r.graphics[1]=r.graphic),r.graphic=r.graphics[0],r.origProps&&(c(r,r.origProps),delete r.origProps),g++},p.defaultOptions=v(I.defaultOptions,S),p}(I);return P(M,"afterTranslate",function(){var x=this;this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(function(p){var g=p.high,r=p.plotY;p.isNull?p.plotY=void 0:(p.plotLow=r,p.plotHigh=m(g)?x.yAxis.translate(x.dataModify?x.dataModify.modifyValue(g):g,!1,!0,void 0,!0):void 0,x.dataModify&&(p.yBottom=p.plotHigh))})},{order:0}),P(M,"afterTranslate",function(){var x=this;this.points.forEach(function(p){if(x.chart.polar)x.highToXY(p),p.plotLow=p.plotY,p.tooltipPos=[((p.plotHighX||0)+(p.plotLowX||0))/2,((p.plotHigh||0)+(p.plotLow||0))/2];else{var g=p.pos(!1,p.plotLow),r=p.pos(!1,p.plotHigh);g&&r&&(g[0]=(g[0]+r[0])/2,g[1]=(g[1]+r[1])/2),p.tooltipPos=g}})},{order:3}),c(M.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:G,pointValKey:"low",setStackedPoints:V}),X.registerSeriesType("arearange",M),M}),et(_,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[_["Series/AreaRange/AreaRangeSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(E,A){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var c in y)y.hasOwnProperty(c)&&(P[c]=y[c])},U(E,A)},function(E,A){function P(){this.constructor=E}U(E,A),E.prototype=A===null?Object.create(A):(P.prototype=A.prototype,new P)}),Z=B.seriesTypes.spline.prototype,V=X.merge,F=X.extend,I=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.options=void 0,P.data=void 0,P.points=void 0,P}return $(A,E),A.defaultOptions=V(G.defaultOptions),A}(G);return F(I.prototype,{getPointSpline:Z.getPointSpline}),B.registerSeriesType("areasplinerange",I),I}),et(_,"Series/BoxPlot/BoxPlotSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m])},$(P,y)},function(P,y){function c(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}),V=B.noop,F=U.extend,I=U.merge,E=U.pick,A=function(P){function y(){var c=P!==null&&P.apply(this,arguments)||this;return c.data=void 0,c.options=void 0,c.points=void 0,c}return Z(y,P),y.prototype.pointAttribs=function(){return{}},y.prototype.translate=function(){var c=this,f=c.yAxis,m=c.pointArrayMap;P.prototype.translate.apply(c),c.points.forEach(function(u){m.forEach(function(v){u[v]!==null&&(u[v+"Plot"]=f.translate(u[v],0,1,0,1))}),u.plotHigh=u.highPlot})},y.prototype.drawPoints=function(){var c,f,m,u,v,S,M,x,p,g,r,a=this,t=a.points,i=a.options,o=a.chart,e=o.renderer,s=0,n=a.doQuartiles!==!1,h=a.options.whiskerLength;t.forEach(function(b){var k=b.graphic,D=k?"animate":"attr",d=b.shapeArgs,C={},T={},N={},z={},L=b.color||a.color;if(b.plotY!==void 0){M=Math.round(d.width),x=Math.floor(d.x),p=x+M,g=Math.round(M/2),c=Math.floor(n?b.q1Plot:b.lowPlot),f=Math.floor(n?b.q3Plot:b.lowPlot),m=Math.floor(b.highPlot),u=Math.floor(b.lowPlot),k||(b.graphic=k=e.g("point").add(a.group),b.stem=e.path().addClass("highcharts-boxplot-stem").add(k),h&&(b.whiskers=e.path().addClass("highcharts-boxplot-whisker").add(k)),n&&(b.box=e.path(void 0).addClass("highcharts-boxplot-box").add(k)),b.medianShape=e.path(void 0).addClass("highcharts-boxplot-median").add(k)),o.styledMode||(T.stroke=b.stemColor||i.stemColor||L,T["stroke-width"]=E(b.stemWidth,i.stemWidth,i.lineWidth),T.dashstyle=b.stemDashStyle||i.stemDashStyle||i.dashStyle,b.stem.attr(T),h&&(N.stroke=b.whiskerColor||i.whiskerColor||L,N["stroke-width"]=E(b.whiskerWidth,i.whiskerWidth,i.lineWidth),N.dashstyle=b.whiskerDashStyle||i.whiskerDashStyle||i.dashStyle,b.whiskers.attr(N)),n&&(C.fill=b.fillColor||i.fillColor||L,C.stroke=i.lineColor||L,C["stroke-width"]=i.lineWidth||0,C.dashstyle=b.boxDashStyle||i.boxDashStyle||i.dashStyle,b.box.attr(C)),z.stroke=b.medianColor||i.medianColor||L,z["stroke-width"]=E(b.medianWidth,i.medianWidth,i.lineWidth),z.dashstyle=b.medianDashStyle||i.medianDashStyle||i.dashStyle,b.medianShape.attr(z));var O=void 0;S=b.stem.strokeWidth()%2/2,O=[["M",s=x+g+S,f],["L",s,m],["M",s,c],["L",s,u]],b.stem[D]({d:O}),n&&(S=b.box.strokeWidth()%2/2,c=Math.floor(c)+S,f=Math.floor(f)+S,O=[["M",x+=S,f],["L",x,c],["L",p+=S,c],["L",p,f],["L",x,f],["Z"]],b.box[D]({d:O})),h&&(S=b.whiskers.strokeWidth()%2/2,m+=S,u+=S,r=/%$/.test(h)?g*parseFloat(h)/100:h/2,O=[["M",s-r,m],["L",s+r,m],["M",s-r,u],["L",s+r,u]],b.whiskers[D]({d:O})),v=Math.round(b.medianPlot),S=b.medianShape.strokeWidth()%2/2,O=[["M",x,v+=S],["L",p,v]],b.medianShape[D]({d:O})}})},y.prototype.toYData=function(c){return[c.low,c.q1,c.median,c.q3,c.high]},y.defaultOptions=I(G.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),y}(G);return F(A.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:V,setStackedPoints:V}),X.registerSeriesType("boxplot",A),A}),et(_,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),et(_,"Series/Bubble/BubbleLegendItem.js",[_["Core/Color/Color.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=G.parse,Z=X.noop,V=U.arrayMax,F=U.arrayMin,I=U.isNumber,E=U.merge,A=U.pick,P=U.stableSort;return function(){function y(c,f){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(c,f)}return y.prototype.init=function(c,f){this.options=c,this.visible=!0,this.chart=f.chart,this.legend=f},y.prototype.addToLegend=function(c){c.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(c){var f,m=this.chart,u=A(c.options.itemDistance,20),v=this.legendItem||{},S=this.options,M=S.ranges,x=S.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(S.labels.style.fontSize),M&&M.length&&I(M[0].value)){P(M,function(a,t){return t.value-a.value}),this.ranges=M,this.setOptions(),this.render();var p=this.getMaxLabelSize(),g=this.ranges[0].radius,r=2*g;f=(f=x-g+p.width)>0?f:0,this.maxLabel=p,this.movementX=S.labels.align==="left"?f:0,v.labelWidth=r+f+u,v.labelHeight=r+this.fontMetrics.h/2}else c.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var c=this.ranges,f=this.options,m=this.chart.series[f.seriesIndex],u=this.legend.baseline,v={zIndex:f.zIndex,"stroke-width":f.borderWidth},S={zIndex:f.zIndex,"stroke-width":f.connectorWidth},M={align:this.legend.options.rtl||f.labels.align==="left"?"right":"left",zIndex:f.zIndex},x=m.options.marker.fillOpacity,p=this.chart.styledMode;c.forEach(function(g,r){p||(v.stroke=A(g.borderColor,f.borderColor,m.color),v.fill=A(g.color,f.color,x!==1?$(m.color).setOpacity(x).get("rgba"):m.color),S.stroke=A(g.connectorColor,f.connectorColor,m.color)),c[r].radius=this.getRangeRadius(g.value),c[r]=E(c[r],{center:c[0].radius-c[r].radius+u}),p||E(!0,c[r],{bubbleAttribs:E(v),connectorAttribs:E(S),labelAttribs:M})},this)},y.prototype.getRangeRadius=function(c){var f=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=f.ranges[0].value,S=f.ranges[f.ranges.length-1].value,M=f.minSize,x=f.maxSize;return u.getRadius.call(this,S,v,M,x,c)},y.prototype.render=function(){var c=this.legendItem||{},f=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),c.symbol=f.g("bubble-legend"),c.label=f.g("bubble-legend-item"),c.symbol.translateX=0,c.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var S=v[u];S.value>=m&&this.renderRange(S)}c.symbol.add(c.label),c.label.add(c.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(c){var f=this.ranges[0],m=this.legend,u=this.options,v=u.labels,S=this.chart,M=S.series[u.seriesIndex],x=S.renderer,p=this.symbols,g=p.labels,r=c.center,a=Math.abs(c.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,s=u.connectorWidth,n=f.radius||0,h=r-a-e/2+s/2,b=this.fontMetrics,k=b.f/2-(b.h-b.f)/2,D=(h%1?1:.5)-(s%2?0:.5),d=x.styledMode,C=o||i==="left"?-t:t;i==="center"&&(C=0,u.connectorDistance=0,c.labelAttribs.align="center");var T=h+u.labels.y,N=n+C+u.labels.x;p.bubbleItems.push(x.circle(n,r+D,a).attr(d?{}:c.bubbleAttribs).addClass((d?"highcharts-color-"+M.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),p.connectors.push(x.path(x.crispLine([["M",n,h],["L",n+C,h]],u.connectorWidth)).attr(d?{}:c.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var z=x.text(this.formatLabel(c),N,T+k).attr(d?{}:c.labelAttribs).css(d?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);g.push(z),z.placed=!0,z.alignAttr={x:N,y:T+k}},y.prototype.getMaxLabelSize=function(){var c,f;return this.symbols.labels.forEach(function(m){f=m.getBBox(!0),c=c?f.width>c.width?f:c:f}),c||{}},y.prototype.formatLabel=function(c){var f=this.options,m=f.labels.formatter,u=f.labels.format,v=this.chart.numberFormatter;return u?B.format(u,c):m?m.call(c):v(c.value,1)},y.prototype.hideOverlappingLabels=function(){var c=this.chart,f=this.options.labels.allowOverlap,m=this.symbols;!f&&m&&(c.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var c,f,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,S=Number.MAX_VALUE,M=-Number.MAX_VALUE;return u.forEach(function(x){x.isBubble&&!x.ignoreSeries&&(f=x.zData.filter(I)).length&&(S=A(x.options.zMin,Math.min(S,Math.max(F(f),x.options.displayNegative===!1?x.options.zThreshold:-Number.MAX_VALUE))),M=A(x.options.zMax,Math.max(M,V(f))))}),c=S===M?[{value:M}]:[{value:S},{value:(S+M)/2},{value:M,autoRanges:!0}],v.length&&v[0].radius&&c.reverse(),c.forEach(function(x,p){v&&v[p]&&(c[p]=E(v[p],x))}),c},y.prototype.predictBubbleSizes=function(){var c,f=this.chart,m=this.fontMetrics,u=f.legend.options,v=u.floating,S=u.layout==="horizontal",M=S?f.legend.lastLineHeight:0,x=f.plotSizeX,p=f.plotSizeY,g=f.series[this.options.seriesIndex],r=g.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(p,x),o=g.options.maxSize;return v||!/%$/.test(o)?c=t:(o=parseFloat(o),c=(i+M-m.h/2)*o/100/(o/100+1),(S&&p-c>=x||!S&&x-c>=p)&&(c=t)),[a,Math.ceil(c)]},y.prototype.updateRanges=function(c,f){var m=this.legend.options.bubbleLegend;m.minSize=c,m.maxSize=f,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var c=this.legend,f=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=f.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,f.maxPxSize),c.render())},y}()}),et(_,"Series/Bubble/BubbleLegendComposition.js",[_["Series/Bubble/BubbleLegendDefaults.js"],_["Series/Bubble/BubbleLegendItem.js"],_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=X.setOptions,Z=U.addEvent,V=U.objectEach,F=U.wrap,I=[];function E(m,u,v){var S,M,x,p=this,g=p.legend,r=A(p)>=0;g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&r?(S=g.bubbleLegend.options,M=g.bubbleLegend.predictBubbleSizes(),g.bubbleLegend.updateRanges(M[0],M[1]),S.placed||(g.group.placed=!1,g.allItems.forEach(function(a){(x=a.legendItem||{}).group&&(x.group.translateY=null)})),g.render(),p.getMargins(),p.axes.forEach(function(a){a.visible&&a.render(),S.placed||(a.setScale(),a.updateNames(),V(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),S.placed=!0,p.getMargins(),m.call(p,u,v),g.bubbleLegend.correctSizes(),f(g,P(g))):(m.call(p,u,v),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),f(g,P(g))))}function A(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,S,M=m.allItems,x=[],p=M.length,g=0,r=0;for(g=0;g<p;g++)if(v=M[g].legendItem||{},S=(M[g+1]||{}).legendItem||{},v.labelHeight&&(M[g].itemHeight=v.labelHeight),M[g]===M[p-1]||v.y!==S.y){for(x.push({height:0}),u=x[x.length-1];r<=g;r++)M[r].itemHeight>u.height&&(u.height=M[r].itemHeight);u.step=g}return x}function y(m){var u=this,v=u.bubbleLegend,S=u.options,M=S.bubbleLegend,x=A(u.chart);v&&v.ranges&&v.ranges.length&&(M.ranges.length&&(M.autoRanges=!!M.ranges[0].autoRanges),u.destroyItem(v)),x>=0&&S.enabled&&M.enabled&&(M.seriesIndex=x,u.bubbleLegend=new B(M,u),u.bubbleLegend.addToLegend(m.allItems))}function c(){var m,u=this,v=u.chart,S=u.visible,M=u.chart.legend;M&&M.bubbleLegend&&(u.visible=!S,u.ignoreSeries=S,m=A(v)>=0,M.bubbleLegend.visible!==m&&(M.update({bubbleLegend:{enabled:m}}),M.bubbleLegend.visible=m),u.visible=S)}function f(m,u){var v,S,M,x,p=m.allItems,g=m.options.rtl,r=0;p.forEach(function(a,t){(x=a.legendItem||{}).group&&(v=x.group.translateX||0,S=x.y||0,((M=a.movementX)||g&&a.ranges)&&(M=g?v-a.options.maxSize/2:v+M,x.group.attr({translateX:M})),t>u[r].step&&r++,x.group.attr({translateY:Math.round(S+u[r].height/2)}),x.y=S+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:G}}),F(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",c))}}}),et(_,"Series/Bubble/BubblePoint.js",[_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=B.seriesTypes.scatter.prototype.pointClass,V=X.extend,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.options=void 0,A.series=void 0,A}return $(E,I),E.prototype.haloPath=function(A){return G.prototype.haloPath.call(this,A===0?0:(this.marker&&this.marker.radius||0)+A)},E}(Z);return V(F.prototype,{ttBelow:!1}),F}),et(_,"Series/Bubble/BubbleSeries.js",[_["Series/Bubble/BubbleLegendComposition.js"],_["Series/Bubble/BubblePoint.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V,F=this&&this.__extends||(V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},V(t,i)},function(t,i){function o(){this.constructor=t}V(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=X.parse,E=U.noop,A=$.series,P=$.seriesTypes,y=P.column.prototype,c=P.scatter,f=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,S=Z.extend,M=Z.isNumber,x=Z.merge,p=Z.pick,g=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",h=this.min,b=this.max-h,k=0,D=o,d=o/b;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var T=C[n];if(s&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),b>0){for(var N=T.length;N--;)if(M(T[N])&&i.dataMin<=T[N]&&T[N]<=i.max){var z=C.radii&&C.radii[N]||0;k=Math.min((T[N]-h)*d-z,k),D=Math.max((T[N]-h)*d+z,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,d*=(o+Math.max(0,k)-Math.min(D,o))/o,[["min","userMin",k],["max","userMax",D]].forEach(function(C){p(i.options[C[0]],i[C[1]])===void 0&&(i[C[0]]+=C[2]/d)}))}var a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return F(i,t),i.compose=function(o,e,s,n){G.compose(e,s,n),g.indexOf(o)===-1&&(g.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,h=this.zData,b=this.yData,k=[],D=this.chart.bubbleZExtremes,d=this.getPxExtremes(),C=d.minPxSize,T=d.maxPxSize;if(!D){var N,z=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(z=Math.min(z||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:z,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=h.length;e<o;e++)s=h[e],k.push(this.getRadius(D.zMin,D.zMax,C,T,s,b&&b[e]));this.radii=k},i.prototype.getRadius=function(o,e,s,n,h,b){var k=this.options,D=k.sizeBy!=="width",d=k.zThreshold,C=e-o,T=.5;if(b===null||h===null)return null;if(M(h)){if(k.sizeByAbsoluteValue&&(h=Math.abs(h-d),e=C=Math.max(e-d,Math.abs(o-d)),o=0),h<o)return s/2-1;C>0&&(T=(h-o)/C)}return D&&T>=0&&(T=Math.sqrt(T)),Math.ceil(s+T*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=A.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var h=o[n],b=e?e[n]:0;M(b)&&b>=s/2?(h.marker=S(h.marker,{radius:b,width:2*b,height:2*b}),h.dlBox={x:h.plotX-b,y:h.plotY-b,width:2*b,height:2*b}):(h.shapeArgs=h.plotY=h.dlBox=void 0,h.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var h;return typeof n=="string"&&(h=/%$/.test(n),n=parseInt(n,10)),h?o*n/100:n},s=e(p(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(p(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(M);if(e.length){var s=p(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=p(o.zMax,m(e));if(M(s)&&M(n))return{zMin:s,zMax:n}}},i.defaultOptions=x(c.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return M(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(c);return S(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:B,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),et(_,"Series/ColumnRange/ColumnRangePoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(A,P){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},X(A,P)},function(A,P){function y(){this.constructor=A}X(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=G.seriesTypes,Z=$.column.prototype.pointClass.prototype,V=$.arearange.prototype.pointClass,F=B.extend,I=B.isNumber,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y}return U(P,A),P.prototype.isValid=function(){return I(this.low)},P}(V);return F(E.prototype,{setState:Z.setState}),E}),et(_,"Series/ColumnRange/ColumnRangeSeries.js",[_["Series/ColumnRange/ColumnRangePoint.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(S,M){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,p){x.__proto__=p}||function(x,p){for(var g in p)p.hasOwnProperty(g)&&(x[g]=p[g])},$(S,M)},function(S,M){function x(){this.constructor=S}$(S,M),S.prototype=M===null?Object.create(M):(x.prototype=M.prototype,new x)}),V=B.noop,F=X.seriesTypes,I=F.arearange,E=F.column,A=F.column.prototype,P=U.clamp,y=U.extend,c=U.isNumber,f=U.merge,m=U.pick,u={pointRange:null,marker:null,states:{hover:{halo:!1}}},v=function(S){function M(){return S!==null&&S.apply(this,arguments)||this}return Z(M,S),M.prototype.setOptions=function(){return f(!0,arguments[0],{stacking:void 0}),I.prototype.setOptions.apply(this,arguments)},M.prototype.translate=function(){var x,p,g,r,a=this,t=this.yAxis,i=this.xAxis,o=i.startAngleRad,e=this.chart,s=this.xAxis.isRadial,n=Math.max(e.chartWidth,e.chartHeight)+999;function h(b){return P(b,-n,n)}A.translate.apply(this),this.points.forEach(function(b){var k=b.shapeArgs||{},D=a.options.minPointLength,d=b.plotY,C=t.translate(b.high,0,1,0,1);if(c(C)&&c(d))if(b.plotHigh=h(C),b.plotLow=h(d),r=b.plotHigh,x=m(b.rectPlotY,b.plotY)-b.plotHigh,Math.abs(x)<D?(x+=p=D-x,r-=p/2):x<0&&(r-=x*=-1),s&&a.polar)g=b.barX+o,b.shapeType="arc",b.shapeArgs=a.polar.arc(r+x,r,g,g+b.pointWidth);else{k.height=x,k.y=r;var T=k.x,N=T===void 0?0:T,z=k.width,L=z===void 0?0:z;b.tooltipPos=e.inverted?[t.len+t.pos-e.plotLeft-r-x/2,i.len+i.pos-e.plotTop-N-L/2,x]:[i.left-e.plotLeft+N+L/2,t.pos-e.plotTop+r+x/2,x]}})},M.prototype.pointAttribs=function(){return A.pointAttribs.apply(this,arguments)},M.prototype.translate3dPoints=function(){return A.translate3dPoints.apply(this,arguments)},M.prototype.translate3dShapes=function(){return A.translate3dShapes.apply(this,arguments)},M.defaultOptions=f(E.defaultOptions,I.defaultOptions,u),M}(I);return y(v.prototype,{directTouch:!0,pointClass:G,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:A.adjustForMissingColumns,animate:A.animate,crispCol:A.crispCol,drawGraph:V,drawPoints:A.drawPoints,getSymbol:V,drawTracker:A.drawTracker,getColumnMetrics:A.getColumnMetrics}),X.registerSeriesType("columnrange",v),v}),et(_,"Series/ColumnPyramid/ColumnPyramidSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(A,P){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var f in c)c.hasOwnProperty(f)&&(y[f]=c[f])},U(A,P)},function(A,P){function y(){this.constructor=A}U(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),Z=G.prototype,V=X.clamp,F=X.merge,I=X.pick,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,A),P.prototype.translate=function(){var y=this,c=y.chart,f=y.options,m=y.dense=y.closestPointRange*y.xAxis.transA<2,u=y.borderWidth=I(f.borderWidth,m?0:1),v=y.yAxis,S=f.threshold,M=y.translatedThreshold=v.getThreshold(S),x=I(f.minPointLength,5),p=y.getColumnMetrics(),g=p.width,r=y.barW=Math.max(g,1+2*u),a=y.pointXOffset=p.offset;c.inverted&&(M-=.5),f.pointPadding&&(r=Math.ceil(r)),Z.translate.apply(y),y.points.forEach(function(t){var i,o,e,s,n,h,b,k,D,d,C,T,N=I(t.yBottom,M),z=999+Math.abs(N),L=V(t.plotY,-z,v.len+z),O=t.plotX+a,j=r/2,Y=Math.min(L,N),H=Math.max(L,N)-Y;t.barX=O,t.pointWidth=g,t.tooltipPos=c.inverted?[v.len+v.pos-c.plotLeft-L,y.xAxis.len-O-j,H]:[O+j,L+v.pos-c.plotTop,H],i=S+(t.total||t.y),f.stacking==="percent"&&(i=S+(t.y<0)?-100:100),e=v.toPixels(i,!0),b=O-(s=(o=c.plotHeight-e-(c.plotHeight-M))?j*(Y-e)/o:0)+j,k=O+s+j,D=O+(n=o?j*(Y+H-e)/o:0)+j,d=O-n+j,C=Y-x,T=Y+H,t.y<0&&(C=Y,T=Y+H+x),c.inverted&&(k=(b=O+j+(s=j*(e-(h=v.width-Y))/(o=e-(v.width-M))))-2*s,D=O-(n=j*(e-(h-H))/o)+j,d=O+n+j,C=Y,T=Y+H-x,t.y<0&&(T=Y+H+x)),t.shapeType="path",t.shapeArgs={x:b,y:C,width:k-b,height:H,d:[["M",b,C],["L",k,C],["L",D,T],["L",d,T],["Z"]]}})},P.defaultOptions=F(G.defaultOptions,{}),P}(G);return B.registerSeriesType("columnpyramid",E),E}),et(_,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),et(_,"Series/ErrorBar/ErrorBarSeries.js",[_["Series/BoxPlot/BoxPlotSeries.js"],_["Series/Column/ColumnSeries.js"],_["Series/ErrorBar/ErrorBarSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(y,c){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,c)},function(y,c){function f(){this.constructor=y}Z(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),F=U.seriesTypes.arearange,I=$.addEvent,E=$.merge,A=$.extend,P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return V(c,y),c.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||B.prototype.getColumnMetrics.call(this)},c.prototype.drawDataLabels=function(){var f=this.pointValKey;F&&(F.prototype.drawDataLabels.call(this),this.data.forEach(function(m){m.y=m[f]}))},c.prototype.toYData=function(f){return[f.low,f.high]},c.defaultOptions=E(G.defaultOptions,X),c}(G);return I(P,"afterTranslate",function(){this.points.forEach(function(y){y.plotLow=y.plotY})},{order:0}),A(P.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),U.registerSeriesType("errorbar",P),P}),et(_,"Series/Gauge/GaugePoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V.shapeArgs=void 0,V}return X(Z,$),Z.prototype.setState=function(V){this.state=V},Z}(G.series.prototype.pointClass);return U}),et(_,"Series/Gauge/GaugeSeries.js",[_["Series/Gauge/GaugePoint.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,M){S.__proto__=M}||function(S,M){for(var x in M)M.hasOwnProperty(x)&&(S[x]=M[x])},$(u,v)},function(u,v){function S(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),V=B.noop,F=X.series,I=X.seriesTypes.column,E=U.clamp,A=U.isNumber,P=U.extend,y=U.merge,c=U.pick,f=U.pInt,m=function(u){function v(){var S=u!==null&&u.apply(this,arguments)||this;return S.data=void 0,S.points=void 0,S.options=void 0,S.yAxis=void 0,S}return Z(v,u),v.prototype.translate=function(){var S=this,M=S.yAxis,x=S.options,p=M.center;S.generatePoints(),S.points.forEach(function(g){var r=y(x.dial,g.dial),a=f(r.radius)*p[2]/200,t=f(r.baseLength)*a/100,i=f(r.rearLength)*a/100,o=r.baseWidth,e=r.topWidth,s=x.overshoot,n=M.startAngleRad+M.translate(g.y,void 0,void 0,void 0,!0);(A(s)||x.wrap===!1)&&(s=A(s)?s/180*Math.PI:0,n=E(n,M.startAngleRad-s,M.endAngleRad+s)),n=180*n/Math.PI,g.shapeType="path";var h=r.path||[["M",-i,-o/2],["L",t,-o/2],["L",a,-e/2],["L",a,e/2],["L",t,o/2],["L",-i,o/2],["Z"]];g.shapeArgs={d:h,translateX:p[0],translateY:p[1],rotation:n},g.plotX=p[0],g.plotY=p[1]})},v.prototype.drawPoints=function(){var S=this,M=S.chart,x=S.yAxis.center,p=S.pivot,g=S.options,r=g.pivot,a=M.renderer;S.points.forEach(function(t){var i=t.graphic,o=t.shapeArgs,e=o.d,s=y(g.dial,t.dial);i?(i.animate(o),o.d=e):t.graphic=a[t.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(S.group),M.styledMode||t.graphic[i?"animate":"attr"]({stroke:s.borderColor,"stroke-width":s.borderWidth,fill:s.backgroundColor})}),p?p.animate({translateX:x[0],translateY:x[1]}):r&&(S.pivot=a.circle(0,0,r.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(x[0],x[1]).add(S.group),M.styledMode||S.pivot.attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth}))},v.prototype.animate=function(S){var M=this;S||M.points.forEach(function(x){var p=x.graphic;p&&(p.attr({rotation:180*M.yAxis.startAngleRad/Math.PI}),p.animate({rotation:x.shapeArgs.rotation},M.options.animation))})},v.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),F.prototype.render.call(this),this.group.clip(this.chart.clipRect)},v.prototype.setData=function(S,M){F.prototype.setData.call(this,S,!1),this.processData(),this.generatePoints(),c(M,!0)&&this.chart.redraw()},v.prototype.hasData=function(){return!!this.points.length},v.defaultOptions=y(F.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),v}(F);return P(m.prototype,{angular:!0,directTouch:!0,drawGraph:V,drawTracker:I.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:G,trackerGroups:["group","dataLabelsGroup"]}),X.registerSeriesType("gauge",m),m}),et(_,"Series/DragNodesComposition.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,X=[];function U(){var $,Z,V,F=this;F.container&&($=B(F.container,"mousedown",function(I){var E=F.hoverPoint;E&&E.series&&E.series.hasDraggableNodes&&E.series.options.draggable&&(E.series.onMouseDown(E,I),Z=B(F.container,"mousemove",function(A){return E&&E.series&&E.series.onMouseMove(E,A)}),V=B(F.container.ownerDocument,"mouseup",function(A){return Z(),V(),E&&E.series&&E.series.onMouseUp(E,A)}))})),B(F,"destroy",function(){$()})}return{compose:function($){X.indexOf($)===-1&&(X.push($),B($,"load",U))},onMouseDown:function($,Z){var V=this.chart.pointer.normalize(Z);$.fixedPosition={chartX:V.chartX,chartY:V.chartY,plotX:$.plotX,plotY:$.plotY},$.inDragMode=!0},onMouseMove:function($,Z){if($.fixedPosition&&$.inDragMode){var V=this.chart,F=V.pointer.normalize(Z),I=$.fixedPosition.chartX-F.chartX,E=$.fixedPosition.chartY-F.chartY,A=V.graphLayoutsLookup,P=void 0,y=void 0;(Math.abs(I)>5||Math.abs(E)>5)&&(P=$.fixedPosition.plotX-I,y=$.fixedPosition.plotY-E,V.isInsidePlot(P,y)&&($.plotX=P,$.plotY=y,$.hasDragged=!0,this.redrawHalo($),A.forEach(function(c){c.restartSimulation()})))}},onMouseUp:function($,Z){$.fixedPosition&&($.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),$.inDragMode=$.hasDragged=!1,this.options.fixedDraggable||delete $.fixedPosition)},redrawHalo:function($){$&&this.halo&&this.halo.attr({d:$.haloPath(this.options.states.hover.halo.size)})}}}),et(_,"Series/GraphLayoutComposition.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Utilities.js"]],function(G,B){var X=G.setAnimation,U=B.addEvent,$=[];function Z(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation()}),this.redraw())}function V(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation(!1)}),this.redraw())}function F(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(E){E.stop()})}function I(){var E,A=!1,P=function(y){y.maxIterations--&&isFinite(y.temperature)&&!y.isStable()&&!y.enableSimulation&&(y.beforeStep&&y.beforeStep(),y.step(),E=!1,A=!0)};if(this.graphLayoutsLookup){for(X(!1,this),this.graphLayoutsLookup.forEach(function(y){return y.start()});!E;)E=!0,this.graphLayoutsLookup.forEach(P);A&&this.series.forEach(function(y){y&&y.layout&&y.render()})}}return{compose:function(E){$.indexOf(E)&&($.push(E),U(E,"afterPrint",Z),U(E,"beforePrint",V),U(E,"predraw",F),U(E,"render",I))},integrations:{},layouts:{}}}),et(_,"Series/PackedBubble/PackedBubblePoint.js",[_["Core/Chart/Chart.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(V,F){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var A in E)E.hasOwnProperty(A)&&(I[A]=E[A])},U(V,F)},function(V,F){function I(){this.constructor=V}U(V,F),V.prototype=F===null?Object.create(F):(I.prototype=F.prototype,new I)}),Z=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.degree=NaN,I.mass=NaN,I.radius=NaN,I.options=void 0,I.series=void 0,I.value=null,I}return $(F,V),F.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),B.prototype.destroy.apply(this,arguments)},F.prototype.firePointEvent=function(){var I=this.series.options;if(this.isParentNode&&I.parentNode){var E=I.allowPointSelect;I.allowPointSelect=I.parentNode.allowPointSelect,B.prototype.firePointEvent.apply(this,arguments),I.allowPointSelect=E}else B.prototype.firePointEvent.apply(this,arguments)},F.prototype.select=function(){var I=this.series.chart;this.isParentNode?(I.getSelectedPoints=I.getSelectedParentNodes,B.prototype.select.apply(this,arguments),I.getSelectedPoints=G.prototype.getSelectedPoints):B.prototype.select.apply(this,arguments)},F}(X.seriesTypes.bubble.prototype.pointClass);return Z}),et(_,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[_["Core/Utilities.js"]],function(G){var B=G.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var X=this.series.chart.numberFormatter,U=this.point.value;return B(U)?X(U,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),et(_,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(G,B,X){var U=G.getMass(),$=-X.x*B*this.diffTemperature,Z=-X.y*B*this.diffTemperature;G.fromNode.fixedPosition||(G.fromNode.plotX-=$*U.fromNode/G.fromNode.degree,G.fromNode.plotY-=Z*U.fromNode/G.fromNode.degree),G.toNode.fixedPosition||(G.toNode.plotX+=$*U.toNode/G.toNode.degree,G.toNode.plotY+=Z*U.toNode/G.toNode.degree)},attractiveForceFunction:function(G,B){return(B-G)/G},barycenter:function(){var G=this.options.gravitationalConstant,B=this.barycenter.xFactor,X=this.barycenter.yFactor;B=(B-(this.box.left+this.box.width)/2)*G,X=(X-(this.box.top+this.box.height)/2)*G,this.nodes.forEach(function(U){U.fixedPosition||(U.plotX-=B/U.mass/U.degree,U.plotY-=X/U.mass/U.degree)})},getK:function(G){return Math.pow(G.box.width*G.box.height/G.nodes.length,.5)},integrate:function(G,B){var X=-G.options.friction,U=G.options.maxSpeed,$=B.prevX,Z=B.prevY,V=(B.plotX+B.dispX-$)*X,F=(B.plotY+B.dispY-Z)*X,I=Math.abs,E=I(V)/(V||1),A=I(F)/(F||1);V=E*Math.min(U,Math.abs(V)),F=A*Math.min(U,Math.abs(F)),B.prevX=B.plotX+B.dispX,B.prevY=B.plotY+B.dispY,B.plotX+=V,B.plotY+=F,B.temperature=G.vectorLength({x:V,y:F})},repulsive:function(G,B,X){var U=B*this.diffTemperature/G.mass/G.degree;G.fixedPosition||(G.plotX+=X.x*U,G.plotY+=X.y*U)},repulsiveForceFunction:function(G,B){return(B-G)/G*(B>G?1:0)}}}),et(_,"Series/PackedBubble/PackedBubbleIntegration.js",[_["Core/Globals.js"],_["Series/Networkgraph/VerletIntegration.js"]],function(G,B){return{barycenter:function(){for(var X,U,$=this,Z=$.options.gravitationalConstant,V=$.box,F=$.nodes,I=0,E=F;I<E.length;I++){var A=E[I];$.options.splitSeries&&!A.isParentNode?(X=A.series.parentNode.plotX,U=A.series.parentNode.plotY):(X=V.width/2,U=V.height/2),A.fixedPosition||(A.plotX-=(A.plotX-X)*Z/(A.mass*Math.sqrt(F.length)),A.plotY-=(A.plotY-U)*Z/(A.mass*Math.sqrt(F.length)))}},getK:G.noop,integrate:B.integrate,repulsive:function(X,U,$,Z){var V=U*this.diffTemperature/X.mass/X.degree,F=$.x*V,I=$.y*V;X.fixedPosition||(X.plotX+=F,X.plotY+=I),Z.fixedPosition||(Z.plotX-=F,Z.plotY-=I)},repulsiveForceFunction:function(X,U,$,Z){return Math.min(X,($.marker.radius+Z.marker.radius)/2)}}}),et(_,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(G,B,X,U){var $=G.getMass(),Z=X.x/U*B,V=X.y/U*B;G.fromNode.fixedPosition||(G.fromNode.dispX-=Z*$.fromNode/G.fromNode.degree,G.fromNode.dispY-=V*$.fromNode/G.fromNode.degree),G.toNode.fixedPosition||(G.toNode.dispX+=Z*$.toNode/G.toNode.degree,G.toNode.dispY+=V*$.toNode/G.toNode.degree)},attractiveForceFunction:function(G,B){return G*G/B},barycenter:function(){var G=this.options.gravitationalConstant,B=this.barycenter.xFactor,X=this.barycenter.yFactor;this.nodes.forEach(function(U){if(!U.fixedPosition){var $=U.getDegree(),Z=$*(1+$/2);U.dispX+=(B-U.plotX)*G*Z/U.degree,U.dispY+=(X-U.plotY)*G*Z/U.degree}})},getK:function(G){return Math.pow(G.box.width*G.box.height/G.nodes.length,.3)},integrate:function(G,B){var X;B.dispX+=B.dispX*G.options.friction,B.dispY+=B.dispY*G.options.friction,(X=B.temperature=G.vectorLength({x:B.dispX,y:B.dispY}))!==0&&(B.plotX+=B.dispX/X*Math.min(Math.abs(B.dispX),G.temperature),B.plotY+=B.dispY/X*Math.min(Math.abs(B.dispY),G.temperature))},repulsive:function(G,B,X,U){G.dispX+=X.x/U*B/G.degree,G.dispY+=X.y/U*B/G.degree},repulsiveForceFunction:function(G,B){return B*B/G}}}),et(_,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function G(B){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=B,this.boxSize=Math.min(B.width,B.height)}return G.prototype.divideBox=function(){var B=this.box.width/2,X=this.box.height/2;this.nodes[0]=new G({left:this.box.left,top:this.box.top,width:B,height:X}),this.nodes[1]=new G({left:this.box.left+B,top:this.box.top,width:B,height:X}),this.nodes[2]=new G({left:this.box.left+B,top:this.box.top+X,width:B,height:X}),this.nodes[3]=new G({left:this.box.left,top:this.box.top+X,width:B,height:X})},G.prototype.getBoxPosition=function(B){var X=B.plotX<this.box.left+this.box.width/2,U=B.plotY<this.box.top+this.box.height/2;return X?U?0:3:U?1:2},G.prototype.insert=function(B,X){var U;this.isInternal?this.nodes[this.getBoxPosition(B)].insert(B,X-1):(this.isEmpty=!1,this.body?X?(this.isInternal=!0,this.divideBox(),this.body!==!0&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,X-1),this.body=!0),this.nodes[this.getBoxPosition(B)].insert(B,X-1)):((U=new G({top:B.plotX||NaN,left:B.plotY||NaN,width:.1,height:.1})).body=B,U.isInternal=!1,this.nodes.push(U)):(this.isInternal=!1,this.body=B))},G.prototype.updateMassAndCenter=function(){var B=0,X=0,U=0;if(this.isInternal){for(var $=0,Z=this.nodes;$<Z.length;$++){var V=Z[$];V.isEmpty||(B+=V.mass,X+=V.plotX*V.mass,U+=V.plotY*V.mass)}X/=B,U/=B}else this.body&&(B=this.body.mass,X=this.body.plotX,U=this.body.plotY);this.mass=B,this.plotX=X,this.plotY=U},G}()}),et(_,"Series/Networkgraph/QuadTree.js",[_["Series/Networkgraph/QuadTreeNode.js"]],function(G){return function(){function B(X,U,$,Z){this.box={left:X,top:U,width:$,height:Z},this.maxDepth=25,this.root=new G(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return B.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(X){X.updateMassAndCenter()})},B.prototype.insertNodes=function(X){for(var U=0,$=X;U<$.length;U++){var Z=$[U];this.root.insert(Z,this.maxDepth)}},B.prototype.visitNodeRecursive=function(X,U,$){var Z;if(X||(X=this.root),X===this.root&&U&&(Z=U(X)),Z!==!1){for(var V=0,F=X.nodes;V<F.length;V++){var I=F[V];if(I.isInternal){if(U&&(Z=U(I)),Z===!1)continue;this.visitNodeRecursive(I,U,$)}else I.body&&U&&U(I.body);$&&$(I)}X===this.root&&$&&$(X)}},B}()}),et(_,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[_["Series/Networkgraph/EulerIntegration.js"],_["Core/Globals.js"],_["Series/GraphLayoutComposition.js"],_["Series/Networkgraph/QuadTree.js"],_["Core/Utilities.js"],_["Series/Networkgraph/VerletIntegration.js"]],function(G,B,X,U,$,Z){var V=B.win,F=$.clamp,I=$.defined,E=$.isFunction,A=$.pick,P=function(){function y(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.options=void 0,this.quadTree=void 0,this.repulsiveForce=void 0,this.series=[],this.simulation=!1}return y.compose=function(c){X.compose(c),X.integrations.euler=G,X.integrations.verlet=Z,X.layouts["reingold-fruchterman"]=y},y.prototype.init=function(c){this.options=c,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=X.integrations[c.integration],this.enableSimulation=c.enableSimulation,this.attractiveForce=A(c.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=A(c.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=c.approximation},y.prototype.updateSimulation=function(c){this.enableSimulation=A(c,this.options.enableSimulation)},y.prototype.start=function(){var c=this,f=this.series,m=this.options;c.currentStep=0,c.forces=f[0]&&f[0].forces||[],c.chart=f[0]&&f[0].chart,c.initialRendering&&(c.initPositions(),f.forEach(function(u){u.finishedAnimating=!0,u.render()})),c.setK(),c.resetSimulation(m),c.enableSimulation&&c.step()},y.prototype.step=function(){var c=this,f=this.series;this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var m=0,u=this.forces||[];m<u.length;m++)this[u[m]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(var v=0,S=f;v<S.length;v++){var M=S[v];M.chart&&M.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&V.cancelAnimationFrame(this.simulation),this.simulation=V.requestAnimationFrame(function(){return c.step()})):this.simulation=!1}},y.prototype.stop=function(){this.simulation&&V.cancelAnimationFrame(this.simulation)},y.prototype.setArea=function(c,f,m,u){this.box={left:c,top:f,width:m,height:u}},y.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},y.prototype.addElementsToCollection=function(c,f){for(var m=0,u=c;m<u.length;m++){var v=u[m];f.indexOf(v)===-1&&f.push(v)}},y.prototype.removeElementFromCollection=function(c,f){var m=f.indexOf(c);m!==-1&&f.splice(m,1)},y.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},y.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},y.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},y.prototype.setMaxIterations=function(c){this.maxIterations=A(c,this.options.maxIterations)},y.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},y.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},y.prototype.setInitialRendering=function(c){this.initialRendering=c},y.prototype.createQuadTree=function(){this.quadTree=new U(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},y.prototype.initPositions=function(){var c=this.options.initialPositions;if(E(c)){c.call(this);for(var f=0,m=this.nodes;f<m.length;f++){var u=m[f];I(u.prevX)||(u.prevX=u.plotX),I(u.prevY)||(u.prevY=u.plotY),u.dispX=0,u.dispY=0}}else c==="circle"?this.setCircularPositions():this.setRandomPositions()},y.prototype.setCircularPositions=function(){for(var c,f=this.box,m=this.nodes,u=m.length+1,v=2*Math.PI/u,S=m.filter(function(h){return h.linksTo.length===0}),M={},x=this.options.initialPositionRadius,p=function(h){for(var b=0,k=h.linksFrom||[];b<k.length;b++){var D=k[b];M[D.toNode.id]||(M[D.toNode.id]=!0,g.push(D.toNode),p(D.toNode))}},g=[],r=0,a=S;r<a.length;r++){var t=a[r];g.push(t),p(t)}if(g.length)for(var i=0,o=m;i<o.length;i++){var e=o[i];g.indexOf(e)===-1&&g.push(e)}else g=m;for(var s=0,n=g.length;s<n;++s)(c=g[s]).plotX=c.prevX=A(c.plotX,f.width/2+x*Math.cos(s*v)),c.plotY=c.prevY=A(c.plotY,f.height/2+x*Math.sin(s*v)),c.dispX=0,c.dispY=0},y.prototype.setRandomPositions=function(){for(var c,f=this.box,m=this.nodes,u=m.length+1,v=function(x){var p=x*x/Math.PI;return p-Math.floor(p)},S=0,M=m.length;S<M;++S)(c=m[S]).plotX=c.prevX=A(c.plotX,f.width*v(S)),c.plotY=c.prevY=A(c.plotY,f.height*v(u+S)),c.dispX=0,c.dispY=0},y.prototype.force=function(c){for(var f=[],m=1;m<arguments.length;m++)f[m-1]=arguments[m];this.integration[c].apply(this,f)},y.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},y.prototype.getBarycenter=function(){for(var c=0,f=0,m=0,u=0,v=this.nodes;u<v.length;u++){var S=v[u];f+=S.plotX*S.mass,m+=S.plotY*S.mass,c+=S.mass}return this.barycenter={x:f,y:m,xFactor:f/c,yFactor:m/c},this.barycenter},y.prototype.barnesHutApproximation=function(c,f){var m,u,v=this.getDistXY(c,f),S=this.vectorLength(v);return c!==f&&S!==0&&(f.isInternal?f.boxSize/S<this.options.theta&&S!==0?(u=this.repulsiveForce(S,this.k),this.force("repulsive",c,u*f.mass,v,S),m=!1):m=!0:(u=this.repulsiveForce(S,this.k),this.force("repulsive",c,u*f.mass,v,S))),m},y.prototype.repulsiveForces=function(){var c=this;if(this.approximation==="barnes-hut")for(var f=function(o){m.quadTree.visitNodeRecursive(null,function(e){return c.barnesHutApproximation(o,e)})},m=this,u=0,v=this.nodes;u<v.length;u++)f(r=v[u]);else for(var S=void 0,M=void 0,x=void 0,p=0,g=this.nodes;p<g.length;p++)for(var r=g[p],a=0,t=this.nodes;a<t.length;a++){var i=t[a];r===i||r.fixedPosition||(x=this.getDistXY(r,i),(M=this.vectorLength(x))!==0&&(S=this.repulsiveForce(M,this.k),this.force("repulsive",r,S*i.mass,x,M)))}},y.prototype.attractiveForces=function(){for(var c,f,m,u=0,v=this.links;u<v.length;u++){var S=v[u];S.fromNode&&S.toNode&&(c=this.getDistXY(S.fromNode,S.toNode),(f=this.vectorLength(c))!==0&&(m=this.attractiveForce(f,this.k),this.force("attractive",S,m,c,f)))}},y.prototype.applyLimits=function(){for(var c=0,f=this.nodes;c<f.length;c++){var m=f[c];if(m.fixedPosition)return;this.integration.integrate(this,m),this.applyLimitBox(m,this.box),m.dispX=0,m.dispY=0}},y.prototype.applyLimitBox=function(c,f){var m=c.radius;c.plotX=F(c.plotX,f.left+m,f.width-m),c.plotY=F(c.plotY,f.top+m,f.height-m)},y.prototype.coolDown=function(c,f,m){return c-f*m},y.prototype.isStable=function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},y.prototype.getSystemTemperature=function(){for(var c=0,f=0,m=this.nodes;f<m.length;f++)c+=m[f].temperature;return c},y.prototype.vectorLength=function(c){return Math.sqrt(c.x*c.x+c.y*c.y)},y.prototype.getDistR=function(c,f){var m=this.getDistXY(c,f);return this.vectorLength(m)},y.prototype.getDistXY=function(c,f){var m=c.plotX-f.plotX,u=c.plotY-f.plotY;return{x:m,y:u,absX:Math.abs(m),absY:Math.abs(u)}},y}();return P}),et(_,"Series/PackedBubble/PackedBubbleLayout.js",[_["Series/GraphLayoutComposition.js"],_["Series/PackedBubble/PackedBubbleIntegration.js"],_["Series/Networkgraph/ReingoldFruchtermanLayout.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,c)},function(y,c){function f(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),V=U.addEvent,F=U.pick,I=[];function E(){var y=this.series,c=[];return y.forEach(function(f){f.parentNode&&f.parentNode.selected&&c.push(f.parentNode)}),c}function A(){this.allDataPoints&&delete this.allDataPoints}var P=function(y){function c(){var f=y!==null&&y.apply(this,arguments)||this;return f.index=NaN,f.nodes=[],f.options=void 0,f.series=[],f}return Z(c,y),c.compose=function(f){X.compose(f),G.integrations.packedbubble=B,G.layouts.packedbubble=c,I.indexOf(f)===-1&&(I.push(f),V(f,"beforeRedraw",A),f.prototype.getSelectedParentNodes=E)},c.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(f){f&&f.calculateParentRadius()})},c.prototype.isStable=function(){var f=Math.abs(this.prevSystemTemperature-this.systemTemperature),m=10*this.systemTemperature/Math.sqrt(this.nodes.length);return Math.abs(m)<1&&f<1e-5||this.temperature<=0},c.prototype.setCircularPositions=function(){for(var f,m,u=this,v=u.box,S=u.nodes,M=S.length+1,x=2*Math.PI/M,p=u.options.initialPositionRadius,g=0,r=0,a=S;r<a.length;r++){var t=a[r];u.options.splitSeries&&!t.isParentNode?(f=t.series.parentNode.plotX,m=t.series.parentNode.plotY):(f=v.width/2,m=v.height/2),t.plotX=t.prevX=F(t.plotX,f+p*Math.cos(t.index||g*x)),t.plotY=t.prevY=F(t.plotY,m+p*Math.sin(t.index||g*x)),t.dispX=0,t.dispY=0,g++}},c.prototype.repulsiveForces=function(){var f,m,u,v=this,S=v.options.bubblePadding;v.nodes.forEach(function(M){M.degree=M.mass,M.neighbours=0,v.nodes.forEach(function(x){f=0,M===x||M.fixedPosition||!v.options.seriesInteraction&&M.series!==x.series||(u=v.getDistXY(M,x),(m=v.vectorLength(u)-(M.marker.radius+x.marker.radius+S))<0&&(M.degree+=.01,M.neighbours++,f=v.repulsiveForce(-m/Math.sqrt(M.neighbours),v.k,M,x)),v.force("repulsive",M,f*x.mass,u,x,m))})})},c.prototype.applyLimitBox=function(f,m){var u,v,S=this;S.options.splitSeries&&!f.isParentNode&&S.options.parentNodeLimit&&(u=S.getDistXY(f,f.series.parentNode),(v=f.series.parentNodeRadius-f.marker.radius-S.vectorLength(u))<0&&v>-2*f.marker.radius&&(f.plotX-=.01*u.x,f.plotY-=.01*u.y)),y.prototype.applyLimitBox.call(this,f,m)},c}(X);return G.layouts.packedbubble=P,P}),et(_,"Series/PackedBubble/PackedBubbleSeries.js",[_["Core/Color/Color.js"],_["Series/DragNodesComposition.js"],_["Series/GraphLayoutComposition.js"],_["Core/Globals.js"],_["Series/PackedBubble/PackedBubblePoint.js"],_["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],_["Series/PackedBubble/PackedBubbleLayout.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,F,I){var E,A=this&&this.__extends||(E=function(t,i){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},E(t,i)},function(t,i){function o(){this.constructor=t}E(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),P=G.parse,y=U.noop,c=F.series.prototype,f=F.seriesTypes.bubble,m=I.addEvent,u=I.clamp,v=I.defined,S=I.extend,M=I.fireEvent,x=I.isArray,p=I.isNumber,g=I.merge,r=I.pick,a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.chart=void 0,o.data=void 0,o.layout=void 0,o.options=void 0,o.parentNodeMass=0,o.points=void 0,o.xData=void 0,o}return A(i,t),i.compose=function(o,e,s,n){f.compose(o,e,s,n),B.compose(e),V.compose(e)},i.prototype.accumulateAllPoints=function(){for(var o,e=this.chart,s=[],n=0,h=e.series;n<h.length;n++){var b=h[n];if(b.is("packedbubble")&&b.visible||!e.options.chart.ignoreHiddenSeries){o=b.yData||[];for(var k=0;k<o.length;k++)s.push([null,null,o[k],b.index,k,{id:k,marker:{radius:0}}])}}return s},i.prototype.addLayout=function(){var o,e=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},s=e.type||"packedbubble",n=this.chart.options.chart,h=this.chart.graphLayoutsStorage,b=this.chart.graphLayoutsLookup;h||(this.chart.graphLayoutsStorage=h={},this.chart.graphLayoutsLookup=b=[]),(o=h[s])||(e.enableSimulation=v(n.forExport)?!n.forExport:e.enableSimulation,h[s]=o=new X.layouts[s],o.init(e),b.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(k){k.mass=2,k.degree=1,k.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)},i.prototype.addSeriesLayout=function(){var o=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=o.type||"packedbubble",s=this.chart.graphLayoutsStorage,n=this.chart.graphLayoutsLookup,h=g(o,o.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),b=s[e+"-series"];b||(s[e+"-series"]=b=new X.layouts[e],b.init(h),n.splice(b.index,0,b)),this.parentNodeLayout=b,this.createParentNodes()},i.prototype.calculateParentRadius=function(){var o=this.seriesBox();this.parentNodeRadius=u(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,o?Math.max(Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},i.prototype.calculateZExtremes=function(){var o=this.chart.series,e=this.options.zMin,s=this.options.zMax,n=1/0,h=-1/0;return e&&s?[e,s]:(o.forEach(function(b){b.yData.forEach(function(k){v(k)&&(k>h&&(h=k),k<n&&(n=k))})}),[e=r(e,n),s=r(s,h)])},i.prototype.checkOverlap=function(o,e){var s=o[0]-e[0],n=o[1]-e[1],h=o[2]+e[2];return Math.sqrt(s*s+n*n)-Math.abs(h)<-.001},i.prototype.createParentNodes=function(){var o,e=this,s=this.pointClass,n=this.chart,h=this.parentNodeLayout,b=this.layout.options,k=this.parentNode,D={radius:this.parentNodeRadius,lineColor:this.color,fillColor:P(this.color).brighten(.4).get()};b.parentNodeOptions&&(D=g(b.parentNodeOptions.marker||{},D)),this.parentNodeMass=0,this.points.forEach(function(d){e.parentNodeMass+=Math.PI*Math.pow(d.marker.radius,2)}),this.calculateParentRadius(),h.nodes.forEach(function(d){d.seriesIndex===e.index&&(o=!0)}),h.setArea(0,0,n.plotWidth,n.plotHeight),o||(k||(k=new s().init(this,{mass:this.parentNodeRadius/2,marker:D,dataLabels:{inside:!1},states:{normal:{marker:D},hover:{marker:D}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(k.plotX=this.parentNode.plotX,k.plotY=this.parentNode.plotY),this.parentNode=k,h.addElementsToCollection([this],h.series),h.addElementsToCollection([k],h.nodes))},i.prototype.deferLayout=function(){var o=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),o.splitSeries&&this.addSeriesLayout())},i.prototype.destroy=function(){var o=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(e){e.removeElementFromCollection(o,e.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),c.destroy.apply(this,arguments)},i.prototype.drawDataLabels=function(){c.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",c.drawDataLabels.call(this,[this.parentNode]))},i.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var o,e=this.chart,s=this.layout.options.parentNodeOptions.marker,n={fill:s.fillColor||P(this.color).brighten(.4).get(),opacity:s.fillOpacity,stroke:s.lineColor||this.color,"stroke-width":r(s.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,e.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),o=g({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},n),this.parentNode.graphic||(this.graph=this.parentNode.graphic=e.renderer.symbol(n.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(o)}},i.prototype.drawTracker=function(){var o,e=this.parentNode;t.prototype.drawTracker.call(this),e&&(o=x(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),o.forEach(function(s){s.div?s.div.point=e:s.element.point=e}))},i.prototype.getPointRadius=function(){var o,e,s,n,h=this,b=this.chart,k=b.plotWidth,D=b.plotHeight,d=this.options,C=d.useSimulation,T=Math.min(k,D),N={},z=[],L=b.allDataPoints||[],O=L.length;["minSize","maxSize"].forEach(function(Y){var H=parseInt(d[Y],10),W=/%$/.test(d[Y]);N[Y]=W?T*H/100:H*Math.sqrt(O)}),b.minRadius=o=N.minSize/Math.sqrt(O),b.maxRadius=e=N.maxSize/Math.sqrt(O);var j=C?this.calculateZExtremes():[o,e];L.forEach(function(Y,H){s=C?u(Y[2],j[0],j[1]):Y[2],(n=h.getRadius(j[0],j[1],o,e,s))===0&&(n=null),L[H][2]=n,z.push(n)}),this.radii=z},i.prototype.init=function(){return c.init.apply(this,arguments),this.eventsToUnbind.push(m(this,"updatedData",function(){var o=this;this.chart.series.forEach(function(e){e.type===o.type&&(e.isDirty=!0)},this)})),this},i.prototype.onMouseUp=function(o){var e=o;if(e.fixedPosition&&!e.removed){var s,n=this.layout,h=this.parentNodeLayout;h&&n.options.dragBetweenSeries&&h.nodes.forEach(function(b){e&&e.marker&&b!==e.series.parentNode&&(s=n.getDistXY(e,b),n.vectorLength(s)-b.marker.radius-e.marker.radius<0&&(b.series.addPoint(g(e.options,{plotX:e.plotX,plotY:e.plotY}),!1),n.removeElementFromCollection(e,n.nodes),e.remove()))}),B.onMouseUp.apply(this,arguments)}},i.prototype.placeBubbles=function(o){var e,s,n=this.checkOverlap,h=this.positionBubble,b=[],k=1,D=0,d=0,C=[],T=o.sort(function(N,z){return z[2]-N[2]});if(T.length){if(b.push([[0,0,T[0][2],T[0][3],T[0][4]]]),T.length>1)for(b.push([[0,0-T[1][2]-T[0][2],T[1][2],T[1][3],T[1][4]]]),s=2;s<T.length;s++)T[s][2]=T[s][2]||1,n(e=h(b[k][D],b[k-1][d],T[s]),b[k][0])?(b.push([]),d=0,b[k+1].push(h(b[k][D],b[k][0],T[s])),k++,D=0):k>1&&b[k-1][d+1]&&n(e,b[k-1][d+1])?(d++,b[k].push(h(b[k][D],b[k-1][d],T[s])),D++):(D++,b[k].push(e));this.chart.stages=b,this.chart.rawPositions=[].concat.apply([],b),this.resizeRadius(),C=this.chart.rawPositions}return C},i.prototype.pointAttribs=function(o,e){var s=this.options,n=o&&o.isParentNode,h=s.marker;n&&s.layoutAlgorithm&&s.layoutAlgorithm.parentNodeOptions&&(h=s.layoutAlgorithm.parentNodeOptions.marker);var b=h.fillOpacity,k=c.pointAttribs.call(this,o,e);return b!==1&&(k["fill-opacity"]=b),k},i.prototype.positionBubble=function(o,e,s){var n=Math.sqrt,h=Math.asin,b=Math.acos,k=Math.pow,D=Math.abs,d=n(k(o[0]-e[0],2)+k(o[1]-e[1],2)),C=b((k(d,2)+k(s[2]+e[2],2)-k(s[2]+o[2],2))/(2*(s[2]+e[2])*d)),T=h(D(o[0]-e[0])/d),N=(o[1]-e[1]<0?0:Math.PI)+C+T*((o[0]-e[0])*(o[1]-e[1])<0?1:-1),z=Math.cos(N),L=Math.sin(N);return[e[0]+(e[2]+s[2])*L,e[1]-(e[2]+s[2])*z,s[2],s[3],s[4]]},i.prototype.render=function(){var o=[];c.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(e){x(e.dataLabels)&&e.dataLabels.forEach(function(s){o.push(s)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(o))},i.prototype.resizeRadius=function(){var o,e,s,n,h,b=this.chart,k=b.rawPositions,D=Math.min,d=Math.max,C=b.plotLeft,T=b.plotTop,N=b.plotHeight,z=b.plotWidth;o=s=Number.POSITIVE_INFINITY,e=n=Number.NEGATIVE_INFINITY;for(var L=0,O=k;L<O.length;L++)h=(tt=O[L])[2],o=D(o,tt[0]-h),e=d(e,tt[0]+h),s=D(s,tt[1]-h),n=d(n,tt[1]+h);var j=[e-o,n-s],Y=[(z-C)/j[0],(N-T)/j[1]],H=D.apply([],Y);if(Math.abs(H-1)>1e-10){for(var W=0,q=k;W<q.length;W++){var tt;(tt=q[W])[2]*=H}this.placeBubbles(k)}else b.diffY=N/2+T-s-(n-s)/2,b.diffX=z/2+C-o-(e-o)/2},i.prototype.seriesBox=function(){var o,e=this.chart,s=this.data,n=Math.max,h=Math.min,b=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return s.forEach(function(k){v(k.plotX)&&v(k.plotY)&&k.marker.radius&&(o=k.marker.radius,b[0]=h(b[0],k.plotX-o),b[1]=n(b[1],k.plotX+o),b[2]=h(b[2],k.plotY-o),b[3]=n(b[3],k.plotY+o))}),p(b.width/b.height)?b:null},i.prototype.setVisible=function(){var o=this;c.setVisible.apply(o,arguments),o.parentNodeLayout&&o.graph?o.visible?(o.graph.show(),o.parentNode.dataLabel&&o.parentNode.dataLabel.show()):(o.graph.hide(),o.parentNodeLayout.removeElementFromCollection(o.parentNode,o.parentNodeLayout.nodes),o.parentNode.dataLabel&&o.parentNode.dataLabel.hide()):o.layout&&(o.visible?o.layout.addElementsToCollection(o.points,o.layout.nodes):o.points.forEach(function(e){o.layout.removeElementFromCollection(e,o.layout.nodes)}))},i.prototype.translate=function(){var o,e,s,n=this.chart,h=this.data,b=this.index,k=this.options.useSimulation;this.processedXData=this.xData,this.generatePoints(),v(n.allDataPoints)||(n.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),k?s=n.allDataPoints:(s=this.placeBubbles(n.allDataPoints),this.options.draggable=!1);for(var D=0,d=s;D<d.length;D++){var C=d[D];C[3]===b&&(o=h[C[4]],e=r(C[2],void 0),k||(o.plotX=C[0]-n.plotLeft+n.diffX,o.plotY=C[1]-n.plotTop+n.diffY),p(e)&&(o.marker=S(o.marker,{radius:e,width:2*e,height:2*e}),o.radius=e))}k&&this.deferLayout(),M(this,"afterTranslate")},i.defaultOptions=g(f.defaultOptions,Z),i}(f);return S(a.prototype,{pointClass:$,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:c.alignDataLabel,indexateNodes:y,onMouseDown:B.onMouseDown,onMouseMove:B.onMouseMove,redrawHalo:B.redrawHalo,searchPoint:y}),F.registerSeriesType("packedbubble",a),a}),et(_,"Series/Polygon/PolygonSeries.js",[_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(m,u){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var M in S)S.hasOwnProperty(M)&&(v[M]=S[M])},$(m,u)},function(m,u){function v(){this.constructor=m}$(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),V=G.noop,F=X.series,I=X.seriesTypes,E=I.area,A=I.line,P=I.scatter,y=U.extend,c=U.merge,f=function(m){function u(){var v=m!==null&&m.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return Z(u,m),u.prototype.getGraphPath=function(){for(var v=A.prototype.getGraphPath.call(this),S=v.length+1;S--;)(S===v.length||v[S][0]==="M")&&S>0&&v.splice(S,0,["Z"]);return this.areaPath=v,v},u.prototype.drawGraph=function(){this.options.fillColor=this.color,E.prototype.drawGraph.call(this)},u.defaultOptions=c(P.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),u}(P);return y(f.prototype,{type:"polygon",drawLegendSymbol:B.drawRectangle,drawTracker:F.prototype.drawTracker,setStackedPoints:V}),X.registerSeriesType("polygon",f),f}),et(_,"Core/Axis/WaterfallAxis.js",[_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.addEvent,$=B.objectEach;return function(Z){var V=function(){function P(y){this.axis=y,this.stacks={changed:!1}}return P.prototype.renderStackTotals=function(){var y=this.axis,c=y.waterfall.stacks,f=y.stacking&&y.stacking.stackTotalGroup,m=new G(y,y.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=m,f&&$(c,function(u){$(u,function(v,S){m.total=v.stackTotal,m.x=+S,v.label&&(m.label=v.label),G.prototype.render.call(m,f),v.label=m.label,delete m.label})}),m.total=null},P}();function F(){var P=this.waterfall.stacks;P&&(P.changed=!1,delete P.alreadyChanged)}function I(){var P=this,y=P.options.stackLabels;y&&y.enabled&&P.waterfall.stacks&&P.waterfall.renderStackTotals()}function E(){for(var P=this.axes,y=this.series,c=y.length;c--;)y[c].options.stacking&&(P.forEach(function(f){f.isXAxis||(f.waterfall.stacks.changed=!0)}),c=0)}function A(){var P=this;P.waterfall||(P.waterfall=new V(P))}Z.Composition=V,Z.compose=function(P,y){U(P,"init",A),U(P,"afterBuildStacks",F),U(P,"afterRender",I),U(y,"beforeRedraw",E)}}(X||(X={})),X}),et(_,"Series/Waterfall/WaterfallPoint.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(F,I){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},U(F,I)},function(F,I){function E(){this.constructor=F}U(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=X.isNumber,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return $(I,F),I.prototype.getClassName=function(){var E=B.prototype.getClassName.call(this);return this.isSum?E+=" highcharts-sum":this.isIntermediateSum&&(E+=" highcharts-intermediate-sum"),E},I.prototype.isValid=function(){return Z(this.y)||this.isSum||!!this.isIntermediateSum},I}(G.prototype.pointClass);return V}),et(_,"Series/Waterfall/WaterfallSeries.js",[_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"],_["Core/Axis/WaterfallAxis.js"],_["Series/Waterfall/WaterfallPoint.js"]],function(G,B,X,U,$,Z){var V,F=this&&this.__extends||(V=function(p,g){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},V(p,g)},function(p,g){function r(){this.constructor=p}V(p,g),p.prototype=g===null?Object.create(g):(r.prototype=g.prototype,new r)}),I=X.seriesTypes,E=I.column,A=I.line,P=U.arrayMax,y=U.arrayMin,c=U.correctFloat,f=U.extend,m=U.isNumber,u=U.merge,v=U.objectEach,S=U.pick;function M(p,g){return Object.hasOwnProperty.call(p,g)}var x=function(p){function g(){var r=p!==null&&p.apply(this,arguments)||this;return r.chart=void 0,r.data=void 0,r.options=void 0,r.points=void 0,r.stackedYNeg=void 0,r.stackedYPos=void 0,r.stackKey=void 0,r.xData=void 0,r.yAxis=void 0,r.yData=void 0,r}return F(g,p),g.prototype.generatePoints=function(){E.prototype.generatePoints.apply(this);for(var r=0,a=this.points.length;r<a;r++){var t=this.points[r],i=this.processedYData[r];m(i)&&(t.isIntermediateSum||t.isSum)&&(t.y=c(i))}},g.prototype.translate=function(){var r,a,t,i,o=this,e=o.options,s=o.yAxis,n=S(e.minPointLength,5),h=n/2,b=e.threshold||0,k=e.stacking,D=s.waterfall.stacks[o.stackKey],d=b,C=b;E.prototype.translate.apply(o);for(var T=o.points,N=0;N<T.length;N++){var z=T[N],L=o.processedYData[N],O=z.shapeArgs;if(O&&m(L)){var j=[0,L],Y=z.y;if(k){if(D){var H=D[N];k==="overlap"?(a=H.stackState[H.stateIndex--],r=Y>=0?a:a-Y,M(H,"absolutePos")&&delete H.absolutePos,M(H,"absoluteNeg")&&delete H.absoluteNeg):(Y>=0?(a=H.threshold+H.posTotal,H.posTotal-=Y,r=a):(a=H.threshold+H.negTotal,H.negTotal-=Y,r=a-Y),H.posTotal||m(H.absolutePos)&&M(H,"absolutePos")&&(H.posTotal=H.absolutePos,delete H.absolutePos),H.negTotal||m(H.absoluteNeg)&&M(H,"absoluteNeg")&&(H.negTotal=H.absoluteNeg,delete H.absoluteNeg)),z.isSum||(H.connectorThreshold=H.threshold+H.stackTotal),s.reversed?(t=Y>=0?r-Y:r+Y,i=r):(t=r,i=r-Y),z.below=t<=b,O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-s.translate(i,!1,!0,!1,!0));var W=s.waterfall.dummyStackItem;W&&(W.x=N,W.label=D[N].label,W.setOffset(o.pointXOffset||0,o.barW||0,o.stackedYNeg[N],o.stackedYPos[N],void 0,this.xAxis))}}else r=Math.max(C,C+Y)+j[0],O.y=s.translate(r,!1,!0,!1,!0),z.isSum?(O.y=s.translate(j[1],!1,!0,!1,!0),O.height=Math.min(s.translate(j[0],!1,!0,!1,!0),s.len)-O.y,z.below=j[1]<=b):z.isIntermediateSum?(Y>=0?(t=j[1]+d,i=d):(t=d,i=j[1]+d),s.reversed&&(t^=i,t^=i^=t),O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-Math.min(s.translate(i,!1,!0,!1,!0),s.len)),d+=j[1],z.below=t<=b):(O.height=L>0?s.translate(C,!1,!0,!1,!0)-O.y:s.translate(C,!1,!0,!1,!0)-s.translate(C-L,!1,!0,!1,!0),C+=L,z.below=C<b),O.height<0&&(O.y+=O.height,O.height*=-1);z.plotY=O.y=Math.round(O.y||0)-o.borderWidth%2/2,O.height=Math.max(Math.round(O.height||0),.001),z.yBottom=O.y+O.height,O.height<=n&&!z.isNull?(O.height=n,O.y-=h,z.plotY=O.y,z.y<0?z.minPointLengthOffset=-h:z.minPointLengthOffset=h):(z.isNull&&(O.width=0),z.minPointLengthOffset=0);var q=z.plotY+(z.negative?O.height:0);z.below&&(z.plotY+=O.height),z.tooltipPos&&(o.chart.inverted?z.tooltipPos[0]=s.len-q:z.tooltipPos[1]=q),z.isInside=this.isPointInside(z)}}},g.prototype.processData=function(r){var a,t,i,o,e,s,n,h=this,b=h.options,k=h.yData,D=b.data,d=k.length,C=b.threshold||0;for(i=t=o=e=0,n=0;n<d;n++)s=k[n],a=D&&D[n]?D[n]:{},s==="sum"||a.isSum?k[n]=c(i):s==="intermediateSum"||a.isIntermediateSum?(k[n]=c(t),t=0):(i+=s,t+=s),o=Math.min(i,o),e=Math.max(i,e);p.prototype.processData.call(this,r),b.stacking||(h.dataMin=o+C,h.dataMax=e)},g.prototype.toYData=function(r){return r.isSum?"sum":r.isIntermediateSum?"intermediateSum":r.y},g.prototype.updateParallelArrays=function(r,a){p.prototype.updateParallelArrays.call(this,r,a),this.yData[0]!=="sum"&&this.yData[0]!=="intermediateSum"||(this.yData[0]=null)},g.prototype.pointAttribs=function(r,a){var t=this.options.upColor;t&&!r.options.color&&(r.color=r.y>0?t:void 0);var i=E.prototype.pointAttribs.call(this,r,a);return delete i.dashstyle,i},g.prototype.getGraphPath=function(){return[["M",0,0]]},g.prototype.getCrispPath=function(){var r,a,t,i,o,e,s,n,h,b=this.data,k=this.yAxis,D=b.length,d=Math.round(this.graph.strokeWidth())%2/2,C=Math.round(this.borderWidth)%2/2,T=this.xAxis.reversed,N=this.yAxis.reversed,z=this.options.stacking,L=[];for(h=1;h<D;h++)if(n=b[h].shapeArgs,i=b[h-1],s=b[h-1].shapeArgs,a=k.waterfall.stacks[this.stackKey],e=i.y>0?-s.height:0,a&&s&&n&&(t=a[h-1],z?(r=t.connectorThreshold,o=Math.round(k.translate(r,!1,!0,!1,!0)+(N?e:0))-d):o=s.y+i.minPointLengthOffset+C-d,L.push(["M",(s.x||0)+(T?0:s.width||0),o],["L",(n.x||0)+(T&&n.width||0),o])),s&&L.length&&(!z&&i.y<0&&!N||i.y>0&&N)){var O=L[L.length-2];O&&typeof O[2]=="number"&&(O[2]+=s.height||0);var j=L[L.length-1];j&&typeof j[2]=="number"&&(j[2]+=s.height||0)}return L},g.prototype.drawGraph=function(){A.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},g.prototype.setStackedPoints=function(){var r,a,t,i,o,e,s,n,h,b,k,D,d=this,C=d.options,T=d.yAxis.waterfall.stacks,N=C.threshold||0,z=N,L=z,O=d.stackKey,j=d.xData,Y=j.length;function H(tt,J,nt,lt){if(r){if(o)for(;nt<o;nt++)r.stackState[nt]+=lt;else r.stackState[0]=tt,o=r.stackState.length;r.stackState.push(r.stackState[o-1]+J)}}if(d.yAxis.stacking.usePercentage=!1,a=t=i=z,d.visible||!d.chart.options.chart.ignoreHiddenSeries){D=T.changed,(k=T.alreadyChanged)&&k.indexOf(O)<0&&(D=!0),T[O]||(T[O]={});var W=T[O];if(W)for(var q=0;q<Y;q++)W[b=j[q]]&&!D||(W[b]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:D&&W[b]?W[b].label:void 0}),r=W[b],(h=d.yData[q])>=0?r.posTotal+=h:r.negTotal+=h,n=C.data[q],e=r.absolutePos=r.posTotal,s=r.absoluteNeg=r.negTotal,r.stackTotal=e+s,o=r.stackState.length,n&&n.isIntermediateSum?(H(i,t,0,i),i=t,t=N,z^=L,z^=L^=z):n&&n.isSum?(H(N,a,o,0),z=N):(H(z,h,0,a),n&&(a+=h,t+=h)),r.stateIndex++,r.threshold=z,z+=r.stackTotal;T.changed=!1,T.alreadyChanged||(T.alreadyChanged=[]),T.alreadyChanged.push(O)}},g.prototype.getExtremes=function(){var r,a,t,i=this.options.stacking;return i?(r=this.yAxis.waterfall.stacks,a=this.stackedYNeg=[],t=this.stackedYPos=[],v(r[this.stackKey],i==="overlap"?function(o){a.push(y(o.stackState)),t.push(P(o.stackState))}:function(o){a.push(o.negTotal+o.threshold),t.push(o.posTotal+o.threshold)}),{dataMin:y(a),dataMax:P(t)}):{dataMin:this.dataMin,dataMax:this.dataMax}},g.defaultOptions=u(E.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),g}(E);return f(x.prototype,{getZonesGraphs:A.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:Z}),X.registerSeriesType("waterfall",x),$.compose(G,B),x}),et(_,"Core/Axis/RadialAxis.js",[_["Core/Axis/AxisDefaults.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=B.defaultOptions,V=X.noop,F=U.addEvent,I=U.correctFloat,E=U.defined,A=U.extend,P=U.fireEvent,y=U.merge,c=U.pick,f=U.relativeLength,m=U.wrap;return function(u){var v=[],S={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},M={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},x={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};function p(){this.autoConnect=this.isCircular&&c(this.userMax,this.options.max)===void 0&&I(this.endAngleRad-this.startAngleRad)===I(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function g(){var W=this;return function(){if(W.isRadial&&W.tickPositions&&W.options.labels&&W.options.labels.allowOverlap!==!0)return W.tickPositions.map(function(q){return W.ticks[q]&&W.ticks[q].label}).filter(function(q){return!!q})}}function r(){return V}function a(W,q,tt){var J,nt,lt,gt=this.pane.center,mt=W.value;return this.isCircular?(E(mt)?W.point&&(W.point.shapeArgs||{}).start&&(mt=this.chart.inverted?this.translate(W.point.rectPlotY,!0):W.point.x):(nt=W.chartX||0,lt=W.chartY||0,mt=this.translate(Math.atan2(lt-tt,nt-q)-this.startAngleRad,!0)),nt=(J=this.getPosition(mt)).x,lt=J.y):(E(mt)||(nt=W.chartX,lt=W.chartY),E(nt)&&E(lt)&&(tt=gt[1]+this.chart.plotTop,mt=this.translate(Math.min(Math.sqrt(Math.pow(nt-q,2)+Math.pow(lt-tt,2)),gt[2]/2)-gt[3]/2,!0))),[mt,nt||0,lt||0]}function t(W,q,tt){var J,nt,lt=this.pane.center,gt=this.chart,mt=this.left||0,bt=this.top||0,yt=c(q,lt[2]/2-this.offset);return tt===void 0&&(tt=this.horiz?0:this.center&&-this.center[3]/2),tt&&(yt+=tt),this.isCircular||q!==void 0?((nt=this.chart.renderer.symbols.arc(mt+lt[0],bt+lt[1],yt,yt,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[mt+lt[0]],nt.yBounds=[bt+lt[1]-yt]):(J=this.postTranslate(this.angleRad,yt),nt=[["M",this.center[0]+gt.plotLeft,this.center[1]+gt.plotTop],["L",J.x,J.y]]),nt}function i(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function o(W,q,tt){var J,nt,lt,gt,mt,bt,yt=this.chart,dt=function(jt){if(typeof jt=="string"){var Dt=parseInt(jt,10);return St.test(jt)&&(Dt=Dt*ut/100),Dt}return jt},ot=this.center,at=this.startAngleRad,ut=ot[2]/2,vt=Math.min(this.offset,0),Ct=this.left||0,xt=this.top||0,St=/%$/,wt=this.isCircular,Mt=c(dt(tt.outerRadius),ut),Tt=dt(tt.innerRadius),Lt=c(dt(tt.thickness),10);if(this.options.gridLineInterpolation==="polygon")bt=this.getPlotLinePath({value:W}).concat(this.getPlotLinePath({value:q,reverse:!0}));else{W=Math.max(W,this.min),q=Math.min(q,this.max);var Pt=this.translate(W),Et=this.translate(q);wt||(Mt=Pt||0,Tt=Et||0),tt.shape!=="circle"&&wt?(J=at+(Pt||0),nt=at+(Et||0)):(J=-Math.PI/2,nt=1.5*Math.PI,mt=!0),Mt-=vt,Lt-=vt,bt=yt.renderer.symbols.arc(Ct+ot[0],xt+ot[1],Mt,Mt,{start:Math.min(J,nt),end:Math.max(J,nt),innerR:c(Tt,Mt-Lt),open:mt}),wt&&(lt=(nt+J)/2,gt=Ct+ot[0]+ot[2]/2*Math.cos(lt),bt.xBounds=lt>-Math.PI/2&<<Math.PI/2?[gt,yt.plotWidth]:[0,gt],bt.yBounds=[xt+ot[1]+ot[2]/2*Math.sin(lt)],bt.yBounds[0]+=lt>-Math.PI&<<0||lt>Math.PI?-10:10)}return bt}function e(W){var q,tt,J,nt,lt,gt,mt,bt,yt,dt=this,ot=this.pane.center,at=this.chart,ut=at.inverted,vt=W.reverse,Ct=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},xt=Ct.innerRadius||"0%",St=Ct.outerRadius||"100%",wt=ot[0]+at.plotLeft,Mt=ot[1]+at.plotTop,Tt=this.height,Lt=W.isCrosshair,Pt=ot[3]/2,Et=W.value,jt=this.getPosition(Et),Dt=jt.x,_t=jt.y;if(Lt&&(Et=(bt=this.getCrosshairPosition(W,wt,Mt))[0],Dt=bt[1],_t=bt[2]),this.isCircular)tt=Math.sqrt(Math.pow(Dt-wt,2)+Math.pow(_t-Mt,2)),J=typeof xt=="string"?f(xt,1):xt/tt,nt=typeof St=="string"?f(St,1):St/tt,ot&&Pt&&(J<(q=Pt/tt)&&(J=q),nt<q&&(nt=q)),yt=[["M",wt+J*(Dt-wt),Mt-J*(Mt-_t)],["L",Dt-(1-nt)*(Dt-wt),_t+(1-nt)*(Mt-_t)]];else if((Et=this.translate(Et))&&(Et<0||Et>Tt)&&(Et=0),this.options.gridLineInterpolation==="circle")yt=this.getLinePath(0,Et,Pt);else if(yt=[],at[ut?"yAxis":"xAxis"].forEach(function(Jt){Jt.pane===dt.pane&&(lt=Jt)}),lt){mt=lt.tickPositions,lt.autoConnect&&(mt=mt.concat([mt[0]])),vt&&(mt=mt.slice().reverse()),Et&&(Et+=Pt);for(var Bt=0;Bt<mt.length;Bt++)gt=lt.getPosition(mt[Bt],Et),yt.push(Bt?["L",gt.x,gt.y]:["M",gt.x,gt.y])}return yt}function s(W,q){var tt=this.translate(W);return this.postTranslate(this.isCircular?tt:this.angleRad,c(this.isCircular?q:tt<0?0:tt,this.center[2]/2)-this.offset)}function n(){var W=this.center,q=this.chart,tt=this.options.title;return{x:q.plotLeft+W[0]+(tt.x||0),y:q.plotTop+W[1]-{high:.5,middle:.25,low:0}[tt.align]*W[2]+(tt.y||0)}}function h(W){W.beforeSetTickPositions=p,W.createLabelCollector=g,W.getCrosshairPosition=a,W.getLinePath=t,W.getOffset=i,W.getPlotBandPath=o,W.getPlotLinePath=e,W.getPosition=s,W.getTitlePosition=n,W.postTranslate=z,W.setAxisSize=O,W.setAxisTranslation=j,W.setOptions=Y}function b(){var W=this.chart,q=this.options,tt=W.angular&&this.isXAxis,J=this.pane,nt=J&&J.options;if(!tt&&J&&(W.angular||W.polar)){var lt=2*Math.PI,gt=(c(nt.startAngle,0)-90)*Math.PI/180,mt=(c(nt.endAngle,c(nt.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(q.angle||0)*Math.PI/180,this.startAngleRad=gt,this.endAngleRad=mt,this.offset=q.offset||0;var bt=(gt%lt+lt)%lt,yt=(mt%lt+lt)%lt;bt>Math.PI&&(bt-=lt),yt>Math.PI&&(yt-=lt),this.normalizedStartAngleRad=bt,this.normalizedEndAngleRad=yt}}function k(W){this.isRadial&&(W.align=void 0,W.preventDefault())}function D(){if(this.chart&&this.chart.labelCollectors){var W=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;W>=0&&this.chart.labelCollectors.splice(W,1)}}function d(W){var q,tt,J=this.chart,nt=J.inverted,lt=J.angular,gt=J.polar,mt=this.isXAxis,bt=this.coll,yt=lt&&mt,dt=W.userOptions.pane||0,ot=this.pane=J.pane&&J.pane[dt];bt!=="colorAxis"?(lt?(yt?((tt=this).isHidden=!0,tt.createLabelCollector=r,tt.getOffset=V,tt.redraw=L,tt.render=L,tt.setScale=V,tt.setCategories=V,tt.setTitle=V):h(this),(q=!mt)&&(this.defaultPolarOptions=M)):gt&&(h(this),q=this.horiz,this.defaultPolarOptions=q?S:y(bt==="xAxis"?G.defaultXAxisOptions:G.defaultYAxisOptions,x),nt&&bt==="yAxis"&&(this.defaultPolarOptions.stackLabels=G.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),lt||gt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&J.labelCollectors.push(this.labelCollector)):this.isRadial=!1,ot&&q&&(ot.axis=this),this.isCircular=q):this.isRadial=!1}function C(){this.isRadial&&this.beforeSetTickPositions()}function T(W){var q=this.label;if(q){var tt,J=this.axis,nt=q.getBBox(),lt=J.options.labels,gt=(J.translate(this.pos)+J.startAngleRad+Math.PI/2)/Math.PI*180%360,mt=Math.round(gt),bt=E(lt.y)?0:.3*-nt.height,yt=lt.y,dt=20,ot=lt.align,at="end",ut=mt<0?mt+360:mt,vt=ut,Ct=0,xt=0;J.isRadial&&(tt=J.getPosition(this.pos,J.center[2]/2+f(c(lt.distance,-25),J.center[2]/2,-J.center[2]/2)),lt.rotation==="auto"?q.attr({rotation:gt}):E(yt)||(yt=J.chart.renderer.fontMetrics(q.styles&&q.styles.fontSize).b-nt.height/2),E(ot)||(J.isCircular?(nt.width>J.len*J.tickInterval/(J.max-J.min)&&(dt=0),ot=gt>dt&><180-dt?"left":gt>180+dt&><360-dt?"right":"center"):ot="center",q.attr({align:ot})),ot==="auto"&&J.tickPositions.length===2&&J.isCircular&&(ut>90&&ut<180?ut=180-ut:ut>270&&ut<=360&&(ut=540-ut),vt>180&&vt<=360&&(vt=360-vt),J.pane.options.startAngle!==mt&&J.pane.options.startAngle!==mt+360&&J.pane.options.startAngle!==mt-360||(at="start"),ot=mt>=-90&&mt<=90||mt>=-360&&mt<=-270||mt>=270&&mt<=360?at==="start"?"right":"left":at==="start"?"left":"right",vt>70&&vt<110&&(ot="center"),ut<15||ut>=180&&ut<195?Ct=.3*nt.height:ut>=15&&ut<=35?Ct=at==="start"?0:.75*nt.height:ut>=195&&ut<=215?Ct=at==="start"?.75*nt.height:0:ut>35&&ut<=90?Ct=at==="start"?.25*-nt.height:nt.height:ut>215&&ut<=270&&(Ct=at==="start"?nt.height:.25*-nt.height),vt<15?xt=at==="start"?.15*-nt.height:.15*nt.height:vt>165&&vt<=180&&(xt=at==="start"?.15*nt.height:.15*-nt.height),q.attr({align:ot}),q.translate(xt,Ct+bt)),W.pos.x=tt.x+(lt.x||0),W.pos.y=tt.y+(yt||0))}}function N(W){this.axis.getPosition&&A(W.pos,this.axis.getPosition(this.pos))}function z(W,q){var tt=this.chart,J=this.center;return W=this.startAngleRad+W,{x:tt.plotLeft+J[0]+Math.cos(W)*q,y:tt.plotTop+J[1]+Math.sin(W)*q}}function L(){this.isDirty=!1}function O(){var W,q;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),W=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(q=this.postTranslate(this.angleRad,W[3]/2),W[0]=q.x-this.chart.plotLeft,W[1]=q.y-this.chart.plotTop),this.len=this.width=this.height=(W[2]-W[3])*c(this.sector,1)/2)}function j(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function Y(W){var q=this.options=y(this.constructor.defaultOptions,this.defaultPolarOptions,Z[this.coll],W);q.plotBands||(q.plotBands=[]),P(this,"afterSetOptions")}function H(W,q,tt,J,nt,lt,gt){var mt,bt=this.axis;return bt.isRadial?["M",q,tt,"L",(mt=bt.getPosition(this.pos,bt.center[2]/2+J)).x,mt.y]:W.call(this,q,tt,J,nt,lt,gt)}u.compose=function(W,q){return v.indexOf(W)===-1&&(v.push(W),F(W,"afterInit",b),F(W,"autoLabelAlign",k),F(W,"destroy",D),F(W,"init",d),F(W,"initialAxisTranslation",C)),v.indexOf(q)===-1&&(v.push(q),F(q,"afterGetLabelPosition",T),F(q,"afterGetPosition",N),m(q.prototype,"getMarkPath",H)),W}}($||($={})),$}),et(_,"Series/PolarComposition.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Globals.js"],_["Extensions/Pane.js"],_["Core/Axis/RadialAxis.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=this&&this.__spreadArray||function(d,C,T){if(T||arguments.length===2)for(var N,z=0,L=C.length;z<L;z++)!N&&z in C||(N||(N=Array.prototype.slice.call(C,0,z)),N[z]=C[z]);return d.concat(N||Array.prototype.slice.call(C))},V=G.animObject,F=$.addEvent,I=$.defined,E=$.find,A=$.isNumber,P=$.pick,y=$.splat,c=$.uniqueKey,f=$.wrap,m=[];function u(d,C,T,N){var z,L,O,j,Y,H,W=1.5,q=2.5,tt=N?1:0,J=(z=C>=0&&C<=d.length-1?C:C<0?d.length-1+C:0)-1<0?d.length-(1+tt):z-1,nt=z+1>d.length-1?tt:z+1,lt=d[J],gt=d[nt],mt=lt.plotX,bt=lt.plotY,yt=gt.plotX,dt=gt.plotY,ot=d[z].plotX,at=d[z].plotY;L=(W*ot+mt)/q,O=(W*at+bt)/q,j=(W*ot+yt)/q,Y=(W*at+dt)/q;var ut=Math.sqrt(Math.pow(L-ot,2)+Math.pow(O-at,2)),vt=Math.sqrt(Math.pow(j-ot,2)+Math.pow(Y-at,2)),Ct=Math.atan2(O-at,L-ot),xt=Math.atan2(Y-at,j-ot);H=Math.PI/2+(Ct+xt)/2,Math.abs(Ct-H)>Math.PI/2&&(H-=Math.PI),L=ot+Math.cos(H)*ut,O=at+Math.sin(H)*ut;var St={rightContX:j=ot+Math.cos(Math.PI+H)*vt,rightContY:Y=at+Math.sin(Math.PI+H)*vt,leftContX:L,leftContY:O,plotX:ot,plotY:at};return T&&(St.prevPointCont=u(d,J,!1,N)),St}function v(){(this.pane||[]).forEach(function(d){d.render()})}function S(d){var C=d.args[0].xAxis,T=d.args[0].yAxis,N=d.args[0].chart;C&&T&&(T.gridLineInterpolation==="polygon"?(C.startOnTick=!0,C.endOnTick=!0):C.gridLineInterpolation==="polygon"&&N.inverted&&(T.startOnTick=!0,T.endOnTick=!0))}function M(){var d=this;this.pane||(this.pane=[]),this.options.pane=y(this.options.pane),this.options.pane.forEach(function(C){new X(C,d)},this)}function x(d){var C=d.args.marker,T=this.chart.xAxis[0],N=this.chart.yAxis[0],z=this.chart.inverted,L=z?N:T,O=z?T:N;if(this.chart.polar){d.preventDefault();var j=(C.attr?C.attr("start"):C.start)-L.startAngleRad,Y=C.attr?C.attr("r"):C.r,H=(C.attr?C.attr("end"):C.end)-L.startAngleRad,W=C.attr?C.attr("innerR"):C.innerR;d.result.x=j+L.pos,d.result.width=H-j,d.result.y=O.len+O.pos-W,d.result.height=W-Y}}function p(d){var C=this.chart;if(C.polar&&C.hoverPane&&C.hoverPane.axis){d.preventDefault();var T=C.hoverPane.center,N=this.mouseDownX||0,z=this.mouseDownY||0,L=d.args.chartY,O=d.args.chartX,j=2*Math.PI,Y=C.hoverPane.axis.startAngleRad,H=C.hoverPane.axis.endAngleRad,W=C.inverted?C.xAxis[0]:C.yAxis[0],q={},tt="arc";if(q.x=T[0]+C.plotLeft,q.y=T[1]+C.plotTop,this.zoomHor){var J=Y>0?H-Y:Math.abs(Y)+Math.abs(H),nt=Math.atan2(z-C.plotTop-T[1],N-C.plotLeft-T[0])-Y,lt=Math.atan2(L-C.plotTop-T[1],O-C.plotLeft-T[0])-Y;q.r=T[2]/2,q.innerR=T[3]/2,nt<=0&&(nt+=j),lt<=0&&(lt+=j),lt<nt&&(lt=[nt,nt=lt][0]),J<j&&Y+lt>H+(j-J)/2&&(lt=nt,nt=Y<=0?Y:0);var gt=q.start=Math.max(nt+Y,Y),mt=q.end=Math.min(lt+Y,H);if(W.options.gridLineInterpolation==="polygon"){(Tt=C.hoverPane.axis).tickInterval;var bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,dt=W.getPlotLinePath({value:W.max}),ot=Tt.toValue(bt),at=Tt.toValue(bt+yt);if(ot<Tt.getExtremes().min){var ut=Tt.getExtremes(),vt=ut.min;ot=ut.max-(vt-ot)}if(at<Tt.getExtremes().min){var Ct=Tt.getExtremes(),xt=Ct.min;at=Ct.max-(xt-at)}at<ot&&(at=[ot,ot=at][0]),(dt=t(dt,ot,at,Tt)).push(["L",T[0]+C.plotLeft,C.plotTop+T[1]]),q.d=dt,tt="path"}}if(this.zoomVert){var St=C.inverted?C.xAxis[0]:C.yAxis[0],wt=Math.sqrt(Math.pow(N-C.plotLeft-T[0],2)+Math.pow(z-C.plotTop-T[1],2)),Mt=Math.sqrt(Math.pow(O-C.plotLeft-T[0],2)+Math.pow(L-C.plotTop-T[1],2));Mt<wt&&(wt=[Mt,Mt=wt][0]),Mt>T[2]/2&&(Mt=T[2]/2),wt<T[3]/2&&(wt=T[3]/2),this.zoomHor||(q.start=Y,q.end=H),q.r=Mt,q.innerR=wt,St.options.gridLineInterpolation==="polygon"&&(mt=St.toValue(St.len+St.pos-wt),gt=St.toValue(St.len+St.pos-Mt),dt=St.getPlotLinePath({value:gt}).concat(St.getPlotLinePath({value:mt,reverse:!0})),q.d=dt,tt="path")}if(this.zoomHor&&this.zoomVert&&W.options.gridLineInterpolation==="polygon"){var Tt=C.hoverPane.axis;if(gt=q.start||0,mt=q.end||0,bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,ot=Tt.toValue(bt),at=Tt.toValue(bt+yt),q.d instanceof Array){var Lt=q.d.slice(0,q.d.length/2),Pt=q.d.slice(q.d.length/2,q.d.length);Pt=Z([],Pt,!0).reverse();var Et=C.hoverPane.axis;Lt=t(Lt,ot,at,Et),(Pt=t(Pt,ot,at,Et))&&(Pt[0][0]="L"),Pt=Z([],Pt,!0).reverse(),q.d=Lt.concat(Pt),tt="path"}}d.attrs=q,d.shapeType=tt}}function g(){var d=this.chart;d.polar&&(this.polar=new D(this),d.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function r(){if(this.chart.polar&&this.xAxis){var d=this,C=d.chart;d.kdByAngle=C.tooltip&&C.tooltip.shared,d.kdByAngle?d.searchPoint=a:d.options.findNearestPointBy="xy";for(var T=d.points,N=T.length;N--;)d.preventPostTranslate||d.polar.toXY(T[N]),C.hasParallelCoordinates||d.yAxis.reversed||(P(T[N].y,Number.MIN_VALUE)<d.yAxis.min||T[N].x<d.xAxis.min||T[N].x>d.xAxis.max?(T[N].isNull=!0,T[N].plotY=NaN):T[N].isNull=T[N].isValid&&!T[N].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!d.eventsToUnbind.push(F(d,"afterRender",function(){var z,L,O,j,Y,H,W,q,tt;C.polar&&(z=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:z[0],y:z[1],r:z[2]/2,innerR:z[3]/2}):this.clipCircle=(L=C.renderer,O=z[0],j=z[1],Y=z[2]/2,H=z[3]/2,W=c(),q=L.createElement("clipPath").attr({id:W}).add(L.defs),(tt=H?L.arc(O,j,Y,H,0,2*Math.PI).add(q):L.circle(O,j,Y).add(q)).id=W,tt.clipPath=q,tt),this.group.clip(this.clipCircle),this.setClip=B.noop)})))}}function a(d){var C=this,T=C.chart,N=C.xAxis,z=N.pane&&N.pane.center,L=d.chartX-(z&&z[0]||0)-T.plotLeft,O=d.chartY-(z&&z[1]||0)-T.plotTop;return C.searchKDTree({clientX:180+Math.atan2(L,O)*(-180/Math.PI)})}function t(d,C,T,N){var z=N.tickInterval,L=N.tickPositions,O=E(L,function(Y){return Y>=T}),j=E(Z([],L,!0).reverse(),function(Y){return Y<=C});return I(O)||(O=L[L.length-1]),I(j)||(j=L[0],O+=z,d[0][0]="L",d.unshift(d[d.length-3])),(d=d.slice(L.indexOf(j),L.indexOf(O)+1))[0][0]="M",d}function i(d,C){return E(this.pane||[],function(T){return T.options.id===C})||d.call(this,C)}function o(d,C,T,N,z,L){var O,j,Y,H=this.chart,W=P(N.inside,!!this.options.stacking);H.polar?(O=C.rectPlotX/Math.PI*180,H.inverted?(this.forceDL=H.isInsidePlot(C.plotX,C.plotY),W&&C.shapeArgs?(j=C.shapeArgs,z={x:(Y=this.yAxis.postTranslate(((j.start||0)+(j.end||0))/2-this.xAxis.startAngleRad,C.barX+C.pointWidth/2)).x-H.plotLeft,y:Y.y-H.plotTop}):C.tooltipPos&&(z={x:C.tooltipPos[0],y:C.tooltipPos[1]}),N.align=P(N.align,"center"),N.verticalAlign=P(N.verticalAlign,"middle")):N=function(q,tt){var J,nt;return tt.align===null&&(J=q>20&&q<160?"left":q>200&&q<340?"right":"center",tt.align=J),tt.verticalAlign===null&&(nt=q<45||q>315?"bottom":q>135&&q<225?"top":"middle",tt.verticalAlign=nt),tt}(O,N),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,C,T,N,z,L),this.isRadialBar&&C.shapeArgs&&C.shapeArgs.start===C.shapeArgs.end?T.hide():T.show()):d.call(this,C,T,N,z,L)}function e(d){var C,T,N,z,L,O,j,Y,H,W,q,tt,J,nt=this,lt=nt.options,gt=lt.stacking,mt=nt.chart,bt=nt.xAxis,yt=nt.yAxis,dt=yt.reversed,ot=yt.center,at=bt.startAngleRad,ut=bt.endAngleRad-at,vt=lt.threshold,Ct=0,xt=0,St=0;if(nt.preventPostTranslate=!0,d.call(nt),bt.isRadial)for(N=(C=nt.points).length,z=yt.translate(yt.min),L=yt.translate(yt.max),vt=lt.threshold||0,mt.inverted&&A(vt)&&(Ct=yt.translate(vt),I(Ct)&&(Ct<0?Ct=0:Ct>ut&&(Ct=ut),nt.translatedThreshold=Ct+at));N--;)q=(T=C[N]).barX,j=T.x,Y=T.y,T.shapeType="arc",mt.inverted?(T.plotY=yt.translate(Y),gt&&yt.stacking?(W=yt.stacking.stacks[(Y<0?"-":"")+nt.stackKey],nt.visible&&W&&W[j]&&(T.isNull||(H=W[j].points[nt.getStackIndicator(void 0,j,nt.index).key],xt=yt.translate(H[0]),St=yt.translate(H[1]),I(xt)&&(xt=$.clamp(xt,0,ut))))):(xt=Ct,St=T.plotY),xt>St&&(St=[xt,xt=St][0]),dt?St>z?St=z:xt<L?xt=L:(xt>z||St<L)&&(xt=St=ut):xt<z?xt=z:St>L?St=L:(St<z||xt>L)&&(xt=St=0),yt.min>yt.max&&(xt=St=dt?ut:0),xt+=at,St+=at,ot&&(T.barX=q+=ot[3]/2),tt=Math.max(q,0),J=Math.max(q+T.pointWidth,0),T.shapeArgs={x:ot&&ot[0],y:ot&&ot[1],r:J,innerR:tt,start:xt,end:St},T.opacity=xt===St?0:void 0,T.plotY=(I(nt.translatedThreshold)&&(xt<nt.translatedThreshold?xt:St))-at):(xt=q+at,T.shapeArgs=nt.polar.arc(T.yBottom,T.plotY,xt,xt+T.pointWidth)),nt.polar.toXY(T),mt.inverted?(O=yt.postTranslate(T.rectPlotY,q+T.pointWidth/2),T.tooltipPos=[O.x-mt.plotLeft,O.y-mt.plotTop]):T.tooltipPos=[T.plotX,T.plotY],ot&&(T.ttBelow=T.plotY>ot[1])}function s(d,C){var T,N,z=this;if(this.chart.polar){C=C||this.points;for(var L=0;L<C.length;L++)if(!C[L].isNull){T=L;break}this.options.connectEnds!==!1&&T!==void 0&&(this.connectEnds=!0,C.splice(C.length,0,C[T]),N=!0),C.forEach(function(j){j.polarPlotY===void 0&&z.polar.toXY(j)})}var O=d.apply(this,[].slice.call(arguments,1));return N&&C.pop(),O}function n(d,C){var T=this.chart,N={xAxis:[],yAxis:[]};return T.polar?T.axes.forEach(function(z){if(z.coll!=="colorAxis"){var L=z.isXAxis,O=z.center,j=C.chartX-O[0]-T.plotLeft,Y=C.chartY-O[1]-T.plotTop;N[L?"xAxis":"yAxis"].push({axis:z,value:z.translate(L?Math.PI-Math.atan2(j,Y):Math.sqrt(Math.pow(j,2)+Math.pow(Y,2)),!0)})}}):N=d.call(this,C),N}function h(d,C){this.chart.polar||d.call(this,C)}function b(d,C){var T,N,z,L,O,j,Y=this,H=this.chart,W=this.group,q=this.markerGroup,tt=this.xAxis&&this.xAxis.center,J=H.plotLeft,nt=H.plotTop,lt=this.options.animation;H.polar?Y.isRadialBar?C||(Y.startAngleRad=P(Y.translatedThreshold,Y.xAxis.startAngleRad),B.seriesTypes.pie.prototype.animate.call(Y,C)):H.renderer.isSVG&&(lt=V(lt),Y.is("column")?C||(N=tt[3]/2,Y.points.forEach(function(gt){z=gt.graphic,L=gt.shapeArgs,O=L&&L.r,j=L&&L.innerR,z&&L&&(z.attr({r:N,innerR:N}),z.animate({r:O,innerR:j},Y.options.animation))})):C?(T={translateX:tt[0]+J,translateY:tt[1]+nt,scaleX:.001,scaleY:.001},W.attr(T),q&&q.attr(T)):(T={translateX:J,translateY:nt,scaleX:1,scaleY:1},W.animate(T,lt),q&&q.animate(T,lt))):d.call(this,C)}function k(d,C,T,N){var z,L;if(this.chart.polar)if(N){var O=(L=u(C,N,!0,this.connectEnds)).prevPointCont&&L.prevPointCont.rightContX,j=L.prevPointCont&&L.prevPointCont.rightContY;z=["C",A(O)?O:L.plotX,A(j)?j:L.plotY,A(L.leftContX)?L.leftContX:L.plotX,A(L.leftContY)?L.leftContY:L.plotY,L.plotX,L.plotY]}else z=["M",T.plotX,T.plotY];else z=d.call(this,C,T,N);return z}var D=function(){function d(C){this.series=C}return d.compose=function(C,T,N,z,L,O,j,Y,H){if(U.compose(C,L),m.indexOf(T)===-1){m.push(T),F(T,"afterDrawChartBox",v),F(T,"getAxes",M),F(T,"init",S);var W=T.prototype;f(W,"get",i)}if(m.indexOf(N)===-1){m.push(N);var q=N.prototype;f(q,"getCoordinates",n),f(q,"pinch",h),F(N,"getSelectionMarkerAttrs",p),F(N,"getSelectionBox",x)}if(m.indexOf(z)===-1){m.push(z),F(z,"afterInit",g),F(z,"afterTranslate",r,{order:2});var tt=z.prototype;f(tt,"animate",b)}if(j&&m.indexOf(j)===-1){m.push(j);var J=j.prototype;f(J,"alignDataLabel",o),f(J,"animate",b),f(J,"translate",e)}if(Y&&m.indexOf(Y)===-1){m.push(Y);var nt=Y.prototype;f(nt,"getGraphPath",s)}if(H&&m.indexOf(H)===-1){m.push(H);var lt=H.prototype;f(lt,"getPointSpline",k),O&&m.indexOf(O)===-1&&(m.push(O),O.prototype.getPointSpline=lt.getPointSpline)}},d.prototype.arc=function(C,T,N,z){var L=this.series,O=L.xAxis.center,j=L.yAxis.len,Y=O[3]/2,H=j-T+Y,W=j-P(C,j)+Y;return L.yAxis.reversed&&(H<0&&(H=Y),W<0&&(W=Y)),{x:O[0],y:O[1],r:H,innerR:W,start:N,end:z}},d.prototype.toXY=function(C){var T,N=this.series,z=N.chart,L=N.xAxis,O=N.yAxis,j=C.plotX,Y=z.inverted,H=C.y,W=C.plotY,q=Y?j:O.len-W;if(Y&&N&&!N.isRadialBar&&(C.plotY=W=A(H)?O.translate(H):0),C.rectPlotX=j,C.rectPlotY=W,O.center&&(q+=O.center[3]/2),A(W)){var tt=Y?O.postTranslate(W,q):L.postTranslate(j,q);C.plotX=C.polarPlotX=tt.x-z.plotLeft,C.plotY=C.polarPlotY=tt.y-z.plotTop}N.kdByAngle?((T=(j/Math.PI*180+L.pane.options.startAngle)%360)<0&&(T+=360),C.clientX=T):C.clientX=C.plotX},d}();return D}),et(_,"masters/highcharts-more.src.js",[_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Bubble/BubbleSeries.js"],_["Series/PackedBubble/PackedBubbleSeries.js"],_["Series/PolarComposition.js"]],function(G,B,X,U,$){var Z=G;X.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),U.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),$.compose(Z.Axis,Z.Chart,Z.Pointer,Z.Series,Z.Tick,B.seriesTypes.areasplinerange,B.seriesTypes.column,B.seriesTypes.line,B.seriesTypes.spline)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6956:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=Array.isArray},6979:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=function(ct,pt){return ct===pt||ct!=ct&&pt!=pt}},7313:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=function(ct){return ct!=null&&typeof ct=="object"}},7783:function(it,rt,st){var ht=this&&this.__createBinding||(Object.create?function(_,et,G,B){B===void 0&&(B=G);var X=Object.getOwnPropertyDescriptor(et,G);X&&!("get"in X?!et.__esModule:X.writable||X.configurable)||(X={enumerable:!0,get:function(){return et[G]}}),Object.defineProperty(_,B,X)}:function(_,et,G,B){B===void 0&&(B=G),_[B]=et[G]}),ct=this&&this.__exportStar||function(_,et){for(var G in _)G==="default"||Object.prototype.hasOwnProperty.call(et,G)||ht(et,_,G)},pt=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(rt,"__esModule",{value:!0});var ft=pt(st(4608));rt.default=ft.default,ct(st(4783),rt)},7942:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=function(ct){var pt=typeof ct;return ct!=null&&(pt=="object"||pt=="function")}},8552:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>pt});var ht=st(5118),ct=st(9322);const pt=function(ft,_,et){var G=ft==null?void 0:function(B,X){for(var U=0,$=(X=(0,ht.A)(X,B)).length;B!=null&&U<$;)B=B[(0,ct.A)(X[U++])];return U&&U==$?B:void 0}(ft,_);return G===void 0?et:G}},9170:function(it,rt,st){var ht=this&&this.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5134)),pt=ht(st(605)),ft={enabled:!0,overflow:"justify",style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily,fontSize:"13px",fontWeight:"normal",cursor:"default",lineHeight:"14px"}},_={series:{turboThreshold:1e3,dataLabels:ct.default.merge(ft,{align:"center"}),states:{inactive:{enabled:!1}}},line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},connectNulls:!1,cursor:"default",clip:!0,dashStyle:null,enableMouseTracking:!0,events:{},legendIndex:0,linecap:"round",lineWidth:2,shadow:!1,stacking:null,label:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},marker:{enabled:!0,symbol:null,lineWidth:0,radius:4,lineColor:"#FFFFFF",fillColor:null,states:{hover:{enabled:!0},select:{fillColor:"transparent",lineColor:"transparent"}}},point:{events:{}},dataLabels:ct.default.merge(ft,{align:"center",enabled:!1}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0},column:{maxPointWidth:82,dataLabels:ct.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"bottom",overflow:"justify"})},bar:{maxPointWidth:82,dataLabels:ct.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"middle",overflow:"justify"})},pie:{dataLabels:{overflow:"ellipsis"}}};rt.default=_},9223:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.getCircleCenter=rt.getSlicePercentage=rt.calculateFontSize=void 0;var ct=ht(st(8552));rt.calculateFontSize=function(pt){return pt/1.5},rt.getSlicePercentage=function(pt){return(0,ct.default)(pt,"series.chart.options.plotOptions.pie.dataLabels.showDecimals")===!0?pt.percentage.toFixed(1).replace(".0",""):Math.round(pt.percentage)},rt.getCircleCenter=function(pt){return{circleCenterX:(0,ct.default)(pt,"shapeArgs.x")+pt.series.chart.plotBox.x,circleCenterY:(0,ct.default)(pt,"shapeArgs.y")+pt.series.chart.plotBox.y}}},9322:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=st(4089);const ct=function(pt){if(typeof pt=="string"||(0,ht.A)(pt))return pt;var ft=pt+"";return ft=="0"&&1/pt==-1/0?"-0":ft}},9465:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(123);const ct=function(){try{var ft=(0,ht.A)(Object,"defineProperty");return ft({},"",{}),ft}catch(_){}}(),pt=function(ft,_,et){_=="__proto__"&&ct?ct(ft,_,{configurable:!0,enumerable:!0,value:et,writable:!0}):ft[_]=et}},9600:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(6713),ct=typeof self=="object"&&self&&self.Object===Object&&self;const pt=ht.A||ct||Function("return this")()},9681:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(605)),pt={align:"center",itemHoverStyle:{color:ct.default.legendColor},itemStyle:{color:ct.default.legendColor,fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",fontFamily:ct.default.fontFamily},navigation:{style:{color:ct.default.legendNavigationColor,fontFamily:ct.default.fontFamily},activeColor:ct.default.legendNavigationColor,inactiveColor:ct.default.legendNavigationSecondaryColor},alignColumns:!1};rt.default=pt}},K={};function Q(it){var rt=K[it];if(rt!==void 0)return rt.exports;var st=K[it]={exports:{}};return R[it].call(st.exports,st,st.exports,Q),st.exports}return Q.d=(it,rt)=>{for(var st in rt)Q.o(rt,st)&&!Q.o(it,st)&&Object.defineProperty(it,st,{enumerable:!0,get:rt[st]})},Q.o=(it,rt)=>Object.prototype.hasOwnProperty.call(it,rt),Q.r=it=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(it,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(it,"__esModule",{value:!0})},Q(938)})())})(nn,nn.exports);var Dg=nn.exports;const mh=fn(Dg);/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:yh,setPrototypeOf:Zs,isFrozen:jg,getPrototypeOf:Ig,getOwnPropertyDescriptor:_g}=Object;let{freeze:Pe,seal:He,create:Ho}=Object,{apply:sn,construct:an}=typeof Reflect!="undefined"&&Reflect;Pe||(Pe=function(w){return w});He||(He=function(w){return w});sn||(sn=function(w,R){for(var K=arguments.length,Q=new Array(K>2?K-2:0),it=2;it<K;it++)Q[it-2]=arguments[it];return w.apply(R,Q)});an||(an=function(w){for(var R=arguments.length,K=new Array(R>1?R-1:0),Q=1;Q<R;Q++)K[Q-1]=arguments[Q];return new w(...K)});const jo=Le(Array.prototype.forEach),Ng=Le(Array.prototype.lastIndexOf),Ks=Le(Array.prototype.pop),Xi=Le(Array.prototype.push),Bg=Le(Array.prototype.splice),Yo=Le(String.prototype.toLowerCase),jr=Le(String.prototype.toString),Ir=Le(String.prototype.match),Hi=Le(String.prototype.replace),Rg=Le(String.prototype.indexOf),zg=Le(String.prototype.trim),_e=Le(Object.prototype.hasOwnProperty),ke=Le(RegExp.prototype.test),Yi=Fg(TypeError);function Le(l){return function(w){w instanceof RegExp&&(w.lastIndex=0);for(var R=arguments.length,K=new Array(R>1?R-1:0),Q=1;Q<R;Q++)K[Q-1]=arguments[Q];return sn(l,w,K)}}function Fg(l){return function(){for(var w=arguments.length,R=new Array(w),K=0;K<w;K++)R[K]=arguments[K];return an(l,R)}}function ee(l,w){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yo;Zs&&Zs(l,null);let K=w.length;for(;K--;){let Q=w[K];if(typeof Q=="string"){const it=R(Q);it!==Q&&(jg(w)||(w[K]=it),Q=it)}l[Q]=!0}return l}function Gg(l){for(let w=0;w<l.length;w++)_e(l,w)||(l[w]=null);return l}function Ze(l){const w=Ho(null);for(const[R,K]of yh(l))_e(l,R)&&(Array.isArray(K)?w[R]=Gg(K):K&&typeof K=="object"&&K.constructor===Object?w[R]=Ze(K):w[R]=K);return w}function Ui(l,w){for(;l!==null;){const K=_g(l,w);if(K){if(K.get)return Le(K.get);if(typeof K.value=="function")return Le(K.value)}l=Ig(l)}function R(){return null}return R}const qs=Pe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_r=Pe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Nr=Pe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wg=Pe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Br=Pe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Xg=Pe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Js=Pe(["#text"]),Qs=Pe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Rr=Pe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ta=Pe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Io=Pe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hg=He(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Yg=He(/<%[\w\W]*|[\w\W]*%>/gm),Ug=He(/\$\{[\w\W]*/gm),Vg=He(/^data-[\-\w.\u00B7-\uFFFF]+$/),$g=He(/^aria-[\-\w]+$/),vh=He(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zg=He(/^(?:\w+script|data):/i),Kg=He(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bh=He(/^html$/i),qg=He(/^[a-z][.\w]*(-[.\w]+)+$/i);var ea=Object.freeze({__proto__:null,ARIA_ATTR:$g,ATTR_WHITESPACE:Kg,CUSTOM_ELEMENT:qg,DATA_ATTR:Vg,DOCTYPE_NAME:bh,ERB_EXPR:Yg,IS_ALLOWED_URI:vh,IS_SCRIPT_OR_DATA:Zg,MUSTACHE_EXPR:Hg,TMPLIT_EXPR:Ug});const Vi={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Jg=function(){return typeof window=="undefined"?null:window},Qg=function(w,R){if(typeof w!="object"||typeof w.createPolicy!="function")return null;let K=null;const Q="data-tt-policy-suffix";R&&R.hasAttribute(Q)&&(K=R.getAttribute(Q));const it="dompurify"+(K?"#"+K:"");try{return w.createPolicy(it,{createHTML(rt){return rt},createScriptURL(rt){return rt}})}catch(rt){return console.warn("TrustedTypes policy "+it+" could not be created."),null}},ia=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xh(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jg();const w=Ft=>xh(Ft);if(w.version="3.3.3",w.removed=[],!l||!l.document||l.document.nodeType!==Vi.document||!l.Element)return w.isSupported=!1,w;let{document:R}=l;const K=R,Q=K.currentScript,{DocumentFragment:it,HTMLTemplateElement:rt,Node:st,Element:ht,NodeFilter:ct,NamedNodeMap:pt=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:ft,DOMParser:_,trustedTypes:et}=l,G=ht.prototype,B=Ui(G,"cloneNode"),X=Ui(G,"remove"),U=Ui(G,"nextSibling"),$=Ui(G,"childNodes"),Z=Ui(G,"parentNode");if(typeof rt=="function"){const Ft=R.createElement("template");Ft.content&&Ft.content.ownerDocument&&(R=Ft.content.ownerDocument)}let V,F="";const{implementation:I,createNodeIterator:E,createDocumentFragment:A,getElementsByTagName:P}=R,{importNode:y}=K;let c=ia();w.isSupported=typeof yh=="function"&&typeof Z=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:f,ERB_EXPR:m,TMPLIT_EXPR:u,DATA_ATTR:v,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:x,CUSTOM_ELEMENT:p}=ea;let{IS_ALLOWED_URI:g}=ea,r=null;const a=ee({},[...qs,..._r,...Nr,...Br,...Js]);let t=null;const i=ee({},[...Qs,...Rr,...ta,...Io]);let o=Object.seal(Ho(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e=null,s=null;const n=Object.seal(Ho(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let h=!0,b=!0,k=!1,D=!0,d=!1,C=!0,T=!1,N=!1,z=!1,L=!1,O=!1,j=!1,Y=!0,H=!1;const W="user-content-";let q=!0,tt=!1,J={},nt=null;const lt=ee({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let gt=null;const mt=ee({},["audio","video","img","source","image","track"]);let bt=null;const yt=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml";let ut=at,vt=!1,Ct=null;const xt=ee({},[dt,ot,at],jr);let St=ee({},["mi","mo","mn","ms","mtext"]),wt=ee({},["annotation-xml"]);const Mt=ee({},["title","style","font","a","script"]);let Tt=null;const Lt=["application/xhtml+xml","text/html"],Pt="text/html";let Et=null,jt=null;const Dt=R.createElement("form"),_t=function(At){return At instanceof RegExp||At instanceof Function},Bt=function(){let At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===At)){if((!At||typeof At!="object")&&(At={}),At=Ze(At),Tt=Lt.indexOf(At.PARSER_MEDIA_TYPE)===-1?Pt:At.PARSER_MEDIA_TYPE,Et=Tt==="application/xhtml+xml"?jr:Yo,r=_e(At,"ALLOWED_TAGS")?ee({},At.ALLOWED_TAGS,Et):a,t=_e(At,"ALLOWED_ATTR")?ee({},At.ALLOWED_ATTR,Et):i,Ct=_e(At,"ALLOWED_NAMESPACES")?ee({},At.ALLOWED_NAMESPACES,jr):xt,bt=_e(At,"ADD_URI_SAFE_ATTR")?ee(Ze(yt),At.ADD_URI_SAFE_ATTR,Et):yt,gt=_e(At,"ADD_DATA_URI_TAGS")?ee(Ze(mt),At.ADD_DATA_URI_TAGS,Et):mt,nt=_e(At,"FORBID_CONTENTS")?ee({},At.FORBID_CONTENTS,Et):lt,e=_e(At,"FORBID_TAGS")?ee({},At.FORBID_TAGS,Et):Ze({}),s=_e(At,"FORBID_ATTR")?ee({},At.FORBID_ATTR,Et):Ze({}),J=_e(At,"USE_PROFILES")?At.USE_PROFILES:!1,h=At.ALLOW_ARIA_ATTR!==!1,b=At.ALLOW_DATA_ATTR!==!1,k=At.ALLOW_UNKNOWN_PROTOCOLS||!1,D=At.ALLOW_SELF_CLOSE_IN_ATTR!==!1,d=At.SAFE_FOR_TEMPLATES||!1,C=At.SAFE_FOR_XML!==!1,T=At.WHOLE_DOCUMENT||!1,L=At.RETURN_DOM||!1,O=At.RETURN_DOM_FRAGMENT||!1,j=At.RETURN_TRUSTED_TYPE||!1,z=At.FORCE_BODY||!1,Y=At.SANITIZE_DOM!==!1,H=At.SANITIZE_NAMED_PROPS||!1,q=At.KEEP_CONTENT!==!1,tt=At.IN_PLACE||!1,g=At.ALLOWED_URI_REGEXP||vh,ut=At.NAMESPACE||at,St=At.MATHML_TEXT_INTEGRATION_POINTS||St,wt=At.HTML_INTEGRATION_POINTS||wt,o=At.CUSTOM_ELEMENT_HANDLING||{},At.CUSTOM_ELEMENT_HANDLING&&_t(At.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(o.tagNameCheck=At.CUSTOM_ELEMENT_HANDLING.tagNameCheck),At.CUSTOM_ELEMENT_HANDLING&&_t(At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(o.attributeNameCheck=At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),At.CUSTOM_ELEMENT_HANDLING&&typeof At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(o.allowCustomizedBuiltInElements=At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),d&&(b=!1),O&&(L=!0),J&&(r=ee({},Js),t=Ho(null),J.html===!0&&(ee(r,qs),ee(t,Qs)),J.svg===!0&&(ee(r,_r),ee(t,Rr),ee(t,Io)),J.svgFilters===!0&&(ee(r,Nr),ee(t,Rr),ee(t,Io)),J.mathMl===!0&&(ee(r,Br),ee(t,ta),ee(t,Io))),_e(At,"ADD_TAGS")||(n.tagCheck=null),_e(At,"ADD_ATTR")||(n.attributeCheck=null),At.ADD_TAGS&&(typeof At.ADD_TAGS=="function"?n.tagCheck=At.ADD_TAGS:(r===a&&(r=Ze(r)),ee(r,At.ADD_TAGS,Et))),At.ADD_ATTR&&(typeof At.ADD_ATTR=="function"?n.attributeCheck=At.ADD_ATTR:(t===i&&(t=Ze(t)),ee(t,At.ADD_ATTR,Et))),At.ADD_URI_SAFE_ATTR&&ee(bt,At.ADD_URI_SAFE_ATTR,Et),At.FORBID_CONTENTS&&(nt===lt&&(nt=Ze(nt)),ee(nt,At.FORBID_CONTENTS,Et)),At.ADD_FORBID_CONTENTS&&(nt===lt&&(nt=Ze(nt)),ee(nt,At.ADD_FORBID_CONTENTS,Et)),q&&(r["#text"]=!0),T&&ee(r,["html","head","body"]),r.table&&(ee(r,["tbody"]),delete e.tbody),At.TRUSTED_TYPES_POLICY){if(typeof At.TRUSTED_TYPES_POLICY.createHTML!="function")throw Yi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof At.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Yi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');V=At.TRUSTED_TYPES_POLICY,F=V.createHTML("")}else V===void 0&&(V=Qg(et,Q)),V!==null&&typeof F=="string"&&(F=V.createHTML(""));Pe&&Pe(At),jt=At}},Jt=ee({},[..._r,...Nr,...Wg]),Gt=ee({},[...Br,...Xg]),Ut=function(At){let It=Z(At);(!It||!It.tagName)&&(It={namespaceURI:ut,tagName:"template"});const Xt=Yo(At.tagName),ne=Yo(It.tagName);return Ct[At.namespaceURI]?At.namespaceURI===ot?It.namespaceURI===at?Xt==="svg":It.namespaceURI===dt?Xt==="svg"&&(ne==="annotation-xml"||St[ne]):!!Jt[Xt]:At.namespaceURI===dt?It.namespaceURI===at?Xt==="math":It.namespaceURI===ot?Xt==="math"&&wt[ne]:!!Gt[Xt]:At.namespaceURI===at?It.namespaceURI===ot&&!wt[ne]||It.namespaceURI===dt&&!St[ne]?!1:!Gt[Xt]&&(Mt[Xt]||!Jt[Xt]):!!(Tt==="application/xhtml+xml"&&Ct[At.namespaceURI]):!1},Kt=function(At){Xi(w.removed,{element:At});try{Z(At).removeChild(At)}catch(It){X(At)}},le=function(At,It){try{Xi(w.removed,{attribute:It.getAttributeNode(At),from:It})}catch(Xt){Xi(w.removed,{attribute:null,from:It})}if(It.removeAttribute(At),At==="is")if(L||O)try{Kt(It)}catch(Xt){}else try{It.setAttribute(At,"")}catch(Xt){}},$t=function(At){let It=null,Xt=null;if(z)At="<remove></remove>"+At;else{const se=Ir(At,/^[\r\n\t ]+/);Xt=se&&se[0]}Tt==="application/xhtml+xml"&&ut===at&&(At='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+At+"</body></html>");const ne=V?V.createHTML(At):At;if(ut===at)try{It=new _().parseFromString(ne,Tt)}catch(se){}if(!It||!It.documentElement){It=I.createDocument(ut,"template",null);try{It.documentElement.innerHTML=vt?F:ne}catch(se){}}const ce=It.body||It.documentElement;return At&&Xt&&ce.insertBefore(R.createTextNode(Xt),ce.childNodes[0]||null),ut===at?P.call(It,T?"html":"body")[0]:T?It.documentElement:ce},ie=function(At){return E.call(At.ownerDocument||At,At,ct.SHOW_ELEMENT|ct.SHOW_COMMENT|ct.SHOW_TEXT|ct.SHOW_PROCESSING_INSTRUCTION|ct.SHOW_CDATA_SECTION,null)},be=function(At){return At instanceof ft&&(typeof At.nodeName!="string"||typeof At.textContent!="string"||typeof At.removeChild!="function"||!(At.attributes instanceof pt)||typeof At.removeAttribute!="function"||typeof At.setAttribute!="function"||typeof At.namespaceURI!="string"||typeof At.insertBefore!="function"||typeof At.hasChildNodes!="function")},Ot=function(At){return typeof st=="function"&&At instanceof st};function zt(Ft,At,It){jo(Ft,Xt=>{Xt.call(w,At,It,jt)})}const Vt=function(At){let It=null;if(zt(c.beforeSanitizeElements,At,null),be(At))return Kt(At),!0;const Xt=Et(At.nodeName);if(zt(c.uponSanitizeElement,At,{tagName:Xt,allowedTags:r}),C&&At.hasChildNodes()&&!Ot(At.firstElementChild)&&ke(/<[/\w!]/g,At.innerHTML)&&ke(/<[/\w!]/g,At.textContent)||At.nodeType===Vi.progressingInstruction||C&&At.nodeType===Vi.comment&&ke(/<[/\w]/g,At.data))return Kt(At),!0;if(!(n.tagCheck instanceof Function&&n.tagCheck(Xt))&&(!r[Xt]||e[Xt])){if(!e[Xt]&&me(Xt)&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt)))return!1;if(q&&!nt[Xt]){const ne=Z(At)||At.parentNode,ce=$(At)||At.childNodes;if(ce&&ne){const se=ce.length;for(let Qt=se-1;Qt>=0;--Qt){const fe=B(ce[Qt],!0);fe.__removalCount=(At.__removalCount||0)+1,ne.insertBefore(fe,U(At))}}}return Kt(At),!0}return At instanceof ht&&!Ut(At)||(Xt==="noscript"||Xt==="noembed"||Xt==="noframes")&&ke(/<\/no(script|embed|frames)/i,At.innerHTML)?(Kt(At),!0):(d&&At.nodeType===Vi.text&&(It=At.textContent,jo([f,m,u],ne=>{It=Hi(It,ne," ")}),At.textContent!==It&&(Xi(w.removed,{element:At.cloneNode()}),At.textContent=It)),zt(c.afterSanitizeElements,At,null),!1)},qt=function(At,It,Xt){if(s[It]||Y&&(It==="id"||It==="name")&&(Xt in R||Xt in Dt))return!1;if(!(b&&!s[It]&&ke(v,It))){if(!(h&&ke(S,It))){if(!(n.attributeCheck instanceof Function&&n.attributeCheck(It,At))){if(!t[It]||s[It]){if(!(me(At)&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,At)||o.tagNameCheck instanceof Function&&o.tagNameCheck(At))&&(o.attributeNameCheck instanceof RegExp&&ke(o.attributeNameCheck,It)||o.attributeNameCheck instanceof Function&&o.attributeNameCheck(It,At))||It==="is"&&o.allowCustomizedBuiltInElements&&(o.tagNameCheck instanceof RegExp&&ke(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt))))return!1}else if(!bt[It]){if(!ke(g,Hi(Xt,x,""))){if(!((It==="src"||It==="xlink:href"||It==="href")&&At!=="script"&&Rg(Xt,"data:")===0&>[At])){if(!(k&&!ke(M,Hi(Xt,x,"")))){if(Xt)return!1}}}}}}}return!0},me=function(At){return At!=="annotation-xml"&&Ir(At,p)},de=function(At){zt(c.beforeSanitizeAttributes,At,null);const{attributes:It}=At;if(!It||be(At))return;const Xt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:t,forceKeepAttr:void 0};let ne=It.length;for(;ne--;){const ce=It[ne],{name:se,namespaceURI:Qt,value:fe}=ce,Ee=Et(se),Gi=fe;let xe=se==="value"?Gi:zg(Gi);if(Xt.attrName=Ee,Xt.attrValue=xe,Xt.keepAttr=!0,Xt.forceKeepAttr=void 0,zt(c.uponSanitizeAttribute,At,Xt),xe=Xt.attrValue,H&&(Ee==="id"||Ee==="name")&&(le(se,At),xe=W+xe),C&&ke(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,xe)){le(se,At);continue}if(Ee==="attributename"&&Ir(xe,"href")){le(se,At);continue}if(Xt.forceKeepAttr)continue;if(!Xt.keepAttr){le(se,At);continue}if(!D&&ke(/\/>/i,xe)){le(se,At);continue}d&&jo([f,m,u],Zn=>{xe=Hi(xe,Zn," ")});const $n=Et(At.nodeName);if(!qt($n,Ee,xe)){le(se,At);continue}if(V&&typeof et=="object"&&typeof et.getAttributeType=="function"&&!Qt)switch(et.getAttributeType($n,Ee)){case"TrustedHTML":{xe=V.createHTML(xe);break}case"TrustedScriptURL":{xe=V.createScriptURL(xe);break}}if(xe!==Gi)try{Qt?At.setAttributeNS(Qt,se,xe):At.setAttribute(se,xe),be(At)?Kt(At):Ks(w.removed)}catch(Zn){le(se,At)}}zt(c.afterSanitizeAttributes,At,null)},ue=function Ft(At){let It=null;const Xt=ie(At);for(zt(c.beforeSanitizeShadowDOM,At,null);It=Xt.nextNode();)zt(c.uponSanitizeShadowNode,It,null),Vt(It),de(It),It.content instanceof it&&Ft(It.content);zt(c.afterSanitizeShadowDOM,At,null)};return w.sanitize=function(Ft){let At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=null,Xt=null,ne=null,ce=null;if(vt=!Ft,vt&&(Ft="<!-->"),typeof Ft!="string"&&!Ot(Ft))if(typeof Ft.toString=="function"){if(Ft=Ft.toString(),typeof Ft!="string")throw Yi("dirty is not a string, aborting")}else throw Yi("toString is not a function");if(!w.isSupported)return Ft;if(N||Bt(At),w.removed=[],typeof Ft=="string"&&(tt=!1),tt){if(Ft.nodeName){const fe=Et(Ft.nodeName);if(!r[fe]||e[fe])throw Yi("root node is forbidden and cannot be sanitized in-place")}}else if(Ft instanceof st)It=$t("<!---->"),Xt=It.ownerDocument.importNode(Ft,!0),Xt.nodeType===Vi.element&&Xt.nodeName==="BODY"||Xt.nodeName==="HTML"?It=Xt:It.appendChild(Xt);else{if(!L&&!d&&!T&&Ft.indexOf("<")===-1)return V&&j?V.createHTML(Ft):Ft;if(It=$t(Ft),!It)return L?null:j?F:""}It&&z&&Kt(It.firstChild);const se=ie(tt?Ft:It);for(;ne=se.nextNode();)Vt(ne),de(ne),ne.content instanceof it&&ue(ne.content);if(tt)return Ft;if(L){if(O)for(ce=A.call(It.ownerDocument);It.firstChild;)ce.appendChild(It.firstChild);else ce=It;return(t.shadowroot||t.shadowrootmode)&&(ce=y.call(K,ce,!0)),ce}let Qt=T?It.outerHTML:It.innerHTML;return T&&r["!doctype"]&&It.ownerDocument&&It.ownerDocument.doctype&&It.ownerDocument.doctype.name&&ke(bh,It.ownerDocument.doctype.name)&&(Qt="<!DOCTYPE "+It.ownerDocument.doctype.name+`>
|
|
7
|
+
`+Qt),d&&jo([f,m,u],fe=>{Qt=Hi(Qt,fe," ")}),V&&j?V.createHTML(Qt):Qt},w.setConfig=function(){let Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(Ft),N=!0},w.clearConfig=function(){jt=null,N=!1},w.isValidAttribute=function(Ft,At,It){jt||Bt({});const Xt=Et(Ft),ne=Et(At);return qt(Xt,ne,It)},w.addHook=function(Ft,At){typeof At=="function"&&Xi(c[Ft],At)},w.removeHook=function(Ft,At){if(At!==void 0){const It=Ng(c[Ft],At);return It===-1?void 0:Bg(c[Ft],It,1)[0]}return Ks(c[Ft])},w.removeHooks=function(Ft){c[Ft]=[]},w.removeAllHooks=function(){c=ia()},w}var Ch=xh();const tm=l=>l?oi(l)||l.column.type&&Rt.isNumber(l.column.type):!1,em=(l,w,R)=>{if(!l||w===void 0||isNaN(w))return R;const K=pe(l.numberFormatConfig);return Ai(K,w)},he=(l,w,R)=>tm(l)?em(l,parseFloat(`${w}`),R):R,im=["auto","column","area","areaspline","bar","scatter","arearange"];function Sh(l){return l!=null&&l.chartType?im.includes(l.chartType):!0}const Me=(l,w)=>l!==""?`<span style="color:${w!=null?w:"currentColor"}; font-size: 15px; line-height: 18px">${l}</span>`:"",$i=(l,w)=>`${w||""}${w&&l?"<br />":""}${l||""}`,Pi=l=>Ch.sanitize(`<div style="min-width: 100px; color: #5B6372; font-size: 13px; line-height: 18px; margin: 4px 6px">
|
|
8
|
+
${l}
|
|
9
|
+
</div>`),hi=()=>'<hr class="csdk-border-t" style="margin: 7px 0px" />',om=l=>{const w=l.map((R,K)=>R&&K>0?hi()+R:R).join("");return Pi(w)},rm=(l,w)=>{const{maskedX:R,maskedY:K,maskedBreakByPoint:Q,maskedSize:it,maskedBreakByColor:rt}=l.point.custom,st=he(w.x,l.point.x,R),ht=he(w.y,l.point.y,K),ct=he(w.size,l.point.z,it||""),pt=Me(st,l.point.color),ft=Me(ht,l.point.color),_=Me(Q||"",l.point.color),et=Me(rt||"",l.point.color),G=Me(ct,l.point.color);return{x:pt,y:ft,breakByPoint:_,breakByColor:et,size:G}},nm=(l,w)=>{const R=$i(l.x,w.x&&Ce(w.x)),K=$i(l.y,w.y&&Ce(w.y)),Q=$i(l.breakByPoint,w.breakByPoint&&Ce(w.breakByPoint)),it=$i(l.breakByColor,w.breakByColor&&Ce(w.breakByColor)),rt=$i(l.size,w.size&&Ce(w.size));return{x:R,y:K,breakByPoint:Q,breakByColor:it,size:rt}},sm=(l,w)=>{const R=rm(l,w),{x:K,y:Q,breakByPoint:it,breakByColor:rt,size:st}=nm(R,w);return om([K,Q,it,rt,st])},am=l=>({enabled:!0,useHTML:!0,formatter(){return sm(this,l)}}),Li=(l,w)=>`Maximum number of series (${w}) exceeded (${l})`,ir=(l,w,R)=>`'${l.toUpperCase()}-Axis:' Maximum number of categories (${R}) exceeded (${w})`,xo="$forecast",br="$trend",Mi=l=>l.startsWith(xo),Fn=l=>l.startsWith(br),or=l=>`${l} $range`,lm=(l,w,R)=>{if(!(l!=null&&l.data))return-1;const K=R[or(l.name)],Q=w[or(l.name)],it=l.name.substring(xo.length+1),rt=w[it],st=l.data.findIndex(ht=>!isNaN((ht==null?void 0:ht.y)||NaN));return st===-1?(console.debug("Forecast data has no valid data points",l.name,l.data),-1):(l.type="line",l.showInLegend=!1,l.data[st-1].y=rt.data[st-1].y,l.dashStyle="ShortDash",l.color=rt.color,l.statisticalSeriesRelatesToSeries=it,l.data.forEach((ht,ct)=>{ht.high=K.data[ct].y,ht.low=Q.data[ct].y}),st)},hm=(l,w)=>{l.showInLegend=!1,l.enableMouseTracking=!1;const R=l.name.substring(xo.length+1,l.name.length-7),K=w[R];l.statisticalSeriesRelatesToSeries=R,l.color=K.color,l.fillOpacity=.15,l.lineWidth=0},cm=(l,w)=>{if(!l.data)return;const R=l.name.substring(10,l.name.length-7),K=w[R],Q=l.data.findIndex(it=>!isNaN((it==null?void 0:it.low)||NaN));if(Q===-1){console.debug("Forecast range data has no valid data points",l.name,l.data);return}l.data[Q-1].low=K.data[Q-1].y,l.data[Q-1].high=K.data[Q-1].y,l.statisticalSeriesRelatesToSeries=R},pm=(l,w,R)=>{l.forEach(K=>K.plotBands=[{color:"#F7F7FA",borderWidth:0,from:w-1,to:R}])},dm=(l,w)=>{l.type="line";const R=l.name.substring(br.length+1),K=w[R];l.statisticalSeriesRelatesToSeries=R,l.showInLegend=!1,l.dashStyle="ShortDot",l.color=K.color;let Q=0,it=Number.MAX_VALUE;const rt=K.data.filter(G=>G.y).map(G=>(Q=Math.max(Q,G.y||0),it=Math.min(it,G.y||0),G.y)),st=it,ht=Q,ct=rt.reduce((G,B)=>G+B,0)/rt.length,pt=[...rt].sort((G,B)=>G-B),ft=Math.floor(pt.length/2),_=pt.length%2!==0?pt[ft]:(pt[ft-1]+pt[ft])/2,et={min:st,max:ht,median:_,average:ct};l.data.forEach(G=>{G.trend=et})},um=l=>{const w={};l.forEach(R=>{w[R.name]=R}),l.forEach(R=>{Fn(R.name)&&dm(R,w)})},wh=l=>{const{breakBy:w}=l;if(w.length>0)return!1;const R=l.category.filter(it=>!("enabled"in it)||it.enabled);if(R.length!==1)return!1;const[K]=R;let Q=!1;return kn(K)?Q=K.column.type==="datelevel":Vp(K)&&(Q=K.type==="datelevel"),Q},fm=l=>wh(l)?l.value.filter(w=>(w==null?void 0:w.trend)!==void 0).map(w=>({column:Rt.trend(w.column,`${br}_${w.column.name}`,w.trend),numberFormatConfig:w.numberFormatConfig})):[],gm=l=>wh(l)?l.value.filter(w=>(w==null?void 0:w.forecast)!==void 0).map(w=>({column:Rt.forecast(w.column,`${xo}_${w.column.name}`,w.forecast),numberFormatConfig:w.numberFormatConfig})):[],Mh=(l,w)=>{const R=()=>Nt(kt({},l),{y:[]}),K=R(),Q=R(),it=1,rt=0;l.seriesValues.forEach(ct=>{K.y.push(ct),Q.y.push(ct)}),l.rangeValues.forEach(ct=>{const pt=ct[it],ft=ct[rt];K.y.push(pt),Q.y.push(ft)});const st=tn(K,w),ht=tn(Q,w);return Nt(kt({},st),{type:"range",seriesOther:ht})},Ah=l=>l.rangeValues?!1:l.y.some(R=>Mi(Ce(R))),Th=l=>{const w=l.y.filter(it=>Mi(Ce(it))).map(it=>{const rt=Nt(kt({},it),{column:Uo(it.column,{title:it.column.title&&or(it.column.title),name:`${it.column.name}_upper`})});return[Nt(kt({},it),{column:Uo(it.column,{title:it.column.title&&or(it.column.title),name:`${it.column.name}_lower`})}),rt]}),K=w.concat(l.y).flat(),Q=l.y;return Nt(kt({},l),{rangeValues:w,seriesValues:Q,y:K})},mm=(l,w)=>{const R=Th(l);return Nt(kt({},Mh(R,w)),{type:"cartesian"})};var ym="[object Number]";function ln(l){return typeof l=="number"||Rt.isObjectLike(l)&&Rt.baseGetTag(l)==ym}const Qe="#d1d1d7",vm=l=>l.series[0].data.reduce((w,{low:R,high:K})=>({min:Math.min(w.min,R),max:Math.max(w.max,K)}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),bm=(l,w,R)=>[{labels:{overflow:"none",enabled:l.enabled&&l.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){const{value:K}=this;if(R&&!oi(R)&&!Rt.isNumber(R.column.type))return`${K}`;const Q=typeof K=="number"?K:parseFloat(K);return isNaN(Q)?`${K}`:Se(pe(R==null?void 0:R.numberFormatConfig),Q)}},categories:w,title:{text:l.enabled&&l.titleEnabled&&l.title||null,margin:25},tickmarkPlacement:"on",gridLineWidth:l.enabled&&l.gridLine?1:0,minorTickLength:0,tickLength:0,startOnTick:!0,endOnTick:!0,lineColor:Qe,tickColor:Qe,minorTickColor:Qe,gridLineColor:Qe,gridLineDashStyle:"Dot",minorGridLineColor:Qe,minorGridLineDashStyle:"Dot",min:l.enabled?l.min:null,max:l.enabled?l.max:null}],xm=(l,w,R)=>{const K=vm(w);return[{labels:{enabled:l.enabled&&l.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){return Se(pe(R==null?void 0:R.numberFormatConfig),this.value)}},tickmarkPlacement:"on",title:{text:l.enabled&&l.titleEnabled&&l.title||null,margin:25,style:we},minorGridLineWidth:0,lineColor:Qe,lineWidth:1,tickColor:Qe,minorTickColor:Qe,gridLineColor:Qe,gridLineDashStyle:"Dot",gridLineWidth:l.enabled&&l.gridLine?1:0,minorGridLineColor:Qe,minorGridLineDashStyle:"Dot",min:l.enabled&&ln(l.min)?l.min:K.min,max:l.enabled&&ln(l.max)?l.max:K.max,tickInterval:l.enabled?l.tickInterval:null}]},oa=l=>function(w,R){var Q,it;const K=R?this.point[R]:void 0;return K===void 0||isNaN(K)?"":`${(Q=l==null?void 0:l.prefix)!=null?Q:""}${Se(pe(),K)}${(it=l==null?void 0:l.suffix)!=null?it:""}`},Cm=l=>{var R,K;const w=Oe(l);return{series:{dataLabels:Nt(kt({rotation:(R=l==null?void 0:l.rotation)!=null?R:0,align:"center"},w),{style:kt({fontSize:"13px",fontWeight:"normal"},w.style),formatter:oa(l)}),grouping:!1,stickyTracking:!1,turboThreshold:0,boostThreshold:0,softThreshold:!1},boxplot:{dataLabels:Nt(kt({rotation:(K=l==null?void 0:l.rotation)!=null?K:0,align:"center"},w),{style:kt({fontSize:"13px",fontWeight:"normal"},w.style),formatter:oa(l)})},scatter:{dataLabels:{enabled:!1}}}},Sm=(l,w,R)=>{const K=[],[Q,it]=l.series,{boxplotType:rt}=w,st=.15,ht=$e(R,0),ct=ht,pt=ho(ht,-1*st),ft=ho(ht,-2*st),_=Xl(ft,2*st),et=[Nt(kt({},Q),{data:Q.data.map((G,B)=>{var X;return Nt(kt({},G),{color:ft,fillColor:rt==="hollow"?"transparent":ct,innerBoxColor:rt==="hollow"?"transparent":pt,selected:(X=G.blur)!=null?X:!1,custom:{xValue:l.xValues[B].rawValues}})}),medianWidth:1,maxPointWidth:42,minPointWidth:20,whiskerWidth:1,whiskerLength:"100%",fillOpacity:.8,strokeOpacity:.8,showInLegend:!0,legendIndex:0,yAxis:0,color:ft})];return it&&et.push(Nt(kt({},it),{data:it.data.map(G=>Nt(kt({},G),{marker:{lineColor:G.blur?_:ft},custom:{xValue:l.xValues[G.x].rawValues}})),type:"scatter",legendIndex:1,showInLegend:!1,marker:{enabled:!0,fillColor:"transparent",lineWidth:1,lineColor:ft},color:ft})),{series:et,alerts:K}},wm=(l,w)=>({animation:!1,backgroundColor:pi,borderColor:ci,borderRadius:10,borderWidth:1,useHTML:!0,formatter(){const{x:R,y:K}=this,{high:Q,low:it,q3:rt,q1:st,median:ht}=this.point,ct=Tn(Q),pt=he(l.category,R,`${R}`);if(ct){const X=he(l.outliers,K,`${K}`);return Pi(`
|
|
10
|
+
<div>${this.series.name}</div>
|
|
11
|
+
<div>${Me(X,this.point.color)}</div>
|
|
12
|
+
${l.category?`${hi()}<div>${pt}</div>`:""}
|
|
13
|
+
`)}const ft=he(l.whiskerMax,Q,`${Q}`),_=he(l.whiskerMin,it,`${it}`),et=he(l.boxMax,rt,`${rt}`),G=he(l.boxMin,st,`${st}`),B=he(l.boxMedian,ht,`${ht}`);return Pi(`
|
|
14
|
+
<div>${w("boxplot.tooltip.whiskers")}</div>
|
|
15
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
16
|
+
<span>${w("boxplot.tooltip.max")}</span>
|
|
17
|
+
${Me(ft,this.point.color)}
|
|
18
|
+
</div>
|
|
19
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
20
|
+
<span>${w("boxplot.tooltip.min")}</span>
|
|
21
|
+
${Me(_,this.point.color)}
|
|
22
|
+
</div>
|
|
23
|
+
${hi()}
|
|
24
|
+
<div>${w("boxplot.tooltip.box")}</div>
|
|
25
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
26
|
+
<span>${w("boxplot.tooltip.max")}</span>
|
|
27
|
+
${Me(et,this.point.color)}
|
|
28
|
+
</div>
|
|
29
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
30
|
+
<span>${w("boxplot.tooltip.min")}</span>
|
|
31
|
+
${Me(G,this.point.color)}
|
|
32
|
+
</div>
|
|
33
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
34
|
+
<span>${w("boxplot.tooltip.median")}</span>
|
|
35
|
+
${Me(B,this.point.color)}
|
|
36
|
+
</div>
|
|
37
|
+
${hi()}
|
|
38
|
+
<div>${l.category?pt:this.series.name}</div>
|
|
39
|
+
`)}}),kh=(l,w,R,K,Q=!1)=>{const ht=K<(Q?200:400),pt=R*20,ft=K>pt;return!w||ht||ft?{enabled:!1}:{series:{type:l,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:ci,borderColor:pi},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:ci,outlineWidth:1}};function Ph(l,w,R){l.xAxis[0].setExtremes(w,R,!1)}function ra(l){return"polarType"in l}const Fi=(l,w)=>l==="line"&&w.lineType==="smooth"?"spline":l==="area"&&w.lineType==="smooth"?"areaspline":l==="polar"?w.polarType:l==="scatter"?"bubble":l,Lh=(l,w)=>{var K,Q;const R={totalLabels:{enabled:!1}};if(l!=="area"&&l!=="bar"&&l!=="column"&&l!=="polar")return R;if(l==="polar"){if(ra(w))return{stacking:w.polarType==="column"||w.polarType==="area"?"normal":void 0,totalLabels:{enabled:!1}};throw new Rt.TranslatableError("errors.polarChartDesignOptionsExpected")}if(ra(w))throw new Rt.TranslatableError("errors.polarChartDesignOptionsNotExpected");switch(w.stackType){case"stacked":return{stacking:"normal",totalLabels:(K=w.totalLabels)!=null?K:R.totalLabels};case"stack100":return{stacking:"percent",totalLabels:(Q=w.totalLabels)!=null?Q:R.totalLabels};default:return R}},Mm=(l,w)=>l.map((R,K)=>w===K?0:-1),Am=(l,w,R,K,Q,it,rt,st)=>{const ht=Oh(l,R),ft=l,{title:ct}=ft,pt=Te(ft,["title"]);return Nt(kt({},pt),{name:ct!=null?ct:l.name,data:km(ht,w,K,Q,R,it,rt,st)})},Tm=(l,w)=>{!w.minClipped&&(l!=null&&l.min)&&(l==null?void 0:l.min)>0&&(l.min=0),!w.maxClipped&&(l!=null&&l.max)&&(l==null?void 0:l.max)<0&&(l.max=0)},km=(l,w,R,K,Q,it,rt,st)=>{const ht=w.map((et,G)=>{if(et<0)return{y:null};const{value:B,blur:X,color:U,rawValue:$,xValue:Z,xDisplayValue:V,xCompareValue:F}=l[et],I=Eh(l,w,et,G),E=I||X,A={enabled:!X,isIsolatedPoint:I},P=F?F[0]:NaN;return Nt(kt(kt({x:P,y:B,selected:!!X},E&&{marker:A}),U&&{color:U}),{custom:{rawValue:$,xValue:Z,xDisplayValue:V||Z}})}),ct=[];let pt=-1;const ft=R/2;let _=0;return ht.forEach(et=>{if(et.x&&pt===-1&&(pt=et.x+ft),et.x&&et.x>pt){let G=Math.round((et.x-(pt-ft))/R);for(;G>0&&(_++,!(_>K));){const B=et.x-R*G;ct.push({custom:{xDisplayValue:it(B)},x:B,y:Q?0:null}),Q&&(rt!=null&&rt.min)&&(rt==null?void 0:rt.min)>0&&Tm(rt,st),G--,pt+=R}}ct.push(et),et.x?pt=et.x+R+ft:pt+=R}),Nm(ct)},Bi=(l,w,R,K,Q,it)=>{const rt=Oh(l,R,it),ct=l,{title:st}=ct,ht=Te(ct,["title"]);return Nt(kt({},ht),{name:st!=null?st:l.name,data:Pm(rt,w,K,Q)})},Eh=(l,w,R,K)=>{const Q=K===0||w[K-1]<0||isNaN(l[w[K-1]].value),it=K+1===w.length||w[K+1]<0||isNaN(l[w[K+1]].value);return Q&&it},Oh=(l,w,R)=>l.data.map(it=>{var rt=it,{value:K}=rt,Q=Te(rt,["value"]);return kt({value:w&&Number.isNaN(K)?0:R?Math.abs(K):K},Q)}),Pm=(l,w,R,K)=>{const Q=l.some(it=>it.blur!==void 0);return w.map((it,rt)=>{if(it<0)return{y:null};const{value:st,blur:ht,color:ct,rawValue:pt,xValue:ft,xDisplayValue:_}=l[it];if(R)return Nt(kt({name:R[it],y:st,color:ct!=null?ct:K==null?void 0:K[it]},Q&&!ht&&{selected:!0}),{custom:{rawValue:pt,xValue:ft,xDisplayValue:_||ft}});{const et=Eh(l,w,it,rt),G=et||Q,B={enabled:!ht,isIsolatedPoint:et};return Nt(kt(kt({y:isNaN(+st)?st:+st,selected:!!ht},G&&{marker:B}),ct&&{color:ct}),{custom:{rawValue:pt,xValue:ft,xDisplayValue:_||ft}})}})},Lm=(l,w,R=.1)=>{const Q=Math.abs(w-l)*R/2;return{min:l<0?l-Q:l,max:w>=0?w+Q:w}},na=(l,w)=>{const R=kt({},w);return l.min&&l.min>=R.max&&(R.max=l.min*(l.min>=0?2:.5)),l.max&&l.max<=R.min&&(R.min=l.max*(l.max>=0?.5:2)),R},sa=(l,w)=>{const R=kt({},w);return R.min<=0||(l==="column"||l==="bar")&&(R.min=0),R},Em=(l,w,R,K,Q,it)=>{const rt=w.series.map((ft,_)=>Nt(kt({},ft),{data:ft.data.map(B=>{var X=B,{value:et}=X,G=Te(X,["value"]);return kt({value:isNaN(et)&&Q[_]?0:et},G)})})).filter((ft,_)=>K[_]===it),{stacking:st}=Lh(l,R),ht=it===0?R.yAxis:R.y2Axis||{min:void 0,max:void 0},ct=Rt.isPolar(l)&&R.polarType!=="line";if(st==="percent")return{min:0,max:100};if(st==="normal"||ct){const ft=Array.from(Array(w.xValues.length),()=>({plus:0,minus:0}));let et=rt.reduce((G,B)=>(B.data.forEach(({value:X},U)=>{X<0?G[U].minus+=X||0:G[U].plus+=X||0}),G),ft).reduce((G,B)=>({min:Math.min(G.min,B.minus),max:Math.max(G.max,B.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return et=na(ht,et),et=sa(l,et),R.seriesLabels&&(et=Lm(ht.min||et.min,ht.max||et.max)),et}let pt=rt.reduce((ft,_)=>{const et=_.data.map(({value:G})=>G).filter(G=>!isNaN(G));return{min:Math.min(ft.min,...et),max:Math.max(ft.max,...et)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return pt=na(ht,pt),pt=sa(l,pt),pt},Om=l=>l.length<=1?!0:l.filter(({enabled:R})=>R).length<=1,Dm=(l,w)=>{if(!(!l.chartType||l.chartType==="auto"||w))return l.chartType},Dh=l=>l?1:0,rr=l=>!!l,_o=(l,w)=>Array(w).fill(l),jm=l=>{if(l.length===0)return[[0],[void 0],[!1],[!1]];const w=Om(l),R=l.map(({showOnRightAxis:rt})=>Dh(rt)),K=l.map(rt=>Dm(rt,w)),Q=l.map(({treatNullDataAsZeros:rt})=>rr(rt)),it=l.map(({connectNulls:rt})=>rr(rt));return[R,K,Q,it]},Im=(l,w)=>{const R=l[0],K=Dh(R==null?void 0:R.showOnRightAxis),Q=R?rr(R.treatNullDataAsZeros):void 0,it=R?rr(R.connectNulls):void 0;return[_o(K,w),_o(void 0,w),_o(Q,w),_o(it,w)]},_m=(l,w)=>{if(l.type!=="cartesian")return[[],[],[],[]];const R=w,{y:K,breakBy:Q}=R;return Q.length>0?Im(K,l.series.length):jm(K)},xr=(l,w)=>{var R,K;if(l.breakBy.length===0){if(l.y.length===0)return ci;const Q=(R=l.y.find(it=>it.column.name===w))==null?void 0:R.color;return dl(Q)}else return(K=l.seriesToColorMap)==null?void 0:K[w]};function Nm(l){return l.map((w,R)=>{const K=l[R-1],Q=l[R+1];return(K===void 0||K.y===null)&&(Q===void 0||Q.y===null)?Nt(kt({},w),{marker:{enabled:!0,isIsolatedPoint:!0}}):w})}const Bm=(l,w,R,K,Q)=>{var _;const it=Fi("boxplot",w),{series:rt,alerts:st}=Sm(l,w,Q==null?void 0:Q.palette.variantColors),ht=l.xValues.map(et=>et.key),ct=bm(w.xAxis,ht,R.category),pt=Rn((_=w.autoZoom)==null?void 0:_.onScrollerChange)(ct);return{options:{title:{text:null},chart:{type:it,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{load:function(){var X;const et=this,G=et.chartWidth,B=kh(it,w.autoZoom.enabled,l.xValues.length,G);if(B.enabled&&((X=w.autoZoom)!=null&&X.scrollerLocation)){const{min:U,max:$}=w.autoZoom.scrollerLocation;Ph(et,U,$)}et.update({navigator:B},!0)},selection:et=>{et.preventDefault()}}},legend:Ci(w.legend),xAxis:pt,yAxis:xm(w.yAxis,l,R.whiskerMax),series:rt,plotOptions:Cm(w.seriesLabels),tooltip:wm(R,K)},alerts:st}},jh=l=>Nt(kt({enabled:l.enabled,radius:!l.enabled||l.size==="small"?4:7,fillColor:!l.enabled||l.fill==="full"?null:pi,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!l.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:pi,radius:l.size==="small"?6:9,lineWidth:3}}});function Ih(l){const{x1Value:w,x2Value:R}=l;return gi(Ha,{children:[ge("div",{style:{fontSize:"10px",color:"#666",marginTop:"6px"},children:R||w?ge("hr",{className:"csdk-border-t",style:{margin:"7px 0px"}}):""}),R||"",R&&w?", ":"",w||""]})}function wi(l){const{name:w,value:R}=l;return ge("div",{style:{display:"table-row-group"},children:gi("div",{style:{display:"table-row",height:"18px"},children:[ge("div",{style:{display:"table-cell",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:w}),ge("div",{style:{display:"table-cell",paddingLeft:"15px",fontWeight:"600"},children:R.map((K,Q)=>ge("div",{children:K},Q))})]})})}function _h(l){const{prefix:w,title:R}=l;return gi("div",{style:{display:"flex",marginBottom:"5px"},children:[ge("div",{style:{flexShrink:0},children:w}),ge("div",{style:{marginLeft:"5px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:R})]})}function Rm(l){const{t:w}=gn(),R=l.translate||w,{confidenceValue:K,lowerValue:Q,forecastValue:it,upperValue:rt,title:st,x1Value:ht,x2Value:ct}=l;return gi("div",{style:{color:xn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[ge(_h,{prefix:R("advanced.tooltip.forecast"),title:st}),gi("div",{style:{display:"table"},children:[ge(wi,{name:R("advanced.tooltip.forecastValue"),value:[it]}),ge(wi,{name:R("advanced.tooltip.max"),value:[rt]}),ge(wi,{name:R("advanced.tooltip.min"),value:[Q]}),ge(wi,{name:R("advanced.tooltip.confidenceInterval"),value:[K]})]}),ge(Ih,{x1Value:ht,x2Value:ct})]})}const zm=l=>xa.renderToString(ge(Rm,kt({},l))),Fm={smooth:"Advanced Smoothing",linear:"Linear Trend",local:"Local Estimates",logarithmic:"Logarithmic Trend"};function Gm(l){const{t:w}=gn(),R=l.translate||w,{localValue:K,trendData:Q,modelType:it,title:rt,x1Value:st,x2Value:ht}=l,ct=[`${R("advanced.tooltip.trendData.min")} ${Q.min}`,`${R("advanced.tooltip.trendData.max")} ${Q.max}`,`${R("advanced.tooltip.trendData.median")} ${Q.median}`,`${R("advanced.tooltip.trendData.average")} ${Q.average}`];return gi("div",{style:{color:xn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[ge(_h,{prefix:R("advanced.tooltip.trend"),title:rt}),gi("div",{style:{display:"table"},children:[ge(wi,{name:R("advanced.tooltip.trendType"),value:[Fm[it]]}),ge(wi,{name:R("advanced.tooltip.trendLocalValue"),value:[K]}),ge(wi,{name:R("advanced.tooltip.trendDataKey"),value:ct})]}),ge(Ih,{x1Value:st,x2Value:ht})]})}const Wm=l=>xa.renderToString(ge(Gm,kt({},l))),Xm=/modelType=([^"]+)/,Hm=/confidenceInterval=([^"]+)/,Ym=", ";function Um(l){return l!==void 0?`${Math.round(l)}`:void 0}function Vm(l,w){var R,K;return l.breakBy.length>0?(R=l.y)==null?void 0:R.find(Q=>Q.enabled):(K=l.y)==null?void 0:K.find(Q=>Q.column.title===w)}function $m(l,w){var st,ht,ct,pt;const R=(st=l.point)==null?void 0:st.custom,K=R==null?void 0:R.xDisplayValue,Q=R==null?void 0:R.xValue;if(((ht=w.x)==null?void 0:ht.length)===2&&Q){const ft=Array.isArray(K)&&K[0]!=null?String(K[0]):String((ct=Q[0])!=null?ct:""),_=Array.isArray(K)&&K[1]!=null?String(K[1]):l.x;return{x1Value:String(he(w.x[1],l.x,_)),x2Value:String(he(w.x[0],Q[0],ft))}}const it=Array.isArray(K)?(pt=K[0])!=null?pt:l.x:K!=null?K:l.x,rt=w.x?he(w.x[0],l.x,typeof it=="string"?it:String(it)):it;return{x1Value:String(rt),x2Value:void 0}}function Zm(l,w,R){const K=Sh(l);return he(l,w,"")+(K&&R?` / ${R}%`:"")}function Km(l,w){const R=l.point.name||l.series.name;return w&&Mi(R)?l.series.name.substring(10):w&&Fn(R)?l.series.name.substring(7):l.series.name}function qm(l,w){return{low:w!=null&&w.low?he(l,w.low,""):"",high:w!=null&&w.high?he(l,w.high,""):""}}function Jm(l){var w,R;return(R=(w=l==null?void 0:l.match(Xm))==null?void 0:w[1])!=null?R:null}function Qm(l){const w=l==null?void 0:l.match(Hm),R=w?w[1]:"0.8";return`${(parseFloat(R)*100).toFixed(0)}%`}function zr(l,w,R,K,Q,it){return!l||l===""?"":!K||!Q&&!it||!w?`<br />${Me(l,R)}`:`<br /><span>${K(w)} </span>${Me(l,R)}`}function ty(l,w,R){var pt,ft;const K=(pt=w==null?void 0:w.column)==null?void 0:pt.expression,Q=(ft=Jm(K))!=null?ft:"",it=l.point.trend;if(!it)return"";const{min:rt,max:st,median:ht,average:ct}=it;return Wm({title:R.yName,modelType:Q,trendData:{min:he(w,rt,""),max:he(w,st,""),median:he(w,ht,""),average:he(w,ct,"")},localValue:R.value,x1Value:R.x1Value,x2Value:R.x2Value,translate:R.translate})}function ey(l,w){var Q;const R=(Q=l==null?void 0:l.column)==null?void 0:Q.expression,K=Qm(R);return zm({title:w.yName,confidenceValue:K,forecastValue:w.value,x1Value:w.x1Value,x2Value:w.x2Value,translate:w.translate,upperValue:w.upperValue,lowerValue:w.lowerValue})}function iy(l){const{yName:w,trendMarkerSuffix:R,labelPrefix:K,value:Q,high:it,low:rt,x1Value:st,x2Value:ht,color:ct,translate:pt,isForecastSeriesPoint:ft,isTrendSeriesPoint:_}=l,et=zr(Q,K,ct,pt,ft,_),G=zr(it,"advanced.tooltip.max",ct,pt,ft,_),B=zr(rt,"advanced.tooltip.min",ct,pt,ft,_),X=ht||st?`${hi()}${ht!=null?ht:""}${ht&&st?Ym:""}${st!=null?st:""}`:"";return Pi(`
|
|
40
|
+
${w.replace(R,"")}
|
|
41
|
+
${et}
|
|
42
|
+
${G}
|
|
43
|
+
${B}
|
|
44
|
+
${X}
|
|
45
|
+
`)}const Nh=function(l,w,R){const K=w,Q=Um(l.percentage),it=Vm(K,l.series.name),{x1Value:rt,x2Value:st}=$m(l,K),ht=Zm(it,l.point.y,Q),ct=l.point.color||l.series.color,pt=l.point.name||l.series.name,ft=Mi(pt),_=Fn(pt),et=Km(l,R),{low:G,high:B}=qm(it,l.point),X=R?`(+${R("advanced.tooltip.trend")})`:"",U=ft?"advanced.tooltip.forecastValue":"";return _?ty(l,it,{yName:et,value:ht,x1Value:rt,x2Value:st,translate:R}):ft?ey(it,{yName:et,value:ht,x1Value:rt,x2Value:st,translate:R,upperValue:B,lowerValue:G}):iy({yName:et,trendMarkerSuffix:X,labelPrefix:U,value:ht,high:B,low:G,x1Value:rt,x2Value:st,color:ct,translate:R,isForecastSeriesPoint:ft,isTrendSeriesPoint:_})},Bh=(l,w)=>({animation:!1,backgroundColor:pi,borderColor:ci,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return Nh(this,l,w)}}),hn={enabled:!0,types:{count:!1,relative:!0,totals:!0}},oy=(l,w)=>function(){var it,rt,st;const R=this.y===0&&this.x===" ";if(this.y===void 0||isNaN(this.y)||R)return"";let K="";const Q=(it=w==null?void 0:w.showValue)!=null?it:!0;return Q&&(K+=Se(pe(l),this.y)),Q&&(w!=null&&w.showPercentage)&&this.percentage!==void 0&&(K+=" / "),w!=null&&w.showPercentage&&this.percentage!==void 0&&(K+=`${Math.round(this.percentage)}%`),`${(rt=w==null?void 0:w.prefix)!=null?rt:""}${K}${(st=w==null?void 0:w.suffix)!=null?st:""}`},Gn=l=>{const w=Math.abs(l)%180;return w<20?"horizontal":w<60?"diagonal":w<120?"vertical":w<160?"diagonal":"horizontal"},ry=(l,w,R)=>{var it;if(!(w!=null&&w.enabled))return{enabled:!1};const K=kt(Nt(kt({},hn),{align:"center",verticalAlign:"middle",rotation:(it=w.rotation)!=null?it:0}),Oe(w));if(R)return K;const Q=Gn(K.rotation);if(l==="vertical")return kt(Nt(kt({},K),{align:Q==="horizontal"?"left":"center"}),Oe(w));switch(Q){case"horizontal":return kt(Nt(kt({},K),{verticalAlign:"bottom",padding:5}),Oe(w));case"diagonal":return kt(Nt(kt({},K),{align:"left",y:-10,x:-2}),Oe(w));case"vertical":return kt(Nt(kt({},K),{align:"left",y:-10}),Oe(w))}},ny=(l,w)=>{var Q,it;if(!l)return{enabled:!1};const R=(Q=l.rotation)!=null?Q:0,K=(it=l.enabled)!=null?it:hn.enabled;return kt(Nt(kt({},hn),{verticalAlign:w==="line"?"bottom":"middle",rotation:R,align:Gn(R)==="vertical"?"left":"center",padding:5}),Oe(Nt(kt({},l),{enabled:K})))};function sy(l){if(l==null)return;if(typeof l=="number"){const R=new Date(l);return Number.isNaN(R.getTime())?void 0:R}const w=String(l);if(/^\d+$/.test(w)){const R=new Date(Number(w));return Number.isNaN(R.getTime())?void 0:R}if(/^\d{4}-\d{2}-\d{2}/.test(w)||w.includes("T")){const R=dr(w);return Number.isNaN(R.getTime())?void 0:R}}function Fr(l,w,R,K){if(!K||!l||!Rt.isDatetime(l.column.type))return w;const Q=l.dateFormat||vr(ur(l));if(!Q)return w;const it=sy(R);return it?K(it,Q):w}const ay=(l,w)=>{const R=l;if(R.x.length!==2)return w;const{categories:K,indexMap:Q,plotBands:it}=w,rt=R.x[1],st=R.x[0],ht=pe(rt==null?void 0:rt.numberFormatConfig),ct=pe(st==null?void 0:st.numberFormatConfig);let pt=K;rt&&Rt.isNumber(rt.column.type)&&(pt=K.map(_=>Se(ht,parseFloat(_))));let ft=it;return st&&Rt.isNumber(st.column.type)&&(ft=it.map(_=>{const et=Se(ct,parseFloat(_.text));return Nt(kt({},_),{text:et})})),{categories:pt,indexMap:Q,plotBands:ft}},ly=(l,w)=>{const{stackType:R}=w;return R==="classic"&&(Ul(l)||cf(l))},hy=l=>{const{xValues:w,xAxisCount:R}=l;return R!==2||w.length===0},Gr=(l,w)=>({plotBands:[],indexMap:l.map((R,K)=>K),categories:w}),cy=(l,w,R,K,Q)=>{var X;const{xValues:st}=l,{y:ht}=w;if(ly(w,R))return Gr(st,ht.map(U=>Ce(U)));if(K)return Gr(st,st.map(gh).map(U=>`${U}`));if(hy(l))return Gr(st,st.map(U=>U.xValues[0]));const ct=[],pt=[],ft=[];let _=st[0].xValues[0],et=-.5;st.map((U,$)=>{var F,I,E;const Z=Fr(w.x[1],U.xValues[1],(F=U.rawValues)==null?void 0:F[1],Q),V=U.xValues[0];if(V!==_){ct.push(-1);const A=ct.length-1;ft.push(" "),pt.push({text:Fr(w.x[0],_,(E=(I=st[$-1])==null?void 0:I.rawValues)==null?void 0:E[0],Q),from:et,to:A}),et=A,_=V}return ct.push($),ft.push(Z),U.xValues[1]});const G=st.length-1,B=st[G].xValues[0];return pt.push({text:Fr(w.x[0],B,(X=st[G].rawValues)==null?void 0:X[0],Q),from:et,to:ct.length-.5}),{categories:ft,indexMap:ct,plotBands:pt}},py=l=>{switch(l){case Rt.DateLevels.Years:return 31536e6;case Rt.DateLevels.Quarters:return 7884e6;case Rt.DateLevels.Months:return 2592e6;case Rt.DateLevels.Weeks:return 6048e5;case Rt.DateLevels.Days:return 864e5;case Rt.DateLevels.AggHours:case Rt.DateLevels.Hours:return 36e5;case Rt.DateLevels.AggMinutesRoundTo30:case Rt.DateLevels.MinutesRoundTo30:return 18e5;case Rt.DateLevels.AggMinutesRoundTo15:case Rt.DateLevels.MinutesRoundTo15:return 9e5;case Rt.DateLevels.AggMinutesRoundTo1:return 6e4}return console.warn("Unsupported level"),0},dy=(l,w)=>{const R=ur(l),K=(l==null?void 0:l.dateFormat)||vr(R);return!w||!K?Q=>`${Q}`:function(Q){return w(new Date(Q),K)}},uy=(l,w,R,K)=>{const Q=ur(w),it=(_,et)=>_.lastValue?{minInterval:Math.min(et-_.lastValue,_.minInterval),lastValue:et}:Nt(kt({},_),{lastValue:et}),rt=R[0],st=R[R.length-1];let ht=Q?py(Q):R.reduce(it,{minInterval:(st-rt)/(R.length-1),lastValue:void 0}).minInterval;if(ht<30*864e5&&ht>25*864e5&&(ht=2592e6),R.length>1&&(isNaN(ht)||ht===0))throw new Rt.TranslatableError("errors.tickIntervalCalculationFailed");let ct;const pt=(w==null?void 0:w.dateFormat)||vr(Q);K&&pt&&(ct=function(){const _=this;return K(new Date(_.value),pt)});const ft={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"};return[Fe(rn,{type:"datetime",title:{enabled:l.enabled&&l.titleEnabled,text:l.title},dateTimeLabelFormats:ft,gridLineDashStyle:"Dot",gridLineWidth:l.enabled&&l.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:Nt(kt({},ct&&{formatter:ct}),{overflow:"none",enabled:l.enabled&&l.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we}),min:rt,max:st,tickInterval:ht,minTickInterval:ht,tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,startOfWeek:4,showFirstLabel:!0,showLastLabel:!0,minRange:ht,isDate:!0})]},fy=(l,w,R,K,Q,it)=>{const rt=(K||[]).map(ft=>({isPlotBand:!0,from:ft.from,to:ft.to,label:kt({text:ft.text,y:-5,style:Nt(kt({},we),{width:"70px",textOverflow:"ellipsis"})},Q==="vertical"&&{align:"right",x:5,textAlign:"left",y:0})})),st=(K||[]).filter(ft=>ft.from>0).map(ft=>({color:"#C0D0E0",dashStyle:"shortDot",width:1,value:ft.from})),ht=it,ct=ht.x[ht.x.length-1];let pt=[Fe(rn,{type:l.type,title:{enabled:l.enabled&&l.titleEnabled,text:l.title},gridLineDashStyle:"Dot",gridLineWidth:l.enabled&&l.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:l.enabled&&l.labels,style:we,formatter:function(){const ft=this;return!ct||!Rt.isNumber(ct==null?void 0:ct.column.type)||isNaN(parseFloat(ft.value))?ft.value:Se(pe(ct==null?void 0:ct.numberFormatConfig),parseFloat(ft.value))}},min:l.min,max:l.max,tickInterval:l.tickInterval,categories:R,plotBands:rt,plotLines:st,tickmarkPlacement:"on"})];return w&&(pt=pt.concat(Fe(rn,{title:{enabled:w.enabled&&w.titleEnabled,text:w.title},categories:R,opposite:!0,gridLineWidth:0,tickWidth:0,lineWidth:0}))),pt},gy=(l,w,R)=>{const K=[{minClipped:!!(l.enabled&&l.min),maxClipped:!!(l.enabled&&l.max)}];return R&&K.push({minClipped:!!(w!=null&&w.enabled&&w.min),maxClipped:!!(w!=null&&w.enabled&&w.max)}),K},Rh=(l,w,R,K,Q,it)=>{var ft,_,et,G;const rt=Q,st=pe((ft=rt.y.find(({showOnRightAxis:B})=>!B))==null?void 0:ft.numberFormatConfig),ht=pe((_=rt.y.find(({showOnRightAxis:B})=>B))==null?void 0:_.numberFormatConfig);function ct(B){return function(){return Se(B,this.value)}}const pt=[Fe(Vs,Nt(kt(kt({type:l.type,title:{enabled:l.enabled&&l.titleEnabled,text:l.title},gridLineDashStyle:"Dot",gridLineWidth:l.enabled&&l.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:l.enabled&&l.labels,style:we,formatter:ct(st)},startOnTick:!(l.enabled&&l.min)},l.min&&{minPadding:0}),l.max&&{maxPadding:0}),{min:l.enabled?(et=l.min)!=null?et:R.min:null,max:l.enabled?(G=l.max)!=null?G:R.max:null,tickInterval:l.enabled?l.tickInterval:null,stackLabels:{enabled:!1,formatter:ct(st),style:kt(kt({},po),it?{color:it.typography.primaryTextColor}:null),rotation:0}}))];if(K){const B={startOnTick:!(w!=null&&w.enabled&&w.min),min:w!=null&&w.enabled?w.min||K.min:null,max:w!=null&&w.enabled?w.max||K.max:null},X=w!=null&&w.enabled?{opposite:!0,gridLineWidth:0,title:{enabled:w.enabled&&w.titleEnabled,text:w.title},labels:{enabled:w.enabled&&w.labels,style:we,formatter:ct(ht)},tickInterval:w.enabled?w.tickInterval:null,stackLabels:{enabled:!1,formatter:ct(ht),style:kt(kt({},po),it?{color:it.typography.primaryTextColor}:null),rotation:0}}:{visible:!1};pt.push(Fe(Vs,kt(kt({},B),X)))}return pt},zh=l=>{const{enabled:w,rotation:R,align:K,verticalAlign:Q,delay:it,backgroundColor:rt,borderColor:st,borderRadius:ht,borderWidth:ct,textStyle:pt,xOffset:ft,yOffset:_}=l!=null?l:{},B=pt!=null?pt:{},{align:et}=B,G=Te(B,["align"]);return ki({enabled:w!=null?w:!1,rotation:R,align:K,textAlign:et,verticalAlign:Q,animation:it!==void 0?{defer:it}:void 0,backgroundColor:Ti(rt),borderColor:Ti(st),borderRadius:ht,borderWidth:ct,style:G,x:ft,y:_})},my=l=>l.map(w=>Nt(kt({},w),{title:Nt(kt({},w.title),{textAlign:"center",align:"high",y:-25})})),yy=l=>l.map(w=>Nt(kt({},w),{labels:Nt(kt({},w.labels),{rotation:0})})),Fh=yr(my,yy),vy=l=>w=>{var pt,ft;const{stacking:R,totalLabels:K={enabled:!1},dataOptions:Q,themeSettings:it}=l;if(!K.enabled&&!R)return w;const rt=Q,st=pe((pt=rt.y.find(({showOnRightAxis:_})=>!_))==null?void 0:pt.numberFormatConfig),ht=pe((ft=rt.y.find(({showOnRightAxis:_})=>_))==null?void 0:ft.numberFormatConfig);function ct(_,et,G=!1){return function(){const B=typeof this.value=="number"?this.value:parseFloat(this.value),X=G&&this.total||B,U=Se(_,X);return et==="percent"?`${U}%`:U}}return w.map((_,et)=>{const B=et===1?ht:st;return Nt(kt({},_),{labels:R?Nt(kt({},_.labels),{formatter:ct(B,R)}):_.labels,stackLabels:K.enabled?Nt(kt(kt({},_.stackLabels),zh(K)),{formatter:ct(B,"normal",!0),style:kt(kt({},po),it?{color:it.typography.primaryTextColor}:null),crop:!0,allowOverlap:!1,labelrank:99999}):_.stackLabels})})},by=l=>w=>Rt.isPolar(l)?Fh(w):w,Gh=l=>l.length===1&&!!l[0].continuous&&Rt.isDatetime(l[0].column.type),xy=l=>l.every(w=>Rt.isDatetime(w.column.type)),Wh=(l,w)=>{const[R,K,Q,it]=_m(l,w);return{side:R,chartType:K,treatNullAsZero:Q,connectNulls:it}},Cy=(l,w)=>l==="bar"||w.includes("bar")?"vertical":"horizontal",Xh=(l,w,R,K,Q)=>{const{categoriesCapacity:it}=R.dataLimits,rt=Nt(kt({},l),{xValues:l.xValues.slice(0,it)}),{categories:st,indexMap:ht,plotBands:ct}=ay(w,cy(rt,w,R,K,Q));return{categories:st,indexMap:ht,plotBands:ct}},Hh=({designOptions:l,dataOptions:w,chartData:R,categoriesMeta:K,orientation:Q,isContinuous:it,dateFormatter:rt})=>it?uy(l.xAxis,w.x[0],R.xValues.map(gh),rt):fy(l.xAxis,l.x2Axis,K.categories,K.plotBands,Q,w),cn=(l,w,R,K,Q,it)=>Em(w,R,K,Q,it,l),Sy=(l,w)=>Lh(l,w),wy=l=>Nt(kt({},l),{yAxis:Nt(kt({},l.yAxis),{titleEnabled:!1,title:null})}),My=(l,w,R,K,Q,it,rt)=>{const st=Rh(l,w,R,K,it,rt);return{settings:vy({stacking:Q.stacking,totalLabels:Q.totalLabels,dataOptions:it,themeSettings:rt})(st),clipped:gy(l,w,K)}},Yh=l=>l.some(w=>w===1),Ay=(l,w)=>R=>{var K,Q;return R.stackLabels?Nt(kt({},R),{stackLabels:Nt(kt({},R.stackLabels),{x:((K=R.stackLabels.x)!=null?K:0)+l,y:((Q=R.stackLabels.y)!=null?Q:0)+w})}):R},Ty=(l,w)=>R=>{var it;if(!((it=R.plotBands)!=null&&it.length))return R;const K=15,Q=R.plotBands.map(rt=>{var ft,_;if(!rt.label)return rt;const st=(ft=rt.label.x)!=null?ft:0,ht=(_=rt.label.y)!=null?_:0,ct=l?l+K:0,pt=w?w+K:0;return Nt(kt({},rt),{label:Nt(kt({},rt.label),{x:st+ct,y:ht-pt})})});return Nt(kt({},R),{plotBands:Q})};function Uh(l){return w=>w.map(Ay(l.rightShift,l.topShift))}function Vh(l){return w=>w.map(Ty(l.totalLabelRightSpacing,l.totalLabelTopSpacing))}function ky(l,w,R){const K=l==="area"&&R!==void 0,Q="polarType"in w?w.polarType:void 0;return{treatNullDataAsZeros:K,isPolarChart:!!Q,polarType:Q}}const aa=20,di={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},la={X_AXIS_VERTICAL_RIGHT:70,X_AXIS_HORIZONTAL_TOP:20},ha={TOP_DIVISOR:2,RIGHT_SHIFT:.1},Py={RIGHT_MARGIN:80},Ly={FULL_ROTATION:180};function Wn(l,w){var Q;let R=0,K=0;if((Q=w.totalLabels)!=null&&Q.enabled&&w.stackType==="stack100"){const it=Math.abs(w.totalLabels.rotation||0)%Ly.FULL_ROTATION;l==="bar"&&(it<di.HORIZONTAL?R=40:it<di.DIAGONAL?R=25:it<di.VERTICAL?R=15:it<di.INVERTED_DIAGONAL?R=25:R=40),(l==="column"||l==="area")&&(it<di.HORIZONTAL?K=10:it<di.DIAGONAL?K=30:it<di.VERTICAL?K=40:it<di.INVERTED_DIAGONAL?K=30:K=10)}return{rightSpacing:R,topSpacing:K}}function Ey(l,w){const{rightSpacing:R,topSpacing:K}=Wn(l,w);let Q=0,it=0;return K>0&&(it=-1*(K/ha.TOP_DIVISOR)),R>0&&(Q=ha.RIGHT_SHIFT),{rightShift:Q,topShift:it}}function Oy(l){const{chartData:w,chartDesignOptions:R,xAxisOrientation:K}=l,Q=!Bn(R.legend)&&w.xAxisCount>1&&K==="vertical"?la.X_AXIS_VERTICAL_RIGHT:0,it=w.xAxisCount>1&&K==="horizontal"?la.X_AXIS_HORIZONTAL_TOP:0;return{rightSpacing:Q,topSpacing:it}}function Dy(l){const{chartType:w,chartDesignOptions:R}=l;return Wn(w,R)}function jy(l){const w=Oy(l),R=Dy(l),K=Ey(l.chartType,l.chartDesignOptions),Q=aa+R.topSpacing+w.topSpacing,it=aa+R.rightSpacing+w.rightSpacing;return{totalTopSpacing:Q,totalRightSpacing:it,rightShift:K.rightShift,topShift:K.topShift}}function Iy(l,w,R){var K,Q;if(l==="bar"&&w.x.length>1&&Bn(R.legend))return{margin:(Q=(K=R.legend)==null?void 0:K.margin)!=null?Q:Py.RIGHT_MARGIN}}function _y(l){const{chartData:w,chartDesignOptions:R,dataOptions:K,continuousDatetimeXAxis:Q,indexMap:it,categories:rt,treatNullDataAsZeros:st,yTreatNullDataAsZeros:ht,yConnectNulls:ct,yAxisSide:pt,yAxisChartType:ft,yAxisSettings:_,axisClipped:et,xAxisSettings:G,stacking:B,themeSettings:X,dateFormatter:U}=l,{seriesCapacity:$}=R.dataLimits;return w.series.slice(0,$).map((Z,V)=>{var P,y,c,f,m,u,v,S,M;const F=Ny(K,Z.name),I=F==null?void 0:F.column.name,E=By(R,I),A=zy({seriesValue:Z,continuousDatetimeXAxis:Q,indexMap:it,categories:rt,treatNullDataAsZeros:st,yTreatNullDataAsZeros:ht,index:V,stacking:B,dataOptions:K,chartDesignOptions:R,xAxisSettings:G,yAxisSettings:_,axisClipped:et,dateFormatter:U});return kt(kt(kt(kt(kt(kt(kt(Nt(kt(Nt(kt({},A),{showInNavigator:!0,stickyTracking:!1,boostThreshold:0,turboThreshold:0,color:Ry(K,Z.name,X,V),yAxis:pt[V]}),ft[V]&&{type:ft[V]}),{dataLabels:Nt(kt({},Oe(R.seriesLabels)),{formatter:oy(F==null?void 0:F.numberFormatConfig,R.seriesLabels)}),connectNulls:ct[V],marker:jh(E.marker)}),((P=E.line)==null?void 0:P.width)!==void 0&&{lineWidth:(y=E.line)==null?void 0:y.width}),((c=E.line)==null?void 0:c.dashStyle)!==void 0&&{dashStyle:(f=E.line)==null?void 0:f.dashStyle}),((m=E.line)==null?void 0:m.endCap)!==void 0&&{linecap:(v=(u=E.line)==null?void 0:u.endCap)==null?void 0:v.toLowerCase()}),((S=E.line)==null?void 0:S.shadow)!==void 0&&{shadow:(M=E.line)==null?void 0:M.shadow}),"itemPadding"in R&&R.itemPadding!==void 0&&{pointPadding:R.itemPadding}),"groupPadding"in R&&R.groupPadding!==void 0&&{groupPadding:R.groupPadding}),"borderRadius"in R&&R.borderRadius!==void 0&&{borderRadius:R.borderRadius})})}function Ny(l,w){return l.breakBy.length?l.y[0]:l.y.find(({column:{name:R}})=>R===w)}function By(l,w){var Q;return(w?(Q=l.designPerSeries)==null?void 0:Q[w]:void 0)||l}function Ry(l,w,R,K){var Q,it;return(it=xr(l,w))!=null?it:$e((Q=R==null?void 0:R.palette)==null?void 0:Q.variantColors,K||0)}function zy(l){const{seriesValue:w,continuousDatetimeXAxis:R,indexMap:K,categories:Q,treatNullDataAsZeros:it,yTreatNullDataAsZeros:rt,index:st,stacking:ht,dataOptions:ct,chartDesignOptions:pt,xAxisSettings:ft,yAxisSettings:_,axisClipped:et,dateFormatter:G}=l;return R?Am(w,K,it||rt[st],ft[0].tickInterval,pt.dataLimits.categoriesCapacity,dy(ct.x[0],G),_[st],et[st]):Ul(ct)&&!ht?Bi(w,Mm(Q,st),it||rt[st]):Bi(w,K,it||rt[st])}const ca=20,nr=(l,w,R,K,Q,it,rt)=>{var m,u;const st=[];if(l.type!=="cartesian")throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:l.type});const ht=Fi(w,R),{seriesCapacity:ct,categoriesCapacity:pt}=R.dataLimits;l.xValues.length>pt&&st.push(ir("x",l.xValues.length,pt)),l.series.length>ct&&st.push(Li(l.series.length,ct));const ft=Gh(K.x),_=Wh(l,K),et=Cy(w,_.chartType),G=Xh(l,K,R,ft,rt),B=Hh({designOptions:R,dataOptions:K,chartData:l,categoriesMeta:G,orientation:et,isContinuous:ft,dateFormatter:rt}),X=cn(0,w,l,R,_.side,_.treatNullAsZero),U=Yh(_.side)?cn(1,w,l,R,_.side,_.treatNullAsZero):void 0,$=Sy(w,R),Z=My(R.yAxis,R.y2Axis,X,U,$,K,it),V=jy({chartType:w,chartData:l,chartDesignOptions:R,xAxisOrientation:et}),F=ky(w,R,$.stacking),I=R,{rightSpacing:E,topSpacing:A}=(m=I.totalLabels)!=null&&m.enabled&&I.stackType==="stack100"?Wn(w,I):{rightSpacing:0,topSpacing:0},P=yr(by(w),Vh({totalLabelRightSpacing:E,totalLabelTopSpacing:A}),Rn((u=R.autoZoom)==null?void 0:u.onScrollerChange))(B),y=Uh({rightShift:V.rightShift,topShift:V.topShift})(Z.settings),c=_y({chartData:l,chartType:w,chartDesignOptions:R,dataOptions:K,continuousDatetimeXAxis:ft,indexMap:G.indexMap,categories:G.categories,treatNullDataAsZeros:F.treatNullDataAsZeros,yTreatNullDataAsZeros:_.treatNullAsZero,yConnectNulls:_.connectNulls,yAxisSide:_.side,yAxisChartType:_.chartType,yAxisSettings:y,axisClipped:Z.clipped,xAxisSettings:P,stacking:$.stacking,themeSettings:it,dateFormatter:rt});return{options:Fe(ig(w,F.polarType,$.stacking),{title:{text:null},chart:{type:ht,spacing:[V.totalTopSpacing,V.totalRightSpacing,ca,ca],alignTicks:!1,polar:F.isPolarChart,events:{load:function(){var p;if(K.x.length===2&&!xy(K.x))return;const v=this,S=v.chartWidth,M=v.chartHeight,x=kh(ht,R.autoZoom.enabled,l.xValues.length,w==="bar"?M:S,w==="bar");if(x.enabled&&((p=R.autoZoom)!=null&&p.scrollerLocation)){const{min:g,max:r}=R.autoZoom.scrollerLocation;Ph(v,g,r)}v.update({navigator:x},!0)}}},xAxis:P,yAxis:y,legend:kt(kt({},Ci(R.legend)),Iy(w,K,R)),series:c,plotOptions:{series:Nt(kt({dataLabels:F.isPolarChart?ny(R.seriesLabels,F.polarType):ry(et,R.seriesLabels,!!($.stacking&&w!=="area")),marker:jh(R.marker),stacking:$.stacking||void 0,connectNulls:!1},w==="line"&&R.step&&{step:R.step}),{label:{enabled:!1}})},tooltip:Bh(K,Q)}),alerts:st}},Fy=(l,w,R)=>{var G,B,X;const K=l.percentage?w?l.percentage.toFixed(1):`${Math.round(l.percentage)}`:void 0,Q=R,rt=pe((()=>{var $,Z,V;const U=($=Q.y)==null?void 0:$.find(F=>F.column.name===l.series.name);if(U!=null&&U.numberFormatConfig)return U.numberFormatConfig;if(Q.breakBy.length>0)return(V=(Z=Q.y)==null?void 0:Z.find(F=>F.enabled))==null?void 0:V.numberFormatConfig})()),st=(X=(B=(G=l.point)==null?void 0:G.custom)==null?void 0:B.xDisplayValue)!=null?X:l.x,ht=Array.isArray(st)?st.join(", "):st,ct=Ai(rt,l.y)+(K?` / ${K}%`:""),pt=l.point.color||l.series.color,ft=l.series.name||"",_=l.point.name||"";return Pi(`
|
|
46
|
+
${ft}
|
|
47
|
+
${ft&&_?" - ":""}
|
|
48
|
+
${_}
|
|
49
|
+
<br />
|
|
50
|
+
${Me(ct,pt)}
|
|
51
|
+
${ht?hi()+ht:""}
|
|
52
|
+
`)},Xn=(l,w)=>({animation:!1,backgroundColor:pi,borderColor:ci,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return Fy(this,l,w)}}),$h=(l,w,R,K)=>{let Q;const it=Zh(l,R),{seriesCapacity:rt}=R.dataLimits;if(l.xAxisCount===0){const st=l.series.slice(0,rt),ht=st.map(ct=>{var pt;return(pt=ct.title)!=null?pt:ct.name});Q=[{name:"",data:st.map(ct=>Bi(ct,[0],!1,ht).data).flat().map((ct,pt)=>{var ft;return Nt(kt({},ct),{name:ht[pt],color:(ft=xr(w,st[pt].name))!=null?ft:$e(K==null?void 0:K.palette.variantColors,pt)})}),boostThreshold:0,turboThreshold:0}],pa(Q[0])}else{const st=l.xValues.slice(0,rt).map(pt=>pt.xValues.join(",")),ht=st.map((pt,ft)=>ft),ct=st.map((pt,ft)=>{var _,et,G;return(G=(_=w.seriesToColorMap)==null?void 0:_[pt])!=null?G:$e((et=K==null?void 0:K.palette)==null?void 0:et.variantColors,ft)});Q=l.series.map(pt=>Nt(kt({},pa(Bi(pt,ht,!1,st,ct))),{boostThreshold:0,turboThreshold:0}))}return{series:Q,alerts:it}};function Zh(l,w){const R=[],{seriesCapacity:K}=w.dataLimits;return l.xAxisCount===0?l.series.length>K&&R.push(Li(l.series.length,K)):l.xValues.length>K&&R.push(Li(l.xValues.length,K)),R}function pa(l){let w=0;const R=l.data.map((K,Q)=>{const it=K.y;return Q===0&&(w=it),K.custom=Nt(kt({},K.custom),{number1:df(w,it)}),K});return Nt(kt({},l),{data:R})}const Gy=(l,w,R,K)=>{var ct;const Q=[],it=Fi("funnel",w),{series:rt,alerts:st}=$h(l,R,w,K);return Q.push(...st),{options:{title:{text:null},chart:{type:it,spacing:[30,30,30,30],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:Ci(w.legend),series:rt,plotOptions:dh(w,R),tooltip:Xn((ct=w.seriesLabels)==null?void 0:ct.showPercentDecimals,R)},alerts:Q}},Kh="Other",qh="Others",Wy="#525A6B",Jh=(l,w)=>{var R;return l+((R=w.y)!=null?R:0)},da=(l,w,R)=>{var K;return((K=l.y)!=null?K:0)/w>=R},Qh=l=>[{name:Kh,id:qh,data:[...l],type:"pie"}],tc=l=>({y:l.reduce(Jh,0),name:Kh,color:Wy,sliced:!1,drilldown:qh}),ec=({convolution:l})=>({series:w,convolutionSeries:R})=>{if((l==null?void 0:l.minimalIndependentSlicePercentage)===void 0||w.length===0)return{series:w,convolutionSeries:R};const K=l.minimalIndependentSlicePercentage/100,Q=w[0].data.reduce(Jh,0),it=w[0].data.filter(ht=>da(ht,Q,K)),rt=w[0].data.filter(ht=>!da(ht,Q,K));return rt.length===0?{series:w,convolutionSeries:R}:{series:[Nt(kt({},w[0]),{data:[...it,tc(rt)]}),...w.slice(1)],convolutionSeries:Qh(rt)}},ic=({convolution:l})=>({series:w,convolutionSeries:R})=>{if((l==null?void 0:l.independentSlicesCount)===void 0||w.length===0)return{series:w,convolutionSeries:R};const K=l.independentSlicesCount,Q=w[0].data.map((ft,_)=>Nt(kt({},ft),{index:_})).sort((ft,_)=>{var et,G;return((et=_.y)!=null?et:0)-((G=ft.y)!=null?G:0)}),it=Q.slice(0,K);if(Q.slice(K).length===0)return{series:w,convolutionSeries:R};const st=new Set(it.map(ft=>ft.index)),ht=w[0].data.filter((ft,_)=>st.has(_)),ct=w[0].data.filter((ft,_)=>!st.has(_));return{series:[Nt(kt({},w[0]),{data:[...ht,tc(ct)]}),...w.slice(1)],convolutionSeries:Qh(ct)}},oc=(l,w)=>{const R=[];return l.xAxisCount===0?l.series.length>w&&R.push(Li(l.series.length,w)):l.xValues.length>w&&R.push(Li(l.xValues.length,w)),R},rc=(l,w,R,K)=>{if(l.xAxisCount===0){const Q=l.series.slice(0,R),it=Q.map(rt=>{var st;return(st=rt.title)!=null?st:rt.name});return[{name:"",data:Q.map(rt=>Bi(rt,[0],!1,it,void 0,!0).data).flat().map((rt,st)=>{var ht,ct;return Nt(kt({},rt),{sliced:(ht=rt.selected)!=null?ht:!1,name:it[st],color:(ct=xr(w,Q[st].name))!=null?ct:$e(K==null?void 0:K.palette.variantColors,st)})}),boostThreshold:0,turboThreshold:0}]}else{const Q=l.xValues.slice(0,R).map(st=>st.xValues.join(",")),it=Q.map((st,ht)=>ht),rt=Q.map((st,ht)=>{var ct,pt,ft;return(ft=(ct=w.seriesToColorMap)==null?void 0:ct[st])!=null?ft:$e((pt=K==null?void 0:K.palette)==null?void 0:pt.variantColors,ht)});return l.series.map(st=>{const pt=Bi(st,it,!1,Q,rt,!0),{data:ht}=pt,ct=Te(pt,["data"]);return Nt(kt({},ct),{data:ht.map(ft=>{var _;return Nt(kt({},ft),{sliced:(_=ft.selected)!=null?_:!1})}),boostThreshold:0,turboThreshold:0})})}},nc=({chartData:l,dataOptions:w,seriesCapacity:R,convolution:K,themeSettings:Q})=>{const it=rc(l,w,R,Q);if(!(K!=null&&K.enabled))return it;const rt=K.selectedConvolutionType==="byPercentage"?ec({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?ic({convolution:K}):ht=>ht,{series:st}=rt({series:it,convolutionSeries:[]});return st},sc=({chartData:l,dataOptions:w,seriesCapacity:R,convolution:K,themeSettings:Q})=>{if(!(K!=null&&K.enabled))return[];const it=rc(l,w,R,Q),rt=K.selectedConvolutionType==="byPercentage"?ec({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?ic({convolution:K}):()=>({series:it,convolutionSeries:[]}),{convolutionSeries:st}=rt({series:it,convolutionSeries:[]});return st},Xy=(l,w,R,K)=>{const{seriesCapacity:Q}=R.dataLimits,it=R==null?void 0:R.convolution,rt=oc(l,Q),st=nc({chartData:l,dataOptions:w,seriesCapacity:Q,convolution:it,themeSettings:K}),ht=sc({chartData:l,dataOptions:w,seriesCapacity:Q,convolution:it,themeSettings:K});return{series:st,alerts:rt,convolutionSeries:ht}},Hy=(l,w,R,K)=>{var ft,_;const Q=[],it=Fi("pie",w),rt=20,{series:st,convolutionSeries:ht,alerts:ct}=Xy(l,R,w,K);return Q.push(...ct),{options:{title:{text:null},chart:{type:it,spacing:[rt,20,20,20],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:Ci(w.legend),series:st,plotOptions:fh({pieType:w.pieType,seriesLabels:w.seriesLabels,chartDataOptions:R,themeSettings:K,semiCircle:w.semiCircle}),tooltip:Xn((_=(ft=w.seriesLabels)==null?void 0:ft.percentageLabels)==null?void 0:_.showDecimals,R),drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:ht}},alerts:Q}},Hn=(l,w,R,K)=>({animation:!1,backgroundColor:pi,borderColor:ci,borderRadius:10,borderWidth:1,padding:1,useHTML:!0,outside:!0,formatter:function(){return Vy(this,l,w,R,K)}}),Yy=`
|
|
53
|
+
<div style="position: absolute; top: 100%; right: 40px; z-index: 1">
|
|
54
|
+
<div style="
|
|
55
|
+
border: solid transparent;
|
|
56
|
+
content: ' ';
|
|
57
|
+
height: 0;
|
|
58
|
+
width: 0;
|
|
59
|
+
position: absolute;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
border-color: rgba(136,136,136,0);
|
|
62
|
+
border-top-color: #ccc;
|
|
63
|
+
border-width: 7px 12px 12px 12px;
|
|
64
|
+
margin-left: -7px;
|
|
65
|
+
"></div>
|
|
66
|
+
<div style="
|
|
67
|
+
border: solid transparent;
|
|
68
|
+
content: ' ';
|
|
69
|
+
height: 0;
|
|
70
|
+
width: 0;
|
|
71
|
+
position: absolute;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
border-color: rgba(255,255,255,0);
|
|
74
|
+
border-top-color: #fff;
|
|
75
|
+
border-width: 6px 11px 11px 11px;
|
|
76
|
+
margin-left: -6px;
|
|
77
|
+
"></div>
|
|
78
|
+
</div>
|
|
79
|
+
`;function Uy(l,w){return l/(w/100)}function No(l,w){return`${Uy(l,w).toPrecision(3)}%`}function Vy(l,w,R,K,Q){var et,G,B,X,U,$,Z,V,F,I;if(Q!=null&&Q.shouldSkip&&Q.shouldSkip(l))return!1;const it=((et=w.y)==null?void 0:et.length)===0,rt=pe((B=(G=w.y)==null?void 0:G[0])==null?void 0:B.numberFormatConfig),st=((X=R==null?void 0:R.tooltip)==null?void 0:X.mode)==="contribution",ht=Ce((U=w.y)==null?void 0:U[0]),ct=l.color;let pt=0;const ft=[],_=E=>{if(E.parentNode)ft.push(E);else{pt=E.val;return}_(E.parentNode)};return _(l.point.node),`
|
|
80
|
+
<div
|
|
81
|
+
class="csdk-treemap-tooltip-wrapper"
|
|
82
|
+
style="padding-bottom: ${it?"0":"10px"};"
|
|
83
|
+
>
|
|
84
|
+
${[...ft].reverse().map((E,A)=>{const P=A===ft.length-1;return`
|
|
85
|
+
<div
|
|
86
|
+
class="csdk-treemap-tooltip-level"
|
|
87
|
+
style="background: ${P?"#f2f2f2":"white"};"
|
|
88
|
+
>
|
|
89
|
+
${Q!=null&&Q.displayColorCircles?$y(E.color):""}
|
|
90
|
+
<span
|
|
91
|
+
style="color: ${P?ct:"currentColor"}"
|
|
92
|
+
>${E.name}</span>
|
|
93
|
+
<span
|
|
94
|
+
style="color: ${P?"#5B6372":"currentColor"}; margin-left: auto;"
|
|
95
|
+
>${st?No(E.val,pt):Ai(rt,E.val)}</span>
|
|
96
|
+
${P?"":Yy}
|
|
97
|
+
</div>`}).join("")}
|
|
98
|
+
${it?"":`<div class="csdk-treemap-tooltip-value">
|
|
99
|
+
<span style="color:${ct}; font-size: 15px">${st?No(ft[0].val,pt):Ai(rt,($=ft[0])==null?void 0:$.val)}</span> ${K("treemap.tooltip.of")} ${ht}
|
|
100
|
+
</div>`}
|
|
101
|
+
${ft[1]?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
|
|
102
|
+
<span style="color:${ct}; font-size: 15px">${No((Z=ft[0])==null?void 0:Z.val,(V=ft[1])==null?void 0:V.val)}
|
|
103
|
+
</span> ${K("treemap.tooltip.of")} ${(F=ft[1])==null?void 0:F.name}
|
|
104
|
+
</div>`:""}
|
|
105
|
+
${Q!=null&&Q.displayTotalContribution&&!st?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
|
|
106
|
+
<span style="color:${ct}; font-size: 15px">${No((I=ft[0])==null?void 0:I.val,pt)}
|
|
107
|
+
</span> ${K("treemap.tooltip.ofTotal")}
|
|
108
|
+
</div>`:""}
|
|
109
|
+
</div>
|
|
110
|
+
</div>`}function $y(l){return`
|
|
111
|
+
<div style="
|
|
112
|
+
width: 12px;
|
|
113
|
+
height: 12px;
|
|
114
|
+
border-radius: 100%;
|
|
115
|
+
background-color: ${l};
|
|
116
|
+
margin-right: 6px;
|
|
117
|
+
"></div>
|
|
118
|
+
`}const Zy=Object.freeze({1:80,2:70,3:60,4:50});function Ky(l,w,R,K){var rt,st;const Q={level:1,color:(st=(rt=K==null?void 0:K.chart)==null?void 0:rt.backgroundColor)!=null?st:"white",dataLabels:{enabled:!0,useHTML:!0,className:"!csdk-overflow-visible",formatter(){var pt,ft,_,et,G,B;const ht=pe((ft=(pt=w.y)==null?void 0:pt[0])==null?void 0:ft.numberFormatConfig),{value:ct}=this.point;return`
|
|
119
|
+
<div style="text-align: center; transform: translateY(calc(-50% + 15px))">
|
|
120
|
+
<div style="color: ${(et=(_=K==null?void 0:K.chart)==null?void 0:_.secondaryTextColor)!=null?et:"#9EA2AB"}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px">${this.point.name}</div>
|
|
121
|
+
${hi()}
|
|
122
|
+
<div style="
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
font-size: 18px;
|
|
125
|
+
color: ${(B=(G=K==null?void 0:K.chart)==null?void 0:G.textColor)!=null?B:"#5B6372"}
|
|
126
|
+
"
|
|
127
|
+
>${Ai(ht,ct)}</div>
|
|
128
|
+
</div>
|
|
129
|
+
`}},levelSize:{unit:"percentage",value:Zy[w.breakBy.length]||50}},it=Array.from(new Array(l.xAxisCount)).map((ht,ct)=>{const pt=Array.isArray(R.seriesLabels)?R.seriesLabels[ct]:R.seriesLabels,ft=Oe(pt),{prefix:_,suffix:et}=pt!=null?pt:{};return{level:ct+2,dataLabels:Nt(kt({useHTML:!0},ft),{formatter(){var X,U,$,Z,V,F,I,E,A,P,y,c,f,m,u,v;let B=bo(Ve(this.color))>.4?"white":"rgb(43, 51, 66)";return(X=ft.style)!=null&&X.color&&ft.style.color!=="contrast"&&(B=ft.style.color),`<div
|
|
130
|
+
style="
|
|
131
|
+
display: inline;
|
|
132
|
+
color: ${B};
|
|
133
|
+
background-color: ${(U=ft.backgroundColor)!=null?U:""};
|
|
134
|
+
padding: ${($=ft.padding)!=null?$:0}px;
|
|
135
|
+
font-size: ${(V=(Z=ft.style)==null?void 0:Z.fontSize)!=null?V:""}px;
|
|
136
|
+
font-weight: ${(I=(F=ft.style)==null?void 0:F.fontWeight)!=null?I:""};
|
|
137
|
+
font-style: ${(A=(E=ft.style)==null?void 0:E.fontStyle)!=null?A:""};
|
|
138
|
+
font-family: ${(y=(P=ft.style)==null?void 0:P.fontFamily)!=null?y:""};
|
|
139
|
+
border-width: ${(c=ft.borderWidth)!=null?c:0}px;
|
|
140
|
+
border-style: solid;
|
|
141
|
+
border-color: ${(f=ft.borderColor)!=null?f:""};
|
|
142
|
+
border-radius: ${(m=ft.borderRadius)!=null?m:0}px;
|
|
143
|
+
text-overflow: ${(v=(u=ft.style)==null?void 0:u.textOverflow)!=null?v:""};"
|
|
144
|
+
>${_!=null?_:""}${this.point.name}${et!=null?et:""}</div>`}})}});return[Q,...it]}function Yn(l,w,R){if(!l.series[0])return[];const K=qy(l),Q=l.series[0].data.map(it=>{var rt,st;return{value:it.value,name:(rt=it.xDisplayValue)==null?void 0:rt.slice(-1).toString(),parent:(st=it.xValue)==null?void 0:st.slice(0,-1).join("_"),custom:Nt(kt({},it),{level:l.xAxisCount,levelsCount:l.xAxisCount})}});return Jy([...K,...Q],w,R)}function qy(l){const w={};return l.xValues.forEach(R=>{R.rawValues.slice(0,-1).forEach((K,Q)=>{var rt;const it=R.rawValues.slice(0,Q+1).join("_");w[it]={id:it,name:R.xValues[Q],parent:R.rawValues.slice(0,Q).join("_"),custom:{xValues:R.xValues.slice(0,Q+1),rawValues:(rt=R.rawValues)==null?void 0:rt.slice(0,Q+1),level:Q+1,levelsCount:l.xAxisCount}}})}),Object.values(w)}function Jy(l,w,R){const K=w.breakBy.map(it=>it.isColored).indexOf(!0)+1,Q=new Map;return l.map(it=>{var rt;return it.custom.level===K?(Q.has(it.name)||Q.set(it.name,Q.size),Nt(kt({},it),{color:(rt=xr(w,it.name))!=null?rt:$e(R==null?void 0:R.palette.variantColors,Q.get(it.name))})):it})}const pn="SUNBURST_ROOT_PARENT_ID";function Qy(l,w,R){const K={id:pn,name:Ce(w.y[0]),custom:{level:0,levelsCount:l.xAxisCount}},Q=Yn(l,w,R).map(st=>st.parent===""?Nt(kt({},st),{parent:pn}):st),it=i0(Q),rt=t0(it,w,R);return[K,...rt]}function t0(l,w,R){const Q=e0(w),it=w.breakBy.map(()=>new Map);l.forEach(ht=>{var pt,ft,_,et;const ct=it[ht.custom.level-1];if(ct){const G=(pt=ct.get(ht.name))!=null?pt:0,B=(et=(_=ht.value)!=null?_:(ft=ht.custom)==null?void 0:ft.subtotalValue)!=null?et:0;ct.set(ht.name,G+B)}});const st=it.map(ht=>Array.from(ht.entries()).sort(([,ct],[,pt])=>ct-pt).map(([ct])=>ct)).map((ht,ct)=>{var G,B;const pt=new Map,ft=$e(R==null?void 0:R.palette.variantColors,ct),_=((B=(G=w.breakBy[ct])==null?void 0:G.color)==null?void 0:B.color)||ft,et=rf(ho(_,.3),ho(_,-.3),ht.length);return ht.forEach((X,U)=>{pt.set(X,et[U])}),pt});return l.map(ht=>{var ft,_,et;const ct=(_=Q[((ft=ht.custom)==null?void 0:ft.level)||""])==null?void 0:_[(ht==null?void 0:ht.name)||""],pt=(et=st[ht.custom.level-1])==null?void 0:et.get(ht.name);return Nt(kt({},ht),{color:ct||pt})})}function e0(l){return l.breakBy.reduce((w,{column:R},K)=>{var Q;return(Q=l==null?void 0:l.seriesToColorMap)!=null&&Q[R.name]&&(w[K+1]=l.seriesToColorMap[R.name]),w},{})}function i0(l){const w=new Map,R=new Map;l.forEach(Q=>{Q.parent&&(w.has(Q.parent)||w.set(Q.parent,[]),w.get(Q.parent).push(Q))}),Array.from(w.values()).sort((Q,it)=>{var rt,st,ht,ct,pt,ft;return((ht=(st=(rt=it[0])==null?void 0:rt.custom)==null?void 0:st.level)!=null?ht:0)-((ft=(pt=(ct=Q[0])==null?void 0:ct.custom)==null?void 0:pt.level)!=null?ft:0)}).forEach(Q=>{Q.forEach(it=>{var ht,ct;const rt=(ct=(ht=it.value)!=null?ht:R.get(it.id))!=null?ct:0,st=R.get(it.parent)||0;R.set(it.parent,st+rt),it.id&&(it.custom.subtotalValue=R.get(it.id))})});const K=[];return w.forEach(Q=>{Q.sort((it,rt)=>{var ct,pt,ft,_;const st=(pt=(ct=it.value)!=null?ct:R.get(it.id))!=null?pt:0,ht=(_=(ft=rt.value)!=null?ft:R.get(rt.id))!=null?_:0;return st-ht}),K.push(...Q)}),K}const o0={type:"sunburst",borderWidth:0,dataLabels:{style:{textOutline:"none"}}},r0={title:{text:null},chart:{type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[],plotOptions:{series:{},sunburst:{events:{legendItemClick:function(l){l.preventDefault()}}}}};function ac(l,w,R,K){return[Nt(kt({},o0),{name:"Root",data:Qy(l,w,K),levels:Ky(l,w,R,K),showInLegend:!1,turboThreshold:2e3}),...w.breakBy.map((Q,it)=>{var rt;return{name:Ce(Q),showInLegend:!0,color:((rt=Q==null?void 0:Q.color)==null?void 0:rt.color)||$e(K==null?void 0:K.palette.variantColors,it),data:[],states:{hover:{enabled:!1}}}})]}function lc(l,w,R){return Hn(l,w,R,{displayTotalContribution:!0,displayColorCircles:!0,shouldSkip:K=>{var Q;return((Q=K.point.options)==null?void 0:Q.id)===pn}})}function n0(l,w,R,K,Q){return Nt(kt({},r0),{series:ac(l,w,R,Q),tooltip:lc(w,R,K),legend:Ci(R.legend)})}const s0=(l,w,R,K,Q)=>{const it=[];return{options:n0(l,R,w,K,Q),alerts:it}},a0="rgb(255, 255, 255)",ua="rgb(43, 51, 66)",Qi=20,to=4,l0=2,dn=1,h0=Qi*2,c0=26,p0=20,fa=35,d0=Qi+to-2,ga={key:"brightness",to:.15};mh.Series.types.treemap.prototype.squarifiedWithTopSpacing=function(l,w){const R=m0(l.height,this.chart.plotHeight),K=this.squarified(l,w),Q=R(d0);return y0(this.chart)?K.map((it,rt)=>{const st=it.height>=R(h0);return w[rt].point.options.custom.bigLabelSpacing=st,st&&(it.height=it.height-Q,it.y=it.y+Q),it}):K};function hc(l,w,R){const K=f0();return l.breakBy.length===1&&(K[0].borderWidth=dn,K[0].borderColor="black",K[0].layoutAlgorithm="strip",K[0].dataLabels=K[1].dataLabels),l.breakBy.length===2&&(K[1].borderWidth=dn,K[1].borderColor="black"),l.breakBy.some(({isColored:Q})=>Q)&&(K[1].colorVariation=ga,K[2].colorVariation=ga),K.forEach((Q,it)=>{var st,ht,ct,pt,ft,_,et;const rt=Q.dataLabels;if((st=w==null?void 0:w.labels)!=null&&st.category&&(rt.enabled=(ft=(pt=(ct=(ht=w.labels)==null?void 0:ht.category)==null?void 0:ct[it])==null?void 0:pt.enabled)!=null?ft:!0),(_=R==null?void 0:R.typography)!=null&&_.fontFamily&&(rt.style=Nt(kt({},rt.style),{fontFamily:(et=R==null?void 0:R.typography)==null?void 0:et.fontFamily})),w.seriesLabels){const G=Array.isArray(w.seriesLabels)?w.seriesLabels[it]:w.seriesLabels,B=Q.layoutAlgorithm==="squarifiedWithTopSpacing",X=Oe(B?{enabled:G==null?void 0:G.enabled}:G);Q.dataLabels=Nt(kt(kt({},rt),X),{style:kt(kt({},rt.style),X.style),formatter:u0(it,w.seriesLabels)})}}),K}function u0(l,w){const R=Array.isArray(w)?w[l]:w,{prefix:K="",suffix:Q="",backgroundColor:it="#e6e6e6",textStyle:rt,align:st,borderColor:ht,borderWidth:ct,padding:pt,rotation:ft=0,xOffset:_=0,yOffset:et=0}=R!=null?R:{};return function(){var $,Z,V,F;const B=bo(Ve(this.color))>.4&&!((Z=($=this.point.options)==null?void 0:$.custom)!=null&&Z.blur),{width:X}=pc(this.point);return g0(this.point)?cc(this.point)?`<div
|
|
145
|
+
style="
|
|
146
|
+
box-sizing: border-box;
|
|
147
|
+
position: absolute;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
text-overflow: ellipsis;
|
|
150
|
+
padding: ${pt!=null?pt:3}px;
|
|
151
|
+
width:${X-to}px;
|
|
152
|
+
max-width:${X-to}px;
|
|
153
|
+
max-height: ${Qi}px;
|
|
154
|
+
height: ${Qi}px;
|
|
155
|
+
background: ${it};
|
|
156
|
+
color: ${(V=rt==null?void 0:rt.color)!=null?V:ua};
|
|
157
|
+
top: ${-Qi+et}px;
|
|
158
|
+
left: ${to/2+_}px;
|
|
159
|
+
text-align: ${st!=null?st:"center"};
|
|
160
|
+
transform: rotate(${ft}deg);
|
|
161
|
+
border: ${ht!=null?ht:"none"} ${ct!=null?ct:0}px solid;
|
|
162
|
+
${rt!=null&&rt.fontSize?`font-size: ${rt.fontSize}px;`:""}
|
|
163
|
+
${rt!=null&&rt.fontWeight?`font-weight: ${rt.fontWeight};`:""}
|
|
164
|
+
${rt!=null&&rt.fontFamily?`font-family: ${rt.fontFamily};`:""}
|
|
165
|
+
${rt!=null&&rt.fontStyle?`font-style: ${rt.fontStyle};`:""}
|
|
166
|
+
"
|
|
167
|
+
>${K}${this.key}${Q}</div>`:`<div style="fill:${(F=rt==null?void 0:rt.color)!=null?F:B?a0:ua};">${K}${this.key}${Q}</div>`:""}}function f0(){return[{level:1,borderWidth:to,borderColor:"white",layoutAlgorithm:"squarifiedWithTopSpacing",dataLabels:{useHTML:!0,enabled:!0,align:"left",verticalAlign:"top",allowOverlap:!0,padding:0,style:{fontSize:"14px"}}},{level:2,borderWidth:l0,borderColor:"white",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"14px"}}},{level:3,borderColor:"black",borderWidth:dn,dataLabels:{enabled:!0,align:"center",verticalAlign:"middle",style:{fontSize:"13px"}}}]}function cc(l){var w,R,K,Q;return((R=(w=l.options)==null?void 0:w.custom)==null?void 0:R.levelsCount)!==1&&((Q=(K=l.options)==null?void 0:K.custom)==null?void 0:Q.level)===1}function g0(l){const{height:w,width:R}=pc(l),{level:K}=l.options.custom;return cc(l)?!!l.options.custom.bigLabelSpacing:K!==3?w>=c0&&R>=fa:w>=p0&&R>=fa}function m0(l,w){return R=>{const K=w/l;return R/K}}function y0(l){var K,Q,it,rt,st,ht;const w=(Q=(K=l.options.series)==null?void 0:K[0])!=null?Q:{};return(ht=((st=(rt=(it=w==null?void 0:w.levels)==null?void 0:it[0])==null?void 0:rt.dataLabels)!=null?st:{}).enabled)!=null?ht:!0}function pc(l){var w,R,K,Q;return{width:(R=(w=l.shapeArgs)==null?void 0:w.width)!=null?R:0,height:(Q=(K=l.shapeArgs)==null?void 0:K.height)!=null?Q:0}}const v0="rgb(0, 206, 230)",b0={type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:v0,dataLabels:{style:{textOutline:"none"}}},x0={title:{text:null},chart:{type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[]};function C0(l,w,R,K,Q){return Nt(kt({},x0),{series:[Nt(kt({},b0),{name:w.y[0]?Ce(w.y[0]):"",data:Yn(l,w,Q),levels:hc(w,R,Q)})],tooltip:Hn(w,R,K)})}const S0=(l,w,R,K,Q)=>{const it=[];return{options:C0(l,R,w,K,Q),alerts:it}},w0=(l,w,R,K,Q,it)=>{switch(w){case"pie":return Hy(l,R,K,it);case"funnel":return Gy(l,R,K,it);case"treemap":return S0(l,R,K,Q,it);case"sunburst":return s0(l,R,K,Q,it);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:w})}},M0=(l,w,R)=>({animation:!1,crosshairs:!0,backgroundColor:pi,borderColor:ci,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var Z,V,F,I;if(!this.point.low||!this.point.high)return Nh(this,w,R);let K;this.percentage&&(K=`${Math.round(this.percentage)}`);const Q=w,it=(Z=Q.rangeValues)==null?void 0:Z.find(Q.breakBy.length>0?E=>E[0].enabled:E=>Ce(E[0])===this.series.name),[rt,st]=it!=null?it:[void 0,void 0],ht=Sh(rt),ct=he(rt,this.point.high,""),pt=he(st,this.point.low,""),ft=(F=(V=this.point)==null?void 0:V.custom)==null?void 0:F.xDisplayValue,_=Array.isArray(ft)?String((I=ft[0])!=null?I:this.x):ft!=null?ft:this.x,et=Q.x?he(Q.x[0],this.x,_):_,G=ct+(ht&&K?` / ${K}%`:""),B=pt+(ht&&K?` / ${K}%`:""),X=this.point.color||this.series.color,{upperPointName:U,lowerPointName:$}=this.point;return Pi(`
|
|
168
|
+
<div>${this.series.name}</div>
|
|
169
|
+
<div class="csdk-range-tooltip-row">
|
|
170
|
+
<span>${U||R("arearange.tooltip.max")}</span>
|
|
171
|
+
${Me(G,X)}
|
|
172
|
+
</div>
|
|
173
|
+
<div class="csdk-range-tooltip-row">
|
|
174
|
+
<span>${$||R("arearange.tooltip.min")}</span>
|
|
175
|
+
${Me(B,X)}
|
|
176
|
+
</div>
|
|
177
|
+
${hi()}
|
|
178
|
+
<div>${et||""}</div>
|
|
179
|
+
`)}}),ma=(l,w,R,K,Q,it,rt)=>{var E,A;const st=[],ht=[];K.seriesValues.forEach(P=>{ht.push(P),st.push(P)}),K.rangeValues.forEach(([P,y])=>{ht.push(y),st.push(P)});const ft=Nt(kt({},K),{y:ht,seriesToColorMap:K.seriesToColorMap}),_=nr(Nt(kt({},l),{type:"cartesian"}),w,R,ft,Q,it,rt),et={};_.options.series.forEach(P=>{et[P.name]=P});const G=Nt(kt({},K),{y:st,seriesToColorMap:K.seriesToColorMap}),B=nr(Nt(kt({},l.seriesOther),{type:"cartesian"}),w,R,G,Q,it,rt),X={};B.options.series.forEach(P=>{X[P.name]=P});let U=1/0,$=-1/0,Z=-1,V=0;if(_.options.series.forEach((P,y)=>{if(K.breakBy.length===0&&y<K.seriesValues.length)Mi(P.name)&&(Z=lm(P,X,et)),P.zIndex=1,P.data.forEach(c=>{c.y&&c.y<U&&(U=c.y),c.y&&c.y>$&&($=c.y)});else{const c=X[P.name].data;P.yAxis=0;let f=0;K.breakBy.length===0&&(f=y-K.seriesValues.length);const m=K.rangeValues[f],u=m[0].column.name.indexOf("_")+1,v=m[1].column.name.substring(u),S=m[0].column.name.substring(u);P.type="arearange",Mi(P.name)&&hm(P,X),V=Math.max(P.data.length,V),P.data=P.data.map((M,x)=>{const p=Nt(kt({},M),{low:c[x].y,high:M.y,y:void 0,upperPointName:v,lowerPointName:S});return p.low&&p.low<U&&(U=p.low),p.high&&p.high>$&&($=p.high),p}),Mi(P.name)&&cm(P,X)}}),_.options.xAxis||(_.options.xAxis=[]),Z>0&&pm(_.options.xAxis,Z,V),w==="arearange"&&R.lineType==="smooth"){const P="areasplinerange";_.options.chart.type=P,(E=_.options.navigator)!=null&&E.series&&(_.options.navigator.series.type=P)}w==="arearange"&&(_.options.tooltip=M0(!1,K,Q));const[F]=(A=_.options.yAxis)!=null?A:[],I=Nt(kt({},F),{min:U,max:$});return _.options.yAxis=[I],_},A0={displayValue:"0"},Zi=(l,w)=>{if(w){for(let R=0;R<l.columns.length;R++)if(l.columns[R].name===w.column.name)return R}return-1},T0=(l,w)=>({x:Zi(w,l.x),y:Zi(w,l.y),breakByPoint:Zi(w,l.breakByPoint),breakByColor:Zi(w,l.breakByColor),size:Zi(w,l.size)}),ya=(l,w)=>w[l]||A0,k0=(l,w)=>{const R=new Set;return l.forEach(K=>{R.add(K[w].displayValue)}),Array.from(R.values())},va=(l,w,R)=>{if(R&&!oi(R))return k0(l,w)},ba=(l,w)=>[l,w],P0=(l,w)=>{const R=new Map(l==null?void 0:l.map(ba)),K=new Map(w==null?void 0:w.map(ba));return{xCategoriesMap:R,yCategoriesMap:K}},L0=(l,w)=>{var it,rt;const R=T0(l,w),K=l!=null&&l.breakByPoint&&Rt.isNumber(l.breakByPoint.column.type)?pe((it=l.breakByPoint)==null?void 0:it.numberFormatConfig):void 0,Q=l!=null&&l.breakByColor&&(oi(l.breakByColor)||Rt.isNumber(l.breakByColor.column.type))?pe((rt=l.breakByColor)==null?void 0:rt.numberFormatConfig):void 0;return w.rows.map(st=>{const ht=kt({},st[R.breakByPoint]);K&&(ht.displayValue=Se(K,ht.compareValue?ht.compareValue.value:parseFloat(ht.displayValue)));const ct=kt({},st[R.breakByColor]);return Q&&(ct.displayValue=Se(Q,ct.compareValue?ct.compareValue.value:parseFloat(ct.displayValue))),{xAxis:ya(R.x,st),yAxis:ya(R.y,st),breakByPoint:ht,breakByColor:ct,size:st[R.size]}})},E0=(l,w)=>{const R=L0(l,w),{x:K,y:Q}=l,it=va(R,"xAxis",K),rt=va(R,"yAxis",Q);return{type:"scatter",scatterDataTable:R,xCategories:it,yCategories:rt}},ti="#d1d1d7";function dc(l,w,R){if(R&&R.length&&!R.includes(w))return"";const K=typeof w=="number"?w:parseFloat(w);return isNaN(K)?`${w}`:l&&!oi(l)&&!Rt.isNumber(l.column.type)?`${w}`:Se(pe(l==null?void 0:l.numberFormatConfig),K)}const O0=(l,w,R)=>[{type:l.type,startOnTick:!1,endOnTick:!(l.max||w),labels:{overflow:"justify",enabled:l.enabled&&l.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return dc(R==null?void 0:R.x,this.value,this.axis.categories)}},categories:w||void 0,gridLineWidth:l.enabled&&l.gridLine?1:0,gridLineColor:ti,gridLineDashStyle:"Dot",title:{enabled:l.enabled&&l.titleEnabled,margin:25,text:l.title||null},lineColor:ti,lineWidth:1,minorTickColor:ti,minorGridLineColor:ti,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:ti,tickmarkPlacement:"on",tickInterval:l.enabled?l.tickInterval:null,min:l.enabled?l.min:null,max:l.enabled?l.max:null}],D0=(l,w,R)=>[{type:l.type,startOnTick:!1,endOnTick:!(l.max||w),title:{enabled:l.enabled&&l.titleEnabled,text:l.title||null},labels:{enabled:l.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return dc(R==null?void 0:R.y,this.value,this.axis.categories)}},categories:w||void 0,gridLineColor:ti,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:ti,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:ti,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:ti,minorTickWidth:0,opposite:!1,tickColor:ti,tickWidth:0,tickmarkPlacement:"on",tickInterval:l.enabled?l.tickInterval:null,min:l.enabled?l.min:null,max:l.enabled?l.max:null}],uc={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},j0=(l,w)=>{var it;if(!(l!=null&&l.enabled))return{enabled:!1};const R=Oe(l),K=(it=l.rotation)!=null?it:0,Q=Nt(kt(kt({align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:K},Gn(K)==="horizontal"?{y:-1}:null),R),{style:kt({fontWeight:"",textOutline:""},R.style)});return Q.formatter=function(){var et,G,B,X;const rt=this,st={maskedY:w.y,maskedX:w.x,maskedSize:w.size,maskedBreakByColor:w.breakByColor},ct=[w.y,w.x,w.size,w.breakByColor].find(U=>U&&oi(U)),pt=(et=Object.entries(st).find(([,U])=>U===ct))==null?void 0:et[0],ft=((G=rt.point.custom)==null?void 0:G[pt])||"";if(isNaN(parseFloat(ft)))return ft;const _=pe(ct==null?void 0:ct.numberFormatConfig);return`${(B=l==null?void 0:l.prefix)!=null?B:""}${Se(_,parseFloat(ft))}${(X=l==null?void 0:l.suffix)!=null?X:""}`},Q},I0=(l,w)=>({minSize:w?l.scatterBubbleMinSize:l.scatterDefaultSize,maxSize:w?l.scatterBubbleMaxSize:l.scatterDefaultSize}),_0=(l,w)=>{var K;const R=!!w.size;return{bubble:kt({animation:!1},I0((K=l.markerSize)!=null?K:uc,R)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:j0(l.seriesLabels,w),stickyTracking:!1,turboThreshold:0}}},fc="#00cee6",un=l=>{const w=l.rawValue==null?Number(l.displayValue):Number(l.rawValue);return Number.isNaN(w)||w===void 0?null:w},N0=l=>l?un(l):1,B0=(l,w)=>{const{xAxis:R,yAxis:K,breakByPoint:Q,breakByColor:it,size:rt}=l,{xCategoriesMap:st,yCategoriesMap:ht}=w,ct=st.get(R.displayValue),pt=ht.get(K.displayValue),ft=R.blur||K.blur||(Q==null?void 0:Q.blur);return{x:ct!==void 0?ct:un(R),y:pt!==void 0?pt:un(K),z:N0(rt),maskedX:R.displayValue,maskedY:K.displayValue,maskedBreakByPoint:Q==null?void 0:Q.displayValue,maskedBreakByColor:it==null?void 0:it.displayValue,color:it==null?void 0:it.color,maskedSize:rt==null?void 0:rt.displayValue,selected:ft}},R0=(l,w,R)=>{var rt,st;const K=new Map;l.forEach(ht=>{var ct;if(ht.breakByColor){const{displayValue:pt,color:ft}=ht.breakByColor;if(pt&&!K.has(pt)){const _=ft||((ct=w==null?void 0:w.seriesToColorMap)==null?void 0:ct[pt]);K.set(pt,_)}}});const Q=new Map,it=Rt.isNumber((st=(rt=w==null?void 0:w.breakByColor)==null?void 0:rt.column)==null?void 0:st.type)?"number":"string";return Array.from(K).sort(([ht],[ct])=>qa(ht,ct,Ka.ASC,it)).forEach(([ht,ct],pt)=>{Q.set(ht,{color:ct!=null?ct:$e(R==null?void 0:R.palette.variantColors,pt),index:pt})}),Q},z0=(l,w,R)=>{const K={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return l.size?Array.from(l).map(([Q,{index:it,color:rt}])=>({data:[],index:it,marker:K,name:Q,showInLegend:!0,type:"bubble",color:rt})):[{data:[],index:0,marker:K,name:w,showInLegend:!!w,type:"bubble",color:dl(R)||fc}]},F0=(l,w)=>{const R=l.get(w);return R?R.index:0},G0=(l,w)=>{const R=In({getValueFromDataStructure:K=>{var Q;return parseFloat(`${(Q=K.custom)==null?void 0:Q.maskedBreakByColor}`)},applyColorToDataStructure:(K,Q)=>Nt(kt({},K),{color:Q})});return l.map(K=>Nt(kt({},K),{data:R(K.data,w)}))},W0=l=>{if(l&&oi(l)&&l.color)return l.color},X0=(l,w,R,K)=>{for(const Q of w){const{x:it,y:rt,z:st,maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedSize:ft,color:_,maskedBreakByColor:et,selected:G}=B0(Q,R);if(it!==null&&rt!==null){const B=l[F0(K,et)],X={color:_||B.color||fc,x:it,y:rt,z:st,custom:{maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedBreakByColor:et,maskedSize:ft},selected:G};B.data.push(X)}}return l},H0=l=>{const w=l==null?void 0:l.breakByColor,R=l==null?void 0:l.breakByPoint;return w&&Ce(w)||R&&Ce(R)||""},Y0=(l,w,R,K)=>{const Q=R==null?void 0:R.breakByColor,it=H0(R),rt=W0(Q),st=Q&&!oi(Q)?R0(l,R,K):new Map;let ht=z0(st,it,rt);return ht=X0(ht,l,w,st),rt&&(ht=G0(ht,rt)),ht},U0=(l,w)=>w?l.slice(0,w):l,V0=(l,w,R,K,Q,it)=>{const rt=[],st=Y0(l,w,R,Q).map(ht=>Nt(kt({},ht),{dataLabels:K==null?void 0:K.seriesLabels}));return it&&st.length>it?(rt.push(Li(st.length,it)),{series:U0(st,it),alerts:rt}):{series:st,alerts:rt}},Bo=20,$0=30,Z0=l=>kt({symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0},Ci(l)),K0=(l,w,R,K,Q)=>{const it=[],rt=Fi(w,R),st=K,{scatterDataTable:ht}=l,{seriesCapacity:ct,categoriesCapacity:pt}=R.dataLimits;let{xCategories:ft,yCategories:_}=l;ft&&ft.length>pt&&(it.push(ir("x",ft.length,pt)),ft=ft.slice(0,pt)),_&&_.length>pt&&(it.push(ir("y",_.length,pt)),_=_.slice(0,pt));const{series:et,alerts:G}=V0(ht,P0(ft,_),st,R,Q,ct);return it.unshift(...G),{options:{title:{text:null},subtitle:{text:null},chart:{type:rt,spacing:[Bo,Bo,Bo,Bo],marginTop:$0,alignTicks:!1,polar:!1},xAxis:O0(R.xAxis,ft==null?void 0:ft.slice(0,pt),st),yAxis:D0(R.yAxis,_==null?void 0:_.slice(0,pt),st),legend:Z0(R.legend),series:et,plotOptions:_0(R,st),tooltip:am(st)},alerts:it}},q0=(l,w,R,K,Q,it,rt)=>{switch(l.type){case"range":return ma(l,w,R,K,Q,it,rt);case"cartesian":{const st=K,ht=Ah(st)?ma(Nt(kt({},l),{type:"range"}),w,R,Th(st),Q,it,rt):nr(l,w,R,st,Q,it,rt);return um(ht.options.series),ht}case"categorical":return w0(l,w,R,K,Q,it);case"scatter":return K0(l,w,R,K,it);case"boxplot":return Bm(l,R,K,Q,it);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:l.type})}},J0={legend:{enabled:!0,position:"bottom"},navigator:{enabled:!0},markers:{enabled:!1,fill:"filled",size:"small"},seriesLabels:{enabled:!1,rotation:0},xAxis:{enabled:!0,gridLines:!1,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"X Axis title"}},yAxis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y Axis title"}},y2Axis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y2 Axis title"}},convolution:{enabled:!1,selectedConvolutionType:"byPercentage",minimalIndependentSlicePercentage:3,independentSlicesCount:7},labels:{categories:!0,enabled:!0,percent:!0,decimals:!1,value:!1}},Q0=()=>Rt.cloneDeep(J0),tv=l=>Rt.isCartesian(l)?"cartesian":Rt.isCategorical(l)?"categorical":Rt.isScatter(l)?"scatter":Rt.isScattermap(l)?"scattermap":Rt.isIndicator(l)?"indicator":Rt.isAreamap(l)?"areamap":Rt.isBoxplot(l)?"boxplot":"table";function ev(l){return Rt.flatRest(function(w){return w=Rt.arrayMap(w,Rt.baseUnary(Rt.baseIteratee)),Rt.baseRest(function(R){var K=this;return l(w,function(Q){return Rt.apply(Q,K,R)})})})}var gc=ev(Rt.arrayMap);function Cr(l,w=!1){const R=l.filter(K=>Rt.isFunction(K));return w?yr(R):gc(R)}function iv(...l){return(w,R)=>l.reduce((K,Q)=>{var it;return Q&&(it=Q(w,K))!=null?it:K},R)}function ov(...l){return w=>l.reduce((R,K)=>{if(!K)return R;const Q=K(R);return Q!==null?Q:R},w)}const mc={"chart/line":"line","chart/area":"area","chart/bar":"bar","chart/column":"column","chart/polar":"polar","chart/pie":"pie","chart/funnel":"funnel",treemap:"treemap",sunburst:"sunburst","chart/scatter":"scatter",indicator:"indicator","chart/boxplot":"boxplot","map/scatter":"scattermap","map/area":"areamap",tablewidget:"table",tablewidgetagg:"table",heatmap:"calendar-heatmap"},rv=Object.entries(mc).reduce((l,[w,R])=>(l[R]=w,l),{});function nv(l){const w=l.jaql;return"agg"in w&&!!w.agg||"formula"in w&&!!w.formula}function sv(l){return mc[l]}function av(l){return rv[l]}function lv(l,w){if(l==="chart"){if(!w)throw new Error("chartType is required for chart widget type");return av(w)}if(l==="pivot")return"pivot2";if(l==="custom")return"custom";if(l==="text")return"richtexteditor";throw new Rt.TranslatableError("errors.widgetModel.unsupportedWidgetType",{widgetType:l})}function hv(l){if(Un(l))return"pivot";if(bv(l))return"custom";if(Vn(l))return"text";if(yc(l))return"chart";throw new Rt.TranslatableError("errors.widgetModel.unsupportedFusionWidgetType",{fusionWidgetType:l})}function cv(l){return{"area/basic":"area/basic","area/stacked":"area/stacked","area/stacked100":"area/stacked100","area/spline":"area/spline","area/stackedspline":"area/stackedspline","area/stackedspline100":"area/stackedspline100","bar/classic":"bar/classic","bar/stacked":"bar/stacked","bar/stacked100":"bar/stacked100","column/classic":"column/classic","column/stackedcolumn":"column/stackedcolumn","column/stackedcolumn100":"column/stackedcolumn100","line/basic":"line/basic","line/spline":"line/spline","pie/classic":"pie/classic","pie/donut":"pie/donut","pie/ring":"pie/ring","column/polar":"polar/column","area/polar":"polar/area","line/polar":"polar/line","indicator/numeric":"indicator/numeric","indicator/gauge":"indicator/gauge",treemap:"treemap",sunburst:"sunburst","boxplot/full":"boxplot/full","boxplot/hollow":"boxplot/hollow","map/scatter":"scattermap"}[l]}function pv(l){return["chart/line","chart/area","chart/bar","chart/column","chart/polar","chart/pie","chart/funnel","treemap","sunburst","chart/scatter","indicator","tablewidget","tablewidgetagg","pivot","pivot2","chart/boxplot","map/scatter","map/area","richtexteditor","heatmap"].includes(l)}function dv(l){return l==="WidgetsTabber"}const uv=["chart/pie","indicator","richtexteditor","chart/column","chart/bar","chart/line","chart/area","pivot","pivot2","chart/scatter","chart/polar"];function fv(l){return uv.includes(l)}function gv(l){return l==="tablewidget"||l==="tablewidgetagg"}function mv(l){return Mv(l.widgetType)&&l.chartType==="table"}function Un(l){return l==="pivot"||l==="pivot2"}function yv(l){return l==="pivot"}function Vn(l){return l==="richtexteditor"}function vv(l){return l==="text"}function bv(l){return l==="custom"}function xv(l){return l==="custom"}function yc(l){return!Un(l)&&!Vn(l)}function Cv(l){return l.startsWith("chart")}function Sv(l){return l==="chart/pie"}function wv(l){return l==="indicator"}function Mv(l){return l==="chart"}function vc(l){return l.widgetType==="text"}function Sr(l){return l.widgetType==="pivot"}function Co(l){return l.widgetType==="custom"}function wr(l){return l.widgetType==="chart"}function Av(l){return Sr(l)?"pivot":Co(l)?"custom":vc(l)?"text":l.chartType}function Tv(l,w){(wr(l)||Sr(l)||Co(l))&&(l.onDataPointClick=Cr([l.onDataPointClick,w]))}function kv(l,w){(wr(l)||Sr(l)||Co(l))&&(l.onDataPointContextMenu=Cr([l.onDataPointContextMenu,w]))}function Pv(l,w){(wr(l)||Co(l))&&(l.onDataPointsSelected=Cr([l.onDataPointsSelected,w]))}function Lv(l,w){var K;const R=l.styleOptions;l.styleOptions=Nt(kt({},R),{header:Nt(kt({},R==null?void 0:R.header),{renderToolbar:iv((K=R==null?void 0:R.header)==null?void 0:K.renderToolbar,w)})})}function Ev(l,w){var Q;const R=l.find(it=>it.name===w);return((Q=R==null?void 0:R.items)!=null?Q:[]).filter(it=>!it.disabled)}function bc(l){return l.parent?bc(l.parent):l}exports.CALENDAR_HEATMAP_COLORS=wg;exports.CALENDAR_HEATMAP_DATA_TYPE=Tg;exports.CALENDAR_HEATMAP_DEFAULTS=Sg;exports.CALENDAR_HEATMAP_SIZING=Mg;exports.CALENDAR_TYPOGRAPHY=Ag;exports.CacheProvider=fp;exports.Color=oe;exports.DEFAULT_BACKGROUND_COLOR=bp;exports.DEFAULT_COLOR=Vo;exports.DEFAULT_TEXT_COLOR=xn;exports.DefaultFunnelDirection=ch;exports.DefaultFunnelSeriesLabels=ah;exports.DefaultFunnelSize=lh;exports.DefaultFunnelType=hh;exports.DefaultPieType=uh;exports.ERROR_COLOR=xp;exports.Emotion$1=bn;exports.FORECAST_PREFIX=xo;exports.FULL_MONTH_DATE_FORMAT=kg;exports.Fragment=Ha;exports.GradientDirections=Lf;exports.Highcharts=mh;exports.I18nContext=wa;exports.KEYFRAMES=lr;exports.MIN_TOUCH_TARGET_SIZE=Sp;exports.NOT_AVAILABLE_DATA_VALUE=Cn;exports.NOT_AVAILABLE_TEXT=Cp;exports.QUERY_DEFAULT_LIMIT=yp;exports.REFERENCE_SUNDAY_DATE=Og;exports.RadialGradientPresets=Ef;exports.SHORT_MONTH_DATE_FORMAT=Pg;exports.SINGLE_LETTER_DAY_DATE_FORMAT=Lg;exports.SYSTEM_TENANT_NAME=vp;exports.THREE_LETTER_DAY_DATE_FORMAT=Eg;exports.TREND_PREFIX=br;exports.TRIANGLE_COLOR_ADJUSTMENT=qu;exports.ThemeContext=Xa;exports.ViewType=zn;exports.advancedAnalyticsData=mm;exports.applyFormat=Ai;exports.applyFormatPlainText=Se;exports.applyOpacity=Xl;exports.baseTrim=ll;exports.buildCategoriesMeta=Xh;exports.buildXAxisSettings=Hh;exports.buildYAxisMeta=Wh;exports.buildYAxisMinMax=cn;exports.cartesianData=tn;exports.categoriesSliceWarning=ir;exports.colorChineseSilver=ci;exports.colorWhite=pi;exports.combineHandlers=Cr;exports.commonjsGlobal=Ki;exports.composeTitleHandlers=ov;exports.createCache=Ia;exports.createCompareValue=ro;exports.createDataColoringFunction=In;exports.createDataTableFromData=Fp;exports.createEmotionProps=vn;exports.createLinearGradient=Of;exports.createRadialGradient=Df;exports.defaultScatterMarkerSize=uc;exports.deriveChartFamily=tv;exports.determineHighchartsChartType=Fi;exports.emptyTable=An;exports.extractForecastMeasures=gm;exports.extractTrendMeasures=fm;exports.flow=yr;exports.formatFunnelChartData=$h;exports.formatTooltipValue=he;exports.fromHighchartsGradientFormat=jf;exports.getAlerts=Zh;exports.getAugmentedNamespace=Mc;exports.getCartesianChartOptions=nr;exports.getCartesianTooltipSettings=Bh;exports.getCategoryTooltipSettings=Xn;exports.getChartSubtype=cv;exports.getChartType=sv;exports.getColoringServiceByColorOptions=Yl;exports.getColumnByName=ui;exports.getColumnsByName=no;exports.getCompleteNumberFormatConfig=pe;exports.getDarkFactor=bo;exports.getData=Nn;exports.getDataOptionGranularity=ur;exports.getDataOptionTitle=Ce;exports.getDefaultDateFormat=vr;exports.getDefaultExportFromCjs=fn;exports.getDefaultStyleOptions=Q0;exports.getEnabledPanelItems=Ev;exports.getFunnelPlotOptions=dh;exports.getFusionWidgetType=lv;exports.getIndexedRows=Mn;exports.getInternalWidgetType=Av;exports.getInterpolatorFn=Hl;exports.getLegendSettings=Ci;exports.getOrderedXValues=Kl;exports.getPaletteColor=$e;exports.getPieAlerts=oc;exports.getPieConvolutionSeries=sc;exports.getPiePlotOptions=fh;exports.getPieSeries=nc;exports.getRegisteredStyles=_a;exports.getRootPanelItem=bc;exports.getSlightlyDifferentColor=of;exports.getTreemapTooltipSettings=Hn;exports.getUniformColorOptionsFromString=Ln;exports.getValue=rl;exports.getValues=zi;exports.getWidgetType=hv;exports.getYAxisSettings=Rh;exports.groupBy=il;exports.hasOwn=fo;exports.hasSecondaryYAxis=Yh;exports.highchartsOptionsService=q0;exports.insertStyles=Na;exports.isBlurred=nl;exports.isCell=Qa;exports.isChartFusionWidget=yc;exports.isChartTypeFusionWidget=Cv;exports.isChartWidgetProps=wr;exports.isContinuousDatetimeXAxis=Gh;exports.isCustomWidget=xv;exports.isCustomWidgetProps=Co;exports.isDataTableEmpty=zp;exports.isForecastChart=Ah;exports.isGradient=ih;exports.isIndicatorFusionWidget=wv;exports.isLaziable=on;exports.isLegendOnRight=Bn;exports.isLinearGradient=th;exports.isMeasureColumn=oi;exports.isMeasurePanelItem=nv;exports.isNumber=ln;exports.isPieChartFusionWidget=Sv;exports.isPivotTableFusionWidget=Un;exports.isPivotTableWidgetProps=Sr;exports.isPivotWidget=yv;exports.isRadialGradient=eh;exports.isStyledColumn=kn;exports.isSupportedPluginFusionWidget=dv;exports.isSupportedWidgetType=pv;exports.isTableFusionWidget=gv;exports.isTableWidgetModel=mv;exports.isTextFusionWidget=Vn;exports.isTextWidget=vv;exports.isTextWidgetProps=vc;exports.isUndefined=Tn;exports.jsx=ge;exports.jsxs=gi;exports.memoize=Da;exports.merge=si;exports.merge$1=Fe;exports.metaMap=en;exports.noop=Ql;exports.normalizeAnyColumn=$p;exports.normalizeColumn=sl;exports.normalizeMeasureColumn=al;exports.omitUndefinedAndEmpty=ki;exports.orderBy=el;exports.over=gc;exports.parseISOWithTimezoneCheck=dr;exports.prefixer=Zc;exports.prepareStackLabels=zh;exports.prepareSunburstSeries=ac;exports.prepareSunburstTooltip=lc;exports.prepareTreemapDataItems=Yn;exports.prepareTreemapLevels=hc;exports.purify=Ch;exports.rangeData=Mh;exports.registerDataPointClickHandler=Tv;exports.registerDataPointContextMenuHandler=kv;exports.registerDataPointsSelectedHandler=Pv;exports.registerRenderToolbarHandler=Lv;exports.registerStyles=yn;exports.requiredArgs=Va;exports.rownumColumnName=Sn;exports.safeCombine=Hp;exports.safeMerge=Uo;exports.scaleBrightness=ho;exports.scatterData=E0;exports.selectColumns=ol;exports.serializeStyles=Ra;exports.seriesSliceWarning=Li;exports.sortDirection=Zl;exports.splitColumn=go;exports.stackTotalFontStyleDefault=po;exports.toCSSGradientFormat=If;exports.toColor=Ve;exports.toFinite=hl;exports.toGradientHighchartsFormat=oh;exports.toGray=Gl;exports.toInteger=$a;exports.toInteger$1=cl;exports.toNumber=Pn;exports.tooltipSeparator=hi;exports.tooltipWrapper=Pi;exports.translateColumnToAttribute=Yp;exports.translateColumnToMeasure=Up;exports.useInsertionEffectAlwaysWithSyncFallback=Fa;exports.useInsertionEffectWithLayoutFallback=dp;exports.useTranslation=gn;exports.widgetTypeSupportsJtd=fv;exports.withEmotionCache=Wa;exports.withGradientConversion=Ti;exports.withPolarSpecificAxisSettings=Fh;exports.withScrollerEvent=Rn;exports.withXAxisLabelPositioning=Vh;exports.withYAxisLabelPositioning=Uh;exports.withYAxisNormalizationForPolar=wy;
|